42 karma · joined Feb 27, 2019 (7y ago) · 17 submissions
1.
Safety in an Unsafe World(lwn.net ↗)
3 points · by gadmm · 2y ago · discuss
comment 2y ago · link · parent
comment 3y ago · link · parent
Look for Address dependency in Arm: see e.g. https://developer.arm.com/documentation/ddi0406/c/Appendices... .
Note that the approach in the original post is also wrong if the GC sees the expected value, because it would try to access it regardless of whether the prediction is valid.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
11.
Memory Management with Stephen Dolan (OCaml)(signalsandthreads.com ↗)
3 points · by gadmm · 4y ago · discuss
12.
Does the Bronze GC Make Rust Easier to Use? A Controlled Experiment(arxiv.org ↗)
3 points · by gadmm · 5y ago · 2 comments
13.
A program for the full axiom of choice(lmcs.episciences.org ↗)
3 points · by gadmm · 5y ago · discuss
comment 5y ago · link · parent
First, I think knowing concepts from various languages makes better programmers. But Rust in particular is part of a family of languages along with C++ that are very powerful and versatile, but that require a strong discipline in order to write correct programs. And while C++ is more widespread currently, learning Rust teaches you this discipline, simply because the compiler will keep rejecting your programs until you understand it. C++ compilers on the other hand happily accept nonsensical programs, and it is hard to find modern C++ experts to teach this skill (and sometimes it is even hard to get experts agree on what the discipline is!). Yet in some areas where C++ has few alternatives, unreliable software can have huge consequences. So learning Rust is important because it will also make of you a better C++ programmer.
comment 6y ago · link · parent
I do not find realistic the suggestion that low-latency code could simply avoid safe points. To get a low latency, one in general avoids promoting values, but one still allocates on the minor heap. One can achieve much less without allocating at all, and moreover OCaml multicore adds extra safe points for a reason, even if they could be turned off.
In the end, what you write about details of the runtime system illustrates my point: the two minor collectors have qualitative differences regarding latency, that affect available programming styles, and this is not measured by the benchmarks.
comment 6y ago · link · parent
Systems programmers in OCaml can apply techniques to achieve a low latency, but these are unlikely to scale as well under ParMinor. Indeed, with the latter, it is not going to be possible to have a low-latency domain and a non-low-latency domain coexist: the whole program has to be written in the low-latency style.
This is clear from the qualification “stop-the-world” for ParMinor, but worth to note for people who would read the claim out of context. There can be further qualitative differences in the GC design that are not measured by the benchmarks.
17.
Featherweight Go (A generics design for Go)(arxiv.org ↗)
4 points · by gadmm · 6y ago · discuss