I haven't received my author's copies yet, but Amazon just notified me that the print edition of Advanced Hands on Rust is now available. https://t.co/bo79fNJmOQ
You can also buy the ebook from Pragprog right now, 50% off with the coupon code "save 50"
#rust
@FBorsik@VintonGCerf@parracatholic It's like we've built another Great Library, and forgotten to waterproof the archive. And like all libraries, there's no way to know what will actually be important in the future!
Can AI build a production-ready REST API in Rust in just 7 minutes? ๐ฆ๐ค
In Episode 3, @herberticus uses OpenCode and a detailed ~100-line prompt to build a tested, Dockerized bookstore service.
โ Multi-crate architecture โ Strongly typed IDs โ Shared authentication middleware โ Idempotent database migrations
Better instructions. Better architecture. More maintainable code.
๐ฅ Watch: https://t.co/wtmsTe1CkZ
@jhuffman42@kamilskowron That wouldn't really be either language (Erlang was for stable telco systems, I loved using it there!), and in both languages it pays to know what you're doing (see DHH's basic errors in both).
@jhuffman42@kamilskowron You can use both at once, and channels between the two. Works very well.
Otherwise, you need to be disciplined with spawn blocking (which literally sends your job to an actual thread pool).
An io-uring backend can also make a lot of io non-blocking.
@gwenshap Usually by finding that your architecture could be better, profiling, optimizing the hot loop - you know, the stuff that software developers have been doing for decades!
@davepl1968 So like most things involving intellectual property, I expect a very messy transition period to <something new>, whatever that may be!
@davepl1968 In many ways, it's "copyright laundering" - you put something through an LLM wash and hope that the result is unencumbered. It's going to be an interesting transition; we can't close Pandora's Box, but the implications from proprietary to GPL software are potentially huge.
@ImLunaHey@t3dotcodes I've typically setup a local model in opencode, and then pointed at it (I stopped using t3, but the harness is doing the talking to the model host anyway - t3 is just outputting the conversation and maybe doing orchestration).
We just released Polars 2.0.
It removed many of our legacy decisions makes the streaming engine our default and promotes SQL to a first class citizen within Polars.
It comes with initial out-of-core (spill to disk) support, a new Map data type and a lot of performance improvements. In fact, we think Polars is now one of the fastest analytical SQL engines on a single node. See benchmarks in the post: https://t.co/ATc6UzJqby
@kamilskowron There's at least one Rust implementation of BEAM.
Actors in Rust are also really popular both channel based and networked, with varying levels of supervision (but usually not hot swapping).
https://t.co/qNdPuCd1u5
@ScottShapiroUXD@ardanlabs From experimenting while I put this together, the engine choice remained the same unless I explicitly specified one. Single player support never appeared unless requested. I didn't check if other models prefer a different base engine.
Can you just build things with AI agents? ๐น๏ธ๐ฆ
In Episode 2, @herberticus puts it to the test by building Pong in Rust with two different approaches:
โ 1-line prompt vs. 19-line engineered prompt
โ Macroquad vs. Bevy
โ Debugging with AI agents
โ Code quality and modularity
โ The โgenie problemโ with ambiguous prompts
AI can write the code. Engineering knowledge still shapes the result.
๐ฅ Watch: https://t.co/NsT6IdYSMJ
As much as I hate quoting DHH, the results only surprised me in that Go should have done a little better. Presumably he didn't read the code for any of the languages. Rust is (almost) always a good performance choice.
I've had agents implement and optimize the Campfire web app in Elixir, Go, and Rust. Yes, Ruby is the slowest. I didn't care about that when the pay-off was huge in terms of productivity and developer joy. But if you're no longer reading the code? https://t.co/MM4yFETaI3
@GregMolnar I'm part of the crazy community, I love it! (Author of 3 Rust books, Rust trainer at Ardan Labs)
It's really only slow development while you get used to it (I was a c++ dev for decades before).