openresty / openresty/luajit2

luajit vs luajit2

Open
#224 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.4k
Forks
252
Avg merge
7d 11h
Merged PRs (30d)
3

Description

Hello!
I'm a nginx maintainer in openSUSE and I recently had a need to build nginx-lua-module for redis access and I just now found out about luajit and luajit2 and I want to figure out whether I should replace luajit with luajit2, make them alternatives or use luajit2 only for nginx-module-lua.

What is the difference in them and what are the advantages and disadvantages of each over the other.
OpenResty claims luagit2 works much better with mginx-module-lua.
That's all I understand so far.
Why can't OpenResty patches just be added to upstream?
Is it possible to replace luajit with luajit2 in the operating system and what consequences will this cause, for example for gegl used in gimp?
Or does luajit2 work better only with nginx-module-lua and luajit is better for everything else?
https://github.com/LuaJIT/LuaJIT/issues/1191

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked LuaJIT issue and the differences between luajit and luajit2 described in this thread. A useful result would document their trade-offs, OpenResty patch status, and compatibility consequences for nginx-module-lua and other users such as GEGL in GIMP.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
compilers
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.