HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bjkchoy

no profile record

comments

bjkchoy
·2 ปีที่แล้ว·discuss
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.
bjkchoy
·3 ปีที่แล้ว·discuss
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/
bjkchoy
·4 ปีที่แล้ว·discuss
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!
bjkchoy
·4 ปีที่แล้ว·discuss
One of my preferred video clip ever was filmed entirely during a parabolic flight:

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