Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
zig
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Nice! I did this hacky way 6 years ago https://github.com/olegantonyan/rustygem. Rust is just perfect language for high-performance extensions: no garbage collector, no sudden segfaults, builds into shared libraries
Someone finally did it! You should not be writing C in 2021. I have written plenty of C and it is incredibly difficult to write correctly, due to implicit type promotion between signed/unsigned types and memory mapped nature. Rust is a better option to C, and can generate C libraries due to Rust not having a GC. I also hope this could open the door to Zig extensions. Not everyone might like Rust and it's borrow checker, and might insist on sticking with C due to a false choice between Rust and C. Zig is a nice middle ground between the two, as it has all of the usual benefits of Rust (safe pointers, better type checking, integer under/overflow-checking), but with explicit memory management instead of a borrow checker.
You could do what the Python folks did and ship Zig as a gem: https://github.com/ziglang/zig-pypi