Time Nick Message 00:31 fluxionary 06:49 lissobone imagine 06:49 lissobone lisp in minetest 06:50 potatoxel[m] :o 06:50 potatoxel[m] the parens 06:50 potatoxel[m] the beautiful parens :ooo 06:50 potatoxel[m] they need HUGS :O 06:50 lissobone Or maybe even Scheme. 06:51 lissobone I think it's possible to write a scheme compiler in Lua. 06:51 potatoxel[m] lua can do whatev 06:51 potatoxel[m] it turing complete 06:51 potatoxel[m] :o 06:51 lissobone Writing one is discussed in chapter 5 of "Structure and Interpretation of Computer Programs" by Gerald Sussman and Guy L. Steele Junior. 06:52 lissobone They don't just needs hugs, it's you who needs hugs by them. 06:52 potatoxel[m] o: 06:52 potatoxel[m] (me) 06:52 lissobone My Emacs highlights them. 06:53 lissobone It means that the hugging is being done. 06:54 lissobone Anyways, my mod was rejected on ContentDB because the mods couldn't find the license file. 06:54 lissobone It was in 'COPYING'. 06:55 lissobone Is it in the guidelines to explicitly include the license in 'LICENSE'? 06:56 lissobone hi 07:24 luk3yx https://fennel-lang.org/ 07:39 sfan5 interesting but lisp syntax is weird 07:47 MTDiscord Emacs my beloved 07:47 MTDiscord sfan5: wait until you hear about the syntax and wonders of forth 07:49 MTDiscord oh no don't mention forth 08:25 MTDiscord why not 08:40 comrad nerding into forth took away some weeks of productivity I would have used otherwise ;) 10:31 MTDiscord it's a shame that there's no wider standard that all implementations follow 10:32 MTDiscord really makes it inferior to other languages 18:13 jonadab Forth love if honk then. 18:13 MTDiscord honk 18:14 jonadab Lisp syntax isn't too bad for things like function calls (once you get used to it), but if you're doing much with regular expressions, all that quadruple-backslashing gets tedious. 18:15 jonadab Not that lua is really a regex-heavy language in the first place. Text parsing is not its forte. 18:17 appguru I don't see why you'd need "quadruple backslashing" 18:17 jonadab The thing I have difficulty getting used to in lua is the lack of end punctuation to separate statements, so you have to use newlines. 18:17 appguru sounds like an issue of the grammar, specifically strings, and the way your regex impl encodes regex 18:18 appguru a parser combinator in lisp wouldn't have issues with backslashes 18:18 jonadab appguru: Something to do with needing to escape the backslashes for the benefit of the regex engine, and then escape both the original backslash and the escape backslash for the benefit of string syntax. 18:18 jonadab It's explained in the Gnu Emacs Lisp Reference Manual. 18:18 appguru yeah, that's exactly what I mean by an issue with strings 18:18 appguru lua has long bracket strings to make this less awkward 18:18 jonadab Ah, right, yes, that would help. 18:19 jonadab I'm still a rank newb at lua. 18:19 appguru but I think the proper solution is to have regex be *in the language* and constructed through functions / operators 18:19 appguru jonadab: you can always use semicolons to delimit statements in Lua (but you rarely have to) 18:19 jonadab Oh, interesting, none of the documentation or examples that I've seen depict that. 18:20 Desour >The thing I have difficulty getting used to in lua is the lack of end punctuation to separate statements, so you have to use newlines. 18:20 appguru newlines don't actually delimit statements, they merely delimit tokens like any other whitespace 18:20 Desour you can end statements with ; in lua 18:20 appguru (please don't) 18:20 jonadab But it would make the language so much easier to parse visually... 18:21 appguru that's why you put one statement per line 18:21 MTDiscord you can also use ; in place of , in tables 18:21 appguru yes 18:21 jonadab Still getting used to tables in lua. 18:21 appguru but again, use sparsely please 18:21 appguru for example to delimit hash and list part 18:22 Desour sometimes, you actually have to use ; to separate statements, like in `some statement ; (function() foo = "bla" end)()` 18:22 Blockhead256[m] If I see ; a lot in your Lua code, I know you'd rather be writing C++ or something... 18:22 appguru I think semicolons are primarily visual noise if you're already putting one statement per line 18:22 appguru Desour: can use "do end" just as well :-) 18:22 jonadab Eww, C++, no thank you. 18:23 jonadab C++ is even worse than Java. 18:24 Desour I also hate C++. but C++ is usefull and cool 18:24 Desour java is just bad 18:25 jonadab C++ is like C, with the syntax made gratuitously worse, and a half-baked OO library bolted on in a terrible way. 18:25 Krock not the language is bad. it's the people who write unreadable garbage 18:25 jonadab YOu can write unreadable garbage in any language. 18:26 Desour modern C++ is not like C at all 18:26 Desour C++ is more like rust, and C is more like lua 18:26 Blockhead256[m] lol all had to do was mention C++ and suddenly everybody pops out of the woodwork to give me their opinions 18:27 jonadab Granted, most of my knowledge of C++ comes from a college class in C++ in the nineties, using Borland C++ on DOS. 18:27 jonadab Then again, a lot of my knowledge of C comes from working with the NetHack codebase, so that's fair. 18:27 Blockhead256[m] C, C++, Java, Go, Rust, FORTH, Lisp.. ready, fight! 18:28 * jonadab replaces them all with a Perl script. 18:28 Blockhead256[m] (please don't actually, that would be awfully off-topic, unless you can point me to a Minetest-related project in each language or something) 18:29 jonadab Yes, because we're not off-topic already or anything :-) 18:29 Desour chit-chat goes here 18:30 Blockhead256[m] the best kind of disruption is disrupting off-topic back into on topic.. that being said 18:30 jonadab With that said, I recently had to figure out how to do regex-ish stuff in Lua, and it wasn't as bad as I expected. Felt like something halfway between SQL's LIKE patterns and an actual regex engine. 18:30 Blockhead256[m] favourite drawtype? opinions on plantlike rooted? 18:31 jonadab glasslike 18:32 jonadab Also, I finally figured out how to make the "Midas touch" (the thing where gold tools give you multiple nuggets from a single ore block or whatever) working correctly. 18:33 Desour oh no, midas touch. everything you punch becomes gold block. and the items you wield become gold ingots 18:33 Desour so you cant eat anything anymore 18:33 jonadab That would be more authentic to the source material but significantly less useful. 18:34 jonadab I also have mesetouch (which hands you the block itself, when mined with a mese tool), and alatro tools invert probabilities (so e.g. when you hit leaves with an alatro scythe you almost always get saplings). 18:35 jonadab I should probably package up my tool_materials mod and put it on github one of these days, since it now has all the really essential tool types. 18:39 Blockhead256[m] I always was partial to glasslike's liquid level functionality. Seems cool, but not much uses it. 18:58 fluxionary if i've got a map database w/ blocks stored in a range of formats (27 through 29), and i run `--recompress`, will it update them all to version 29? 19:03 muurkha it would be a good curse 19:38 Krock fluxionary: that's the point 19:55 sfan5 I'm not sure if recompress skips blocks that got bigger after re-serialization 20:05 Krock no it just processes them all: https://github.com/minetest/minetest/blob/master/src/main.cpp#L1227-L1291 21:13 fluxionary thanks :) 21:13 fluxionary it's gonna take days to process this 150G map though 23:59 MinetestBot 02[git] 04lhofhansl -> 03minetest/minetest: Instrument touchMapBlocks and block loading/deserialization. (#13314) 138f25f48 https://github.com/minetest/minetest/commit/8f25f487fe6a726fdbf65a63c4157738ec748466 (152023-06-19T23:59:08Z)