3 ms·
feels like ADA
by agumonkey 15y ago
feels like ADA
- Gertm 15y agoYou make it sound like a bad thing. :p
- wglb 15y agoWhatever its merits (and it does have a few), it hasn't exactly been a popular choice outside of building fighter airplanes.
- stcredzero 15y agoThose three words are neutral. The "sound" was supplied by you. :P
- nicholasreed 15y agoCan you please add some more relevant information to your comment? Expand upon why you feel it is similar to ADA, why ADA might be a better (or worse) alternative, if you have any experience working with ADA/Rust, etc. A three word comment does not add anything worthwhile to this thread. If you're on HN and commenting, please refrain from throwing whispers of thoughts down as they come to you, and instead take the opportunity to reply with something meaningful.
- agumonkey 15y agoI have no real experience, just college classes in ADA. And reading the rust documentation reminded me of ADA. I can't hardly explain more than that is an old feeling I've only had when I studied ADA. I wasn't sarcastic or trolling, but I understand it's hard to know with a cryptic 3 words sentence. ps: I gathered some thoughts. It reminded me of ADA because it's designed to be low-level, yet embed high-level concepts and typing (generics).
- bitcracker 15y agoI have real experience with ADA (also C, C++ and many others), and I have discovered that ADA is brilliant, a way underestimated language. But ADA requires a lot of discipline which is a possible reason why many developers don't like it. I also like Rust. I haven't tested it yet (will try it) but the first impressions are good. But I think Rust will not be on par with ADA 2012 until it supports range values (like x : Integer Range 1..100) and contracts at least. Asserts are good for the beginning but a language for really big software should have verification mechanisms which are implemented in SPARK (a subset of ADA).
- kibwen 15y agoYou should take a look at Rust's typestate mechanism: http://doc.rust-lang.org/doc/rust.html#typestate-system http://doc.rust-lang.org/doc/rust.html#typestate-system The way I understand them (and I say this a lot, but I could be wrong) is that it's like a more powerful version of Eiffel's design by contract, which allows the compiler to test whether invariants hold at compile time rather than just throwing assertions at runtime.
- riffraff 15y agoI may be wrong, but I believe SPARK may have greater validation fecilities than what rust provides at the moment. E.g. SPARK allows static verification of bounded memory usage, which I am not sure if rust's `check` is able to express.
- Aloisius 15y agoWell ADA feels like Pascal and Pascal feels like ALGOL. So maybe we should all use ALGOL.