Time Nick Message 01:26 norkle heya swift110-phone__ 02:26 MinetestBot 02[git] 04paramat -> 03minetest/minetest_game: Creative: Remove unnecessary dependency on 'default' 139fe877e https://git.io/fjMzG (152019-07-21T02:24:47Z) 03:34 pmp-p hi, what about "RPC" status in https://dev.minetest.net/Client_scripting_plans ? 03:36 pmp-p hmm wrong chan sorry 08:58 tacotexmex Hello Wuzzy 08:58 Wuzzy O HAI 14:22 Micasik22 hello 14:24 Krock hi 14:27 nepugia Good day 15:38 gpcf hi 15:38 gpcf I got a problem with lua 15:38 Krock hi 15:39 gpcf my advtrains database grew to big to handle, is there any way to increase the size of the constants table above 2^16 or 2^18? 15:39 Krock oof 15:39 Krock how about splitting the data? 15:39 Krock that must be an insanely bug table 15:39 Krock *big 15:40 gpcf then good luck in splitting it 15:40 gpcf it's just 2MB 15:40 Krock Lua or LuaJIT? try the other kind 15:40 Krock else you'd need to change its source code to raise the limit 15:40 gpcf LuaJIT 15:40 gpcf with GC64 15:40 Krock 2^18 is a very odd number, whereas 2^16 would rather be the limit 15:41 Krock so windows 15:41 gpcf 2^18 is the limit in lua 15:41 gpcf luajit has 16 bit 15:41 gpcf I'm on linux 15:41 Krock oh, I thought gc64 didn't work on linux 15:41 gpcf if I cannot raise the limit I must say lua is unusable for any complex project 15:41 Krock *luajit 15:42 gpcf lua < 5.2 15:42 Krock 2¹⁸ in Lua means that it can be extended 15:42 gpcf it seems to only have been fixed in 5.2 15:42 Krock whereas 2^16 is apparently an integer limitation 15:43 Krock I'm not familiar with these constants. Does any key and value in a table increase that count? 15:44 gpcf it seems so 15:44 gpcf http://lua.2524044.n2.nabble.com/constant-table-overflow-td6338093.html 15:45 gpcf that script creates a table that won't get loaded 15:45 gpcf I'm feeling advtrains won't run again on my server 15:46 gpcf unless I do rewrite it in C 15:49 Krock went into reading minilua.c from LuaJIT but that formatting is awful 15:50 Krock it's built from the source code, but yet no other occurence for that error 15:50 gpcf hmm 15:51 gpcf does minetest work with lua 5.2? 15:51 gpcf if yes, does it perform? 15:52 Krock no, it won't compile 15:52 gpcf meh 15:52 gpcf then I guess advtrains will have to be rewritten 15:53 gpcf because there is no way around this issue 15:53 gpcf splitting the table will run into the same issue, only delayed 15:54 Krock load&unload, if that's even possible 15:55 gpcf how? 15:55 gpcf what's that? 15:55 nepugia luajit doesn't target lua 5.2 15:56 gpcf f*cking s*it 15:56 gpcf I guess the trains won't run again 15:57 Nezrok !cmd kick gpcf Mind your tongue 15:57 Nezrok Oh 15:57 Krock wrong channel 15:57 Nezrok Wrong room 15:57 Nezrok :p 15:57 Krock these ninjas 15:57 Nezrok Hahaha 15:58 Krock oh now I get why it's not possible to load it incrementally. all trains are forceloaded 15:58 gpcf yeah, they all run 15:59 gpcf but, imho, a language that only supports 2¹⁶ is unusable for any serious projects 16:00 nepugia how so? ;) 16:01 gpcf very very limited 16:01 nepugia If you know the restrictions your language has you can build nice stuff regardless 16:01 nepugia luajit seams to be stalled, or very slow anyhow 16:02 nepugia last release was in 2017 16:07 gpcf does anyone know about lua 5.2? 16:07 gpcf are there efforts to port minetest to 5.2? 16:08 nepugia I doubt that minetest will support lua 5.2 unless luajit does so first, or there is a luajit fork that supports it 16:09 gpcf I just talked with orwell 16:10 gpcf I guess we will port advtrains to C 16:10 * gpcf would like to swear, but doesn't find swear words strong enough to express his emotions 16:11 nepugia develop on luajit? :) 16:15 Krock either luajit improves (probably never) or lua improves in terms of speed (future visions) 16:16 Krock but either must happen before we either drop luajit support or bump the Lua version to 5.2+ 16:19 gpcf I think we'll write advtrainsd 16:19 gpcf a separate daemon handling all train movement 16:21 gpcf would also remove performance bottlenecks, leaving precious CPU time for other mods 16:34 gpcf has json_encode got the same problem? 17:44 gpcf hi 17:44 gpcf it seems that the advtrains issue might be solvable 17:44 Krock json_encode also uses lua tables and values, so I don't see how it changes anything 17:45 gpcf oh 17:45 gpcf hmm 17:45 Krock except that it does an extra lap through C->C++ 17:45 gpcf wait 17:47 gpcf If I understand it correctly, the problem with serialize is that it creates a huge lua function 17:47 gpcf right? 17:49 Krock not sure if that's a problem but yes that's what happens 17:49 sfan5 gpcf: you can load native modules from lua, so you could move the code working with the excess data to C/C++ 17:50 Krock ^ but would still need to call minetest functions through Lua 17:50 Krock or is there a linker trick I'm not aware of? 17:50 sfan5 well you get a lua handle and can manually call the api from your C/C++ code 17:51 sfan5 you might be able to find the original routes using dlsym but that would be annoying and error-prone 17:51 sfan5 routines 17:51 sfan5 * 17:51 Krock yes, but you'll need to pass all values to lua first, so that they can be read out by Minetest again (no lua code involved, though) 17:52 gpcf sfan5: is there a tutorial for how to use C from Lua? 17:52 gpcf or any mod that uses it, so I can look into it 17:52 sfan5 i'm sure there are plenty on google 17:53 Krock https://github.com/SmallJoker/NyisBot/blob/master/plugins/PLUGIN_API.txt#L138 17:53 sfan5 ah, even better 17:53 Krock very basic example 17:54 Krock afterwards you can compile that and move into the lua path in minetest to require() it 17:54 Krock requires insecure mod env, though. 17:54 sfan5 or adjust the lua path to load it directly from your mod directory 17:54 gpcf oh 17:54 gpcf so you can load compiled modules from the mod directory? 17:54 sfan5 yes 17:55 gpcf with mod security? 17:55 Krock with a mod security exception for you mod 17:55 gpcf yeah, right 17:55 Krock *for your 19:14 Copenhagen_Bram will there ever be pirate speak and lolcat translations for minetest? 19:17 Krock kingon first 19:17 Krock +l 19:19 Copenhagen_Bram lol 19:19 Copenhagen_Bram what about lojban? 19:20 Copenhagen_Bram and pretty soon there's gonna be a Krill language from The Orville 20:17 Soo_Slow hello there. Does anybody know if its possible to mod the textures of inventory and crafting menu? Like - its super ugly in vanilla, but thus far I've only seen people altering active equipment tab (the one, accessible via number keys). I wonder why 20:18 sfan5 of course 20:24 Copenhagen_Bram Soo_Slow, make an LCARS GUI for minetest 20:36 Copenhagen_Bram lol 22:06 puzzlecube Sorry if I am butting in but has anyone compiled Minetest on NetBSD? Seems cmake doesn't know pkg* directories by default and isn't finding anything installed by them. 22:56 gorilla CopenBra[m]: Interesting idea. It would be a good April 1st gag. 22:58 Copenhagen_Bram Really? Thank you 23:01 DoyleChris good day everybody 23:02 Copenhagen_Bram good day DoyleChris oy 23:02 DoyleChris question about Linux 23:03 DoyleChris is there a debian version that is a stand alone with the server 23:04 DoyleChris i have Mint Linux running and i would like to get a Linux server running 23:04 DoyleChris but i would like to do it from the command line 23:30 DoyleChris well im trying to compile it 23:47 DoyleChris no help the one line dosent work