@Krux02 That sounds like a good idea; certainly something worth looking into.
I wonder if it is possible to automatically wrap rust libraries, to make them
usable in Nim. What I mean is something like this:
rustimport myRustLib
echo myRustLib.foo(123)
with myRustLib being a pure rust library. No glue code should be required to be
written manual
"If the implementation pendantically avoided Rust's unsafe feature"
This isn't doable. Following Rust's ownership and lifetime rules requires
explicit annotations ... they can't be inferred by the compiler, or else the
Rust compiler would already be doing that.
I've been using Rust for a bit lately, and I rather like it. However, compiling
Rust is painfully slow, even for the smallish things I'm doing. Until it's very
fast, I think compiling to Rust is an awful idea for Nim. Nim's quick compiler
is a big benefit IMO.
I rather disagree with @Krux02; th
I've been thinking about this more, so I have a few more thoughts.
Rust's compile-time memory safety guarantees are _the_ feature to beat. I've
spent a large part of 2016 exploring Rust, and I hate it, but, the compile-time
memory safety is such a compelling feature, I'll suffer through it and k
I think a Rust backend for Nim would be quite interesting. In my experience,
I've found Rust is more like C than any other language, so I'm quite sure it
would be possible.
There is already a C to Rust translator named
[Corrode](https://github.com/jameysharp/corrode). It would be an interesting
The reason you're "hearing so much about Rust" is that they are less shy about
hype marketing
[(ex)](http://forum.nim-lang.org///www.redox-os.org/fr/news/rust-is-softwares-salvation-17/)
(and, ironically, they go irate when they come across evangelists for a
competing language
[(ex)](http://fo
Hmm, double-posting forum bug -
[https://archive.is/H6iJw](https://archive.is/H6iJw)
(I self-deleted the dupe.)
As far as I know, you can always disable the safety belt of Rust when you need
to. It is already required to interface C from rust. I personally am not the
fan of the feature that Nim can compile to any language in the world. I think
that a lot of work to implement, and even more work to maintai
What is the point? You can't use the tools that rust provides to handle memory
with safety, arguably the only reason to use rust over nim.
I have a feeling it is actually not possible because of the borrowing stuff
somehow. But I keep hearing so much about Rust.. it seems so many C or C++
programmers are becoming Rust evangelicals. It also seems like they are still
either deliberately making it difficult to handle normal tasks in R
11 matches
Mail list logo