/g/ - Technology

install openbsd

[Make a Post]
[X]





Nanonymous No.3599 (A)[D][U][F][S][L][A][C]
File: 4dd2203a3a5b59232656732260ed9d6dce536afb0337362f409cd2c0b026b8e0.png (dl) (10.15 KiB)

Why Qt is so strange?
Why there isn't C support?
Why docs is so strange?

Nanonymous No.3600 [D] >>3601

Because it's a piece of C++ cancer. And it's bloated, because all GUI trash is bloated. GUI stuff is inherently hard and clunky to express in a textual format, so it shouldn't be written unless absolutely necessary.

Nanonymous No.3601 [D]

>>3600
wrong LARPer. current GUIs are just shit, including anything built on the terminal emulator

Nanonymous No.3603 [D]

>current GUIs are just shit
This.
Things about GUIs in last like 30 years:
a) they have never been improved/rethought in any way since the 80s, and it's not because they're perfect; like, just compare zogblows interface to win3.1 and further compare it to the classic mac or even the classic that started it all (LMAO), Xerox; the amount of copy/pasting of ideas is obscene
b) so, while copying and pasting shit, corporations, unable to innovate, just bloated their shit to the fucking insanity

>Why Qt is so strange?
I don't know what exactly you're referring to, but it's C++ code alright.
Things about C++ everyone should know:
a) it's not actually an OO language (as Bjarne, the man himself, said himself), it is a multi-paradigm language
b) it is a fucking abomination in more than one way; and a lot of devs will tell you this, also a lot of devs have their "good parts" pinned down so they don't use the langauage in its whole [mostousity]

I think personally the biggest problem with C/C++ ecosystem is the fact that we have such an ecosystem. C++ shitstains are awful at actual C programming (not all of them, but still) and they don't know where the features of C++ end and how to mix the languages safely if you need them both (you really shouldn't).
And the whole thing of using C and C++ together remains a mess, especially if we consider de-facto implementations of this shit.
Like, seriously, C++ would be much more pleasant if it didn't try to mix namespaces with C. It is indeed a powerful tool (just include some headers and write some code in c, feed it to c++ compiler, and apart from some explicit typecasting you need to do on c++, you're good to go), but the costs are high too.
https://developers.redhat.com/blog/2016/02/29/why-cstdlib-is-more-complicated-than-you-might-think/

Nanonymous No.3604 [D]

I want to make my own GUI library, but first I want to make my own programming language, which compiler is 10% ready, and the language 90%.
My GUI library must be a bytes stream, like in terminals and, at the same time, be a compiled markdown language. I want implement firstly terminal-like style with bold, italic, blink or usual text, but with special sequences this will be real markdown language like MD, HTML, EFL edje, Qt QML. There also shouldn't be a scripting language like JS for HTML, but I want give elements ability to `name` calls in some signals (clicked, pressed, released, etc). It's names can be functions, So such file can loaded to python or other scripting language without manually set function signals. And to my programming language. It's compiliable, but with some manipulation compilation of code can be handled by another modules, so this ML files can be loaded with connecting to function-handlers automaticly.
In my GUI may be Bezier Line shapes, text, characters and images and it can be animations. All can be in the file of GUI or linked to another file like in HTML.
Also GUIs can be nested. Bytes-stream architecture provide good so one programm (a browser, for example) can call another programm (videoplayer, imageview, text editor) in the same window. Or even from another hardware (MCU) or from network.
My language simply give access to handling compiling code with ! symbol when a library is @import'ed.
For example:
@import c!;

@ifdef not(size_t)
@ifdef ADDR_SIZE
@define size_t as s!ADDR_SIZE!;
@else
@define size_t as s32;
@endif
@endif

@define fd_t as s32;

extern c.func (size_t ret,fd_t fd,s8* buf,size_t count) libc.write 'write';

In this code you can see @import c!; In filesystem may be library, which can have code or module for compiler. c module handle c.* namespace, so it compiling LLVM type for c.func (size_t ret,fd_t fd,s8* buf,size_t count).
It's really working code, but compiller still isn't finished.

Nanonymous No.3606 [D] >>3607

>@ifdef
>@ifdef
>@define
>@else
>@define
>@endif
>@endif
Perfect example of C braindamage. ;DDDDDD

Nanonymous No.3607 [D] >>3608

>>3606
When I was small kid (ten years), I found out Minecraft. I didn't know how to install games, I was afraid by computer with MS Windows, because breaking something is easy. I started playing with Release 1.0.0, though knowed since Beta and watched LetsPlayers Then I wanted to make a Minecraft mode. I tryed to learn java, but I understood nothing except loops, function and variables. If I properly remember. Then I tryed to learn C++ to make a Minecraft clone. I falled when constructors and destructors classes. I learned at quicknote C++ site. I was thinking that without knowledge of classes I won't programme. Then I started learn C (because of the events of my parents, not Qt Widget parents) and saw the light. This deceptive, lousy, insidious plusses in "C++". Oh, they did it. They suspended my growth for 2 years. I was a kid, I didn't know, that "+" isn't "better".
If I would be hard-nosed, I already, 2 years ago could create my programming language and now there would be my GUI, my 3D-raytracing rasterizer, my web-browser, my map-browser (now only image-tile maps supported, OSM support later will add and other), file manager, maybe and a lot of other software. Maybe.
And if my Parents would teach me C in 5-6 years... But they didn't it. They sent me to school, they tryed to sent me to sport school, they teached me neither physics nor math.
If they would know about Linux and install it to my computer... But they still using Gentless Airvents.
When I will have children, I will teach they C (classic and powerful multiplatform ultraassembler), asm (how computer and MCUs works), and will show high level programming language, such as python, javascript (hm), my programming language.
Now I'm write python Qt programms, that loads C-written libs, executing OpenGL-functions.

Nanonymous No.3608 [D]

>>3607
saved

Nanonymous No.3613 [D]

>I started playing with Release 1.0.0
Quite late to the party I see. After they went ahead and ruined the game.

Nanonymous No.3652 [D]

Tcl/Tk is the answer to your problems.

Nanonymous No.3752 [D]

that 20 year old boomer