r/programming • • Aug 10 '15

LuaJIT's main developer is retiring and is looking for new developers

http://www.freelists.org/post/luajit/Looking-for-new-LuaJIT-maintainers
193 Upvotes

55 comments sorted by

17

u/heyalexej Aug 11 '15 edited Aug 11 '15

I hope that some companies like CloudFlare or even Mozilla, or companies who use Heka keep this running.

I just learned about the fact that Lua can be injected at runtime into compiled programs which is exactly what I'm interested in.

EDIT: Moz is using and relying heavily on LuaJIT as well for authentication via OpenResty.

11

u/inmatarian Aug 11 '15

Lua's specific purpose is for use as an embedded scripting language. There's very few keywords in Lua, and everything that could be done via standard library functions was, so that the host program could replace that global environment with one of its own. And then on top of that there's a hook mechanism for counting and breakpointing scripts, so that infinite loops can be identified and terminated.

You just have to learn to put up with 1-based indexing. Otherwise lua is a great language.

5

u/SoniEx2 Aug 11 '15

You just have to learn to put up with 1-based indexing. Otherwise lua is a great language.

Makes it sound like 1-based indexing is the devil.

18

u/edmundmk Aug 11 '15

1-based indexing is the devil.

Lua with 0-based indexing would be a pretty much ideal scripting language.

1

u/SoniEx2 Aug 11 '15

Use a proxy table with __index shifting up by 1.

Or use LuaJIT FFI. Pretty sure that one does 0-indexing as well.

11

u/A_t48 Aug 11 '15

Please don't. :(

2

u/holgerschurig Aug 12 '15

What an insane advice. This would make you unable to use any of the provided standard libraries. Now, technically you could use them. But then you have to use 0-based indexes for your own code and 1-based indexes for the standard libs.

Shudder.

0

u/SoniEx2 Aug 12 '15

Add a wrapper for all of them that unwraps the table.

0

u/[deleted] Aug 12 '15

[deleted]

1

u/SoniEx2 Aug 12 '15

I'm just providing you one possible solution.

But please be aware people won't like you for using it.

7

u/dmpk2k Aug 11 '15

I used not to care, but then I tried to use Lua with graphics (specifically, Love2D). I don't recall the details, but 1- instead of 0-based indexing became a frequent source of bugs for me.

0

u/seanjensengrey Aug 12 '15

Love2D uses a mixture of 0 and 1 based indexing FTL.

3

u/matthieum Aug 11 '15

It may not be by itself, it's just that so much language use 0-based indexing that the switch is jarring (which causes bugs).

-10

u/SoniEx2 Aug 11 '15

Then don't use the other languages? That would solve it, no?

3

u/TinynDP Aug 11 '15

Its not the devil, but it makes for constant mistakes.

-6

u/goo_coo Aug 11 '15 edited Aug 11 '15

Mozilla should stay the fuck away from it, they're a bunch of incompetent idiots and their js engine's code is such dog poop to look at, friggin amateurs; it versus Webkit is like a sewer versus gourmet food. Rust code too is utter shite. Mike Pall and LuaJIT had high standards for code elegance and cleanliness.

CloudFlare on the other hand, yup, those guys are good. Thankfully, Mike has said they're taking over.

I'm happy to announce that CloudFlare has offered to take over stewardship for the LuaJIT project. This will certainly aid in making it a smooth transition.

CloudFlare has a vested interest in the future of LuaJIT: they're one of the biggest users of LuaJIT and they've sponsored valuable LuaJIT features in the past. I fully trust CloudFlare to fulfill this stewardship while preserving the goals and the spirit of LuaJIT.

-3

u/gvargh Aug 11 '15

Um, Mozilla (read: JavaScript) is the only reason why dynamic language JITs even exist.

Fortunately, JS isn't the one dying, here ;)

4

u/nat1192 Aug 11 '15

Um, Mozilla (read: JavaScript) is the only reason why dynamic language JITs even exist.

[citation needed]

-6

u/goo_coo Aug 11 '15 edited Aug 11 '15

Um, Mozilla (read: JavaScript) is the only reason why dynamic language JITs even exist.

WTF is this bullshit?!?!? Have you heard of Strontalk?!?! Have you heard of Self??!

JavaScript is Brendan Eich. Mozilla made him leave. Just like the Firefox guys left and went to Apple to write Webkit. Mozilla is a derp-a-herp SJW entryists' usurping and profiting off of other people's work.

24

u/Sean1708 Aug 11 '15

Holy shit, I didn't realise LuaJIT was the effort of a single person. That's fucking impressive!

17

u/orthoxerox Aug 11 '15

Well, it's not 100% Mike's creation, but he's as important as Dr. Richard Hipp is for SQLite.

0

u/[deleted] Aug 11 '15

[deleted]

2

u/orthoxerox Aug 11 '15

I should buy new glasses, I've always thought that was a "Dr.".

3

u/goo_coo Aug 11 '15

Well, he is a Dr after all.

1

u/holgerschurig Aug 12 '15

Dr. D. Richard Hipp then :-)

8

u/matthieum Aug 11 '15

LuaJIT is one of the most impressive pieces of technology I've ever seen. In an very small code base, you have a JIT for a Dynamic Language with Garbage Collection for a multiple of CPUs which nonetheless manages to deliver very good performance.

And the best about it? The guy is great: [just read an article he wrote], or well, just look at the tone of the e-mail. We're so used to rage-quits and all making the front pages that it's refreshing to see such a professional behavior.

9

u/martincmartin Aug 11 '15

Does anybody know what's next for Mike Pall, the main author of LuaJIT?

-63

u/[deleted] Aug 11 '15

CRICKETS

16

u/sswitch Aug 11 '15

Why be a dick?

10

u/[deleted] Aug 11 '15

[removed] — view removed comment

10

u/lluad Aug 11 '15

I've a feeling that without a dictator to make sensible decisions about what to implement and what not to LuaJIT is probably dead within 12 months. It has a lot of users, but I'm not sure how much it has in the way of community.

8

u/sisyphus Aug 11 '15

It doesn't need a community, it just needs a few sponsors. Cloudflare alone probably depends on it enough at this point to keep it alive and agentzh et. al are not lightweights. If you look in that thread there are other badass motherfuckers interested (including the distel/slime/snabb switch guy, and a V8/Dart guy and probably some others I don't recognize, but some of those names are eastern european so you know, odds are good).

2

u/LeifCarrotson Aug 11 '15

It may not be actively developed in 12 months, but that doesn't make it dead.

If it doesn't get the 5.3 changes merged into it, it's still a fantastic tool. I suspect that the amount of work required to get it to continue to be compilable by the latest compilers will be minimal. It doesn't have libraries that will need updates to keep working; it's a functioning tool and can stay alive as long as there's a sponsor who can keep the download page up.

4

u/[deleted] Aug 11 '15

[removed] — view removed comment

3

u/lluad Aug 11 '15

Sure. It's a pretty good embedded language with a decent C API. And the JIT performance is - in some situations - quite impressive. For what I do it's much, much better than vanilla Lua, for the native binding amongst other things. But the core is very complex, and not many people (>1) seem to be intimately familiar with it.

3

u/willvarfar Aug 11 '15

Pysco was also a great thing, also a JIT for an interpreted language, and it died.

A long while later and pypy is still not quite fully replacing cpython. Its a shame.

2

u/wolf550e Aug 11 '15

Psyco?

1

u/wot-teh-phuck Aug 11 '15

1

u/wolf550e Aug 11 '15

Thanks, I've used it a long time ago. I commented to confirm that Will Edwards meant it and not something else (he made a typo).

1

u/willvarfar Aug 11 '15

sorry yeah I just misspelt because I thought all python projects started with py .. :)

2

u/seanjensengrey Aug 12 '15

Replacing CPython is not really something that PyPy has control over or even wants. Armin Rigo the creator of Psyco, is a lead dev on PyPy.

2

u/willvarfar Aug 12 '15

Yes. When Armin decided to kill psyco, he left everyone who was actually using it stuck with cpython 2.6 for absolutely ages. Now pypy is kind of a replacement, but its still very much a work in progress and its not there yet.

The parallel is the idea that luajit may just be killed by its lead dev.

2

u/seanjensengrey Aug 16 '15

Maciej Fijalkowski has the jitpy project that embeds PyPy inside of CPython using CFFI. It doesn't handle all datatypes and there is marshalling overhead, but it looks like a good interim solution for easy speed.

1

u/sisyphus Aug 11 '15

There are some very interesting luajit projects but it does feel more like a fork all the time.

1

u/MoonlightSandwich Aug 11 '15

Minetest also uses LuaJIT by default. They mention that for their purposes it's about twice as fast as normal Lua.

2

u/derpderp3200 Aug 11 '15

Twice? The average performance improvement for most code is between a 4x and 20x speedup, and Lua itself isn't even that slow. LuaJIT is one of the fastest and lightest interpreters for any language around.

0

u/SoniEx2 Aug 11 '15

Lua/C API.

If they used FFI it'd be over 9000x faster I think.

1

u/derpderp3200 Aug 11 '15

It is you :-o (I'm asmageddon on irc)

3

u/InvernessMoon Aug 11 '15

I want to know why the developer didn't like 5.3.

7

u/jpfed Aug 11 '15

Afaik, NaN tagging won't work with lua 5.3's new integer type.

4

u/inmatarian Aug 11 '15

Between 5.1 and 5.2 there was a major breaking change to the API. Mike Pall choose to instead backport the features he could rather than tackle migrating all of his users to a new codebase.

3

u/orthoxerox Aug 11 '15

Because his work's been sponsored by companies. Companies that had lots of 5.1 code and weren't interested in 5.2 features. Simple enhancements were ported to LuaJIT, but things like _ENV weren't.

2

u/InvernessMoon Aug 11 '15

This doesn't surprise me. If companies have their way Lua would remain in stasis forever so they don't have to put in the effort to move forward.

3

u/confused_teabagger Aug 11 '15

Mike Pall is a fucking monster! I suspect you have trouble finding people of his caliber to volunteer.

1

u/A_t48 Aug 11 '15

It's very...complex code.

1

u/seanjensengrey Aug 12 '15

I think a bigger win (and possibly much harder) would be in porting it to 64 bits.