AOT compiling code that calls eval will require its own copy of the runtime.
iโve built a couple ruby AOT compilers and all the bloat iโve seen is from needing to hold a separate copy of that runtime to link against at AOT compilation time for those cases.
libbun / bunc would help keep bun small, but def not as cool as a single binary ๐
@felixrieseberg I would love to see code review interviews become a thing. Evaluates code literacy, taste, attention to detail, communication skills, and welcomes collaboration / discussion between interviewer and candidate.
one thing that initially attracted me to programming was that the barrier to entry into the field was ~$0 (minus the initial cost of a computer) and the willingness to learn.
now with coding agents, oneโs ability to expand into multi-agent workflow orchestration level problems quickly demands ponying up hundreds to thousands of dollars in tokens and/or beefy machines, and i worry these costs make it harder for smart but less affluent developers to overcome this barrier to entry.
We discovered a sophisticated recording device that was hidden inside one of our offices. We used our models to understand the device and where it had come from, identifying that a specific employee had planted it a few days earlier. We referred the matter to the FBI, and weโre grateful to the agents and prosecutors who moved quickly to make an arrest. The FBIโs investigation is ongoing and we will continue to support their work.
At this time, we have no indications of this individual inappropriately accessing or exfiltrating model weights, source code, or customer data. The employee was terminated.
We take protecting our technology, data, and people seriously, and as a matter of national importance. Our security program is designed to protect against a wide range of threat actors, from insider risks to cybercriminals to nation states, and this case is an example of how AI can help address these sophisticated security threats.
After attending a talk last night with Ben Davis of Illuminate (https://t.co/ZXyAo2xRpD), and Garry Tan (@garrytan) of YC I walked away with one big takeaway: give more, and give with zero expectations of what will come from it.
So today, I'm open sourcing Zeo, a Ruby ahead-of-time compiler written in Rust and built on Cranelift: https://t.co/QezuOpA6Ul
With Zeo, you can compile whole Ruby programs into portable native binaries that require no external dependencies.
Zeo targets Ruby 4.0.6's behavior, and supports bundler, rubygems, and most Ruby syntax. If it theoretically can support it, but doesn't yet, that's a bug. Contributions are welcome.
I've been fascinated by this problem of compiling Ruby code to native code for a while now. Ruby's a fun programming language, but distributing Ruby programs as portable native binaries has been anything but.
When matz released spinel (https://t.co/2Wjh0QJx6b) I immediately started digging into it and contributing. Spinel is a Ruby AOT compiler written in C, parsing and lowering Ruby code to C code, which is then compiled and linked with cc to produce a native binary. It's a fantastic project which I wholeheartedly support and have contributed countless hours into.
Reading spinel's code is not for the faint of heart, so I wanted to see if writing a Ruby AOT compiler in Rust was possible, which first led me to building Zeo as a Rust-based equivalent to Spinel, one that parses Ruby, lowers the AST into Rust code, which is then compiled using rustc. It worked, but the emitted code was large and difficult to optimize.
In a second pass approach, the version released today, Zeo parses Ruby to AST using Prism, lowers that AST to Cranelift IR (.clif), and compiles that .clif + metadata into a native binary using the Cranelift compiler backend (https://t.co/e3dnhPPl9f)
The performance results are more than I could hope for. In many cases, the resulting binaries are up to 11x faster than CRuby, and on average 1.77ร across 61 benchmarks. And most importantly, these binaries are portable and require no external dependencies.
I couldn't have built this without the inspiration of matz, and the perspiration of AI grinding through countless compatibility issues. And to Ben Davis who inspired me to give without expectations.
So today, I give Zeo to the world, to the Ruby community, hoping to inspire others to reimagine what can be built and shared with Ruby as we go into this wonderfully strange future together.
@MLNow@io_y_g I made the SF ICE Guide https://t.co/NChVPoCzBW so you can stay prepared & keep each other safe during ongoing ICE operations in the SF Bay Area.
๐ I built the SF Bay Area ICE Guide โ https://t.co/uO9eeFEH58
A community resource to help Bay Area residents stay safe, informed & prepared during ICE operations.
๐ 24/7 hotlines โ๏ธ Legal aid ๐ Guides in 6 languages
Please share to help keep our neighbors safe ๐