frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

My journey from a todo app to a VM where tasks are stateful executable programs

1•tracyspacy•1h ago
# How it all started?

Sometimes, there are moments when you feel loosing control over your life, when there is to much on a plate and all this overwhelms you, makes you anxious. For me, solution always was to use kind of "get things done" tools, to organize myself. I tried various todo apps, even bought a paper todo, but this wasn't enough this time. Every restriction in functionality, every missed feature made me feel I'm loosing control again. And one moment I gave up and decided it is time to make my own tool and make it right (in my understanding), i.e a todo that is highly customazible and instead of hardcoded features can have any you want. Despite todo is an anecdote and there are thousands of them, same as with an edit tool https://devblogs.microsoft.com/commandline/edit-is-now-open-source/ it is quite a challenging task to make a good one.

# Design/Concept

Luckily, I had 2 weeks of winter holidays and I decided to invest this time into a project. I thought a lot on how to make a todo that potentially have any possible feature that anyone can simply add just when they need it. My solution was a Virtual Machine with persistent storage + Tasks that have their own executable instructions. So in this design any todo app could be a simple wrapper around i/o and all functionality would be powered by the VM.

# Problems/Complexity

Creation of a working VM is a complex task for sure. I will not mention every problem I faced during last months, but will just list some features I implemented to solve them:

- NaN-boxing — All stack values are 64-bit (u64) encoding 6 distinct types (Null, Boolean(TRUE_VAL,FALSE_VAL), STRING_VAL, CALLDATA_VAL, U32_VAL, MEM_SLICE_VAL (offset: 25 bits, size: 25 bits)).

- InlineVec — Fixed-size array-backed vector implementation used for stack, control stack, call stack, and jump stack with specified limits.

- Dynamic Memory/Heap — growable Vec heap, memory slices use 25-bit offset and 25-bit size fields (limited by MEM_SLICE_VAL).

- Definite Loops — DO…LOOP 2 nested loops only possible for now.

- Conditional jump - IF..THEN 2 nested IF..THEN statements only possible for now.

- Custom binary encoding/decoding implementation.

# Current state

My Virtual Machine is still in it's early days and may miss some important instructions, but it can be already used for a todo app demo with programmable tasks. All operations — from simple CRUD to the tasks' own instructions — are executed by the VM. The concept is, that any kind of automation or workflow can be enabled by task instructions executed by the VM, rather than hardcoded functions in the app - exactly what I wanted to achieve initially! There are 4 demo task instructions that are not a part of the todo code, but instead are in toml file which could be updated any time with a new one:

- chain - Creates next task once when another is completed. Removes calldata after call - called once

- either - Sets complete if either one or another task is completed + deletes not completed task

- destructable - task self destructs when it’s status set to complete

- hide - Keeps task hidden while specified task’s status is not complete.

https://github.com/tracyspacy/spacydo/tree/main/examples/todo

When I added the todo example, I realized, that the originally hardcoded states in the VM were a limitation. If I would make them generic (which I did), the VM would serve more than just todo apps: new use cases such as tasks orchestration and even state machines became possible. I added a finite state machine primitive example as well - a traffic light - where task is a simple state machine which has own state transition rules in executable calldata.

https://github.com/tracyspacy/spacydo/tree/main/examples/traffic_light

I'm still working on this project alone and struggle to get other people involved to help me stabilize and finalize the VM.

Anyway, this journey is interesting and insightful, and I'm curious what comes next.

Writing on Mount Hymettos in Duplo

https://viewsproject.wordpress.com/2026/02/20/writing-on-mount-hymettos-in-duplo/
1•surprisetalk•23s ago•0 comments

Finite functional programming via graded effects and relevance types [video]

https://www.youtube.com/watch?v=Kxbax4lm72o
1•surprisetalk•26s ago•0 comments

Show HN: I tracked 3,519 stock picks from 23 Substacks – who makes money?

1•lineudemonia•30s ago•0 comments

Show HN: Shannon – Local desktop app to orchestrate Claude Code agent teams

1•lydionfinance•35s ago•0 comments

An Argument The Moon is a PLANET [video]

https://www.youtube.com/watch?v=xgFKxFX3IwY
1•surprisetalk•38s ago•0 comments

Zeroes (2022)

https://taylor.town/zeroes
1•surprisetalk•43s ago•0 comments

Show HN: I scraped 25 UK water companies to grade your tap water by postcode

https://watergrade.zeabur.app/
1•VelvetBrick135•47s ago•0 comments

What is meme management in organizing team workflows?

1•accofrisk•1m ago•0 comments

Progress so far with the Mecha Comet – 22 Feb, 2026

https://www.youtube.com/watch?v=otMoX0-PYp8
1•microflash•1m ago•0 comments

Sdf-plan – deterministic safety gates for any AI agent

https://github.com/directiveproto/sdf-plan
1•directiveproto•2m ago•0 comments

Between Claude Code and my wife, only one enjoyed my late nights

https://zilliz.com/blog/i-spent-600-on-claude-code-to-vibecode-a-2mline-database
1•redskyluan•3m ago•0 comments

Russia-Ukraine war is Europe's deadliest since 1945

https://www.lemonde.fr/en/international/article/2026/02/27/with-an-estimated-500-000-dead-the-rus...
1•geox•4m ago•0 comments

How Platform Affordances Shape Risks of Harassment in Platform-Mediated Work

https://www.mdpi.com/2313-576X/12/1/27
1•PaulHoule•4m ago•0 comments

How to use Claude Cowork to 10x productivity

https://academy.dair.ai/events/cmkws36d1000004jxdeqw7nzr
1•omarsar•6m ago•0 comments

A practical guide to hill climbing

https://cline.bot/blog/a-practical-guide-to-hill-climbing
1•Marha01•6m ago•0 comments

MCP servers help AI learning to act (analysis)

https://shiftmag.dev/how-mcp-server-help-ai-act-7702/
1•cyberkoza•8m ago•0 comments

Micron's $50B Boise chip expansion powers AI growth, adds 60k jobs

https://www.yahoo.com/news/videos/micron-50b-boise-chip-expansion-203058294.html
1•bluedino•8m ago•0 comments

Bitflipped: Computer is a cosmic ray detector (2018)

https://github.com/Smerity/bitflipped
1•todsacerdoti•9m ago•0 comments

OpenAI and Amazon announce strategic partnership

https://www.aboutamazon.com/news/aws/amazon-open-ai-strategic-partnership-investment
1•juokaz•9m ago•0 comments

Deduplicating Kafka schema nodes in a topology graph by Schema Registry ID

https://github.com/muralibasani/streamlens
1•muralibasani•11m ago•1 comments

Show HN: FishDex An offline fishing log built to show my students

https://michaelaperry.github.io/FishDex/
1•ffsoftboiled•11m ago•0 comments

LLMs can run on tiny computers offering the same power and more than cloud LLMs

1•Haeuserschlucht•14m ago•0 comments

Show HN: ByteSeal – offline browser-based file encryption (no uploads)

https://github.com/grayguava/byteseal
1•grayguava•15m ago•0 comments

Agentic Engineering Patterns

https://simonw.substack.com/p/agentic-engineering-patterns
1•andsoitis•15m ago•1 comments

Identiconn Connector Identification Utility

https://connectorbook.com/identification.html?
1•antiquark•15m ago•0 comments

MCP Is Great for Tools. Terrible for Agents

https://blog.vtemian.com/post/mcp-is-great-for-tools-terrible-for-agents/
3•vtemian•15m ago•0 comments

Protracted legal fight expected in Nevada vs. Kalshi

https://www.rgj.com/story/news/nevada/2026/02/24/protracted-legal-fight-expected-in-nevada-v-kals...
1•qualudeheart•16m ago•1 comments

MediaFM: The Multimodal AI Foundation for Media Understanding at Netflix

https://netflixtechblog.com/mediafm-the-multimodal-ai-foundation-for-media-understanding-at-netfl...
2•el_duderino•16m ago•0 comments

Algorithm Behind Clarity, Luck, and Action

https://humaninterfaces.co/why-founder-coaching-works-the-hidden-algorithm-behind-clarity-luck-an...
1•vladimirbaranov•17m ago•0 comments

Show HN: Pricing calculator for marketplace sellers (Amazon, Etsy, eBay)

https://profitpilot.ukwebtools.com/
2•faryalbukhari•19m ago•1 comments