0atman
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.
No developers were persuaded to change their language from 'open source' to 'free software' that day in 2009, him shouting at us was utterly ineffective.
We need good communicators, not just passionate people. I'm not suggesting he shouldn't write his good ideas down, but keep him away from an AUDIENCE.
He screamed at people for using 'open source' instead of 'free software' in their questions, raved about the Amazon "Swindle" like a 12-year-old, and talked over and down to everyone. He was often accurate in the core of what he was trying to say, but his attitude was unhinged, and discouraged most people from interacting.
The 100 or so developers all left the talk in silence, mourning the loss of the hero we had imagined him to be.
To those who say we need him for GNU outreach: we absolutely don't. ANYONE would be better for the job.
I thank him for his many incredible contributions to our world, and wish him a speedy recovery, but we don't need these talented assholes to represent our community.
When I was first getting started I learned so much from Amos and his INSANE deep-dives over at fasterthanli.me, basically he taught me Rust. For my 3rd video I messaged him and asked if I could base it on his article and he said 'go for it' - since then we've both found ways to go full-time in our respective worlds, and we shitpost in a private discord together :-D
This video isn't really a good intro to either my channel or the WHYs of Rust, just the syntax.
If I may signpost my own intro to Rust playlist https://www.youtube.com/watch?v=oY0XwMOSzq4&list=PLZaoyhMXgB...
And an example of one of Amos's deep-dive videos "C++ vs Rust: which is faster?" https://www.youtube.com/watch?v=VMpSYJ_7aYM
Sometimes tech is really good, dude, it's ok, don't die on a weird hill, not everything is shit.
Emscripten and experimental backends hardly count as support for Nim. Python can run in webassembly by the same token, but no one would. The standard rust compiler compiles directly to webassembly, natively, with the stable toolchain.
In other languages, yes, the js bridge is a problem. However, not only will this be fixed in browsers at some point, but rust is so fast that TODAY yew.rs, a mature wasm framework, is faster than react.
My thoughts are better explained in this video https://youtu.be/P4LMfkFLRsI
What Rust does is a revolution because they solved the problem of memory safety without garbage collection with the Borrow Checker. The knock-on effects are GARGANTUAN.
This was a hard problem to solve, and it makes the language more complex to learn. But it unlocks webassembly, real-time, bare-metal code, and all the language's superpowers. If you 'cheat' with a GC, you get nothing.
Of COURSE I know about Nim's plugabble GC options. That doesn't impress me at all (though Araq's effort is to be commended). In Nim they are compiler options, in Rust they're libraries. For example, at a per-variable level, I can choose to reference count with https://doc.rust-lang.org/std/sync/struct.Arc.html
If you want python, you can have it inside a Rust macro, sort of like this https://crates.io/crates/inline-python With Macros and no GC, you can rebuild ANY FEATURE inside Rust, the floor of the abstraction is the metal, and the ceiling is the sky.
This is what Rust is all about: full power to the developer, no compromises. My video on this topic for those interested is: https://www.youtube.com/watch?v=PuMXWc0xrK0
I love both languages: I'm a maintainer of iNim, and creator of the Rust channel, No Boilerplate, but I can only see one language being the standard next 40 years.
(to be clear, I love emacs, and use spacemacs as my distro!)
From memory: VLC, GIMP, Blender, Audacity, Firefox, Gedit, OpenOffice, XBMC (now Kodi), FileZilla - the list is HUGE
Find your favourites here: https://en.wikipedia.org/wiki/List_of_free_and_open-source_s...