Searching We.Love.Privacy.Club

Twts matching #1:
Sort by: Newest, Oldest, Most Relevant

使用 gofn 和 pipe 助力 Golang 函數式編程
今天要介紹的是兩個在函數式編程裏面很有用的 package,通過使用 gofn[1] 和 pipe[2] 庫讓 Go 的函數式編程更強大。Go 的函數式編程由於本質上,Go 並不像 Haskell 或 Erlang 那樣是純函數式語言,但這並不意味着我們不能應用函數式編程的概念來編寫簡潔、可讀和高效的代碼。這正是 gofn 和 pipe 發揮作用的地方。gofn 和 pipegofn:一個在 Go ⌘ Read more

⤋ Read More

灯塔之下,科学璀璨

1、 为什么要做《某科学的超级实验室》

《某科学的超级实验室》是一个“探室”主题的系列纪录片,其实在灯塔计划之前,我就已经尝试做过两期内容,

在我看来,这个项目想要展现两个方面,一个是科学家的精神面貌,另一个是我国的大科学装置。为什么要做这个主题呢?因为我们自己作为一个科研人员,对于科研人员是一种什么样的状态,什么样的表现,有着比较深入的理解。但是感觉大众对于科学家这个群体还是比较陌生的,而且会受影视作品的影响,对科学家有一些刻板印象。我希望想通过一些视频去把它展现给大众,让大家真正的去了解科学家到底是什么样子的,科研工作到底是什么样子的。

Image

球场上的科学家@中国散裂中子源

2、遥遥领先的中国大科学装置!

而这一年的探室,对我来说是大开眼界,最直观的就是我国投资建设的这些大科学装置,在探访期间,在我心里一直有一个词“遥遥领先”。我不知道、我也相信不少观 … ⌘ Read more

⤋ Read More

Golang 使用 Worker Pool 模式釋放併發性能
我們都知道 Go 具有卓越的併發特性,Worker Pool pattern(工作池模式)是一種併發設計模式,它用於管理一組工作線程以執行任務。本文用一個例子深入講解如何使用 Worker Pool 模式提升程序的併發性能。拋出問題快速計算一個數字數組中每個數字的平方,並返回結果數組(該數組只包含從 1 到 150 的整數)。Pattern 1 : N routines for N numbers ⌘ Read more

⤋ Read More

使用 Golang 構建你的 LLM API
大語言模型,像 ChatGPT, Llama 等已經席捲全球,從上圖的數據可以看出,ChatGPT 花了 5 天時間就達到了 100 萬用戶。而 Netflix 則花了近 4 年的時間。本文將使用 Gin 和 Langchain 教你快速構建一套 LLM API。GinGin[1] 是一個用於使用 GoLang 構建 API 的現代、快速的 Web 框架。它被設計爲易於使用、高效且性能出色,利用了 ⌘ Read more

⤋ Read More

MacOS Ventura 13.6.6 & Safari 17.4.1 Update Available
Apple has released macOS Ventura 13.6.6 for Mac users running Ventura, along with Safari 17.4.1 for Mac users running Ventura and Monterey. These software updates include some of the same critical security fixes that came with macOS Sonoma 14.4.1, and are aimed at users who are not running the Sonoma operating system on their Macs. … [Read More](https://osxdaily.com/2024/04/03/macos-ventura-13-6-6-safari-17-4-1-update-avail … ⌘ Read more

⤋ Read More

First Beta of iOS 17.5, macOS Sonoma 14.5, iPadOS 17.5 Released for Testing
Apple has released the first beta versions of a round of upcoming future software updates, versioned as iOS 17.5 for iPhone, macOS Sonoma 14.5 for Mac, iPadOS 17.5 for iPad, tvOS 17.5 for Apple TV, watchOS 10.5 for Apple Watch, and visionOS 1.2 for Apple Vision Pro. The betas are available now to users enrolled … [Read More](https://osxdaily.com/2024/04/02/first-beta-of-ios-17-5-macos- … ⌘ Read more

⤋ Read More

用 Go 語言實現多協程文件上傳,斷點續傳,試試!
網上很多文件基本都是多協程下載文件要麼就只有單協程的斷點續傳,這裏給大家寫一個支持有進度條的多協程下載文件,也支持斷點續傳。好了,直接看代碼就好了,小編已加上詳細的解釋與說明package mainimport ( ”fmt” ”io” ”os” ”regexp” ”strconv” ”sync” ”github.com/qianlnk/pgbar”)/* 需求:1. 多協程下載文件2.斷點續連* ⌘ Read more

⤋ Read More

iOS 16.7.7 & iPadOS 16.7.7 Released for Older iPhone & iPad Models
Apple has released iOS 16.7.7 and iPadOS 16.7.7 for select older model iPhone and iPads. The updates seem to include the same essential and applicable security fixes that iOS 17.4.1 and iPadOS 17.4.1 included. Specifically, iOS 16.7.7 is available for iPhone 8, iPhone 8 Plus, iPhone X, while iPadOS 16.7.7 is available for iPad 5th … [Read More](https://osxdaily.com/2024/04/01/ios-16-7-7-ipados-1 … ⌘ Read more

⤋ Read More

Radxa Unveils Cost-Efficient ROCK 5C and ROCK 5C Lite SBC
Radxa has recently enhanced its lineup with the pre-launch of two single board computers: the ROCK 5C and ROCK 5C Lite. These devices, featuring PCIe 2.1 interfaces and PoE support, are built on the Arm Cortex-A76 architecture and are competitively priced, targeting developers, educators, and hobbyists. The ROCK 5C is equipped with the Rockchip RK3588S2 […] ⌘ Read more

⤋ Read More

VEĽKÁ NOC V KULPÍNE 2024 – výsledky oceňovania vín a klobás
Združenie vinohradníkov a vinárov z Kulpína srdečne pozýva na podujatie Veľká noc v Kulpíne 2024. Dve odborné komisie ohodnotili včera vzorky 49 bielych vín, 21 červených, 14 ružových, 1 ovocné malinové víno, 2 dezertné bazové vína a 2 šiler vína. Tretia komisii oceňovala vzorky 76 domácich hrubých klobás. Ich verejná degustácia sa bude konať vo Veľkonočnú nedeľu 31.marca 2024 v Poľovníckom dome v Ku … ⌘ Read more

⤋ Read More