Time Nick Message 08:25 est31 ~tell hmmmm this might interest you: https://forum.minetest.net/viewtopic.php?p=190703#p190703 08:25 ShadowBot est31: O.K. 08:25 est31 ShadowBot, you wont tell, I know it 08:25 est31 at least it never reaches me when I see in the log people saying ~tell est31 08:25 est31 either way, do your best ShadowBot, will you? 08:26 est31 thanks! 08:44 nrzkt ~tell est31: you shall not pass 08:44 ShadowBot nrzkt: O.K. 09:10 kilbith nrzkt: est31 don't receive your delayed messages because you put ":" after his nick -> doesn't work 09:11 kilbith the right way is : ~tell 09:20 nrzkt oh there is a trick :p 17:26 rubenwardy #3168 and #3168 are duplicates and can be closed 17:26 ShadowBot https://github.com/minetest/minetest/issues/3168 -- Mod translation with a simple .mo file, with different languages for clients 17:27 ShadowBot https://github.com/minetest/minetest/issues/3168 -- Mod translation with a simple .mo file, with different languages for clients 18:14 rubenwardy celeron55: does inchra-stats.minetest.net redirect to inchra.net via CNAME? 18:17 T4im dig inchra-stats.minetest.net: "inchra-stats.minetest.net. 600 IN CNAME stats.inchra.net." 19:29 red1 for game#667 were should I put the text file describing the API? 19:29 ShadowBot https://github.com/minetest/minetest_game/issues/667 -- Add tnt API. by red-001 19:33 rubenwardy https://github.com/minetest/minetest_game/blob/master/game_api.txt 19:35 red1 ok thanks 20:03 red1 does it take less time for lua to call a local function then a global? 20:07 VanessaE in theory locals are faster than globals for just about anything, but if it's just a single call that you do every so often, the difference is too small to notice 20:08 T4im rule of thumb: if you use it twice, put it into a local 20:08 VanessaE (versus say thousands of such calls over a short period of time - you might notice it then, depending on what the call does to begin with 20:08 VanessaE yep, that's about right 20:09 VanessaE the more important thing is you don't want to pollute the global sapce 20:09 VanessaE space* 20:09 rubenwardy > twice 20:12 red1 Does "local myfunction = global_function" make call it faster or slower? 20:12 VanessaE slower. 20:12 VanessaE you're forcing the interpreter to take an extra step to get to the actual function 20:12 T4im calling myfunction afterwards will be faster, since the local variable is accessable by index, but if you're using it only once afterwards, then what VanessaE just said 20:13 VanessaE now, if you *copy* the function entirely, then it'll probably be faster 20:13 red1 no I'm using it many times 20:13 T4im you see it often in lua that the document starts with something like: local minetest = minetest 20:13 rubenwardy Do some bench marks and find out 20:13 rubenwardy Shall I? 20:14 red1 Yes please 20:14 T4im make sure not to use jit, or the results will be unusable 20:14 T4im jit will simply optimize each time you run it 20:15 VanessaE the irony of t4im's statement about jit is that you generally never want to go *without* it ;) 20:15 T4im indeed :D 20:15 VanessaE (except for benchmarks of this type) 20:15 red1 game#667 20:15 ShadowBot https://github.com/minetest/minetest_game/issues/667 -- Add tnt API. by red-001 20:17 rubenwardy For 100,000,000 incrementations, with local: 1.09 seconds. With global: 5.10 seconds. 20:18 rubenwardy local test = 0; for i = 1, 100000000 do test = test + 1 end 20:18 rubenwardy with local not included for the global test 20:18 rubenwardy so it's five times slower 20:19 VanessaE sounds about right 20:19 rubenwardy however, the time to look up may be neglible compared to the time to switch to the function 20:19 T4im same factor as "Steve" http://lua-users.org/wiki/OptimisingUsingLocalVariables 20:20 rubenwardy this is with plain lua 20:21 rubenwardy for function calling 20,000,000 times, 0.81s for local, 1.21 for global 20:21 rubenwardy so ~math calc 1.21/0.81 20:21 rubenwardy ~math calc 1.21/0.81 20:21 ShadowBot rubenwardy: 1.493827160493827 20:21 rubenwardy 1.5 times slower 20:26 exio4 the global environment is dynamic and the local environment can be deduced statically 20:26 exio4 nothing surprising there 20:27 rubenwardy It's a table look up 20:27 rubenwardy _G 20:27 exio4 yes 20:28 rubenwardy game#671 wrong project, needs close 20:28 ShadowBot https://github.com/minetest/minetest_game/issues/671 -- Writing numbers bug 23:19 cg https://github.com/minetest/minetest_game/pulls 23:20 cg and hello everyone 23:21 cg https://github.com/minetest/minetest_game/pull/672 23:35 VanessaE game 672 looks nice; engine needs to have some way to not hide the particles that are under the water when looking from above. 23:38 blert2112 building latest I get "‘FATAL_ERROR_IF’ was not declared in this scope 23:38 blert2112 ". Any clues for me please? 23:38 VanessaE no idea, blert2112. pastebin the full build log 23:39 VanessaE make a new issue on minetest github repo if you can't solve it 23:51 blert2112 I will continue banging on it for a while and come back if I can't solve it.