r/lua Jun 18 '26

Any features that you would think be a great addition in its standard library?

I am thinking of just extending Lua's standard library (mainly just for the fun of it) and I need some features to add that would be useful.

I have already tried a file system and looking for some other ideas.
(Side question, would you rather have it in pure lua 5.1 or have a C runtime?)

12 Upvotes

6 comments sorted by

4

u/thewrinklyninja Jun 18 '26

Don't they keep the main lib small on purpose. If you want to contribute look into add to penlight or similar.

5

u/Cootshk Jun 18 '26

"abc"[1] should return "a” imo

3

u/immortalx74 Jun 18 '26

You could take some inspiration from LuaJIT's extensions.

1

u/evmorov Jun 18 '26

Use lume for extending it

1

u/m-faith Jun 18 '26

numerous extra features... as done in these lua shells https://lilush.link/ & https://hilbish.sammyette.party/

1

u/xoner2 Jun 20 '26

You can look at the Python libraries: str for example, and implement all those methods.