Rust is Eating JavaScript
-
I think there's room for a rust-lite language that is GCed. Something with a functional-style type system and that compiles to machine code.
Roc is a candidate for this language. Basically Elm that compiles to machine code, but with a number of tweaks to make it work for more than just a web front end. Like Elm, the type system is haskell like, but simplified.
-
Thanks, I was looking for a more straightforward academic-style textbook for non-beginning programmers, but I'll make do with what is out there.
-
True, but of course it's always a trade-off. At a certain point I have to defer to your judgment, at least until I've written some Rust code. But I've written a fair amount of C++ and a little bit of Ada and don't find them all that convenient compared to Python or Haskell or whatever. We'll see.
-
Thanks, Roc sounds interesting. Ocaml also maps more closely to machine operations than Haskell does, so it has always seemed like another alternative. AMD has something called ROCm which is their version of CUDA, but I assume that is unrelated.
-
IME a language is as good as its package manager and libraries, and cargo is great.
-
The JS tooling universe has always seemed like a Lovecraftian hellscape to me.
That's most of any programming of today for me.
If it can't be grasped in a couple of days - then na-ah.
I can patch something I need working which doesn't, written in C.
autotools ftw
-
This is what I've been going through, sold as teaching rust to people who already know other languages. I'm not very far in at all, but it seems decent? https://google.github.io/comprehensive-rust/
-
Everything eventually becomes a crab.
-
Eh, it's not that lightweight, Lua is much better for that.
-
That means eventually everything tastes great when smothered in butter.
-
Rust By Example is very good for showing the ropes in a very practical way, that's how I got up and running with it.
Secondly is the O’Reilly book Programming Rust, which is probably closer to what you want, it explains the actual technical details of much of the language, and to me seems written for an audience that already knows programming. Lastly would be Rust for Rustaceans by No Starch Press, if you actually do want to pursue Rust further, as it discusses very, very in detail the systems of the language, and how they can be used to make something so powerful like Serde.
-
Thanks, Rust by Example looks ok, and I'm acquainted with one of Programming Rust's authors, which is cool. I'm currently looking at "Comprehensive Rust". All these though seem to be about the Rust software ecosystem (compilers, package tools, libraries) as much as they are about the language. I had hoped to start by just reading about the language, if something like that exists. I don't particularly want to write any Rust programs until I've finished reading some kind of language overview, which means that all the stuff about build tools are just a distraction during that stage. As another commenter in this thread said though, ecosystems and languages have become pretty much inseparable, so maybe that's why the books are that way.
This also looks interesting:
https://dr-knz.net/rust-for-functional-programmers.html
This says nothing about Rust, but it's a humorous classic. I'd be interested to know how to describe Rust in these terms.
https://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
-
There’s already Swift, which isn’t garbage collected, but the ref. counting does the same in practice.
The only problem with Rust and Swift, Kotlin etc. in my opinion is that they keep growing and getting more complex with no signs of stopping.
-
JS become rusty
-
I usually pick Rust for CLI tools because:
- It's statically compiled and isn't dependent on system binaries and won't break if there if the system has the wrong version like C/C++, allowing you to distribute it as a single binary without any other installation steps
- Still produces fairly small binaries unlike languages like Java or C# (because of the VM)
- Is a modern language with a good build system (It's like night and day compared to CMake)
- And I just like how the language works (errors as values etc.)
-
Can I just say how beautiful that page is? Such a delight to read the text on it. The legibility. The simplicity.
-
I know that the "project" approach to learning a language works for some people, but I've found l greatly prefer to read a book from beginning to end before undertaking any projects. It helps me start out with a clear picture. I'm finding "Comprehensive Rust" to be fairly good so far. Thanks for all the help, everyone.
-
with wasm and friendly new web frameworks, the only thing keeping js alive is inertia
-
Fun fact! Lemmy is made in Rust!
-
I thought python has kinda exploded lately...