News for hackers. Stuff that matters.
Re:Learning Rust by tormeh on Sunday November 02, 2014 @06:05PM (#8548493)
Because beginners generally don't care about tooling, external libraries etc. They want a compiler (and preferrably a REPL) and some language pointers and then write a program that searches for primes or whatever.
Re:Learning Rust by ufo on Sunday November 02, 2014 @10:39PM (#8549247)
On the other hand, if you want to do something else in addition to a prime sieve than some sensible advice on tooling can save a lot of grief down the road. A couple of years ago I decided to learn Ocaml but never progressed much farther than writing a couple of Project Euler problems. Recently I decided to relearn Ocaml with the Real World Ocaml[1] book and, in retrospect, one of my favorite things about the book is their recommendations on tooling[2]. The improved REPL and the vim plugin they recommend are the sort of thing that make learning the language and its libraries much more pleasant but are also the sort of thing I wouldn't think of installing on my own if all you told me to install was the compiler (which kind of explains why I never went very far in my previous attempt at learning the language).

[1] http://realworldocaml.org/ [2] https://github.com/realworldocaml/book/wiki/Installation-Ins...

Re:Learning Rust by shadowmint on Sunday November 02, 2014 @06:39PM (#8548626)
There are lots of tutorials; if you want to dive straight into the code look at 'rust by example'. You dont even have to install rust to use it.

Also, REPL is a cute toy, but absolutely not important and hard to do for compiled languages. If you want one, you can run your own copy of play.rust-lang.org; its actually pretty good.

Re:Learning Rust by ketralnis on Sunday November 02, 2014 @07:24PM (#8548744)
I get that it's hard for compiled languages and I've learned to live without one for many of them. But "a cute toy, but absolutely not important" is way, way off the mark. When available, a REPL is a godsend and has saved me personally enormous amounts of time.

Besides, there do exist compiled languages with REPLs (Haskell, Scheme, Common Lisp). Even Python has to compile the textual code into bytecode and execute that.

Re:Learning Rust by shadowmint on Sunday November 02, 2014 @08:28PM (#8548916)
I'm happy to accept 'relatively unimportant compared to other issues with rust'.

REPL is a useful learning tool, but its also a not relevant to the majority of tasks for rust. Rust is for large complex tasks. If you want a scripting language, use python.

Re:Learning Rust by ufo on Sunday November 02, 2014 @10:21PM (#8549209)
REPLs aren't just for learning- they are great for exploring and interactively designing programs. You are also conflating REPLs with scripting languages - the parent post already has a bunch of examples of languages suited for complex tasks that make very good use of their REPLs.
Re:Learning Rust by shadowmint on Sunday November 02, 2014 @11:57PM (#8549379)
They're really not in this case.

play.rust-lang.org is a bite sized code compile \ execute environment that lets you play, explore, delect different compilers and share failed build to get help. Its fantastically useful ... but its not a REPL, and being one would in no way make it more useful.

REPLs are useful where a few lines can make a meaningful program.

That is not the case in rust.

Re:Learning Rust by tormeh on Monday November 03, 2014 @01:03PM (#8552316)
I use the REPL to try out syntax I don't quite remember and to ascertain myself of how the libraries work, something that I have to do often. It's not an absolute necessity, but it makes coding a lot faster.
Re:Learning Rust by Dewie on Sunday November 02, 2014 @10:11PM (#8549188)
> If you want a scripting language, use python.

You know, that's what some people's attitude is towards high-level languages and performance: 'who needs a better C? Just write the performance-critical code in C and the rest in Python or whatever'. Just sayin'. ;) (obviously people who say this aren't working on kernels and browser engines, but still.)