6 ms·
Rust 1.39
- ComputerGuru 7y agoDiscussion here: https://news.ycombinator.com/item?id=21473259 https://news.ycombinator.com/item?id=21473259
- steveklabnik 7y agoThey're two different things; this post is the general release announcement, that post is a deep dive on one specific feature. That said, only one or the other should probably be on HN; it's a tough call as to which. This post is more general, but people are going to care about async/await more than anything else...
- bilalhusain 7y agoCompletely agree. That ways discussion would be at one place and front page won't be hogged with possible duplicates. Right now the other post is enjoying more attention and has meaningful engaging discussion. Requesting @dang to remove this (21473257) from front page and possibly tag the other one (21473259) with 1.39.0 release.
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- ossworkerrights 7y agoTime to give this lang a try. Been wanting to build a web assembly large data table mechanism for a while, and rust appears to be an idea candidate from what i read (speed and reliability). Although it could be done using SQLite, i think could be a nice little project for learning Rust.
- juancampa 7y agoDo it! Make sure you "Show HN" it later too
- mikece 7y agoWhy target WebAssembly instead of straight native? I know that Rust is one of the "ideal" languages for WebAssembly but I thought the main point was systems level programming, not for writing code that runs in a web browser.
- TazeTSchnitzel 7y agoWhy wouldn't someone do systems programming for the web browser?
- MaulingMonkey 7y agoMy primary interest in Rust is for gamedev, as an alternative to C++. The library ecosystem is a bit weak right now, although there's a lot of interest and people working to fix that, and I think the fundamental language is a great fit. WASM lets me reuse the same codebase to host demos/previews/simpler games directly inside of a website, without needing to convince the user it's trustworthy and worth their time to download/install/grant permissions to first. I'm sure other SPAs could also see benefits...
- mamcx 7y agoYou are talking about a db engine? P.D: I'm building a relational language (not engine, but could be part of it)
- ossworkerrights 7y agoHmm well, what I had in mind was something more of and array of arrays, where each array is a row and at each index there is a column. What I had in mind is a download of such arrays, inject them to wasm, and then access them using an external interface. Was thinking about using basic array methods as I am pretty much non experienced in Rust, and would be a good learning exercise. A relational language tho might be interesting.
- est31 7y agoAn important bugfix in 1.39.0 that wasn't mentioned in the release announcement is probably: https://github.com/rust-lang/rust/pull/63402 https://github.com/rust-lang/rust/pull/63402 It's important because unless rustfmt is available, bindgen would put everything onto one line: https://github.com/rust-lang/rust-bindgen/issues/1600 https://github.com/rust-lang/rust-bindgen/issues/1600 Rustc would generate (unrelated) warnings for the generated code but before the bugfix it'd print the entire line, hitting the maximum log size limit on CI and causing the build to fail because of that.
- bilalhusain 7y agoAnother fix (one mentioned in detailed release notes) is where asinh(-0.0) used to return 0.0 These unexpected behaviours are tough to nail down when one is trying to get the code/setup working. Really appreciate the time these fixes potentially save for future users. The complex nature probably also hints at maturity of Rust codebase.
- est31 7y agoReplying to myself here as I can't edit any more: this bugfix needs cargo support to become active, which has still to arrive: https://github.com/rust-lang/cargo/pull/7315 https://github.com/rust-lang/cargo/pull/7315
- Koshkin 7y ago> #[cfg(windows)] slice: &[u16] Am I the only one who finds this syntax ugly - to the point of being inappropriate for a general-purpose programming language?
- TazeTSchnitzel 7y agoCould you be constructive and say what, specifically, you dislike about it? Do you fully understand what each component means?
- orthecreedence 7y agoAs someone who uses rust a fair amount, I can say that the syntax looks pretty normal to me. It's saying "only define this field if we're compiling on windows." I parsed that out immediately. Maybe it just takes a bit of familiarity with the language, but everything does fit together really well after the initial learning phases.
- kpp 7y agoIt is quite useful sometimes: https://github.com/tox-rs/tox-node/blob/master/src/node_config.rs#L39..L60 https://github.com/tox-rs/tox-node/blob/master/src/node_conf...