Hacker News

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

Hacker News - Fri, 06/12/2026 - 2:21am

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)

Comments URL: https://news.ycombinator.com/item?id=48500561

Points: 1

# Comments: 0

Categories: Hacker News

Stimulants Are the Killer of Generalists

Hacker News - Fri, 06/12/2026 - 1:39am

From a young age, I was prescribed stimulants to 'treat' a strong case of ADHD. Being ~7 at the time, I had no clue what was going on. Never really questioned it either. Fast forward 18 years: through a lot of introspection, I can happily say I am not in a position I'd like to be in.

Stimulants come at tradeoffs.

I've come to realize that people with ADHD are: - Observant - Social - Generalist

I've also come to notice that I am: - Specialist - Zombie - Anti Social

"Locked-in" = specialist.

I hate specialization. Its fragile. Throughout history, generalists have reigned. Entrepreneurs are generalists. I want to be an entrepreneur.

I work a job now. Software Engineering. Im left wondering, what will I do if I leave the stimulants? I dont vouch for the life I live, at all. I will find a way out of it.

Im not an introvert. Yet I've grown as one. Its isolating, seeing people socialize and strangely feeling out of place.

I've confirmed all of this through trial and error. Dropping the stimulants, going back on them.

Its an odd discovery in your 20s that you are a completely different person than you had thought.

The world becomes beautiful when you see it raw for the first time. Food tastes wonderful. Moments become magical and powerful. It feels tingly to make someone laugh and converse deeply. I dont believe there are many people who've experienced the difference so suddenly.

Comments URL: https://news.ycombinator.com/item?id=48500343

Points: 2

# Comments: 0

Categories: Hacker News

Pages