0atman
Joined 14 years ago
Joined 14 years ago
This test is nice because, as it's numeric, you can vary it slightly and test it easily across multiple APIs.
I believe I first saw this prompt in that paper two years ago that tested many AI models and found them all wanting.
(If you're just making a simple rest api backend, I still dig the simplicity of poem-openapi + sqlx)
I can't understand if rust on rails is a joke, badly written by gpt, or written by someone who doesn't understand both Rust and web development in general. It's full of typos and baffling design decisions. (shelling out to an external comand to generate rust code?! MACROS EXIST!)
I use html-node which has a typed submodule for even greater strictness. I just build some valid html, make a string and write that to the output directory and get on with my life. Eg: https://github.com/0atman/noboilerplate/
Templates... Rust functions
Flow control... Rust match expression
Abstraction... Rust modules
Html validation... Rust compiler
I like to think that in writing the html-node crate, Vidhan taught the compiler to speak html! https://lib.rs/crates/html-node
Making queries like this checks the sql is valid at compile time by connecting to the real database and running it with demo data inside a rolled-back transaction!
(If you'll forgive the self promo, I explained it better in this video https://youtu.be/pocWrUj68tU)
Rust's macro system allows you to program the compiler with each new program, and sqlx is my favourite example of this.
Insane.
You've forced me to look up the talk, and the one I have the ticket for in my email is actually from 2011, my memory of the date was wrong: https://localevents.theiet.org/register.php?event=bc7fd2
Someone took a terrible video of it (ah 2011 video) here https://www.youtube.com/watch?v=vazlMe7sNzM but that doesn't seem to include the Q&A section where he went off the rails.