Handmade Hero»Forums»HandmadeCon
Jason
195 posts
Suggestions for possible languages to switch to (from c++)
Edited by Jason on Reason: Initial post
So I I'm currently using C++ for some side projects I'm doing and the more I use this language the more I despise it. I know there are better languages out there but I also know a lot of them are non-starters for low level programming (mainly due to garbage collecting or other restrictions on memory management). I was wondering if any had an experience with or opinions on D or Nim (both of which have optional GC's as far as I understand)? Those are the languages at least I think have the best chance, from my cursory readings, of fulfilling my needs. I know there is also Odin which obviously has good goals as a language but of course is still very early in development. Though I might not be opposed to using it and just working on developing it myself since it would be interesting to me.
497 posts
Suggestions for possible languages to switch to (from c++)
Last I checked (half a decade ago) D was essentially unusable with GC disabled. Most of the standard library and a few core features depend on the GC to manage memory.

The straightforward answer is a C-like subset of C++. Consciously don't use the esoteric features of C++ that you find to be an obstacle to your productivity.
63 posts
Professional programmer, working in the video games industry since 2012
Suggestions for possible languages to switch to (from c++)
To back up what ratchetfreak said, here's a presentation about someone who chose a subset of C++:
https://www.slideshare.net/Richar...restrictions-for-game-programming
It's more oriented for team projects (so I guess some of it doesn't apply for your side projects), and for game projects, but it explains the thought process to choose which features to exclude.

I had a tiny experience with Rust, and it's a language I would consider for some projects, if there wasn't its build system (cargo) that... shouldn't exist at all? And in the end, I guess we should also use only a subset of it ^^'
Joshua
3 posts
Suggestions for possible languages to switch to (from c++)
If this is just for side projects then Odin is more than usable. People are currently using it for games, compilers, fluid-sims, all manner of things. Definitely give it a try if you haven't, I think you'll enjoy it :)
78 posts
None
Suggestions for possible languages to switch to (from c++)
Edited by Mór on
I like simple tools. C-99 is one of them. C is as simple as possible without sacrificing control of your computer and it runs the fastest outside of assembly.

C++ is horribly complex. Invented by a dude that never made anything else. C was made by a programmer that built things that changed the world.

Compare their resumes:
https://en.wikipedia.org/wiki/Dennis_Ritchie
https://en.wikipedia.org/wiki/Bjarne_Stroustrup

The only other language I am curious about is Jai, but its not out yet. :(
Jason
195 posts
Suggestions for possible languages to switch to (from c++)
Thanks everyone for the suggestions.

"If this is just for side projects then Odin is more than usable. People are currently using it for games, compilers, fluid-sims, all manner of things. Definitely give it a try if you haven't, I think you'll enjoy it :)"

Ya, if I find I have the drive I might check it out. Would be a good learning experience since I'm sure I would have to look into the language source at some point.

"The only other language I am curious about is Jai, but its not out yet. :( "

Ya man, I've been stalking his twitter account everyday for updates on this language. I'm so ready for it. Hope it works out
1 posts
Suggestions for possible languages to switch to (from c++)
Seconding Odin. Bill's discord is quite active and there's always people willing to help. I've been using it and so far I'm having a really good time.
Seth Archambault
15 posts
I do mobile app development in Javascript and dream of true native development. Caterpillars are most angry before they become butterflies.
Suggestions for possible languages to switch to (from c++)
boagz57


"The only other language I am curious about is Jai, but its not out yet. :( "

Ya man, I've been stalking his twitter account everyday for updates on this language. I'm so ready for it. Hope it works out


You mean.. I'm not the only one? :'-)
Anders
20 posts
Professional (non-game)developer living in Stockholm, Sweden. Born '84. Gamer since five years of age, computer nerd since six.
Suggestions for possible languages to switch to (from c++)
Late reply I know, but have you considered looking at Rust?

https://www.rust-lang.org/
42 posts
Suggestions for possible languages to switch to (from c++)
This: https://www.beeflang.org/
The discord server recently just exploded with interest, mostly thanks to this video:
https://www.youtube.com/watch?v=L6w4y6_ENdU
42 posts
Suggestions for possible languages to switch to (from c++)
This: https://www.beeflang.org/
The discord server recently just exploded with interest, mostly thanks to this video:
https://www.youtube.com/watch?v=L6w4y6_ENdU
Jason
195 posts
Suggestions for possible languages to switch to (from c++)
Ha, what a language name.