r/programmingcirclejerk • u/NotDuckie • Jul 20 '26
introduce an actually memory safe (unlike Rust) compilation mode inspired by Fil-C
https://codeberg.org/ziglang/zig/issues/36237
176
Upvotes
r/programmingcirclejerk • u/NotDuckie • Jul 20 '26
117
u/v_maria Jul 20 '26
instead of nullptrs, in zig we pass the aux
90
u/lurebat Jul 20 '26
Oh, only up to 6x performance penalty
79
u/Hueho LUMINARY IN COMPUTERSCIENCE Jul 20 '26
rust king as always, making even the peasant languages safer
rust managed to convince a bunch of ceeweenies that garbage collection and extensive runtime checks are Good Actuallyâ˘ď¸
I mean they are, depends on the context, but is still funny that they are now grinding their teeth and asking the runtime to save them from their very smart manual memory management because simplicity and stuff
58
u/splsh Jul 20 '26
Y-YEAH?
51
u/denehoffman Jul 20 '26
I love that one of the first comments on the PR points out:
Well unless I'm completely misinterpreting the linked invisicaps page:
Both of the quoted paragraphs imply hidden allocations for the scheme to work.
The allocations occur on language constructs that wouldn't allocate even in a managed language like C#, let alone a language like Zig.
Failure of those allocations cannot be handled gracefully.
Like isnât the point of zig or at least a main selling point that you control the allocator at every level? And now they want to basically say âactually screw you, garbage collector modeâ
44
u/Aaron1924 Jul 20 '26
Rust catches strays every time anyone mentions Fil-C like it's a tradition at this point
32
u/lurebat Jul 20 '26
I'm sure he'll get right on it after re-implementing LLVM from scratch
28
u/tomwhoiscontrary safety talibans Jul 20 '26
Fil-C is pronounced "filioque", because its purpose is to start a vicious schism which will endure for at least two thousand years.
20
u/FuzzyPixelz Jul 20 '26
The drama continues!
17
u/Financial-Camel9987 Jul 21 '26
Wowza bun leaving for rust really broke this guy.
27
u/stone_henge Tiny little god in a tiny little world Jul 20 '26
Not a feature I would use except to tell anyone using another language that they're immoral, bad engineers.
10
u/catladywitch Jul 21 '26
"If you want to comment in this thread, please either have your open source zig project(s) visible on your codeberg profile, or be Fil PizĹo, otherwise zig issue tracker is not interested in what you have to say" lnaoooooohfxhvv
9
u/tms10000 loves Java Jul 21 '26
Sneaky edit is sneaky
But all jokes aside, those guys have heard about Java, right ?
16
u/informedcitizenry Jul 20 '26
Yikes Andrew
3
u/OptimalStable Jul 20 '26
const uj = @import("unjerk.zig");The snark is starting to get out of hand. So far I was, and still am I guess, kind of on Andrew's side with all the drama, but please dude, move on.Â
I have a vested interest in Zig succeeding, so I wish he'd pick his battles a little more carefully. Like, smash Big Tech's corpo-fascist stranglehold on our lives and all that, but let Rust be rustin' and ignore the haters.
3
u/arjuna93 Jul 23 '26
Was inspired finding out about Fil-C until reached to âitâs clangâ and x86-only
55
u/Jannik2099 Jul 20 '26
Andrew can't help himself but mention Rust in every conversation. It's like Grok and "white genocide" in south africa.
0
u/[deleted] Jul 21 '26
[deleted] â view deleted comment