News for hackers. Stuff that matters.
Re:Papyrus, a Rust REPL by correct_horse on Sunday January 05, 2020 @09:58AM (#21961486)
Would love to see a blurb in the readme about how it works. Also useful is a comparison to evcxr, the poorly named rust interpreter I use every once in a while.
Re:Papyrus, a Rust REPL by saagarjha on Sunday January 05, 2020 @10:44AM (#21961733)
It looks like it creates a shared library out of the source code and loads it.
Re:Papyrus, a Rust REPL by carreau on Sunday January 05, 2020 @09:52AM (#21961461)
Any comparison with https://github.com/google/evcxr ?
Re:Papyrus, a Rust REPL by JeremyNT on Sunday January 05, 2020 @11:05PM (#21966348)
I've been digging into rust over the holiday season, and having been spoiled by repls in higher level languages immediately found myself wishing for one to tinker with. When you're first exploring a language it can make for a super fast feedback loop when learning the syntax and examining features interactively.

I came across papyrus on crates.io, but it seems relatively new and I found little information on it. Can anybody recommends it versus evcxr for a rust newbie?

Re:Papyrus, a Rust REPL by nathias on Sunday January 05, 2020 @10:21AM (#21961587)
I'm disappointed the docs aren't in papyrus font ...
Re:Papyrus, a Rust REPL by maximilianroos on Sunday January 05, 2020 @03:09PM (#21963698)
Re:Papyrus, a Rust REPL by eerrt on Sunday January 05, 2020 @02:21PM (#21963278)
underrated comment
Re:Papyrus, a Rust REPL by buster on Sunday January 05, 2020 @10:37AM (#21961677)
I'm curious how to use it for scripts? Can i add it to the shebang somehow? Any way to use/add crates to use in the script?
Re:Papyrus, a Rust REPL by arcticbull on Sunday January 05, 2020 @12:39PM (#21962545)
You can do that with cargo-script if you’re curious, though it’s not under active development it looks like.

https://github.com/DanielKeep/cargo-script/blob/master/READM...

Re:Papyrus, a Rust REPL by Ericson2314 on Sunday January 05, 2020 @11:45AM (#21962097)
Does it use miri?
Re:Papyrus, a Rust REPL by monocasa on Sunday January 05, 2020 @03:43PM (#21963940)
Doesn't look like it, but I could be missing it.
Re:Papyrus, a Rust REPL by Lucasoato on Sunday January 05, 2020 @10:48AM (#21961750)
Sans' brother <3
Re:Papyrus, a Rust REPL by whateveracct on Sunday January 05, 2020 @04:20PM (#21964191)
Nyeh heh heh!