frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I designed a nibble-oriented CPU in Verilog to build a scientific calculator

https://github.com/gdevic/FPGA-Calculator
28•gdevic•1h ago

Comments

gdevic•1h ago
The core question: how did HP's scientific calculators actually work at the gate level? That rabbit hole led to building one from scratch.

The architectural decision everything else follows from: a decimal calculator should store numbers as BCD — one decimal digit per 4-bit nibble. A standard byte-oriented CPU (Z80, 6502) fights that layout constantly. So I designed a small custom CPU in Verilog where 4 bits is the natural data width and memory is nibble addressable.

What the project covers:

- Custom CPU: Harvard architecture, 12-bit ISA, 8-state execution FSM, hardware stack guard with a FAULT state for microcode debugging

- CORDIC for trig functions, verified to 14 significant digits

- Two-pass assembler in Python (~700 lines)

- Verilator + Qt framework: same Verilog source runs in simulation, as a desktop GUI debugger, as WebAssembly, and on real hardware

- Scripting language on top of the microcode for adding functions without touching hardware

- Custom PCB (EasyEDA/JLCPCB), battery, charging circuit

Write-up: https://baltazarstudios.com

Hackaday: https://hackaday.com/2026/05/13/build-the-cpu-then-build-the...

VLM•19m ago
Ironically the Z80 is a nibble ALU. That's why its so slow compared to the competition, an 8 bit add on a "2 MHz" Z80 takes as much clock time as a 8 bit add on a "1 MHz" 6809.
drob518•3m ago
My dad worked for HP from the mid-1970s through the mid-1990s. Needless to say, I used HP calculators in high school and college. The best things about having an HP calculator were the solid physical construction (the buttons on the 11C and 15C were awesome), the accuracy, and the fact that whenever your classmates asked to borrow your calculator they would recoil in horror when you asked them whether they knew RPN. Nobody borrowed my calculator. Anyway, I love this project.

Project Gutenberg – keeps getting better

https://www.gutenberg.org/
300•JSeiko•2h ago•96 comments

Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"

https://github.com/oven-sh/bun/issues/30719
82•ndiddy•1h ago•24 comments

A 0-click exploit chain for the Pixel 10

https://projectzero.google/2026/05/pixel-10-exploit.html
224•happyhardcore•4h ago•90 comments

I designed a nibble-oriented CPU in Verilog to build a scientific calculator

https://github.com/gdevic/FPGA-Calculator
28•gdevic•1h ago•3 comments

Image-blaster: Creates 3D environments, SFX, and meshes from a single image

https://github.com/neilsonnn/image-blaster
43•MattRogish•2h ago•9 comments

U.S. DOJ demands Apple and Google unmask over 100k users of car-tinkering app

https://macdailynews.com/2026/05/15/u-s-doj-demands-apple-and-google-unmask-over-100000-users-of-...
83•tencentshill•1h ago•43 comments

Show HN: Watch a neural net learn to play Snake

https://ppo.gradexp.xyz/
55•c1b•1d ago•11 comments

O(x)Caml in Space

https://gazagnaire.org/blog/2026-05-14-borealis.html
197•yminsky•7h ago•43 comments

Hightouch (YC S19) Is Hiring

https://hightouch.com/careers
1•joshwget•1h ago

Explore Wikipedia Like a Windows XP Desktop

https://explorer.samismith.com/
399•smusamashah•9h ago•104 comments

ASCII by Jason Scott

https://ascii.textfiles.com/
92•bookofjoe•4h ago•18 comments

I built Zenith: a live local-first fixed viewport planetarium

https://smorgasb.org/zenith-tech/
40•surprisetalk•2h ago•6 comments

Radicle: Sovereign {code forge} built on Git

https://radicle.dev/
167•KolmogorovComp•6h ago•43 comments

High dimensional geometry is transforming the MRI industry (2017) [pdf]

https://www.ams.org/government/DonohoPresentation06-28-17Final.pdf
63•nill0•5h ago•21 comments

Aperio Lang

https://aperio-lang.github.io/aperio/introduction.html
20•mmcclure•1h ago•7 comments

Feedr v0.8.0 – a TUI RSS reader, now read the full article from your terminal

https://github.com/bahdotsh/feedr
8•bahdotshxx•1h ago•2 comments

A new book on Steve Jobs at NeXT

https://spectrum.ieee.org/steve-jobs-next-computer
125•rbanffy•8h ago•108 comments

Show HN: Sx – an open-source package manager for AI skills, MCPs, and commands

https://github.com/sleuth-io/sx
12•detkin•1h ago•4 comments

Amazon workers under pressure to up their AI usage are making up tasks

https://www.fastcompany.com/91541586/amazon-workers-pressured-to-up-ai-use-extraneous-tasks
219•hackernj•5h ago•216 comments

A few words on DS4

https://antirez.com/news/165
398•caust1c•20h ago•165 comments

Show HN: Find local farms near you with raw dairy, pasture eggs, and more

https://farm-to-door.com/
11•YoungGato•1h ago•9 comments

Trade Dollars with other startups. Book it as revenue

https://www.revswap.ai/
159•tormeh•5h ago•115 comments

Waymo recalls 3,800 robotaxis after they drive into flood waters

https://www.cnbc.com/2026/05/12/waymo-recalls-3800-robotaxis-after-able-drive-into-standing-water...
13•drob518•37m ago•1 comments

NanoTDB – Golang Append-Only Time Series DB

https://github.com/aymanhs/nanotdb
43•aymanhs72•8h ago•6 comments

Ask HN: How to be SOC2 Type 2 compliant as a solo-entreprenuer?

88•sochix•11h ago•82 comments

Details of the Daring Airdrop at Tristan Da Cunha

https://www.tristandc.com/government/news-2026-05-11-airdrop.php
235•kspacewalk2•14h ago•88 comments

Building ML framework with Rust and Category Theory

https://hghalebi.github.io/category_theory_transformer_rs/
85•adamnemecek•1d ago•19 comments

First public macOS kernel memory corruption exploit on Apple M5

https://blog.calif.io/p/first-public-kernel-memory-corruption
422•quadrige•1d ago•114 comments

Codex is now in the ChatGPT mobile app

https://openai.com/index/work-with-codex-from-anywhere/
448•mikeevans•22h ago•223 comments

We don't know why Malawi is poor

https://newsletter.deenamousa.com/p/we-dont-know-why-malawi-is-poor
53•alphabetatango•1h ago•63 comments