00:05:31 | * | edub4rt quit (Ping timeout: 240 seconds) |
00:05:54 | * | edub4rt joined #nim |
00:11:57 | * | lazypenguin joined #nim |
00:23:54 | * | sdw_ joined #nim |
00:25:33 | * | brson quit (Ping timeout: 240 seconds) |
00:25:56 | * | brson joined #nim |
00:26:41 | * | sdw quit (Ping timeout: 258 seconds) |
00:29:17 | * | freevryheid joined #nim |
00:29:25 | * | freevryheid is now known as fvs |
00:29:47 | fvs | hi, howto write object to file: this fails to give correct structure: http://pastebin.com/AzEp7zcE |
00:43:55 | * | Demon_Fox quit (Quit: Leaving) |
00:44:32 | * | brson quit (Quit: leaving) |
00:45:29 | Araq | fvs: use the marshal module |
01:00:48 | Araq | deterministic C code generation has arrived :-) |
01:01:16 | Araq | now minor changes to a module shouldn't trigger a whole lot of C code recompilations anymore |
01:02:11 | * | freezerburnV joined #nim |
01:07:22 | * | freezerburnV quit (Ping timeout: 272 seconds) |
01:09:14 | * | gokr quit (Ping timeout: 260 seconds) |
01:22:01 | * | freezerburnV joined #nim |
01:28:21 | * | brson joined #nim |
01:33:05 | freezerburnV | girvo: Evening/morning! |
01:34:10 | * | freezerburnV quit (Quit: Leaving) |
01:34:22 | * | freezerburnV joined #nim |
01:37:56 | * | FreezerburnV_ joined #nim |
01:40:49 | * | FreezerburnV_ quit (Client Quit) |
01:42:43 | * | FreezerburnV_ joined #nim |
01:44:58 | * | chemist69_ joined #nim |
01:48:05 | * | chemist69 quit (Ping timeout: 244 seconds) |
01:48:16 | * | saml_ quit (Quit: Leaving) |
01:57:29 | fvs | is it possible to get the length of a tuple? |
01:58:10 | * | Jesin quit (Quit: Leaving) |
02:00:21 | Araq | fvs: via macros.getType |
02:01:25 | fvs | how about iterating thru a tuple? |
02:02:40 | * | Jesin joined #nim |
02:04:53 | Araq | system.fieldPairs |
02:04:59 | Araq | system.fields |
02:05:02 | Araq | etc |
02:06:55 | * | FreezerburnV_ quit (Quit: Colloquy for iPhone - http://colloquy.mobi) |
02:06:59 | fvs | thx Araq |
02:16:37 | * | FreezerburnV_ joined #nim |
02:18:29 | girvo | Araq: Would the marshal module work for writing out TAR headers then? They're a 512 byte struct in C, and I've got an object representation of it, but I was using writeBytes on the array[len, char] values by hand lol |
02:21:22 | FreezerburnV_ | Hey girvo! |
02:24:27 | girvo | hey FreezerburnV_ :) |
02:24:54 | FreezerburnV_ | How's it going? |
02:24:59 | * | pregressive joined #nim |
02:29:06 | girvo | exhausted, huge week at work, but good because my Docker deployment daemon is coming along beautifully |
02:29:31 | FreezerburnV_ | Oooh, good to hear! Sorry work was so difficult though |
02:32:21 | FreezerburnV_ | I'm guessing because things were so intense you haven't had a chance to take a look at my email yet? |
02:37:20 | girvo | I had a very quick look and let my boss know, but until later this week everything is a bit crazy right now! :) |
02:37:29 | girvo | Thanks so much for sending it over! |
02:38:06 | girvo | Question: is there any other examples of the "pegs" module usage aside from the documentation itself? |
02:38:47 | FreezerburnV_ | girvo: no problem! Looking forward to hearing back when things are less crazy :D |
02:39:12 | * | brson_ joined #nim |
02:41:51 | * | brson quit (Ping timeout: 246 seconds) |
02:44:11 | girvo | Also, what language are people finding the easier to port from to nim? |
02:45:29 | FreezerburnV_ | I would think Python personally, due to the similarity |
02:45:34 | girvo | And lastly, I update the Rosetta Code entry, First-class functions, for Nim -- I ported the ES6 version basically, but I wonder if there's not a cleaner way of doing this: http://rosettacode.org/wiki/First-class_functions#Nim |
02:49:10 | * | pregressive quit (Remote host closed the connection) |
02:54:37 | FreezerburnV_ | girvo: You can get better function definitions via "import future". You can do "(X: int) -> int" instead |
02:54:58 | girvo | Yeah I left that out because I didn't want to rely on it for the example, hehe :) |
02:55:10 | girvo | And it wasn't _that_ much cleaner (though, a little bit) |
02:55:22 | FreezerburnV_ | It's part of the standard library so I don't see why not to use it |
02:55:31 | girvo | The main annoying bit is having to wrap the math functions to use them as {.procvar.} |
02:55:45 | girvo | Well, "annoying". It's not really that big a deal lol |
02:56:54 | FreezerburnV_ | I'm not familiar with procvar yet, what's the necessity of it? |
02:57:04 | * | lazypenguin quit (Quit: Leaving) |
02:57:55 | FreezerburnV_ | Can't you just pass a proc to something and it would work? I think I've done that? |
02:58:31 | FreezerburnV_ | Or at least assigned a defined proc to a callback property and it compiled and ran fine |
03:01:18 | FreezerburnV_ | But for now I need to get to sleep. Night! |
03:01:40 | * | pregressive joined #nim |
03:02:24 | girvo | Night :) |
03:05:38 | * | freezerburnV quit (Ping timeout: 250 seconds) |
03:05:38 | * | FreezerburnV_ is now known as FreezerburnV |
03:08:31 | * | FreezerburnV quit (Quit: Colloquy for iPhone - http://colloquy.mobi) |
03:19:25 | * | pregressive quit (Remote host closed the connection) |
03:28:46 | * | fvs quit (Quit: Leaving) |
03:44:57 | zds | Is nim pretty a thing? |
03:48:42 | * | Demos joined #nim |
03:50:13 | * | Demos quit (Client Quit) |
03:50:14 | * | pregressive joined #nim |
04:10:30 | * | pregressive quit (Remote host closed the connection) |
04:33:48 | * | edub4rt quit (Remote host closed the connection) |
05:06:52 | * | brson_ quit (Quit: leaving) |
05:11:49 | * | endragor joined #nim |
05:16:35 | * | yglukhov joined #nim |
05:22:24 | * | yglukhov quit (Ping timeout: 276 seconds) |
05:24:34 | * | yglukhov joined #nim |
05:51:55 | * | yglukhov quit (Remote host closed the connection) |
06:27:35 | * | vqrs quit (Ping timeout: 244 seconds) |
06:32:04 | * | endragor_ joined #nim |
06:34:26 | * | vqrs joined #nim |
06:35:26 | * | endragor quit (Ping timeout: 272 seconds) |
06:36:06 | cheatfate | girvo, and why you are using array[char] for TAR? |
06:41:29 | * | chemist69_ quit (Quit: WeeChat 1.5) |
06:45:13 | * | jeffc joined #nim |
06:47:22 | * | MyMind joined #nim |
06:49:34 | * | BlaXpirit_ joined #nim |
06:49:37 | * | wuehlmau1 joined #nim |
06:51:16 | * | here2bang is now known as afrigginelf |
06:52:01 | * | zama_ joined #nim |
06:52:45 | * | MyMind quit (Ping timeout: 276 seconds) |
06:53:17 | * | dariusc93 joined #nim |
06:54:05 | * | arnetheduck joined #nim |
06:54:24 | * | endragor_ quit (Remote host closed the connection) |
06:54:54 | * | endragor joined #nim |
06:55:45 | * | vqrs_ joined #nim |
06:55:55 | * | mtj__ joined #nim |
06:56:52 | * | mjanssen_ joined #nim |
07:01:51 | * | Amun_Ra_ joined #nim |
07:03:39 | * | joebo1 joined #nim |
07:04:43 | * | vqrs quit (*.net *.split) |
07:04:44 | * | wuehlmaus quit (*.net *.split) |
07:04:44 | * | zama quit (*.net *.split) |
07:04:44 | * | joebo quit (*.net *.split) |
07:04:45 | * | mtj_ quit (*.net *.split) |
07:04:45 | * | \u quit (*.net *.split) |
07:04:45 | * | mjanssen quit (*.net *.split) |
07:04:45 | * | BlaXpirit quit (*.net *.split) |
07:04:45 | * | Amun_Ra quit (*.net *.split) |
07:04:45 | * | jeffc_ quit (*.net *.split) |
07:04:46 | * | darius93 quit (*.net *.split) |
07:04:52 | * | zama_ is now known as zama |
07:07:18 | * | mjanssen_ quit (Quit: Lost terminal) |
07:08:51 | * | mjanssen joined #nim |
07:09:27 | akamaus | hi all. Is the following code supposed to typecheck? http://pastebin.com/EbKnqJqc |
07:11:47 | * | Trustable joined #nim |
07:12:01 | akamaus | it's listed as a negative example in https://github.com/nim-lang/Nim/issues/4084 which is marked fixed. |
07:12:35 | akamaus | but it is happily accepted by nim-0.14.2 |
07:14:47 | * | \u joined #nim |
07:16:55 | * | BlaXpirit_ quit (Quit: Bye) |
07:17:12 | * | BlaXpirit joined #nim |
07:17:45 | * | Ven_ joined #nim |
07:25:30 | * | BlaXpirit is now known as BlaXpirit_ |
07:25:36 | * | BlaXpirit_ is now known as BlaXpirit |
07:30:59 | * | girvo quit (Ping timeout: 244 seconds) |
07:34:35 | * | yglukhov joined #nim |
07:35:00 | * | arnetheduck quit (Ping timeout: 276 seconds) |
07:37:05 | * | gokr joined #nim |
07:37:32 | mjanssen | akamaus: also accpeted by nim master |
07:38:16 | akamaus | mjanssen, is it a regression or what? |
07:38:30 | mjanssen | let me check on the devel branch |
07:38:49 | akamaus | i've already tried, the same behavior |
07:39:59 | mjanssen | yeah, devel is master |
07:40:19 | mjanssen | I would say re-open the issue |
07:42:10 | akamaus | mjanssen, can you do it? |
07:45:47 | mjanssen | akamaus: no I cant, apparently you can only do this if you are a contributor |
07:47:08 | akamaus | mjanssen, well, hope someone with sufficient privileges notice our talk then :) |
07:49:10 | akamaus | patch which closed this issue apparently broke other things, astar package for example. |
07:50:34 | mjanssen | you could @mention the dev who fixed it on github (Araq) |
07:51:56 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:52:51 | * | Ven_ joined #nim |
07:58:28 | mjanssen | I do know Araq is a regular here so patience should go a long way |
08:04:54 | * | lautzu quit (Ping timeout: 276 seconds) |
08:06:00 | * | wuehlmau1 quit (Ping timeout: 272 seconds) |
08:22:29 | * | Amun_Ra_ is now known as Amun-Ra |
08:27:56 | * | PMunch joined #nim |
08:29:35 | * | Amun-Ra is now known as Amun_Ra |
08:38:39 | * | ephja joined #nim |
08:38:58 | * | wuehlmaus joined #nim |
08:39:23 | * | wuehlmaus is now known as Guest77864 |
08:47:11 | Araq | akamaus: meh, this looks so hard to fix -.- |
08:59:10 | cheatfate | Araq, is it possible to search in macro for function with particular arguments and result? |
08:59:30 | cheatfate | or maybe just by name, so i can check arguments by myself |
09:00:43 | Araq | sure, pass a 'typed' thing to the macro and then the macro can inspect the symbols (rather than the identifiers) |
09:00:58 | * | trusion quit (Ping timeout: 250 seconds) |
09:02:16 | PMunch | Is the guy who created this: github.com/zah/nim.vim around? |
09:09:27 | PMunch | Hmm, when Nimble doesn't find a package in the local package.json it asks if you want to check online. If you don't you get an unhandled exception "Package not found. [NimbleError]" |
09:09:45 | cheatfate | Araq, but i'm already in macro... i need to call another macro? |
09:09:49 | PMunch | It looks a bit ugly and IMO should be handled as a print and quit |
09:12:39 | cheatfate | I just want to check if object passed to my macro has appropriate method len() |
09:13:25 | cheatfate | and if not show error() |
09:13:41 | * | girvo joined #nim |
09:16:53 | Araq | cheatfate: use a concept instead |
09:18:06 | * | girvo quit (Ping timeout: 244 seconds) |
09:24:35 | vegansk | Araq, hi. Is it a bug or feature? I can't call generic proc for inherited object: https://gist.github.com/vegansk/f0f44132426b0de4106e19e1d3aed6d8 |
09:26:12 | Araq | oldest open bug iirc |
09:27:16 | * | xet7_ quit (Read error: Connection reset by peer) |
09:28:08 | vegansk | #88 :-( |
09:29:02 | * | Guest77864 is now known as wuehlmaus |
09:29:29 | * | desophos quit (Read error: Connection reset by peer) |
09:32:12 | Araq | seems to be hard to fix, people tried and failed. |
09:33:20 | vegansk | sadly :-( |
09:34:33 | Araq | what's up with the typedesc issue? |
09:35:53 | vegansk | Can't beat it :-( |
09:36:24 | Araq | what's the problem? |
09:37:34 | vegansk | After creation of tyCompositeTypeclass I changed typeRel so it can compare typeclasses: https://gist.github.com/vegansk/56ea52960d3586bc0c5b65244bb06852#file-test-nim-L12-L13 |
09:38:20 | vegansk | But after that I get an error "generics.nim(5, 16) Error: cannot instantiate: 'Data'" |
09:38:29 | Araq | I don't think you can return isEqual here |
09:38:46 | Araq | tried isGeneric? |
09:39:15 | vegansk | Yes. Same error |
09:39:46 | Araq | ok, well you don't bind anything |
09:39:55 | * | xet7_ joined #nim |
09:39:56 | * | xet7_ quit (Remote host closed the connection) |
09:40:04 | Araq | result = isGeneric |
09:40:09 | Araq | if result != isNone: |
09:40:09 | Araq | put(c.bindings, f, a) |
09:40:16 | Araq | ^ is then used |
09:40:27 | Araq | binding 'Data', hopefully |
09:40:36 | Araq | and then it can be instantiated |
09:41:09 | vegansk | Wow!!! That's it!!! Thanks! |
09:41:17 | Araq | it's like saying that the T in proc foo[T](a: T; b: array[T]) matches |
09:41:46 | Araq | but that's not enough. you need to bind it so the compiler can build the array[T] part |
09:42:38 | Araq | check if it needs to be isGeneric or isEqual please, I'm not sure |
09:43:13 | Araq | bindings are isGeneric, a binding match is isEqual iirc |
09:44:35 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:46:08 | vegansk | I restored isEqual and commented this line: https://gist.github.com/vegansk/56ea52960d3586bc0c5b65244bb06852#file-test-nim-L18. Works in both cases |
09:48:53 | Araq | no, that's wrong |
09:49:07 | Araq | don't comment out this line, it's important |
09:49:36 | Araq | use 'result = isGeneric' instead |
09:50:14 | vegansk | So, there is no difference :-) Because of ``if result != isNone: result = isGeneric |
09:52:27 | Araq | yes |
09:53:27 | vegansk | I can create new PR or I can force the update of the old PR's branch. how is better? |
09:55:37 | Araq | old PR |
09:55:43 | vegansk | Ok! |
09:57:01 | * | girvo joined #nim |
10:01:54 | * | girvo quit (Ping timeout: 276 seconds) |
10:11:48 | vegansk | Araq, one more thing, this variant is not working with implicit system.new invoke. Please look: https://gist.github.com/vegansk/56ea52960d3586bc0c5b65244bb06852#file-test-nim-L7-L14 |
10:13:10 | Araq | did that work with your original patch? |
10:13:46 | vegansk | Yes |
10:22:49 | * | Arrrr joined #nim |
10:24:03 | Araq | bummer -.- |
10:35:10 | vegansk | Araq, moreover, new variant broke one of my libraries that heavily uses generics ;-( |
10:35:42 | * | gokr quit (Ping timeout: 276 seconds) |
10:54:28 | * | mjanssen quit (Quit: leaving) |
10:57:53 | * | girvo joined #nim |
11:01:43 | * | mjanssen joined #nim |
11:02:28 | * | girvo quit (Ping timeout: 244 seconds) |
11:06:12 | * | afrigginelf quit (Ping timeout: 250 seconds) |
11:07:29 | * | KaiXBerg joined #nim |
11:14:15 | * | joebo1 is now known as joebo |
11:19:39 | * | nsf quit (Quit: WeeChat 1.5) |
11:28:52 | * | themagician joined #nim |
11:32:40 | * | ephja quit (Quit: WeeChat 1.5) |
11:35:04 | * | ics quit (Quit: Connection closed for inactivity) |
11:43:47 | * | bjz joined #nim |
11:48:24 | * | Ven_ joined #nim |
11:58:40 | * | girvo joined #nim |
12:03:25 | * | girvo quit (Ping timeout: 252 seconds) |
12:05:01 | * | elrood joined #nim |
12:06:03 | * | Arrrr quit (Ping timeout: 240 seconds) |
12:08:55 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:13:30 | * | Arrrr joined #nim |
12:18:23 | * | vegansk is now known as veganskaway |
12:24:49 | * | sp33der89 joined #nim |
12:25:54 | * | kaminacrank joined #nim |
12:26:02 | * | kaminacrank left #nim (#nim) |
12:29:50 | * | UberLambda joined #nim |
12:30:03 | * | UberLambda left #nim (#nim) |
12:30:07 | * | filcuc joined #nim |
12:31:13 | * | BitPuffin joined #nim |
12:36:58 | * | themagician quit (Ping timeout: 252 seconds) |
12:37:22 | * | themagician joined #nim |
12:38:29 | * | Satyajit quit (Quit: https://fnordserver.eu) |
12:43:51 | * | themagician quit (Ping timeout: 240 seconds) |
12:44:21 | * | themagician joined #nim |
12:49:40 | * | Learath2 quit (Ping timeout: 264 seconds) |
12:54:15 | * | Learath2 joined #nim |
12:54:58 | * | Satyajit joined #nim |
12:57:23 | * | bjz joined #nim |
12:59:35 | * | girvo joined #nim |
13:04:18 | * | girvo quit (Ping timeout: 272 seconds) |
13:06:45 | * | edub4rt joined #nim |
13:13:30 | * | Satyajit is now known as alberti |
13:20:37 | * | freezerburnV joined #nim |
13:28:50 | * | gokr joined #nim |
13:30:07 | * | girvo joined #nim |
13:30:59 | * | saml_ joined #nim |
13:31:38 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
13:32:06 | * | bjz joined #nim |
13:34:22 | * | girvo quit (Ping timeout: 244 seconds) |
13:35:38 | * | abruanese joined #nim |
13:36:04 | * | fredrik92 joined #nim |
13:43:21 | * | xet7b joined #nim |
13:45:51 | * | sp33der89 quit (Remote host closed the connection) |
13:48:48 | dom96 | yglukhov: cheatfate: http://www.nerds2nerds.com/?p=519, I'm curious, what is this about? :) |
13:50:15 | * | PMunch quit (Ping timeout: 264 seconds) |
13:55:34 | * | trusion joined #nim |
13:58:30 | * | fvs joined #nim |
13:58:49 | * | PMunch joined #nim |
14:05:47 | edub4rt | zielmicha: is reactor kinda of "finished" or is inactive? I am considering using it, as async core API is not satisfying all my needs |
14:07:41 | cheatfate | dom96, hi :) this is Bulgarian, not russian or ukrainian, but i can transfer you first sentence :) |
14:08:36 | dom96 | edub4rt: What needs is the async core API not satisfying? |
14:08:50 | * | saml_ quit (Quit: Leaving) |
14:10:59 | cheatfate | dom96, Discussion with Zahary Karadjov - one of the main maintainers of Nim language |
14:12:20 | dom96 | huh, how old is it? |
14:12:29 | dom96 | I haven't seen zahary in here in a very long time |
14:12:50 | cheatfate | dom96, looks like April 2015 |
14:13:40 | * | girvo joined #nim |
14:13:41 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:14:34 | Araq | I pinged him, not sure if he will join us here |
14:17:23 | * | euantor joined #nim |
14:17:29 | * | euant joined #nim |
14:17:30 | edub4rt | dom96: issues with await which I've created bugs, some API does not feel good for my taste, like all sendTo/connect in net.nim only take an address as a string meaning it will parse the string every connection made/packet sent, the lack better UDP support I'm having to work with SockAddr and ifdefs about platform which is too low level |
14:18:10 | * | girvo quit (Ping timeout: 252 seconds) |
14:18:57 | edub4rt | dom96: I saw that the common practice in net/async core is to use address as string everywhere, which just feels wrong for me, it should have been an IpAddress struct |
14:19:50 | dom96 | edub4rt: Fair enough. We can add an overload so that passing IpAddress works. |
14:20:11 | * | PMunch quit (Ping timeout: 244 seconds) |
14:20:29 | * | pregressive joined #nim |
14:20:44 | * | Demon_Fox joined #nim |
14:20:58 | * | PMunch joined #nim |
14:21:26 | Araq | zahary says |
14:21:48 | Araq | „it's a small local podcast, I actually got more exposure when I did a talk a local conference |
14:21:48 | Araq | it's online, but also in Bulgarian“ |
14:22:46 | Araq | and he is too busy to join us. |
14:25:20 | endragor | dom96: would be nice if asyncnet operations supported timeouts |
14:27:37 | edub4rt | endragor, I'll also need this too, but I think I can achieve that using sleepAsync, but I feel skeptic because there are rumors that sleepAsync downgrades performance |
14:29:10 | dom96 | We need a way to cancel futures too for proper timeouts |
14:31:37 | cheatfate | edub4rt, this is not rumors, its a fact! |
14:32:06 | cheatfate | https://github.com/nim-lang/Nim/issues/3909 |
14:32:19 | edub4rt | dom96: net/async also needs another struct or easier wait to deal with UDP sockets, this is how I currently send udps https://gist.github.com/edubart/5c85087b2a948c1baf3b6fd37575281a |
14:33:22 | edub4rt | with is just now right, I've to use platform's whens |
14:34:13 | dom96 | I know. |
14:34:18 | edub4rt | recvFrom is not easier either |
14:38:33 | * | gokr quit (Ping timeout: 240 seconds) |
14:40:06 | edub4rt | so I was thinking into using some libuv wrapper until this issues are resolved, while I can contribute with some small patchs or create workaround's in my codes, I cannot rework internals, as it would takes down my productivity, even if I did dom96 and core members would be skeptic about accepting it, like cheatfate's async rework |
14:40:40 | edub4rt | but currently I do not know if there is a libuv's wrapper is in better shape, it could be worse |
14:45:35 | * | ddl_smurf quit (Quit: ddl_smurf) |
14:47:00 | * | gokr joined #nim |
14:48:58 | * | brson joined #nim |
14:49:45 | * | Arrrr quit (Quit: WeeChat 1.4) |
14:57:40 | * | freezerburnV quit (Ping timeout: 272 seconds) |
15:03:49 | edub4rt | dom96: just hit another barrier with await "'yield' cannot be used within 'try' in a non-inlined iterator" seems like issue #2528 |
15:03:50 | edub4rt | try and await combination is sure with lot of issues |
15:06:25 | * | pregressive quit (Ping timeout: 260 seconds) |
15:10:30 | * | PMunch quit (Ping timeout: 244 seconds) |
15:10:30 | * | edub4rt quit (Ping timeout: 244 seconds) |
15:10:46 | * | jackkv quit (Ping timeout: 244 seconds) |
15:10:46 | * | gsingh93 quit (Ping timeout: 244 seconds) |
15:10:56 | * | edub4rt joined #nim |
15:11:07 | * | PMunch joined #nim |
15:11:10 | * | gsingh93 joined #nim |
15:12:49 | edub4rt | I think #2528 should be market as showstopper, it's for who works with combinations of exceptions and async |
15:12:57 | * | jackv joined #nim |
15:13:37 | * | girvo joined #nim |
15:14:25 | * | freezerburnV joined #nim |
15:17:51 | * | girvo quit (Ping timeout: 240 seconds) |
15:21:42 | * | gokr quit (Ping timeout: 276 seconds) |
15:27:08 | * | endragor quit (Ping timeout: 258 seconds) |
15:43:27 | * | nsf joined #nim |
15:47:06 | * | PMunch quit (Quit: leaving) |
15:51:48 | * | lautzu joined #nim |
15:56:35 | * | brson quit (Ping timeout: 260 seconds) |
15:59:37 | * | brson joined #nim |
16:03:57 | * | gokr joined #nim |
16:13:33 | * | girvo joined #nim |
16:14:24 | * | euant quit (Quit: Leaving) |
16:14:24 | * | euantor quit (Quit: Leaving) |
16:15:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
16:18:44 | * | girvo quit (Ping timeout: 272 seconds) |
16:19:30 | * | PMunch joined #nim |
16:19:49 | * | filcuc quit (Read error: Connection reset by peer) |
16:21:04 | dom96 | edub4rt: you don't need ``try`` to handle exceptions with async |
16:21:21 | dom96 | The reason `try` is so unstable is because it's a hack to work around a limitation in the compiler. |
16:21:36 | dom96 | My plan is to limit it and offer the alternative |
16:21:38 | dom96 | which boils down to: |
16:21:44 | dom96 | var fut = asyncCall() |
16:21:49 | dom96 | yield fut |
16:21:56 | dom96 | if fut.failed: handleError(fut.error) |
16:23:12 | * | ics joined #nim |
16:23:35 | cheatfate | dom96, but we already has this technique? people just like exceptions :( |
16:24:23 | cheatfate | and for some reason we rereverting this semantics... |
16:25:23 | dom96 | cheatfate: huh? |
16:25:32 | dom96 | I'm not sure what you mean |
16:25:38 | * | alberti quit (Quit: https://fnordserver.eu) |
16:25:53 | dom96 | The revert will mean that you cannot use 'await' instead of 'yield' in my above example |
16:25:58 | dom96 | *re-revert |
16:34:07 | cheatfate | await is mostly equal to yield |
16:36:05 | cheatfate | and why `try` `except` is a hack? |
16:38:10 | * | jjido joined #nim |
16:40:55 | * | fvs left #nim ("Leaving") |
16:50:30 | * | jjido quit (Remote host closed the connection) |
16:51:02 | * | euantor joined #nim |
16:51:05 | * | jjido joined #nim |
16:53:16 | dom96 | cheatfate: the transformation that the 'async' macro does in order to support is hacky |
16:53:20 | dom96 | *support it |
16:54:27 | * | brson quit (Ping timeout: 264 seconds) |
16:54:51 | * | brson joined #nim |
16:55:56 | * | yglukhov joined #nim |
16:55:57 | * | jjido quit (Ping timeout: 276 seconds) |
17:02:58 | * | euantor quit (Remote host closed the connection) |
17:07:47 | * | euantor joined #nim |
17:09:30 | * | euantor quit (Remote host closed the connection) |
17:13:34 | * | girvo joined #nim |
17:14:24 | * | brson quit (Ping timeout: 246 seconds) |
17:18:42 | * | girvo quit (Ping timeout: 276 seconds) |
17:26:02 | * | desophos joined #nim |
17:32:37 | * | edub4rt_ joined #nim |
17:35:22 | * | BitPuffin quit (Read error: Connection reset by peer) |
17:35:29 | * | mostworst joined #nim |
17:46:52 | * | euantor joined #nim |
17:48:21 | * | brson joined #nim |
17:49:05 | * | chemist69 joined #nim |
17:53:26 | yglukhov | Araq: what do you think of https://github.com/nim-lang/Nim/pull/4385 ? Is it needed? |
17:57:37 | * | jjido joined #nim |
18:01:39 | * | euantor quit (Remote host closed the connection) |
18:06:27 | * | euantor joined #nim |
18:06:29 | * | mostworst quit (Ping timeout: 244 seconds) |
18:10:39 | * | euantor quit (Remote host closed the connection) |
18:11:53 | * | euantor joined #nim |
18:13:30 | * | girvo joined #nim |
18:15:25 | * | brson quit (Ping timeout: 258 seconds) |
18:17:45 | * | girvo quit (Ping timeout: 246 seconds) |
18:21:09 | * | Satyajit joined #nim |
18:21:22 | * | brson joined #nim |
18:21:22 | * | brson quit (Client Quit) |
18:26:49 | * | pregressive joined #nim |
18:31:59 | * | brson joined #nim |
18:33:34 | * | edub4rt_ quit (Ping timeout: 250 seconds) |
18:37:19 | * | |2321 joined #nim |
18:41:19 | * | desophos quit (Remote host closed the connection) |
18:43:34 | * | desophos joined #nim |
18:44:49 | * | desophos quit (Remote host closed the connection) |
18:45:31 | * | brson quit (Ping timeout: 240 seconds) |
18:48:38 | * | desophos joined #nim |
18:49:03 | * | jjido quit (Ping timeout: 276 seconds) |
18:52:49 | * | aziz joined #nim |
18:58:11 | * | desophos quit (Remote host closed the connection) |
18:59:11 | * | TheLemonMan joined #nim |
18:59:30 | * | desophos joined #nim |
19:02:04 | * | euantor quit () |
19:04:19 | * | desophos quit (Ping timeout: 260 seconds) |
19:05:11 | * | desophos joined #nim |
19:06:32 | * | desophos quit (Remote host closed the connection) |
19:07:35 | * | desophos joined #nim |
19:13:31 | * | girvo joined #nim |
19:17:25 | * | desophos quit (Remote host closed the connection) |
19:17:50 | cheatfate | i want to talk about warnings in --verbosity:2 |
19:18:05 | cheatfate | there some [Uninit] warnings generated for array declarations |
19:18:17 | * | girvo quit (Ping timeout: 258 seconds) |
19:18:20 | cheatfate | so just want to ask is there proper way to initialize this arrays? |
19:21:20 | * | yglukhov quit (Remote host closed the connection) |
19:28:23 | Araq | cheatfate: var foo = [0, 1, 2, 3, 4] |
19:28:35 | Araq | for long arrays it's wise to do that with a macro |
19:29:00 | * | lazypenguin joined #nim |
19:29:21 | cheatfate | but what i can do if i declare array like `var a: array[100, string]` |
19:29:30 | * | desophos joined #nim |
19:30:14 | * | GangstaCat joined #nim |
19:30:46 | * | desophos quit (Remote host closed the connection) |
19:31:59 | * | desophos joined #nim |
19:33:16 | * | mostworst joined #nim |
19:36:37 | * | desophos quit (Ping timeout: 252 seconds) |
19:37:06 | Araq | cheatfate: what about it? in the future this needs to be var a: array[100, nil string] |
19:37:20 | cheatfate | aah ok, thank you |
19:41:48 | Araq | dom96: sooo ... given that you'll never be able to review cheatfate's PR :P |
19:41:52 | Araq | can we merge it? |
19:43:59 | cheatfate | Araq, but pr can't be merged automatically it needs to be updated again... |
19:44:39 | Araq | I'm usually smart enough to do the merge. Or you update it. |
19:45:02 | cheatfate | and i think i will remove `bad named` procs from my variant of asyncdispatch and there will be only `addXXXXX` functions |
19:45:51 | cheatfate | but i'm still vote for `upcoming` folder :) |
19:46:46 | cheatfate | I think its better to review only ioselectors.nim |
19:48:47 | Araq | yes, upcoming folder is good. |
19:50:32 | cheatfate | Araq, but i remember you wants to review it too :) |
19:51:32 | * | desophos joined #nim |
19:53:09 | Araq | I will, but I'd rather give you write access ;-) |
19:54:08 | cheatfate | But i really want your review |
19:55:52 | * | desophos quit (Ping timeout: 252 seconds) |
20:00:51 | * | yglukhov joined #nim |
20:03:43 | * | brson joined #nim |
20:06:44 | * | desophos joined #nim |
20:08:01 | * | KaiXBerg quit (Quit: Page closed) |
20:13:30 | * | girvo joined #nim |
20:15:46 | * | Matthias247 joined #nim |
20:17:52 | * | girvo quit (Ping timeout: 252 seconds) |
20:24:48 | * | mostworst quit (Ping timeout: 246 seconds) |
20:57:46 | * | |2321 quit (K-Lined) |
20:58:36 | * | ephja joined #nim |
21:13:35 | * | girvo joined #nim |
21:14:15 | * | euantor joined #nim |
21:18:27 | * | girvo quit (Ping timeout: 264 seconds) |
21:30:32 | gokr | fowl: Hey, you are on HN :) |
21:31:10 | gokr | https://news.ycombinator.com/item?id=11956231 |
21:31:21 | gokr | (wasn't me) |
21:36:35 | * | desophos quit (Remote host closed the connection) |
21:37:09 | * | desophos joined #nim |
21:42:39 | PMunch | Hmm, who of you was it that mentioned L.B. Stanza the other day? |
21:44:30 | def- | PMunch: gokr |
21:44:43 | gokr | Yeah |
21:44:48 | PMunch | wuehlmaus, and me are trying it out |
21:45:00 | gokr | Cool, let us know what you find |
21:45:10 | PMunch | Something strange going on with binary sizes |
21:45:17 | gokr | I noticed it mentioned deep in some thread about "interesting languages" |
21:45:33 | PMunch | The 22 byte hello world program compiles "down" to 3.7mb |
21:45:40 | gokr | Ouch. |
21:45:41 | PMunch | And it takes surprisingly long |
21:46:42 | fredrik92 | just A little bit overkill |
21:49:25 | * | euantor quit () |
21:50:52 | cheatfate | PMunch, looks like statically linked |
21:50:55 | * | lazypenguin quit (Remote host closed the connection) |
21:52:59 | PMunch | Yeah, I'd wager that it has some kind of runtime/library |
21:53:24 | PMunch | And that it either just bundles the runtime with every program or does not eliminate dead code when including the library |
21:54:44 | PMunch | And a solid four seconds as measured by time to compile |
21:57:48 | PMunch | Hmm, seems to take about 4 seconds regardless |
21:58:56 | PMunch | And all programs seem to take about 3.7mb as well |
21:59:28 | PMunch | I'm guessing that it might be quite easy for him to improve both aspects, and then it would be a very interesting language :) |
22:07:54 | * | aziz quit (Quit: Ex-Chat) |
22:09:57 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
22:13:27 | * | girvo joined #nim |
22:17:59 | * | girvo quit (Ping timeout: 260 seconds) |
22:19:31 | * | Trustable quit (Remote host closed the connection) |
22:21:51 | * | PMunch quit (Quit: leaving) |
22:22:57 | * | pregressive quit (Remote host closed the connection) |
22:25:03 | * | brson quit (Ping timeout: 240 seconds) |
22:28:04 | * | ddl_smurf joined #nim |
22:31:39 | * | desophos quit (Remote host closed the connection) |
22:35:54 | * | ddl_smurf quit (Ping timeout: 276 seconds) |
22:36:08 | * | ddl_smurf joined #nim |
22:38:31 | * | desophos joined #nim |
22:44:56 | * | brson joined #nim |
22:55:38 | * | flyx quit (Ping timeout: 258 seconds) |
23:00:41 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:03:21 | * | brson quit (Ping timeout: 246 seconds) |
23:08:38 | * | girvo joined #nim |
23:09:40 | * | sp33der89 joined #nim |
23:11:04 | * | elrood quit (Quit: Leaving) |
23:13:16 | sp33der89 | So I send a private message to one of the mods of the subreddit too but just in case this is quicker; The 3 documentation links are broken in the subredditbar |
23:14:19 | * | yglukhov quit (Remote host closed the connection) |
23:14:36 | * | brson joined #nim |
23:24:51 | dom96 | sp33der89: thanks, will fix |
23:25:04 | * | desophos quit () |
23:25:05 | * | ics quit (Quit: Connection closed for inactivity) |
23:25:46 | cheatfate | dom96, it looks like asyncdispatch eating stack space very fast |
23:26:00 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:27:28 | cheatfate | dom96, my code inside {.async.} failed due to stack smash if i make more then 3 iterations |
23:27:53 | cheatfate | under windows |
23:29:39 | ephja | nom |
23:37:19 | * | brson quit (Ping timeout: 244 seconds) |
23:43:23 | * | brson joined #nim |
23:45:24 | * | desophos joined #nim |
23:53:25 | sp33der89 | np just glad I could help hehe |
23:55:24 | * | flyx joined #nim |