Author Topic: Help me find a better language than C++  (Read 1003 times)

Krice

  • Protector of the @
  • *****
  • Posts: 2029
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #15 on: July 27, 2017, 07:52:15 AM »
I wanted to use C# for gui stuff mainly and I've never used Unity. I guess you could create a pseudo-UI just using plain images and stuff like that, but it would somehow feel weird. By the way, I tried XCode/Swift, but it has similar kind of "problem" with UI stuff, because you are working with default UI elements, but if there is something special you need then it's going to be harder to implement. Or maybe it's easy after all who knows, but it feels quite overwhelming.

I think it would be great to have something in between SDL2 and those complete UI systems like Windows forms or XCode. Other than crappy linux-based libraries like wxWidgets.

This turned again to UI problems, but they are one big problem in programming languages. I believe the actual success of a language depends on what kind of UI libraries you can use.
« Last Edit: July 27, 2017, 07:55:47 AM by Krice »

Elronnd

  • Acolyte
  • *
  • Posts: 15
    • View Profile
    • NetHack and Slash'EM EU server
Re: Help me find a better language than C++
« Reply #16 on: August 09, 2017, 08:40:37 AM »
Try D (https://dlang.org/).  Among other things, it fixes a lot of the problems in c++.  Things that in c++ are cludges, feel native in D.  Also, it's the only language I know of that has a c++ FFI, meaning it can use (some) c++ libraries -- the FFI isn't perfect.  And like all languages, it has a (perfect) CFFI so you can trivially use any C library.

Someone else mentioned nim, that's a good language too.  I haven't found the fact that it compiles to c to be a problem, why would it?
Wishes, wishes.  Wish in one hand and do something else in the other, and squeeze them both and see which comes true

 —Roger Zelazny, Nine Princes in Amber

Looks like a fish, moves like a fish, steers like a cow.

 —Douglas Adams, Hitchhiker's Guide to the Galaxy Fit the Fifth

Krice

  • Protector of the @
  • *****
  • Posts: 2029
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #17 on: August 09, 2017, 10:07:46 AM »
it has a (perfect) CFFI so you can trivially use any C library.

Why would that be a good thing anyway? It's like saying the language sucks so much it needs C. Well, anyway, I have tried D. It's like C# but less modern and without Visual Studio's cool explanations for everything. D was an attempt to "fix" C++ but it doesn't really work that way. Java was also supposed to be that kind of language and it was a complete failure. Java's only legacy is that anything using Java is a huge security risk to your computer.

mushroom patch

  • Protector of the @
  • *****
  • Posts: 533
    • View Profile
Re: Help me find a better language than C++
« Reply #18 on: August 10, 2017, 03:21:37 AM »
I heard of a language being developed. It's called shtpst. The syntax is identical to forum posting, including emojis, image macros and so forth. It's a very advanced, next generation programming language. The team behind it is pretty eccentric. They post a lot on programming language forums about how other programming languages are bad or sometimes they're good in the same way that shtpst is planned to be (though not as good).

Of course, as a next generation programming language, you would expect a significant amount of time in development before a release. From what I understand, the developers expect a release in about a generation, roughly 20 years.

For the purposes of a programmer like Krice, someone looking to produce a next generation computer application, I think it will be worth the wait. It just makes sense for a next generation game to be written in a next generation programming language, even if it takes a generation.

Krice

  • Protector of the @
  • *****
  • Posts: 2029
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #19 on: August 21, 2017, 10:27:30 AM »
It just makes sense for a next generation game to be written in a next generation programming language

It is kind of funny that we still have to use programming languages that were developed mainly in 1970's when for example graphical displays were quite rare and everything was text and command line based. As in linux development style today. I really think we need something better than anything we have today, with new kind of thinking that would remove all those tedious procedures we have in programming. Most of my problems in programming are technical problems that could have been solved by using more advanced built-in algorithms than what we have.