avr_threads
Languages and libraries
threading library for microcontrollers
SHOW HN2020
How HN took it
6 positive, 4 neutral or asking, 0 mixed, 2 critical, out of 12 comments about the project. Thread score +0.25.
Idea: 4 for, 1 againstDocs: 2 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Fun hacking project that revives nostalgia for building schedulers
From 3 comments
Ahhh this reminded me of when I as a teen saved up and bought "Assembly Language Master Class"[1], the only assembly-related book I could find in my local bookstore that didn't…
magicalhippo on HN>Never got further, it was more of a "can I do it" type project, but boy that feeling when I saw my three "processes" running one after another without cooperation... priceless!…
snvzz on HNI love it. The next level of this hack would be integrating it with the Rust/AVR work and building pseudo-threads with memory and thread safety on the platform (for no reason…
mmastrac on HN
Interesting exploration of how far software can be pushed on cheap chips
From 1 comment
It's always interesting to explore how far a thing can be pushed software-wise. Copying bits is free and small AVRs are literally cents per piece in large quantities.
avian on HN
Objections
Register save/restore overhead is high; could use dedicated registers per thread
From 1 comment
I'm looking at these long series of pushes and pops [1]. You have 26 general-purpose registers plus X, Y, Z. I wonder if it would be possible to have e.g. only 4 threads and have…
avian on HN
Missing explanation for flag values in source comments
From 1 comment
> /* Don't change these flag values! */ Rant: It always annoys me when I see comments like this in the source. If it is important enough to implore people not to change something…
kwhitefoot on HN
Requests
Add explanation for the flag constants in the code
From 1 comment
> /* Don't change these flag values! */ Rant: It always annoys me when I see comments like this in the source. If it is important enough to implore people not to change something…
kwhitefoot on HN
Link to code instead of long inline snippets in comments
From 1 comment
cool code, but oof. can you make that a link to a pastebin? my scroll-wheel finger would thank you.
woodrowbarlow on HN
Questions
Can avr-gcc be made to limit register use for threaded C code
From 1 comment
I'm looking at these long series of pushes and pops [1]. You have 26 general-purpose registers plus X, Y, Z. I wonder if it would be possible to have e.g. only 4 threads and have…
avian on HN
Alternatives named
Mantis OS for AVR ATmega128
From 1 comment
I wrote a pre-emptive, multi-threaded OS for the AVR atmega 128 back in college as a sensor networking operating system called Mantis OS (mos). For anyone interested in this…
goldenshale on HN
kernelpanic, a UNIX-targeted toy preemptive OS
From 1 comment
I also wrote a preemptive threaded operating system for AVR atmega 128. At the start we had threads, pipes between threads, serial io, interrupts. After we finished the project,…
andrewguy9 on HN
seL4 microkernel
From 1 comment
>Never got further, it was more of a "can I do it" type project, but boy that feeling when I saw my three "processes" running one after another without cooperation... priceless!…
snvzz on HN