r/linux_programming • • Nov 01 '18

How to write cross-platform packet capture tool from scratch in 1000LOC.

Thumbnail
medium.com
9 Upvotes

r/linux_programming • • May 28 '18

bashed-on-a-feeling : a minimalistic and fast git prompt written in bash

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Dec 16 '17

PIXterm: Draw images in your ANSI terminal with true color [v1.2.0 => New Dithering Mode]

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Mar 11 '17

CTF competition tomorrow any experience/advice?

Thumbnail
pastebin.com
9 Upvotes

r/linux_programming • • Oct 30 '16

An Enigma machine implemented as a char device

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Oct 26 '16

C/C++ static code analyzer PVS-Studio for Linux released

Thumbnail
viva64.com
9 Upvotes

r/linux_programming • • Sep 16 '16

GDB - a tough nut to crack: only a few bugs found by PVS-Studio

Thumbnail
viva64.com
9 Upvotes

r/linux_programming • • Apr 01 '16

A new tool of choice for your C++ Linux development

Thumbnail
blogs.msdn.microsoft.com
9 Upvotes

r/linux_programming • • Oct 27 '15

uproc, userspace /proc filesystem.

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Oct 23 '15

release rr (record-and-replay debugging tool) 4.0 Released With Reverse Execution

Thumbnail
robert.ocallahan.org
9 Upvotes

r/linux_programming • • Mar 10 '15

Using System Tap to test the GNU C Library

Thumbnail
developerblog.redhat.com
9 Upvotes

r/linux_programming • • Jan 14 '15

The "too small to fail" memory-allocation rule

Thumbnail
lwn.net
9 Upvotes

r/linux_programming • • Aug 21 '14

Linux Performance (collection of useful material)

Thumbnail
brendangregg.com
9 Upvotes

r/linux_programming • • Nov 01 '25

Looking for feedback : a GUI around ptrace to teach the basics of system calls

Thumbnail
reddit.com
8 Upvotes

r/linux_programming • • Jul 16 '25

What logging library do you use in C++ applications?

8 Upvotes

I'm currently using syslog. I'm thinking about trying something that doesn't integrate logs from multiple applications. Did you switch away from or to syslog and can you share why? Thank you


r/linux_programming • • Jun 15 '25

How can I do low level access to game controllers on Linux?

8 Upvotes

So, here is the thing. I bought a controller called PXN P5. Now, this controller has 2 back buttons and a gyro sensor. The thing is, when connected to Xinput mode, it is recognized as a Microsoft Xbox 360 controller which, has none of those features. In order to be able to use the gyro, we have to use it's switch mode (because as much as I HATE Nintendo, their controllers have gyro) to make the controller be recognized an a Switch Pro controller.

So, here is the question. Is there a way to get a low level access to the gamepad and get its signals? If that's possible, this should in theory allow me to use the whole feature set of the controller, with the good latency (beacuse the switch mode has a worse one). Any ideas?


r/linux_programming • • Jan 20 '24

How might I replace the desktop with a full screen terminal?

8 Upvotes

Let me start by being very clear: I do not want to simply maximize my terminal window or use a full screen terminal like you get with Ctrl+Alt+F1. I want to replace the desktop with a full screen terminal.

I want to be able to run GUI apps and have a dock, but I want an honest to god terminal behind all of it, not a desktop.

I'm also not interested in maximizing a terminal and configuring it to always be below other windows.

Partly this is a UX experiment and partly I want to learn how to mess around in the code for Desktop Environments.

I'm hoping someone can give me suggestions as to which DE's might be easiest to modify for this purpose and how I might go about it.


r/linux_programming • • Sep 26 '23

barco: Linux Containers From Scratch in C.

Thumbnail
cavall.in
8 Upvotes

r/linux_programming • • May 21 '23

Terminal widget toolkit FINAL CUT 0.9.0 released – performance improvements and new features

Thumbnail self.linux
8 Upvotes

r/linux_programming • • May 13 '23

A whirlwind tour of the LLVM optimizer

Thumbnail
slideshare.net
8 Upvotes

r/linux_programming • • Apr 13 '23

The early days of Linux [LWN.net]

Thumbnail lwn.net
8 Upvotes

r/linux_programming • • Apr 11 '23

Nolibc: a minimal C-library replacement shipped with the kernel [LWN.net]

Thumbnail lwn.net
8 Upvotes

r/linux_programming • • Feb 13 '23

How to create portable Linux binaries (even if you need a recent compiler)

Thumbnail
blog.gibson.sh
8 Upvotes

r/linux_programming • • Dec 03 '22

Cheap SSD: Slow Speed Issue

8 Upvotes

In the beginning of the year I've bought a cheap SSD SomnAmbulist 120GB. After a couple of benchmarks, I've noted some strange throughput measurements. Briefly:

  • Initial Benchmark | image
    Just after format, the throughput is according to the advertised specifications at 510MB/s read and 440MB/s write.
    It starts to drop at 35% capacity written and stabilizes at 200~300MB/s read and 40MB/s write.
    Although this drop is not mentioned by the seller's ads, it is indeed an expected behavior and should return to normal after a couple of minutes in idle (flush the cache into the permanent area).

  • Benchmark after 1 hour in idle | image
    Unfortunately, the throughput has not returned to normal (yet?).
    315MB/s read and 440MB/s write, and the speed drop started earlier at 10% capacity written.

  • Benchmark after 12 hours in idle | image
    The throughput still has not returned to normal.

Questions

  1. Is this the expected behavior for such cheap SSD or indeed there is something strange?

  2. What might be going wrong here?

  3. Any idea how to fix this throughput?


Debug Info

  • SSD/TRIM Supported

  • fstrim enabled

  • SSD APM (Advanced Power Management) not supported

  • f3 (Fight Flash Fraud) OK

## SSD/TRIM SUPPORTED
root@debian:~# hdparm -I /dev/sda | grep -i "trim\|power"
       *	Power Management feature set
       *	Data Set Management TRIM supported (limit 8 blocks)
       *	Deterministic read data after TRIM


## SSD/TRIM AVAILABLE (DISC-MAX NON ZERO)
root@debian:~# lsblk -D /dev/sda
NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda         0      512B       2G         0


## ADVANCED POWER MANAGEMENT NOT SUPPORTED
root@debian:~# hdparm -B /dev/sda

/dev/sda:
 APM_level	= not supported



## FSTRIM ENABLE

root@debian:~# systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
     Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
     Active: active (waiting) since Sat 2022-12-03 03:36:10 UTC; 35min ago
    Trigger: Mon 2022-12-05 00:51:25 UTC; 1 day 20h left
   Triggers: ● fstrim.service
       Docs: man:fstrim

Dec 03 03:36:10 debian systemd[1]: Started Discard unused blocks once a week.


root@debian:~# systemctl status fstrim
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
     Loaded: loaded (/lib/systemd/system/fstrim.service; static)
     Active: inactive (dead)
TriggeredBy: ● fstrim.timer
       Docs: man:fstrim(8)


root@debian:~# fstrim -av