Better HN
topnewbestaskshowjobs
Log inSign up

bjkchoy

33 karma · joined Jan 18, 2021 (5y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

SCons is listed as a meta build system here, but it is clearly an end-to-end build system. It seems to me SCons even fits all the requirements listed by the author. Plus, you program your SCons build using Python.

He also describes the dynamic discovery of header dependencies of Ninja as a hack. It is true that it is a special case to handle a specific type of dynamic dependencies. But the basic idea behind it (using the compiler's diagnostic as the source of truth) is sane and efficient. The alternative is to scan the sources using a custom parser, which is slower and more fragile.

comment 2y ago · link · parent

Rust strings enforce utf-8 encoding, yes. However, it seems Windows (which uses utf-16) allows ill-formed UTF-16, in particular it tolerates unpaired surrogates.

You can read more here http://simonsapin.github.io/wtf-8/

comment 4y ago · link · parent

I saw this "shortcut" used in code snippets, on online JS/CSS/HTML editors like JSFiddle. It did not even occur to me this was part of JS spec, I thought the editor was generating code behind my back!

comment 4y ago · link · parent

One of my preferred video clip ever was filmed entirely during a parabolic flight:

OK Go, Upside Down & Inside Out https://youtu.be/LWGJA9i18Co

comment 5y ago · link · parent

These days RhodeCode has a Community edition which is licensed under AGPLv3.

comment 5y ago · link · parent

There is a very clever and beautiful algorithm that only uses the xor operation. It's the Luby Transform code, the simplest implementation of a Fountain Code. A Fountain Code lets you transmit a file over an unreliable connection (packets can be unordered, and even lost), with just a unidirectional communication. And this can be done just by xoring a random number of blocks from the file over and over!

A very good explanation of the algorithm: http://blog.notdot.net/2012/01/Damn-Cool-Algorithms-Fountain...