frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://github.com/Meehai/microecs
1•meehai•1h 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)

When the Watcher Became the Confidant – How AI Befriends and Infers Our Children

https://jorgepereiracampos.substack.com/p/when-the-watcher-became-the-confidant
1•BlinkyPT•1m ago•0 comments

Pokémon Go data trained AI that could assist military drones in war zones

https://www.theguardian.com/technology/2026/jun/12/pokemon-go-data-trained-ai-that-could-assist-m...
1•beardyw•2m ago•0 comments

Europe 2031 – What getting AI wrong means for us

https://europe2031.ai/
1•sarusso•2m ago•0 comments

Someone DM'd me for a pitch deck. I built a deck generator instead(now $17K MRR)

https://www.magicslides.app
1•theindianappguy•3m ago•1 comments

Mineral requirements for clean energy transitions

https://www.iea.org/reports/the-role-of-critical-minerals-in-clean-energy-transitions/mineral-req...
1•leonidasrup•8m ago•0 comments

India's workers are training AI robots to take their jobs

https://www.aljazeera.com/gallery/2026/6/11/photos-indias-workers-are-training-ai-robots-to-take-...
1•rustoo•16m ago•1 comments

Build a free AWS security lab on your laptop with LocalEmu

https://builder.aws.com
1•CloudHackerFr•16m ago•0 comments

Deezer's new tool can identify AI music from Spotify, Apple Music, and others

https://techcrunch.com/2026/06/11/deezers-new-tool-can-identify-ai-music-from-spotify-apple-music...
1•JeanKage•17m ago•0 comments

The Jqwik Anti-AI Affair

https://blog.johanneslink.net/2026/06/09/the-jqwik-anti-ai-affair/
1•birdculture•18m ago•0 comments

Building a plugin system without runtime, storage, or shared JavaScript context

https://tolgee.io/blog/building-a-plugin-system-for-tolgee-without-a-runtime-storage-or-shared-js...
1•jancizmar•20m ago•0 comments

Apple and London's Met Police have a new plan to make stolen iPhones useless

https://www.shortlist.com/tech/apple-and-londons-metropolitan-police-have-a-new-plan-to-make-stol...
1•_____k•20m ago•0 comments

Report on an Unidentified Space Station

https://sseh.uchicago.edu/doc/roauss.htm
1•paulmooreparks•24m ago•0 comments

Digital Twin

https://en.wikipedia.org/wiki/Digital_twin
1•the-mitr•24m ago•0 comments

Predytics – Real-Time World Cup Market Tracker (Polymarket and Kalshi)

https://predytics.com
1•shamxal•38m ago•0 comments

Ransomware gangs cut off from EUR 336M crypto laundering pipeline

https://www.europol.europa.eu/media-press/newsroom/news/ransomware-gangs-cut-eur-336-million-audi...
1•doener•38m ago•0 comments

Structured Markdown components without framework lock-in

https://contentbit.dev/
2•gsempe•39m ago•0 comments

The unwritten laws of software engineering

https://newsletter.manager.dev/p/the-unwritten-laws-of-software-engineering
1•fagnerbrack•43m ago•0 comments

Adam Garske: How designing new enzymes could change the world [video]

https://www.ted.com/talks/adam_garske_how_designing_brand_new_enzymes_could_change_the_world
1•fagnerbrack•43m ago•0 comments

Show HN: Interkom – Social Slack Alternative

https://interkom.app/
1•yaszko•44m ago•0 comments

The Smart Dumb Programmer

https://fagnerbrack.com/the-smart-dumb-programmer-a69b57634e87
1•fagnerbrack•45m ago•0 comments

MCP Solves the Plug, Not the Trust Boundary

https://vectoralix.com/blog/mcp-has-a-tool-selection-problem
1•eugmai86•48m ago•0 comments

The Indian workers training AI robots to take their jobs

https://today.rtl.lu/news/world/the-indian-workers-training-ai-robots-to-take-their-jobs-459004114
1•TrackerFF•48m ago•0 comments

Agentic SDLC Orchestration vs. Synchronization: Choosing Modular Workflows

https://docs.overcut.ai/blog/agentic-sdlc-orchestration-vs-synchronization
1•yuvalhazaz•50m ago•0 comments

Show HN: Co-Authored-By Is a Lie: Cryptographic Provenance for AI Coding Agents

https://blog.rduffy.uk/posts/co-authored-by-is-a-lie/
1•rduffyuk•53m ago•0 comments

Show HN: Token efficient command line tool for textual operation of browsers

https://github.com/DO-SAY-Go/web-cli
1•keepamovin•56m ago•0 comments

Show HN: Resolve Discourse Forum Issues Faster with AI Agents

1•Daniel-Pan•56m ago•0 comments

Google director resigns, citing military deals: 'Management lost moral compass'

https://www.businessinsider.com/google-director-resigned-pentagon-ai-deal-military-artificial-int...
5•theanonymousone•58m ago•2 comments

Why China is betting on big nuclear reactors

https://www.technologyreview.com/2026/06/11/1138789/china-big-nuclear-reactors/
2•joozio•58m ago•1 comments

Breakthrough in atomic resolution imaging via a laser phase plate

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
1•ilya_m•1h ago•1 comments

Show HN: Masthead – A free, hosted, open source Hugo alternative

https://masthead.site
1•dijkstra_j•1h ago•0 comments