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•6m 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?

Artemis II crew take 'spectacular' image of Earth

https://www.bbc.com/news/articles/ce8jzr423p9o
389•andsoitis•3h ago•159 comments

iNaturalist

https://www.inaturalist.org/
302•bookofjoe•6h ago•90 comments

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

Tell HN: Anthropic no longer allowing Claude Code subscriptions to use OpenClaw

34•firloop•37m ago•17 comments

What changes when you turn a Linux box into a router

https://patrickmccanna.net/7-configuration-changes-that-turn-a-multi-homed-host-into-a-switch-rou...
73•0o_MrPatrick_o0•3d ago•19 comments

Fake Fans

https://www.wordsfromeliza.com/p/fake-fans
18•performative•1h ago•0 comments

Show HN: I built a frontpage for personal blogs

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

Oracle Files H-1B Visa Petitions Amid Mass Layoffs

https://nationaltoday.com/us/tx/austin/news/2026/04/03/oracle-files-thousands-of-h-1b-visa-petiti...
289•kklisura•3h ago•144 comments

Go on Embedded Systems and WebAssembly

https://tinygo.org/
117•uticus•6h ago•15 comments

Charge Robotics (YC S21) Is Hiring Software and Hardware Engineers

https://jobs.ashbyhq.com/charge-robotics
1•banks_h•2h ago

We replaced RAG with a virtual filesystem for our AI documentation assistant

https://www.mintlify.com/blog/how-we-built-a-virtual-filesystem-for-our-assistant
199•denssumesh•1d ago•91 comments

The house is a work of art: Frank Lloyd Wright

https://aeon.co/essays/frank-lloyd-wright-as-a-mirror-of-the-american-condition
14•midnightfish•1h ago•0 comments

Samsung Magician disk utility takes 18 steps and two reboots to uninstall

https://chalmovsky.com/2026/03/29/samsung-magician.html
390•chalmovsky•5d ago•212 comments

How to Make a Sliding, Self-Locking, and Predator-Proof Chicken Coop Door (2020)

https://www.backyardchickens.com/articles/how-to-make-a-sliding-self-locking-and-predator-proof-c...
62•uticus•4h ago•31 comments

Iran Strikes Leave Amazon Availability Zones "Hard Down" in Bahrain and Dubai

https://www.bigtechnology.com/p/iran-strikes-leave-amazon-availability
87•upofadown•2h ago•43 comments

Async Python Is Secretly Deterministic

https://www.dbos.dev/blog/async-python-is-secretly-deterministic
55•KraftyOne•4h ago•23 comments

A Taxonomy of Interiors

https://misfitsarchitecture.com/2026/03/29/a-taxonomy-of-interiors/
15•downweight•4d ago•0 comments

F-15E jet shot down over Iran

https://www.theguardian.com/world/2026/apr/03/us-fighter-jet-confirmed-shot-down-over-iran
320•tjwds•7h ago•744 comments

Age verification on Systemd and Flatpak

https://cybrkyd.com/post/age-verification-on-systemd-and-flatpak/
49•londonanon•4h ago•53 comments

Why are we still using Markdown?

https://bgslabs.org/blog/why-are-we-using-markdown/
34•veqq•5h ago•92 comments

DCJ11Hack+ – DEC PDP/11 based homebrew computer

https://codeberg.org/TechPaula/DCJ11HackPlus
17•zdw•3d ago•0 comments

Build your own Dial-up ISP with a Raspberry Pi

https://www.jeffgeerling.com/blog/2026/build-your-own-dial-up-isp-with-a-raspberry-pi/
96•arjunbajaj•8h ago•20 comments

Automatic Textbook Formalization

https://github.com/facebookresearch/repoprover
23•tzury•3h ago•7 comments

April 2026 TLDR Setup for Ollama and Gemma 4 26B on a Mac mini

https://gist.github.com/greenstevester/fc49b4e60a4fef9effc79066c1033ae5
285•greenstevester•13h ago•111 comments

The Hardest Document Extraction Problem in Insurance

https://www.furtherai.com/engineering-blogs/hardest-document-extraction-problem-in-insurance
16•sgondala_ycapp•2h ago•2 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

SSH certificates: the better SSH experience

https://jpmens.net/2026/04/03/ssh-certificates-the-better-ssh-experience/
204•jandeboevrie•13h ago•87 comments

Firm boosts H.264 streaming license fees from $100k up to staggering $4.5M

https://www.tomshardware.com/service-providers/streaming/h264-streaming-license-fees-jump-from-10...
128•MaximilianEmel•5h ago•54 comments

A Recipe for Steganogravy

https://theo.lol/python/ai/steganography/seo/recipes/2026/03/27/a-recipe-for-steganogravy.html
132•tbrockman•5d ago•29 comments