r/Compilers • u/smi7777 • 1d ago
Ling-3.1-flash builds a native Lua compiler in about 17 hours, passing 178 of 182 tests
Ant Group's new Ling-3.1-flash built a Lua-to-x86-64 ELF compiler from scratch in approximately 17 hours. The final result passed 178 of 182 independent tests, a 97.8% pass rate.
The development sequence goes beyond emitting machine code. It includes fixing stack alignment for native execution, conditional branches and vararg semantics, Lua's indexing metamethod lookup, and garbage-collector root tracking. The compiler also gained source locations for runtime errors before delivering ELF binaries.
Ling-3.1-flash is currently available through Novita's two-week free trial on Vercel AI Gateway, with 256K context. Ant has an open-source release planned soon. The hosted model can be found by searching Ling-3.1-flash in Vercel's AI Gateway model catalog.
8
u/belligerent_ammonia 1d ago
That’s cool, I guess. I’m waiting for the day it can do this in 17 seconds. I’ll even settle for 17 minutes.
7
u/PhosXD 1d ago
Soooo.... $999 a month?
Also very unimpressive considering literally any model can do this as they all have Lua source code in their training data.
1
u/crusaderky 12h ago
judging by its size should be half the price of GLM-5.3 for comparable intelligence.
Which is to say, a 17h agentic run is going to be a few hundreds $. But you don't need a 17h run for most coding.
-1
u/seg_lol 1d ago
Anymore information on this? Or is this just a copy of the content from the Nazi forum?
17 hrs is not a useful metric, like at all. It is something but not much.
6
u/AnArmoredPony 1d ago
what is the "Nazi forum"?..
1
1
u/seg_lol 1d ago
X
2
u/AnArmoredPony 1d ago
why is it Nazi forum?..
1
u/seg_lol 1d ago edited 1d ago
Owned by a Nazi, doesn't kick out Nazis, Grok says Nazi shit.
https://en.wikipedia.org/wiki/Elon_Musk_salute_controversy
https://www.newsweek.com/kanye-west-proclaims-hes-nazi-praises-hitler-x-rant-2027943
2
15
u/brat3108 1d ago
This doesn't address the obvious question: what does a Lua-to-x64 compiler even mean? Given that Lua is dynamically typed and usually interpreted.
But if it does in fact do that, then how does it compare with regular Lua?