Originally posted by Marc Driftmeyer
View Post
Announcement
Collapse
No announcement yet.
Futhark: A Pure, Functional Language For GPU Computing
Collapse
X
-
Originally posted by schmidtbag View Postlanguages that seem to have no advantage over any other except a well-made compiler (like Rust or Go)
...
I don't really like languages that are platform-specific either (like Swift)
Swift to my knowledge is no longer restricted to Apple platforms alone anymore.
- Likes 1
Comment
-
Originally posted by polarathene View PostRust has it's advantages of memory safety being one of the better known ones. Another area that it's becoming quite popular with is embedded dev. It is far more pleasant to use than C imo and has many features that you miss out with C. To be fair I'm not hugely experienced in C, and it's been a while since I did some embedded dev but I remember that C was slightly stripped of some features as well on embedded platforms compared to running on an OS like linux. Cargo is also really nice to have, perhaps there is an equivalent for C with the ability to know if the packages can be used for embedded dev or not or work with a restricted feature set etc.
Swift to my knowledge is no longer restricted to Apple platforms alone anymore.
Comment
-
Originally posted by schmidtbag View PostUnderstood, but remember, as far as I can tell, Rust accomplishes everything you mentioned through the compiler. The compiler is what's so special about it. Obviously, it's syntax makes it much easier for the compiler to do its job. But, with the right approach, I don't see why these features couldn't be done for another language. It doesn't have to be C, it doesn't even need to be a compiled language (the same features could maybe be done for interpreted languages).
- Likes 1
Comment
-
Originally posted by schmidtbag View PostUnderstood, but remember, as far as I can tell, Rust accomplishes everything you mentioned through the compiler. The compiler is what's so special about it. Obviously, it's syntax makes it much easier for the compiler to do its job. But, with the right approach, I don't see why these features couldn't be done for another language. It doesn't have to be C, it doesn't even need to be a compiled language (the same features could maybe be done for interpreted languages).
It works on Linux and FreeBSD too but it's more experimental than applicable.
Comment
-
Originally posted by carewolf View Post
There is nothing particularly special about Rust. There is nothing you can't do in C++ for instance. It has just changed the syntax so instead of unsafe forms being the shortest and most concise forms like in C++, the safe forms are the base forms in Rust.
Is there anything like Cargo for C or C++? Is supporting documentation and testing as well supported as Rust does(it doesn't require third party support, you can do inline documentation and testing that generates a nice browsable documentation for your codebase and easily performs testing on it. Sure it can be done in other languages, just the support for it is built right into the language/syntax. Discovering and using libraries along with compatibility is easier with Cargo imo too. I'm not sure how well C++ is supported on embedded platforms, if I remember right it is not so good without it's standard library which iirc you lose on embedded platforms.
- Likes 1
Comment
-
Originally posted by carewolf View Post
There is nothing particularly special about Rust. There is nothing you can't do in C++ for instance. It has just changed the syntax so instead of unsafe forms being the shortest and most concise forms like in C++, the safe forms are the base forms in Rust.
- Likes 1
Comment
-
Originally posted by polarathene View Post
You mean such as immutable by default, so that to have a mutable variable you have to declare it as so, whereas in most languages you'd declare immutable with a const?
I'm not sure how well C++ is supported on embedded platforms, if I remember right it is not so good without it's standard library which iirc you lose on embedded platforms.
Comment
Comment