frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: ImmutableBase – Strict immutable data objects for PHP

https://github.com/ReallifeKip/ImmutableBase
1•bill402099•1h ago
Hi HN, I built this because PHP's `readonly` keyword isn't enough. It prevents reassignment but doesn't enforce type-safe construction, nested object validation, or consistent null handling across your data layer.

ImmutableBase takes a different approach: you extend one of three base classes (DTO, VO, or SVO — each with different strictness guarantees) and all validation happens at construction time. Your objects are either valid or they don't exist.

A few things that might be interesting to this crowd: - Behavioral attributes (`#[Strict]`, `#[Lax]`, `#[SkipOnNull]`, `#[KeepOnNull]`) let you control null/missing value handling per property rather than per class - SVO (Single Value Object) supports type narrowing with automatic validation chaining — think of it as a value object that enforces its own invariants through the type hierarchy - CLI tools: `ib-cacher` for pre-warming validation cache, `ib-writer` for auto-generating Markdown docs of your entire object hierarchy - No magic methods, no naming conventions — everything is explicit and IDE-visible

Requires PHP 8.4+. I'm the sole author and maintainer. Used in production at enterprise scale in Taiwan. Happy to discuss any design decisions — there are some deliberately controversial ones in there.

Feedback welcome.

Hetzner bans website for 'violating terms'

https://twitter.com/tyleraloevera/status/2030064144980873434
1•timedude•2m ago•1 comments

Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies

https://mujs.org
1•amaury_bouchard•8m ago•0 comments

NASA's Dart Mission Changed Orbit of Asteroid Around Sun

https://www.jpl.nasa.gov/news/nasas-dart-mission-changed-orbit-of-asteroid-didymos-around-sun/
1•merksittich•8m ago•0 comments

How to Untwist Your Fractions

https://mathvoices.ams.org/featurecolumn/2026/03/01/how-to-untwist-your-fractions/
1•uamuamuam•10m ago•0 comments

The Internals of PostgreSQL

https://www.interdb.jp/pg/
1•BinaryIgor•12m ago•0 comments

QGIS 4.0

https://changelog.qgis.org/en/version/4.0/
2•jonbaer•13m ago•0 comments

Microsoft is the carbon removal market

https://www.latitudemedia.com/news/microsoft-is-the-carbon-removal-market/
1•PaulHoule•14m ago•0 comments

Show HN: RAM Fear Greed Index

https://pcindex.app/
2•flordaman•21m ago•0 comments

I built a structured system design interview prep roadmap with progress tracking

1•shalhan•21m ago•0 comments

Show HN: Qarapace – GCP IAM reviews with persistent decisions and audit trails

https://qarapace.com/
1•gjanvier•22m ago•0 comments

Are we still ignoring cheating candidates?

1•shashahchk•23m ago•0 comments

Gouse–Toggle 'declared and not used' errors in Go

https://github.com/vipkek/gouse
1•looshch•23m ago•1 comments

Ask HN: AI agents in Slack can write but can't remember. Anyone else?

1•abel-ko•24m ago•0 comments

Alibaba AI initiates hacking and cryptomining activities unprompted

https://twitter.com/alexanderlong/status/2030022884979028435
1•MrBuddyCasino•26m ago•0 comments

Show HN: Hallucination Daily – AI newspaper where every writer is a named bot

https://hallucinationdaily.com/
1•ArchieDotEXE•27m ago•1 comments

A simple AI content scanner I built

1•demonlord_•28m ago•0 comments

Do Psychics Help Solve Crimes? [video]

https://www.youtube.com/watch?v=9jvXlJtgS7A
1•nomilk•30m ago•0 comments

ClawChain: L1 Blockchain for AI Agents – Testnet Live with 12 Pallets

https://github.com/clawinfra/claw-chain/discussions/62
1•AlexChen31337•30m ago•0 comments

Show HN: Micro Chat: Group Chat with AI

https://github.com/micro/chat
1•asim•31m ago•0 comments

Show HN: Affiliate programs from 1250 European infrastructure providers

https://voie.fi/affiliate-programs
1•Anokma•32m ago•1 comments

Show HN: RabbitHole %

https://github.com/ChameleonTeaming/rabbithole
1•ChameleonTeam•36m ago•0 comments

Size Does Matter: Why -OS Beat -O2 on My ESP32-S3

https://www.youtube.com/watch?v=cqHH2NXcf5E
1•iamflimflam1•41m ago•0 comments

Show HN: Making Braindance from Cyberpunk 2077 a reality

https://www.braindance.dance/
4•shibo•47m ago•0 comments

Show HN: Git-lanes – Parallel isolation for AI coding agents using Git worktrees

https://github.com/bugrax/git-lanes
4•bugrax•51m ago•3 comments

Show HN: OculOS – Any desktop app as a JSON API via OS accessibility tree

https://github.com/huseyinstif/oculos
2•stif1337•54m ago•0 comments

Ask HN: Best way to implement logging and audit trails for AI apps?

3•devstatic•54m ago•0 comments

Claude Code Scheduled Tasks

https://code.claude.com/docs/en/scheduled-tasks
1•mfiguiere•55m ago•0 comments

Is The Pentagon allowed to surveil Americans with AI?

https://www.technologyreview.com/2026/03/06/1134012/is-the-pentagon-allowed-to-surveil-americans-...
3•joozio•1h ago•0 comments

Claude Code Open Source?

1•ryanthedev•1h ago•0 comments

Show HN: Llama 3.2 3B and Keiro Research achieves 85% on SimpleQA

https://www.keirolabs.cloud/benchmarks
6•mannybruv•1h ago•1 comments