|
|
Subscribe / Log in / New account

Zig 2024 roadmap

Zig 2024 roadmap

Posted Feb 3, 2024 23:00 UTC (Sat) by pebolle (guest, #35204)
In reply to: Zig 2024 roadmap by mpr22
Parent article: Zig 2024 roadmap

Knifes, "being physical artifacts designed for applying a concentrated mechanical impulse to other physical artifacts, are inherently dangerous." I'm sure your household includes knifes. You get my point.

Is there an example of a 100% memory safe language that allows one to do interesting things at an acceptable cost?


to post comments

Zig 2024 roadmap

Posted Feb 4, 2024 3:25 UTC (Sun) by tialaramex (subscriber, #21167) [Link]

I'm going to guess that you aren't English.

In English law it's a criminal offence to have any "bladed article" in public unless either you have a specific lawful excuse for why you needed that object here and now (and no "Self defence" is specifically never a lawful excuse) or it meets some very narrow criteria which protect small folding pocket tools such as a "Swiss army" knife.

It doesn't even matter whether the blade is sharp. I used to carry a butter knife to open the front door of a friend's flat when I was a student (saves going down to the building entrance to let her know I'm outside, and this is before everybody has a phone), but it was important not to take it off site, because that's a bladed article, even though you'd be lucky to cause a graze never mind serious injury a police officer knows that's enough to arrest you.

And yes, WUFFS is an entirely safe language. The price you pay is Generality, WUFFS is a special purpose language for Wrangling Untrusted File Formats Safely (hence the name) and so you cannot write general purpose programs in it. In exchange for this high price you get entirely safe programs (for example bounds checking isn't added by the compiler, it will just inherently reject any programs with potential bounds misses, they won't compile, so either your code just has no misses or you wrote the bounds checking correctly yourself and averted such misses) and of course you get much better performance than a human programmer would achieve in languages like C.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds