//
sign in
Profile
by @danabra.mov
Profile
by @dansshadow.bsky.social
AviHandle
by @danabra.mov
AviHandle
by @dansshadow.bsky.social
ProfileHeader
by @dansshadow.bsky.social
ProfileHeader
by @danabra.mov
ProfileHeaderAlt
by @jakesimonds.com
ProfileMedia
by @danabra.mov
ProfilePlays
by @danabra.mov
ProfilePosts
by @danabra.mov
ProfilePosts
by @dansshadow.bsky.social
ProfileReplies
by @danabra.mov
Record
by @atsui.org
Skircle
by @danabra.mov
StreamPlacePlaylist
by @katherine.computer
+ new component
ProfilePosts







Loading...
How to implement "defer" keyword in C (allows to free memory and other resources correctly): implementations with C23/GCC, C11/GCC, GCC/Clang... - Blog Post by Anton Zhiyanov @antonz.org #Programming antonz.org/defer-in-c/
1mo
Laurent Cheylus
In today's crazy world, writing C is the only sane thing to do. P.S. You don't need AI; you have AI in netdb.h.
2d
Anton Zhiyanov
The "io" package is a core part of Go's standard library. Porting it to C was an interesting challenge. I had to figure out how to handle slices, multiple return values, errors, and interfaces in C. But in the end, it worked out pretty well! antonz.org/porting-go-io
Could Go be a better C? I think so! Meet Solod — a strict subset of Go that translates to C, without hidden memory allocations and with source-level interop. antonz.org/solod
5d
9d
antonz.org
Eight ways to implement defer in C.
(Un)portable defer in C
Anton Zhiyanov
Anton Zhiyanov
Solod (a subset of Go that translates to C) now has an online playground! I guess that means it's a real language now 😁 codapi.org/so
If you stare into Go's stdlib long enough, you start seeing things. Dark things. Things you weren't meant to see. Like this function that uses variables named φ and β.
Working on something crazy these days — using Go to write regular C code. Wish me luck :)
What makes modern systems languages stand out? Many things — but allocators are a big one. Let's explore how Rust, Zig, Odin, C3, and Hare design their allocators, and then build one in C! antonz.org/allocators
4d
1d
17d
1mo
Anton Zhiyanov
Anton Zhiyanov
Anton Zhiyanov
Anton Zhiyanov
antonz.org
Interfaces, slices, multi-returns and alloca.
Porting Go's io package to C
A subset of Go that transpiles to regular C, with zero runtime.
antonz.org
Solod: Go can be a better C
Exploring allocator design in C, C3, Hare, Odin, Rust, and Zig.
antonz.org
Allocators from C to Zig