miniblog.

41
pledge() and unveil() are gradually being adopted by operating systems other than OpenBSD:
12
@kensanata@octodon.social My suspicion is that once you can self-host, it's tempting to only maintain one version.
1
Hosting a tech conference inside Animal Crossing! https://aparker.io/posts/deserted-island-devops/ Super creative idea and seemed to work reasonably well.
1
It's a real shame that GitHub doesn't run CI against PRs from new contributors any more: https://github.blog/2021-04-22-github-actions-update-helping-maintainers-combat-bad-actors/ Preventing arbitrary cryptocurrency mining code is incredibly hard though. It's increasingly common: https://layerci.com/blog/crypto-miners-are-killing-free-ci/
3
JS projects can accumulate a ton of dependencies, but TIL that npm can explain why you have them. `npm explain foo` or `npm why foo` shows the dependency path to foo. Super handy when you weren't expecting to depend on something.
11
TIL that `cargo t` and `cargo r` work as `cargo test` and `cargo run` respectively. Several keystrokes saved!
Python is discussing an elegant approach to tracebacks, where the subexpression that caused the exception is highlighted:
3
How do you randomly sample from non-uniform distributions? This is a common problem when computing random numbers. TIL about rejection sampling, where you randomly sample within an area that includes the distribution, until you hit a value inside:
1
How to make Rust code faster, including profiling, LLVM whole-crate optimisation, and avoiding costly error checks: https://likebike.com/posts/How_To_Write_Fast_Rust_Code.html
Would it make sense for compilers to have a gas model for optimisations? It would enable speculative execution of transforms that are sometimes expensive.
1
TIL that Rust's dbg! macro also works in release builds, so you can debug issues when you need the perf of a release build. This differs from debug_assert! which is ignored in release builds.
42
Tectonic is a fabulous new implementation of TeX that doesn't require a large distribution, doesn't write intermediate files, and automatically loops TeX and BibTeX!
Deep dive into netcode in the Apex Legends shooter, respecting fairness between players with different latencies, and choosing server tickrates:
92
Bootstrapping a full GCC toolchain from an extremely minimal hex editor has an astounding number of steps: https://github.com/fosslinux/live-bootstrap/blob/master/parts.rst I didn't realise just how many tools are self-hosting. Not just GCC, but also flex, bison, automake and even perl!
3
What languages have changed the most since their creation? JS? IIFEs and prototypes to modules and classes. C++? Plain pointers to smart pointers. There must be more dramatic examples.
Showing 1,246-1,260 of 7,652 posts