frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Show HN: AirAP AirPlay server - AirPlay to an iOS Device

https://github.com/neon443/AirAP
71•neon443•56m ago•4 comments

Show HN: An Alfred workflow to open GCP services and browse resources within

https://github.com/dineshgowda24/alfred-gcp-workflow
18•dineshgowda24•1h ago•5 comments

Show HN: Controlling 3D models with voice and hand gestures

https://github.com/collidingScopes/3d-model-playground
69•getToTheChopin•6h ago•13 comments

Show HN: Localize React apps without rewriting code

https://github.com/lingodotdev/lingo.dev
38•maxpr•3h ago•33 comments

Show HN: I wrote a Java decompiler in pure C language

https://github.com/neocanable/garlic
127•neocanable•8h ago•59 comments

Show HN: PinSend – Share text between devices using a PIN(P2P, no login)

https://pinsend.app
44•avovsya•6h ago•20 comments

Show HN: .NET Threading Mystery Classes

https://github.com/fbie/threading-mysteries
4•superF•1h ago•1 comments

Show HN: Asciilator.com

https://www.asciilator.com/
13•4m1rk•5h ago•8 comments

Show HN: Use Just Your Voice To Author Flow Charts

https://www.loom.com/share/bf336caddabc4e8b84032aa95a7ff303?sid=5c24a0b3-8b28-4dbe-91ce-5077dce2ddaf
4•voice_prompt•1h ago•0 comments

Show HN: Mosaique.info – Global news in context (solo dev, no ads, no tracking)

https://www.mosaique.info
5•msqinfo•3h ago•0 comments

Show HN: SQLxport – Export SQL Query Results to Parquet, CSV, and S3

https://github.com/vahid110/sqlxport
5•wahid110•2h ago•0 comments

Show HN: I'm Building Ahrefs for AI Search Results

https://linrush.com/
5•devarifhossain•2h ago•1 comments

Show HN: pgarrow – A SQLAlchemy PostgreSQL dialect for ADBC

https://github.com/michalc/pgarrow
3•michalc•2h ago•0 comments

Show HN: I made a scripting language run in the browser with no HTML

https://github.com/sinisterMage/WPlusPlusPlayground
4•sinisterMage•3h ago•0 comments

Show HN: Ultra-lightweight chunker library with emoji support

https://github.com/ushakov-igor/chonkify
16•Beardier•4h ago•4 comments

Show HN: I build one absurd web project every month

https://absurd.website
263•absurdwebsite•1d ago•63 comments

Show HN: Psuedocode Expander

https://github.com/Explosion-Scratch/psuedocode-expander
3•explosion-s•3h ago•0 comments

Show HN: Slurm-web – open-source lightweight web UI for Slurm HPC/AI clusters

https://slurm-web.com/
6•rezib•6h ago•0 comments

Show HN: Kan.bn – An open-source alterative to Trello

https://github.com/kanbn/kan
471•henryball•1d ago•210 comments

Show HN: Rethinknig Serverless – Services, Observers, and Actors Now Available

4•genovalente•5h ago•0 comments

Show HN: Legal Eyes – Turn casual text into legalese with one click

https://www.legaleyes.uk/
4•ForgedLabsJames•5h ago•3 comments

Show HN: A toy version of Wireshark (student project)

https://github.com/lixiasky/vanta
253•lixiasky•1d ago•70 comments

Show HN: Onlook – Open-source, visual-first Cursor for designers

https://github.com/onlook-dev/onlook
400•hoakiet98•5d ago•80 comments

Show HN: Cmd-K for the Terminal

https://github.com/mieubrisse/cmdk
5•mieubrisse•6h ago•1 comments

Show HN: Compliant LLM toolkit for ensuring compliance & security of AI systems

https://github.com/fiddlecube/compliant-llm
6•kaushik92•6h ago•0 comments

Show HN: Winhider – Hide windows from screenshare and Taskbar/Taskswitcher

https://github.com/aamitn/winhider
3•bigwiz•6h ago•0 comments

Show HN: Penny-1.7B Irish Penny Journal style transfer

https://huggingface.co/dleemiller/Penny-1.7B
145•deepsquirrelnet•1d ago•72 comments

Show HN: I built an open source clone of Grok's DeepSearch

https://github.com/mendableai/firesearch
2•ericciarla•6h ago•0 comments

Show HN: I made an AI that turn live lecture into structured notes,mind-maps,PDF

https://www.notorium.app
26•pranav_harshan•1d ago•14 comments

Show HN: Text to 3D simulation on a map (does history pretty well) with gmaps++

https://worldlens.co/map/
4•lukehollis•8h ago•0 comments
Open in hackernews

Show HN: A Implementation of Alpha Zero for Chess in MLX

https://github.com/koogle/mlx-playground/tree/main/chesszero
67•jakobfrick•5d ago
A chess engine implementation inspired by AlphaZero, using MLX for neural network computations and Monte Carlo Tree Search (MCTS) for move selection.

Comments

29athrowaway•2d ago
How does it do against Stockfish?
mtlmtlmtlmtl•2d ago
Not the author, but probably very poorly. This seems more like a proof of concept, it's written in Python, has a very basic tree search which is very light on heuristics. And likely the NN is undertrained too, but I can't tell from the repo. In comparison Stockfish is absurdly optimised in every aspect, from its datastructures to its algorithms. Considering how long it took the LeelaZero team to get their implementation to be competitive with latest Stockfish, I'd be shocked if this thing stood a chance.

Of course, beating Stockfish is almost certainly not the goal for this project, looks more like a project to get familiar with MLX.

29athrowaway•2d ago
Thanks for the explanation.
Scene_Cast2•2d ago
This is one of those topics that LLMs (Opus 4, Gemini 2.5 pro, etc) seem bad at explaining.

I was trying to figure out the difference between the Stockfish approach (minimax, alpha-beta pruning) versus Alpha Zero / Leela Chess Zero (MCTS). My very crude understanding is that stockfish has a very light & fast neural net and goes for a very thorough search. Meanwhile, in MCTS (which I don't really understand at this point), you eval the neural net, sample some paths based on the neural net (similar to minimax), and then pick the path you sampled the most. There's also the training vs eval aspect to it. Would love a better explanation.

cgearhart•2d ago
In old-fashioned AI, it was generally believed that the best way to spend resources was to exactly evaluate as much of the search tree as possible. To that end, you should use lightweight heuristics to guide the search in promising directions and optimizations like alpha-beta pruning to eliminate useless parts of the search space. For finite games of perfect information like chess this is hard to beat when the search is deep enough. (For if you could evaluate the whole game tree from the start then you could always make optimal moves.) Stockfish follows this approach and provides ample evidence of the strength in this strategy.

Perhaps a bit flippantly, you can think of MCTS as “vibe search”—but more accurately it’s a sampling-based search. The basic theory is that we can summarize the information we’ve obtained to estimate our belief in the “goodness” of every possible move and (crucially) our confidence in that belief. Then we allocate search time to prioritize the branches that we are most certain are good.

In this way MCTS iteratively constructs an explicit search tree for the game with associated statistics that is used to guide decisions during play. The neural network does a “vibe check” on each new position in the tree for the initial estimate of “goodness” and then the search process refines that estimate. (Ask the NN to guess at the current position; then play a bunch of simulations to make sure it doesn’t lead to obvious blunders.)

bobmcnamara•1d ago
I feel old. Old-old-fashioned(pre-alpha beta) chess engines used a heavyweight evaluator to limit graph searched branch factor.
mtlmtlmtlmtl•1d ago
Could you elaborate on this? I thought alpha-beta first appeared way back in the 50s/60s.
bobmcnamara•1d ago
The first non trivial chess programs were 'playing' in the late 40s(with pen and paper CPUs). Some of these include features you'll still see today.

https://www.chessprogramming.org/Claude_Shannon proposed two types of chess programs, brutes and selective. Alpha-beta is an optimization for brutes, but many search chess programs were selective with heavyweight eval, or with delayed eval.

Champernowne(Turing's partner), mentions this about turochamp, "We were particularly keen on the idea that whereas certain moves would be scorned as pointless and pursued no further others would be followed quite a long way down certain paths."

You can read more about the A/B/A/B algorithm shift here: https://www.chessprogramming.org/Type_B_Strategy

cgearhart•1d ago
I think there was some debate on this, actually. I did a lot of research on the subject in the late 2010s and it seems like there were those who felt like limiting the branching factor was the goal, while others felt like fast eval to guide search in order to prune the tree was better.

For what it’s worth, “prune the tree” is still the winningest strategy. MCTS in AlphaGo/AlphaZero scored some wins when they came out, but eventually Stockfish invented the efficiently updatable neural network that now guides their search & it’s much stronger than any MCTS agent.

bobmcnamara•1d ago
I suspect you are talking a few decades after the time I am talking about. Many of the earliest chess programs used lossy pruning(type b Shannon engines), under the assumption that the static evaluation at some node could just be bad enough to say don't look down this branch anymore. But they were not provably correct like with alpha beta. Shannon's paper explains a lot more about this. In the late 1940s some of these programs were being run on pen and paper.

For what it's worth stockfish didn't invent efficiently updatable neural networks, Yu Nasu did. Hisayori Noda ported it to Western chess and Stockfish. NNUE is really neat.

cgearhart•21h ago
Threads like this are why I love HN. Thanks for teaching me new things. :-)
kadoban•2d ago
AlphaGo Zero is: assume you have a neural network that, given a board position, will answer: what's win probability, and how interesting is each move from here.

You use the followup moves as places to search down. It's a multi-armed bandit problem choosing which move(s) to explore down, but for simplicity in explanation you can just say: maybe just search the top few, vaguely in proportion to how interesting they are (the number the net gave you, updated if you find any surprises).

To search down further, you just play that move and then ask the network for the winrate (and followup moves) again. If there's any surprises, you can update upwards to say "hey this is better than expected!" or whatever.

The key thing for training this network: spending computation from an existing network gives ycu better training data to train that same network. So you can start from scratch and use reinforcement learning to improve it without bound.

praptak•2d ago
"pick the path you sampled most" is misleading.

What you actually do is model every node (a game state) as a multi armed bandit. Moves are levers and the final game results are payoffs.

So you basically keep a tree of multi-armed bandits and adjust it after each (semi-)random game, perhaps adding some nodes, for example the first node the game visited which is not yet in your move tree.

For the random game you pick the next node to maximise long term payoff (exploration/exploitation tradeoff applies here) which usually means a move which gave good win ratio on previous plays but not always (exploration).

And obviously this only applies to the first part of the game which is still in the memorized tree - after that it's random.

This alone does converge to a winning strategy but sometimes impractically slowly. Here's where the neural network comes in - in every new node assign the weights not uniformly but rather directed by the NN which seeks out promising moves and greatly speeds up the convergence.

anantdole•2d ago
Very interesting, I have been actually working on an AI Chess Coach to help explain moves of games: https://lichess.org/@/nightfox/blog/ai-chess-coach/4uMrWhR9
JoeDaDude•2d ago
Cool! I'd love to tinker with this and see about adapting it to other perfect information games. If you have any suggestions (or warnings) before I do this, please let me know!.
mtlmtlmtlmtl•1d ago
Again, I didn't write this, but in general, to take a chess engine and apply to another game the main things you'd have to change are the board representation, and you'd have to retrain the neural net(likely redesign it as well). The tree search should work assuming the game you're going to is also a perfect information, minimax game. Though it could also work for other games. There's a good chance there's prior work on applying bitboards(board representation) on whichever game that is. Chessprogrammingwiki is an invaluable resource for information about how engines like this work. Godspeed.