News for hackers. Stuff that matters.
Re:NIR: Nim Intermediate Representation by pjmlp on Sunday October 01, 2023 @07:18AM (#37724835)
I don't see a value in Zig until they have a sound story for UAF.

We should be getting back what Xerox PARC was already doing in systems programming with Mesa/Cedar, Interlisp-D and Smalltalk in terms of systems programming.

This is where I see a value in languages like D and Nim, Swift, or even Go, regardless of the opinion on much systems it can be used for.

Back in my day writig compilers, linkers and OS services was considered systems programming.

Re:NIR: Nim Intermediate Representation by jstimpfle on Sunday October 01, 2023 @08:50AM (#37725441)
What were they doing? From all I can tell they require to hold down the shift key a lot, other than that it's hard to find good information how they offered anything not offered by contemporary ecosystems. Or how they offered a better set of tradeoffs in some situations than we can have today.
Re:NIR: Nim Intermediate Representation by pjmlp on Sunday October 01, 2023 @09:39AM (#37725856)
Easy to find out when one cares, all the stuff is on Bitsavers and Computer History Museum sessions.

A small taste,

"Eric Bier demonstrates Cedar"

https://www.computerhistory.org/collections/catalog/10278104...

Full graphics workstation in 1980's, implementated in a systems programming language using reference counting, with a tracing GC as cycle collector, with an object model partially implemented years later as OLE/COM.

Re:NIR: Nim Intermediate Representation by jstimpfle on Sunday October 01, 2023 @10:04AM (#37726050)
Watching the video, thanks. But back to my question, what of those is missing today?
Re:NIR: Nim Intermediate Representation by pjmlp on Sunday October 01, 2023 @10:12AM (#37726124)
Systems programming in a memory safe language with automatic memory management, across the whole OS, with a type safe ABI supporting dynamic loading, as starting point.

Swift is the closest to it, and it is still not widely adopted across Apple ecosystem, although as per CppCon 2023's Apple talk they even have plans to push it into the kernel (long term).

Re:NIR: Nim Intermediate Representation by jstimpfle on Monday October 02, 2023 @06:07PM (#37745121)
"Across the whole OS" is nothing special, it just means there hasn't been enough interest by diverse enough users of the OS. This is a research system, which is different from an OS supporting a huge diversity of ecosystems through the past 3 decades or so. There are different forces at play.

I'm sure there are quite a few systems worked on by lone developers today that make for a nice and smooth demo. The hard part is getting adoption and making it ergonomic and performant for a variety of uses, not just demo stuff.

Re:NIR: Nim Intermediate Representation by jstimpfle on Sunday October 01, 2023 @08:55AM (#37725481)
A fundamental problem that I see today ist that most systems end up being either too rigid or too unstructured. We always want guardrails but then we need ways to remove them. What sounds good in theory or looks amazing on a demo often becomes impractical in a realistic development setting.

(There is a hint on something like that wrt. Mesa/Cedar on wikipedia. FWIW -- I've obviously never used it myself)