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•40m 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•44m 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•43m 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•25m 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•35m 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•23m ago
I've learnt something new: RTOS stands for Real-Time Operating System. Thanks for sharing; your README is top-notch!

ZooClaw – Separate workspace and soul per agent, built on OpenClaw

https://zooclaw.ai/en
1•nemofq•2m ago•1 comments

Friday Archaeology: A 25-Year-Old Crypto Library, the Cult of the Dead Cow

https://llama.gs/blog/index.php/2026/04/03/friday-archaeology-a-quarter-century-old-crypto-librar...
1•major4x•3m ago•0 comments

Thoughts on Markdown

http://tantek.pbworks.com/w/page/59905776/Markdown
1•spacebuffer•3m ago•0 comments

Anthropic to limit Using third-party harnesses with Claude subscriptions

2•guiyuwei•6m ago•0 comments

Block's Dorsey Outlines AI-Powered Vision to Cut Middle Managers

https://www.bloomberg.com/news/articles/2026-03-31/block-s-dorsey-outlines-ai-powered-vision-to-c...
1•doctaj•7m ago•1 comments

Overview Effect

https://en.wikipedia.org/wiki/Overview_effect
1•andyjohnson0•7m ago•0 comments

Unofficial Telegram client 'Nekogram' turned out to be a spyware

https://thebadinteger.github.io/nekogram-phone-exfiltration/
2•mathfailure•10m ago•0 comments

Lightweight IDE to Pair with Claude Code?

1•zupancik•11m ago•1 comments

Writing an LLM from scratch, part 32h – Interventions: full fat float32

https://www.gilesthomas.com/2026/04/llm-from-scratch-32h-interventions-full-fat-float32
1•gpjt•12m ago•0 comments

1400% surge in GitHub commits explains service issues

https://twitter.com/kdaigle/status/2040164759836778878
2•tonymet•12m ago•0 comments

Y Combinator's CEO says he ships 37,000 lines of AI code per day

https://www.fastcompany.com/91520702/y-combinator-garry-tan-agentic-ai-social-media
2•jcbhmr•13m ago•0 comments

Imagination is more than sensory replay: study

https://news.feinberg.northwestern.edu/2026/03/31/imagination-is-more-than-sensory-replay/
2•hhs•14m ago•0 comments

Why Are BART and MUNI always broke(n)?

https://aakash.substack.com/p/why-are-bart-and-muni-always-broken
1•logicx24•16m ago•0 comments

Where do AI-built apps usually break when moving from prototype to production?

https://openbaton.com/
1•kellonedwards•16m ago•1 comments

Third-party Claude harnesses will now draw from extra usage

2•iBelieve•18m ago•0 comments

Resurrecting Supermaven: Trad coding is not dead. Just different

https://github.com/nhlmg93/supertab.nvim
1•nhelmig93•19m ago•1 comments

Show HN: SpeechSDK – free, open-source SDK that unifies all AI voice models

https://www.speechsdk.dev/
3•PiersonMarks•20m ago•0 comments

Compliance at scale and why TAM distracts with Christina Cacioppo of Vanta

https://cheekypint.substack.com/p/compliance-at-scale-and-why-tam-is
1•hhs•20m ago•0 comments

Trump announces 'fraud' crackdown in Democratic states as arrests begin in CA

https://www.theguardian.com/us-news/2026/apr/03/trump-vance-fraud-arrest-crackdown-california
4•mitchbob•21m ago•1 comments

Forest Service Will Close Research Stations That Study Wildfire Risk

https://www.nytimes.com/2026/04/03/climate/forest-service-research-stations.html
2•mitchbob•22m ago•0 comments

Anthropic no longer allowing Claude Code subscriptions to be used with OpenClaw

14•firloop•24m ago•5 comments

Researchers develop new way to detect breakthroughs in science: study

https://www.binghamton.edu/news/story/6153/eureka-scientists-develop-new-way-to-detect-breakthrou...
1•hhs•28m ago•0 comments

Tokenizer That Outperform Tiktoken with O200k_base

https://o200k-tokenizer-70fe25.gitlab.io/
1•nispin•29m ago•0 comments

Tinnitus: At a crossroad between phantom perception and sleep (2022)

https://academic.oup.com/braincomms/article/4/3/fcac089/6563428
3•gnabgib•37m ago•0 comments

AI startup envisions '100M new people' making videogames

https://www.pcgamer.com/software/ai/this-ai-startup-envisions-100-million-new-people-making-video...
3•solomonyardley•39m ago•3 comments

Meta Pauses Work with Mercor After Data Breach Puts AI Industry Secrets at Risk

https://www.wired.com/story/meta-pauses-work-with-mercor-after-data-breach-puts-ai-industry-secre...
5•srameshc•45m ago•1 comments

'Hacks' Star Hannah Einbinder Blasts AI Creators as 'Losers'

https://variety.com/2026/tv/news/hannah-einbinder-ai-creators-losers-1236706302/
2•bogzz•48m ago•1 comments

Show HN: Standalone TurboQuant KV Cache Inference

https://github.com/g023/turboquant
3•g023•48m ago•1 comments

Darkness can "travel" faster than light speed

https://www.nature.com/articles/s41586-026-10209-z
4•Jimmc414•49m ago•2 comments

Soros: The anatomy of an agentic geopolitical simulation engine

https://asksoros.com/insights/soros-anatomy-agentic-geopolitical-simulation
4•muggermuch•49m ago•4 comments