Minetest logo

IRC log for #minetest-dev, 2015-09-11

| Channels | #minetest-dev index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
01:46 twoelk joined #minetest-dev
02:11 Zeitgeist_ joined #minetest-dev
02:26 domtron joined #minetest-dev
02:58 domtron joined #minetest-dev
05:06 eye_mine joined #minetest-dev
05:35 leat2 joined #minetest-dev
05:38 T4im joined #minetest-dev
05:55 Hunterz joined #minetest-dev
06:17 Miner_48er joined #minetest-dev
06:17 nrzkt joined #minetest-dev
06:28 leat2 joined #minetest-dev
06:38 leat2 joined #minetest-dev
06:44 red1 joined #minetest-dev
06:45 Calinou joined #minetest-dev
07:18 red1 joined #minetest-dev
07:19 leat2 joined #minetest-dev
08:06 Yepoleb joined #minetest-dev
08:13 twoelk joined #minetest-dev
08:16 kilbith joined #minetest-dev
08:24 est31 joined #minetest-dev
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:28 julienrat joined #minetest-dev
08:29 julienrat left #minetest-dev
08:44 nrzkt ~tell est31: you shall not pass
08:44 ShadowBot nrzkt: O.K.
08:45 Darcidride joined #minetest-dev
08:53 H-H-H joined #minetest-dev
09:09 kilbith joined #minetest-dev
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 <nick> <msg>
09:20 nrzkt oh there is a trick :p
09:40 younishd joined #minetest-dev
09:58 twoelk left #minetest-dev
10:06 DFeniks joined #minetest-dev
10:20 leat2 joined #minetest-dev
10:24 Amaz joined #minetest-dev
10:43 Ardonel joined #minetest-dev
11:30 proller joined #minetest-dev
11:31 julienrat joined #minetest-dev
11:40 Darcidride joined #minetest-dev
11:41 leat2 joined #minetest-dev
12:04 H-H-H joined #minetest-dev
12:11 proller joined #minetest-dev
12:48 leat2 joined #minetest-dev
12:51 julienrat1 joined #minetest-dev
13:02 zupoman joined #minetest-dev
13:08 Megaf_ joined #minetest-dev
13:21 johnnyjoy joined #minetest-dev
13:28 Darcidride joined #minetest-dev
13:41 leat2 joined #minetest-dev
13:44 eye_mine left #minetest-dev
14:03 lisacvuk_ joined #minetest-dev
14:03 hmmmm joined #minetest-dev
14:22 twoelk joined #minetest-dev
14:53 lisacvuk_ joined #minetest-dev
14:56 proller joined #minetest-dev
15:01 kilbith joined #minetest-dev
15:03 Hunterz joined #minetest-dev
15:13 CraigyDavi joined #minetest-dev
15:35 everamzah joined #minetest-dev
15:38 nrzkt joined #minetest-dev
15:47 red1 joined #minetest-dev
15:50 Niebieski joined #minetest-dev
16:48 Krock joined #minetest-dev
16:52 rubenwardy joined #minetest-dev
17:18 MinetestForFun joined #minetest-dev
17:26 OldCoder joined #minetest-dev
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
17:57 kaeza joined #minetest-dev
18:04 Player_2 joined #minetest-dev
18:12 Calinou joined #minetest-dev
18:14 Gael-de-Sailly joined #minetest-dev
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."
18:29 proller joined #minetest-dev
18:48 proller joined #minetest-dev
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:31 rickmcfarley joined #minetest-dev
19:33 rubenwardy https://github.com/minetest/minetest_game/blob/master/game_api.txt
19:35 red1 ok thanks
19:39 red1 joined #minetest-dev
20:01 domtron joined #minetest-dev
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:24 red1 joined #minetest-dev
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
20:31 domtron joined #minetest-dev
20:33 zat joined #minetest-dev
20:41 domtron_ joined #minetest-dev
20:48 rubenwardy joined #minetest-dev
20:53 casimir joined #minetest-dev
20:57 zat joined #minetest-dev
21:19 MinetestForFun joined #minetest-dev
21:22 lisacvuk joined #minetest-dev
21:42 younishd joined #minetest-dev
21:56 kilbith joined #minetest-dev
22:31 domtron_ joined #minetest-dev
22:37 red1 joined #minetest-dev
22:51 blert2112_ joined #minetest-dev
22:58 domtron joined #minetest-dev
23:01 werwerwer joined #minetest-dev
23:05 rom1504 joined #minetest-dev
23:17 domtron joined #minetest-dev
23:19 cg joined #minetest-dev
23:19 cg https://github.com/minetest/minetest_game/pulls
23:20 cg and hello everyone
23:20 blert2112 joined #minetest-dev
23:21 cg https://github.com/minetest/minetest_game/pull/672
23:25 twoelk joined #minetest-dev
23:30 domtron joined #minetest-dev
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.
23:59 rickmcfarley joined #minetest-dev

| Channels | #minetest-dev index | Today | | Google Search | Plaintext