| 00:03:57 | * | pregressive quit (Remote host closed the connection) |
| 00:14:34 | * | strcmp1 quit (Ping timeout: 250 seconds) |
| 00:15:00 | * | strcmp1 joined #nim |
| 00:22:19 | * | FedeOmoto joined #nim |
| 00:23:36 | * | vendethiel quit (Ping timeout: 272 seconds) |
| 00:30:30 | * | pregressive joined #nim |
| 00:37:46 | * | yglukhov quit (Remote host closed the connection) |
| 01:03:01 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 01:15:21 | * | vendethiel joined #nim |
| 01:19:21 | * | xcombelle quit (Remote host closed the connection) |
| 01:50:43 | * | yymoto2 joined #nim |
| 02:05:51 | * | yglukhov joined #nim |
| 02:10:18 | * | yglukhov quit (Ping timeout: 244 seconds) |
| 02:24:41 | * | vendethiel quit (Ping timeout: 250 seconds) |
| 03:08:58 | * | Demos quit (Read error: Connection reset by peer) |
| 03:18:13 | * | Kingsquee quit (Read error: Connection reset by peer) |
| 03:18:20 | * | Kingsqueee joined #nim |
| 03:20:21 | * | johnsoft joined #nim |
| 03:25:20 | * | yglukhov joined #nim |
| 03:26:03 | * | keyle joined #nim |
| 03:29:53 | * | yglukhov quit (Ping timeout: 244 seconds) |
| 03:39:43 | * | pregressive quit (Read error: Connection reset by peer) |
| 03:40:19 | * | pregressive joined #nim |
| 03:44:57 | * | NimBot joined #nim |
| 03:45:52 | * | Kingsqueee quit (Ping timeout: 246 seconds) |
| 03:48:29 | * | Demon_Fox quit (Ping timeout: 244 seconds) |
| 03:49:50 | * | yymoto2 quit (Ping timeout: 240 seconds) |
| 03:50:24 | * | pregressive quit (Remote host closed the connection) |
| 03:51:14 | * | pregressive joined #nim |
| 03:52:17 | * | Demon_Fox joined #nim |
| 03:56:45 | * | pregressive quit (Ping timeout: 244 seconds) |
| 04:00:01 | * | Demon_Fox quit (Quit: Leaving) |
| 04:11:39 | * | darkf joined #nim |
| 04:17:15 | * | vl409 joined #nim |
| 04:20:38 | * | Demon_Fox joined #nim |
| 04:25:47 | * | Kingsqueee joined #nim |
| 04:43:05 | * | FedeOmoto quit (Ping timeout: 240 seconds) |
| 04:54:43 | * | yymoto2 joined #nim |
| 05:00:03 | * | FedeOmoto joined #nim |
| 05:05:14 | * | xet7bot is now known as xet7_ |
| 06:03:57 | * | cyraxjoe quit (Ping timeout: 250 seconds) |
| 06:09:54 | * | cyraxjoe joined #nim |
| 06:13:57 | * | yglukhov joined #nim |
| 06:16:04 | * | NimBot joined #nim |
| 06:16:15 | * | BitPuffin|osx quit (Ping timeout: 265 seconds) |
| 06:18:08 | * | yglukhov quit (Ping timeout: 250 seconds) |
| 06:33:16 | * | cabreraM516 joined #nim |
| 06:45:19 | * | cabreraM516 left #nim ("Textual IRC Client: www.textualapp.com") |
| 06:52:49 | * | johnsoft quit (Read error: Connection reset by peer) |
| 06:56:33 | * | FedeOmoto quit (Quit: Leaving) |
| 07:03:36 | * | johnsoft joined #nim |
| 07:08:19 | * | yymoto2 quit (Ping timeout: 246 seconds) |
| 07:15:14 | * | Varriount quit (Read error: Connection reset by peer) |
| 07:18:31 | * | NimBot joined #nim |
| 07:20:08 | * | jszymanski joined #nim |
| 07:28:12 | * | heinrich5991 quit (Ping timeout: 244 seconds) |
| 07:30:59 | * | heinrich5991 joined #nim |
| 07:32:52 | * | yglukhov joined #nim |
| 07:37:14 | * | vendethiel joined #nim |
| 07:37:21 | * | yglukhov quit (Ping timeout: 244 seconds) |
| 07:43:15 | * | Moix joined #nim |
| 07:43:21 | * | Moix quit (Client Quit) |
| 07:47:48 | * | xcombelle joined #nim |
| 07:54:14 | * | Demon_Fox quit (Quit: Leaving) |
| 07:54:24 | * | Matthias247 joined #nim |
| 08:00:19 | * | vendethiel quit (Ping timeout: 246 seconds) |
| 08:01:51 | * | yglukhov joined #nim |
| 08:04:11 | * | vendethiel joined #nim |
| 08:16:56 | * | irrequietus joined #nim |
| 08:19:59 | * | NimBot joined #nim |
| 08:24:29 | * | X67r joined #nim |
| 08:26:59 | * | unclechu joined #nim |
| 09:09:42 | * | victor-rene joined #nim |
| 09:24:02 | * | matkuki joined #nim |
| 09:27:17 | * | matkuki quit (Client Quit) |
| 09:35:47 | * | ^aurora^ joined #nim |
| 09:38:44 | NimBot | nim-lang/Nim devel 755d86f xland [+0 ±1 -0]: Add link button for IUP wrapper... 2 more lines |
| 09:38:44 | NimBot | nim-lang/Nim devel 50fa175 Dominik Picheta [+0 ±1 -0]: Merge pull request #3271 from xland/devel... 2 more lines |
| 09:57:15 | * | Enamex joined #nim |
| 10:19:26 | * | aziz joined #nim |
| 10:26:13 | * | matkuki joined #nim |
| 10:28:04 | * | gokr joined #nim |
| 10:28:41 | * | Kingsqueee quit (Quit: http://i.imgur.com/EsXzoum.png) |
| 10:30:30 | * | matkuki quit (Client Quit) |
| 10:37:44 | * | Trustable joined #nim |
| 11:24:45 | * | golak joined #nim |
| 11:29:43 | * | jszymanski quit (Quit: computer sleeps...) |
| 11:30:01 | * | BitPuffin|osx joined #nim |
| 11:32:51 | * | tymat quit (Ping timeout: 260 seconds) |
| 11:34:43 | * | boopisaway quit (Ping timeout: 252 seconds) |
| 11:35:34 | * | tymat joined #nim |
| 11:36:06 | * | zemm quit (Ping timeout: 260 seconds) |
| 11:36:41 | * | zemm joined #nim |
| 11:48:33 | * | boopisaway joined #nim |
| 11:53:45 | * | rkj-b joined #nim |
| 11:55:29 | * | rkj-b quit (Client Quit) |
| 12:01:50 | * | gunn quit (Read error: Connection reset by peer) |
| 12:04:31 | * | gunn joined #nim |
| 12:06:55 | * | strcmp1 quit (Quit: Leaving) |
| 12:10:24 | * | matkuki joined #nim |
| 12:11:52 | NimBot | nim-lang/Nim devel 7d9a748 Simon Hafner [+0 ±1 -0]: removed coro prefixes from coro.nim |
| 12:11:52 | NimBot | nim-lang/Nim devel d876960 Simon Hafner [+0 ±1 -0]: removed coro deprecations |
| 12:11:52 | NimBot | nim-lang/Nim devel 24655ec Simon Hafner [+0 ±1 -0]: coro.sleep -> suspend |
| 12:11:52 | NimBot | nim-lang/Nim devel fa99a60 Dominik Picheta [+0 ±1 -0]: Merge branch 'coro-remove-prefix' of https://github.com/reactormonk/nim into reactormonk-coro-remove-prefix |
| 12:11:52 | NimBot | 2 more commits. |
| 12:16:27 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 12:43:58 | * | polde quit (Quit: q) |
| 12:48:45 | * | polde joined #nim |
| 12:57:21 | * | polde quit (Quit: q) |
| 12:58:58 | * | polde joined #nim |
| 13:07:32 | gokr | federico3: We also need a [email protected] subscriber on the list. |
| 13:08:08 | gokr | No idea where that confirmation email ends up though |
| 13:08:20 | gokr | And I can't subscribe someone else. |
| 13:09:42 | * | Enamex quit (Ping timeout: 246 seconds) |
| 13:11:43 | dom96 | gokr: I think it will end up in Araq's mail box |
| 13:13:11 | keyle | hello |
| 13:16:04 | dom96 | hey keyle |
| 13:19:22 | matkuki | Can someone look at this and tell me why the code using the second type example runs at 50% slower? |
| 13:19:23 | matkuki | https://bpaste.net/show/19114dc5b04b |
| 13:19:38 | * | enamex joined #nim |
| 13:19:50 | matkuki | sorry, 'runs 50% slower' |
| 13:21:01 | matkuki | Just adding the attribute without using or initializing it does this! |
| 13:21:55 | nchambers | my guess would be because it has to build the seq |
| 13:22:32 | matkuki | nchambers: When does it build the seq? |
| 13:22:46 | nchambers | no idea |
| 13:24:38 | federico3 | gokr: that's why I was asking dom96 about setting up a mailbox :) |
| 13:25:15 | dom96 | federico3: gokr: pretty sure *@nim-lang.org is redirected to Araq's email |
| 13:25:17 | dom96 | or mine |
| 13:25:59 | dom96 | matkuki: I think we need to see the rest of your code. |
| 13:26:15 | federico3 | can someone help me implement "structs" in Nim for: https://paste.debian.net/309666/ |
| 13:26:20 | * | X67r quit (Quit: leaving) |
| 13:31:22 | * | enamex is now known as Enamex |
| 13:38:19 | dom96 | federico3: I can try, not sure how it works. |
| 13:43:56 | * | keyle left #nim ("Leaving") |
| 13:44:03 | * | keyle joined #nim |
| 13:45:45 | federico3 | dom96: creating C structs is the tricky part for me |
| 13:46:21 | dom96 | I guess you would need to do it at compile-time? |
| 13:46:32 | gokr | dom96: So then you may have a confirmation email there |
| 13:46:54 | federico3 | dom96: why? |
| 13:49:21 | dom96 | hrm |
| 13:49:30 | dom96 | I guess you just need to build a binary representation of a struct |
| 13:50:05 | federico3 | hm, I think so. But eptr is the address of "essid", which is known only at runtime |
| 13:51:33 | dom96 | Then it's just a bunch of alloc and addr calls. |
| 13:53:14 | federico3 | any example? |
| 14:00:02 | dom96 | let me try to create one |
| 14:00:04 | matkuki | dom96: It's a lot of code, but the Line object is used almost everywhere. If I comment out the 'locked_object_list*: seq[ActiveObject]' attribute, it runs OK. |
| 14:00:06 | matkuki | Also this is the only attribute that uses a custom ref object type, every other attribute is either an ordinal type or a tuple of ordinal types. |
| 14:01:34 | federico3 | https://github.com/qqtop/Nim-Snippets/blob/8100141ba677e2f6db6095b412af5a43de6828a9/private.nim#L65 |
| 14:01:39 | federico3 | this might be a good example |
| 14:01:51 | * | victor-rene quit (Ping timeout: 246 seconds) |
| 14:06:45 | dom96 | federico3: I was thinking something like this: https://gist.github.com/dom96/d0152d95df75ac5790bf |
| 14:07:00 | dom96 | These might come in useful https://github.com/fowlmouth/nimlibs/blob/master/fowltek/pointer_arithm.nim |
| 14:07:17 | federico3 | https://i.imgur.com/xVyoSl.jpg |
| 14:24:16 | dom96 | :) |
| 14:27:55 | federico3 | looks like I can create a seq[ParentClass] and put child classes inside |
| 14:28:20 | federico3 | yet, calling a method on every child in a loop fails (Nim expects the method to belong to the parent) |
| 14:40:54 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 14:43:59 | federico3 | yet, calling a method on every child in a loop fails (Nim expects the method to belong to the parent) |
| 14:44:04 | federico3 | oops |
| 14:45:23 | * | keyle quit (Quit: <Morbo> Chitchat achieved!) |
| 14:46:41 | * | Guest88902 is now known as taotetek |
| 14:47:45 | gokr | federico3: Sounds not what I have experienced. |
| 14:48:16 | gokr | http://goran.krampe.se/2014/10/31/nim-and-oo-part-iii/ |
| 14:58:44 | federico3 | gokr: the code is never doing "for f in seq_of_all_fruit_types: f.calcPrice" |
| 14:59:08 | federico3 | oops, it is |
| 14:59:19 | gokr | I compare, that's the point :) |
| 14:59:40 | gokr | But who knows, perhaps something broke since then. But its surely meant to work. |
| 15:00:10 | federico3 | but I see there's a calcPrice on Fruit |
| 15:00:33 | gokr | One thing that is trickier is doing a super call. Currently you either use procCall or use fowl's macro for "super". |
| 15:00:41 | gokr | Ah, yeah, you need that I presume. |
| 15:02:27 | federico3 | meh, and if I create it it will be run instead of the method on the child classes |
| 15:03:43 | federico3 | that's really weird. |
| 15:04:16 | gokr | Ahmm... ordering in source file? |
| 15:04:29 | gokr | IIRC Andreas mentioned some odd gotcha |
| 15:07:14 | * | NimBot joined #nim |
| 15:22:43 | * | cabreraM516 joined #nim |
| 15:23:07 | * | cabreraM516 quit (Remote host closed the connection) |
| 15:31:21 | * | Enamex quit (Quit: Page closed) |
| 15:46:55 | * | strcmp1 joined #nim |
| 15:47:14 | * | NimBot joined #nim |
| 15:51:00 | * | kilon quit (Read error: Connection reset by peer) |
| 15:51:50 | * | kilon joined #nim |
| 15:53:46 | * | Jesin joined #nim |
| 15:55:55 | * | thepreacher joined #nim |
| 15:59:20 | * | rollo joined #nim |
| 16:04:43 | matkuki | dom96: The Line object (https://bpaste.net/show/19114dc5b04b) is used everywhere, more specifically a sequence of Line objects. |
| 16:04:44 | matkuki | They are used in many procedures and usually always passed by value. Any ideas? |
| 16:05:31 | dom96 | how do speed it up? |
| 16:05:34 | dom96 | *how to |
| 16:05:39 | matkuki | Yes |
| 16:05:42 | dom96 | you could try making Line a ref |
| 16:05:56 | matkuki | Almost the same. |
| 16:06:06 | matkuki | Performance wise. |
| 16:06:23 | * | enamex joined #nim |
| 16:06:25 | dom96 | can't really help unless I see how you use that object |
| 16:07:14 | enamex | Hi! Is there any page currently that explains proc syntax? (specifically the "several parameters of of the same type need the type written only once" part) |
| 16:07:23 | dom96 | hello enamex |
| 16:07:37 | enamex | *bows* |
| 16:08:18 | * | NimBot joined #nim |
| 16:08:23 | dom96 | enamex: This whole section might be helpful: http://nim-lang.org/docs/manual.html#procedures |
| 16:08:50 | dom96 | But it is the manual so it might be a bit technical |
| 16:09:22 | dom96 | What more would you like to know about that statement? |
| 16:11:27 | enamex | Sometimes types are like `(arg_int_1, arg_int_2: int, arg_str_1, arg_str_2: string)` and sometimes like `(arg_int_1, arg_int_2: int; arg_str_1, arg_str_2: string)` |
| 16:11:54 | enamex | ^(semicolon after type of several arguments vs comma also at the same position, in different examples) |
| 16:11:58 | * | jszymanski joined #nim |
| 16:14:19 | dom96 | That could probably be explained better. |
| 16:14:30 | dom96 | Good news is that you don't have to worry about that most of the time. |
| 16:14:39 | dom96 | The two pieces of code you gave are equivalent. |
| 16:15:11 | dom96 | The semicolon comes in handy when you want to have generic parameters without explicitly specifying a generic type. |
| 16:15:46 | dom96 | proc foo[T](x: T, y: T) # This is a generic proc which explicitly specifies a generic type T. |
| 16:17:42 | dom96 | hrm, now that I'm actually looking at it, the compiler says that "typeless parameters are deprecated" |
| 16:18:50 | dom96 | But anyway, you can also just have: |
| 16:18:55 | dom96 | proc foo(x, y) |
| 16:19:16 | dom96 | And I believe that is equivalent to proc foo[T](x: T, y: T) |
| 16:19:40 | dom96 | whereas proc foo(x; y) is equivalent to proc foo[T,Y](x: T, y: Y) |
| 16:20:05 | dom96 | I would recommend specifying generics explicitly though |
| 16:22:33 | enamex | Ah, so it is. I'd have expected (arg, arg_: typ; argy, argy_: typ_) to be a good way to not glaze over commas in signatures; guess not :/ |
| 16:23:33 | dom96 | You can use it that way too if you want |
| 16:25:12 | * | ^aurora^ joined #nim |
| 16:34:13 | federico3 | oO |
| 16:34:23 | federico3 | dom96: the forum is not logging to file |
| 16:35:53 | enamex | Got it, thanks a lot! |
| 16:38:27 | * | FedeOmoto joined #nim |
| 16:40:27 | dom96 | federico3: hrm? |
| 16:40:40 | federico3 | there's no logging support |
| 16:42:25 | * | darkf_ joined #nim |
| 16:46:04 | * | darkf quit (Ping timeout: 244 seconds) |
| 16:50:58 | * | Arrrr joined #nim |
| 16:52:02 | federico3 | dom96: #63 |
| 17:20:06 | dom96 | federico3: please don't do that, just use 'echo' for now. |
| 17:22:24 | federico3 | urgh, too late :_( |
| 17:29:17 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 17:32:10 | * | thepreacher quit () |
| 17:37:30 | * | enamex left #nim ("Bye") |
| 17:38:09 | * | matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]) |
| 17:43:21 | * | rollo quit (Read error: Connection reset by peer) |
| 18:16:03 | * | darkf_ is now known as darkf |
| 18:19:42 | * | ^aurora^ joined #nim |
| 18:46:59 | * | infinity0 quit (Remote host closed the connection) |
| 18:47:22 | * | infinity0 joined #nim |
| 18:56:11 | * | Matthias247 joined #nim |
| 18:57:10 | * | Demon_Fox joined #nim |
| 19:04:26 | * | vl409 quit (Remote host closed the connection) |
| 19:06:34 | federico3 | dom96: there seems to be no concept of parent post. All posts refer to the beginning of the thread |
| 19:07:09 | federico3 | dom96: do you plan to implement that in future? |
| 19:09:38 | * | darkf quit (Quit: Leaving) |
| 19:14:35 | * | aziz quit (Remote host closed the connection) |
| 19:23:52 | * | matkuki joined #nim |
| 19:28:29 | * | matkuki quit (Client Quit) |
| 19:31:55 | federico3 | is it expected that modules require thread:on or should they fallback to no threading if possible? |
| 19:36:02 | dom96 | federico3: you mean multi-level threads? |
| 19:37:49 | federico3 | dom96: when posts are in a tree (aka each post has a parent that is usually another post rather than the thread "root" post) |
| 19:38:32 | dom96 | yeah, so basically what reddit does |
| 19:38:43 | federico3 | or any mailing list |
| 19:42:12 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 19:48:53 | * | Demos joined #nim |
| 19:58:33 | * | xcombelle quit (Remote host closed the connection) |
| 19:59:43 | * | matkuki joined #nim |
| 20:12:22 | federico3 | how can I detect if --threads:on is being set? |
| 20:16:00 | * | Arrrr quit (Quit: WeeChat 1.2) |
| 20:20:55 | matkuki | dom96: Remember the Line type I showed you earlier? https://bpaste.net/show/19114dc5b04b |
| 20:20:57 | matkuki | There are new Lines created every cycle using this: https://bpaste.net/show/f2e51255bf03 |
| 20:21:57 | dom96 | yep |
| 20:22:40 | matkuki | The performance stays the same if I replace the attribute 'locked_object_list*: seq[ActiveObject]' to a pointer to a fixed array of pointer: 'locked_object_list*: ptr array[0..10, ptr ActiveObject]' |
| 20:23:12 | matkuki | Is there a way to use something safer than 'ptr' and retain the same performance? |
| 20:24:04 | federico3 | dom96: so should I wait for the forum to have post parents or connect every message to the "root" post? |
| 20:25:38 | matkuki | By the way the New_Line proc is called about a hundred times a cycle. |
| 20:26:26 | dom96 | federico3: the latter |
| 20:27:17 | * | ^aurora^ joined #nim |
| 20:27:44 | dom96 | matkuki: I'm not sure what's going on there. |
| 20:27:52 | dom96 | You're not initialising the seq so it shouldn't add any overhead |
| 20:28:02 | * | Demon_Fox quit (Quit: Leaving) |
| 20:31:08 | * | NimBot joined #nim |
| 20:31:53 | matkuki | dom96: Thanks for trying. |
| 20:32:12 | dom96 | matkuki: if you could reproduce it in a small test case it would help |
| 20:32:17 | dom96 | then I could easily try to optimising it |
| 20:33:27 | matkuki | It's quite a big program already. Will try to make short example and get back to you, thanks. |
| 20:37:18 | reactormonk | federico3, when defined(threads) |
| 20:37:21 | reactormonk | ... maybe? |
| 20:37:25 | federico3 | nope |
| 20:39:07 | federico3 | dom96 new PR https://github.com/nim-lang/nimforum/pull/64 |
| 20:39:35 | * | NimBot joined #nim |
| 20:44:56 | * | bendiken joined #nim |
| 20:47:44 | * | pregressive joined #nim |
| 21:00:26 | * | matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]) |
| 21:11:21 | * | pregressive quit (Remote host closed the connection) |
| 21:13:59 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 21:21:17 | * | NimBot joined #nim |
| 21:31:05 | * | unclechu quit (Quit: Leaving.) |
| 21:34:18 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
| 21:36:23 | * | jszymanski quit (Quit: computer sleeps...) |
| 21:39:36 | * | kilon quit () |
| 21:43:19 | * | pregressive joined #nim |
| 21:50:13 | * | NimBot joined #nim |
| 22:10:24 | * | NimBot joined #nim |
| 22:34:52 | * | yglukhov quit (Remote host closed the connection) |
| 22:37:15 | * | NimBot joined #nim |
| 22:42:44 | * | Trustable quit (Remote host closed the connection) |
| 22:56:40 | * | irrequietus quit () |
| 23:04:00 | * | vendethiel quit (Ping timeout: 272 seconds) |
| 23:07:50 | * | ^aurora^ joined #nim |
| 23:12:37 | * | NimBot joined #nim |
| 23:35:25 | * | yglukhov joined #nim |
| 23:40:23 | * | yglukhov quit (Ping timeout: 264 seconds) |
| 23:43:47 | * | golak quit (Quit: leaving) |
| 23:45:09 | * | Kingsquee joined #nim |
| 23:47:19 | * | Demos quit (Ping timeout: 252 seconds) |