Damus

Recent Notes

amen zwa, esq. · 5w
This article, "C Is Not a Low-Level Language; Your Computer is Not A Fast PDP-11", by David Chisnall of Cambridge, is a critical self-assessment of C, modern CPU architectures that pander to C, and mo...
James Widman profile picture
@nprofile1q... @nprofile1q... David, re:

> A processor designed purely for speed, not for a compromise between speed and C support [...]

How feasible do you think it would be to support existing C programs on a system like that through some set of bridging extensions to the C language (maybe something reminiscent of the extensions that were added to ObjC in order to support Swift)?

Does the answer to that question change if we assume that this new architecture supports CHERI or similar?
1
amen zwa, esq. · 5w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqzd6p99dvq75u96hrvzr6ukhas3ydy6830gtje245573pfvg54xqq38c5ug nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqncxka2nmkqkndk4wkuf3tz3l39z9m8xax3aen3h8tvudwgjmf5mq4uv2v2 James, I am aware that your question was addressed to David, and I'm j...
Lesley Lai · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqzd6p99dvq75u96hrvzr6ukhas3ydy6830gtje245573pfvg54xqq38c5ug switch (e) { case c: { break; } << dead code here >> } << Should be at here >> is definitely a bug, though.
Lesley Lai · 7w
Spent way too much time debugging this stupid bug. C-style switch statement is annoying. https://cdn.masto.host/mastodongamedevplace/media_attachments/files/116/726/279/637/589/184/original/8bed11ee1...
James Widman profile picture
@nprofile1q... this seems like the kind of thing that clangd could help with...

it already provides a code-action to auto-fill a switch with a case for each enumerator; so it seems like we ought to be able to set a config option that specifies a format string that clangd will use during auto-fill; like:

# ~/.clangd:
Completion:
NewEnumCaseFormat: "case %c: { abort(); }"
1
Lesley Lai · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqzd6p99dvq75u96hrvzr6ukhas3ydy6830gtje245573pfvg54xqq38c5ug I wish static analysis can warn this, but neither my compiler (clang) nor clang-tidy did
James Widman profile picture


Related: everyone should go to nebula and watch the 2nd episode of _Day Pass_, which is all about the free public transit system in Luxembourg.

There's lots of potential for many other free & high-quality public goods/services. And we could have all of it if-and-when we organize.

1
David Njoku · 20w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqzd6p99dvq75u96hrvzr6ukhas3ydy6830gtje245573pfvg54xqq38c5ug What's Day Pass? Tried googling it, but it's such a difficult phrase to search for.
myrmepropagandist · 21w
I'm also realizing that all of those times Trump said "I stopped 7 wars! I prevented so many wars!" should have clued us in more to what he was going to do next. His people have been primed with thi...
James Widman profile picture
@nprofile1q... i thought their deal, more than anything else, is a belief in a strict hierarchy...?

so if the leader of that hierarchy feels like being isolationist this week, then they're isolationist. if he's more in the mood for war, then they're in the mood for war.
1
myrmepropagandist · 21w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqzd6p99dvq75u96hrvzr6ukhas3ydy6830gtje245573pfvg54xqq38c5ug That kind of thinking may keep some of them in the fold. But the US has a long history of loving isolationism. Some of this history is rather ugly, isolationism can be ugly. The same...
J3RN · 24w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqzd6p99dvq75u96hrvzr6ukhas3ydy6830gtje245573pfvg54xqq38c5ug nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq930kxk5ecnfe5xk7f8gfxqx7st8t936fpgz0a2jr6vtwmdw93mwqdu7ues Good(?) news! They're all real.