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
47•blackmat•9h 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•8h 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•3h ago
Hmm! I haven't heard of JECS before. I need to check it out :-) Thanks for the kind words!
cmovq•8h 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•8h 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•3h 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•7h ago
What makes it an "envolved" ecs?
blackmat•3h 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•6h ago
Any examples of projects using this?
blackmat•3h 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•6h ago
One alternatives I like is https://bakpakin.github.io/tiny-ecs/doc/
blackmat•3h ago
Yeah, tiny-ecs is good, but it doesn't quite fit my needs. With these thoughts in mind, I started this project.

Should I Block ICMP?

http://shouldiblockicmp.com/
70•rascul•2h ago•40 comments

For algorithms, a little memory outweighs a lot of time

https://www.quantamagazine.org/for-algorithms-a-little-memory-outweighs-a-lot-of-time-20250521/
179•makira•5h ago•35 comments

Display any CSV file as a searchable, filterable, pretty HTML table

https://github.com/derekeder/csv-to-html-table
13•indigodaddy•52m ago•0 comments

ITXPlus: A ITX Sized Macintosh Plus Logicboard Reproduction

https://68kmla.org/bb/index.php?threads/itxplus-a-itx-sized-macintosh-plus-logicboard-reproduction.49715/
40•zdw•3h ago•9 comments

Show HN: Confidential computing for high-assurance RISC-V embedded systems

https://github.com/IBM/ACE-RISCV
70•mrnoone•5h ago•5 comments

Rocky Linux 10 Will Support RISC-V

https://rockylinux.org/news/rockylinux-support-for-riscv
72•fork-bomber•4h ago•15 comments

Tales from Mainframe Modernization

https://oppi.li/posts/tales_from_mainframe_modernization/
13•todsacerdoti•1h ago•1 comments

Devstral

https://mistral.ai/news/devstral
365•mfiguiere•11h ago•74 comments

Gemini Diffusion

https://simonwillison.net/2025/May/21/gemini-diffusion/
3•mdp2021•9m ago•0 comments

OpenAI to buy AI startup from Jony Ive

https://www.bloomberg.com/news/articles/2025-05-21/openai-to-buy-apple-veteran-jony-ive-s-ai-device-startup-in-6-5-billion-deal
623•minimaxir•8h ago•852 comments

Collaborative Text Editing Without CRDTs or OT

https://mattweidner.com/2025/05/21/text-without-crdts.html
180•samwillis•8h ago•49 comments

How Gemini Figured Out My Nephew's Name

https://blog.nawaz.org/posts/2025/May/gemini-figured-out-my-nephews-name/
7•BeetleB•3d ago•2 comments

The curious tale of Bhutan's playable record postage stamps (2015)

https://thevinylfactory.com/features/the-curious-tale-of-bhutans-playable-record-postage-stamps/
80•ohjeez•6h ago•5 comments

The Machine Stops (1909)

https://standardebooks.org/ebooks/e-m-forster/short-fiction/text/the-machine-stops
42•xeonmc•4h ago•10 comments

Animated Factorization (2012)

http://www.datapointed.net/visualizations/math/factorization/animated-diagrams/
224•miniBill•10h ago•53 comments

Sorcerer (YC S24) Is Hiring a Lead Hardware Design Engineer

https://jobs.ashbyhq.com/sorcerer/6beb70de-9956-49b7-8e28-f48ea39efac6
1•maxmclau•4h ago

Show HN: I've built online video editor

https://clipjs.vercel.app/
85•mohyware•5h ago•38 comments

CERN gears up to ship antimatter across Europe

https://arstechnica.com/science/2025/05/cern-gears-up-to-ship-antimatter-across-europe/
48•ben_w•2d ago•11 comments

I have tinnitus. I don't recommend it

https://blog.greg.technology/2025/05/20/tinnitus.html
21•gregsadetsky•2h ago•12 comments

LLM function calls don't scale; code orchestration is simpler, more effective

https://jngiam.bearblog.dev/mcp-large-data/
153•jngiam1•8h ago•65 comments

An upgraded dev experience in Google AI Studio

https://developers.googleblog.com/en/google-ai-studio-native-code-generation-agentic-tools-upgrade/
97•meetpateltech•7h ago•53 comments

How we made iText's table rendering faster

https://kb.itextpdf.com/itext/how-i-made-pdf-table-rendering-faster
20•whizzx•2d ago•1 comments

London's Water Pumps: Where History Flows Freely

https://londonist.com/london/features/london-s-water-pump
13•joebig•3d ago•0 comments

Storefront Web Components

https://shopify.dev/docs/api/storefront-web-components
116•maltenuhn•8h ago•34 comments

Understanding the Go Scheduler

https://nghiant3223.github.io/2025/04/15/go-scheduler.html
102•gnabgib•3d ago•15 comments

Introducing the Llama Startup Program

https://ai.meta.com/blog/llama-startup-program/?_fb_noscript=1
149•mayalilpony10•9h ago•48 comments

Launch HN: SIM Studio (YC X25) – Figma-Like Canvas for Agent Workflows

46•waleedlatif1•9h ago•30 comments

The US has a new most powerful laser hitting 2 petawatts

https://news.engin.umich.edu/2025/05/the-us-has-a-new-most-powerful-laser/
89•voxadam•10h ago•94 comments

µPC: Scaling Predictive Coding to 100 Layer Networks

https://arxiv.org/abs/2505.13124
16•frozenseven•5h ago•0 comments

By default, Signal doesn't recall

https://signal.org/blog/signal-doesnt-recall/
421•feross•8h ago•322 comments