frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Simten – design hardware in TypeScript and simulate it in the browser

https://simten.dev/
2•charlesfrisbee•2h ago
I mostly wanted to prototype hardware ideas quickly, with as little as possible between writing a circuit and watching it run. There are already solid embedded HDLs in general-purpose languages i.e. Chisel (Scala), Amaranth (Python), SpinalHDL. They all also have their own simulators, but they live inside the JVM or Python toolchains. I wanted something I could open in a browser and just start building, with nothing to install. If anyone is familiar with the game Turing Complete on Steam it was a big inspiration behind this. I just hated having to wire the gates manually.

Simten is a hardware description language that's plain TypeScript. A circuit is a typed value you simulate cycle by cycle, in node or the browser, with an interactive view you can drill into and toggle back and forth across cycles. There's nothing to install to see it run, and a circuit drops into a web page as a live component. It still exports Verilog for the existing primitives (very early, flat module) when you want to take a design further. Also since it is TS, you can do cool things like use existing libs from npm and integrate them into the simulation at compile time i.e. load in data, bake it into the ROM and then run it. The figlet example on the landing page hero shows this in action.

There is also an MCP that allows you to build with Claude and push to the browser locally (I know most probably won't want to learn the syntax).

As for what I have done with it so far:

- snake/pong at the gate level (actually harder than it sounds!)

- rv32i (risc-v) CPU that is able to run C/C++/Rust compiled with GCC/rustc

- run the output verilog (alongside a few board-specific extras) through the OSS FPGA toolchain i.e. Verilog -> Yosys -> nextPNR -> flashed and running on my ULX3S

Interested to hear what you think and if people would actually use it. I was thinking the interactive aspect of it could be useful in CS courses. So letting students see pipeline hazards happening cycle by cycle instead of a static example in a textbook.

- https://simten.dev/circuit (the playground to write/simulate circuits)

- https://simten.dev/cpu/rv32i (the RISC-V CPU you can step through)

- https://github.com/simtenHQ/simten — the repo

Show HN: Gravity – interactive solar-system simulator, from Newton to Einstein

https://qunabu.github.io/Gravity/
51•qunabu•3h ago•15 comments

Show HN: Performative-UI – A react component library of design tropes

https://vorpus.github.io/performativeUI/
1083•lizhang•1d ago•195 comments

Show HN: I built 10 ML algos from scratch because fit() predict() are not enough

https://github.com/ml-from-scratch-book/code
2•akmoleksandr•30m ago•1 comments

Show HN: Gitdot – A better GitHub. Open-source, written in Rust

https://gitdot.io/
295•baepaul•22h ago•274 comments

Show HN: Hires Chess Trainer – drill the mistakes from your own chess games

https://github.com/gaelazzo/python_chess
2•gaelazzo•1h ago•0 comments

Show HN: Simten – design hardware in TypeScript and simulate it in the browser

https://simten.dev/
2•charlesfrisbee•2h ago•0 comments

Show HN: UK sold house prices, uncapped, by postcode/county (Land Registry)

https://github.com/vladignatyev/uk-land-registry-price-paid
4•v_ignatyev•2h ago•0 comments

Show HN: Learn from 30 historical figures, open source, nonprofit, self-hosted

https://github.com/chipmates/agoracosmica
3•micstradev•3h ago•2 comments

Show HN: A static SPA to query ATF / BATFE historic AFMER data

https://ryjones.github.io/AFMER-SPA/?ymin=2000&ymax=2024&text=BOEING
2•RyJones•4h ago•0 comments

Show HN: Command Center, the AI coding env for people who care about quality

https://www.cc.dev/
54•Darmani•17h ago•27 comments

Show HN: Mach – A compiled systems language looking for contributions

https://github.com/octalide/mach
28•octalide•16h ago•15 comments

Show HN: SuperTree – interactive decision tree plot for sklearn,xgboost,lightgbm

https://github.com/mljar/supertree
2•pplonski86•6h ago•0 comments

Show HN: CSV Graph – create charts from CSV files in the browser

https://csv.qingyanglabs.com
5•lfdev•7h ago•2 comments

Show HN: Courtside – TUI for NBA Games

https://github.com/NolanFogarty/courtside
18•nolanfogarty•3d ago•4 comments

Show HN: NoSuggest – Watch YouTube without the recommendation algorithm

https://www.nosuggest.com/
58•VJ-2-108•5d ago•61 comments

Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

https://github.com/devenjarvis/lathe
390•devenjarvis•2d ago•70 comments

Show HN: Startup sci-fi novel that took me 5 years to write

https://www.blockchainednovel.com/
21•mck-•22h ago•10 comments

Show HN: HTTP/3 and raw QUIC client/server APIs for Node.js

https://github.com/currentspace/http3
14•brian_meek•20h ago•0 comments

Show HN: I Derived a Pancake

https://www.absurdlyoptimized.com/recipes/pancakes/
333•bkazez•4d ago•135 comments

Show HN: Quick games disguised as boring spreadsheets

https://boredspreadsheet.com/workbook
14•kevinclelland•23h ago•1 comments

Show HN: Nightwatch, The open-source, read-only AI SRE

https://github.com/ninoxAI/nightwatch
33•egorferber•1d ago•9 comments

Show HN: Kyushu – A self-hostable WASM sandbox for JavaScript workers

https://kyushu.dev/
82•le_chuck•2d ago•38 comments

Show HN: fontliberator: Automatic font clean-room reimplementor

https://github.com/robinpie/fontliberator/
4•robinpie•11h ago•0 comments

Show HN: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed

https://github.com/schildep/verified-polygon-intersection
93•permute•4d ago•21 comments

Show HN: Deep Memory – Vocabulary-driven graph memory for AI agents

https://github.com/TjWheeler/deep-memory
4•tjwheeler•13h ago•2 comments

Show HN: macOS Apps on Linux: SwiftUI for Linux (and AppKit, NSFoundation, etc.)

https://github.com/Lore-Hex/QuillUI
5•ljlolel•18h ago•0 comments

Show HN: Lowfat – pluggable CLI filter that saved 91.8% of my LLM tokens

https://github.com/zdk/lowfat
154•zdkaster•4d ago•77 comments

Show HN: Free animated icon library for Vue

https://respeak-io.github.io/lucide-motion-vue/
63•evolabs•5d ago•18 comments

Show HN: DaysLeft – a bio-age clock that shows a range, not a death date

https://daysleft.io
2•neo-genesis•14h ago•1 comments

Show HN: AI Pair Programmer for Emacs

https://github.com/jaketothepast/codetutor
34•jakewindle47•20h ago•0 comments