frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: TinyOS – A minimalist RTOS for Cortex-M written in C

https://github.com/cmc-labo/tinyos-rtos
37•hpscript•1h ago

Comments

hpscript•1h ago
Hi HN,

I’ve been working on a tiny RTOS as a personal project to better understand how operating systems and schedulers work internally.

This project includes: - Basic task scheduler - Context switching - Simple memory management - Runs on (your target hardware or environment)

Motivation: I wanted to learn OS internals by building everything from scratch rather than relying on existing frameworks.

Challenges: - Implementing context switching correctly - Designing a minimal but usable scheduler - Keeping the codebase simple and readable

I’d really appreciate feedback, especially on: - Architecture design - Scheduler implementation - Code structure

GitHub: https://github.com/cmc-labo/tinyos-rtos

bahmboo•52m ago
Impressive! Very complete on first glance. You might want to soften or qualify the RTOS statement so people focus on its compactness and low latency. As you are already seeing in the comments the RTOS aspect has a lot of opinions depending on what one is trying to accomplish.
Yokohiii•1h ago
I have no practical insight on RTOS in general, if anyone bothers to give me a hint, please. From all what I've looked into, RTOS does mean to create software systems that are almost perfectly predictable and safe to execute. Predictable latency, runtime and memory usage, plus maybe side channels to do the unpredictable stuff in between. It's actual rocket science, as no systemic mistakes are allowed. The confusion is that this project doesn't mention any of it. Is it just hijacking of a fancy acronym, are there two worlds side by side or am I completely misled?
avadodin•56m ago
You're probably thinking of a hard real-time RTOS with time slices and WCET constraints.

For soft real-time, you basically only need low latency.

Threads with priorities, synchronization primitives and some way of handling interrupts is generally considered good enough.

From the description, this sounds like the kind of RTOS that runs most embedded RT applications currently if perhaps a bit heavier in features than the average with filesystem and networking support.

jtrueb•56m ago
RTOS can be used a lot looser than you describe. Like a build system, scheduling, and interrupt framework that allows you to program an MCU like you describe. Zephyr RTOS and Free RTOS provide easy enough ways to write code that uses blocking APIs but probably runs your code according to the timing constraints if you hold it right. As an alternative, you could write for “bare metal” and handle the control flow, scheduling, interrupting, etc. yourself. If you are writing to “random” addresses according to some datasheet to effect some real world change, you are probably reaching for an RTOS or bare metal unless you are writing OS driversn. If you look at the linux drivers, you will see a lot of similarities to the Zephyr RTOS drivers, but one of them is probably clocking in the MHz while the other in the GHz
sublinear•37m ago
> It's actual rocket science, as no systemic mistakes are allowed

Lots of everyday stuff is running on bare metal code that exceeds so-called "real time" requirements without an OS at all, and those programmers are definitely not rocket scientists! :)

nofunsir•47m ago
What ever happened to μC/OS?

Seemed both well documented and well suited to have taken over for the current MCU explosion. I almost never see anyone talk about it.

Looks like it open-sourced in 2020.

https://github.com/weston-embedded

mc7alazoun•35m ago
I've learnt something new: RTOS stands for Real-Time Operating System. Thanks for sharing; your README is top-notch!
jockm•5m ago
Question: Do you mean real time, meaning there is some kind of expectation of task switching time, nothing can stop other threads from executing, etc; or do you really mean embedded?

Show HN: TinyOS – A minimalist RTOS for Cortex-M written in C

https://github.com/cmc-labo/tinyos-rtos
38•hpscript•1h ago•9 comments

Show HN: I built a frontpage for personal blogs

https://text.blogosphere.app/
613•ramkarthikk•10h ago•166 comments

Show HN: Ismcpdead.com – Live dashboard tracking MCP adoption and sentiment

https://ismcpdead.com
20•sagirodin•4h ago•16 comments

Show HN: TurboQuant for vector search – 2-4 bit compression

https://github.com/RyanCodrai/py-turboquant
86•justsomeguy1996•5d ago•5 comments

Show HN: Apfel – The free AI already on your Mac

https://apfel.franzai.com
631•franze•14h ago•137 comments

Show HN: Run Claude Code autonomously inside your Docker Compose stack (OSS)

https://github.com/sayil/dangerously
5•sayil•3h ago•0 comments

Show HN: Made a little Artemis II tracker

https://artemis-ii-tracker.com/
141•codingmoh•1d ago•54 comments

Show HN: Home Maker: Declare Your Dev Tools in a Makefile

https://thottingal.in/blog/2026/03/29/home-maker/
90•sthottingal•5d ago•60 comments

Show HN: Matrix OS, like Lovable, but for personal apps

https://matrix-os.com/
2•hamedmp•6h ago•1 comments

Show HN: Dull – Instagram Without Reels, YouTube Without Shorts (iOS)

https://getdull.app
147•kasparnoor•2d ago•115 comments

Show HN: Minimal Brain Teaser Web Game (Handcrafted, No AI)

https://mehuleo.github.io/encircle/
19•arttaboi•19h ago•10 comments

Show HN: A P2P messenger with dual network modes (Fast and Tor)

https://github.com/Realman78/Kiyeovo/
37•Realman78•1d ago•21 comments

Show HN: Speck PBR – A WebGPU molecular visualizer

https://github.com/wwwtyro/speck-pbr
3•wwwtyro•7h ago•0 comments

Show HN: Aurion OS, A 1.8MB OS with a browser, try it live (C/x86 ASM)

https://aurionos.vercel.app/
4•Luka12-dev•7h ago•1 comments

Show HN: I built a DNS resolver from scratch in Rust – no DNS libraries

https://github.com/razvandimescu/numa
105•rdme•1d ago•64 comments

Show HN: I tested 15 free AI models at building real software on a $25/year VPS

https://georgelarson.me/writing/2026-04-03-25-dollar-ai-lab/
29•j0rg3•1d ago•4 comments

Show HN: CLI to order groceries via reverse-engineered REWE API (Haskell)

https://github.com/yannick-cw/korb
203•wazHFsRy•4d ago•85 comments

Show HN: SyNumpy – a Header only C++17 library for working with NumPy Arrays

https://github.com/symisc/sy-numpy-cpp
19•symisc_devel•1d ago•3 comments

Show HN: Community Curated Lists

https://www.thebreakfastlist.com/
2•onounoko•5h ago•0 comments

Show HN: Git bayesect – Bayesian Git bisection for non-deterministic bugs

https://github.com/hauntsaninja/git_bayesect
335•hauntsaninja•6d ago•44 comments

Show HN: OpenCode Pollinations Plugin –AI & tool layer with freetier control

https://github.com/fkom13/opencode-pollinations-plugin
2•ericnolo•10h ago•1 comments

Show HN: Large scale hallucinated citation problem in published literature

https://www.nature.com/articles/d41586-026-00969-z
2•cyclecycle•3h ago•0 comments

Show HN: Figma 3D Tilt, Like "Firefox Tilt" but for Figma

https://www.figma.com/community/plugin/1592501914078287014/figma-3d-tilt
3•say2015•10h ago•0 comments

Show HN: Postgres extension for BM25 relevance-ranked full-text search

https://github.com/timescale/pg_textsearch
201•tjgreen•3d ago•57 comments

Show HN: Zerobox – Sandbox any command with file, network, credential controls

https://github.com/afshinm/zerobox
139•afshinmeh•4d ago•92 comments

Show HN: Forkrun – NUMA-aware shell parallelizer (50×–400× faster than parallel)

https://github.com/jkool702/forkrun
149•jkool702•1w ago•41 comments

Show HN: 1-Bit Bonsai, the First Commercially Viable 1-Bit LLMs

https://prismml.com/
419•PrismML•3d ago•152 comments

Show HN: Koriander – Recipe manager that parses ingredients and tracks nutrition

https://koriander.app
2•laleshii•12h ago•2 comments

Show HN: A Minimal Basic Inspired by Brainfuck

https://coe.psu.ac.th/ad/minBASIC/
8•ADavison2560•23h ago•0 comments

Show HN: Flight-Viz – 10K flights on a 3D globe in 3.5MB of Rust+WASM

https://flight-viz.com
85•coolwulf•2d ago•45 comments