4 ms·
Not suggesting it should be done, but note that Go does r̵i̵g̵h̵t̵ ̵t̵h̵i̵s̵ exactly this. They also have world class crypto people on the language team.
by est31 6y ago
Not suggesting it should be done, but note that Go does r̵i̵g̵h̵t̵ ̵t̵h̵i̵s̵ exactly this. They also have world class crypto people on the language team.
- richardwhiuk 6y agoIn what sense does Go do this right?
- est31 6y agoIt does right this not, this right. It's accessible to every go program: https://golang.org/pkg/crypto/tls/ https://golang.org/pkg/crypto/tls/
- pitaj 6y agoI've never heard someone use right this, is that similar to exactly this or just this?
- richardwhiuk 6y agoYeah, I'd expect that to be phrased as "does this" - the right seems utterly superfluous at best, and very misleading. "Right this minute" is a common phrase, but "does right this" isn't (at least in UK English).
- est31 6y agoHmm seems you are right. I guess it's a german-ism that slipped into my english. The english analog to "macht genau das" is either "does exactly that" or "does just that". The literal translation I used "does right this" seems to have no use. So my bad, I'm sorry.
- richardwhiuk 6y agoNo problem :)
- varajelle 6y agoHttp and https is accessible to every Rust program as well. It just has to be opt-in in Cargo.toml
- hctaw 6y agoGo has to do this because they include https in the standard library. Rust defers that task to the ecosystem, so it doesn't have the same requirements.
- hda2 6y agoSeeing that HTTP/S is now just as fundamental as tcp and udp, perhaps Rust should also consider doing the same? Sure, leave the more complex HTTP apis to the ecosystem, but Rust should at least have some sort of basic HTTP support. I don't think you can get away with not treating HTTP as a first class citizen anymore. IMO, Go got this right.
- varajelle 6y agoRust has HTTP and HTTPS support. You just have to enable it in your Cargo.toml. The ecosystem is part of rust.
- hda2 6y agoTo you, perhaps, but I wholeheartedly disagree. Rust will have support only when it is included in the standard library.
- hctaw 6y agoIf you spend all day writing web servers and clients it might seem fundamental. Most of my code doesn't touch the network so I don't mind if I need the ecosystem to do it - I do that in C and C++ too. I think people are fairly apprehensive towards a bigger std because firstly, dependency management is almost trivial (C++ needs the kitchen sink in std because dependencies don't exist to the language, for example) so it's not that big of a deal, and secondly because a bigger std means a bigger commitment to APIs and maintenance by a relatively small group of maintainers for all eternity. At the level of the stack where it makes sense to use rust, it doesn't make sense to put HTTP in std. At least not like Go.
- hda2 6y ago
- deleted 6y ago[deleted]