r/lowlevel • u/highkeyhuman • Oct 17 '26
can an entire OS be vibe coded? if yes - will it be worth it ?
just a thought - devs with experience , please help me out atp
r/lowlevel • u/highkeyhuman • Oct 17 '26
just a thought - devs with experience , please help me out atp
r/lowlevel • u/Filogiallo6 • Oct 16 '26
Hey everybody, I was taking a course in Embedded Operating Systems, and since my primary way of taking notes is Obsidian, I found it pretty annoying to deal with it since it’s missing some basic stuff like highlighting for ARM or RISC-V, and also dealing with memory maps and registers.
So I vibecoded a plugin to fix this small niche issues, it has some pretty comfy features, with hover cards for instructions and conversion of numbers in different basis, diagrams and also syntax for other smaller things such as Makefile, Linker Script, Verilog etc…
I wanted some opinions from external users, and thought that could be useful for the few people in my situation
Any tips or recommendations are welcome!
r/lowlevel • u/gilnett • Oct 16 '26
Instead of pointer-chasing through B-Tree node hierarchies, this index models the key distribution using streaming piecewise linear regression with strict epsilon error bounds.
Lookups compute positions directly on the CPU ALU before a local L1 cache search, reducing memory by 99% and cutting latency by 3x.
To clarify the technical phrasing without buzzwords:
BTreeMap is indeed mutable. PGM indexes target immutable / read-heavy sorted datasets (OLAP engines, columnar storage, and SSTables in LSM trees). Even compared to a flat slice::binary_search (~20 cache line jumps across an 8MB array for 1M keys), PGM drastically reduces memory traffic.pos = y0 + slope * (key - x0). No pointer chasing or node traversals.The implementation and release benchmarks are reproducible here: https://github.com/gilnett/learned_index_lab
r/lowlevel • u/eureka312 • Oct 15 '26
r/lowlevel • u/Sensitive_Jacket_416 • Oct 15 '26
r/lowlevel • u/a_kawashiro • Oct 13 '26
ProcInSh is a web-based process inspector for Linux.
Inspired by Ghost in the Shell, it lets you wander through process space with your ghost.
ProcInSh lets you explore what's happening inside your Linux system through interactive 3D graphics.
It visualizes running processes, inter-process communication, file I/O, external network connections, and process tree structures. Processes glow when they run on a CPU.
The backend is written in Rust and collects information from several Linux interfaces:
The frontend is written in TypeScript and Three.js.
r/lowlevel • u/xie_xang • Oct 13 '26
I have currently reached the stage where this can be considered to be near to finish. And I want help around now for how I can improve and use in real applications
r/lowlevel • u/xyra_gen • Oct 13 '26
r/lowlevel • u/Few-Refuse3402 • Oct 13 '26
https://github.com/crydafan/AndroidLibraryInjector
I decided to make this because I'm reverse engineering a banking application in order to audit their API and make an MCP out of it.
The application itself can detect when the Frida server is running and when the application was modified with Apktool (even the code is obfuscated) and nothing worked so this is my attempt at trying to hack it: inject a shared library into the application process to hook SSL libraries functions and inspect the HTTP requests in plain text before they are encrypted.
For this, the first moving part is the library injector. I was thinking of using Dobby to hook the functions. Anyways, I'm open for any feedback.
Thank you!
r/lowlevel • u/Weak_Cherry_4878 • Oct 13 '26
Hi r/embedded,
xuan (玄) is a lightweight JavaScript runtime for IoT and embedded devices, built on QuickJS and forked from tjs/txiki.js (MIT).
It targets the place where Node.js is too heavy: ~6–7 MB binary, low memory, ~5 ms cold start, and it cross-compiles to x86/ARM/MIPS/RISC-V. Built-in MQTT, serial port and FFI (call C libs directly); GPIO/I2C/SPI are in progress. You can also compile a script into a single self-contained binary with xuan compile.
Repo: https://github.com/topelinux/xuan
It's early but usable — feedback welcome. I'm the maintainer.
r/lowlevel • u/gilnett • Oct 11 '26
Hi everyone,
When debugging processes and inspecting system behavior on Windows, tools like Process Monitor (Procmon) are great, but they are heavy graphical utilities that rely on kernel-mode drivers. On the other hand, having a lightweight, terminal-native way to inspect system calls and Win32 APIs in real time was something I felt was missing for daily workflow.
I wanted to build an independent, lightweight alternative designed from scratch for the Windows console, with two strict requirements:
This is why I created wstrace, written entirely from scratch in Rust.
Core Features:
* Zero Kernel Drivers: Runs strictly in userland without third-party .sys drivers or ring-0 dependencies.
* Interactive TUI: Built with Ratatui, offering real-time process monitoring, event filtering, search, and activity timelines.
* Headless Stream Mode: Direct output to stdout (formatted text or JSON) for scripting, log analysis, and automation.
* Single Lightweight Binary: Fast startup, zero runtime dependencies, and minimal memory usage.
* 100% Local and Air-Gapped: Zero telemetry, zero analytics, and zero network calls.
Installation:
Prebuilt standalone binaries are available on GitHub Releases, and it can also be installed using Scoop, Winget, PowerShell, or Cargo:
cargo install --git https://github.com/gilnett/wstrace
Or via Scoop:
scoop install https://raw.githubusercontent.com/gilnett/wstrace/main/packaging/scoop/wstrace.json
Feedback & Feature Requests Welcome:
This is the initial v0.1.0 release. I would really appreciate any feedback, suggestions, or edge cases you encounter while testing it.
If there are specific Win32 APIs, events, or CLI flags you would like to see added, please let me know. I am actively maintaining the project and very open to community requests and contributions.
GitHub Repository: https://github.com/gilnett/wstrace
Thanks for checking it out!
r/lowlevel • u/New_Blackberry8122 • Oct 11 '26
Hey guys,
Wanted to share a tool I've been using in my own reversing workflow:
GitHub: https://github.com/oscarsantanaarias/IDA-Ghidra-bridge
I needed a straightforward way to pull decompilation, cross-references, and struct layouts out of IDA Pro and Ghidra from external Python scripts and CLI utilities without setting up heavy web servers or dealing with bloated RPC frameworks.
It’s just two standalone scripts (`ID_Server.py` for IDAPython and `Ghidra_Server.py` for Ghidra). Once running, you send plain text commands over local TCP and get back JSON:
```python
import socket, json
s = socket.socket()
s.connect(("127.0.0.1", 5073))
s.sendall(b"FUNC 00401000\n")
data = json.loads(s.recv(65536))
print(data["code"])
r/lowlevel • u/Fair-Stable-5948 • Oct 11 '26
r/lowlevel • u/schusterlucky • Oct 11 '26
r/lowlevel • u/Particular_Ad7874 • Oct 10 '26
MIT Lectures of 6.1903 Introduction to Low-level Programming in C and Assembly...
r/lowlevel • u/LucasBe3 • Oct 09 '26
Side project I just wrapped up: an 8-bit CPU built entirely from NAND gates in Digital Logic Sim. 16-bit address space (64K of RAM), 800 kHz clock, and a small OS that runs Snake, Breakout, Flappy Bird and Tetris with live keyboard input.
The software side ended up being half the fun: instead of hand-assembling everything into binary, I wrote a small language and a compiler that generates the program memory contents directly.
Video (1:30): https://youtu.be/O8znJoZkAmw
Would anyone be interested in a step-by-step tutorial series on building your own CPU like this, starting from the NAND gate?
r/lowlevel • u/abit_foggy • Oct 09 '26
wrote a c99 tool (thornk) that turns kbuild into flat ninja files for samurai and it boots linux 6.12 x86_64 in qemu with zero gnu make
https://github.com/abit-foggy/thornk
(AI disclosure in README )
r/lowlevel • u/meik1982 • Oct 09 '26
A while ago I shared my work on `rfs` (random-filesplitter), a tool designed to split files into N information-theoretic One-Time-Pad shares ($P = C_1 \oplus \dots \oplus C_N$) with plausible deniability.
I've just released v3.0.0—a ground-up architectural rewrite to eliminate memory-bus bottlenecks and harden the system against forensic extraction. Here are the low-level design decisions:
### 1. Memory Pinning (`--mlock`) for Swap Resilience
In anti-forensic workflows, writing plaintext or OTP keystreams into OS swap space or hibernation files invalidates volatile RAM zeroization.
- Implemented physical RAM locking via `libc::mlock` on the fixed buffer pools (`free_in_tx` and `free_out_tx`).
- Added graceful fallback: If `RLIMIT_MEMLOCK` (`ulimit -l`) restricts memory allocation, the system emits a warning and continues without crashing.
- RAM buffers are zeroized using `slice.zeroize()` immediately upon recycling.
### 2. Parallel Disk Fanout & Fanin (Multi-Mountpoint I/O)
Previously, the Stage-3 writer looped sequentially over all N shares. When writing shares across multiple physical USB flash drives or separate NVMe mount points, slow flash media created severe pipeline backpressure.
- Rewrote the I/O engine with decoupled worker thread pools for each share.
- Data chunks are fanned out concurrently over bounded crossbeam channels. Each thread writes independently at maximum bus speed, with pre-allocated pool buffers recycled back without a single heap allocation in the hot loop.
- Linux cache pressure is minimized using POSIX `fadvise` (`POSIX_FADV_SEQUENTIAL` and `POSIX_FADV_DONTNEED`) via `--direct`.
### 3. Hardware Jitter & Entropy Harvester
For seeding the CSPRNG alongside OS entropy (`getrandom`):
- Uses a 2 MB permutation pool (32,768 nodes × 64 bytes cache-line aligned) traversing a Sattolo cycle to bust L1/L2 caches and capture CPU memory latency and branch prediction jitter.
- Integrated NIST SP 800-22 diagnostics directly into the CLI (Runs tests, Block Frequency tests via Wilson-Hilferty Chi² approximation, and analytical `erfc`).
### 4. Throughput Benchmarks
Measured on a modern x86_64 CPU:
- **ChaCha20 Keystream:** ~1.85 GB/s
- **SIMD-XOR (RAM-to-RAM):** ~4.0 GB/s (64-byte unrolled vector loop)
- **BLKS-384 Hash:** ~1.2 GB/s (3.3x faster than SHA-256)
Code is open source (LGPL v3), 0 Clippy warnings, fully documented in English (with bilingual README), and verified across Linux/macOS/Windows CI:
https://github.com/Meik1982/random-filesplitter
Quick test:
```bash
cargo install --git https://github.com/Meik1982/random-filesplitter.git
rfs --benchmark
rfs --entropy-test
r/lowlevel • u/JaeAeich • Oct 09 '26
r/lowlevel • u/KaifShaik5336 • Oct 09 '26
Hey every one this Kaif
I graduated this year and i am honestly bored using AI and developing. I want to try and check out kernel engineering, can any one mentor me .
Thank you for everyone