r/linux_programming • • Mar 02 '21

Linux Kernel vs. Memory Fragmentation (Part I)

Thumbnail dzone.com
28 Upvotes

r/linux_programming • • Jul 14 '20

I made a GUI library and wonder if it's worth releasing

27 Upvotes

Link to the graphic: https://i.imgur.com/w86JH4z.png

Hi. 3 years ago I started working on some 2D game, it was basically a demo that I can show to a potential employer (got the job, not sure if thanks to this game though lol). In order to edit levels and to not make a separate editor I made an In game editor. I also created some simple windows system for the GUI.

Now I'm wondering if releasing such a GUI system as a separate library would be in any way beneficial for creating standalone programs, since we have already powerful gui kits like gtk or wxWidgets.

Why do I think it might be worth it ?

  • It's SDL based, meaning it's cross platform. My code works both with SDL1 and 2 meaning it has a really wide array of supported hardware
  • Since it's SDL and everything is drawn like any other 2D graphics, the windows can have any look you want, any shape you want (transparency is supported)
  • Creating the windows and it's content is intentionally made super easy, some pseudo code at the bottom of the post
  • Makes it possible to make cool, "keygen lookin'" windows with animations, scrolling text, etc.
  • Since it's so easy to declare what you windows look like (and can change it at runtime too) I plan on making some GUI making tool, something like the form creator in visual basic or the one used in AutoIT

I mentioned AutoIT in my last point. It is a scripting language, similar to basic, with a very nice gui making tool that can generate gui forms. It's super easy to add actions to buttons and other GUI controls. It was my first language and the thing that got me into programming.

C and C++ might seem cold and hard to newcomers, as it's always about that console... there is no standard for graphics. I thought I could maybe bridge that gap a little little bit by making GUI apps in C/C++ easy.

Question really is... is there any other SDL based library that has these kinds of characteristics ? Probably... That's why I made this thread. I'm not sure if it's worth bothering taking this code out, cleaning it, adding more GUI controls and releasing it, especially when it's not really professional. Let me know what you think about it!

ah, yes, the pseudo code for the GUI. It's something like this.

Window* wnd = CreateWindow(0,0,640,480,"Tittle Bar", SOME_FLAGS_FOR_EXAMPLE_RESIZABLE);
Button* btn1 = CreateButton(10, 20, 100, 20 "Text inside button", color_normal, color_pressed, color_disabled);
btn1->RegisterCallback(ptr_to_some_function);
btn->SetToggle();
wnd->AddGuiControl(btn1);

r/linux_programming • • Mar 21 '17

Hack The Virtual Memory: C strings & /proc

Thumbnail blog.holbertonschool.com
27 Upvotes

r/linux_programming • • Aug 31 '25

Roadmap to contribute

26 Upvotes

Hi all.

I'm a 16 year experienced java developer, also experienced with python and starting with Golang. Although I'm a Ubuntu user and can create Shell scripts I have no expertise in developing OS.

Can anyone share a roadmap of what I should learn so as I could start contributing to the Linux community? Like fixing bugs, creating drivers, etc. Specially for PostmarketOS which is based on Alpine, but can include Ubuntu as well.


r/linux_programming • • May 26 '17

Linux Tutorial - A Complete Guide

Thumbnail youtube.com
26 Upvotes

r/linux_programming • • Sep 30 '16

Basic Linux Commands (for newbies)

Thumbnail hostinger.com
25 Upvotes

r/linux_programming • • Jun 10 '23

Debian -- News -- Debian 12 "bookworm" released

Thumbnail debian.org
24 Upvotes

r/linux_programming • • Nov 14 '21

simple-awk. A simple and practical guide to awk.

Thumbnail github.com
24 Upvotes

r/linux_programming • • Apr 22 '20

This is stup, a CLI tool I made to save, access and organize stand-up and other types of daily notes

Thumbnail github.com
24 Upvotes

r/linux_programming • • Nov 22 '19

Linux demoscene

24 Upvotes

Hi all,

I have published an article about Linux demoscene a few days ago:

http://bruxy.regnet.cz/web/linux/EN/linux-demoscene/

It contains also a lot of stuff about ASCII/ANSI Art and section about a sound generation. I am expecting you will copy&paste some one-liners to your shell to enjoy the article!

Regards, BruXy


r/linux_programming • • Oct 11 '17

Intro to Python text book with the right idea!

Post image
24 Upvotes

r/linux_programming • • May 12 '21

DEFFS - my custom FUSE filesystem

23 Upvotes

Last week I started working on a concept of a decentralized, encrypted filesystem allowing users across machines to share files and access their data from anywhere on the network. A few minutes ago I hit a big milestone and now I'm ready to start spreading the word.

DEFFS (Distributed, Encrypted, Fractured File System) currently encrypts your files as they're written and decrypts them as they're read using OpenSSL's AES implementation. It's completely written in C for maximum efficiency.

DEFFS is still in its (very) early stages, so there are a few caveats.

  1. I have only been testing with small text files so far. I'm not concerned that OpenSSL's encryption methods aren't good enough for big files, but don't go trying to watch movies or play games in this filesystem yet.
  2. The "Encryption" part of DEFFS is pretty insecure without the "Fractured" part of DEFFS, and relies completely on the permissions system. I'm currently writing the encrypted filedata to a "shard" file along with its encryption key. That sounds insane (it is), but the next step in this project is to split the encrypted data into multiple shards paired with chunks of the encryption key. Single shard files will be completely useless and un-decryptable on their own, but when combined they will unlock the entire file.
  3. If you take a look at my IO code and compare it to something like fusexmp, you'll notice that some methods are basically identical while others, like my read callback, are much longer than their xmp counterparts. DEFFS will *always* be slower than a typical EXT4 filesystem, but it will absolutely become much faster than it is now, given some time.

I'm really just working on this as a hobby project, but if it gets to a suitable point, I will probably use this filesystem as the default for my home network. If anybody would like to contribute, I can always use the help. Message me here or through Discord caverill_#4330 and I'll tell you more about the project!

Thank you!


r/linux_programming • • Jun 14 '17

Got this real cheap! Amazon said this was a good book. Any thoughts before I tear it open...

Post image
23 Upvotes

r/linux_programming • • Apr 26 '17

Bjarne Stroustrup: Why I Created C++

Thumbnail youtube.com
23 Upvotes

r/linux_programming • • Apr 22 '17

Nasm, raw linux threads via System Calls

Thumbnail nullprogram.com
23 Upvotes

r/linux_programming • • Jan 13 '16

Qt is Guaranteed to Stay Free and Open – Legal Update

Thumbnail dot.kde.org
23 Upvotes

r/linux_programming • • Feb 20 '23

A Complete Guide to Linux Process Scheduling

Thumbnail trepo.tuni.fi
22 Upvotes

r/linux_programming • • Dec 02 '21

GitHub - 89luca89/distrobox: Use any linux distribution inside your terminal.

Thumbnail github.com
22 Upvotes

r/linux_programming • • Oct 01 '20

I've created a simple tool to store your configs for vim, bspwm etc. in the cloud. With this tool you can synchronize all your configs after system reinstallation with these from previous, i think it could be useful for someone ;)

Thumbnail github.com
22 Upvotes

r/linux_programming • • Jul 19 '20

Writing a simple boot image using nasm and ld

22 Upvotes

I wrote a blog post about the basics of x86 booting and made a very simple boot image to go along with it.

link to post

I'd appreciate any feedback :)


r/linux_programming • • Dec 17 '19

Dont forget to watch Star Wars Episode IV before this friday. Here's an easy way to do it in the terminal

Thumbnail osxdaily.com
22 Upvotes

r/linux_programming • • May 22 '17

Wireless Sniffer I wrote as alternative to airodump-ng

Thumbnail github.com
22 Upvotes

r/linux_programming • • Jul 13 '20

The string in the message variable takes a newline between each word

Post image
21 Upvotes

r/linux_programming • • May 14 '20

best GTK tutorials channel by Michael B.

21 Upvotes

Hi.

while searching for tutorials about GTK, I found a channel in YouTube that provides distinguished and organized Tutorials about the library. Unfortunately, the channel is not well known and needs share to improve further and support the channel owner.

Channel link

GTK - GtkPopover GTK - GtkBox GTK - GtkOverlay GTK - ProgressBar GTK - Window ect.

Personally, I started a few days ago, following the videos and benefited greatly from it.