7 ms·
Announcing Rust 1.24.1
- GolDDranks 9y agoThis is an interesting demonstration how fiddly and UB-happy FFI boundaries can be... Fortunately the UB → abort change will land in the future, it will be for the better.
- ilurkedhere 9y agoVery good
- mkj 9y agoIn case anyone else was wondering how longjmp() over the Rust code isn't a problem regardless: "There are only Copy types on the rust stack frame being jumped over." https://github.com/rust-lang/rust/issues/48251 https://github.com/rust-lang/rust/issues/48251
- stmw 9y agoneat!
- Freak_NL 9y ago> Cargo couldn’t fetch the index from crates.io if you were using an older Windows without having applied security fixes. Why are developers (since this is an issue that shows up with cargo) running Windows 7 without security patches installed? Especially since the issue only shows up on Windows 7 installs that haven't received security patches since June 2016. > libgit2 created a fix, using the WinHTTP API to request TLS 1.2. On master, we’ve updated to fix this, but for 1.24.1 stable, we’re issuing a warning, suggesting that they upgrade their Windows version. That's really a neat and responsible way of handling this.
- mtgx 9y agoAlthough developers should know and do better, I think a big part of why they aren't doing it is because Microsoft has made it so hard to update Windows 7 since a year or two ago, all in the name of forcing people to switch to Windows 10. You now have to visit and manually download the updates from Microsoft's Update Catalog website. Oh, and that website only works on Internet Explorer.
- Arnavion 9y agoNo idea what you mean. Windows 7 receives updates from Microsoft through Windows Update just fine.
- oblio 9y agoAre you sure about that? I know plenty of people with Windows 7 that just get updates through the normal channels.
- ndh2 9y agoWindows Update generally still works on 7. Maybe you ran into this issue? https://www.myce.com/news/windows-7-dont-receive-security-updates-without-antivirus-scanner-83815/ https://www.myce.com/news/windows-7-dont-receive-security-up...
- ogoffart 9y agoSpeculating here: Maybe developers are testing/debugging on some VM with older Windows, without that machine be their development machine.
- mstade 9y ago> Why are developers (since this is an issue that shows up with cargo) running Windows 7 without security patches installed? Especially since the issue only shows up on Windows 7 installs that haven't received security patches since June 2016. Enterprise. It’s only recently I’ve stopped seeing XP boxes around, but Windows 7 is everywhere.
- oblio 9y agoEven in Enterprise environments, having boxes which haven't gotten security patches from 2 years ago is just careless.
- mstade 9y agoOh please don’t for a second believe I excuse this behavior in any way. I 100% agree with you, yet at the same time that is the reality you have to adjust to at times. Enterprise IT often moves at glacial speeds, and that’s on a good day...
- Arnavion 9y ago>Why are developers (since this is an issue that shows up with cargo) running Windows 7 without security patches installed? Especially since the issue only shows up on Windows 7 installs that haven't received security patches since June 2016. The issue shows up on patched machines. The patch does not enable TLS 1.2 by default. You have to add reg keys for it. https://github.com/rust-lang/cargo/issues/5065#issuecomment-367942576 https://github.com/rust-lang/cargo/issues/5065#issuecomment-...
- amluto 9y agoI've never understood why Microsoft adds support for new crypto protocols but turns them off by default.
- colejohnson66 9y agoTo avoid breaking badly designed programs?
- Arnavion 9y ago(To be clear, Windows 7 without the patch also supports TLS 1.2. The patch adds a registry key to configure the default protocols for applications that don't explicitly override the default.)
- HumanDrivenDev 9y agoRust gives me a headache. I want to like it, but it just seems so... overengineered https://doc.rust-lang.org/std/str/struct.SplitWhitespace.html https://doc.rust-lang.org/std/str/struct.SplitWhitespace.htm... Why would you create a special data type to represent a string split by Whitespace? Lunacy
- jayflux 9y agoThat’s not a datatype... That’s an iterater returned by calling .split_whitespace() on a string. Basically the same as calling .split(‘ ‘) on a string in JavaScript You can find a list of Rusts primitive types here: https://doc.rust-lang.org/std/#primitives https://doc.rust-lang.org/std/#primitives
- lucozade 9y ago> That’s not a datatype It's a named struct. That's pretty datatype-y. I don't agree with the GP that this is an example of overengineering. If anything it's an example of current Rust being slightly underengineered. Presumably a lot of these temporary types can be killed off once `impl Trait` goes mainstream?
- the_mitsuhiko 9y agoI would never want the named types to go away. They heavily improve the error messages you get.
- twic 9y agoIt's a datatype, but it's an implementation detail - str::split_whitespace has to return something that implements the Iterator trait, so it return this. You as a programmer should never need to name it explicitly. When "impl Trait" lands, it will be possible to hide details like this.
- leshow 9y agoI asked this question on IRC and they said that it likely wouldn't go away. There may be a couple reasons, backwards compatibility for one, the other may be that when the type is existentially quantified the compiler has to search for a matching implementation, that search can take time. We want stuff using std to compile fast.
- _binder 9y agoOne command to update the language...wow...ok Iong for the day I can do that in C++.