| 00:04:05 | * | cmk_zzz_ quit (Ping timeout: 248 seconds) |
| 00:09:21 | * | brson quit (Quit: leaving) |
| 00:14:16 | * | aboisvert quit (Quit: aboisvert) |
| 00:24:23 | * | aboisvert joined #nim |
| 00:27:06 | def- | kulelu88: Maybe you'll find something in the links at the bottom: https://github.com/def-/nim-benchmarksgame |
| 00:28:59 | * | aboisvert quit (Ping timeout: 256 seconds) |
| 00:35:41 | * | aboisvert joined #nim |
| 00:46:32 | * | Sharcho quit (Ping timeout: 272 seconds) |
| 01:20:38 | * | banister joined #nim |
| 01:23:06 | * | johnsoft quit (Read error: Connection reset by peer) |
| 01:23:52 | * | johnsoft joined #nim |
| 01:26:02 | * | aboisvert quit (Quit: aboisvert) |
| 01:28:23 | * | pregressive quit (Remote host closed the connection) |
| 01:31:53 | * | touch joined #nim |
| 01:45:11 | * | Trustable quit (Remote host closed the connection) |
| 01:47:42 | * | Jesin quit (Quit: Leaving) |
| 02:00:06 | * | Jesin joined #nim |
| 02:04:29 | * | kulelu88 quit (Quit: Leaving) |
| 02:36:27 | * | darkf joined #nim |
| 02:38:41 | * | Demos_ joined #nim |
| 02:39:24 | * | EXetoC quit (Ping timeout: 245 seconds) |
| 02:42:07 | * | Demos quit (Ping timeout: 255 seconds) |
| 02:43:16 | * | johnsoft quit (Read error: No route to host) |
| 02:43:44 | * | johnsoft joined #nim |
| 02:45:33 | * | darkf_ joined #nim |
| 02:46:38 | * | darkf quit (Ping timeout: 244 seconds) |
| 02:47:23 | * | darkf_ is now known as darkf |
| 02:48:56 | * | milosn quit (Read error: Connection reset by peer) |
| 02:49:10 | * | milosn joined #nim |
| 03:10:01 | * | Demos__ joined #nim |
| 03:13:28 | * | Demos_ quit (Ping timeout: 272 seconds) |
| 03:14:38 | * | Demos joined #nim |
| 03:16:46 | * | Demos__ quit (Ping timeout: 255 seconds) |
| 03:24:36 | * | Demos_ joined #nim |
| 03:27:34 | * | Demos quit (Ping timeout: 255 seconds) |
| 03:33:29 | * | yglukhov joined #nim |
| 03:37:43 | * | yglukhov quit (Ping timeout: 250 seconds) |
| 04:07:51 | * | gsingh93 joined #nim |
| 04:33:20 | * | a5i quit (Quit: Connection closed for inactivity) |
| 04:35:17 | * | vendethiel quit (Ping timeout: 264 seconds) |
| 05:41:52 | tstm | Yeah, for example this one https://github.com/kostya/benchmarks/tree/master/havlak |
| 05:52:26 | * | skroll1 quit (Ping timeout: 272 seconds) |
| 05:56:13 | * | touch quit (Ping timeout: 245 seconds) |
| 05:57:16 | * | skroll1 joined #nim |
| 06:00:23 | * | gsingh93 quit (Ping timeout: 245 seconds) |
| 06:17:03 | * | NhanH_ joined #nim |
| 06:17:05 | * | AckZ_ joined #nim |
| 06:17:12 | * | endou_________ joined #nim |
| 06:17:20 | * | Araq_ joined #nim |
| 06:17:21 | * | biscarch_ joined #nim |
| 06:18:50 | * | n_v joined #nim |
| 06:19:44 | * | pleiosau1 joined #nim |
| 06:20:23 | * | Araq quit (Ping timeout: 252 seconds) |
| 06:20:23 | * | biscarch quit (Ping timeout: 252 seconds) |
| 06:20:23 | * | AckZ quit (Ping timeout: 252 seconds) |
| 06:20:23 | * | endou________ quit (Ping timeout: 252 seconds) |
| 06:20:23 | * | NhanH quit (Ping timeout: 252 seconds) |
| 06:20:23 | * | CARAM__ quit (Ping timeout: 252 seconds) |
| 06:20:24 | * | bw___ joined #nim |
| 06:20:25 | * | n0v quit (Ping timeout: 252 seconds) |
| 06:20:25 | * | pleiosaur quit (Ping timeout: 252 seconds) |
| 06:20:26 | * | hguux___ quit (Ping timeout: 252 seconds) |
| 06:20:26 | * | n1ftyn8 quit (Ping timeout: 252 seconds) |
| 06:20:26 | * | johnsoft quit (Ping timeout: 252 seconds) |
| 06:20:26 | * | bw_ quit (Ping timeout: 252 seconds) |
| 06:20:27 | * | n_v is now known as n0v |
| 06:20:29 | * | AckZ_ is now known as AckZ |
| 06:20:53 | * | biscarch_ is now known as biscarch |
| 06:21:11 | * | NhanH_ is now known as NhanH |
| 06:21:21 | * | johnsoft joined #nim |
| 06:24:59 | * | n1ftyn8 joined #nim |
| 06:26:50 | * | CARAM__ joined #nim |
| 06:30:06 | * | hguux___ joined #nim |
| 06:33:44 | * | mrkishi joined #nim |
| 06:34:19 | * | Kingsquee quit (Remote host closed the connection) |
| 06:53:01 | * | BlaXpirit joined #nim |
| 06:53:41 | * | Kingsquee joined #nim |
| 06:54:06 | * | JStoker quit (Killed (wilhelm.freenode.net (Nickname regained by services))) |
| 06:54:21 | * | JStoker joined #nim |
| 06:55:23 | * | hguux____ joined #nim |
| 06:58:08 | * | hguux___ quit (*.net *.split) |
| 06:58:08 | * | polde quit (*.net *.split) |
| 06:58:08 | * | mnemonikk quit (*.net *.split) |
| 06:58:08 | * | Joe-T quit (*.net *.split) |
| 06:58:09 | * | Guest67437 quit (*.net *.split) |
| 07:02:12 | * | Tennis joined #nim |
| 07:02:17 | * | zielmicha joined #nim |
| 07:02:41 | * | zielmicha is now known as Guest13624 |
| 07:03:44 | * | Joe-T joined #nim |
| 07:04:38 | * | mnemonikk joined #nim |
| 07:05:32 | * | jm116__ quit (Ping timeout: 250 seconds) |
| 07:06:49 | * | polde joined #nim |
| 07:11:48 | * | Jesin quit (Quit: Leaving) |
| 07:11:49 | * | Joe-T quit (Ping timeout: 276 seconds) |
| 07:11:49 | * | Joe-T joined #nim |
| 07:28:54 | * | BlaXpirit quit (Read error: Connection reset by peer) |
| 07:29:18 | * | Demon_Fox quit (Quit: Leaving) |
| 07:29:55 | * | BlaXpirit joined #nim |
| 07:36:41 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 07:38:25 | * | Demos_ quit (Read error: Connection reset by peer) |
| 07:53:34 | * | Ven joined #nim |
| 08:12:35 | * | Pisuke joined #nim |
| 08:30:51 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 08:44:52 | * | filcuc joined #nim |
| 08:52:58 | * | Ven joined #nim |
| 09:01:49 | * | mrkishi quit () |
| 09:05:55 | * | Trustable joined #nim |
| 09:16:58 | * | Matthias247 joined #nim |
| 09:31:28 | * | mrkishi joined #nim |
| 09:32:33 | * | mrkishi quit (Max SendQ exceeded) |
| 09:33:11 | * | mrkishi joined #nim |
| 09:33:51 | * | ingsoc joined #nim |
| 09:44:36 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 10:09:26 | * | Sharcho joined #nim |
| 10:12:33 | k1i | do procs w/ {.closure.} pragmas need to be GCUnref'd if present in an alloc'd object? |
| 10:15:45 | k1i | type system is telling me no - but i just wasn't sure how closure environments were allocated/torn down |
| 10:18:29 | * | TEttinger quit (Ping timeout: 248 seconds) |
| 10:26:29 | * | JinShil joined #nim |
| 10:44:01 | * | mrkishi quit () |
| 10:45:23 | * | bjz quit (Ping timeout: 245 seconds) |
| 10:48:55 | * | johnsoft quit (Ping timeout: 256 seconds) |
| 10:50:01 | * | johnsoft joined #nim |
| 10:51:38 | * | bjz joined #nim |
| 10:55:15 | * | Kingsquee quit (Quit: Konversation terminated!) |
| 10:56:02 | * | filcuc quit (Quit: Konversation terminated!) |
| 11:02:13 | * | Ven joined #nim |
| 11:08:48 | Araq_ | k1i: closures are on the GC heap, so yes you need to do that |
| 11:20:07 | * | EXetoC joined #nim |
| 11:28:53 | * | mrkishi joined #nim |
| 11:30:43 | * | mrkishi quit (Read error: Connection reset by peer) |
| 11:31:47 | * | mrkishi joined #nim |
| 11:34:56 | * | mrkishi quit (Max SendQ exceeded) |
| 11:35:35 | * | mrkishi joined #nim |
| 11:36:58 | * | banister joined #nim |
| 11:41:25 | * | xcombelle joined #nim |
| 11:45:01 | * | mrkishi quit (Ping timeout: 256 seconds) |
| 11:49:16 | * | a5i joined #nim |
| 11:57:21 | * | filcuc joined #nim |
| 11:59:05 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 11:59:34 | * | Ven joined #nim |
| 12:02:21 | * | mrkishi joined #nim |
| 12:03:26 | * | mrkishi quit (Max SendQ exceeded) |
| 12:04:07 | * | mrkishi joined #nim |
| 12:11:28 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 12:12:05 | * | BlaXpirit_ joined #nim |
| 12:14:20 | * | BlaXpirit quit (Ping timeout: 246 seconds) |
| 12:15:03 | * | mrkishi quit (Ping timeout: 256 seconds) |
| 12:23:36 | * | mrkishi joined #nim |
| 12:35:00 | * | aboisvert joined #nim |
| 12:37:28 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 12:56:52 | * | Ven joined #nim |
| 12:58:33 | * | xcombelle quit (Quit: Leaving) |
| 12:59:41 | * | xcombelle joined #nim |
| 13:11:20 | Sharcho | Is there a way I can do iterators on a FileStream, similar to the file ones, i.e.: for line in i.lines: ? |
| 13:21:09 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 13:23:53 | EXetoC | Sharcho: I did some grepping and found nothing |
| 13:25:47 | * | Ven joined #nim |
| 13:36:46 | * | ir2ivps10 joined #nim |
| 13:43:06 | Sharcho | EXetoC: thanks for that |
| 13:45:21 | fowlmouth | no |
| 13:46:43 | fowlmouth | http://nim-lang.org/streams.html#readLine,Stream,TaintedString |
| 13:47:54 | * | ChrisMAN joined #nim |
| 13:52:17 | Araq_ | why does interprocess communication never work? |
| 13:52:40 | Araq_ | I'm using a temp file instead of stdin once again |
| 13:54:52 | def- | Araq_: what's wrong with stdin? |
| 13:55:22 | Araq_ | it doesn't work, deadlocks the client or something |
| 13:55:34 | * | Araq_ is now known as Araq |
| 13:56:03 | Sharcho | fowlmouth: the problem with readLine that it is twice as slow compared to the lines iterator. |
| 14:00:43 | fowlmouth | Sharcho, streams are different use case |
| 14:10:06 | * | johnsoft quit (Ping timeout: 264 seconds) |
| 14:10:57 | * | johnsoft joined #nim |
| 14:13:18 | * | banister joined #nim |
| 14:20:16 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 14:22:18 | * | darkf quit (Quit: Leaving) |
| 14:23:20 | * | a5i quit (Quit: Connection closed for inactivity) |
| 14:28:07 | * | jeromegn joined #nim |
| 14:28:32 | jeromegn | anybody attempted to use the mongo package? there isn’t much info in there! |
| 14:29:28 | jeromegn | EXetoC: oh hello :) I see you’re the creator of the lib. is there any kind of boilerplate example? is the library working at all? |
| 14:29:38 | jeromegn | it’s ok if it isn’t just wondering. |
| 14:32:44 | * | Ven joined #nim |
| 14:33:18 | Araq | jeromegn: just try it. it should work. |
| 14:33:52 | Araq | so ... our marshal module it broken and I have no idea of how to fix it |
| 14:34:19 | EXetoC | there are unit tests in the mongo and bson modules. that's it I think |
| 14:34:24 | Araq | s.write(escapeJson($getChar(a))) |
| 14:34:37 | Araq | problem is: getChar is just an octet |
| 14:34:56 | Araq | and $ doesn't convert it to unicode, it puts a single byte into the string |
| 14:35:12 | Araq | escapeJson then treats it as utf-8 and fails |
| 14:35:21 | jeromegn | EXetoC: thanks, I’ll look at those. |
| 14:37:46 | jeromegn | just running a program with mongo imported gives me this error: .nimble/pkgs/mongo-0.3/mongo.nim(49, 15) Error: identifier expected, but found '(result)’ |
| 14:37:53 | jeromegn | even if no code is present. |
| 14:39:15 | EXetoC | right well that's the origin of the error. I'll look into it |
| 14:39:29 | EXetoC | odd |
| 14:40:29 | jeromegn | running nim 0.10.2 on OS X if that helps. |
| 14:43:35 | * | jeromegn quit (Quit: jeromegn) |
| 14:44:20 | * | gsingh93 joined #nim |
| 14:48:11 | * | JinShil quit (Quit: Konversation terminated!) |
| 14:58:50 | * | filcuc quit (Ping timeout: 252 seconds) |
| 15:01:38 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 15:12:49 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 15:15:43 | * | filcuc joined #nim |
| 15:15:47 | * | Ven joined #nim |
| 15:18:38 | * | mrkishi quit (Ping timeout: 252 seconds) |
| 15:19:58 | * | banister joined #nim |
| 15:20:03 | * | banister quit (Max SendQ exceeded) |
| 15:23:18 | * | banister joined #nim |
| 15:23:34 | * | mrkishi joined #nim |
| 15:24:39 | * | mrkishi quit (Max SendQ exceeded) |
| 15:25:20 | * | mrkishi joined #nim |
| 15:25:58 | Sharcho | jeromegn, same issue for me too on 0.10.2 (2015-04-21) on Linux |
| 15:26:25 | * | mrkishi quit (Max SendQ exceeded) |
| 15:27:06 | * | mrkishi joined #nim |
| 15:31:39 | Sharcho | Is there a way I can pass an iterator as a proc parameter? |
| 15:32:39 | Sharcho | I have a proc that process data and I would like to pass it different iterators depending on the source (e.g. a file iterator, an array iterator, etc) |
| 15:35:51 | def- | Sharcho: yes, but they have to be closure iterators |
| 15:36:10 | Sharcho | def-: thanks, I think I found an example, let me try it |
| 15:38:34 | def- | Sharcho: see this for another example: https://github.com/def-/nim-unsorted/blob/master/harshad.nim |
| 15:38:42 | fowlmouth | Araq, so its not being serialized as "\x01", its just raw byte \x01? |
| 15:49:20 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 15:49:55 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 15:55:37 | * | xcombelle quit (Remote host closed the connection) |
| 15:57:37 | * | Trustable quit (Remote host closed the connection) |
| 16:04:14 | * | matkuki joined #nim |
| 16:12:08 | * | notfowl joined #nim |
| 16:12:28 | matkuki | def-: Got time for another 'properties' question? |
| 16:13:48 | * | matkuki_ joined #nim |
| 16:15:15 | * | matkuki_ quit (Client Quit) |
| 16:15:34 | * | matkuki_ joined #nim |
| 16:16:22 | * | matkuki_ quit (Client Quit) |
| 16:16:54 | * | matkuki_ joined #nim |
| 16:17:58 | * | aboisvert_ joined #nim |
| 16:18:14 | * | onionhammer1 joined #nim |
| 16:18:16 | * | Amrykid2 joined #nim |
| 16:18:40 | * | armin joined #nim |
| 16:18:48 | * | federico3 joined #nim |
| 16:18:55 | * | Araq_ joined #nim |
| 16:19:31 | * | aboisvert quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | onionhammer quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | federico2 quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | yomiel quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | Amrykid quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | vinnie quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | reloc0 quit (Ping timeout: 246 seconds) |
| 16:19:31 | * | aboisvert_ is now known as aboisvert |
| 16:19:32 | * | Araq quit (Ping timeout: 246 seconds) |
| 16:19:32 | * | daurnimator quit (Ping timeout: 246 seconds) |
| 16:19:32 | * | clynamen quit (Ping timeout: 246 seconds) |
| 16:19:32 | * | def- quit (Ping timeout: 246 seconds) |
| 16:19:35 | * | Araq_ is now known as Araq |
| 16:19:36 | * | vince- joined #nim |
| 16:19:43 | * | matkuki_ quit (Client Quit) |
| 16:19:45 | * | armin is now known as reloc0 |
| 16:19:50 | * | yomiel joined #nim |
| 16:20:00 | * | smodo joined #nim |
| 16:20:27 | * | clynamen joined #nim |
| 16:21:57 | * | def- joined #nim |
| 16:22:06 | * | novist` joined #nim |
| 16:22:58 | * | matkuki quit (*.net *.split) |
| 16:22:58 | * | n1ftyn8 quit (*.net *.split) |
| 16:22:58 | * | biscarch quit (*.net *.split) |
| 16:22:58 | * | skroll1 quit (*.net *.split) |
| 16:22:58 | * | mal`` quit (*.net *.split) |
| 16:22:59 | * | fowlmouth quit (*.net *.split) |
| 16:22:59 | * | novist quit (*.net *.split) |
| 16:22:59 | * | tmku quit (*.net *.split) |
| 16:22:59 | * | ldlework quit (*.net *.split) |
| 16:22:59 | * | TylerE quit (*.net *.split) |
| 16:22:59 | * | pipeep quit (*.net *.split) |
| 16:22:59 | * | k1i quit (*.net *.split) |
| 16:23:02 | * | novist` is now known as novist |
| 16:23:06 | * | daurnimator joined #nim |
| 16:23:14 | * | mal`` joined #nim |
| 16:24:34 | * | Ven joined #nim |
| 16:25:33 | * | matkuki joined #nim |
| 16:29:25 | notfowl | oo i see |
| 16:29:36 | * | skroll1 joined #nim |
| 16:29:37 | notfowl | before that was \u0001 now its {} |
| 16:29:48 | * | ldlework joined #nim |
| 16:30:16 | notfowl | er no it still works |
| 16:31:00 | * | zielmicha joined #nim |
| 16:31:00 | * | jj2baile_ joined #nim |
| 16:31:24 | * | zielmicha is now known as Guest95994 |
| 16:31:29 | * | cazov_ joined #nim |
| 16:32:57 | * | delian66 joined #nim |
| 16:33:51 | * | Guest13624 quit (Ping timeout: 246 seconds) |
| 16:33:51 | * | delian66_ quit (Ping timeout: 246 seconds) |
| 16:33:51 | * | jj2baile quit (Ping timeout: 246 seconds) |
| 16:33:51 | * | cazov quit (Ping timeout: 246 seconds) |
| 16:33:52 | * | clynamen quit (Ping timeout: 246 seconds) |
| 16:34:28 | * | clynamen joined #nim |
| 16:35:58 | elbow_json | http://nim-lang.org/tut1.html#slices |
| 16:36:02 | elbow_json | "The slice's bounds can hold any value supported by their type, but it is the proc using the slice object which defines what values are accepted." |
| 16:36:24 | elbow_json | does this mean that the square brackets are a proc that accepts ints? |
| 16:38:05 | * | mrkishi quit () |
| 16:39:59 | matkuki | Is there a way to combine the procedures in the example into one: https://bpaste.net/show/cf5bfbfc297b ? |
| 16:41:47 | def- | matkuki: just leave out the second one? |
| 16:41:56 | def- | matkuki: should still work |
| 16:42:33 | matkuki | def-: "Error: undeclared identifier: 'visible_corner='" ? |
| 16:42:49 | def- | matkuki: are you on the devel branch? |
| 16:43:13 | def- | ah wait, maybe that uses the actual object field, which has the same name |
| 16:43:22 | matkuki | def-: No, a month old devel version. |
| 16:45:24 | matkuki | def-: Yes, if the attribute 'visible_corner' is set to public '*', then it works. Is there a solution to this? |
| 16:45:45 | def- | can't think of one right now. i guess you don't want to just make visible_corner public |
| 16:45:55 | matkuki | Yes |
| 16:46:09 | * | tomku joined #nim |
| 16:46:58 | * | pipeep joined #nim |
| 16:48:12 | * | n1ftyn8 joined #nim |
| 16:50:38 | repax | elbow_json: Almost correct. []= is a proc that takes a Slice[int] |
| 16:51:08 | elbow_json | repax: Thanks! |
| 16:51:22 | repax | Let me find it for you... |
| 16:51:31 | repax | elbow_json: http://nim-lang.org/system.html#[]=,string,Slice[int],string |
| 16:51:47 | elbow_json | lol what a url... |
| 16:52:16 | elbow_json | repax: fantastic |
| 16:52:20 | * | TEttinger joined #nim |
| 16:53:00 | * | TylerE joined #nim |
| 16:53:36 | elbow_json | repax: did you have to inspect the html for that anchor? |
| 16:54:00 | repax | elbow_json: No, I linked from http://nim-lang.org/theindex.html |
| 16:54:28 | elbow_json | ah! i see. |
| 16:54:38 | elbow_json | is this everything nim? |
| 16:55:04 | repax | I dunno |
| 16:55:59 | * | biscarch joined #nim |
| 16:56:27 | repax | Also, elbow_json: If you're using the devel branch (which you should) the slicing syntax is updated. Now it's [a..^b] instead of [a..-b] |
| 16:56:45 | elbow_json | oh? |
| 16:56:52 | * | a5i joined #nim |
| 16:56:55 | * | yglukhov joined #nim |
| 16:57:03 | elbow_json | I'm using a version from months ago |
| 16:57:32 | repax | New features and niceties are added daily |
| 17:01:23 | * | mrkishi joined #nim |
| 17:01:39 | * | yglukhov quit (Ping timeout: 265 seconds) |
| 17:02:29 | * | mrkishi quit (Max SendQ exceeded) |
| 17:03:08 | * | mrkishi joined #nim |
| 17:10:51 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 17:12:14 | * | Jesin joined #nim |
| 17:16:36 | * | Sharcho quit (Ping timeout: 240 seconds) |
| 17:19:16 | * | OnO joined #nim |
| 17:20:09 | * | yglukhov joined #nim |
| 17:27:22 | * | OnO is now known as ono |
| 17:29:41 | * | filcuc quit (Ping timeout: 265 seconds) |
| 17:30:02 | * | Jesin quit (Quit: Leaving) |
| 17:30:19 | * | ono is now known as OnO |
| 17:30:26 | * | OnO quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 17:32:00 | * | Jesin joined #nim |
| 17:33:26 | * | mrkishi quit (Ping timeout: 250 seconds) |
| 17:36:08 | * | mrkishi joined #nim |
| 17:40:33 | * | tomku is now known as tmku |
| 17:51:19 | Araq | so ... I got compile-times down from 23s down to 1s |
| 17:51:36 | def- | Araq: sounds great! what's the trick? |
| 17:52:03 | Araq | I offload the DFA optimization to an external process |
| 17:52:10 | elbow_json | is there an 'inf' in nim? |
| 17:52:20 | Araq | elbow_json: system.Inf or inf |
| 17:52:36 | elbow_json | undeclared identifier: 'inf' |
| 17:52:43 | elbow_json | was it added recently? |
| 17:53:00 | elbow_json | my nim is from months ago |
| 17:53:06 | Araq | no, it's system.Inf |
| 17:53:09 | Araq | since forever |
| 17:53:16 | elbow_json | Araq: thanks |
| 17:54:13 | Araq | so ... marshal.$$ and marshal.to now work at compile-time |
| 17:54:21 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 17:54:40 | Araq | so you can staticExec and then convert the output back to strongly typed stuff at compile-time |
| 17:55:35 | Araq | this is a good workaround for the missing FFI support IMHO |
| 17:56:28 | Araq | as a nice side-effect you can actually debug these things since the marshal format is JSON |
| 17:57:25 | repax | Sounds very powerful |
| 17:59:44 | * | banister joined #nim |
| 18:06:44 | * | HakanD joined #nim |
| 18:14:41 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 18:18:11 | * | clynamen quit (*.net *.split) |
| 18:25:16 | * | banister joined #nim |
| 18:36:34 | * | HakanD quit (Quit: Be back later ...) |
| 18:37:50 | * | xcombelle joined #nim |
| 18:39:04 | notfowl | Araq, you changed it to use the type api |
| 18:39:30 | notfowl | i was just looking at that today |
| 18:44:12 | * | Demon_Fox joined #nim |
| 18:50:01 | * | clynamen joined #nim |
| 18:55:11 | * | ingsoc quit (Quit: Leaving.) |
| 18:58:04 | * | vendethiel joined #nim |
| 19:01:13 | * | clynamen quit (*.net *.split) |
| 19:02:28 | * | banister quit (Read error: Connection reset by peer) |
| 19:05:53 | * | banister joined #nim |
| 19:10:37 | * | Pisuke quit (Ping timeout: 264 seconds) |
| 19:12:23 | * | clynamen joined #nim |
| 19:15:05 | elbow_json | is there a way to print the stringy representation of a variable's name? |
| 19:15:09 | * | MagusOTB joined #nim |
| 19:19:44 | matkuki | Anyone seen flaviut? |
| 19:20:25 | notfowl | elbow_json, macros.astToStr(expression) ? |
| 19:20:39 | MagusOTB | Is there a way to make an emum or equivalent where names of the members can be overloaded? |
| 19:21:06 | notfowl | you do it at declaration or overload `$` yourself |
| 19:21:10 | * | milosn quit (Read error: Connection reset by peer) |
| 19:21:11 | elbow_json | notfowl: Thanks! |
| 19:21:14 | MagusOTB | type E1 = enum FOO = 1, BAR = 2; type E2 = enum BAZ = 5, BAR = 6; |
| 19:21:22 | notfowl | type x = enum a = "my a", b, c = "x", d = (10,"DDD") |
| 19:22:12 | MagusOTB | cause it seems to me like the compiler should be able to distinguish BARs based on what the proc its being passed to is. |
| 19:22:38 | notfowl | it lets you define BAR twice? |
| 19:22:42 | MagusOTB | no, it doesn't |
| 19:22:50 | MagusOTB | I'm asking if there's a way to do something like that |
| 19:23:08 | MagusOTB | or if it's just nonsense and I should keep using prefixes |
| 19:23:09 | notfowl | oh |
| 19:23:38 | matkuki | Can an immediate macro be inside an immediate macro? |
| 19:23:52 | notfowl | if you want them both to be "BAR" when you call $ on it you can do what i said about enummember = (n, "str") |
| 19:25:29 | MagusOTB | nah, I want them both to be BAR so the API is sexier. |
| 19:25:43 | notfowl | ok so BAR appears in code, is it 2 or 6? |
| 19:26:03 | MagusOTB | depends on if it's being passed to a proc that takes an E1 or an E2 |
| 19:26:31 | notfowl | ohh i did not even see e2 |
| 19:26:36 | onionhammer1 | hmm.. im getting an segfault on markandsweep :( |
| 19:26:46 | MagusOTB | yeah, sorry, I didn't want to spam IRC to I put them on one lie |
| 19:26:48 | MagusOTB | *line |
| 19:26:49 | * | milosn joined #nim |
| 19:27:13 | notfowl | MagusOTB, only way it will work if e2 is in a separate module or you use pure enums |
| 19:27:39 | * | cazov_ is now known as cazov |
| 19:27:44 | MagusOTB | if they're in different modules, what happens when a module imports both of those? |
| 19:28:01 | notfowl | would have to be modulename.BAR |
| 19:28:18 | MagusOTB | what's a pure enum then? |
| 19:28:25 | notfowl | E1.BAR and E2.BAR |
| 19:28:48 | notfowl | regular bar doesnt exist |
| 19:29:28 | * | milosn quit (Read error: Connection reset by peer) |
| 19:29:31 | MagusOTB | That sounds reasonable... how do you define such a thing? |
| 19:29:42 | notfowl | throw {.pure.} on it |
| 19:30:04 | MagusOTB | that goes after 'E1' and before the =, right? |
| 19:30:50 | repax | onionhammer1: forgot to unref something? |
| 19:31:07 | notfowl | MagusOTB, yea E1* {.pure.} = |
| 19:31:48 | onionhammer1 | repax i think its probably a library issue |
| 19:32:25 | onionhammer1 | with the asyncnet stuff |
| 19:32:30 | * | onionhammer1 is now known as onionhammer |
| 19:32:32 | onionhammer | hm |
| 19:32:43 | repax | Can be tricky to hunt down. |
| 19:32:46 | * | milosn joined #nim |
| 19:33:26 | * | wb joined #nim |
| 19:33:35 | * | xcombelle quit (Quit: Leaving) |
| 19:33:57 | MagusOTB | notfowl: Yeah, that works. Thanks :D |
| 19:34:17 | * | elbow_json quit (Read error: Connection reset by peer) |
| 19:34:19 | * | elbow__ joined #nim |
| 19:36:21 | * | wb_ quit (Ping timeout: 248 seconds) |
| 19:37:37 | * | smodo quit (Ping timeout: 256 seconds) |
| 20:06:21 | * | Kingsquee joined #nim |
| 20:14:01 | * | yglukhov_ joined #nim |
| 20:14:01 | * | yglukhov quit (Read error: Connection reset by peer) |
| 20:15:46 | * | yglukhov__ joined #nim |
| 20:15:46 | * | yglukhov_ quit (Read error: Connection reset by peer) |
| 20:18:56 | * | yglukhov___ joined #nim |
| 20:18:56 | * | yglukhov__ quit (Read error: Connection reset by peer) |
| 20:22:09 | * | yglukhov____ joined #nim |
| 20:22:09 | * | yglukhov___ quit (Read error: Connection reset by peer) |
| 20:22:13 | * | endragor joined #nim |
| 20:31:29 | * | matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]) |
| 20:35:42 | * | yglukhov_____ joined #nim |
| 20:35:43 | * | yglukhov____ quit (Read error: Connection reset by peer) |
| 20:36:25 | * | yglukhov______ joined #nim |
| 20:36:25 | * | yglukhov_____ quit (Read error: Connection reset by peer) |
| 20:49:03 | * | brson joined #nim |
| 20:55:48 | * | gsingh93 quit (Ping timeout: 250 seconds) |
| 20:57:27 | * | saml_ joined #nim |
| 21:05:51 | * | yglukhov_______ joined #nim |
| 21:05:51 | * | yglukhov______ quit (Read error: Connection reset by peer) |
| 21:07:11 | * | yglukhov________ joined #nim |
| 21:07:11 | * | yglukhov_______ quit (Read error: Connection reset by peer) |
| 21:09:21 | repax | Is it possible to have non-type generic parameters, say integers? I'd like to instantiate objects that have fixed arrays within. The size of the arrays would be parameterised. |
| 21:09:38 | BlaXpirit_ | repax, yeah |
| 21:10:08 | * | gsingh93 joined #nim |
| 21:10:11 | repax | BlaXpirit_: Nice! Could you show an example declaration? |
| 21:11:06 | BlaXpirit_ | repax, type T[N: static[int]] = object; arr: array[N, char] |
| 21:13:10 | repax | BlaXpirit_: Thanks a lot! So it's "static[T]" |
| 21:13:33 | BlaXpirit_ | yes. can also make a function that returns an array like that |
| 21:14:14 | * | endragor quit (Remote host closed the connection) |
| 21:16:23 | * | Mat4 joined #nim |
| 21:16:30 | Mat4 | hello |
| 21:16:43 | repax | Hi there |
| 21:16:53 | Araq | hi Mat4 |
| 21:23:32 | Mat4 | what's new ? |
| 21:24:05 | notfowl | repax, it may or may not work |
| 21:24:23 | repax | notfowl: It worked great |
| 21:25:15 | repax | At least for what I needed. |
| 21:40:00 | * | Sharcho joined #nim |
| 21:49:36 | * | vendethiel quit (Ping timeout: 276 seconds) |
| 21:51:46 | * | vendethiel joined #nim |
| 22:03:03 | MagusOTB | how do I deliberately construct a null pointer? |
| 22:03:19 | notfowl | pointer(nil) ? |
| 22:03:32 | MagusOTB | perfect, thanks |
| 22:03:36 | MagusOTB | I was trying pointer(0) |
| 22:03:49 | notfowl | nil can be inferred as pointer |
| 22:04:07 | MagusOTB | oh neat |
| 22:04:14 | MagusOTB | it does vhave value 0, right? |
| 22:04:17 | notfowl | pointer() is a type conv |
| 22:04:21 | notfowl | yea |
| 22:08:27 | Araq | MagusOTB: no offense, but how can you start programming in Nim and not know about 'nil'? |
| 22:08:35 | * | MyMind quit (Quit: WeeChat 1.2-dev) |
| 22:08:49 | Araq | in other words: what *did* you read before starting? |
| 22:09:23 | Araq | and please note that I'm curious, I am not telling you to rtfm |
| 22:11:10 | federico3 | how to connect to a unix domain socket? |
| 22:14:35 | * | vendethiel quit (Ping timeout: 256 seconds) |
| 22:19:21 | Araq | federico3: Domain.AF_UNIX ? |
| 22:20:49 | federico3 | yep, and I'm calling sock.connect with a ptr to SockAddr, and a Socklen |
| 22:29:18 | * | cmk_zzz_ joined #nim |
| 22:31:11 | * | vendethiel joined #nim |
| 22:36:07 | * | bjz quit (Ping timeout: 256 seconds) |
| 22:38:30 | * | bjz joined #nim |
| 22:39:32 | MagusOTB | Araq: read the first chunk of the tutorial I and skimmed the rest of it and then started blundering around the opengl library |
| 22:40:36 | MagusOTB | I don't quite understand how indirection and type coersion work yet, but I think I'm getting better. |
| 22:44:01 | Araq | ok I see |
| 22:44:12 | MagusOTB | what I didn't know was that nil could behave like C NULL, in some languages (python) the nil-equivalent doesn't convert easily to actual 0 |
| 22:44:21 | * | BlaXpirit_ quit (Quit: Quit Konversation) |
| 22:44:28 | MagusOTB | and when I'm calling opengl, I need it to be actually 0 |
| 22:47:50 | * | brson quit (Quit: leaving) |
| 22:48:05 | * | yglukhov________ quit (Quit: Be back later ...) |
| 22:49:00 | * | cmk_zzz_ quit (Ping timeout: 256 seconds) |
| 22:55:06 | * | vendethiel quit (Ping timeout: 264 seconds) |
| 22:57:18 | Sharcho | I'm trying to create a template that returns a value and works with the indented syntax, is that possible? This is what I've tried: http://pastebin.com/K6D9eLFr |
| 22:59:07 | Sharcho | Or should I be using the do notation instead? |
| 23:03:12 | * | clarior joined #nim |
| 23:03:34 | reactormonk | pigmej, I've been messing with it, let's see how far I get |
| 23:03:47 | * | a5i is now known as vikaton |
| 23:05:18 | * | Mat4 left #nim ("Konversation terminated!") |
| 23:07:00 | * | bjz quit (Ping timeout: 244 seconds) |
| 23:09:11 | * | bjz joined #nim |
| 23:11:41 | * | vendethiel joined #nim |
| 23:11:51 | def- | Sharcho: There's a benchmarking library btw: https://github.com/winksaville/nim-benchmark |
| 23:24:52 | * | OnwardEuler joined #nim |
| 23:29:39 | def- | Sharcho: hm, with do it just works |
| 23:29:56 | def- | let elapsed = bench do: sleep(1) |
| 23:31:04 | Sharcho | How do I invoke the actions from a do notation proc? |
| 23:31:44 | reactormonk | Sharcho, "the actions"? |
| 23:32:20 | def- | Sharcho: you don't have to change your template i think |
| 23:34:12 | Sharcho | def-: Doesn't work for me, I'm getting: Error: wrong number of arguments (0.10.2) |
| 23:35:17 | * | vendethiel quit (Ping timeout: 248 seconds) |
| 23:35:40 | Sharcho | reactormonk: by "actions" I mean the code that runs inside the template (e.g. sleep(1)) in this case. I assumed I had to change the template code to the one similar to the example in the do notation docs: http://nim-lang.org/manual.html#do-notation |
| 23:36:36 | def- | Sharcho: segfaults for me with 0.10.2, but works fine with devel: https://gist.github.com/def-/f70127acee8afb70b518 |
| 23:37:14 | reactormonk | Sharcho, test.nim(8, 14) Error: wrong number of arguments hm. |
| 23:37:21 | reactormonk | oh, you mentioned that |
| 23:39:08 | reactormonk | Sharcho, basically let elapsed = bench do: |
| 23:42:19 | Sharcho | Is there a relatively stable git revision of 0.10.3? |
| 23:42:31 | * | DSADFFFDDDD joined #nim |
| 23:43:29 | def- | Sharcho: I'd just recommend bootstrapping the current one, seems to work fine |
| 23:49:37 | * | clarior quit (Ping timeout: 264 seconds) |
| 23:51:40 | * | vendethiel joined #nim |