00:03:29 | * | pilne joined #nim |
00:08:09 | * | vendethiel joined #nim |
00:18:26 | * | vendethiel- joined #nim |
00:19:36 | * | vendethiel quit (Ping timeout: 255 seconds) |
00:28:16 | * | BitPuffin quit (Remote host closed the connection) |
00:32:06 | * | vendethiel- quit (Ping timeout: 258 seconds) |
00:45:41 | * | BitPuffin|osx quit (Remote host closed the connection) |
00:55:42 | * | yingjun joined #nim |
00:59:45 | * | yingjun quit (Ping timeout: 240 seconds) |
01:04:57 | * | Nobabs27 joined #nim |
01:24:30 | FromGitter | <zetashift> @zacharycarter I've come to the part of generating a map; I have a tile type and a map type which holds an array of tiles; What would be a good way to define floor and wall types and make use of em in the generate_map proc? |
01:24:57 | FromGitter | <zetashift> I haven't grasped the ways of Nim yet and still think quite python-ish |
01:27:36 | * | djellemah_ joined #nim |
01:27:46 | * | chemist69 quit (Ping timeout: 246 seconds) |
01:27:51 | * | yglukhov joined #nim |
01:31:02 | * | djellemah__ quit (Ping timeout: 246 seconds) |
01:31:57 | * | yglukhov quit (Ping timeout: 240 seconds) |
01:42:18 | * | chemist69 joined #nim |
01:42:29 | * | def-pri-pub joined #nim |
01:45:26 | FromGitter | <zacharycarter> @zetashift 0's and 1's my friend |
01:45:26 | * | mahmudov quit (Remote host closed the connection) |
01:45:54 | FromGitter | <zacharycarter> I'd make an enum probably something like |
01:50:10 | FromGitter | <zetashift> a tileType and fill the array with it? |
01:51:13 | FromGitter | <zacharycarter> @zetashift : https://play.nim-lang.org/?gist=72af566146409edb71bdc6910bc53420 ⏎ something like that maybe? |
01:52:31 | * | https_GK1wmSU joined #nim |
01:53:00 | FromGitter | <zetashift> having trouble wrapping around the sequence of tiles in a seq |
01:53:29 | FromGitter | <zacharycarter> yeah it might be tough to iterate through let me see |
01:53:52 | * | https_GK1wmSU left #nim (#nim) |
01:57:59 | * | yingjun joined #nim |
02:00:38 | FromGitter | <zetashift> and the map type should also have an x and a y no |
02:07:06 | FromGitter | <zetashift> well got something good cooking from your advice; just have to find out how to give the enums a glyph and draw it |
02:07:18 | FromGitter | <zetashift> that's for tomorrow gonna sleep now it's 4 am here, gnight |
02:08:47 | FromGitter | <zacharycarter> night! |
02:14:06 | * | pilne quit (Quit: Quitting!) |
02:29:35 | * | vendethiel joined #nim |
02:34:26 | * | yingjun quit (Remote host closed the connection) |
02:34:35 | * | yingjun joined #nim |
02:38:02 | * | endragor joined #nim |
02:44:40 | * | yingjun quit (Remote host closed the connection) |
02:47:45 | FromGitter | <cabhishek> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=597febd0c101bc4e3ad977f6] |
02:48:13 | FromGitter | <cabhishek> > ```import token ⏎ type ⏎ Visitor* = ref object of RootObj ⏎ ⏎ Expression* = ref object of RootObj ... [https://gitter.im/nim-lang/Nim?at=597febec210ac269204227c3] |
02:48:45 | FromGitter | <cabhishek> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=597fec0d614889d47509898e] |
02:49:15 | FromGitter | <cabhishek> expression.nim(23, 8) Error: invalid declaration order; cannot attach 'accept' to method defined here: expression.nim(26,7) |
02:49:58 | FromGitter | <cabhishek> Any ideas why compiler throws that error? |
02:49:59 | FromGitter | <cabhishek> Nim Compiler Version 0.17.0 (2017-05-17) [MacOSX: amd64] |
03:08:55 | * | rational joined #nim |
03:13:38 | * | yingjun joined #nim |
03:16:17 | * | rational quit (Ping timeout: 260 seconds) |
03:27:12 | * | Nobabs27 quit (Quit: Leaving) |
03:36:00 | * | vendethiel quit (Ping timeout: 260 seconds) |
03:41:27 | * | sz0 quit (Quit: Connection closed for inactivity) |
04:15:30 | * | def-pri-pub quit (Quit: leaving) |
04:26:07 | * | dankrad joined #nim |
04:36:02 | * | yingjun quit (Remote host closed the connection) |
04:45:53 | * | https_GK1wmSU quit (Excess Flood) |
05:27:47 | * | https___GK1wmSU joined #nim |
05:30:10 | * | https___GK1wmSU left #nim (#nim) |
05:35:07 | * | dankrad quit (Ping timeout: 260 seconds) |
05:36:55 | * | yingjun joined #nim |
05:41:32 | * | yingjun quit (Ping timeout: 260 seconds) |
05:43:36 | * | yglukhov joined #nim |
05:47:45 | * | yglukhov quit (Ping timeout: 240 seconds) |
05:48:41 | * | yingjun joined #nim |
05:58:27 | * | alxf quit (Ping timeout: 240 seconds) |
05:59:14 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
06:00:08 | * | alxf joined #nim |
06:01:50 | * | Vladar joined #nim |
06:29:04 | * | nsf joined #nim |
06:47:20 | * | sakalli quit (Ping timeout: 260 seconds) |
06:59:52 | * | subsetpark quit (Ping timeout: 276 seconds) |
07:00:15 | * | subsetpark joined #nim |
07:04:13 | * | rauss quit (Quit: WeeChat 1.9) |
07:09:16 | FromGitter | <timmyjose> Excellent... the 37% discount on "Nim in Action" totally worked! Thanks, @dom96 |
07:18:34 | * | yglukhov joined #nim |
07:19:54 | * | sakalli joined #nim |
07:23:16 | * | yglukhov quit (Ping timeout: 260 seconds) |
07:26:51 | * | Matthias247 joined #nim |
07:35:03 | * | yglukhov joined #nim |
07:50:45 | * | yingjun quit (Remote host closed the connection) |
07:51:06 | * | yingjun joined #nim |
08:04:48 | * | rokups joined #nim |
08:27:18 | Vladar | Nimgame 2 v0.5 released https://forum.nim-lang.org/t/2730/1#19393 |
08:40:16 | * | Tiberium joined #nim |
08:47:41 | * | vendethiel joined #nim |
08:54:24 | * | dom96|w joined #nim |
09:01:02 | * | sakalli quit (Ping timeout: 260 seconds) |
09:23:57 | * | Tiberium quit (Remote host closed the connection) |
09:25:16 | * | Tiberium joined #nim |
09:44:18 | * | mahtov joined #nim |
09:45:38 | * | mahtov2 quit (Ping timeout: 258 seconds) |
09:52:38 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:57:57 | * | Tiberium quit (Ping timeout: 240 seconds) |
09:58:29 | * | dom96|w joined #nim |
09:59:22 | * | user0 quit (Ping timeout: 260 seconds) |
10:07:36 | * | user0 joined #nim |
10:10:53 | * | couven92 joined #nim |
10:34:14 | * | yingjun quit (Remote host closed the connection) |
10:34:24 | * | yingjun joined #nim |
10:35:47 | * | yingjun quit (Remote host closed the connection) |
10:39:35 | * | sakalli joined #nim |
10:39:53 | * | yingjun joined #nim |
10:45:15 | * | yingjun quit (Read error: Connection reset by peer) |
10:45:27 | * | vendethiel quit (Ping timeout: 240 seconds) |
10:49:58 | * | couven92 quit (Ping timeout: 276 seconds) |
10:54:35 | * | user0 quit (Remote host closed the connection) |
10:55:20 | * | user0 joined #nim |
11:02:50 | * | user0 quit (Quit: user0) |
11:16:27 | FromGitter | <TiberiumN> Araq: previously you talked with @cyberlis about API, and you said that stubs are better. I agree, but currently there isn't a way to have optional types in json "to" macro :( |
11:16:33 | FromGitter | <TiberiumN> *about API wrapper |
11:17:22 | FromGitter | <k0pernicus> Hello! ⏎ I am learning Nim with exercism, and I am lost exporting a Type… ⏎ If I wrote, in module A: `type TWordCount* CountTable[string]`, I export from module A the type `TWordCount`. ⏎ In the test module, after the import `import A`, I have this procedure: ⏎ ... [https://gitter.im/nim-lang/Nim?at=59806342c101bc4e3adb271b] |
11:17:38 | FromGitter | <TiberiumN> yes, you need to export it too |
11:17:41 | FromGitter | <TiberiumN> like this: |
11:18:04 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
11:18:11 | FromGitter | <TiberiumN> ```proc `==`(a, b: TWordCount): bool = and so on``` |
11:18:26 | FromGitter | <TiberiumN> also T prefixes are deprecated, but you can use them if you want |
11:18:34 | FromGitter | <TiberiumN> (i mean type prefixes like TSomething) |
11:18:44 | FromGitter | <k0pernicus> Oh ok, thanks |
11:19:03 | FromGitter | <TiberiumN> I mean not deprecated, but they're not used in compiler and many newer libraries |
11:19:21 | FromGitter | <k0pernicus> Can I use pragmas for the export? ⏎ Like ```proc `==` (a, b: TWordCount): bool {.borrow.}``` ? |
11:19:46 | FromGitter | <k0pernicus> Or do I need to reimplement the solution? |
11:19:57 | FromGitter | <TiberiumN> nooo, you just append * to the name of the proc |
11:20:06 | FromGitter | <TiberiumN> and write your proc normally |
11:20:15 | FromGitter | <k0pernicus> Ok, great! Thank you :-) |
11:20:44 | FromGitter | <TiberiumN> ```proc exported*(a, b: string): string = ⏎ return a & b``` [https://gitter.im/nim-lang/Nim?at=5980640b1c8697534a7aa260] |
11:22:12 | * | xet7 quit (Ping timeout: 260 seconds) |
11:22:43 | FromGitter | <k0pernicus> So, no way to inherit all procedures from the type I redefined? |
11:23:31 | FromGitter | <TiberiumN> you mean export proc like this? ⏎ proc `==` (a, b: TWordCount): bool {.borrow.} |
11:23:44 | FromGitter | <TiberiumN> you can just add * here too |
11:24:14 | FromGitter | <k0pernicus> Yep, or directly from the type definition - like `type MyType = OtherType {.borrow.}` |
11:24:18 | euantor | You can borrow as described here: https://nim-lang.org/docs/manual.html#distinct-type-modelling-currencies |
11:25:08 | euantor | WHich doesn't save much, it just adds a template for if you want to define multiple similar types |
11:30:59 | FromGitter | <k0pernicus> Ok, thanks, it’s ok now :-) |
11:34:58 | * | xet7 joined #nim |
11:43:12 | * | nattefrost joined #nim |
11:44:38 | * | BitPuffin|osx joined #nim |
11:47:25 | FromGitter | <k0pernicus> So, I reimplement `len`, `pairs`, `[]` - but, I am stucked with `[]=` ⏎ I read the code of `[]=` for CountTable, but I am wondering what is the best way to implement this operator for my given type |
11:47:45 | FromGitter | <k0pernicus> Is anybody here has an example please? |
11:50:31 | * | couven92 joined #nim |
11:51:48 | * | dom96|w joined #nim |
12:02:16 | * | Snircle joined #nim |
12:03:29 | FromGitter | <k0pernicus> It seems the following code is looping: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59806e101c8697534a7acfb6] |
12:05:17 | FromGitter | <k0pernicus> So, I think that `[]=` call itself when executing `[]=` for `t[key] = val`, and not call `[]=` for `t` as a CountTable type |
12:16:29 | * | vendethiel joined #nim |
12:20:05 | surma | Why does the `when true:` version compile but the `when false:` version does not? I feel like the type of `result` should be inferred here: https://gist.github.com/surma/7eb06511850d28bb9985edf7a5fd44f0 |
12:25:59 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
12:28:00 | * | xet7 quit (Ping timeout: 260 seconds) |
12:33:22 | * | endragor quit (Remote host closed the connection) |
12:34:42 | * | endragor joined #nim |
12:35:03 | * | dom96|w joined #nim |
12:39:53 | * | xet7 joined #nim |
12:41:15 | * | xet7 quit (Remote host closed the connection) |
12:41:43 | * | xet7 joined #nim |
13:00:37 | FromGitter | <TiberiumN> why not "return r"? |
13:01:34 | * | ehmry quit (Ping timeout: 264 seconds) |
13:02:17 | * | jivank[m] quit (Ping timeout: 246 seconds) |
13:02:34 | * | Demos[m] quit (Ping timeout: 276 seconds) |
13:02:40 | * | hohlerde quit (Ping timeout: 258 seconds) |
13:02:40 | * | dyce[m] quit (Ping timeout: 258 seconds) |
13:02:42 | * | TheManiac quit (Ping timeout: 255 seconds) |
13:02:42 | * | MrAxilus[m] quit (Ping timeout: 255 seconds) |
13:02:43 | * | mindB quit (Ping timeout: 240 seconds) |
13:06:37 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:07:51 | surma | TiberiumN: Yeah, probably better. But my question remains :-/ |
13:14:17 | * | dom96|w joined #nim |
13:15:22 | * | v17d joined #nim |
13:20:14 | * | v17d quit (Ping timeout: 255 seconds) |
13:23:28 | * | mahtov quit (Ping timeout: 268 seconds) |
13:28:35 | * | couven92 quit (Ping timeout: 240 seconds) |
13:33:38 | * | mahtov joined #nim |
13:41:40 | * | MrAxilus[m] joined #nim |
13:45:05 | * | rauss joined #nim |
13:47:45 | * | sakalli quit (Ping timeout: 240 seconds) |
13:48:40 | * | ehmry joined #nim |
13:48:40 | * | Demos[m] joined #nim |
13:48:40 | * | dyce[m] joined #nim |
13:48:47 | * | mindB joined #nim |
13:48:47 | * | jivank[m] joined #nim |
13:48:47 | * | TheManiac joined #nim |
13:48:47 | * | hohlerde joined #nim |
14:20:18 | * | sz0 joined #nim |
14:23:35 | * | sakalli joined #nim |
14:52:15 | * | sakalli quit (Ping timeout: 240 seconds) |
14:57:24 | * | Vladar quit (Quit: Leaving) |
14:57:39 | yglukhov | Araq, dom96: pls merge: https://github.com/nim-lang/Nim/pull/6167 |
15:00:49 | * | nsf quit (Quit: WeeChat 1.9) |
15:09:02 | * | gokr joined #nim |
15:16:18 | * | sakalli joined #nim |
15:21:21 | * | Trustable joined #nim |
15:22:04 | * | gokr quit (Ping timeout: 260 seconds) |
15:26:34 | FromGitter | <TiberiumN> @endragor hi, are you here? I have an issue generating godot api on Windows: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59809daa329651f46edf5ca8] |
15:28:20 | FromGitter | <cabhishek> Hi everyone! Any ideas why I am getting this compiler error ```expression.nim(23, 8) Error: invalid declaration order; cannot attach 'accept' to method defined here: expression.nim(26,7)``` |
15:28:55 | * | Jesin quit (Quit: Leaving) |
15:29:02 | FromGitter | <cabhishek> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59809e3e1c8697534a7bb07c] |
15:29:24 | FromGitter | <cabhishek> Nim Compiler Version 0.17.0 (2017-05-17) [MacOSX: amd64] |
15:29:44 | FromGitter | <TiberiumN> can you post "token" file? |
15:30:11 | FromGitter | <cabhishek> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59809e821c8697534a7bb1ce] |
15:30:35 | FromGitter | <cabhishek> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59809e9b614889d4750c5dda] |
15:30:43 | * | Jesin joined #nim |
15:30:49 | endragor | @TiberiumN Nim devel or release? It cannot compile cstring"somestring" which is weird. |
15:30:57 | FromGitter | <TiberiumN> devel |
15:31:03 | FromGitter | <TiberiumN> Nim Compiler Version 0.17.1 (2017-08-01) [Windows: i386] |
15:31:50 | FromGitter | <TiberiumN> @cabhishek it compiles for me sucessfully |
15:31:54 | FromGitter | <TiberiumN> on latest devel |
15:32:00 | FromGitter | <TiberiumN> let me try to compile it with stable |
15:32:18 | FromGitter | <TiberiumN> hmm, it compiles with stable too... |
15:33:08 | * | PMunch joined #nim |
15:33:15 | * | v17d joined #nim |
15:33:19 | FromGitter | <TiberiumN> endragor: godot-nim works on Linux for me, but not on Windows ⏎ ⏎ also on linux it crashed a few times taking up all available memory and swap |
15:33:26 | FromGitter | <cabhishek> @TiberiumN It compiles for me as well. But I am trying to call and use those methods from astprinter.nim file |
15:33:43 | FromGitter | <cabhishek> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59809f57bc4647297444172b] |
15:33:49 | FromGitter | <TiberiumN> endragor: maybe on Linux it's an issue that I use GCC 7 |
15:34:02 | FromGitter | <cabhishek> nim -r --verbosity:0 c --o:bin/astprinter src/astprinter.nim ⏎ fails |
15:34:13 | endragor | @Tiberium "it" = which part of it? My teammates are on Windows and it compiles for them (devel, too). |
15:34:53 | FromGitter | <cabhishek> @TiberiumN Does astprinter.nim compile for you ? |
15:35:00 | FromGitter | <TiberiumN> @cabhishek sadly not |
15:35:07 | FromGitter | <cabhishek> same error? |
15:35:10 | FromGitter | <TiberiumN> endragor: Well I've tried to use both master and docs branch, none of these worked. ⏎ No, this Linux issue is probably because I used GCC 7 |
15:35:11 | FromGitter | <TiberiumN> @cabhishek yes |
15:35:40 | FromGitter | <TiberiumN> I mean that on Linux godot api generated successfully |
15:35:41 | FromGitter | <cabhishek> Not sure what I am doing wrong here |
15:35:45 | FromGitter | <TiberiumN> and on windows they're not |
15:38:15 | FromGitter | <TiberiumN> I'll try it again and post full log |
15:38:59 | * | sakalli quit (Remote host closed the connection) |
15:41:26 | FromGitter | <TiberiumN> endragor: https://gist.github.com/TiberiumN/6659618de62e32e4f7a10f5c4ae896cf |
15:42:39 | * | Vladar joined #nim |
15:49:40 | * | planhths joined #nim |
15:50:54 | PMunch | Hmm, is the oldgtk3 package name a bit misleading? Maybe rawgtk3 or something like that would be more appropriate? |
15:51:35 | * | endragor quit (Remote host closed the connection) |
15:51:57 | * | salewski joined #nim |
15:52:37 | salewski | PMunch, fine that you found oldgtk3 :-) |
15:52:51 | salewski | Let me know if there are problems... |
15:52:51 | PMunch | Yeah, I remember you mentioned it the other day :) |
15:53:34 | salewski | I discussed the name on IRC since some days -- yes oldgtk3 is a bit |
15:54:01 | salewski | missleading, but no one realy complained, and I had no better idea. |
15:54:28 | salewski | At least now we have a name and a nimble package. |
15:54:53 | * | endragor joined #nim |
15:55:00 | salewski | And I guess, when someone will use GTK3 at all, then he will prefer gintro, |
15:55:38 | salewski | the high level bindings. They will have more bugs or missing features, but are more inteesting. |
15:56:45 | salewski | Unfortunately I have to prepare the high level cairo module manually, as gobject-introspection |
15:57:19 | salewski | provides only a minimal stub. I think I will do that soon, so that we can do some drawing. |
15:57:46 | salewski | Bye. |
15:59:15 | PMunch | Hmm, I personally prefer the oldgtk3 approach as it's easier to port examples. But then again I'm using genui to actually create the GUI :P |
15:59:27 | * | endragor quit (Ping timeout: 240 seconds) |
16:00:30 | salewski | And I think there was a module called oldwinapi, so maybe oldgtk3 matches well. |
16:02:19 | salewski | And finally, oldgtk3 is a hint that there may be something never -- which is gintro, |
16:03:09 | salewski | the gobject-introspection based high level GTK3 module. (gintro name was suggested by Araq.) |
16:03:22 | * | salewski quit (Quit: WeeChat 1.4) |
16:21:46 | * | nhywyll joined #nim |
16:24:47 | * | UxerUospr joined #nim |
16:32:46 | * | dankrad joined #nim |
16:37:21 | * | nsf joined #nim |
16:40:48 | FromGitter | <cabhishek> @TiberiumN Were you able to generate the error log? |
16:41:01 | FromGitter | <TiberiumN> yes, same as yours |
16:41:28 | FromGitter | <TiberiumN> but i can't help with that because i don't user methods |
16:42:05 | FromGitter | <TiberiumN> *use |
16:45:55 | * | yglukhov quit (Remote host closed the connection) |
16:50:56 | FromGitter | <cabhishek> @TiberiumN ok thanks |
16:51:42 | * | jmkr quit (Quit: WeeChat 1.4) |
16:56:45 | * | v17d quit (Ping timeout: 240 seconds) |
16:59:03 | * | PMunch quit (Ping timeout: 255 seconds) |
16:59:12 | * | djellemah__ joined #nim |
17:02:45 | * | djellemah_ quit (Ping timeout: 240 seconds) |
17:08:55 | * | cspar joined #nim |
17:11:16 | * | nhywyll quit (Ping timeout: 260 seconds) |
17:11:38 | * | cspar_ quit (Ping timeout: 268 seconds) |
17:21:02 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
17:25:25 | * | nhywyll joined #nim |
17:26:03 | FromGitter | <TiberiumN> It seems what CodeWars will have Nim support (it already has, but new version isn't deployed yet): ⏎ https://github.com/Codewars/codewars-runner-cli/pull/330 |
17:32:09 | * | yglukhov joined #nim |
17:35:23 | * | Matthias247 quit (Read error: Connection reset by peer) |
17:36:33 | * | tankfeeder left #nim (#nim) |
17:37:20 | * | mahmudov joined #nim |
17:39:34 | * | couven92 joined #nim |
17:44:34 | FromGitter | <TiberiumN> Is there any tutorials on how to extend my application using DLL's (they will be written in Nim too) ? |
17:47:10 | * | mahmudov quit (Remote host closed the connection) |
17:59:38 | * | nsf quit (Quit: WeeChat 1.9) |
18:08:36 | * | dddddd joined #nim |
18:12:31 | surma | Gonna repost my question from earlier as the channel was pretty quiet at the time, hope thats okay: |
18:12:36 | surma | Why does the `when true:` version compile but the `when false:` version does not? I feel like the type of `result` should be inferred here: https://gist.github.com/surma/7eb06511850d28bb9985edf7a5fd44f0 |
18:13:49 | FromGitter | <TiberiumN> you can also post a question on forum |
18:13:54 | FromGitter | <TiberiumN> https://forum.nim-lang.org/ |
18:17:05 | * | gokr joined #nim |
18:17:35 | dom96 | surma: Looks like a bug to me, report on https://github.com/nim-lang/nim |
18:17:59 | surma | Okay, cool! Thanks for confirming! |
18:18:00 | dom96 | although hrm |
18:18:14 | dom96 | You cannot capture `result` in a closure |
18:18:21 | dom96 | That's probably why this fails. |
18:18:28 | dom96 | The error message could be improved in any case |
18:23:35 | * | itseris quit (Ping timeout: 240 seconds) |
18:27:08 | * | couven92 quit (Read error: Connection reset by peer) |
18:29:47 | * | itseris joined #nim |
18:30:35 | * | planhths quit (Ping timeout: 246 seconds) |
18:30:54 | * | couven92 joined #nim |
18:31:05 | * | planhths joined #nim |
18:31:28 | * | fredrik92 joined #nim |
18:31:58 | Araq | oh btw, I have another solution for generic brackets |
18:32:41 | Araq | we can use < > and use the spacing to distinguish between these angle brackets and comparison operators |
18:33:08 | Araq | so X<T> would be a generic, X < T would be a comparison |
18:33:54 | * | couven92 quit (Client Quit) |
18:33:55 | Araq | likewise T>> (without space between the T and the > ) is scanned as T > > |
18:33:59 | * | itseris_ joined #nim |
18:34:05 | * | fredrik92 is now known as couven92 |
18:34:11 | Araq | and T >> X as 'T', '>>', 'X' |
18:34:27 | * | itseris quit (Ping timeout: 255 seconds) |
18:38:57 | * | dankrad quit (Ping timeout: 240 seconds) |
18:41:05 | * | endragor joined #nim |
18:45:08 | * | endragor quit (Ping timeout: 240 seconds) |
18:45:38 | * | v17d joined #nim |
18:51:17 | FromGitter | <TiberiumN> lol, I actually compiled my async app with thread support (but I don't know why I need it :P ) |
18:54:08 | * | sz0 quit (Quit: Connection closed for inactivity) |
18:55:56 | * | v17d quit (Ping timeout: 255 seconds) |
18:59:27 | dom96 | Araq: I dislike this idea. |
18:59:48 | Araq | ok good |
19:00:02 | Araq | I don't like to type all these <> everywhere either |
19:00:09 | Araq | makes Nim look like C++ |
19:01:58 | * | itseris_ quit (Quit: Konversation terminated!) |
19:02:10 | * | itseris_ joined #nim |
19:04:52 | dom96 | [:T] is good IMO |
19:08:02 | FromGitter | <TiberiumN> can I create async dispatcher in another thread called via "spawn" ? |
19:08:53 | FromGitter | <TiberiumN> let dispatch = newDispatcher() ⏎ setGlobalDispatcher(dispatch) ⏎ poll(500) ⏎ inside thread procedure doesn't work [https://gitter.im/nim-lang/Nim?at=5980d1c4a7b406262d4d7300] |
19:08:54 | * | v17d joined #nim |
19:08:58 | FromGitter | <TiberiumN> Error: unhandled exception: No handles or timers registered in dispatcher. [ValueError] |
19:10:49 | * | rokups quit (Quit: Connection closed for inactivity) |
19:14:14 | * | gokr quit (Ping timeout: 240 seconds) |
19:32:03 | * | dankrad joined #nim |
19:55:13 | * | BitPuffin joined #nim |
19:55:20 | * | Trustable quit (Remote host closed the connection) |
20:00:32 | * | BitPuffin|osx quit (Ping timeout: 246 seconds) |
20:23:53 | * | cspar_ joined #nim |
20:25:10 | * | nattefrost quit (Remote host closed the connection) |
20:26:57 | * | cspar quit (Ping timeout: 258 seconds) |
20:37:28 | yglukhov | TiberiumN : yes, but you have to add some sources to it. otherwise there's no point in it. |
20:37:39 | * | Vladar quit (Quit: Leaving) |
20:47:00 | * | UxerUospr quit (Quit: leaving) |
20:51:33 | * | Sentreen quit (Quit: WeeChat 1.4) |
20:53:40 | * | Sentreen joined #nim |
20:54:52 | * | nsf joined #nim |
20:55:25 | * | itseris_ quit (Quit: Konversation terminated!) |
20:55:42 | * | itseris joined #nim |
20:58:17 | * | planhths quit (Quit: Konversation terminated!) |
20:59:56 | * | dankrad quit (Ping timeout: 260 seconds) |
21:01:43 | * | Sentreen quit (Quit: WeeChat 1.4) |
21:01:44 | * | dankrad joined #nim |
21:12:20 | FromGitter | <TiberiumN> yglukhov: what do you mean? copy poll procedure from asyncdispatch? |
21:13:17 | yglukhov | TiberiumN: no, you have to have some event sources in the loop. like sockets/fds or timers... |
21:13:41 | yglukhov | whats your reason to use asyncdispatch in background? |
21:15:48 | * | rauss quit (Quit: WeeChat 1.9) |
21:16:57 | FromGitter | <TiberiumN> well i've just wanted to test it, to see if it works |
21:20:17 | FromGitter | <yglukhov> Yeah, i mean, whats your use case? What do you want to achieve? E.g. you could run asynchttpclient in a background thread to verify that it works :) |
21:20:59 | * | couven92 quit (Quit: Client Disconnecting) |
21:21:21 | FromGitter | <yglukhov> But youre trying to run an empty runloop. That would not work on main thread either. |
21:22:17 | FromGitter | <TiberiumN> ah, ok then, thanks for explanation :) |
21:33:32 | * | dankrad quit (Ping timeout: 260 seconds) |
21:35:14 | * | vendethiel quit (Ping timeout: 255 seconds) |
21:35:26 | * | dankrad joined #nim |
21:35:39 | * | yglukhov quit (Remote host closed the connection) |
21:40:08 | * | nhywyll quit (Quit: nhywyll) |
21:42:45 | * | gokr joined #nim |
21:46:07 | * | yglukhov joined #nim |
21:47:41 | * | ipjk joined #nim |
21:51:01 | * | yglukhov quit (Ping timeout: 276 seconds) |
22:00:40 | * | Sentreen joined #nim |
22:16:07 | FromGitter | <TiberiumN> offtop: tomorrow I'll fully wipe my hard drive, and I'll try to install Hackintosh and Windows 10 dualboot :) |
22:17:22 | * | xet7 quit (Quit: Leaving) |
22:24:24 | * | nsf quit (Quit: WeeChat 1.9) |
22:41:47 | * | gokr quit (Ping timeout: 260 seconds) |
22:42:39 | * | ketralnis quit (Read error: Connection reset by peer) |
22:45:20 | * | ketralnis joined #nim |
22:47:48 | * | rauss joined #nim |
23:04:35 | * | https_GK1wmSU joined #nim |
23:05:43 | * | https_GK1wmSU left #nim (#nim) |
23:09:12 | * | Jesin quit (Quit: Leaving) |
23:44:59 | ipjk | Anyone that might be able to help me out with this? https://pastebin.com/CiMNzyh0 |
23:48:08 | FromGitter | <Varriount> ipjk: |
23:49:15 | FromGitter | <Varriount> ipjk: You can't do that with a closure type. |
23:50:14 | FromGitter | <Varriount> ipjk: A closure type is represented as a (procedure pointer, environment pointer) pair. Giving it a stdcall calling convention is going to cause problems. |
23:50:56 | FromGitter | <Varriount> ipjk: Look at the list of calling conventions here: https://nim-lang.org/docs/manual.html#types-procedural-type |
23:52:29 | * | arnetheduck joined #nim |
23:55:31 | * | itseris quit (Remote host closed the connection) |
23:58:14 | * | arnetheduck quit (Ping timeout: 240 seconds) |