frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you model temporarily invalid data structures

1•escot•43m ago
Say you’re making a chess game. A valid board only has one piece per square, or zero. But, you have an algo that generates boards by moving pieces around and during that algo you may move a piece on top of another and then later decide to move one of them to get back to valid.

Do you try to use some existing Board type and just avoid in your algo those invalid states (like by using a stack or some data structure to avoid iteratively moving pieces one at a time).

Do you have a separate InvalidBoard type that allows multiple pieces per square?

I think it’s context dependent but I’m curious how you’ve seen this handled in different ways.

Shopify's AI Developer

https://twitter.com/tobi/status/2053121182044451016
1•talal7860•18s ago•0 comments

Show HN: DDoS detection in 500 lines of Python (MIT, no cloud, no account)

https://github.com/Flowtriq/ftagent-lite
1•jacob_masse•45s ago•0 comments

Russia can falsify GPS signals deep into Europe

https://www.reuters.com/business/aerospace-defense/russia-can-falsify-gps-signals-deep-into-europ...
1•jonbaer•1m ago•0 comments

Bedrock and a hard place: Claude adventure leaves AWS user with $30K invoice

https://www.theregister.com/saas/2026/05/14/bedrock-and-a-hard-place-claude-adventure-leaves-aws-...
2•ValentineC•3m ago•0 comments

Big Tech's Anti-Labor Playbook Has Come for Wikipedia

https://medium.com/@jakeorlowitz/wikipedia-is-doing-the-capitalist-thing-56a393232943
2•cdrnsf•6m ago•0 comments

After DeepSeek, Xiaomi cuts AI costs by up to 99%

https://twitter.com/i/status/2059314052892099070
1•try-working•7m ago•0 comments

Numb – Full Album – YouTube Exclusive Pre-Release

https://www.youtube.com/watch?v=M63nJq8IdIo
1•keithgdarley•10m ago•0 comments

We won't be looking at jobs numbers in 5 years (to gauge economy) [video]

https://www.youtube.com/watch?v=yyECa58Kg4Q
1•donsupreme•10m ago•0 comments

Terminal coding agent for DeepSeek V4

https://github.com/Hmbown/CodeWhale
2•nhatcher•11m ago•0 comments

Destroy My Paper

https://destroymypaper.com/
2•ThouYS•11m ago•0 comments

Robotics giant Figure AI demonstrates its robots to the world

https://forgeglobal.com/insights/figure-ai-robotics-growth-2026/
1•andsoitis•13m ago•0 comments

IT Capex Now Accounts for More Than a Third of S&P 500 Capex Spending

https://www.apollo.com/wealth/the-daily-spark/it-capex-now-accounts-for-more-than-a-third-of-s-p-...
1•akyuu•13m ago•0 comments

`A sense of trusting one's self': how to start building confidence

https://www.theguardian.com/wellness/2026/may/26/how-to-start-building-confidence
3•jethronethro•15m ago•0 comments

User-testing the user-tester: synthetic user feedback driven self improvemnt

https://noemica.io/blog/user-testing-the-user-tester
1•SebastianSosa•15m ago•0 comments

Bay Area mom out thousands after scammers use AI to mimic daughter's voice

https://abc7news.com/post/bay-area-mom-thousands-scammers-use-ai-mimic-daughters-voice-fake-kidna...
2•arkadiyt•16m ago•0 comments

There are now more ETFs than stocks in the US

https://www.apollo.com/wealth/the-daily-spark/more-etfs-than-stocks
2•akyuu•17m ago•1 comments

Claude, Author of the Humanitas

https://www.greaterwrong.com/posts/wRNJZz2iYrfDaSDdz/claude-author-of-the-humanitas
1•Jakob•18m ago•0 comments

Iran Is Back Online

https://mastodon.social/@netblocks/116642131173028444
2•2dvisio•23m ago•0 comments

The Psychology of Arrival in Coworking Spaces

https://twofifty.co/en/blog/psychology-of-arrival-coworking-spaces
1•inchevd•24m ago•0 comments

I'm 19 and built an AI golf swing analyzer with on-device CoreML

https://apps.apple.com/us/app/the-swing-sensei/id6759412468
1•TheSwingSensei•25m ago•0 comments

iOS 26.6 adds new alert when you try blocking too many contacts

https://9to5mac.com/2026/05/26/ios-26-6-adds-new-alert-when-you-try-blocking-too-many-contacts/
1•cdrnsf•25m ago•0 comments

The Nation-State Is a Legacy System. Time for an Upgrade

https://gccsproject.pages.dev/
1•pear01•26m ago•0 comments

Encrypted DNS in 2026: DoH, DoT and DoQ compared with real benchmarks

https://www.copahost.com/blog/encrypted-dns/
1•ggallas•28m ago•0 comments

The worst job interview I ever had

https://www.oliverio.dev/blog/the-worst-job-interview-i-had
1•oliverio•28m ago•0 comments

Being a 1.5-10x Developer

https://build.ms/2026/5/26/being-a-1-5-10x-developer/
1•mergesort•28m ago•0 comments

6M Fake GitHub Stars: How to Vet Open-Source AI Tools

https://www.chatgpt.ca/blog/github-fake-stars-ai-tool-evaluation
2•b-man•29m ago•0 comments

Mysteries of the Griffin iMate

https://www.projectgus.com/2023/04/griffin-imate/
1•geerlingguy•32m ago•0 comments

The Computer That Was Too Advanced for Its Own Good [video]

https://www.youtube.com/watch?v=OWPnEDXVTl8
3•devonnull•33m ago•0 comments

Optimization Constants in Mathematics

https://teorth.github.io/optimizationproblems/
2•bmc7505•38m ago•0 comments

GitHub Classroom sign-ups are no longer available

https://github.blog/changelog/2026-05-26-github-classroom-sign-ups-are-no-longer-available/
2•DropDead•40m ago•0 comments