frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

TypeScript Unit Dimensions Converter

https://github.com/mihailShumilov/unitsafe
1•mihailshumilov•1h ago

Comments

mihailshumilov•1h ago
Physical quantities have dimensions. Meters measure length. Seconds measure time. You can't add them — it's physically meaningless. Yet most programs represent both as plain number, and the compiler can't help you catch the mistake.

unitsafe encodes dimensional information into TypeScript's type system. The compiler rejects invalid operations at build time, and the library provides ergonomic unit conversions with runtime metadata for display and formatting.

Why not just use plain numbers with naming conventions?

distanceMeters + timeSeconds compiles and runs silently, producing garbage Naming conventions don't compose: what type should distanceMeters / timeSeconds have? Off-by-one scale errors (forgetting to convert km to m) are invisible until production unitsafe gives you:

Compile-time errors for dimension mismatches (add/sub/compare) Automatic dimension composition for multiply/divide (m/s, m^2, kg*m/s^2) Type-safe conversions between compatible units (km <-> m, s <-> ms, C <-> F) Branded types that prevent accidental mixing of raw numbers with quantities Tiny runtime — each quantity is a 4-property object; no classes, no prototypes

A playbook for the next century of progress

https://www.freethink.com/opinion/techno-humanist-manifesto-chapter-11
2•bryanrasmussen•7m ago•0 comments

Show HN: Bunny Inspector – Show your AI what to fix – in one click

https://inspector.bunnytech.app
1•iosifnicolae2•8m ago•0 comments

Peer Pressure Works on AI Too

https://www.robkopel.me/field-notes/peer-pressure/
1•umanghere•10m ago•1 comments

AOMedia Open Audio Codec "OAC" Aims to Be the Successor to Opus

https://www.phoronix.com/news/AOMedia-OAC-Open-Audio-Codec
3•breve•10m ago•0 comments

Claude Code Remote Control

https://twitter.com/claudeai/status/2026418433911603668
2•mdrachuk•11m ago•2 comments

INSIDE 2016

https://www.entertainmentbreakdown.com/playdeads-inside-10-years-anniversary-review-e31381c806bf
1•raynchad•12m ago•0 comments

The Manifold of Breakfast Has Gaps

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
1•moultano•13m ago•0 comments

Hacking Claude Code remote: escaping YOLO-mode sandboxing

https://www.noahlebovic.com/hacking-claude-code-on-the-web-breaking-yolo-mode-sandboxing/
3•lebovic•14m ago•0 comments

Claude Cowork starts rolling out scheduled tasks

https://old.reddit.com/r/ClaudeAI/comments/1re1ncv/did_anyone_else_notice_cowork_now_has_scheduled/
1•mdrachuk•15m ago•1 comments

Tell HN: Planning to end my life today

2•throwawayxdsds•16m ago•1 comments

Obsessed with Terminology

https://faidi.tech/posts/terminology/
1•ghassenfaidi•19m ago•0 comments

Show HN: Roundsman – stupid-simple CLI to run Claude across many projects

https://github.com/tsortwehttam/roundsman
1•matthewtoast•19m ago•0 comments

AI Rage: Why it happens and what to do about it

https://github.com/chrhartm/ai-rage/blob/main/README.md
2•christoph123•20m ago•0 comments

OpenClaw deletes Summer Yue's emails

https://twitter.com/summeryue0/status/2025774069124399363
2•teekert•21m ago•0 comments

Last Year of Terraform

https://encore.dev/blog/last-year-of-terraform
6•eandre•24m ago•2 comments

The Emancipated Codebase: Why AI Just Fired Its 1970s Babysitter

https://the-mind-of-ai.com/posts/emancipated-teenager/
1•agentic-wiki•25m ago•1 comments

Nano Banana 2 is real!Gemini 3.1 Flash Image just appeared in Vertex AI Catalog

1•zaaaaooo•25m ago•0 comments

"Affordances," a science-fiction story by Cory Doctorow about algorithmic bias

https://slate.com/technology/2019/10/affordances-cory-doctorow-sf-story-algorithmic-bias-facial-r...
1•rbanffy•27m ago•0 comments

Show HN: SnapSift – Find near-duplicate photos on your iPhone

https://snapsift.app/
1•anhphong•27m ago•1 comments

AI Coding Agents Modify Code

https://arxiv.org/abs/2601.17581
2•nkko•29m ago•0 comments

Show HN: Hour Cap – From timer to Xero invoice in one click

https://hourcap.com
2•jonobird1•29m ago•0 comments

What breaks when AI agent frameworks are forced into <1MB RAM and sub-ms startup

3•NULLCLAW•29m ago•2 comments

Best MCP Servers for Knowledge Bases

https://desktopcommander.app/blog/best-mcp-servers-for-knowledge-bases-in-2026/
1•rafaepta•31m ago•0 comments

Goblin Supermarket – Closing Time

https://medium.com/luminasticity/goblin-supermarket-part-iii-fb58504d3dd7
1•bryanrasmussen•32m ago•0 comments

Designed for Two: The Co-Op Philosophy of Josef Fares

https://www.brothers-in-gaming.com/post/designed-for-two
2•vinnyita•33m ago•1 comments

Show HN: A human-curated, CLI-driven Context Layer for AI agents

https://ctxlayer.dev/
2•anatoliikmt•35m ago•0 comments

Part II. SCM as a database for the code

https://replicated.wiki/blog/partII.html
2•gritzko•36m ago•0 comments

Show HN: MCP-enabled file storage for AI agents, auth via Ethereum wallet

https://service.c33b.org/
2•womd•37m ago•0 comments

The "Electron-ification" of Windows is killing my Surface Book 2

https://old.reddit.com/r/Windows11/comments/1r5bkl1/the_electronification_of_windows_is_killing_my/
6•thunderstruck•39m ago•1 comments

Building Aira: a calm anime tracker for myself

https://blog.kulman.sk/building-aira/
2•ig0r0•39m ago•0 comments