frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Coi – A compiled-reactive language for high-performance WASM apps

1•io_eric•2h ago
Hi HN,

I’ve been working on Coi, a component-based language designed to make writing high-performance WebAssembly apps feel like writing modern web components.

The Concept: Coi transpiles to C++ and uses a custom toolchain I built called WebCC to handle the final compilation to WASM, JS, and HTML. While WebCC provides the high-speed bridge and browser API framework, Coi performs the static analysis to map state variables to DOM handles. This "bakes" the reactive logic into the generated code, enabling O(1) updates without a Virtual DOM or runtime "diffing" step.

Benchmarks (Rendering 10k rectangles (Canvas2D)): I compared the WebCC-backed Coi output against a standard Emscripten build. By minimizing the WASM-to-JS bridge overhead, I saw:

- Binary Size: 11KB WASM (WebCC) vs 154KB WASM (Emscripten)

- Performance: 100 FPS vs 40 FPS

- Memory: 9MB vs 24MB

Key Features: - Type-Safe with References: Strictly typed state and props. Use & for seamless, type-safe two-way binding between parent and child components. - Component Lifecycle: Dedicated blocks for every stage: init {} for state, mount {} for DOM access, and tick(dt) {} for frame-based animations/physics. - Declarative View & Styling: Write standard HTML and scoped CSS directly inside components. Use <if> and <for> tags for control flow without leaving the view. - The Command Buffer: Bypasses the WASM-JS bridge bottleneck by flushing updates in binary "bursts" through a shared command buffer provided by WebCC.Schema-Driven APIs: Coi leverages the WebCC schema.def to auto-generate its standard library (Canvas, WebGL, WebGPU, Audio, etc.) with full type-safety and VS Code LSP support.

Example Code:

component Counter(string label, mut int& value) {

    def add(int i) : void {
        value += i;
    }

    style {
        .counter {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        button {
            padding: 8px 16px;
            cursor: pointer;
        }
    }

    view {
        <div class="counter">
            <span>{label}: {value}</span>
            <button onclick={add(1)}>+</button>
            <button onclick={add(-1)}>-</button>
        </div>
    }
}

component App {

    mut int score;
    mut string message;

    init {
        score = 0;
        message = "Keep going!";
    }

    style {
        .app {
            padding: 24px;
            font-family: system-ui;
        }
        h1 {
            color: #1a73e8;
        }
        .win {
            color: #34a853;
            font-weight: bold;
        }
    }

    view {
        <div class="app">
            <h1>Score: {score}</h1>
            <Counter label="Player" &value={score} />
            <if score >= 10>
                <p class="win">You win!</p>
            <else>
                <p>{message}</p>
            </else>
            </if>
        </div>
    }
}

app { root = App; }

Repo: https://github.com/io-eric/coi

WebCC(The underlying toolchain): https://github.com/io-eric/webcc

Demo: https://io-eric.github.io/coi

Would love to get your feedback! Still very much a work in progress :D

OAuth 2.1 Dynamic Client Registration for AWS BedrockAgentCore Gateway

https://github.com/orgs/stache-ai/discussions/5
1•Jtpenny•20s ago•0 comments

Serverless MCP on AWS with S3Vectors and Agentcore

https://github.com/orgs/stache-ai/discussions/4
1•Jtpenny•44s ago•0 comments

Reverse-engineering another Ursa Major classic: the StarGate 323

https://www.temeculadsp.com/journal/understanding-timing-circuits
1•johnwheeler•3m ago•0 comments

Show HN: AeroTag – Tag-based workspace management for AeroSpace (macOS)

https://typester.dev/blog/2026/01/11/tag-based-workspace-management-with-aerospace
1•typester•5m ago•1 comments

Hubble Telescope's Final Countdown: Could It Disappear Sooner Than Expected?

https://dailygalaxy.com/2026/01/hubble-countdown-could-it-disappear-sooner/
1•TMWNN•10m ago•0 comments

Token-Count-Based Batching: Faster, Cheaper Embedding Inference for Queries

https://www.mongodb.com/company/blog/engineering/token-count-based-batching-faster-cheaper-embedd...
1•fzliu•11m ago•0 comments

Tuning Random Generators: Property-Based Testing as Probabilistic Programming [pdf]

https://web.cs.ucla.edu/~todd/research/oopsla25a.pdf
2•todsacerdoti•14m ago•0 comments

Show HN: Built a course on buying small businesses – validating demand

https://smalldealschool.com/
1•boring_million•16m ago•1 comments

A $400k payout is putting prediction markets in the spotlight

https://apnews.com/article/prediction-markets-maduro-trades-1f47e737f915fff00c57f03e7390b41f
3•petethomas•19m ago•0 comments

Matchbox Educable Noughts and Crosses Engine

https://en.wikipedia.org/wiki/Matchbox_Educable_Noughts_and_Crosses_Engine
1•icwtyjj•22m ago•0 comments

Big Tech's Ugly Duckling: Can Snap Finally Execute?

https://ossa-ma.github.io/blog/snapchat?
1•ossa-ma•23m ago•0 comments

Live Captions

https://avc.xyz/live-captions
1•wslh•26m ago•0 comments

You don't need a skill registry (for your CLI tools)

https://solmaz.io/skillflag
2•hosolmaz•32m ago•0 comments

The US Empire is going supernova

https://simplicius76.substack.com/p/the-us-empire-is-going-supernova
1•SanjayMehta•34m ago•0 comments

Ogre 14.5 Released

https://www.ogre3d.org/2026/01/10/ogre-14-5-released
1•klaussilveira•36m ago•0 comments

Show HN: Instagram Saved Collection Downloader

https://chromewebstore.google.com/detail/instagram-saved-collectio/dibmfjgbnhbfhlajpahnbiiabpdabajo
1•qwikhost•40m ago•0 comments

Revolutionary eye injection saved my sight, says first ever patient

https://www.bbc.co.uk/news/articles/c89qyv98lzdo
2•1a527dd5•42m ago•0 comments

Show HN: I built an autopilot investor outreach tool – and it became my startup

https://pilt.ai
1•citizenbab•48m ago•0 comments

SwiftScripting (type-safe AppleScript from Swift)

https://github.com/tingraldi/SwiftScripting
1•frizlab•49m ago•0 comments

The Agent Fallacy

https://noemititarenco.com/blog/the-agent-fallacy-prompt-orchestration/
3•dvt•52m ago•0 comments

A ribbon worm's unique attack: R/interestingasfuck

https://old.reddit.com/r/interestingasfuck/comments/1p26zwp/a_ribbon_worms_unique_attack/
2•vinnyglennon•54m ago•1 comments

Show HN: Featureless – a one-page, distraction-free web app for writing

2•emanoj•58m ago•2 comments

Show HN: What if AI agents had Zodiac personalities?

https://github.com/baturyilmaz/what-if-ai-agents-had-zodiac-personalities
6•arbayi•58m ago•1 comments

iOS as Acceleration

https://arxiv.org/abs/2512.22180
2•PaulHoule•59m ago•0 comments

Trump may be beginning of the end for enshittification – make tech good again

https://www.theguardian.com/commentisfree/2026/jan/10/trump-beginning-of-end-enshittification-mak...
8•pabs3•59m ago•0 comments

How to stalk your ex; made easier than ever [video]

https://www.youtube.com/watch?v=cK6WyS2JipQ
1•vo2maxer•1h ago•0 comments

Discount Gambit

https://longform.asmartbear.com/discount-gambit/
1•mooreds•1h ago•0 comments

Kreuzberg: Extract text and metadata from a wide range of file formats

https://github.com/kreuzberg-dev/kreuzberg
3•thunderbong•1h ago•0 comments

Show HN: UCP Demo – Interactive Demo of the Universal Commerce Protocol

1•init0•1h ago•0 comments

Ethical Principles in the Creation of Artificial Minds

https://nickbostrom.com/ethics/aiethics
1•maxloh•1h ago•0 comments