frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: MicroECS – entity component system library in Python/NumPy

https://github.com/Meehai/microecs
3•meehai•12h ago
Hi, in the last ~month I've learned a lot about ECS [1,2].

I'm currently developing a robotics simulator from scratch (python+raylib) and, due to lack of game dev experience I went "full OOP" on it. A SceneObject with a lot of inherited interfaces (e.g. Collidable, Movable etc.). These are inherited and fixed at run time.

The main loop inevitably became:

  for scene_object in sim.scene_objects:
    scene_object.update(...)
  for scene_object in sim.scene_objects:
    scene_object.draw(...)
Well, it turns out that this can become a bottleneck if you have many scene objects because computers love contiguous memory for caching, physics/math vectorization and so on.

Having recently learned more about ECS[1,2], I started doing a bunch of experiments in a sandbox with turning the update() function into ECS. The idea is that the data is stored in columnar numpy arrays (components) + a lot of data structure optimizations for querying scene objects and fast access e.g.

  qr = scene.query(HasMotion, HasPosition) # query result acting like a np array of (N, ...) shape
  qr.position += ... # operate like numpy / vectorized
In any case, the standalone library only needs python and numpy. Raylib is only for rendering, but the raw data structures don't need it.

I'd love some feedback on it, e.g. what is it missing or what are gotchas I'll find out later on during the simulator development.

As an anecdote: I used Claude as an 'engineering manager', I wrote the code myself, it did the code review, tasks management and tests (super useful for corner cases).

[1] https://www.youtube.com/watch?v=qglU107_DA4 hytale's ECS video (great for beginners)

[2] Casey Muratori's latest video about the first ECS in the game industry (https://www.youtube.com/watch?v=73Do0OScoOU)

Show HN: StackScope – I crawled over 40k indie launches to see what they ship

https://stackscope.dev/
21•datafreak_•3h ago•5 comments

Show HN: Script to bulk delete Claude chats from the web UI

https://github.com/MatteoLeonesi/bulk-delete-claude-chat
38•ML0037•3h ago•14 comments

Show HN: Button does nothing. $1 makes it 1 pixel bigger, forever

https://growthebutton.com
2•hedvion•1h ago•3 comments

Show HN: Homebrew 6.0.0

https://brew.sh/2026/06/11/homebrew-6.0.0/
1385•mikemcquaid•1d ago•328 comments

Show HN: Squishy & Friends – Claude Fabel 5 coded a game and it is good

https://squishy.franzai.com/
3•franze•1h ago•1 comments

Show HN: FablePool – pool money behind a prompt, and Fable builds it in public

https://fablepool.com
491•matthewbarras•21h ago•258 comments

Show HN: SharkClean MCP

https://github.com/a-funk/sharkclean-mcp
2•afunk•2h ago•0 comments

Show HN: Boo – Screen-style terminal multiplexer built on libghostty

https://github.com/coder/boo
85•kylecarbs•21h ago•27 comments

Show HN: I had Fable clone a game, it turned it into an arena combat AI trainer

https://soldat.bobbby.online/
4•rhgraysonii•3h ago•0 comments

Show HN: Claw Patrol, a security firewall for agents

https://github.com/denoland/clawpatrol
97•rough-sea•3d ago•28 comments

Show HN: Extend UI – open-source UI kit for modern document apps

https://www.extend.ai/ui
245•kbyatnal•2d ago•79 comments

Show HN: 800x faster Linter and TypeScript-Go toolchain for plugins like typia

https://github.com/samchon/ttsc
3•autobe•5h ago•1 comments

Show HN: HelixDB – A graph database built on object storage

https://github.com/HelixDB/helix-db/tree/main
151•GeorgeCurtis•2d ago•42 comments

Show HN: Ttar 2.4 KB freestanding TAR archiver written in C, no Libc

https://github.com/Ferki-git-creator/ttar-tiny-tar-archivist
2•DenisDolya•7h ago•0 comments

Show HN: I built a lead list tool to find businesses you can sell to

https://sensecollect.com
2•chrislxy•7h ago•2 comments

Show HN: MicroECS – entity component system library in Python/NumPy

https://github.com/Meehai/microecs
3•meehai•12h ago•0 comments

Show HN: Gravity – Interactive solar-system simulator, from Newton to Einstein

https://qunabu.github.io/Gravity/
211•qunabu•3d ago•50 comments

Show HN: Recreate Thinking Machines 276B voice demo with duct tape and 8B model

https://github.com/kouhxp/cheap-im
2•mrkn1•10h ago•0 comments

Show HN: TunnelMind – reputation API for IPs, ASNs, and ad-tech supply chains

https://tunnelmind.ai/
9•o2k•22h ago•9 comments

Show HN: I built a Red Flag Warning zone-check tool for the East Bay in 48h

https://redflag-check.info
16•vedant28t•1d ago•3 comments

Show HN: GentleOS – A pair of hobby OSes for vintage 32-bit and 16-bit PCs

https://github.com/luke8086/gentleos32
128•luke8086•5d ago•104 comments

Show HN: Performative-UI – A react component library of design tropes

https://vorpus.github.io/performativeUI/
1171•lizhang•4d ago•210 comments

Show HN: Open-source API Key server written in Go by Ory

https://github.com/ory/talos/tree/master
32•leetvibecoder•1d ago•3 comments

Show HN: ZeroFS – Make S3 your primary storage

https://www.zerofs.net/
9•Eikon•21h ago•1 comments

Show HN: I applied Lyapunov stability theory to detect when LLM agents spiral

https://github.com/vishal-dehurdle/state-harness
8•visha1v•1d ago•2 comments

Show HN: Manob: A social media plaform without algorithm, ads, or data-tracking

2•Iamahmedsalman•13h ago•0 comments

Show HN: Dont lose your friends, use a Kadoodle to plan your next event

https://kalerum.com/en/tools/kadoodle
3•mailforge•13h ago•1 comments

Show HN: Proton – A easy CGO-free immediate-mode GUI framework for Go

2•CzaxTanmay•13h ago•0 comments

Show HN: Atlasphere – Live Infrastructure Diagrams

31•andreygrehov•3d ago•17 comments

Show HN: macOS menu bar gauges for your Claude Code quota

https://github.com/grzegorz-raczek-unit8/claude-quota
65•grzracz•2d ago•40 comments