00:02:52 | * | flaviu quit (Quit: Leaving.) |
00:03:03 | * | flaviu joined #nimrod |
00:04:08 | * | flaviu quit (Remote host closed the connection) |
00:04:18 | * | flaviu joined #nimrod |
00:04:19 | * | flaviu quit (Remote host closed the connection) |
00:04:31 | * | flaviu joined #nimrod |
00:24:53 | * | flaviu quit (Quit: Leaving.) |
00:25:03 | * | flaviu joined #nimrod |
00:25:19 | * | flaviu quit (Remote host closed the connection) |
00:27:25 | * | flaviu joined #nimrod |
00:29:21 | * | flaviu quit (Remote host closed the connection) |
00:29:32 | * | flaviu joined #nimrod |
00:38:52 | * | Joe_knock joined #nimrod |
00:41:25 | * | springbok joined #nimrod |
01:14:32 | * | freezerburnv joined #nimrod |
01:17:35 | * | freezerburnv quit (Client Quit) |
01:29:33 | * | MayurYa joined #nimrod |
01:29:54 | * | MayurYa quit (Client Quit) |
01:33:47 | * | MayurYa joined #nimrod |
01:34:42 | * | MayurYa quit (Changing host) |
01:34:42 | * | MayurYa joined #nimrod |
02:18:47 | Varriount | Hello MayurYa |
02:40:53 | * | shodan45 joined #nimrod |
02:46:56 | * | q66 quit (Quit: Leaving) |
02:52:56 | * | Varriount|Mobile quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) |
02:53:07 | * | shodan45 quit (Quit: Konversation terminated!) |
03:11:42 | * | saml_ quit (Remote host closed the connection) |
03:20:25 | * | perturbation quit (Quit: Leaving) |
03:41:05 | * | xtagon joined #nimrod |
03:46:42 | * | Demos quit (Read error: Connection reset by peer) |
03:52:23 | * | flaviu quit (Ping timeout: 252 seconds) |
03:53:25 | NimBot | Araq/Nimrod float_$ 8fd6806 Simon Hafner [+0 ±2 -0]: extended detection for exponent |
04:04:42 | * | Joe_knock quit (Quit: Leaving) |
05:10:55 | * | kunev joined #nimrod |
05:20:49 | * | vendethiel quit (Quit: q+) |
05:38:40 | * | xtagon quit (Read error: Connection reset by peer) |
05:40:40 | MayurYa | hey Varriount :) |
05:40:49 | MayurYa | what is NimBot? |
06:29:00 | * | hoverbear quit () |
06:58:29 | * | Puffin is now known as BitPuffin |
07:09:18 | * | kunev quit (Ping timeout: 240 seconds) |
07:11:18 | * | BitPuffin quit (Ping timeout: 240 seconds) |
07:31:18 | * | kemet joined #nimrod |
07:32:28 | * | kemet quit (Remote host closed the connection) |
07:42:12 | * | kunev joined #nimrod |
07:50:37 | * | Trustable joined #nimrod |
08:02:07 | * | BitPuffin joined #nimrod |
08:19:02 | * | BitPuffin quit (Quit: WeeChat 0.4.3) |
08:19:17 | * | BitPuffin joined #nimrod |
08:26:26 | * | io2 joined #nimrod |
08:45:33 | * | zahary quit (Quit: Leaving.) |
08:47:11 | * | zahary joined #nimrod |
08:48:29 | * | zahary quit (Client Quit) |
09:01:38 | * | Skrylar quit (Ping timeout: 240 seconds) |
11:17:38 | NimBot | Araq/Nimrod devel 21423e5 PavelVozenilek [+0 ±1 -0]: making clear structural equivalency for tuples doc |
11:17:38 | NimBot | Araq/Nimrod devel c1fea4b Dominik Picheta [+0 ±1 -0]: Merge pull request #1277 from PavelVozenilek/patch-1... 2 more lines |
11:18:45 | dom96 | Varriount: so what ever happened to fsmonitor? |
11:26:36 | * | kemet joined #nimrod |
11:31:00 | * | kunev quit (Quit: leaving) |
11:31:09 | * | kunev joined #nimrod |
11:46:13 | * | kemet quit (Quit: Instantbird 1.5 -- http://www.instantbird.com) |
11:47:50 | * | flaviu joined #nimrod |
11:51:17 | EXetoC | I guess freenode isn't RFC 2812 compliant |
11:54:31 | * | MayurYa quit (Ping timeout: 244 seconds) |
11:55:34 | dom96 | I wouldn't be surprised if that was the case. |
11:58:28 | EXetoC | that's the nature of IRC I guess |
12:01:02 | * | MayurYa joined #nimrod |
12:01:16 | * | MayurYa quit (Changing host) |
12:01:16 | * | MayurYa joined #nimrod |
12:19:29 | * | untitaker quit (Ping timeout: 252 seconds) |
12:25:29 | * | untitaker joined #nimrod |
12:31:25 | * | darkf quit (Quit: Leaving) |
12:50:16 | * | kunev quit (Ping timeout: 264 seconds) |
12:50:43 | * | darkfusion quit (Ping timeout: 272 seconds) |
12:56:11 | * | darkfusion joined #nimrod |
12:57:30 | * | kunev joined #nimrod |
14:34:47 | * | Psil0Cybin joined #nimrod |
14:34:54 | * | Psil0Cybin left #nimrod ("You know you're gonna miss me when I'm gone") |
14:38:47 | * | springbok_ joined #nimrod |
14:39:11 | * | springbok_ is now known as Guest6974 |
14:41:24 | * | springbok quit (Ping timeout: 244 seconds) |
15:22:24 | * | kunev quit (Quit: leaving) |
15:34:39 | * | BitPuffin quit (Ping timeout: 255 seconds) |
15:43:19 | * | MayurYa quit (Quit: *nix server crashed w/ bof) |
16:10:26 | * | hoverbear joined #nimrod |
16:10:30 | * | hoverbear quit (Max SendQ exceeded) |
16:11:01 | * | hoverbear joined #nimrod |
16:30:17 | * | zahary joined #nimrod |
16:40:40 | EXetoC | can the name of the runtime type of an exception be retrieved? |
16:42:51 | EXetoC | dom96: I got "Bad file descriptor" at one point when polling the IRC client |
16:44:43 | * | BitPuffin joined #nimrod |
16:44:48 | EXetoC | could've been something else though. I think cdecl causes the stack trace to omit some things |
16:46:42 | EXetoC | it could be the file writing too for some reason. didn't think of that |
16:48:37 | EXetoC | dom96: anyway, should only send and close reference sockClosed? |
16:51:21 | EXetoC | and do you think it should remain a flag rather than an exception? |
16:52:50 | * | Jesin quit (Quit: Leaving) |
16:53:28 | * | brson joined #nimrod |
17:10:00 | dom96 | EXetoC: I think that flag is used for reconnecting |
17:14:41 | * | zahary quit (Quit: Leaving.) |
17:34:06 | EXetoC | dom96: I could catch EOS, but it's not very specific, so who knows what it is you're catching really |
17:34:50 | dom96 | EXetoC: I think EOS contains the error code. |
17:40:22 | * | bstrie quit (Quit: leaving) |
17:48:27 | EXetoC | dom96: I wouldn't know what to check for. It'd be much easier to just catch something like ESocketError |
17:48:45 | * | q66 joined #nimrod |
17:49:33 | dom96 | Yeah, alright. I'll add that. |
17:49:40 | dom96 | EXetoC: Make a feature request on github |
17:50:06 | EXetoC | actually, I don't know what I was getting at |
17:50:14 | EXetoC | the readLine in poll maybe |
17:50:32 | EXetoC | I'll look into it some more |
18:00:50 | * | Jesin joined #nimrod |
18:01:23 | EXetoC | dom96: would anything other than socketError need to be modified? |
18:01:44 | dom96 | EXetoC: what are you changing? |
18:02:46 | * | vendethiel joined #nimrod |
18:11:42 | NimBot | Araq/Nimrod caas-fixes 025d8c1 Dominik Picheta [+0 ±2 -0]: CAAS fixes.... 3 more lines |
18:16:27 | EXetoC | dom96: nothing yet, but I'm referring to that socket exception |
18:17:12 | dom96 | There are likely some places where EOS is raised without going through socketError |
18:30:09 | EXetoC | ok |
18:50:30 | * | Jehan_ joined #nimrod |
19:01:33 | * | brson quit (Ping timeout: 240 seconds) |
19:03:31 | * | brson joined #nimrod |
19:04:46 | * | Matthias247 joined #nimrod |
19:11:59 | * | BitPuffin quit (Ping timeout: 272 seconds) |
19:14:46 | * | BitPuffin joined #nimrod |
19:30:26 | * | Trustable quit (Quit: Leaving) |
19:34:03 | * | BitPuffin quit (Ping timeout: 240 seconds) |
19:34:28 | * | Mat3 joined #nimrod |
19:34:31 | Mat3 | hello |
19:42:17 | Araq | hi |
19:45:00 | Mat3 | hi Araq |
19:46:45 | Mat3 | I spend some time programming an UEFI bootloader which bypass all of the common firmware bugs. Does one need a loader which works (probably for special designed laptops) ? |
19:47:31 | Araq | nah, I'm fine with my buggy firmware ;-) |
19:47:49 | Araq | just updated it, in fact ... |
19:54:48 | * | BitPuffin joined #nimrod |
19:56:42 | * | shodan45 joined #nimrod |
20:03:58 | * | Mat3 quit (Quit: Verlassend) |
20:03:59 | OrionPK | boyo |
20:04:02 | OrionPK | portugal did not do well |
20:07:15 | * | Jesin quit (Quit: Leaving) |
20:07:44 | Araq | Germany did well |
20:12:07 | * | Jehan_ needs to find a nice underdog team to root for. |
20:12:14 | OrionPK | germany did quite well |
20:12:51 | dom96 | Japan! |
20:13:51 | Jehan_ | OrionPK: Yeah, but not exactly an underdog. |
20:14:40 | flaviu | Jehan_: United States? :P |
20:14:54 | Jehan_ | flaviu: Possibly. :) |
20:15:26 | Jehan_ | flaviu: In all honesty, though, I don't care all that much about soccer. |
20:16:25 | flaviu | Same here, all I know is that Spain is good, the US is bad, and FIFA enjoys taking advantage of countries |
20:17:23 | Jehan_ | Well, yeah, there's the additional problem that World Cup soccer generally isn't all that great and that FIFA is pretty corrupt. |
20:20:02 | Jehan_ | I think it's telling that when I'm trying to think of good World Cup games, I still go back to the 2006 Italy-Germany semifinal as one of the top candidates. Slim pickings ... |
20:21:21 | Jehan_ | … of recent good ... |
20:33:29 | * | io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist) |
20:33:59 | Araq | somebody should merge new_spawn into devel ... any volunteers? |
20:35:25 | dom96 | that sounds so totally extremely not really that much fun |
20:36:17 | Araq | yet it needs to be done |
20:44:41 | * | xtagon joined #nimrod |
20:46:21 | flaviu | Araq: Why isn't it fun? |
20:46:49 | Araq | it's not much work, flaviu |
20:46:49 | flaviu | git merge upstream/new_spawn, and like magic, the compiler still builds. |
20:46:56 | Araq | yeah |
20:50:06 | dom96 | if it's so easy Araq would have done it himself :P |
20:51:28 | Araq | nope |
20:51:35 | Araq | I'm busy with the hardest stuff |
20:51:47 | Araq | there is *lots* of easy stuff I don't do |
20:52:16 | flaviu | dom96: You do it. git pull --all; git fetch --all; git checkout devel; git merge new_spawn; git branch -D new_spawn; git push --prune --all |
20:53:19 | dom96 | flaviu: You do it. |
20:55:14 | flaviu | dom96: Ok |
20:55:16 | flaviu | https://github.com/Araq/Nimrod/pull/1281 |
20:57:54 | Araq | flaviu: want to have write access btw? |
20:58:41 | flaviu | Sure, but I assume I should still PRs for most things? |
20:58:55 | Araq | yes. |
21:03:20 | NimBot | Araq/Nimrod devel 6195dbe Araq [+4 ±12 -0]: initial non-compiling version of 'parallel' |
21:03:20 | NimBot | Araq/Nimrod devel c43e8df Araq [+0 ±10 -0]: progress for the 'parallel' statement |
21:03:20 | NimBot | Araq/Nimrod devel 31b8fd6 Araq [+5 ±2 -0]: 'parallel' statement: next steps |
21:03:20 | NimBot | Araq/Nimrod devel 417b9f5 Araq [+0 ±10 -0]: 'parallel' statement almost working |
21:03:20 | NimBot | 22 more commits. |
21:03:39 | Araq | let's see if flaviu did it properly :P |
21:03:48 | Araq | nope |
21:03:52 | Araq | "koch boot" failed |
21:04:02 | flaviu | Oh, I hadn't tested boot |
21:04:12 | Araq | you know ... I always wondered if you guys actually test anything |
21:04:19 | Araq | now I know |
21:04:25 | Araq | you don't |
21:04:51 | Araq | aber Hauptsache mal alles besser wissen |
21:05:01 | flaviu | I did test temp, fwiw |
21:05:14 | dom96 | Hah. I was right. |
21:08:24 | Varriount | dom96: Regarding fsmonitor, it still needs some work. |
21:08:53 | Varriount | Specifically, I need to test it a bit more, and tell it when to stop tracking files. |
21:13:43 | dom96 | Varriount: Alright. Get to it! :) |
21:13:52 | flaviu | Araq: Well, I got it to bootstrap now. Should I get the csources and do a PR? |
21:14:22 | Araq | Varriount: you also need to fix this "os requires > win xp" issue |
21:15:03 | * | Varriount|Mobile joined #nimrod |
21:15:34 | Araq | flaviu: why csources? |
21:16:57 | flaviu | I set the deepcopy method to discard temporary, but I'm not sure how that'll interact, but a copy of the c sources with the method set to discard is needed to start everything. |
21:17:09 | flaviu | Maybe I'm misunderstanding how this works |
21:18:18 | Araq | well I added = discard as the implementation for 'deepcopy' |
21:18:33 | Araq | and everything is smooth with that patch for me |
21:18:39 | Araq | no need to rebuild csources |
21:19:17 | flaviu | Ok, and =discard is permanent? |
21:21:17 | Araq | sure doesn't hurt |
21:23:26 | flaviu | Oh, the recent magics are all equal to discard, only the old ones aren't |
21:24:33 | Araq | well ... we figured out lately it's even possible ... XD |
21:27:54 | flaviu | https://github.com/Araq/Nimrod/pull/1282 if someone wants to press the button. |
21:29:01 | NimBot | Araq/Nimrod devel 2456c8d flaviut [+0 ±1 -0]: Fix bootstrapping |
21:29:01 | NimBot | Araq/Nimrod devel 1b25765 Andreas Rumpf [+0 ±1 -0]: Merge pull request #1282 from flaviut/devel... 2 more lines |
21:29:28 | Varriount|Mobile | flaviu: you messed up the doc comments |
21:30:27 | dom96 | still fails |
21:30:32 | dom96 | flaviu: join #nimbuild |
21:31:11 | flaviu | Varriount|Mobile: I don't think I did, staticExec is the same way and it works fine |
21:34:08 | Varriount|Mobile | :< |
21:45:20 | * | BitPuffin quit (Ping timeout: 240 seconds) |
21:50:59 | * | NimBot joined #nimrod |
21:51:11 | dom96 | !ping |
21:51:11 | NimBot | pong |
21:51:31 | Trixar_za | !ping |
21:51:31 | NimBot | pong |
21:52:20 | EXetoC | !pong |
21:52:24 | * | flaviu is now known as SecretlyABot |
21:52:26 | SecretlyABot | pong |
21:52:36 | Trixar_za | You were supposed to go ping |
21:52:43 | EXetoC | I wanna go pong |
21:52:48 | * | Trixar_za suspects SecretlyABot isn't really a bot |
21:52:51 | dom96 | !lag |
21:52:51 | NimBot | 36ms between me and the server. |
21:52:55 | dom96 | aww yeah |
21:53:00 | EXetoC | !lag |
21:53:00 | NimBot | 36ms between me and the server. |
21:53:02 | SecretlyABot | 54ms between me and the server |
21:53:03 | Trixar_za | !lag |
21:53:03 | NimBot | 36ms between me and the server. |
21:53:22 | Trixar_za | That's insanely low |
21:53:39 | dom96 | yeah, impressive |
21:53:42 | SecretlyABot | Trixar_za: I get 20s on FPSs sometimes |
21:53:48 | * | SecretlyABot is now known as flaviu |
21:53:57 | EXetoC | 20s? I wouldn't bother then tbh |
21:54:12 | flaviu | 20ms's |
21:54:20 | Trixar_za | That's better |
21:54:21 | dom96 | I get 10 years sometimes |
21:54:29 | dom96 | It's pretty good lag that. |
21:54:38 | dom96 | :P |
21:54:46 | Trixar_za | 20s lag would mean you were dead, respawned and dead again before you knew it |
21:55:19 | EXetoC | just increase the interpolation |
21:55:31 | EXetoC | should work as long as people walk in straight lines |
21:55:56 | flaviu | EXetoC: Noob. I'd use FTL communication to avoid the issue completely |
21:58:23 | * | hoverbear quit () |
21:59:05 | * | dom96 sniggers |
21:59:54 | EXetoC | just be reasonably close to the server and you should get <30ms. no magic involved :> |
22:00:00 | NimBot | It's Araq's birthday today! Everybody wish our great BDFL a happy birthday!!! |
22:00:05 | dom96 | :D |
22:01:46 | EXetoC | but 30ms across the globe would be awesome |
22:02:11 | EXetoC | perhaps by using wormholes |
22:02:31 | dom96 | Happy birthday Araq! |
22:02:31 | OrionPK | ROFLLL |
22:02:46 | OrionPK | us scores w/in 40 seconds |
22:02:46 | OrionPK | of the game starting |
22:04:21 | Araq | hey |
22:04:21 | Araq | it's 23:57 here |
22:04:31 | Araq | dom96: thank you |
22:04:41 | dom96 | Araq: Your clock is wrong |
22:04:51 | Araq | possible lol |
22:04:51 | EXetoC | nope |
22:05:06 | * | hoverbear joined #nimrod |
22:05:06 | EXetoC | we got minute granularity now |
22:05:16 | flaviu | Araq: 6 minutes ahead |
22:06:06 | flaviu | err, behind |
22:09:31 | Matthias247 | Araq: best wishes! And your clock wi really wrong ;) |
22:09:51 | Araq | Matthias247: thanks |
22:10:11 | Araq | indeed it's pretty bad, flaviu 6 minutes off |
22:11:26 | dom96 | my old PC's clock was very off too for some reason |
22:12:31 | flaviu | I can't think of a clever way of saying happy birthday, so happy birthday Araq! |
22:12:51 | Araq | flaviu: thank you |
22:25:45 | * | hoverbear quit () |
22:27:36 | EXetoC | dom96: I'm always the origin in numeric messages. is that right? |
22:28:17 | dom96 | EXetoC: You wouldn't reply to numerics. |
22:28:25 | dom96 | EXetoC: so origin is irrelevant |
22:28:41 | OrionPK | boo |
22:28:43 | OrionPK | poor altidore :( |
22:29:35 | dom96 | I actually didn't realise USA was playing in the world cup. |
22:29:45 | EXetoC | maybe it shouldn't be set then |
22:29:47 | dom96 | OrionPK: Who are they playing against? |
22:30:29 | * | hoverbear joined #nimrod |
22:32:31 | OrionPK | ghana |
22:34:07 | dom96 | Have they ever won the World Cup? |
22:34:29 | EXetoC | it's not only useful for replies though |
22:34:38 | EXetoC | there are other actions to take |
22:34:40 | dom96 | EXetoC: what's your use case? |
22:34:52 | * | Guest6974 quit (Quit: I'm out...) |
22:37:09 | NimBot | It's Araq's birthday today! Everybody wish our great BDFL a happy birthday!!! |
22:37:15 | * | NimBot joined #nimrod |
22:37:51 | OrionPK | dom96 not in many decade |
22:37:51 | OrionPK | s |
22:37:52 | OrionPK | iirc |
22:38:17 | dom96 | Gah, now NimBot will likely reannounce Araq's birthday. |
22:38:59 | Araq | well he missed quite a few |
22:39:07 | Araq | so that's only fair |
22:41:43 | dom96 | hehe |
22:41:44 | * | hoverbear quit () |
22:42:21 | dom96 | I think it sent the message before joining here so it's all good :P |
22:42:29 | dom96 | no spam |
22:42:45 | EXetoC | dom96: if you get a message then you want the origin |
22:43:00 | dom96 | I need to fix nimbuild so that it uses json.`{}` |
22:43:42 | Araq | I need to fix json.{} so that is uses compile-time voodoo |
22:43:52 | EXetoC | or maybe you don't if the program is trivial enough |
22:44:11 | EXetoC | I'll maybe deal with this after I've used the module more |
22:44:40 | dom96 | EXetoC: origin was designed to be used for PRIVMSG |
22:44:55 | dom96 | EXetoC: That is the only context I use it in, you wouldn't reply to a numeric with a PRIVMSG |
22:45:17 | dom96 | but if you want origin to be the server address for a numeric then implement that |
22:45:36 | EXetoC | no, the channel |
22:45:55 | dom96 | Regarding json, would be nice to have accessors with the ability to specify a default value |
22:46:23 | * | superfunc_ joined #nimrod |
22:46:27 | dom96 | EXetoC: Not all numerics have a channel |
22:48:23 | * | hoverbear joined #nimrod |
22:49:48 | flaviu | dom96: How about another overload on the `or` operator? There might be issues, though I can't think of any right now |
22:50:07 | flaviu | So that json["asd"] or "dsadas" |
22:50:08 | EXetoC | either nil or the server then, although you already have access to the address, but it might reduce amount of logic necessary |
22:50:28 | EXetoC | +the |
22:51:19 | flaviu | dom96: Any ETA on deploying filtering? |
22:52:08 | Araq | hmm damn ... I like that |
22:52:24 | Araq | overloading of 'or' looks sweet |
22:52:56 | Araq | plus it can't be wrong, Lua does it too :P |
22:53:17 | OrionPK | or meaning what.. if it's nil? |
22:53:25 | flaviu | OrionPK: Yes |
22:53:37 | OrionPK | so basically the ?? operator? |
22:53:40 | EXetoC | false and 0 too in python I think |
22:53:57 | EXetoC | and [] |
22:54:01 | OrionPK | http://en.wikipedia.org/wiki/Null_coalescing_operator |
22:55:23 | flaviu | Yes. I like perl's `//`, but `or` is more readable |
22:55:51 | Araq | ?? is also acceptable |
22:55:57 | Araq | C# uses it |
22:57:15 | flaviu | Yeah, that might be even better since it doesn't give two meanings to `or` |
22:58:59 | * | hoverbear quit () |
22:59:29 | superfunc_ | I like the C# approach |
22:59:43 | superfunc_ | Mostly to avoid confusion |
23:00:41 | * | Araq grumbles slightly |
23:01:16 | Araq | everything is confusing |
23:01:44 | Araq | (hash-table-set tab key value) |
23:02:01 | Araq | why is Lisp so unpopular? |
23:02:05 | flaviu | Of course, but the goal of a language is the be the least confusing of all |
23:02:17 | Araq | it's as "unconfusing" as it can get |
23:02:23 | superfunc_ | Not many people can grow the beards |
23:02:52 | Araq | probably because it got crazy with macros |
23:02:58 | Araq | which are "confusing" |
23:03:12 | flaviu | Araq: Did you hear about the guy who hacked the CIA and leaked the last few lines of the source code? |
23:03:29 | flaviu | ))))))))))))))))))))))))))) ))))))))))))))))))))))))))))))))))))))) )))))))))))))) |
23:03:39 | flaviu | Old internet joke I head somewhere. |
23:05:21 | Araq | I spent 3 days figuring out why my lambda lifting doesn't work for nested lambdas |
23:05:35 | Araq | questions I never asked during that time: |
23:05:42 | Araq | a) where is this defined? |
23:05:58 | Araq | b) is there some overloading goin on here causing the wrong proc to be invoked? |
23:06:19 | Araq | c) wtf does "transformOuterProc" mean? |
23:06:41 | Araq | but I guess I'm special |
23:07:12 | * | darkf joined #nimrod |
23:07:33 | dom96 | I actually really like that `or` idea too |
23:08:01 | Araq | hunting logical errors instead of enjoying a constant state of confusion |
23:08:14 | dom96 | I say we go for it :P |
23:08:49 | * | superfunc_ quit (Ping timeout: 246 seconds) |
23:10:20 | Araq | oh let's add (d) to this list: |
23:10:26 | dom96 | flaviu: Don't have an ETA sorry |
23:10:33 | Araq | d) is this a field access or a function call? |
23:11:17 | * | wan quit (Quit: WeeChat 1.0-dev) |
23:23:14 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:31:29 | * | BitPuffin joined #nimrod |
23:34:30 | Jehan_ | The "or"/"??" thing is really just a case of monadic chaining. |
23:34:37 | flaviu | Jehan_: Yes |
23:34:56 | Jehan_ | Not sure if it's better to special-case that. |
23:36:03 | * | BitPuffin quit (Ping timeout: 240 seconds) |
23:36:07 | flaviu | I don't think it'd be special cased, just part of the stdlib. |
23:36:37 | Araq | template `??`(a, b): expr = (let x = a; if x.isNil: b else: x) |
23:37:28 | Araq | the hygienic macro system is really paying off for these things |
23:38:06 | Jehan_ | My preference would be a non-operator, though. |
23:38:41 | Jehan_ | withDefault or something like that. |
23:39:55 | flaviu | I love long, descriptive names, but thats a bit long |
23:40:55 | Jehan_ | That's what autocompletion is for. :) |
23:41:51 | Jehan_ | Not that I'm wedded to any particular name, I'm just not a big fan of inventing new operators everywhere. |
23:41:59 | flaviu | C# does it |
23:42:08 | flaviu | JS does it with || |
23:42:13 | Jehan_ | And that's an argument for it? :) |
23:42:26 | OrionPK | yeah. Its not a new invention |
23:42:36 | flaviu | It's short and to the point |
23:43:27 | Jehan_ | OrionPK: The C# operator is? |
23:43:33 | flaviu | ?? |
23:43:37 | Jehan_ | Yeah. |
23:44:35 | Jehan_ | In any event, it's not about this particular case. |
23:45:07 | Jehan_ | But the risk of operator syntax proliferation. |
23:46:00 | Araq | an operator is just a friend you don't know yet |
23:46:33 | flaviu | `alternatively` could work, but its too hard to spell. `otherwise`? |
23:48:19 | Jehan_ | Anyhow, good night. :) |
23:48:27 | * | Jehan_ quit (Quit: Leaving) |
23:50:57 | Araq | flaviu: 'alt' ? |
23:52:39 | flaviu | maybe, but that's also a useful identifier |
23:54:11 | OrionPK | dom96 still here? |
23:54:18 | dom96 | yes |
23:54:48 | OrionPK | for the irc module, what is the expected way to handle not having an internet connection |
23:55:00 | OrionPK | when i get EvDisconnected, I try to .reconnect |
23:55:07 | OrionPK | but then I get an oserror or something |
23:55:43 | dom96 | yeah, I think reconnect is broken |
23:55:56 | OrionPK | mmm |
23:56:09 | OrionPK | got any suggested alternatives? |
23:56:46 | dom96 | figure out why it fails lol |
23:56:50 | OrionPK | lol |
23:57:06 | OrionPK | because |
23:57:06 | OrionPK | irc.sock = socket() if irc.sock == InvalidSocket: osError(osLastError()) |
23:57:21 | OrionPK | it should just keep polling the EvDisconnect IMO |
23:57:25 | OrionPK | every timeout seconds |
23:57:32 | OrionPK | or milliseconds rather |
23:57:37 | OrionPK | until it succeeds |
23:57:38 | * | saml_ joined #nimrod |
23:57:45 | dom96 | huh? |
23:57:51 | dom96 | oh. |
23:58:05 | OrionPK | if you call 'Reconnect()', and it fails, send another EvDisconnect |
23:58:16 | dom96 | You should still be able to create a socket even if you don't have an internet connection I think |
23:58:16 | flaviu | dom96: Is NimBot immune to ctcp's? EXetoC's bot used to crash. |
23:58:19 | dom96 | so something else is wrong |
23:58:33 | OrionPK | I disabled my network adapter |
23:58:36 | OrionPK | to test it |
23:58:38 | dom96 | OrionPK: But if you wanna try that, can't you just put reconnect in a try? |
23:58:39 | OrionPK | so that might be why |
23:58:48 | OrionPK | dom96 I did that |
23:58:53 | OrionPK | it worked |
23:58:57 | OrionPK | at least it appeared to |
23:59:08 | OrionPK | or well |
23:59:11 | OrionPK | I put a try in the reconnect |
23:59:23 | OrionPK | not sure if irc.lastReconnect = epochTime() was important |
23:59:30 | OrionPK | so I wanted to record that even if it failed |
23:59:31 | dom96 | OrionPK: It works in "artificial" situations for me |
23:59:36 | dom96 | i.e. when I purposely disconnect it |
23:59:48 | dom96 | but when it loses the connection naturally the reconnect call never worked |
23:59:57 | dom96 | of course testing that is very hard |