Forwarded from Hacker News (yahnc_bot)
Zlib visualizer https://lynn.github.io/flateview/
Forwarded from Hacker News (yahnc_bot)
The phaseout of the mmap() file operation in Linux https://lwn.net/SubscriberLink/1038715/e4a2f8f50c244545/
LWN.net
The phaseout of the mmap() file operation
The file_operations structure in the kernel is a set of function pointers implementing, as the [...]
Forwarded from Hacker News (yahnc_bot)
Voronoi map generation in Civilization VII https://civilization.2k.com/civ-vii/from-the-devs/map-generation/
2K
Improved Map Generation | Civilization VII
Get developer insight into the new types of maps built into Update 1.2.5.
Forwarded from Lobste.rs
max-inden.de
Fast UDP I/O for Firefox in Rust
Motivation
Around 20% of Firefox’s HTTP traffic today uses HTTP/3, which runs over QUIC, which in turn runs over UDP.
This translates to substantial UDP I/O activity.
Firefox uses NSPR for most of its network I/O.
When it comes to UDP I/O, NSPR only offers…
Around 20% of Firefox’s HTTP traffic today uses HTTP/3, which runs over QUIC, which in turn runs over UDP.
This translates to substantial UDP I/O activity.
Firefox uses NSPR for most of its network I/O.
When it comes to UDP I/O, NSPR only offers…
Forwarded from Hacker News (yahnc_bot)
Introduction to Multi-Armed Bandits (2019) https://arxiv.org/abs/1904.07272
arXiv.org
Introduction to Multi-Armed Bandits
Multi-armed bandits a simple but very powerful framework for algorithms that make decisions over time under uncertainty. An enormous body of work has accumulated over the years, covered in several...
Forwarded from Hacker News (yahnc_bot)
Diff Algorithms https://flo.znkr.io/diff/
flo.znkr.io
Diff Algorithms - flo.znkr.io
How I overcame copying and modifying my own diff library from project to project by
diving too deep into diff algorithms and coming out at the other end with new diff
library in my hand.
diving too deep into diff algorithms and coming out at the other end with new diff
library in my hand.
https://github.com/serde-rs/serde/issues/745
吃到这个了。
更本质的问题是,即使想自己实现,serde 里面没办法 retry deserialize with another type
#[serde(untagged)] 用了一些 private 的东西...
吃到这个了。
更本质的问题是,即使想自己实现,serde 里面没办法 retry deserialize with another type
#[serde(untagged)] 用了一些 private 的东西...
GitHub
Allow integer tags for internally tagged enums · Issue #745 · serde-rs/serde
See this use case. Would the internally tagged enum support allow me to handle schema versioning defined like this? { "schema_version": 1, ... } I've never gotten a good answer about ...