Minetest logo

IRC log for #minetest-hub, 2017-11-07

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

All times shown according to UTC.

Time Nick Message
00:22 rubenwardy grrr
01:31 rubenwardy https://i.rubenwardy.com/dlRzUqTwDw.png
01:31 rubenwardy let the statistics begin!
01:38 sofar rubenwardy: how do I get the creative tab to show for admins, when the server is in survival mode?
01:38 sofar nice graphs, better than mine: http://minetest.foo-projects.org/status.html
01:40 rubenwardy creative priv
01:40 rubenwardy or creative.is_enabled_for
01:40 sofar unknown privilege: creative
01:40 sofar it doesn't even exist (0.4.16)
01:42 rubenwardy must be in a dev version
01:42 rubenwardy look in creative/init.lua
01:43 sofar looks like the priv is new
01:43 sofar I may have to override 'creative.is_enabled_for'
01:46 VanessaE creative as a priv is also part of unified inventory I believe.
01:47 rubenwardy heh
01:47 * Shara just used Ten's redo mod for it becaquse creative in current stable is totally silly
01:48 sofar I'm trying not to overload this server with *redo mods since it has 25-50 school kids on it at times
01:49 sofar maybe more at a later stage
01:49 Shara Still, being able to let admins have creative is such a basic requirement to me.
01:49 sofar yeah, hence me adding local tweaks
01:50 Shara And I don't always have the time to tweak things myself sadly
02:03 sofar well, it was 3 lines and a depends.txt
02:03 sofar that override just works
02:04 rubenwardy as I designed :D
02:04 rubenwardy I didn't want a privilege as it is in default
02:04 rubenwardy changes behaviour, rather than giving a right to do something
02:08 Shara it gives the right to use creative inventory :P
02:08 rubenwardy it also changes dig and place behaviour, Shara
02:08 rubenwardy only allowing you to have one item
02:08 Shara Not on DL it doesn't
02:08 rubenwardy I'd be fine with it if it justgave you the right to use creative inventory
02:08 rubenwardy DL != MTG :P
02:09 Shara Pity :P
02:09 Shara But yes, I'd prefer it to only give access to creative inventory and nothing else too
02:09 Shara Everything else should be left alone
02:10 rubenwardy sofar, nice uptime graph :D
02:10 Shara I really don't get why it would be any other way, and that's why I gave up on trying to figure out what MTG is even trying to do
02:11 sofar rubenwardy: deploying lots of updates
02:11 sofar none of those are crashes
02:11 rubenwardy yeah, it's more a funny graph
02:11 rubenwardy I guess it is useful
02:11 sofar yes, once stable, it allows me to see crash/restarts :)
02:12 rubenwardy I'd quite like to try and get my graph software to put a fat vertical line on any restarts
02:12 rubenwardy and a thin line on match end
02:12 rubenwardy needs research though
02:38 rubenwardy oooh
02:38 rubenwardy kills are making a nice sine wave
02:38 rubenwardy negatively scewed though
03:15 LazyJ joined #minetest-hub
03:17 LazyJ Sokomine - Does TravelNet have any vulnerabilities?
03:18 LazyJ I've received a suspicious forum PM from someone claiming that their client causes servers that use TravelNet to crash.
03:18 VanessaE more likely just a bug :P
03:19 LazyJ At least the character is asking if it is OK to join my server but it seems the answer should be obvious.
03:20 LazyJ If their client causes servers to crash, they won't be welcome on those servers.
03:20 VanessaE let him join once, then check your logs :)
03:20 LazyJ A little too technical in their writing to be an app-kid.
03:20 LazyJ Yeah.
03:24 LazyJ Hope this copy/paste doesn't get me auto-kicked:
03:24 LazyJ So I wan to play on you Building server, but there is one problem. Travelnet Mod bug:For someunknown reason my client has a strange bug that first teleports me into void and after a while(matters how the server is secured) it crashes the entire world.
03:24 LazyJ Other TP bugs: Also my game somehow soemtimes randomly executes teleportation processes with fix destination so the world won't crahs but I end up somewhere where I don't want. So can I still play on your server?(I haven't been banned there, but I don't want to cuase any trouble)
03:25 LazyJ ...
03:26 LazyJ Then I responded with suggestion to get another client, don't use unofficial MT apps (if that's the case), and like I mentioned above, the folks of a server would not want someone to log in who crashes their server.
03:26 LazyJ The next part contains a bit more about what trouble they are experiencing:
03:26 LazyJ ...
03:26 LazyJ Actually it depends: Have you installed travelnet or mods that make targetselectable teleportation like travelnet? ALso I ahev already tried those MT(0.15-stable, 0.15-dev, 0.16-stable version nothing chnged
03:26 LazyJ ...
03:27 LazyJ So if any of this gives a hint to an issue in TravelNet or some exploit to be wary of, please let me know.
03:27 LazyJ Thanks
03:28 VanessaE " a strange bug that first teleports me into void"   that would be the spawn-at-0,0,0-on-join bug
03:28 VanessaE why that results in a server crash, good question.
03:29 LazyJ Server crash or maybe a time-out on their end.
04:02 bigfoot547 joined #minetest-hub
04:14 Sokomine LazyJ: er, what kind of vulnerabilites?
04:14 LazyJ Sokomine - scroll up.
04:15 LazyJ They claim their client causes problems specifically with TravelNet, causing servers that use TravelNet to crash.
04:15 LazyJ It could be their client times-out and they mistake it for a server crash.
04:15 LazyJ But since WE's issue, I'm leery.
04:16 Sokomine sounds very strange. if so, they ought to test with other teleportation mods
04:16 Sokomine VanessaE: could be. that's what that reminded me off at first as well. had only time to take a very quick look at the chat right now
07:38 CWz joined #minetest-hub
09:57 shivajiva I've had corrupted entries for tnets that have crashed the server every time they were used, it was something about the characters used in the name that was causing it.
10:04 VanessaE that might be the case here, if the user blames their client, maybe they're just typing in non-ASCII chars as would go with their locale.
10:16 shivajiva yea that's why I mentioned it, could happen on any server using tnets, I got the impression it was intentionally crafted on my server i.e. known exploit
10:17 VanessaE isn't there a "text escape" API call for stuff like that?
10:31 shivajiva a quick search shows string.gsub(your_string, "[\128-\255]", what_they_should_be_replaced_with) for lua, can't find anything in minetest
11:13 Jordach joined #minetest-hub
11:24 Fixer joined #minetest-hub
11:29 CWz joined #minetest-hub
12:04 sniper338 joined #minetest-hub
12:41 ThomasMonroe joined #minetest-hub
13:22 sniper570 joined #minetest-hub
13:34 benrob0329 (Offtopic) https://puri.sm/posts/purism-librem-laptops-​completely-disable-intel-management-engine/
13:39 neinwhal joined #minetest-hub
13:46 RobbieF joined #minetest-hub
13:47 Raven262 joined #minetest-hub
13:50 Megaf joined #minetest-hub
14:36 CalebDavis joined #minetest-hub
14:44 nerzhul joined #minetest-hub
14:57 Megaf how do I disable nvidia frame limiter again?
14:58 Megaf vblank_mode=0
15:12 benrob0329 VanessaE, sfan5, Calinou, can Animals Modpack please be moved to old mods?
15:13 CWz I agree
15:13 CWz i don't think it's being maintained anymore
15:13 CWz pitty. it used to be one of the good ones
15:13 benrob0329 It hasn't been updated in years, it doesn't work anymore, and people just have issues thinking its supposed to work
15:35 jas_ i believe sapier came back within 1-2 years and updated it, if i remember correctly.  how time flies.
15:36 benrob0329 jas_: according to people on the forums, it doesnt work anymore
15:36 benrob0329 It hasn't worked in the past
15:38 benrob0329 And its not developed anymore, people think it works (probably because its linked on the website) and get frustrated when it doesnt
15:38 jas_ mobs_redo is also linked there, correct?
15:38 jas_ totally sucks if it doesn't work with 0.4.16
15:38 benrob0329 Idr
15:39 jas_ can't go "just use 0.4.15" cuz that sucks more lol!
15:39 benrob0329 Its linked, bottom of the list
15:39 jas_ at least putting it in old mods section would help
15:39 jas_ i'll test it with 0.4.16 now
15:40 benrob0329 "Popular mods" <- thats a lie
15:40 jas_ animals modpack is 2/4, mobs_redo is 4/4
15:40 jas_ on that list on minetest.net
15:40 jas_ the header nav items should be on the face page as well
15:40 jas_ i was struggling there for a nanosecond
15:41 benrob0329 CME isnt developed anymore either AFAIK
15:42 jas_ grabbing stable from forum post, 2.5.0 off mediafire
15:42 jas_ obv choice methinks
15:43 benrob0329 Perhaps I should submit a pr for the website
15:43 jas_ i have to rename the folder animals_modpack-2.5.0
15:43 benrob0329 Change out some of the older mods, add some newer ones in
15:43 jas_ didn't like the dash or numbers i guess
15:43 jas_ ohit's a folder in a folder right
15:44 jas_ ok i downloaded the "stable" release off the thread and put it in minetest-0.4.16/mods ... that was a chore
15:44 jas_ loaded and running
15:44 jas_ we'll see if anything appears
15:45 jas_ nothing in the /mods list! d'oh
15:45 jas_ ok went back to configure menu and hit enable all again
15:46 jas_ https://i.imgur.com/60t5ICY.png
15:46 jas_ i forgot i can't have pause menu open in singleplayer, or game halts somehow
15:46 benrob0329 So...stable works?
15:46 jas_ yes so far it's running
15:47 jas_ i didn't change the mapgen, so you see v7 there
15:47 jas_ but the problem is the folder in the folder
15:47 benrob0329 But dev doesnt..interesting
15:47 jas_ which has to be renamed anyway
15:47 jas_ 0.5.0-dev?
15:47 jas_ i don't think it'd work there, but i can try
15:47 benrob0329 Modpack dev
15:47 jas_ i'll leave this one open and find some grass
15:47 jas_ oh i dind't try
15:47 jas_ i grabbed the "stable" release off forum thread
15:48 jas_ Last edited by sapier on January 23rd, 2017, 6:23 pm, edited 17 times in total.
15:48 benrob0329 People complained about missing deps, etc
15:48 jas_ i like animals_modpack
15:48 jas_ it was my first mod
15:48 benrob0329 Mine too
15:48 jas_ it brought me to #minetest, where i asked "how do i make a barn?" hahaha!
15:48 jas_ even then, in 2015 i think, the pictures on the wiki for that were broken
15:49 benrob0329 But if its not developed anymore, and just causing people pain
15:50 jas_ i'll let you know when i find some mobs anyway
15:50 jas_ i never left the desert
15:52 jas_ https://i.imgur.com/bVoZnxV.png
15:52 jas_ yay
15:53 jas_ the pain, for me, was renaming the directory
15:53 jas_ and having to visit mediafire lol
15:55 Fixer benrob0329: as well as that Hud mod by Blockmen
16:09 rubenwardy CTF stats: https://i.rubenwardy.com/vlA23Gn1FC.png
16:10 rubenwardy the kill graph is a very nice sine wave pattern, with the dip being the end of a match/build time
16:13 nerzhul joined #minetest-hub
16:17 jas_ i like how the number of players increases towards ten minutes
16:17 jas_ any everything else heh
16:17 jas_ cool
16:18 rubenwardy increases towards tenminutes? Do you mean the last part of the graph?
16:19 jas_ yea, i noticed right away that the number of players kinda climbs.  i always wondered that, because as matches get going people are mightly to want to get in on it
16:19 jas_ i like tdm
16:22 jas_ huh, i wonder about 15 minute matches, have you ever experimented with round times?
16:23 jas_ re: dungeon loot.  i think it's cool a player can dig a chest with worthless stuff
16:23 jas_ (with the digging of the chest dropping the items, using the function in default)
16:23 jas_ and also re-spawning haha
16:23 jas_ for the next player
16:24 jas_ just respawn another worthless treasure chest
16:24 jas_ well, "just" heh
16:26 jas_ https://forum.minetest.net/vi​ewtopic.php?p=299292#p299292 <--- whoooa
16:26 jas_ that'd be awesome, i don't even know what it's about
16:41 twoelk joined #minetest-hub
16:56 Xio joined #minetest-hub
16:58 Fixer https://www.reddit.com/r/torrents/comments/6ao652/​warning_a_utorrent_ad_is_using_a_flash_exploit_to/
16:58 Fixer freemium ad shitfuture everyone deserves
16:58 rubenwardy err no
16:58 rubenwardy no one uses flash
16:59 Fixer rubenwardy: ha? everybody uses it, and it is outdated as shit ;)
17:10 Xio joined #minetest-hub
17:19 Xio joined #minetest-hub
17:22 Krock joined #minetest-hub
17:22 benrob0329 >programs with ads
17:22 benrob0329 What dis?
17:23 Krock evil proprietary
17:23 rubenwardy that other game has quite a lot of money around it
17:23 rubenwardy not ads necessarily
17:24 rubenwardy but in app purchases of stuff
17:24 benrob0329 Krock: there's a reason I stay away from it whenever I can
17:24 benrob0329 Steam and the friggen nvidia crap being whats left right now
17:25 rubenwardy would be cool to be able to make a bot client which runs on a headless server, and takes screenshots
17:26 rubenwardy if CSM had a movement API (which I wouldn't recommend in default) wouldn't be too hard
17:26 rubenwardy good for CTF :P
17:26 rubenwardy actually, the server could just position the client
17:28 benrob0329 rubenwardy: i'd love to be able to adjust my speed with csm
17:28 benrob0329 Good for filming
17:28 * red-001 has been summoned
17:29 Krock red-001, summoned by me. Weren't there plant for providing a database API?
17:29 Xio joined #minetest-hub
17:29 red-001 for lua?
17:30 Krock no, for our JavaScript API, of course.
17:30 Krock * /s
17:30 red-001 think they got forgotten after the mod storage api was implemented
17:31 rubenwardy mod storage isn't great for arrays
17:31 red-001 I know
17:31 rubenwardy ideally you'd have some fake lua table you could just use like normal
17:32 rubenwardy not for a serious database though
17:32 rubenwardy you'd want schema
17:32 sofar meta:set_string("sometbl", minetest.write_json(tbl))
17:32 Krock that sounds great. basically an indexable lua object
17:33 rubenwardy sofar, not good for large datasets
17:33 sofar no, indeed
17:33 sofar seems it's mostly a good key-value storage thing
17:37 sofar anyone seen kaeza recently?
17:37 rubenwardy no, I've been wondering
17:37 rubenwardy 2 weeks ago in #minetest
17:38 sofar I had a comment for his IRC mod, but I might have to dig into it myself
17:41 rubenwardy the IRC mod's code is pretty good
17:44 sofar yes, it is
17:44 sofar I just wrote this the other day though: https://github.com/minetest-mods/filter
17:45 sofar the problem is when I cancel a message on the server, the IRC mod still sends it to the IRC channel
17:45 sofar not sure if there's an easy solution
17:45 rubenwardy how does that combat the scunthorpe problem?
17:46 rubenwardy ah, I had that issue
17:46 rubenwardy I had to make my mod handle the message first
17:46 rubenwardy using the table.insert trick in call backs
17:46 rubenwardy and then do irc:say() on any good messages
17:46 rubenwardy not particularly great for inter-op though
17:46 rubenwardy would be good to have two callback
17:47 rubenwardy the first one for filtering, and can cancel. The second for saying
17:47 rubenwardy *the second for this has been said
17:48 sofar yeah, it just looks at whole words
17:48 rubenwardy sounds good
17:48 sofar frankly I want the list to be really short with just a few words anyway
17:48 sofar hence mod_storage
17:49 sofar I was thinking of maybe enhancing the irc mod API so it handles this
17:50 rubenwardy maybe the IRC mod should use an after to make sure it's at the back of the callback array
17:50 rubenwardy kind of hacky though
17:51 Calinou <rubenwardy> how does that combat the scunthorpe problem?
17:51 Calinou I wear a smartwatch to combat that problem
17:53 rubenwardy huh
17:53 Calinou ;)
17:54 rubenwardy ah, just saw the word
17:54 Raven262 joined #minetest-hub
17:54 rubenwardy is that even a swear word?
17:54 Calinou apparently, it is
17:55 rubenwardy sofar: any chance of an exponential mute?
17:55 lisac joined #minetest-hub
17:55 sofar exponential mute?
17:55 rubenwardy first time warn, second time 30s, third time 1 min
17:55 rubenwardy or similar
17:55 sofar ah, sure, yes, we can add that
17:55 sofar I made it simple, but I'll take patches
17:56 rubenwardy very busy, but may look into it
17:56 rubenwardy although there are bigger game play related things I should do
17:56 sofar thinking of adding /fiter config <option> <value> so it's nicely dynamic
17:56 rubenwardy github.com/rubenwardy/capturetheflag
17:56 rubenwardy oops
17:56 rubenwardy github.com/rubenwardy/capturetheflag/issues
17:56 sofar haha
17:56 sofar I'm jealous
17:56 sofar look at this:
17:57 sofar https://github.com/sofar/mine​test.foo-projects.org/issues
17:57 rubenwardy ha :D
17:57 rubenwardy nice
17:57 sofar well, I do have a 50-line TODO.md as well
17:57 rubenwardy 11 out of  68 issues are directly from other people
17:58 sofar that's nice
17:58 rubenwardy most of the issues are things people request, but I made an issue for
17:58 rubenwardy yeah, I have a mental TODO.md too
17:59 sofar my mental buffer overflows daily, so I created a persistent non-mental buffer
17:59 rubenwardy but yeah, we need more non-traditional subgames
18:02 jas_ tdm mode, just remove the flags
18:03 rubenwardy I also have spleef
18:03 rubenwardy or Last Man Standing
18:03 rubenwardy a much better name
18:03 rubenwardy then there's bed wars
18:04 rubenwardy but these are all kind of boring and the same
18:04 jas_ that one sounds awesome
18:04 rubenwardy would be good to have, mind
18:04 jas_ still
18:04 rubenwardy would nice to have non-traditional subgames that aren't fighting
18:04 jas_ i wanted to make a world with music blocks, and try to use lua csound, but didn't get far.  then there's libpd, mmm
18:04 rubenwardy need more puzzle games
18:04 rubenwardy and story-based games
18:04 jas_ nice
18:04 rubenwardy HalfTest
18:04 jas_ lol
18:05 rubenwardy (please don't call it that)
18:05 rubenwardy (or copyright infringe)
18:05 rubenwardy (similar feeling is fine)
18:17 Fixer whats up with this YT bullshit in nicknames?
18:17 rubenwardy Because they're from YouTube ofc
18:24 Fixer so what? nobody gives a shit
18:24 rubenwardy :D
18:24 rubenwardy it's some kid thing
18:25 Calinou my brother is a fairly popular YouTuber in France
18:25 Calinou so he stepped up from that "kid thing" he started 1.5 years ago :)
18:25 Calinou (he's older than me, so he was 21 when he started)
18:30 benrob0329 Fixer: what YT nicknames?
18:30 rubenwardy oh wow
18:30 benrob0329 I use the same nick.everywhere
18:30 Krock Fixer, they usually confirm that assumption by asking "im recording now" or "can i have admin i record pls"
18:30 rubenwardy the last time I redesigned my website was 2014, apparently
18:30 rubenwardy Krock, updated ctf.rubenwardy.com
18:30 rubenwardy Happy now?? :D
18:30 Krock no. Where's the freaking shop to buy gems?
18:31 Krock jk. looks nice
18:31 benrob0329 Krock: telling people (or asking, actually) when/if you can record is best
18:31 benrob0329 And asking for as few permissions as possible for the project
18:31 IhrFussel joined #minetest-hub
18:31 Calinou <rubenwardy> the last time I redesigned my website was 2014, apparently
18:31 Calinou mine was 1 year ago
18:31 Calinou I'm still not done with the new design (:()
18:32 rubenwardy it's possible I just reused some code
18:32 rubenwardy the copyright says 2014-
18:32 Krock updating mine sometimes a little but the style is still Y2k-alike
18:32 IhrFussel I hope you guys will backport the auth bugfix ... it's a critical one even though it never happened to me
18:32 neinwhal left #minetest-hub
18:32 Calinou my new design will be simpler and faster to load
18:32 Calinou (using lots of tricks to make it simpler, also, JavaScript won't be required)
18:32 benrob0329 http://totallynotashadyweb.site :P
18:33 benrob0329 Not anywhere close to being finished
18:33 rubenwardy nice, Calinou
18:33 rubenwardy needs more portfollio items :D
18:33 Calinou (using the Bulma CSS framework)
18:33 benrob0329 Calinou: yay, no JS :D
18:33 Calinou rubenwardy: I don't have a lot of show off
18:33 Calinou also, quality over quantity
18:33 Calinou I have a few new things since last year, though
18:34 Calinou (also, we'll redesign godotengine.org again soon :P)
18:34 Calinou see https://github.com/godotengine/website/issues/3
18:34 Calinou benrob0329: I'm also removing transitions, and adding Barba.js (which degrades gracefully when JS is disabled)
18:35 Calinou http://barbajs.org/
18:35 Calinou it greatly enhances browsing static websites, without resorting to an SPA
18:36 Calinou for some reason, CSS transitions (even fast ones like 0.1s) add a lot of latency when hovering items
18:36 Calinou so I scrapped them
18:36 benrob0329 Noice
18:37 benrob0329 Faster, lighter, better is always good
18:37 Calinou ( ͡° ͜ʖ ͡°)
18:37 benrob0329 ( ͡° ͜ʖ ͡°)
18:37 Calinou the build process uses Webpack, and the site is generated using Jekyll
18:37 Calinou I made a set of handy npm scripts to manage this easily
18:37 rubenwardy Jekyll <3
18:38 rubenwardy I do like how Github pages works with private repos
18:38 benrob0329 I wish I could make a terminal-esc site without JS
18:38 rubenwardy make the terminal input a text box
18:39 benrob0329 I'm trying, I.suppose
18:39 rubenwardy reload page each submit
18:39 Calinou I also began learning Gradle, I'm writing a card game in Java for uni
18:39 rubenwardy won't be interactive though
18:39 Calinou Gradle is huge, but seems to do the job
18:39 rubenwardy Kotlin <3
18:39 Calinou and in a convenient way
18:39 benrob0329 Eww Java
18:39 rubenwardy Kotlin is what Java should have been
18:39 Calinou benrob0329: well, C++ is a mess
18:39 rubenwardy a very nice language
18:39 Calinou and we don't have a choice anyway
18:39 Calinou rubenwardy: what's the differences and practical upsides?
18:40 Calinou I never really understood
18:40 rubenwardy less bootstrap, property syntax
18:40 rubenwardy optionals to avoid null pointer exceptions
18:40 Calinou I took a look at Scala, was too FP-y for me
18:40 Calinou (Lichess is written in Scala, which is how I learned about it)
18:40 rubenwardy FP is optional in Kotlin
18:41 rubenwardy is has map/foreach/etc
18:41 rubenwardy it's a half-FP language, like Swift
18:41 rubenwardy best of both worlds
18:41 benrob0329 Calinou: http://vibed.org
18:41 benrob0329 Its an interesting project imo
18:42 rubenwardy I find Kotlin enjoyable to program in
18:42 rubenwardy I can't say the same about Java
18:43 rubenwardy The only reason I learnt Java was to make Android apps, which was fun
18:43 rubenwardy but now there's Kotlin there's no need for Java
18:44 rubenwardy also, Kotlin doesn't require the JVM
18:44 rubenwardy it can run on machine code
18:44 rubenwardy https://blog.jetbrains.com/kotlin/2017/04/ko​tlinnative-tech-preview-kotlin-without-a-vm/
18:45 rubenwardy well, unstable
18:46 rubenwardy you also can't use the Java standard library
18:46 rubenwardy but they have an alternative
18:52 CalebDavis joined #minetest-hub
19:03 Fixer Krock: also add that animated rainbow ribbon to your site to increase Y2K feel
19:07 Krock Fixer, that's 90s style
19:07 Krock isn't it?
19:11 Fixer kinda
19:41 Megaf joined #minetest-hub
19:55 Krock joined #minetest-hub
20:37 CalebDavis joined #minetest-hub
20:49 nore <Calinou> I took a look at Scala, was too FP-y for me <-- it's not enough FP-y for me :'(
20:50 nore (OCaml <3)
21:08 red-001 #define FP
21:12 rubenwardy Kotlin will probablybe my new favourite language once its native compiler is stable
21:12 nore red-001: functionnal programming :)
21:14 rubenwardy I've been using underscore for lua a little
21:14 rubenwardy very nice library, adds mapping/filtering/etc
21:15 nore rubenwardy: looks like Kotlin has no real pattern matching :(
21:15 rubenwardy don't see the need :)
21:16 * nore can't live without pattern matching
21:16 rubenwardy it's a shame there's no good strongly typed scripting language
21:16 rubenwardy with optionals
21:17 nore yep
21:18 nore rubenwardy: I couldn't stand writing code such as https://github.com/Ekdohibs​/pscala/blob/gc/ltl.ml#L149 without proper pattern matching
21:19 rubenwardy ah yes
21:19 nore (trying to find a better example than that)
21:19 rubenwardy that's a good usecase
21:19 rubenwardy for compilers/interpreters
21:19 rubenwardy iterating through trees
21:19 nore yep
21:20 rubenwardy you could use when in kotlin
21:20 rubenwardy it's like the function if statements in haskell
21:20 nore writing these in a language without algebraic datatypes are a real pain
21:20 rubenwardy you know:           a x =  x ==2 = x
21:20 nore ah yeah, pattern guards
21:20 rubenwardy https://programmingideaswithjake.wordpress.com/​2016/08/27/improved-pattern-matching-in-kotlin/
21:20 rubenwardy that's the one
21:20 nore ^ yes
21:21 nore but still doesn't allow nested patterns I think
21:21 rubenwardy still not as good as real patterns
21:22 nore ah there, finally found where I used nested patterns: https://github.com/Ekdohibs/pscal​a/blob/gc/code_production.ml#L187
21:22 nore this would be so annoying without them :/
21:24 Calinou Rust grew up on me, so I stopped trying to learn it
21:25 nore didn't try to; but the type system seems very restrictive
22:03 twoelk left #minetest-hub
22:08 ThomasMonroe joined #minetest-hub
22:19 RobbieF left #minetest-hub
23:47 rubenwardy <meganplays> stop fighting we can create a city together just stand together and stop fighting
23:47 rubenwardy I don't think the understand the meaning of CTF
23:54 rdococ heh

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