what’s missing from the index for this textbook about low-level C programming?? 🤔
Notices by John Regehr (regehr@mastodon.social), page 2
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:31:19 JST John Regehr
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:28:39 JST John Regehr
ugh!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:27:58 JST John Regehr
last night and today
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:27:35 JST John Regehr
wow I just left a comma out of an array initializer so the compiler did string concatenation and that was more confusing than I'd have expected
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:16:51 JST John Regehr
one of the nastiest tidbits from the Therac-25 incident -- the people testing the software weren't proficient with it and therefore had a hard time triggering the abundant latent race conditions in the interface
don't let anyone tell you that software testing isn't creative work, it is!!
https://web.stanford.edu/class/archive/cs/cs240/cs240.1236/old//sp2014/readings/therac-25.pdf
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:16:50 JST John Regehr
I've almost stopped assigning Therac as reading for students, it's so old that they just don't feel the connection. which is a shame! cause shitty software and hubris are timeless.
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:16:50 JST John Regehr
the linked document should be mandatory reading, but it's tough stuff -- contains some highly visceral subjective descriptions of being inside a radiation therapy machine when it runs amok
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 10:16:22 JST John Regehr
is there a good reason all 3 x86-64 compilers use lea instead of inc or add to increment a long?
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 07:08:29 JST John Regehr
@zwarich I've still not written any non-trivial Rust. for compiler development, I want classes, GC, pattern matching, and of course memory safety. but I don't want to write OCaml :). maybe Swift is the compiler language if Rust isn't it.
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Saturday, 25-Jan-2025 02:42:57 JST John Regehr
so far I don't think we've seen an obviously plausible LLVM successor, but it's nice that people are trying!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Tuesday, 21-Jan-2025 16:26:21 JST John Regehr
"Compiler Fuzzing in Continuous Integration: A Case Study on Dafny"
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Sunday, 19-Jan-2025 09:21:25 JST John Regehr
@lzg David Lynch is apropos right now, and he will save you some effort by taking over the task of hallucinating things
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 17-Jan-2025 13:28:36 JST John Regehr
@andrewrk hand twins!!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Friday, 17-Jan-2025 13:28:26 JST John Regehr
the prettiest arrowhead I ever found in Utah!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 16-Jan-2025 09:13:00 JST John Regehr
@lzg Sarah and I like to watch Silo and every single episode we say "it's too dark" and "turn on subtitles I can't hear anything"
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 16-Jan-2025 03:28:56 JST John Regehr
@dalias @Sobex @dave_andersen @va2lam @zwol @chipchristian yeah I imagine that at present, a lot of code works only due to separate compilation
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 16-Jan-2025 03:27:09 JST John Regehr
@dalias @Sobex @dave_andersen @va2lam @zwol @chipchristian ah, no problem then!
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 16-Jan-2025 03:25:10 JST John Regehr
@dalias @Sobex @dave_andersen @va2lam @zwol @chipchristian I thought effective type was conferred when you first store to the typeless memory, and remains the same after that
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 16-Jan-2025 03:11:06 JST John Regehr
@dalias @Sobex @dave_andersen @va2lam @zwol @chipchristian ah, super cool. not something I can verify with quick inspection :).
but then eventually, memory is going to be repurposed, for example when you split a block that has already been used by the client. in that case we're just relying on separate compilation, I suppose?
-
Embed this notice
John Regehr (regehr@mastodon.social)'s status on Thursday, 16-Jan-2025 03:02:59 JST John Regehr
@Sobex @dave_andersen @va2lam @zwol @chipchristian hey @dalias -- I just took a super quick look at MUSL's mallocng and it seems to be dereferencing typecast pointers in ways that might violate strict aliasing. do you mind telling us why this isn't a problem? maybe you insist that this is compiled with strict aliasing disabled?