You can go so far with simple data in Rust that it's kinda surprising when you start learning about interior mutability: https://doc.rust-lang.org/std/cell/index.html
If you give a function a value of &T, they can actually mutate any cells within it. It's not sufficient to look for &mut T usages.
miniblog.
2
I keep forgetting how powerful phones are: here's a demo of using external peripherals and developing applications on the device itself!
https://puri.sm/posts/the-simplicity-of-making-librem-5-apps/
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:
Showing 226-240 of 345 posts


