frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Terminal UI for AWS

https://github.com/huseyinbabal/taws
209•huseyinbabal•7h ago•97 comments

Why does a least squares fit appear to have a bias when applied to simple data?

https://stats.stackexchange.com/questions/674129/why-does-a-linear-least-squares-fit-appear-to-ha...
168•azeemba•7h ago•46 comments

Lessons from 14 Years at Google

https://addyosmani.com/blog/21-lessons/
901•cdrnsf•12h ago•417 comments

During Helene, I just wanted a plain text website

https://sparkbox.com/foundry/helene_and_mobile_web_performance
33•CqtGLRGcukpy•1h ago•22 comments

The unbearable joy of sitting alone in a café

https://candost.blog/the-unbearable-joy-of-sitting-alone-in-a-cafe/
472•mooreds•13h ago•286 comments

The Showa Hundred Year Problem

https://www.dampfkraft.com/showa-100.html
24•polm23•5d ago•5 comments

Street Fighter II, the World Warrier (2021)

https://fabiensanglard.net/sf2_warrier/
328•birdculture•13h ago•56 comments

Linear Address Spaces: Unsafe at any speed (2022)

https://queue.acm.org/detail.cfm?id=3534854
124•nithssh•4d ago•86 comments

The year of the 3D printed miniature and other lies we tell ourselves

https://matduggan.com/the-year-of-the-3d-printed-miniature-and-other-lies-we-tell-ourselves/
111•sagacity•6d ago•74 comments

Ripple, a puzzle game about 2nd and 3rd order effects

https://ripplegame.app/
90•mooreds•9h ago•21 comments

Millennium Challenge: A corrupted military exercise and its legacy (2015)

https://warontherocks.com/2015/11/millennium-challenge-the-real-story-of-a-corrupted-military-exe...
25•lifeisstillgood•3h ago•20 comments

Eurostar AI vulnerability: When a chatbot goes off the rails

https://www.pentestpartners.com/security-blog/eurostar-ai-vulnerability-when-a-chatbot-goes-off-t...
101•speckx•6h ago•29 comments

Six Harmless Bugs Lead to Remote Code Execution

https://mehmetince.net/the-story-of-a-perfect-exploit-chain-six-bugs-that-looked-harmless-until-t...
30•ozirus•3d ago•1 comments

Show HN: An interactive guide to how browsers work

https://howbrowserswork.com/
184•krasun•12h ago•29 comments

Web development is fun again

https://ma.ttias.be/web-development-is-fun-again/
311•Mojah•12h ago•395 comments

The baffling purple honey found only in North Carolina

https://www.bbc.com/travel/article/20250417-the-baffling-purple-honey-found-only-in-north-carolina
10•rmason•4d ago•1 comments

Agentic Patterns

https://github.com/nibzard/awesome-agentic-patterns
84•PretzelFisch•8h ago•8 comments

The great shift of English prose

https://www.worksinprogress.news/p/english-prose-has-become-much-easier
37•dsubburam•4d ago•26 comments

Moiré Explorer

https://play.ertdfgcvb.xyz/#/src/demos/moire_explorer
136•Luc•14h ago•17 comments

Show HN: Hover – IDE style hover documentation on any webpage

https://github.com/Sampsoon/hover
41•sampsonj•8h ago•18 comments

Show HN: An LLM-Powered PCB Schematic Checker (Major Update)

https://traceformer.io/
34•wafflesfreak•5h ago•15 comments

Anti-aging injection regrows knee cartilage and prevents arthritis

https://scitechdaily.com/anti-aging-injection-regrows-knee-cartilage-and-prevents-arthritis/
215•nis0s•12h ago•78 comments

Bison return to Illinois' Kane County after 200 years

https://phys.org/news/2025-12-bison-illinois-kane-county-years.html
126•bikenaga•5d ago•39 comments

FreeBSD Home NAS, part 3: WireGuard VPN, routing, and Linux peers

https://rtfm.co.ua/en/freebsd-home-nas-part-3-wireguard-vpn-linux-peer-and-routing/
148•todsacerdoti•15h ago•8 comments

Using Hinge as a Command and Control Server

https://mattwie.se/hinge-command-control-c2
95•mattwiese•13h ago•46 comments

Trellis AI (YC W24) is hiring engineers to build AI agents for healthcare access

https://www.ycombinator.com/companies/trellis-ai/jobs/ngvfeaq-member-of-technical-staff-full-time
1•macklinkachorn•10h ago

Claude Code On-the-Go

https://granda.org/en/2026/01/02/claude-code-on-the-go/
231•todsacerdoti•7h ago•161 comments

How I archived 10 years of memories using Spotify

https://notes.xdavidhu.me/notes/how-i-archived-10-years-of-memories-using-spotify
89•xdavidhu•12h ago•40 comments

Stop Forwarding Errors, Start Designing Them

https://fast.github.io/blog/stop-forwarding-errors-start-designing-them/
81•andylokandy•8h ago•47 comments

JavaScript engines zoo – Compare every JavaScript engine

https://zoo.js.org/
173•gurgunday•16h ago•73 comments
Open in hackernews

Beating myself at chess

https://log.schemescape.com/posts/diy/beating-myself-at-chess.html
42•zdw•5d ago

Comments

apetresc•1d ago
Bug report: I got to a late-middlegame position and then the bot crashed because it tried to castle illegally (after its queenside rook had already moved):

``` Uncaught Error: Invalid move: {"from":"e8","to":"c8"} at Chess.move (chess.js:2530:23) at cm-chessboard/:75:23 ```

There didn't seem to be a way to recover besides refreshing.

petermcneeley•1d ago
It is very humbling to write your own chess engine.
thomasmg•1d ago
Yes. I did the exact same thing a few weeks ago (in Java, but the idea is to port it to my own programming language). I wrote a terminal UI. Lots of small challenges. Many things to learn, like minimax, bitboards, immutable vs mutable.
dado3212•1d ago
Would maybe benefit from a "Checkmate!" or other finish screen, but cool project! Though I agree that it beating you may be more based on your skill level than its, given how it keeps pushing pawns.
_ache_•1d ago
It is terrible in the opening and a little better in the middle game (if you didn't win already, I mean if you played 4-5 random moves).

I think you can improve it a lot by taking into account its own position. I mean, moving forward isn't very important want you are under the menace of a checkmate somewhere else.

XCSme•1d ago
I tried playing against it, I didn't have many expectations, but even though I blundered a bishop on move 3 due to a mouse-slip, I could still checkmate it in 6 moves. To me it seemed like it makes random moves.
dmurray•1d ago
I thought it played worse than random moves and couldn't understand how it could beat anyone (no offence to OP).

But if you intentionally hang your pieces, it tends to take them. And it will try to promote pawns in the endgame. So it is possible for it to stumble upon a checkmate, though in my effort where I gave away all my pieces, it instead found the only move to stalemate once it had K+Q+R vs K.

dullcrisp•1d ago
It tries to promote pawns in the opening and mid-game too.
_ache_•21h ago
The algorithm behind it is very basic.

Chose the most aggressive move (in term of pieces value and check-mate), if none is aggressive, it takes on of the move equally non aggressive.

Didn't remember the depth of the algorithm but it was very simple C code, could check quickly. It should be able to find a mate in 2 or 3 if it was in position of having one.

I didn't check the correctness of the algorithm, just the intention.

noir_lord•1d ago
It’s terrible everywhere tbh, it has zero awareness of how dangerous the f7 square is in the opening, you can pretty much just mate it by landing the queen on f7 with a piece covering it every time.

I applaud the effort but not sure I see the point, I had a more capable chess playing program than this on a zx speccy in the 80’s.

mettamage•1d ago
I was surprised how quickly I created a chess engine with Claude code a few months ago. It worked quite well. It was bad at recognizing certain chess patterns so I created a lot of tests for the chess engine.
elicash•1d ago
When I created my chess variant and had to create an engine, I used ChatGPT and was surprised that it worked, too. But it was fun learning its flaws.
recursivecaveat•1d ago
The ai source code doesn't seem to have alpha-beta pruning yet. If you add that plus some basic move-ordering (killer move heuristic is easy, powerful, and has a cool name) that will let it search a lot deeper. One nice thing about such improvements is they converge to the same result, just faster, so unlike tweaking the evaluation function you can be pretty sure that you're improving it.
Recursing•1d ago
For people interested in making their own, I highly recommend reading through https://github.com/thomasahle/sunfish/blob/master/sunfish.py , a surprisingly readable and surprisingly strong chess engine in 111 lines of Python

https://www.chessprogramming.org/ is also really interesting, see e.g. https://www.chessprogramming.org/Sunfish and https://www.chessprogramming.org/Quiescence_Search

utopiah•1d ago
> surprisingly readable and surprisingly strong chess engine in 111 lines of Python

Link I get shows 500 lines and it starts with 50 lines of piece-square tables. Maybe it's obvious when you are into the domain but otherwise... that's pretty much of opposite of what I would call "readable".

Recursing•1d ago
Yes it's "surprisingly readable" only for being so strong and so concise, definitely not production code.

The file is 500 lines because of the piece square tables (as you mentioned), comments, and the CLI interface logic

Previous HN thread here: https://news.ycombinator.com/item?id=20068651

svat•1d ago
It appears that the “111 lines” is a reference to the version as of 2014-02-11: https://github.com/thomasahle/sunfish/blob/e2b7fc29ce2a112be... (386 lines), about which the author says (https://www.reddit.com/r/programming/comments/1xmj1a/comment...):

> I got 111 by deleting the tables in the top, and the UI code in the bottom, and then running 'cloc' on the result. That gave 20 blanks, 56 comments and 111 lines of code. ;-)

fogleman•1d ago
I'm just here to comment on the CGA color palette on this website, lol.

I always hated that video mode, but it looks good here when the magenta and cyan are limited just to links and headers!

yyyk•1d ago
Note most modern Chess engines use UCI instead of Winboard protocol. But either is fine really.
tux3•1d ago
It's a fun little AI, but I have another bug report. This time my move is the one that made it crash!

    Uncaught Failed to apply player move! cm-chessboard:69:55
    promotion result 
    Object { type: "pieceSelected", square: "c8", piece: "wq" }
    cm-chessboard:111:37
    Uncaught Error: Invalid move: {"from":"d7","to":"c8","promotion":"q"}
I had forked a rook and king with a pawn. Pawn takes rook, and was going to be offered a promotion, but taking and promoting at once seems to make it crash.