Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alexcrichton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
alexcrichton
8y ago
Oh dear sorry about this, it's a little too non-obvious how to see the demo! I've [pushed a small commit]( https://github.com/rustwasm/wasm-bindgen/commit/f016ae5846bf... ) to update the demo to inclu
2.
▲
Multithreading Rust and Wasm
(rustwasm.github.io)
237 points
by
alexcrichton
8y ago
|
45 comments
3.
▲
by
alexcrichton
10y ago
The futures crate is intended to be the successor to eventual, the author of which, Carl, helped us with some key insights in the futures crate as well.
4.
▲
by
alexcrichton
10y ago
In Rust it's frequently the case that slow compilations are dominated by generating and optimizing LLVM IR. This codegen step (generating LLVM IR) often takes awhile just because we're generating so much IR. Rust takes an approach
5.
▲
by
alexcrichton
10y ago
You can indeed use this on stable Rust today! Right now 1.9.0 is the minimum supported version due to the usage of `catch_panic` in a few places. I'd recommend a beta compiler for now though to compile some of the examples. There'
6.
▲
by
alexcrichton
10y ago
Excitingly, today! If you run the rustup install script on an arm64 device it should "Just Work", but if it doesn't end up detecting arm64 you can download rustup and/or the compiler manually. * rustup - https:/&#x
7.
▲
by
alexcrichton
11y ago
In addition to not interacting with the GNU toolchain at all (through MinGW), MSVC support will indeed enable native Windows debug info (as you mentioned) so native tools can be used to debug Rust code. Note that this isn't 100% implem
8.
▲
by
alexcrichton
11y ago
It does indeed! Due to Rust's lack of a garbage collector or runtime altogether, when C calls into Rust there is no overhead. In the example in the blog post [1] you can see that the Rust function has no extra syntactic burden, and the
9.
▲
by
alexcrichton
11y ago
If you omit the `#[no_mangle]` definition then the compiler will end up emitting a mangled symbol (e.g. one with a long hash at the end that's hard to guess). Many C APIs take a callback function pointer, which in rust has the type `ex