Excellent and detailed post! Up until now I've been focusing on Julia and Swift for projects that can use a new language, as the Rust pain/productivity ratio has looked too high. Perhaps things are changing...correctness is certainly a worthy goal!
A Rust FFI adventure in unsafety
11–20 of 54 posts
Re: A Rust FFI adventure in unsafety
#12IIRC, At one time, there was a "lazy_static!" that fit this use case? But maybe you can't do that here if what you need is the side-effect of the library call.
Re: A Rust FFI adventure in unsafety
#13Earlier quoted context omitted.
Can you link to the aforementioned books?
I suspect these two: https://doc.rust-lang.org/stable/book/2018-edition/index.htm... http://shop.oreilly.com/product/0636920040385.do
Re: A Rust FFI adventure in unsafety
#14> We wanted a primitive that would guarantee that initialization of the global variables would happen exactly once. IIRC, At one time, there was a "lazy_static!" that fit this use case? But maybe you can't do that here if what you need is the side-effect of the library call.
Re: A Rust FFI adventure in unsafety
#15Excellent and detailed post! Up until now I've been focusing on Julia and Swift for projects that can use a new language, as the Rust pain/productivity ratio has looked too high. Perhaps things are changing...correctness is certainly a worthy goal!
If the application deployment scenario can handle typical GC workloads, then using a programming language with such support is more productive.
One example would be modern GUI toolkits.
Re: A Rust FFI adventure in unsafety
#16Earlier quoted context omitted.
I've been using Rust in production for a little over half a year, and my team and I have run into very few issues. We're also calling through the FFI to an SGX SDK and a large C++ codebase, and that's been delightfully painless. We're all extremely glad we chucked C++ and Go and switched to Rust. Rust isn't just a safer C++, it's a language that stands on it's own as extremely productive, safe, and fun to write. We c…
> Cargo + RLS are the best ecosystem tools I've seen in any language. In my experience the java profilers and debuggers are still better than anything that's available for rust. RLS is great on a fundamental level (decoupling IDE from compiler), but it still has to catch up in functionality with the total compiler integration that for example eclipse has with ecj.
Re: A Rust FFI adventure in unsafety
#17Earlier quoted context omitted.
I've been using Rust in production for a little over half a year, and my team and I have run into very few issues. We're also calling through the FFI to an SGX SDK and a large C++ codebase, and that's been delightfully painless. We're all extremely glad we chucked C++ and Go and switched to Rust. Rust isn't just a safer C++, it's a language that stands on it's own as extremely productive, safe, and fun to write. We c…
When you switched was it a unanimous decision to write rust? And is this a small team where you all have the same opinion? Or did you have to drag any one along? From what I have seen people who aren't motivated to learn rust struggle. I'm curious how that worked out
Re: A Rust FFI adventure in unsafety
#18Earlier quoted context omitted.
I've been using Rust in production for a little over half a year, and my team and I have run into very few issues. We're also calling through the FFI to an SGX SDK and a large C++ codebase, and that's been delightfully painless. We're all extremely glad we chucked C++ and Go and switched to Rust. Rust isn't just a safer C++, it's a language that stands on it's own as extremely productive, safe, and fun to write. We c…
> Cargo + RLS are the best ecosystem tools I've seen in any language. In my experience the java profilers and debuggers are still better than anything that's available for rust. RLS is great on a fundamental level (decoupling IDE from compiler), but it still has to catch up in functionality with the total compiler integration that for example eclipse has with ecj.
Re: A Rust FFI adventure in unsafety
#19Earlier quoted context omitted.
Can you link to the aforementioned books?
I suspect these two: https://doc.rust-lang.org/stable/book/2018-edition/index.htm... http://shop.oreilly.com/product/0636920040385.do