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

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Help me find a better language than C++
« on: June 09, 2017, 11:53:14 AM »
Planning on programming a new tile editor from scratch on OSX platform (possibly portable to Windows also). Requirements:

- real language, not a scripting language like python
- not purely functional (must have mutable variables)
- library for gui development (like SDL or wxwidgets for C++)
- not xcode/swift

I have Visual Code already installed on OSX so it could be one of languages supported by it. Some kind of IDE would be a nice thing anyways.

Edit: Let's possibly make this easier and forget OSX. I just tried to use Ruby on osx and could not, because the default ruby (that ships with os) doesn't have debug "stuff" in it and you can't install it over, or should not. You need something called rbenv and looking at the installation procedure I gave up. I guess it's not that bad. Someone has done it before, right?
« Last Edit: June 09, 2017, 01:59:42 PM by Krice »

Tzan

  • Bishop
  • ***
  • Posts: 121
    • View Profile
Re: Help me find a better language than C++
« Reply #1 on: June 09, 2017, 03:27:46 PM »
Just get Unity
Use Visual Studio
Both of those are free

Avagart

  • 7DRL Reviewer
  • Protector of the @
  • *
  • Posts: 520
    • View Profile
Re: Help me find a better language than C++
« Reply #2 on: June 09, 2017, 03:37:30 PM »
Python is not real language, but Ruby is? It's interesting where you'd put border., and it could change answers perhaps.

As far as I know, C# have good support for creating GUI apps - and, regarding to Tzan's response, Unity works with C#.

Tzan

  • Bishop
  • ***
  • Posts: 121
    • View Profile
Re: Help me find a better language than C++
« Reply #3 on: June 10, 2017, 12:31:02 AM »
"C#" didn't fit into my haiku  :)

If you are just making an editor, there is no need for Unity, just use Visual Studio C#
« Last Edit: June 10, 2017, 12:33:26 AM by Tzan »

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #4 on: June 10, 2017, 08:13:35 AM »
As far as I know, C# have good support for creating GUI apps

Really. C#. Do I really have to use that? It's the only option?

Avagart

  • 7DRL Reviewer
  • Protector of the @
  • *
  • Posts: 520
    • View Profile
Re: Help me find a better language than C++
« Reply #5 on: June 10, 2017, 12:04:40 PM »
Java has fx (including scene builder) and swing that are widely used, but I'm not experienced in that language at all, so just can't say more.

Why don't you want to stick with C++ with, say, QT?
« Last Edit: June 10, 2017, 12:06:42 PM by Avagart »

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #6 on: June 10, 2017, 12:36:29 PM »
Java has fx (including scene builder) and swing that are widely used

I hate java like anyone else.

Quote
Why don't you want to stick with C++ with, say, QT?

Weird licensing in some C++ libraries. Also C++ gui libraries are often really difficult to set up even on Windows. Notably if it requires compiling the library I give up immediately. SDL2 is really nice, but it's too simple. I wish there was something between SDL and those gigantic gui libraries that have way too many features.

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #7 on: June 13, 2017, 03:09:54 PM »
I started a small project with C# to try if I can program a loader for tiles (wst format in Brick Atelier). After couple of days it was a success. The big difference is the way Form (window) works with events. So for example when you draw the tile you have to install "stuff" for Paint etc. events. It's kind of annoying, but necessary when working with gui parts of the program. As a language C# is quite similar to C++ (as the name tells), but it's simpler and it has similar kind of automatic value/reference system that Visual Basic has where some types are reference only and some value only.
« Last Edit: June 13, 2017, 03:11:41 PM by Krice »

carterza

  • Acolyte
  • *
  • Posts: 4
    • View Profile
Re: Help me find a better language than C++
« Reply #8 on: July 04, 2017, 05:10:02 PM »
Python is a real programming language. It is not a scripting language.

I'd give Nim a shot.

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #9 on: July 05, 2017, 08:42:03 AM »
I'd give Nim a shot.

Why? It doesn't even have a compiler, it compiles to C (and some other languages) which is lame.

By the way, it's possible that C++ is the best language. If so, sad.

carterza

  • Acolyte
  • *
  • Posts: 4
    • View Profile
Re: Help me find a better language than C++
« Reply #10 on: July 07, 2017, 02:27:02 AM »
It does have a compiler - which compiles Nim to C and then invokes the system's C compiler.

Quite a few programming languages do this.

C++ is not the best programming language, and if you think it is you either -

A) Haven't been programming for long enough

or

B) Haven't been programming C++ for long enough

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #11 on: July 07, 2017, 06:33:29 AM »
Quite a few programming languages do this.

They are all bad languages. "Compiling" to C sounds super safe, we all know C is such a great language in that.

carterza

  • Acolyte
  • *
  • Posts: 4
    • View Profile
Re: Help me find a better language than C++
« Reply #12 on: July 08, 2017, 02:19:39 AM »
It sounds like you entered this thread with your mind already set on bashing every language that isn't C++.

Guess what language C++ learned from? Never forget, from the creator of C++ himself - C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off.

I'm done feeding the troll(s).

Krice

  • Protector of the @
  • *****
  • Posts: 2007
    • View Profile
    • Email
Re: Help me find a better language than C++
« Reply #13 on: July 08, 2017, 06:24:01 AM »
It sounds like you entered this thread with your mind already set on bashing every language that isn't C++.

I wish it was that simple, but it's not. C# is not that bad, I like how they removed the need for header files, but that's a modern invention because then the IDE has to keep track of what is in the project files. I'm not sure what to think about the automatic reference/value -system and garbage collection, I guess they are ok. What I don't like about C# is that it's so closely tied to Windows programming. I wish there were a simple graphics library (like SDL) and then you could add Windows features if needed. It's possible to go around that and work with pure source code, but you still need some kind of connection to Windows app level.

As a great philosopher once said, "if there were a better way to do it, we would be all using it." Don't we all wish there was a better language than C++? I've tried to look for one, but no luck yet. I'm programming a project with C#, but those Windows parts are already somewhat annoying. There is so much you need to know if you want to set up a working piece of some control etc.
« Last Edit: July 08, 2017, 06:25:41 AM by Krice »