Ivan
Mikhail
Mikhail
Ivan
I am lost it 😂 RTFM 😭
No, it's okay, it's a small notice among the wall of text in the manual, easy to slip past one's attention. Glad to be helpful anyway👌
DaviChan
I am kinda trrying to write my very own C compiler
nice! Which stage are you at? I found proper AST parsing to be the hardest part. People often complain about the code generation, but if you got the AST know in which oder to evaluate everything the asm (if you only write it for one platform) is not too hard.... but I gave up on mine. Leaving it borderline unusable. it can do simple mathematics and basic system calls though.
Mikhail
Mikhail
DaviChan
I see. I'm very much a noob when it comes to cloud stuff. I can maybe use docker but that's about it. Tbh. i also don't like it much. I rather have my own Server I can manage.
Vlad
DaviChan
Paying somebody else and then hoping to not get 50k usd fine one day is much better
yep, not only that but its often that you have to adjust to their infrastructure. And thats one of the main reasons I also don't like Qt. Any library I use should not force it's design on my application. In the same way no hosting provider should force me to completely rewrite my CI/CD piepeline or use their proprietary tools. I like to be able to switch things in the future if one ends up not working out.
Mikhail
Vlad
DaviChan
I mean that is why I prefer C++ over Rust also. It's an open standard with competing compilers and tooling. Rust has more sane defaults and more uniform tooling. However, If the Rust foundation F... up or takes a wrong turn... well it's done. I see much less risk of that happening in C++
DaviChan
mito
Mikhail
Mikhail
Not only containers in the world)
DaviChan
Do you guys happen to write GUI Applications? If so: what is your go to GUI framework. I have been using ImGUI a lot lately.
Dima
imgui rocks
Dima
4k sucks but it will do anyway, dear imgui is love
Ivan
Vlad
Vlad
Anyways I don't make gui's unless it's debug related or I get paid
Vlad
And if I get paid I don't care really. I would code gui in winapi and assembly if they have the budget for it
Vlad
(they won't)
DaviChan
Vlad
Ivan
Vlad
Desktop is dead
DaviChan
Desktop is dead
for end user applications maybe a little. But overall: not at all
Vlad
Don't get me started on apple devices
DaviChan
yep
DaviChan
i just wont provide iOS builds tbh.
Ivan
DaviChan
Adroid NDK + imgui... is my idea 💁♂ for mobile builds
DaviChan
I might give Nuklear another try. Its even lighter. But i think it requires a wrapper for a nicer api and layouting 🤔
Vlad
Immidiate mode libs are fun and games until you want to do something specific
Vlad
Then it might even be easier to code it manually in opengl
Vlad
At that rate
DaviChan
DaviChan
ah yes I see
DaviChan
and yes many people write it directly in opengl / vulkan from what I have seen or Glsl
DaviChan
for now i was able to avoid it
Vlad
If you want debug menus/simple editor imgui is fine
Vlad
For everything else not so much
Vlad
Although I have seen chiptune tracker in imgui made with basic components
Vlad
Good shit
DaviChan
If you want debug menus/simple editor imgui is fine
it can handle quite complex layouts.
Also it can look very clean and polished. Honestly i would rather cut down on some widgets than use Qt.
But i have also seen some other cool libraries I still need to try.
like microui or sth. I have stared them for later lookup.
FLTK also seems cool wasn't it so ugly XD
DaviChan
there is also raygui now, which seems cool 🤔
DaviChan
think the trend is either web technology or immediate mode GUIs. The retained mode UIs seem to become less and less popular
.
hi, what's the best way to implement a generic event handler for a queue?
I want to do something like:
if (event code == X)
game.move()
sound.playStepSound()
...
So when one event happens, all the systems that care about it get triggered.
I've read some articles that suggest using callbacks.
Do I really need to complicate things with callbacks, or is there a simpler way to do this?
It's for a game with client-server architecture and a main event queue.
B
B
It's much more straight forward to do stuff in immediate mode .
Vlad
Vlad
Funny enough
Vlad
You just put a vector of std::function in there, and call all of them
El_Martinez
Hi guys
Rose
Reported Tomcyrus 💎 💎 [605440751] to admins.
Rose
Reported Tomcyrus 💎 💎 [605440751] to admins.
Pavel
Heh, it disappears if reported
(Not anymore)
(Oh now it did again)
Rose
Reported Tomcyrus 💎 💎 [605440751] to admins.
Rose
Reported to admins.
klimi
/ban 605440751 spambot
klimi
Rose
You need to be an admin to do this.
Abbasi
ㅤ
Guys … CLion or VScode which is better
B
Pavel
Guys … CLion or VScode which is better
CLion is C++ centered IDE, VScode is an extendable code editor.
If your primary work with C++, I would suggest CLion over VScode.
If you work with many things and don't like to switch between tools, you can try to configure VSC to work with C++.