Time |
Nick |
Message |
00:31 |
|
m42uko joined #luanti |
00:40 |
|
Kimapr joined #luanti |
00:46 |
|
mmuller_ joined #luanti |
00:46 |
|
kamdard_ joined #luanti |
00:46 |
|
cow321 joined #luanti |
00:47 |
|
Kimapr_ joined #luanti |
00:48 |
|
tsadok joined #luanti |
00:54 |
|
user2_ joined #luanti |
00:55 |
|
user2_ joined #luanti |
01:14 |
|
Kimapr_ joined #luanti |
01:20 |
|
SwissalpS joined #luanti |
02:10 |
|
kimapr__ joined #luanti |
02:16 |
|
user2_ joined #luanti |
02:40 |
|
Haven0320 joined #luanti |
02:43 |
|
aliasstilltaken joined #luanti |
02:54 |
|
SwissalpS joined #luanti |
02:59 |
|
InFerNo__ joined #luanti |
03:47 |
|
chloetax joined #luanti |
03:57 |
|
Haven0320 joined #luanti |
04:00 |
|
MTDiscord joined #luanti |
04:01 |
|
Sompi joined #luanti |
04:11 |
|
sys4 joined #luanti |
04:50 |
|
MTDiscord1 joined #luanti |
05:39 |
|
MTDiscord2 joined #luanti |
05:39 |
|
meldrian_ left #luanti |
05:40 |
|
FeXoR joined #luanti |
05:41 |
|
kamdard__ joined #luanti |
05:43 |
|
m42uko_ joined #luanti |
05:46 |
|
Swissa1pS joined #luanti |
05:50 |
|
mmuller joined #luanti |
05:50 |
|
flux__ joined #luanti |
05:50 |
|
sparky4 joined #luanti |
05:50 |
|
mrcheese joined #luanti |
05:50 |
|
calculon_ joined #luanti |
05:56 |
|
flux__ joined #luanti |
05:57 |
|
cow321 joined #luanti |
05:59 |
|
qqe joined #luanti |
06:39 |
user2_ |
i'm currently installing luanti and multicraft to an old phone to compare them side-by-side- i find it sad they profit of 15 years of unpaid development |
07:37 |
sfan5 |
luatic: I was thinking the engine could hardcode blank.png to be a blank texture in the code |
07:37 |
sfan5 |
also prevents someone from trying any funny business by modifying the file |
07:56 |
|
flux__ joined #luanti |
08:12 |
|
identity joined #luanti |
08:46 |
celeron55 |
that hardcoding could easily increase the binary size more than 30 bytes though! |
08:50 |
|
FileX joined #luanti |
08:56 |
|
flux__ joined #luanti |
09:32 |
|
mrkubax10 joined #luanti |
09:45 |
|
FileX joined #luanti |
09:58 |
|
identity` joined #luanti |
10:15 |
|
identity` joined #luanti |
10:40 |
|
FileX joined #luanti |
10:44 |
|
wsor4035 joined #luanti |
10:58 |
|
flux__ joined #luanti |
11:04 |
|
FileX joined #luanti |
11:11 |
[MatrxMT] |
<Blockhead256> lol |
11:11 |
[MatrxMT] |
<Blockhead256> seriously I was surprised it's a real file and not just a marker to the graphics pipeline to ignore the texture |
11:14 |
|
FileX joined #luanti |
11:19 |
|
FileX joined #luanti |
11:22 |
|
FileX joined #luanti |
11:45 |
|
stg-developer joined #luanti |
13:08 |
|
SFENCE joined #luanti |
13:15 |
|
identity joined #luanti |
13:20 |
|
Guest55 joined #luanti |
13:29 |
|
pgimeno_ joined #luanti |
13:30 |
|
identity joined #luanti |
13:31 |
|
SFENCE joined #luanti |
13:34 |
|
pgimeno joined #luanti |
13:43 |
|
luatic1 joined #luanti |
13:43 |
|
BuckarooBanzai5 joined #luanti |
13:43 |
|
serp1 joined #luanti |
13:46 |
|
Fulgen- joined #luanti |
13:46 |
|
Bombo_ joined #luanti |
13:47 |
|
fbievan- joined #luanti |
13:47 |
|
Oblomov joined #luanti |
13:48 |
|
sugarbee1 joined #luanti |
13:50 |
|
turtleman joined #luanti |
13:57 |
|
Menchers joined #luanti |
13:58 |
|
nore joined #luanti |
14:00 |
|
mrcheese joined #luanti |
14:09 |
|
TeXMaster joined #luanti |
14:12 |
|
fbievan joined #luanti |
14:21 |
|
identity joined #luanti |
14:22 |
|
turtleman joined #luanti |
14:22 |
|
mrcheese joined #luanti |
14:29 |
|
luatic3 joined #luanti |
14:30 |
|
BuckarooBanzai8 joined #luanti |
14:30 |
|
mmuller_ joined #luanti |
14:34 |
|
mmuller_ joined #luanti |
14:35 |
|
mmuller_ joined #luanti |
14:36 |
|
nore joined #luanti |
14:37 |
|
fluxionary joined #luanti |
14:38 |
|
mrcheese joined #luanti |
14:38 |
|
turtleman joined #luanti |
14:38 |
|
sparky4 joined #luanti |
14:38 |
|
calculon_ joined #luanti |
14:38 |
|
identity joined #luanti |
15:09 |
|
Oblomov joined #luanti |
15:09 |
|
nore joined #luanti |
15:10 |
|
fbievan joined #luanti |
15:16 |
|
mrcheese joined #luanti |
15:18 |
|
identity joined #luanti |
15:35 |
|
PoochInquisitor joined #luanti |
15:38 |
|
SFENCE joined #luanti |
16:02 |
|
SwissalpS joined #luanti |
16:07 |
|
Bombo joined #luanti |
16:12 |
|
jaca122 joined #luanti |
16:23 |
|
SFENCE joined #luanti |
17:03 |
|
lumidify joined #luanti |
17:06 |
|
SFENCE joined #luanti |
17:09 |
|
mrkubax10 joined #luanti |
17:17 |
|
mrcheese joined #luanti |
17:42 |
|
erle_off_ice joined #luanti |
17:48 |
|
bwarden joined #luanti |
17:50 |
pgimeno |
@birdlover32767 the ambiguous syntax thing happens in Lua when the last line ends with an identifier IIRC. Ending the previous line with a semicolon should solve it. |
17:50 |
erle_off_ice |
javascript moment ;) |
17:51 |
pgimeno |
e.g. a file where a line says: "a = b" and the next line says "(x)()" triggers it |
17:53 |
|
Talkless joined #luanti |
17:54 |
pgimeno |
that's because in Lua, a newline is just whitespace, so a = b (x)(y)() could be parsed either as a=b(x) followed by (y)() or as a=b followed by (x)(y)() |
17:55 |
erle_off_ice |
significant whitespace haters when you inform them other languages than python exist: ☹ |
18:01 |
* user2_ |
<- python programmer- |
18:17 |
|
est31 joined #luanti |
18:30 |
|
SFENCE joined #luanti |
18:36 |
bgstack15 |
use "/me" |
18:36 |
* bgstack15 |
demonstrates how to use it |
18:43 |
|
Haven0320-2 joined #luanti |
18:44 |
[MatrxMT] |
<birdlover32767> i was doing something like { |
18:44 |
[MatrxMT] |
<birdlover32767> ("label[0,1;formspec %s"):format(foo) |
18:44 |
[MatrxMT] |
<birdlover32767> "random", } |
18:47 |
Krock |
birdlover32767: fwiw, make sure that "foo" is formspec escape'd |
18:47 |
|
mmuller joined #luanti |
18:48 |
[MatrxMT] |
<birdlover32767> it is except for cases like numbers or set values (think "image_%s.png") |
18:48 |
[MatrxMT] |
<birdlover32767> translations are also escaped |
19:22 |
|
fluxionary joined #luanti |
19:27 |
|
detas433 joined #luanti |
19:28 |
jonadab |
I tried to learn Python, but the documentation that the community pointed me to at the time, was terrible, and also I kept running into situations where something that ought to be a one-liner wouldn't even fit in one screen of code, which gave me bad Cobol flashbacks. |
19:29 |
jonadab |
This was years ago before Python was as popular as now, so I assume the documentation has improved ad interim. |
19:29 |
jonadab |
But I ended up concluding that learning Python would really be redundant, since I'm already fluent in Perl. |
19:29 |
|
est joined #luanti |
19:31 |
|
kamdard__ joined #luanti |
19:32 |
|
kamdard__ joined #luanti |
19:33 |
jonadab |
lua is neither my favorite, nor my least favorite, of the various functional languages I've worked in. |
19:41 |
|
mrcheese joined #luanti |
19:46 |
|
mrkubax10 joined #luanti |
19:47 |
|
mrkubax10 joined #luanti |
19:48 |
bgstack15 |
"functional language"... as in functional programming? Does Luanti use any of the functional programming within lua? |
19:49 |
[MatrxMT] |
<birdlover32767> i mean functions are first class |
19:57 |
bgstack15 |
Ah, I think we just call that imperative programming. |
20:00 |
luatic |
pgimeno: the necessary criterion i'd give is that the *next* line is a function call, with the function being an expression wrapped in parenthesis, so something like (expr)(...). |
20:03 |
pgimeno |
anything with an expression in parentheses would do as the second line I presume, not necessarily a function call, for example this triggers it as well: a = b \n (x).c = 2 |
20:03 |
luatic |
there are a few different options for what the previous line can be as long as it ends with something that could be taken to be a prefixexp. for example local x = t.k (expr)(...) is in principle ambiguous, as is f() (expr)(...) or f"..." (expr)(...). |
20:03 |
luatic |
pgimeno: fair point, though that is not ambiguous? i think the "ambiguity check" lua implements might just be lazy. |
20:04 |
luatic |
it's more of a "can i conveniently parse this left to right with little lookahead" check i suppose. |
20:04 |
pgimeno |
PUC Lua seems to not care, it's LuaJIT the one complaining FWIW |
20:05 |
pgimeno |
you're right that a = b(x).c = 2 is not valid, therefore it can only split after the b, so it's not actually ambiguous, but a recursive descendent parser is very limited, and that's probably what's being used |
20:05 |
luatic |
yes |
20:06 |
luatic |
though actually i think if you put in some work you could also do this using a recursive descent parser, but some implications e.g. for worst case time complexity might not be nice |
20:07 |
pgimeno |
it might need backtracking perhaps |
20:07 |
luatic |
yes |
20:07 |
luatic |
pgimeno: might be misremembering here because i run into it very rarely, maybe once per 10 kloc, but i think it was specific puc lua versions that complained? |
20:07 |
pgimeno |
yes I seem to remembre that as well |
20:07 |
luatic |
i think newer lua versions and luajit just pretend the newline is a semicolon if they encounter this "ambiguity" |
20:08 |
pgimeno |
oh wait, I was trying with 5.2, my bad |
20:08 |
pgimeno |
yeah, 5.1 complains just the same as LuaJIT |
20:09 |
luatic |
huh, how is your luajit configured? with or without 5.2 compat? |
20:09 |
pgimeno |
with 5.2 compat, but I don't think that influences the parsing |
20:10 |
pgimeno |
but my system's lua runs 5.2 |
20:11 |
luatic |
actually i think i just got it the wrong way around, f() \n (g)() is parsed as f()(g)() by my luajit it seems |
20:11 |
luatic |
but it does not produce a parse error |
20:12 |
pgimeno |
yes, it probably stops considering it a function at the newline |
20:13 |
pgimeno |
oh for me it does error |
20:13 |
luatic |
no no, that seems to be the funny thing, it considers it a single function call |
20:13 |
luatic |
pgimeno: looking at the source, luajit will only produce LJ_ERR_XAMBIG #if !LJ_52 |
20:14 |
luatic |
and that seems to be enabled iff LUAJIT_ENABLE_LUA52COMPAT is defined basically (: |
20:14 |
pgimeno |
ah, with 2.1.1716656478 it doesn't complain indeed |
20:15 |
pgimeno |
my system's default luajit is 2.0.4 |
20:16 |
luatic |
whoa, older than 2.1? |
20:19 |
pgimeno |
(er... don't ask) |
20:39 |
|
Trifton joined #luanti |
20:41 |
|
diceLibrarian joined #luanti |
20:53 |
|
Haven2 joined #luanti |
21:22 |
|
fluxionary joined #luanti |
21:58 |
|
silverwolf73827 joined #luanti |
22:02 |
|
user2_ joined #luanti |
22:03 |
|
kamdard__ joined #luanti |
22:04 |
|
Trifton joined #luanti |
22:04 |
|
Kimapr joined #luanti |
22:05 |
|
Oblomov joined #luanti |
22:05 |
|
SwissalpS joined #luanti |
22:06 |
|
lumidify joined #luanti |
22:12 |
|
Haven0320-2 joined #luanti |
22:13 |
|
Kimapr_ joined #luanti |
22:14 |
|
kamdard__ joined #luanti |
22:17 |
|
lumidify_ joined #luanti |
22:23 |
|
Oblomov joined #luanti |
22:27 |
|
bwarden_ joined #luanti |
22:30 |
|
diceLibrarian joined #luanti |
22:33 |
|
panwolfram joined #luanti |
22:46 |
|
Kimapr_ joined #luanti |
22:46 |
|
user2_ joined #luanti |
22:50 |
|
wsor40352 joined #luanti |
22:50 |
|
SpaceMan1ac joined #luanti |
22:51 |
|
Can0xfBows joined #luanti |
22:52 |
|
qqe_ joined #luanti |
22:52 |
|
dzho joined #luanti |
22:52 |
|
pgimeno joined #luanti |
22:52 |
|
cow321 joined #luanti |
22:53 |
|
nore joined #luanti |
23:03 |
|
khimaros joined #luanti |
23:03 |
|
illwieckz joined #luanti |
23:05 |
|
Eragon joined #luanti |
23:06 |
|
kamdard_ joined #luanti |
23:07 |
|
silverwolf73827_ joined #luanti |
23:09 |
|
Swissa1pS joined #luanti |
23:10 |
|
lumidify joined #luanti |
23:15 |
|
fluxionary joined #luanti |
23:15 |
|
mrcheese joined #luanti |
23:15 |
|
sparky4 joined #luanti |
23:15 |
|
calculon_ joined #luanti |
23:24 |
|
Haven2 joined #luanti |
23:25 |
|
kamdard__ joined #luanti |
23:25 |
|
wsor40358 joined #luanti |
23:27 |
|
bwarden joined #luanti |
23:28 |
|
panwolfram_ joined #luanti |
23:28 |
|
user2_ joined #luanti |
23:29 |
|
Oblomov joined #luanti |
23:29 |
|
diceLibrarian joined #luanti |
23:30 |
|
nore joined #luanti |
23:49 |
|
chilledfrogs joined #luanti |