frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Evolved.lua – An Evolved Entity Component System for Lua

https://github.com/BlackMATov/evolved.lua
46•blackmat•8h ago
I'm excited to announce the first release of my library, evolved.lua!

evolved.lua is a fast and flexible ECS (Entity-Component-System) library for Lua. It is designed to be simple and easy to use, while providing all the features needed to create complex systems with blazing performance.

Enjoy!

Comments

euvin•7h ago
Cool to see a new ECS project! I've been learning and using JECS (https://github.com/Ukendio/jecs) for a project of mine, and some of the core ideas (like Chunks) felt familiar. This project definitely seems to have a more in-depth documentation though and a lot more features especially by having its own scheduler stuff. Would love to try it out on a new project someday
blackmat•2h ago
Hmm! I haven't heard of JECS before. I need to check it out :-) Thanks for the kind words!
cmovq•7h ago
> Components are stored in contiguous arrays in a SoA (Structure of Arrays) manner, which allows for fast iteration and processing

Does this actually matter in Lua? Aren’t all array elements going to be pointers to heap allocated objects anyways?

The point of SoA is your likely to be accessed values are adjacent in memory, but if you’re chasing a pointer to get that value then you’re not getting anything out of it.

PhilipRoman•7h ago
Lua uses tagged unions so that primitives are stored inline within a table. Some time ago I benchmarked this and the perf gains from SOA were significant. Besides, even if you had to chase pointers, SOA still means you can reduce the number of allocations.
blackmat•2h ago
Yes, organizing components as SoA can provide a significant performance boost in Lua, especially with LuaJIT. Both iteration and element access become faster, and it also reduces memory allocations and GC pressure when creating entities. And yes, Lua tables can be contiguous in memory if you use them carefully.
dogprez•6h ago
What makes it an "envolved" ecs?
blackmat•2h ago
Honestly, it's just a fancy way of saying I learned a few things from earlier attempts and made some tweaks. I just think "evolved" sounds cool!
poly2it•5h ago
Any examples of projects using this?
blackmat•2h ago
Not yet, but I wrote this library to use in a project of mine. When I finish it, I will add a link to the README. As for a small demo project, I have one in mind, but I haven't started it yet.
je42•5h ago
One alternatives I like is https://bakpakin.github.io/tiny-ecs/doc/
blackmat•2h ago
Yeah, tiny-ecs is good, but it doesn't quite fit my needs. With these thoughts in mind, I started this project.

ESLint v9.0.0: A Retrospective

https://eslint.org/blog/2025/05/eslint-v9.0.0-retrospective/
1•soheilpro•2m ago•0 comments

Question no one ever asked GPT

https://blog.bkryza.com/posts/the-best-question-no-one-ever-asked-you/
1•GianFabien•3m ago•1 comments

SynthID Detector: Identify content made with Google's AI tools

https://blog.google/technology/ai/google-synthid-ai-content-detector/
2•twapi•12m ago•0 comments

Anyone Remember Alan Turing?

https://www.theguardian.com/society/2025/may/22/shabana-mahmood-considers-chemical-castration-for-serious-sex-offenders
2•zabzonk•13m ago•0 comments

Rock 4D with RK3576, PCIe Gen2 X1, GbE, and Poe Support Starts at $30

https://linuxgizmos.com/radxa-rock-4d-with-rk3576-soc-pcie-gen2-x1-gigabit-ethernet-and-poe-support/
1•PixelN0va•14m ago•0 comments

Collatz's Ant

https://gbragafibra.github.io/2025/05/18/collatz_ant3.html
1•Fibra•16m ago•0 comments

We Want Answers: Why the Web Is Collapsing into Agents

https://medium.com/@dangoikhman/ai-search-saas-artificial-intelligence-developer-publisher-media-software-user-interface-ui-07e8bd427ce2
2•joshdappier•17m ago•0 comments

How to break or continue from a lambda loop?

https://vittorioromeo.com/index/blog/controlflow.html
1•SuperV1234•17m ago•0 comments

Framework Desktop Deep Dive: Power Supply

https://frame.work/blog/framework-desktop-deep-dive-power-supply
1•wmf•17m ago•0 comments

"Microsoft has simply given us no other option," Signal blocks Windows Recall

https://arstechnica.com/security/2025/05/signal-resorts-to-weird-trick-to-block-windows-recall-in-desktop-app/
4•beatthatflight•21m ago•1 comments

Startup enables 100-year bridges with corrosion-resistant steel

https://news.mit.edu/2025/allium-engineering-enables-100-year-bridges-corrosion-resistant-steel-0520
1•gnabgib•22m ago•0 comments

Fast Allocations in Ruby 3.5

https://railsatscale.com/2025-05-21-fast-allocations-in-ruby-3-5/
2•Ocha•23m ago•0 comments

Ask HN: Has anyone been able to overcome crippling executive dysfunction?

1•justanything•24m ago•0 comments

Tales from Mainframe Modernization

https://oppi.li/posts/tales_from_mainframe_modernization/
3•todsacerdoti•24m ago•0 comments

Current Continuation E1: Ranjit Jhala (UCSD) [video]

https://www.youtube.com/watch?v=goUZczQAfgk
1•matt_d•28m ago•0 comments

Geometry doesn't need a spreadsheet. It never did

https://gist.github.com/mxfactorial/14974ba162e84827dacf1b965d8ab76d
1•mxfactorial•32m ago•0 comments

Making OutRun's Magical Sound Shower for the Amiga with a Spreadsheet [video]

https://www.youtube.com/watch?v=8K-H-Jm0NMw
3•mosura•38m ago•0 comments

Elon Musk: From Genius to Joke? LLM-Powered Poll Reveals Public Turnaround

https://blog.forecastos.com/ai-analyzes-the-internet-elon-musks-genius-rating-tanks-is-tesla-stock-next/
3•charliereese•40m ago•4 comments

Apologetic Amazon belatedly refunds years-old returns

https://www.bloomberg.com/news/articles/2025-05-20/amazon-gives-refunds-apologizes-for-years-old-returns-issues
5•rwc9•41m ago•1 comments

XAI API Supports Real-Time Search from X/News/Web – Free Till June 5th

https://twitter.com/xai/status/1925244461875175616
5•dobdob•43m ago•1 comments

Who do you want to be? (2013)

https://www.kyledaigle.com/who-do-you-want-to-be/
1•mooreds•44m ago•0 comments

A Swift Cloud

https://culturedcode.com/things/blog/2025/05/a-swift-cloud/
1•MBCook•45m ago•0 comments

Playstation Executive Jade Raymond Leaves Studio She Founded

https://www.bloomberg.com/news/articles/2025-05-15/playstation-executive-jade-raymond-leaves-studio-she-founded
2•msukkarieh•45m ago•1 comments

Using Codex as a Task Inbox

https://rafaelquintanilha.com/using-codex-as-a-task-inbox/
1•rafaquintanilha•46m ago•0 comments

Barnes and Noble: you had one job. This is why Amazon eats your lunch

1•antonvs•50m ago•0 comments

Brian Eno denounces Microsoft for its ties to Israeli government

https://www.theverge.com/news/671864/brian-eno-windows-95-chime-microsoft-israel-palestine-statement
7•ericzawo•57m ago•1 comments

Show HN: Ninja.ai – Create and Install MCP Servers with One Click

https://ninja.ai/
2•schappim•57m ago•0 comments

Modular, LLM-Flexible AI Agent Builder for Omnichannel Telecom

https://www.cloud-net.ai/case-studies/introducing-veris-lite-ai-agent-builder
1•y2so•58m ago•0 comments

Bitcoin hits new all time high near $110K

https://www.thestreet.com/crypto/markets/bitcoin-hits-new-all-time-high
6•ur-whale•58m ago•0 comments

Apple Filing Protocol will soon disappear from macOS

https://appleinsider.com/inside/macos-sequoia/tips/apple-filling-protocol-will-soon-disappear-completely-from-macos
4•miles•58m ago•0 comments