Re:Show HN: Spall – WASM-based profiler for JavaScript and C...
by matiasfernandez on Monday January 02, 2023 @12:21PM
(#34220602)
Impressive work! Where is the net package getting worked on? Is it the "core_net" branch or do you have your own fork?
Re:Show HN: Spall – WASM-based profiler for JavaScript and C...
by crdavidson on Monday January 02, 2023 @02:00PM
(#34222145)
Yep, core_net is the bulk of it, and I have a fork with changes to bring it up to date with master, we're just hashing out final details to get it ready to wrap and ship at this point.
Outside of the WASM context where Odin runs into some difficult friction, systems-level work has been reasonable. I wrote a good chunk of a C/DWARF debugger in both C and Odin to compare, and Odin was by far the more pleasant language to write it in, my Odin code was much smaller because I didn't need xmacros, and I had proper namespaced enums, tagged unions, and slices, but still looked/read pretty similarly to well-written C or Go. I did have to wrap a few syscalls myself though, because the core library doesn't quite cover things like ptrace or networking yet.
I've put a fair bit of work into getting cross-platform networking into Odin's core library, hopefully we'll see it show up soon enough, and get some of those common nice-to-haves crossed off.