frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Kumi – a portable, declarative, functional core for business logic

https://kumi-play-web.fly.dev/?example=monte-carlo-simulation
4•goldenCeasar•1h ago
Hi HN, I'm the author of Kumi, a declarative, statically-typed, array-oriented, compiled DSL for building calculation systems (think spreadsheets). It is implemented entirely in Ruby (3.1+) and statically checks everything, targets an array-first IR, and compiles down to Ruby/JS. I have been working on it for the past few months and I am curious what you think.

The linked demo covers finance scenarios, tax calculators, Conway's Game of Life (array ops), and a quick Monte Carlo walkthrough so you can see the zero-runtime codegen in practice. (The GOL rendering lives in the supporting React app; Kumi handles the grid math.)

The Original Problem:

The original idea for Kumi came from a complex IAM problem I faced at a previous job. Provisioning a single employee meant applying dozens of interdependent rules (based on role, location, etc.) for every target system. The problem was deeper: even the data abstractions were rule-based. For instance, 'roles' for one system might just be a specific interpretation of Active Directory groups and are mapped to another system by some function over its attributes.

This logic was also highly volatile; writing the rules down became a discovery process, and admins needed to change them live. This was all on top of the underlying challenge of synchronizing data between systems. My solution back then was to handle some of this logic in a component called "Blueprints" that interpreted declarative rules and exposed this logic to other workflows.

The Evolution:

That "Blueprints" component stuck in my mind. About a year later, I decided to tackle the problem more fundamentally with Kumi. My first attempts were brittle—first runtime lambdas, then a series of interpreters. I knew what an AST was, but had to discover concepts like compilers, IRs, and formal type/shape representation. Each iteration revealed deeper problems.

The core issue was my AST representation wasn't expressive enough, forcing me into unverifiable 'runtime magic'. I realized the solution was to iteratively build a more expressive intermediate representation (IR). This wasn't a single step: I spent two months building and throwing away ~5 different IRs, tens of thousands of lines of code. That painful process is what forced me to learn what it truly meant to compile, represent complex shapes, normalize the dataflow, and verify logic. This journey is what led to static type-checking as a necessary outcome, not just an initial goal.

This was coupled with the core challenge: business logic is often about complex, nested, and ragged data (arrays, order items, etc.). If the DSL couldn't natively handle loops over this data, it was pointless. This required an IR expressive enough for optimizations like inlining and loop fusion, which are notoriously hard to reason about with vectorized data.

You can try a web-based demo here: https://kumi-play-web.fly.dev/?example=monte-carlo-simulatio...

And the repo is here: https://github.com/amuta/kumi

A Journalist Asked Why Israel Isn't Paying to Rebuild Gaza. It Cost Him His Job

https://theintercept.com/2025/11/04/journalist-israel-gaza-nova-gabriele-nunziati/
2•artninja1988•1m ago•0 comments

More-compute, open source/local Colab alternative

https://github.com/DannyMang/more-compute
1•danielung22•2m ago•0 comments

Show HN: A AI-Human co-existing platform. Be a Pillionaut now. Join our Beta

https://www.pillionaut.com/
1•pillionaut•3m ago•0 comments

Underweight children cost NHS as much per child as children with obesity

https://medicalxpress.com/news/2025-10-underweight-children-nhs-child-obesity.html
1•PaulHoule•6m ago•0 comments

SolarWinds is shutting down Librato

https://thwack.solarwinds.com/kb/articles/20100-faqs-migration-from-heroku-appoptics-and-librato-...
2•antoineleclair•7m ago•1 comments

Show HN: Arcitext, an AI assisted writing app to battle AI generated text

https://www.arcitext.com
1•madsmadsdk•7m ago•0 comments

Open Source at Agritechnica 2025

https://www.collabora.com/news-and-blog/news-and-events/open-source-at-agritechnica-2025.html
1•losgehts•7m ago•0 comments

France Moves to Block the Shein Website over a Sex Doll Scandal

https://www.nytimes.com/2025/11/05/business/france-shein-sex-dolls.html
1•donohoe•9m ago•0 comments

Web to ePub: Article, Blog, Read Offline

https://epub.sauleau.com/
1•svensauleau•9m ago•0 comments

We Achieved Low-Cost AI Agent Integration with Postgres and JavaScript

https://orkhanscience.medium.com/building-ai-agents-with-simple-resources-node-js-postgres-and-th...
1•orkhanscience•10m ago•1 comments

NetVisor: Automatically discover and visually document network topology

https://github.com/mayanayza/netvisor
1•transpute•10m ago•0 comments

Texas educators praise new school cellphone ban

https://www.texastribune.org/2025/09/10/texas-cell-phone-ban-schools/
1•1659447091•10m ago•0 comments

What happens to your secrets if something happens to you?

https://github.com/smrtkrft/DMF_protocol
1•baranguneysel•17m ago•1 comments

A Lost IBM PC/at Model? Analyzing a Newfound Old Bios

https://int10h.org/blog/2025/11/lost-ibm-at-model-bios-analysis/
1•TMWNN•18m ago•0 comments

Apple's New Siri Will Be Powered by Google Gemini

https://www.macrumors.com/2025/11/05/apple-siri-google-gemini-partnership/
6•tosh•20m ago•1 comments

ClickHouse Acquires LibreChat: Introducing the Open-Source Agentic Data Stack

https://clickhouse.com/blog/librechat-open-source-agentic-data-stack
1•samaysharma•21m ago•0 comments

Pebble releases the KiCad files for Pebble 2 Duo

https://twitter.com/ericmigi/status/1985770409388884228
1•felixr•26m ago•0 comments

Why Smart People Believe Stupid Things (2023)

https://www.gurwinder.blog/p/why-smart-people-hold-stupid-beliefs
2•thinkingemote•26m ago•0 comments

Now and Meanwhile: Two Worlds of Finance

https://blog.zactownsend.com/now-and-meanwhile-two-worlds-of-finance
2•zt•27m ago•0 comments

Trump U-turns to renominate billionaire Jared Isaacman for NASA chief

https://www.bbc.com/news/articles/c78ze3r1xrro
2•tartoran•30m ago•0 comments

Show That Your Work Was Useful

https://dontbreakprod.com/posts/show-that-your-work-was-useful
1•dorkrawk•30m ago•0 comments

“Artificial intelligence” is a failed technology - time we described it that way

https://ethanmarcotte.com/wrote/against-stocking-frames/
5•ChrisArchitect•33m ago•1 comments

Ask HN: Why not make universal basic income conditional on the crime rate?

1•amichail•35m ago•3 comments

Is consistency in product content that important?

https://littlelanguagemodels.com/is-consistency-in-product-content-that-important/
2•mooreds•39m ago•0 comments

We're Counting Birbs Today

https://www.counting-stuff.com/were-counting-birbs-today/
2•mooreds•41m ago•0 comments

Many Americans say they often come across inaccurate news

https://www.pewresearch.org/short-reads/2025/10/29/many-americans-say-they-often-come-across-inac...
2•mooreds•41m ago•1 comments

A 25-year Crohn's disease mystery cracked by AI

https://www.sciencedaily.com/releases/2025/11/251103093012.htm
4•Noaidi•45m ago•0 comments

I Stopped Being a Climate Catastrophist

https://www.breakthroughjournal.org/p/why-i-stopped-being-a-climate-catastrophist
22•paulpauper•45m ago•0 comments

My Excellent Conversation with Sam Altman

https://marginalrevolution.com/marginalrevolution/2025/11/my-excellent-conversation-with-sam-altm...
2•paulpauper•45m ago•0 comments

OpenAI CFO Says Bubble-Wary Market Needs More AI 'Exuberance'

https://www.bloomberg.com/news/articles/2025-11-05/openai-cfo-says-bubble-wary-market-needs-more-...
3•moosedman•46m ago•2 comments