Searching txt.sour.is

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

(Updated) Open source ESP32 module supports 5G and GPS connectivity
CrowdSupply recently featured, the Walter embedded device equipped with the ESP32-S3 microcontroller along with a GM02SP module for NB-IoT, LTE-M and GPS protocols. The board is CE and FCC certified to accelerate customers’ product development. Built around the ESP32-S3-WROOM-1-N16R2 microcontroller, Walter boasts an advanced core architecture and connectivity options. It features a Xtensa dual-core 32-bit LX7 … ⌘ Read more

⤋ Read More

MacOS Sonoma 14.4.1 Update Released with Bug Fixes & Security Updates
Apple has released macOS Sonoma 14.4.1 as an update for Mac users running the Sonoma operating system. The software update includes bug fixes and security enhancements, and appears to resolve the USB hub and external monitor issues that some Mac users were experiencing with macOS Sonoma 14.4 update. Separately, macOS Ventura 13.6.6 is also available … [Read More](https://osxdaily.com/2024/03/ … ⌘ Read more

⤋ Read More

Radxa’s Penta SATA HAT now compatible with Raspberry Pi 5
Radxa has released a detailed tutorial for their Penta SATA HAT, showcasing its compatibility with the latest Raspberry Pi 5 and their own Rock Pi single-board computers. This cutting-edge device not only offers a range of power options but also supports various RAID configurations, including RAID 0, 1, and 5, enhancing its functionality and adaptability […] ⌘ Read more

⤋ Read More

iOS 17.4.1 Update Released for iPhone & iPad
Apple has issued iOS 17.4.1 update for iPhone, and iPadOS 17.4.1 update for iPad. The software updates include bug fixes and security enhancements for iPhone and iPad. Additionally, there’s an update available for Apple Vision Pro’s VisionOS 1.1.1, for users who have the spatial computing headset. How to Download & Install iOS 17.4.1 / iPadOS … Read MoreRead more

⤋ Read More

Ignite Realtime Blog: PionTurn plugin 1.0.0 released!
The Ignite Realtime community is happy to announce the release of version 1.0.0 of the PionTurn plugin.

This version brings in the new long-term authentication compatible with the TURN REST format, bringing security to the latest standard.

And it also brings in a new mechanism for resolving domain names, making it possible to run the Pionturn plugin in a dynamic IP environment without having to worry about updating the IP.

Last but not … ⌘ Read more

⤋ Read More

Cloud Native Computing Foundation Member Akamai Upgrades Its Membership to Gold
The distributed cloud provider increases its investment in the cloud native ecosystem, earmarking $1 million in credits for CNCF compute infrastructure projects PARIS, France – KubeCon + CloudNativeCon Europe – March 20, 2024 – The Cloud Native Computing… ⌘ Read more

⤋ Read More

Due to OpenAI’s move to prepaid billing, I (finally) had to pay for using the OpenAI API. But this also allows me to finally use the gpt-4-turbo-preview model as I have reached tier 1. Now the AI-generated summaries on this blog will be created using this new model. 😄 ⌘ Read more

⤋ Read More

更強大的 Go 執行跟蹤能力
runtime/trace 包 1] 包含了一個強大的工具, 可用於理解和調試 Go 程序。該功能允許我們在一段時間內對每個 goroutine 的執行進行跟蹤。使用 go tool trace 命令 [2), 我們就可以可視化和探索這些跟蹤數據。跟蹤的魔力在於, 它可以輕鬆揭示程序中一些通過其他方式很難發現的問題。例如, 大量 goroutine 在同一個 channel 上阻塞導致的併發瓶頸, ⌘ Read more

⤋ Read More

Ignite Realtime Blog: Openfire inVerse plugin version 10.1.7.1 released!
We have made available a new version of the inVerse plugin for Openfire! This plugin allows you to easily deploy the third-party Converse client in Openfire. In this release, the version of the client that is bundled in the plugin is updated to 10.1.7.

The updated plugin should become available for download in your Openfire admin console in the course of the next few hours. … ⌘ Read more

⤋ Read More
In-reply-to » @bender I don't mind the character limit. If I hit it and I still have more to say, it's a good reminder that I should probably write a note instead. I like to POSSE anything that might have value outside of the current conversation.

@mckinley@twtxt.net, in your blog, I think a “line-heigh” of 1.5 (if I remember correctly you are setting it on the “body” on CSS) will make it more legible.

⤋ Read More

Go 中的高速數據包處理: 從 net-Dial 到 AF_XDP
推進 Go 的極限: 從 net.Dial 到系統調用、AFPACKET 和極速 AFXDP。數據包發送性能的基準測試。最近, 我編寫了一個 Go 程序, 向數百萬個 IP 地址發送 ICMP ping 消息 [1]。顯然, 我希望這個過程能儘可能快速高效地完成。因此, 這促使我研究各種與網絡棧交互和快速發送數據包的各種方法。這是一個有趣的旅程, 所以在本文中, 我將分享一些學習成果, 並記錄 ⌘ Read more

⤋ Read More

6 Helpful Mac Keyboard Shortcut Tips
If you are a Mac user, you might be interested in some specific keyboard shortcuts tricks that can make your MacOS computing experience more efficient and maybe even be more productive too. Here are six useful Mac keyboard shortcut tips that will improve most people’s MacOS experience, usage, and workflow. 1: Use Spotlight Keystrokes to … Read MoreRead more

⤋ Read More

STM32MP2 MPU Series Enhances Performance with 64-bit Architecture and 1.35 TOPS NPU
Last week, STMicroelectronics unveiled the STM32MP2 series, its second-generation line of 64-bit industrial microprocessors. Designed for intelligent edge computing, this new series is tailored for a broad range of applications, including smart factories, healthcare, buildings, and infrastructure. These are ST’s first MPUs to contain a 64-bit central processing unit (CPU). In c … ⌘ Read more

⤋ Read More

slog 終極指南
在本文中,我們將探討 Go 中的結構化日誌記錄,並特別關注最近推出的 log/slog[1] 軟件包, 這個軟件包旨在爲 Go 帶來高性能、結構化和分級的日誌記錄標準庫。該軟件包起源於由 Jonathan Amsterdam 發起的 GitHub 討論 [2], 後來專門建立了一個提案 [3] 細化設計。一旦定稿,它在 Go v1.21 版本中發佈。在以下各節中,我將全面呈現 slog 的功能, ⌘ Read more

⤋ Read More