00:06:34 | * | yglukhov quit (Remote host closed the connection) |
00:11:45 | * | yglukhov joined #nim |
00:13:08 | filwit | it's odd, procs which take typedesc (and maybe all type-classes) don't seem work as "properties".. but only those.. |
00:13:12 | filwit | eg: |
00:13:22 | filwit | proc blah(T:typedesc): int = 2 |
00:13:47 | filwit | var x = int.blah # fails |
00:13:54 | filwit | proc blah(i:int): int = 2 |
00:13:59 | filwit | var y = 2.blah # works |
00:14:18 | filwit | not sure if bug or expected behavior |
00:24:36 | Araq | filwit: int.blah works for me |
00:26:18 | filwit | eh, i literally just tried this with the latest devel... one sec |
00:26:39 | * | Demos quit (Remote host closed the connection) |
00:28:49 | filwit | eh, i literally just tried this with the latest devel... one sec |
00:29:08 | filwit | g'damn alt-tab... |
00:29:34 | filwit | yeah wtf.. int.blah is working for me now... |
00:29:55 | filwit | but typetraits.name does not work as T.name.. which is why tried this |
00:33:55 | Araq | T.name works as well |
00:34:57 | filwit | not for me, just tried.. one sec |
00:39:00 | filwit | sorry, doing a few different things ATM.. but the error I'm getting is: |
00:39:02 | filwit | Error: type mismatch: got (Page, T.(macros.name|typetraits.name|...)) |
00:39:02 | filwit | but expected one of: |
00:39:02 | filwit | events.defineEnable(item: typed, typeName: static[string]) |
00:39:23 | filwit | 'events.defineEnabled' is a proc in my module |
00:39:45 | filwit | err.. it's macro, not a proc |
00:40:24 | filwit | it works if i call it like: `defineEnabled(item, name(T))` but not like `defineEnabled(item, T.name)` |
00:41:07 | filwit | will try to isolate the scenario a bit |
00:42:15 | Araq | continues to work when I import macros |
00:42:19 | * | Demon_Fox joined #nim |
00:42:21 | Araq | has to do with your macro |
00:43:30 | filwit | it's being called from a generic proc |
00:43:56 | * | brson quit (Quit: leaving) |
00:44:42 | filwit | 'defineEnable` is a macro, but it gets called from a `proc enable[T](item:T) = defineEnable(item, T.name)` |
00:45:33 | filwit | i'm not sure how it could be the `defineEnable` or my `enable` proc since it works just fine with `name(T)` |
00:46:31 | * | AckZ quit () |
00:46:41 | * | AckZ joined #nim |
00:47:51 | filwit | and what's really odd is that my 'int.blah' test was literally just failing with the same error message.. but now it seems to work.. wtf.. |
00:49:10 | filwit | and what's really odd is that my 'int.blah' test was literally just failing with the same error message.. but now it seems to work.. wtf.. |
00:49:16 | filwit | omg.. |
00:49:49 | * | johnsoft quit (Ping timeout: 246 seconds) |
00:50:20 | filwit | okay, nevermind I rolled back to the actual code and the error was from using typetraits.name specifically in the 'blah' function.. my bad |
00:50:40 | filwit | it's still odd how that function seems to no want to work as a property for me |
00:50:47 | filwit | it's still odd how that function seems to no want to work as a property for me |
00:51:52 | filwit | testing again, looks like typetraits.name does in fact work like a property just fine in the simple `blah` example... sorry for the confusion.. |
00:52:07 | filwit | going to try and isolate why it's not working with my other function though |
00:52:34 | Araq | not really. it's tough to translate x.f to f(x) and in general cannot always work |
00:52:46 | Araq | the manual mentions the exceptions |
00:53:06 | * | yglukhov quit (Remote host closed the connection) |
00:53:20 | * | yglukhov joined #nim |
00:56:18 | * | yglukhov quit (Remote host closed the connection) |
00:57:44 | filwit | yeah.. the only thing I can see is that the actual call to `enable` is being generated by another macro.. and perhaps somehow that messes things up |
00:58:41 | filwit | anyways, not a huge deal since it if use the direct call syntax |
01:07:33 | * | Jaood joined #nim |
01:14:59 | * | elbow_jason quit (Quit: Leaving) |
01:21:43 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
01:27:12 | * | jaco60 quit (Ping timeout: 244 seconds) |
01:42:07 | * | elbow joined #nim |
02:03:47 | * | Jaood quit (Ping timeout: 256 seconds) |
02:15:55 | * | biscarch quit () |
02:16:16 | * | biscarch joined #nim |
02:27:45 | * | clone1018 quit () |
02:27:57 | * | clone1018 joined #nim |
02:49:21 | * | FedeOmoto quit (Quit: Leaving) |
02:49:34 | * | Demos joined #nim |
03:01:23 | * | Demos quit (Remote host closed the connection) |
03:04:08 | * | Demos joined #nim |
03:10:39 | Varriount | Araq: Concerning locks, doesn't the predefined numerical ordering complicate lock handling across different libraries? |
03:12:16 | Varriount | Araq: Like, if my personal code is using lock levels 34 and 35, and some lower level library code uses lock levels 10 and 11, and yet another library is using levels 35 and 38, things could get rather complicated. |
03:12:38 | * | MyMind joined #nim |
03:12:42 | * | Sembei quit (Read error: No route to host) |
03:12:53 | Varriount | Wouldn't an explicit ordering based on names be better? |
03:14:23 | * | badsectors joined #nim |
03:14:38 | * | badsectors left #nim ("Leaving") |
03:16:45 | * | Demos quit (Remote host closed the connection) |
03:17:40 | * | Pisuke joined #nim |
03:18:22 | * | MyMind quit (Read error: Connection reset by peer) |
03:21:34 | * | Pisuke quit (Read error: Connection reset by peer) |
03:22:27 | * | Pisuke joined #nim |
03:25:55 | * | Sembei joined #nim |
03:26:25 | * | Pisuke quit (Read error: Connection reset by peer) |
03:27:07 | * | vendethiel joined #nim |
03:29:56 | * | Sembei quit (Read error: No route to host) |
03:30:00 | * | Demos joined #nim |
03:30:08 | * | MyMind joined #nim |
03:31:59 | * | Demos quit (Remote host closed the connection) |
03:33:32 | * | MyMind quit (Read error: Connection reset by peer) |
03:34:24 | * | Demos joined #nim |
03:34:25 | * | Pisuke joined #nim |
03:38:08 | * | Pisuke quit (Read error: Connection reset by peer) |
03:38:24 | * | Sembei joined #nim |
03:41:56 | * | Sembei quit (Read error: No route to host) |
03:42:33 | * | MyMind joined #nim |
03:46:06 | * | MyMind quit (Read error: Connection reset by peer) |
03:46:41 | * | Pisuke joined #nim |
03:48:10 | * | Demos quit (Remote host closed the connection) |
03:50:48 | * | vendethiel quit (Ping timeout: 264 seconds) |
03:51:07 | * | Pisuke quit (Read error: Connection reset by peer) |
03:51:28 | * | Sembei joined #nim |
03:54:40 | * | Sembei quit (Read error: Connection reset by peer) |
03:55:01 | * | MyMind joined #nim |
03:58:45 | * | MyMind quit (Read error: Connection reset by peer) |
03:59:07 | * | Pisuke joined #nim |
04:01:29 | * | Demos joined #nim |
04:02:47 | * | Pisuke quit (Read error: No route to host) |
04:03:51 | * | Pisuke joined #nim |
04:05:18 | * | Demos quit (Remote host closed the connection) |
04:06:44 | * | Pisuke quit (Read error: No route to host) |
04:07:23 | * | Sembei joined #nim |
04:09:18 | * | Demos joined #nim |
04:10:53 | * | Sembei quit (Read error: Connection reset by peer) |
04:12:11 | * | Sembei joined #nim |
04:13:15 | * | vegansk joined #nim |
04:14:51 | * | Sembei quit (Read error: No route to host) |
04:15:39 | * | Sembei joined #nim |
04:18:29 | * | Jaood joined #nim |
04:19:12 | * | Sembei quit (Read error: No route to host) |
04:19:48 | * | MyMind joined #nim |
04:19:57 | * | Jaood left #nim (#nim) |
04:22:05 | * | Demos quit (Remote host closed the connection) |
04:23:31 | * | MyMind quit (Read error: No route to host) |
04:23:39 | * | Demos joined #nim |
04:23:57 | * | Pisuke joined #nim |
04:28:01 | * | Pisuke quit (Read error: No route to host) |
04:28:11 | * | Sembei joined #nim |
04:29:45 | * | Demos quit (Remote host closed the connection) |
04:31:11 | * | Demos joined #nim |
04:31:31 | * | Sembei quit (Read error: No route to host) |
04:32:12 | * | MyMind joined #nim |
04:35:56 | * | Jaood joined #nim |
04:36:25 | * | MyMind quit (Read error: No route to host) |
04:37:01 | * | Pisuke joined #nim |
04:37:02 | * | Demos quit (Remote host closed the connection) |
04:39:13 | * | Concept joined #nim |
04:39:31 | * | Concept left #nim (#nim) |
04:39:36 | * | Pisuke quit (Read error: No route to host) |
04:40:22 | * | Conceptualised joined #nim |
04:40:31 | * | Pisuke joined #nim |
04:43:52 | * | Demos joined #nim |
04:43:52 | * | Pisuke quit (Read error: No route to host) |
04:44:42 | * | Pisuke joined #nim |
04:47:26 | * | sidoaight left #nim ("We need to work as a team. Which means doing what I say.") |
04:48:16 | * | Pisuke quit (Read error: Connection reset by peer) |
04:48:50 | * | Sembei joined #nim |
04:48:58 | * | Demos quit (Remote host closed the connection) |
04:52:17 | * | Sembei quit (Read error: No route to host) |
04:52:54 | * | darkf joined #nim |
04:53:36 | * | Sembei joined #nim |
04:56:32 | * | Sembei quit (Read error: No route to host) |
04:56:41 | * | ^aurora^ joined #nim |
04:56:53 | * | Demos joined #nim |
04:57:12 | * | MyMind joined #nim |
04:59:33 | * | Jaood left #nim ("ERC (IRC client for Emacs 24.5.1)") |
05:00:49 | * | MyMind quit (Read error: No route to host) |
05:01:27 | * | Pisuke joined #nim |
05:04:30 | * | Pisuke quit (Read error: No route to host) |
05:05:24 | * | Pisuke joined #nim |
05:08:37 | * | Pisuke quit (Read error: No route to host) |
05:09:36 | * | Pisuke joined #nim |
05:13:33 | * | Pisuke quit (Read error: No route to host) |
05:14:21 | * | Sembei joined #nim |
05:17:06 | * | Sembei quit (Read error: No route to host) |
05:18:06 | * | Conceptualised quit (Remote host closed the connection) |
05:18:28 | * | Sembei joined #nim |
05:21:26 | * | Sembei quit (Read error: Connection reset by peer) |
05:21:44 | * | BitPuffin|osx quit (Ping timeout: 250 seconds) |
05:22:01 | * | MyMind joined #nim |
05:25:23 | * | MyMind quit (Read error: No route to host) |
05:26:44 | * | MyMind joined #nim |
05:30:02 | * | MyMind quit (Read error: Connection reset by peer) |
05:30:17 | * | Pisuke joined #nim |
05:34:30 | * | Sembei joined #nim |
05:34:56 | * | Pisuke quit (Read error: Connection reset by peer) |
05:38:02 | * | Sembei quit (Read error: Connection reset by peer) |
05:38:29 | * | MyMind joined #nim |
05:39:47 | * | Demos quit (Remote host closed the connection) |
05:41:54 | * | Demos joined #nim |
05:42:03 | * | MyMind quit (Read error: Connection reset by peer) |
05:43:21 | * | MyMind joined #nim |
05:43:37 | * | Demos quit (Remote host closed the connection) |
05:44:51 | * | Demos joined #nim |
05:46:37 | * | MyMind quit (Read error: Connection reset by peer) |
05:46:48 | * | Pisuke joined #nim |
05:50:39 | * | Pisuke quit (Read error: Connection reset by peer) |
05:51:06 | * | Sembei joined #nim |
05:51:52 | Demos | ugh. I'm a bad programmer and I feel bad |
05:52:16 | Demos | wrote code like |
05:52:28 | Demos | type Color = distinct int |
05:52:46 | Demos | so that I can define proc `[]=`(t: Color, n: int) = ... |
05:53:00 | Demos | and call it using obj.Color[0] = ... |
05:53:03 | Demos | where obj is an int |
05:54:27 | * | Sembei quit (Read error: No route to host) |
05:55:47 | * | Sembei joined #nim |
05:59:19 | * | MyMind joined #nim |
05:59:20 | * | Sembei quit (Read error: No route to host) |
06:03:07 | * | MyMind quit (Read error: Connection reset by peer) |
06:03:22 | * | Pisuke joined #nim |
06:05:12 | * | jszymanski joined #nim |
06:07:15 | * | Pisuke quit (Read error: Connection reset by peer) |
06:08:13 | * | Pisuke joined #nim |
06:09:10 | * | Demos quit (Remote host closed the connection) |
06:10:37 | * | Demos joined #nim |
06:11:21 | * | Pisuke quit (Read error: No route to host) |
06:11:45 | * | Sembei joined #nim |
06:15:29 | * | filwit quit (Quit: Leaving) |
06:15:48 | * | Sembei quit (Read error: No route to host) |
06:16:30 | * | MyMind joined #nim |
06:19:27 | * | MyMind quit (Read error: Connection reset by peer) |
06:20:00 | * | Pisuke joined #nim |
06:23:33 | * | Pisuke quit (Read error: No route to host) |
06:24:08 | * | Sembei joined #nim |
06:26:16 | * | jszymanski quit (Quit: computer sleeps...) |
06:28:13 | * | Sembei quit (Read error: No route to host) |
06:28:20 | * | MyMind joined #nim |
06:32:03 | * | MyMind quit (Read error: No route to host) |
06:32:29 | * | Pisuke joined #nim |
06:36:04 | * | Pisuke quit (Read error: No route to host) |
06:36:34 | * | Sembei joined #nim |
06:40:28 | * | Sembei quit (Read error: No route to host) |
06:40:45 | * | Demos quit (Remote host closed the connection) |
06:40:58 | * | MyMind joined #nim |
06:44:05 | * | MyMind quit (Read error: No route to host) |
06:44:52 | * | Pisuke joined #nim |
06:48:52 | * | Trustable joined #nim |
06:49:00 | * | Sembei joined #nim |
06:49:29 | * | Pisuke quit (Read error: Connection reset by peer) |
06:55:19 | * | yglukhov joined #nim |
07:04:21 | r-ku | vbtt im around \o/ |
07:25:13 | * | bjz joined #nim |
07:40:01 | * | jszymanski joined #nim |
07:45:53 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
07:52:44 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
08:10:59 | * | elbow quit (Ping timeout: 256 seconds) |
08:20:04 | * | elbow joined #nim |
08:24:07 | * | coffeepot joined #nim |
08:25:03 | * | elbow quit (Ping timeout: 265 seconds) |
08:38:29 | * | elbow joined #nim |
08:45:44 | * | Ven joined #nim |
08:50:58 | * | gunn quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:13:05 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:50:06 | * | yglukhov quit (Remote host closed the connection) |
09:53:49 | * | jaco60 joined #nim |
10:21:36 | * | yglukhov joined #nim |
10:26:03 | * | yglukhov quit (Ping timeout: 255 seconds) |
10:28:28 | * | gunn joined #nim |
10:33:10 | * | Demon_Fox quit (Quit: Leaving) |
11:16:56 | * | yglukhov joined #nim |
11:21:50 | * | yglukhov quit (Ping timeout: 272 seconds) |
11:26:26 | reactormonk | Araq, I'm still taking suggestions on how to write https://gist.github.com/13b9138cf28f2e76ec10 since I can't use Option |
11:39:26 | * | infinity0 quit (Remote host closed the connection) |
11:41:38 | * | infinity0 joined #nim |
11:57:12 | * | elbow quit (Remote host closed the connection) |
11:58:03 | * | [CBR]Unspoken quit (Ping timeout: 244 seconds) |
12:14:12 | * | [CBR]Unspoken joined #nim |
12:21:25 | * | boopsiesisaway is now known as boopsies |
12:29:35 | * | TylerE quit () |
12:29:50 | * | TylerE joined #nim |
12:38:36 | * | bjz joined #nim |
12:45:47 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
13:37:17 | * | jszymanski quit (Ping timeout: 246 seconds) |
13:38:30 | * | jszymanski joined #nim |
14:13:22 | * | BitPuffin|osx joined #nim |
14:13:26 | * | drewsrem joined #nim |
14:14:44 | * | pregressive joined #nim |
14:18:21 | * | FedeOmoto joined #nim |
14:19:29 | drewsrem | fowl, I tried to read what you gave me yesterday and couldn't make sense of how I could apply this to my problem, I made a very well commented small example tho of what I'm trying to do, I'd be really thankful if you'd take a look at it and confirm if this is doable or even take a small stab at it: http://ix.io/jTL - if you find the time to do so |
14:32:54 | * | yglukhov joined #nim |
14:37:36 | * | yglukhov quit (Ping timeout: 264 seconds) |
14:38:21 | * | yglukhov joined #nim |
14:40:50 | Araq | reactormonk: well please fix the path handling in the compiler ... |
14:55:12 | reactormonk | Araq, ah, for including stuff? What would be the proper way to specify which one you want? |
14:55:48 | Araq | paths |
14:56:57 | reactormonk | so pure/options ? |
14:57:07 | Araq | yeah |
14:57:51 | reactormonk | sounds like that would make path handling a lot more complex |
14:59:02 | Araq | nah you need to do --path:$lib perhaps |
15:00:41 | * | yglukhov quit (Remote host closed the connection) |
15:09:22 | * | yglukhov joined #nim |
15:13:36 | * | yglukhov quit (Ping timeout: 255 seconds) |
15:26:13 | * | pregressive quit (Remote host closed the connection) |
15:30:16 | * | pregressive joined #nim |
15:31:45 | * | pregressive quit (Remote host closed the connection) |
15:33:17 | * | DecoPerson quit () |
15:33:36 | * | DecoPerson joined #nim |
15:34:01 | * | strcmp1 joined #nim |
15:51:33 | * | Jesin quit (Quit: Leaving) |
15:52:28 | * | jszymanski quit (Quit: computer sleeps...) |
16:10:13 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:11:30 | * | yglukhov joined #nim |
16:13:48 | * | yglukhov quit (Read error: Connection reset by peer) |
16:14:13 | * | yglukhov joined #nim |
16:15:16 | * | yglukhov quit (Read error: Connection reset by peer) |
16:15:39 | * | yglukhov joined #nim |
16:17:30 | * | yglukhov quit (Remote host closed the connection) |
16:17:49 | * | yglukhov joined #nim |
16:19:30 | * | Jesin joined #nim |
16:23:02 | * | yglukhov quit (Remote host closed the connection) |
16:28:53 | * | yglukhov joined #nim |
16:33:54 | * | jszymanski joined #nim |
16:36:33 | * | elbow joined #nim |
16:44:05 | * | yglukhov quit (Remote host closed the connection) |
16:48:29 | * | pregressive joined #nim |
16:49:55 | * | yglukhov joined #nim |
16:51:38 | * | yglukhov quit (Remote host closed the connection) |
16:51:51 | * | yglukhov joined #nim |
17:01:12 | vbtt | r-ku:i'm interested in learning about the coroutine stuff you're doing |
17:01:56 | vbtt | how the semantics differ from async/await and how are they implemented etc. |
17:02:44 | * | Demos joined #nim |
17:03:43 | * | aziz joined #nim |
17:06:59 | * | darkf quit (Quit: Leaving) |
17:08:18 | * | yglukhov quit (Remote host closed the connection) |
17:13:12 | * | yglukhov joined #nim |
17:14:12 | Araq | vbtt: it's too early to say. but since these a proper coroutines the current restrictions that a closure iterator cannot be recursive are gone |
17:14:12 | * | yglukhov quit (Read error: Connection reset by peer) |
17:14:24 | r-ku | vbtt its simply some setjmp/longjmp calls |
17:14:43 | * | yglukhov joined #nim |
17:14:59 | * | vikaton joined #nim |
17:17:26 | * | MyMind joined #nim |
17:19:05 | * | Sembei quit (Ping timeout: 240 seconds) |
17:19:32 | reactormonk | Araq, so there is no way to abstract over varness? |
17:20:40 | Araq | no. |
17:20:44 | reactormonk | even in templates? |
17:20:54 | Araq | dunno what that means |
17:21:07 | reactormonk | ehh, works with immediate ^^ |
17:21:24 | Araq | but in general I dislike your varness "abstractions" ideas :P |
17:21:42 | Araq | whether it's var or not is an important distinction |
17:21:51 | Araq | not something you need to "patch over" |
17:22:07 | Araq | it's not a deficiency in the language. |
17:22:57 | reactormonk | I don't like code duplication. https://gist.github.com/9e3c111eb29f5a238364 so should I just inline getMaybe and be done with it? |
17:23:06 | reactormonk | Btw, path:$lib solved it |
17:24:17 | Araq | or you can certainly use .immediate templates for the common body |
17:24:26 | * | vikaton quit () |
17:24:29 | reactormonk | as I'm doing now? |
17:24:40 | * | ChrisMAN quit (Remote host closed the connection) |
17:24:59 | reactormonk | lib/pure/collections/tables.nim(118, 30) Error: expression has no address - from line 20 |
17:25:00 | Araq | as the tables module already does it |
17:25:11 | * | Jesin quit (Quit: Leaving) |
17:25:53 | reactormonk | btw, I think we should rename "expression has no address" to something like "expression isn't mutable" |
17:26:12 | Araq | perhaps |
17:26:28 | Araq | or we include a link to some tutorial about varness |
17:26:44 | reactormonk | But still, a non-obscure error message would help |
17:26:53 | reactormonk | or both. |
17:27:04 | Araq | but I dunno if people like links in their terminals |
17:28:30 | reactormonk | Just gotta be short, and most terminals auto-link anyway |
17:28:54 | reactormonk | mac and most linux terminals do, how about that other OS? |
17:31:28 | reactormonk | should I just go for exprs in that template, so it propagates the original types? |
17:31:32 | Araq | depends on the console that you use |
17:31:45 | Araq | reactormonk: yeah your template is strange, just make it untyped |
17:32:02 | Araq | your types take away the varness |
17:32:12 | reactormonk | nope, still bails |
17:32:27 | Araq | maybe your code is really wrong? |
17:32:40 | reactormonk | Entirely possible, which approach would you take? |
17:34:21 | * | BitPuffin|osx quit (Read error: Connection reset by peer) |
17:34:59 | * | BitPuffin|osx joined #nim |
17:41:28 | * | boopsies is now known as boopsiesisaway |
17:42:35 | * | boopsiesisaway is now known as boopsies |
17:43:26 | * | Trustable quit (Remote host closed the connection) |
17:43:26 | * | yglukhov quit (Read error: Connection reset by peer) |
17:43:43 | * | yglukhov joined #nim |
17:43:46 | * | yglukhov quit (Remote host closed the connection) |
17:44:33 | * | boopsies is now known as boopsiesisaway |
17:44:55 | * | Jesin joined #nim |
17:46:40 | * | boopsiesisaway is now known as boopsies |
17:52:04 | * | X67r joined #nim |
17:52:54 | * | yglukhov joined #nim |
17:55:14 | * | yglukhov quit (Read error: Connection reset by peer) |
17:55:34 | * | yglukhov joined #nim |
18:00:13 | * | yglukhov quit (Ping timeout: 265 seconds) |
18:06:34 | * | Jesin quit (Quit: Leaving) |
18:07:57 | * | Demos quit (Remote host closed the connection) |
18:11:24 | * | Demos joined #nim |
18:11:33 | * | Jesin joined #nim |
18:21:37 | * | Matthias247 joined #nim |
18:23:31 | * | brson joined #nim |
18:25:05 | * | ^aurora^ joined #nim |
18:26:39 | * | xificurC quit (Ping timeout: 255 seconds) |
18:34:44 | * | yglukhov joined #nim |
18:36:16 | * | yglukhov quit (Remote host closed the connection) |
18:38:48 | * | ^aurora^ quit (Read error: Connection reset by peer) |
18:48:26 | * | yglukhov joined #nim |
18:48:50 | * | Demos quit (Remote host closed the connection) |
18:52:29 | * | Demos joined #nim |
18:53:01 | * | yglukhov quit (Ping timeout: 256 seconds) |
18:53:42 | * | Demos quit (Remote host closed the connection) |
18:53:44 | * | yglukhov joined #nim |
18:54:00 | * | Demos joined #nim |
18:54:30 | * | yglukhov quit (Remote host closed the connection) |
18:54:44 | * | brson quit (Remote host closed the connection) |
18:55:07 | * | bogen-work joined #nim |
18:58:45 | bogen-work | what would make nim apps compiled on FreeBSD not handle UTF-8 correctly? My locale LANG is set to en_US.UTF-8. Other applications are processing UTF-8 correctly. If I log into a Linux box from FreeBSD and run a nim app their, UTF-8 characters are displayed correctly. If I log into FreeBSD from Linux, other applications handle UTF-8 fine, but not nim applications (compiled on FreeBSD). |
18:59:03 | * | Cryptotoad joined #nim |
19:01:14 | * | ChrisMAN joined #nim |
19:04:23 | * | aziz quit (Remote host closed the connection) |
19:06:54 | * | yglukhov joined #nim |
19:08:42 | * | xificurC joined #nim |
19:09:19 | * | yglukhov_ joined #nim |
19:09:20 | * | yglukhov quit (Read error: Connection reset by peer) |
19:11:27 | * | Demos quit (Remote host closed the connection) |
19:13:42 | * | Varriount_ joined #nim |
19:15:28 | * | Varriount quit (Ping timeout: 246 seconds) |
19:18:38 | Cryptotoad | having some issues with the sqlite library on winbloat, it's saying could not load: sqlite3.dll even when I've compiled a 64 bit version and put it in the folder. |
19:23:43 | bogen-work | ok, well, got it partially working (UTF-8 stuff), it is likely my configuration... |
19:23:49 | * | Varriount|Busy joined #nim |
19:24:33 | * | Varriount__ joined #nim |
19:24:39 | dom96 | Cryptotoad: did you compile your application using a 64bit compiler? |
19:25:13 | Varriount|Busy | bogen-work: Uh, what part of your application is dealing with strings? |
19:26:03 | Cryptotoad | i tried with 32 and 64, afaik it's 32 bit but i did the test with 64 too just for science |
19:26:21 | Cryptotoad | was mostly just wondering if anyone had encountered that issue before |
19:27:08 | * | Jesin quit (Quit: Leaving) |
19:27:26 | * | Varriount joined #nim |
19:27:45 | * | Varriount_ quit (Ping timeout: 252 seconds) |
19:30:08 | * | Varriount__ quit (Ping timeout: 272 seconds) |
19:33:11 | dom96 | Cryptotoad: is the dll in the same folder as the exe? |
19:33:26 | Cryptotoad | yeah it is |
19:33:39 | dom96 | hey Varriount|Busy, how was OSCON? |
19:33:57 | Varriount|Busy | dom96: Nice, even though I was only there for a day. |
19:34:03 | * | yglukhov_ quit (Remote host closed the connection) |
19:34:23 | dom96 | Cryptotoad: in that case i'm not sure, the most common problem is that you are compiling your app using a 64 bit nim/gcc compiler and then trying to use a 32bit DLL or vice versa. |
19:34:51 | dom96 | Varriount|Busy: These type of things make me wish I lived in the US |
19:35:04 | Varriount|Busy | dom96: You get to go to Amsterdam though. |
19:35:27 | Cryptotoad | well i'll prod at it with a stick |
19:35:31 | Cryptotoad | hopefully it works eventually |
19:35:37 | dom96 | Varriount|Busy: Hopefully. It's still not confirmed whether Araq will be speaking there. |
19:35:39 | Varriount|Busy | dom96: How much would a round-trip flight to the US be? |
19:35:59 | dom96 | Varriount|Busy: $1000+ likely |
19:36:15 | bogen-work | ok, nim is not acting consistent. I can compile a small hello world app, and it outputs foreign characters fine, but in a larger app the same echo statement at the top of the file displays garbage. |
19:36:54 | bogen-work | same build options, same login session... |
19:36:59 | dom96 | Varriount|Busy: yeah, Google is showing me prices around £1300 |
19:37:00 | Varriount|Busy | bogen-work: What compiler version, and what OS? |
19:37:08 | * | ChrisMAN quit (Quit: Leaving) |
19:37:22 | * | ChrisMAN joined #nim |
19:37:28 | Varriount|Busy | dom96: Aww. |
19:37:34 | * | Varriount_ joined #nim |
19:37:34 | dom96 | Varriount|Busy: I'm kinda annoyed because one of my colleagues got to go there, and the company funded him, but because I just joined and am an intern... |
19:37:43 | bogen-work | FreeBSD, just now built from git (-b devel) |
19:38:07 | dom96 | bogen-work: can we see the source code of the larger app? |
19:38:09 | bogen-work | Varriount|Busy: it was acting this way on an older build |
19:38:38 | Varriount|Busy | bogen-work: My first assumption would be some sort of memory corruption. |
19:39:36 | bogen-work | I will try to narrow it down. Well, out of all the other text it is outputting, it is only the UTF-8 charcters that are getting messed up. |
19:39:38 | dom96 | If Varriount|Busy's assumption is correct then compilling with --gc:none might give different results. |
19:39:59 | dom96 | Does the output change when you compile in release mode vs. debug mode? |
19:40:16 | bogen-work | I've only been compiling for debug |
19:40:18 | bogen-work | eh |
19:40:20 | dom96 | Lot's of things you can try |
19:40:21 | bogen-work | for release I mean |
19:40:25 | dom96 | try debug |
19:40:54 | * | Varriount quit (Ping timeout: 272 seconds) |
19:42:34 | * | Varriount__ joined #nim |
19:42:35 | bogen-work | with debug, same garbage. can't compile with --gc:none Error: system module needs 'initStackBottomWith' |
19:43:34 | dom96 | huh, that's odd. |
19:43:39 | bogen-work | I'm going to compile the same large app on Linux and see if I get the same results. |
19:43:45 | dom96 | --gc:boehm? |
19:44:59 | bogen-work | builds, same garbage |
19:45:04 | * | filcuc joined #nim |
19:45:14 | Varriount|Busy | bogen-work: Can I seem your code? |
19:45:18 | Varriount|Busy | *see |
19:45:43 | * | Varriount_ quit (Ping timeout: 256 seconds) |
19:45:44 | Varriount|Busy | Are you using any non-standard C standard library implementation? |
19:46:51 | bogen-work | not this particular code.... I'll try to come up with a use case that has the same symptom. yes, I'm using oither libraries. I'm going to see now if it does the same on Linux. |
19:49:56 | * | strcmp1 quit (Ping timeout: 265 seconds) |
19:50:07 | bogen-work | ok, this is not freebsd specific. I get same garabage on Linux, I'll come up with a use case. |
19:50:16 | bogen-work | well, a repro case |
19:51:55 | * | yglukhov joined #nim |
19:53:30 | dom96 | bogen-work: that would be really helpful, thanks! |
19:55:24 | * | Varriount joined #nim |
19:58:02 | * | strcmp1 joined #nim |
19:58:36 | * | Varriount__ quit (Ping timeout: 264 seconds) |
20:01:04 | bogen-work | ok, it does not seem to be nim... something seems to be corrupting the files... |
20:01:10 | Varriount|Busy | ? |
20:01:26 | * | shodan45 joined #nim |
20:01:31 | bogen-work | well, I can view a file in an editor, and it is fine |
20:01:46 | wuehlmaus | some terminal problems? |
20:01:52 | bogen-work | cat it, and the foreign characters are garbage |
20:02:03 | Varriount|Busy | bogen-work: Check the file encoding. |
20:02:04 | bogen-work | then I can paste the contents into a different editor |
20:02:09 | bogen-work | and cat the file |
20:02:11 | bogen-work | and it is fine |
20:02:33 | bogen-work | well, same editor, new file |
20:02:48 | * | Varriount quit (Ping timeout: 264 seconds) |
20:02:51 | Varriount|Busy | bogen-work: What editor are you using, and are you saving the file with the correct encoding? |
20:03:00 | bogen-work | yeah, it is file issue (joe and scite) |
20:07:14 | FedeOmoto | bogen-work: what does the 'file' command say about the file? |
20:08:05 | bogen-work | ok, it is Scite. Joe is file. Scite sames them as ascii when no foreign characters, but as "ISO-8859 text" when UTF-8 characters are pasted in. |
20:08:21 | bogen-work | Scite save them as.... |
20:08:48 | bogen-work | FedeOmoto: with joe, UTF-8, with Scite, |
20:08:54 | bogen-work | ISO-8859 text |
20:08:57 | FedeOmoto | that's it |
20:09:06 | * | yglukhov quit (Remote host closed the connection) |
20:09:51 | bogen-work | oh, my quick examples I was using joe, and my main app I was doing in Scite... |
20:10:29 | FedeOmoto | nice mix :P |
20:12:07 | * | Demos joined #nim |
20:15:28 | bogen-work | dom96, Varriount|Busy, FedeOmoto, well, thanks... Got it figured out... |
20:16:15 | FedeOmoto | np |
20:17:06 | dom96 | ahh, the joys of text encoding. |
20:17:09 | * | Demos quit (Ping timeout: 244 seconds) |
20:20:24 | * | DreadKnight joined #nim |
20:24:11 | * | Varriount joined #nim |
20:30:08 | * | Trustable joined #nim |
20:32:49 | * | tankfeeder joined #nim |
20:34:53 | * | Demos joined #nim |
20:37:04 | * | titanomachy joined #nim |
20:41:25 | * | tankfeeder quit (Quit: Leaving) |
20:48:59 | Cryptotoad | fixed my sqlite issue, does nim have any inbuilt filter for sql injection or should I code one? |
20:50:26 | Cryptotoad | nevermind i assume the args parameter is filtered? |
20:52:32 | * | jszymanski quit (Quit: computer sleeps...) |
20:54:46 | * | zielmicha joined #nim |
21:09:01 | * | BitPuffin|osx quit (Ping timeout: 256 seconds) |
21:10:06 | federico3 | Cryptotoad: you might want to look at taint analysis |
21:10:13 | * | boopsies is now known as boopsiesisaway |
21:10:20 | * | boopsiesisaway is now known as boopsies |
21:10:23 | * | boopsies is now known as boopsiesisaway |
21:10:30 | * | boopsiesisaway is now known as boopsies |
21:12:48 | * | boopsies is now known as boopsiesisaway |
21:13:15 | * | boopsiesisaway is now known as boopsies |
21:14:09 | * | sparrk joined #nim |
21:14:55 | sparrk | For http://nim-lang.org/docs/db_postgres.html how does one escape the values for a DB insert? |
21:15:22 | sparrk | It seems like args should be the key, but I can't seem to figure out the proc type signature |
21:18:19 | * | pregressive quit (Remote host closed the connection) |
21:18:29 | federico3 | any example of using asyncnet with UDP? |
21:19:40 | * | filcuc quit (Ping timeout: 244 seconds) |
21:20:03 | sparrk | Ah, I figured out the interface |
21:20:22 | sparrk | Rather than '$1' as shown in the example in the main manual, it is just $1 |
21:21:35 | Cryptotoad | i used the nimforum source as a usage guide |
21:21:41 | Cryptotoad | https://github.com/nim-lang/nimforum |
21:21:55 | * | X67r quit (Quit: Changing server) |
21:22:05 | dom96 | federico3: Not supported right now I'm afraid. |
21:22:34 | * | X67r joined #nim |
21:23:16 | Cryptotoad | anyone done a socks5 server yet? |
21:23:22 | Cryptotoad | i may code one if there's none existing |
21:34:59 | federico3 | dom96: dammit :( |
21:35:33 | dom96 | federico3: implement it, shouldn't be too difficult |
21:36:55 | federico3 | I haven't used asyncnet yet - I should probably spend quite some time on it before :) |
21:38:20 | dom96 | hrm, yeah. |
21:39:20 | * | xet7 joined #nim |
21:41:12 | * | pregressive joined #nim |
21:42:54 | * | FedeOmoto quit (Quit: Leaving) |
21:43:32 | * | xet7 quit (Client Quit) |
21:43:41 | * | xet7 joined #nim |
21:44:33 | * | xet7 quit (Client Quit) |
21:44:42 | * | xet7 joined #nim |
21:45:30 | * | pregressive quit (Ping timeout: 240 seconds) |
21:51:24 | federico3 | https://libtins.github.io/ this looks very nice - anybody interested in writing a wrapper for it? :) |
21:54:54 | * | shodan45 quit (Quit: Konversation terminated!) |
21:55:09 | * | shodan45 joined #nim |
21:55:27 | * | saml quit (Quit: Leaving) |
22:01:11 | * | Kingsquee joined #nim |
22:01:22 | * | shodan45 quit (Quit: Konversation terminated!) |
22:09:06 | sparrk | Is it possible to compile a universal binary from Nim? |
22:13:18 | * | pregressive joined #nim |
22:20:45 | reactormonk | sparrk, like for mac? |
22:21:13 | * | zaspard quit (Read error: Connection reset by peer) |
22:22:27 | sparrk | Just to work on every debian / Ubuntu OS would be fine for my purposes |
22:23:14 | sparrk | I have my first in production Nim app for my business, and I just need a way of deploying it |
22:23:34 | sparrk | I could rebuild the entire Nim compiler on the production machine |
22:23:53 | sparrk | but I really just want to run it, so I figured there might be a way of doing that |
22:24:07 | sparrk | That didn't involve reinstalling Nim on the production machine |
22:24:29 | def- | sparrk: if you can do it with C, same procedure should work with Nim |
22:25:01 | def- | sparrk: for C/C++ programs I usually use a VM with an old debian version so that it has an old glibc, then it runs on all my target distributions |
22:25:57 | sparrk | Thanks def- that is helpful |
22:26:39 | def- | I guess one could also statically link another C library, like musl, but haven't tried that in production yet |
22:31:36 | * | zaspard joined #nim |
22:31:46 | * | sparrk quit (Quit: Leaving) |
22:32:02 | federico3 | sparrk: the executable should work just fine on both distributions. Are they running on the same architecture? Can you ensure the same runtime dependencies are deployed? |
22:33:22 | * | Pisuke joined #nim |
22:33:26 | * | MyMind quit (Read error: No route to host) |
22:36:40 | * | sparrk joined #nim |
22:37:06 | sparrk | federico3: Yes, I can ensure the runtime deps are the same |
22:38:08 | federico3 | how can I split "foo:1" into a tuple containing a string "foo" and a number 1? |
22:38:21 | sparrk | http://nim.community/answers/split_string/ |
22:39:33 | sparrk | (As I figure stuff out I'm keeping a list since right now it is hard to Google answers and I have a poor memory) |
22:40:50 | federico3 | that does only the splitting |
22:46:23 | sparrk | https://gist.github.com/zachaysan/0b6a4eb712e4c385b0c5 |
22:46:24 | sparrk | no? |
22:48:01 | * | def- quit (Ping timeout: 244 seconds) |
22:49:03 | federico3 | yep, thanks |
22:50:29 | federico3 | any way to define a tuple in a more concise way? e.g. let foo = tuple(a:1, b:"hi") |
22:50:45 | * | def- joined #nim |
22:51:30 | federico3 | oh I can do let foo:tuple = (a:1, b:"hi") |
22:52:20 | sparrk | you can also do things like |
22:52:42 | federico3 | nah, I'm still going to need the tuple definition in other places :-/ |
22:53:16 | sparrk | yeah, I prefer to just define them |
22:53:23 | sparrk | but you *can* do things like this let foo = split("foo:bar", ":") |
22:54:04 | sparrk | oops, bad example |
22:54:07 | sparrk | thats an array |
22:54:19 | sparrk | let foo = splitFile("usr/local/nimc.html") |
22:54:23 | federico3 | a sequence, afaict |
22:54:33 | sparrk | yeah sorry, sequence |
22:55:09 | sparrk | I'm still in the first couple weeks of using Nim |
22:55:18 | * | boopsies is now known as boopsiesisaway |
22:58:02 | * | Trustable quit (Remote host closed the connection) |
23:04:43 | * | X67r quit (Quit: leaving) |
23:13:18 | * | Varriount quit (Read error: Connection reset by peer) |
23:15:24 | drewsrem | meh, nim streams needs some love, there's no SEEK_SET / SEEK_CUR / SEEK_END for seek (which is named setPosition as well) |
23:15:35 | drewsrem | so it seems I need to roll my own |
23:17:47 | drewsrem | This will probably be annoying to change too, as it breaks the Stream interface |
23:29:42 | * | BitPuffin|osx joined #nim |
23:30:44 | dom96 | sparrk: nim.community is really nice, thanks for creating it |
23:32:36 | * | Kingsquee quit (Quit: Konversation terminated!) |
23:41:14 | * | drewsrem quit (Quit: Leaving) |
23:52:57 | * | MatrixBridge1 joined #nim |
23:53:13 | * | wuehlmau1 joined #nim |
23:53:27 | * | MatrixBridge2 joined #nim |
23:54:00 | * | MatrixBridge quit (Ping timeout: 240 seconds) |
23:54:00 | * | BitPuffin|osx quit (Ping timeout: 240 seconds) |
23:54:00 | * | vbtt quit (Ping timeout: 240 seconds) |
23:54:00 | * | renesac quit (Ping timeout: 240 seconds) |
23:54:01 | * | wuehlmaus quit (Ping timeout: 240 seconds) |
23:54:39 | sparrk | dom96: :3 thanks! Feel free to contribute with pull requests. My goal is to add at least 3 pages per week. |
23:55:05 | dom96 | nice, will try but I am quite busy nowadays so I can't promise anything. |
23:56:54 | sparrk | Don't feel obligated! |
23:58:54 | * | BitPuffin|osx joined #nim |