49 ms·
People like you hate the idea of using JavaScript to write desktop apps because you feel like the end result is too slow and inefficient. Web developers hate t
by symlinkk 9y ago
People like you hate the idea of using JavaScript to write desktop apps because you feel like the end result is too slow and inefficient.
Web developers hate the idea of using C++ to write desktop apps because the language is brittle, outdated, and overly complex.
We need a middle ground: a language with the syntax of a scripting language, like Python or JavaScript, that compiles down to native code, like C++ or Rust.
I am under the impression that Qt is attempting this with QML and JavaScript.
- earenndil 9y agoNim[0]? Ante[1]? Perhaps even D, although that's pushing it. 0: https://nim-lang.org/ https://nim-lang.org/ 1: https://github.com/jfecher/ante https://github.com/jfecher/ante
- guhcampos 9y agoRust might eventually get to that point, and C++ itself with QT is relatively easy if you stick to the basics. But in a way, anything trying to please both higher level and lower level developers is going to have to settle for some kind of middle ground. The best situation I can think right now, and the one I would adopt myself, is indeed PyQt. Mostly because Python makes it easy to drop the compute-heavy application code into C extensions, not because of the GUI toolkit itself.
- notRUSTY 9y agoRust has been harder for me to pickup than C++. I want to like it. The problem is that the one character symbolic syntax notation remain nonsensical and seem arbitrary to me.
- yorwba 9y agoWhat exactly do you mean by "one character symbolic syntax notation"? I can't think of anything in Rust matching that description that doesn't exist in C++ as well.
- oblio 9y agoI'm guessing its this: https://github.com/rust-lang/rust-wiki-backup/blob/master/Sigil-reference.md https://github.com/rust-lang/rust-wiki-backup/blob/master/Si... -> > (eg &'a T) If you look at the popular web development languages, they don't really have sigils. Javascript/Flow/Typescript/Coffeescript (front end). Java, C#, Python, PHP (ok, I'll grant you $). Ruby is a bit of an oddball and I guess it's part of the reason Python is overtaking it. Basically, unless you've been working in C/C++, you've never really used funky symbols to denote "modifiers". Say what you will, but > public static void main is easier to Google and even to parse for most people. Keep in mind that the vaaaaaast majority of devs today have never worked professionally in C/C++. I'd imagine some of them have never even touched it, even as a hobby.
- petre 9y agoYou should probably try D then. It's easy to pick up and very powerful once you learn most of the language features.
- shakna 9y agoLua? Its fairly fast, easy to link out to C if you need to. There are versions of the VM that are blisteringly fast, like Luajit, and others that are tiny like eLua. Its syntax is incredibly easy, as is most of the language to understand. It can be event and callback oriented. And though dynamic, most gotchas about JS don't apply, as it isn't overly eager to typecast everything.
- petre 9y agoWell, we have Vala. It compiles to C just like Nim and it's used for GUIs, although it's Gtk specific and some would argue it's not a programing language: https://blogs.gnome.org/despinosa/2017/02/14/vala-is-not-a-programming-language/ https://blogs.gnome.org/despinosa/2017/02/14/vala-is-not-a-p...