I want to write an UI.
Should I do it in C or C++ or some other language?
nigga, nobody writes native UIs anymore. Just use HTML and target all platforms in one fell swoop.
>>57149954
use C++ and QtCreator. believe me, it's so stupidly easy...
C. It's a UI, so it has to be fast and responsive.
Also it shouldn't use any more resources than the equivalent from the past.
>>57149971
Just let me fulfill my autism
delphi
JavaScript
>>57149954
1.import jquery desktop.*
2. done! Now you are a professional desktop GUI developer.
>>57149988
Well, I don't know if I need to implement OOP in UI design, that's why I'm choosing from C and C with classes...
>>57149976
>C++ and QtCreator
/thread
>>57149954
write it in vba
its fast as fuck , best language for creating quick UI
>>57149954
Lisp
>>57150510
There's no VBA in Linux
>>57150072
>>57150080
Fucking libraries reeeeeeeeeeeee
>>57150528
rofl
>>57149954
There is only one correct answer, D.
>>57150919
>garbage collected language
Use Rust, OP. Writing C++ in 2016 is absurd.
>>57149954
Both are okay, just to let you know that there's IUP if you want a simple C api that targets Linux, BSD, Solaris and Windows with native widgets
Pic related is a screenshot of one application using IUP in Windows, is actually a step by step tutorial called simple paint, there's also Hello World and Simple Notepad
>>57149976
don't kid yourself the best language to write a ui in is assembly from the ground up?
>>57149976
2pbp
>>57149971
Yeah because everyone now has 8GB of RAM...
>>57150461
Start with C and when you see things that would benefit from oop it's not that hard to change to ++
>>57151089
>has
have. Now it's fixed.
>>57150510
Into the loo with (you)
>>57149976
SPBP
>>57151026
>developed in PUC-Rio
Nice.
I wish there was a LUA version.
>>57151235
Nvm, there is support for it.
>>57149954
Do it in Ada, or Common Lisp.
>>57151006
>He thinks garbage collection for UI implementation is bad.
>>57151235
There's Lua support, C++ is suported by using the C API, a C++ bind is in the works
Also, you could use it with pretty much any languaje that can call C functions
>>57149954
>I want to write a UI
No you dont
>>57151738
/thread
Good UI libraries require concepts not available in the OSs native ABI and most programming languages and therefore it will be a pain in the ass.
>>57151361
>He thinks, visible input lags are acceptable.
>>57151116
Wrong
>>57150461
OOP is kinda pointless for UI. It's the only thing the paradigm shows itself being slightly capable to do but it fails even there.
If you need some sort of guidance look to IMGUI. It's by far the best system I've seen for gui programming. It can be written efficiently with very little overhead (any gui API naturally is going to have some overhead by the nature of being a generalised thing for a specific problem). It's extremely convenient to extend and build into and it has practically no data duplication which is what I personally struggled the most with.
https://youtu.be/9BVq4JqEFZY
You can look at dear imgui for a complete example. Not designed for general gui use but for extending applications with debugging features.
If you want the OOP route and simply using someone else's UI system (maybe you're making a new OS? I dunno) I'd recommend the qt framework. Not because it's the best but because it's popular and not a complete piece of shit.
>>57149976
this or OpenGL is often easier for complex things
>>57151116
You're a retard.
>>57152066
>>He thinks, visible input lags are acceptable.
Even UI written in Python don't suffer from input lag. And D allows you to turn of GC until a later time. Nice meme issue.