[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/g/ - Technology

Make /g/ Great Again

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
dicesidesmodifier

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov, swf, pdf
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 5329e78fe093098⋯.png (120.16 KB,300x300,1:1,serveimage.png)

 No.12131

Newfag in programming here. I have bought a book about Tcl/Tk, and while there aren't that many resources to write widgets and windows with it using only C, I guess it will suffice for my needs. What I need now is get into X programming. Which parts of X programming should I attain to write a desktop environment for Unix-like OSes? I use OpenBSD btw.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.12556

>>12131

X? do you mean Xorg? Gnome or Qt|KDE : wrong idea;

No one writes for Xorg pre-say, it's a part of how desktop shells like Gnome or KDE or .... (you get the picture) put images thought GPUs to make screens work. I you want something more lowlevel then go with OpenGL (good choice if coming from C|C++).

Other wise, if I was just starting out again, I would say to myself look up how to do what you want on sites like stack exchange and copy and paste. Best way to learn is doing. After a lot of copying and pasting you'll get a sense what what you want to write should look like.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.12560

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.12573

>>12131

Tk is the graphical language that is the pair of Tcl. You don't need C to write Tk.

I think that you can start by looking at Xaw/Athena Widgets, Xt, Xlib, or even FLTK.

>>12556

Everyone wrote for X back in the day, you uneducated nigger. You are just advocating for bloat.

>>12560

Useless. You can code Tk easily. Why use a C binding when Tk is right there? This Dervish uses Tk anyway, so why not just learn it directly, considering that it's easier than C and is paired with Tcl?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.12574

>>12131

>>12573

Forgot to menction, but Tk combined with Tcl (and no other bloat like dervish) is also a nice small and light language for user interfaces, but not as much as Xaw/Athena Widgets, Xt and Xlib.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.12576

>>12573

Tcl* But my point still stands.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.12615

>>12131

>X programming

X.org is dead. Even before Wayland people only handed the image of the GUI to X and told it not to touch it because X sucks at everything.

So you either write your own Wayland client or you use GTK or Qt. You can't call it bloat when it's already on every single linux distro.

>>12573

>Everyone wrote for X back in the day, you uneducated nigger. You are just advocating for bloat.

X is the definition of bloat. It's an overrated component that does nothing by itself anymore but handing over an image to the Window manager.

And if you do use the remaining components of X that haven't been stripped out already it will look fucking disgusting.

If you hate bloat so much then program for Haiku where you can directly use it's C++ application interface without getting a headache

or learn to program against the native Win32 API and get some headaches and write some XML so that Windows knows it doesn't have to use the Windows 2000 theme on the application for it to work.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]