[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I want to write an UI. Should I do it in C or C++ or some

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 38
Thread images: 9

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
>>
File: websitepretendingtobeabrowser.png (48KB, 399x400px) Image search: [Google]
websitepretendingtobeabrowser.png
48KB, 399x400px
JavaScript
>>
>>57149954
1.
import jquery desktop.*

2. done! Now you are a professional desktop GUI developer.
>>
File: os220backgrounds.png (15KB, 640x480px) Image search: [Google]
os220backgrounds.png
15KB, 640x480px
>>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
>>
File: 1475082496969.jpg (88KB, 553x415px) Image search: [Google]
1475082496969.jpg
88KB, 553x415px
>>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.
>>
File: simple_paint.png (362KB, 819x615px) Image search: [Google]
simple_paint.png
362KB, 819x615px
>>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.
>>
File: 1476086111569.jpg (57KB, 313x414px) Image search: [Google]
1476086111569.jpg
57KB, 313x414px
>>57150510
Into the loo with (you)
>>
>>57150461
see >>57151026
>>
>>57149976
SPBP
>>
>>57151026
>developed in PUC-Rio
Nice.
I wish there was a LUA version.
>>
File: 1474645130538.gif (2MB, 400x300px) Image search: [Google]
1474645130538.gif
2MB, 400x300px
>>57151235
Nvm, there is support for it.
>>
>>57149954
Do it in Ada, or Common Lisp.
>>
File: 1476320910036.jpg (799KB, 1080x1080px) Image search: [Google]
1476320910036.jpg
799KB, 1080x1080px
>>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.
>>
File: 1476484003651.jpg (131KB, 820x801px) Image search: [Google]
1476484003651.jpg
131KB, 820x801px
>>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.
Thread posts: 38
Thread images: 9


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.