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

Krice

  • Protector of the @
  • *****
  • Posts: 2000
    • 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: 119
    • 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: 514
    • 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: 119
    • 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: 2000
    • 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: 514
    • 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: 2000
    • 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: 2000
    • 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 »