Time |
Nick |
Message |
00:01 |
|
Oblomov joined #minetest |
00:23 |
|
thomzane joined #minetest |
00:29 |
|
JCM joined #minetest |
00:43 |
|
Noisytoot joined #minetest |
00:49 |
|
nopjmp_ joined #minetest |
00:58 |
|
Noisytoot joined #minetest |
01:03 |
|
JCM joined #minetest |
01:33 |
|
thomzane joined #minetest |
01:37 |
|
JCM joined #minetest |
02:12 |
|
JCM joined #minetest |
02:47 |
|
JCM joined #minetest |
03:21 |
|
JCM joined #minetest |
03:56 |
|
JCM joined #minetest |
04:00 |
|
MTDiscord joined #minetest |
04:29 |
|
JCM joined #minetest |
04:35 |
|
gregon joined #minetest |
04:36 |
|
Noisytoot joined #minetest |
05:00 |
|
tarsovbak joined #minetest |
05:02 |
|
gregon joined #minetest |
05:04 |
|
JCM joined #minetest |
05:05 |
|
sparky4 joined #minetest |
05:20 |
|
tarsovbak joined #minetest |
05:40 |
|
JCM joined #minetest |
05:47 |
|
TomTom joined #minetest |
05:50 |
|
gregon joined #minetest |
05:57 |
|
tarsovbak joined #minetest |
06:14 |
|
JCM joined #minetest |
06:15 |
|
gregon joined #minetest |
06:16 |
|
tarsovbak joined #minetest |
06:42 |
|
lemonzest joined #minetest |
06:45 |
|
Hanicef joined #minetest |
06:48 |
|
JCM joined #minetest |
06:58 |
|
tarsovbak joined #minetest |
06:59 |
|
gregon joined #minetest |
07:22 |
|
JCM joined #minetest |
07:23 |
|
zleap joined #minetest |
07:23 |
|
zleap joined #minetest |
07:55 |
|
JCM joined #minetest |
08:31 |
|
JCM joined #minetest |
08:36 |
|
gregon joined #minetest |
08:42 |
|
gregon joined #minetest |
08:42 |
|
gregon joined #minetest |
08:44 |
|
gregon joined #minetest |
08:47 |
|
Warr1024 joined #minetest |
09:05 |
|
JCM joined #minetest |
09:18 |
|
gregon joined #minetest |
09:20 |
|
tarsovbak joined #minetest |
09:40 |
|
JCM joined #minetest |
09:48 |
|
jaca122 joined #minetest |
09:53 |
|
ireallyhateirc joined #minetest |
10:11 |
|
cation joined #minetest |
10:13 |
|
JCM joined #minetest |
10:15 |
|
gregon joined #minetest |
10:16 |
|
tarsovbak joined #minetest |
10:46 |
|
ireallyhateirc joined #minetest |
10:47 |
|
gregon joined #minetest |
10:48 |
|
JCM joined #minetest |
11:25 |
|
JCM joined #minetest |
11:28 |
|
gregon joined #minetest |
11:37 |
|
tarsovbak joined #minetest |
11:46 |
|
JCM joined #minetest |
11:52 |
|
JCM joined #minetest |
11:58 |
|
JCM joined #minetest |
12:04 |
|
JCM joined #minetest |
12:12 |
|
erstazi joined #minetest |
12:19 |
|
gregon joined #minetest |
12:19 |
|
JCM joined #minetest |
12:23 |
|
tarsovbak joined #minetest |
12:26 |
|
JCM joined #minetest |
12:29 |
|
JCM joined #minetest |
12:36 |
|
JCM joined #minetest |
12:46 |
|
JCM joined #minetest |
12:48 |
|
peterz joined #minetest |
12:56 |
|
peterz joined #minetest |
13:04 |
|
JCM joined #minetest |
13:13 |
|
jaca122 joined #minetest |
13:42 |
|
JCM joined #minetest |
14:13 |
|
JCM joined #minetest |
14:46 |
|
liceDibrarian joined #minetest |
14:48 |
|
JCM joined #minetest |
14:54 |
|
Pexin joined #minetest |
15:20 |
|
JCM joined #minetest |
15:21 |
|
SliverFlowCipher joined #minetest |
15:32 |
|
behalebabo joined #minetest |
15:33 |
|
Eragon joined #minetest |
15:36 |
|
peterz joined #minetest |
15:40 |
|
beanbrain joined #minetest |
15:43 |
|
peterz joined #minetest |
15:48 |
|
gregon joined #minetest |
15:55 |
|
JCM joined #minetest |
15:57 |
|
fluxionary joined #minetest |
15:59 |
|
tarsovbak joined #minetest |
16:16 |
|
gregon joined #minetest |
16:30 |
|
JCM joined #minetest |
16:39 |
|
gregon joined #minetest |
16:40 |
|
tarsovbak joined #minetest |
17:03 |
|
Talkless joined #minetest |
17:04 |
|
JCM joined #minetest |
17:21 |
|
gregon joined #minetest |
17:21 |
|
tarsovbak joined #minetest |
17:34 |
|
silverwolf73828 joined #minetest |
17:40 |
|
tarsovbak joined #minetest |
17:40 |
|
JCM joined #minetest |
17:42 |
|
gregon joined #minetest |
17:46 |
|
cheek_pain joined #minetest |
17:51 |
|
tarsovbak joined #minetest |
18:04 |
|
peterz joined #minetest |
18:13 |
|
JCM joined #minetest |
18:20 |
|
jaca122 joined #minetest |
18:47 |
|
JCM joined #minetest |
18:48 |
|
gregon joined #minetest |
18:52 |
|
gregon1 joined #minetest |
19:06 |
|
tarsovbak joined #minetest |
19:09 |
|
gregon joined #minetest |
19:22 |
|
JCM joined #minetest |
19:27 |
|
ireallyhateirc joined #minetest |
19:29 |
|
SFENCE joined #minetest |
19:34 |
|
Guest32 joined #minetest |
19:34 |
Guest32 |
?muteme 1m |
19:56 |
|
JCM joined #minetest |
20:30 |
|
JCM joined #minetest |
21:04 |
|
HumanG33k joined #minetest |
21:07 |
|
JCM joined #minetest |
21:15 |
|
beanbrain joined #minetest |
21:15 |
|
beanbrain joined #minetest |
21:28 |
|
Verticen joined #minetest |
21:41 |
|
JCM joined #minetest |
21:48 |
gera |
why do modders write things like local minetest = minetest |
21:48 |
gera |
to not accidentally redefine minetest? |
21:50 |
ireallyhateirc |
making a local copy of a global object apparently makes it faster |
21:50 |
ireallyhateirc |
also probably what you've just said |
21:57 |
MTDiscord |
<luatic> i think it's just the former reason. or, sometimes, they do it out of necessity, because they are setting an environment via setfenv (a lesser known 5.1 feature) later, and need to "import" the globals they want to use. |
21:58 |
ireallyhateirc |
by former you mean my reply, or gera's question? |
21:58 |
ireallyhateirc |
https://dev.minetest.net/Lua_Optimization_Tips#Prefer_local_variables |
22:05 |
MTDiscord |
<luatic> Your reply. The main motivation behind this is usually optimization. |
22:18 |
|
JCM joined #minetest |
22:18 |
gera |
yeah thanks, ireallyhateirc |
22:18 |
gera |
i found justification in gems book, page 17 |
22:34 |
|
panwolfram joined #minetest |
22:35 |
MTDiscord |
<warr1024> A third reason for making a local copy of a var is for linting purposes. I used to only have syntax highlighting to work with, and didn't have a good way to put a linter into my workflow, so having all accesses of globals at the top made it easy to spot a stray one with syntax highlighting alone. |
22:36 |
MTDiscord |
<warr1024> As an optimization it usually means nothing and rarely means something, but it usually costs me nothing to run the localizer tool on my code tree, so the cost is basically zero, so I don't need a lot of chance of gain to justify it. |
22:52 |
|
JCM joined #minetest |
23:05 |
|
Eragon joined #minetest |
23:20 |
|
beanbrain joined #minetest |
23:20 |
|
beanbrain joined #minetest |
23:24 |
|
JCM joined #minetest |
23:27 |
|
Noisytoot joined #minetest |
23:50 |
|
JCM joined #minetest |
23:50 |
|
cryne joined #minetest |
23:59 |
|
JCM joined #minetest |