00:17:13 | * | yglukhov joined #nim |
00:21:16 | * | desophos joined #nim |
00:21:21 | * | yglukhov quit (Ping timeout: 240 seconds) |
00:25:55 | * | desophos quit (Ping timeout: 252 seconds) |
00:31:11 | * | brson quit (Quit: leaving) |
00:36:48 | * | gokr quit (Ping timeout: 244 seconds) |
00:41:27 | * | yglukhov joined #nim |
00:45:30 | PMunch | Araq, great to see that the new GC is coming along :) |
00:45:54 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:39:05 | * | PMunch quit (Quit: leaving) |
01:47:35 | * | kulelu88 quit (Quit: Leaving) |
01:52:10 | * | Jesin quit (Quit: Leaving) |
02:00:23 | * | Jesin joined #nim |
02:00:33 | * | desophos joined #nim |
02:29:50 | * | yglukhov joined #nim |
02:34:05 | * | yglukhov quit (Ping timeout: 244 seconds) |
02:54:25 | * | yglukhov joined #nim |
02:58:52 | * | yglukhov quit (Ping timeout: 244 seconds) |
03:01:23 | * | |meta quit (Quit: Connection closed for inactivity) |
04:42:59 | * | yglukhov joined #nim |
04:47:37 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:06:55 | * | endragor joined #nim |
05:15:35 | * | gokr joined #nim |
05:20:34 | * | s4 joined #nim |
05:31:43 | * | dmitry_p joined #nim |
05:38:55 | * | desophos quit (Quit: Leaving) |
05:42:11 | * | Demon_Fox quit (Quit: Leaving) |
05:59:41 | * | bjz joined #nim |
06:01:42 | * | bjz_ quit (Ping timeout: 260 seconds) |
06:12:06 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
06:19:00 | * | endragor_ joined #nim |
06:22:40 | * | endragor quit (Ping timeout: 264 seconds) |
06:23:20 | * | bjz joined #nim |
06:29:41 | * | bjz quit (Ping timeout: 244 seconds) |
06:39:01 | * | gokr quit (Ping timeout: 240 seconds) |
06:43:39 | * | endragor_ quit (Remote host closed the connection) |
06:44:18 | * | endragor joined #nim |
06:48:10 | * | filcuc joined #nim |
06:58:54 | * | LowLifePerv joined #nim |
07:06:43 | * | endragor quit (Remote host closed the connection) |
07:14:37 | * | bjz joined #nim |
07:23:02 | * | endragor joined #nim |
07:47:27 | * | aziz_ joined #nim |
07:57:28 | * | yglukhov joined #nim |
08:04:14 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
08:08:26 | * | zodiak_ joined #nim |
08:09:45 | * | zodiak quit (Ping timeout: 244 seconds) |
08:12:09 | * | GangstaCat quit (Ping timeout: 260 seconds) |
08:24:49 | * | ics quit (Quit: Connection closed for inactivity) |
08:25:07 | * | aziz_ quit (Remote host closed the connection) |
08:30:49 | * | LowLifePerv quit (Quit: thinking about getting a znc) |
08:31:35 | * | LowLifePerv joined #nim |
08:32:36 | * | flyx quit (Excess Flood) |
08:33:03 | * | flyx joined #nim |
08:34:34 | vegansk | Araq, hi! Can you look at this please: https://gist.github.com/vegansk/3be27cc3be74adabedab43fec4905369. Is it my bug or the compiler's? |
08:36:08 | Araq | seems like a compiler bug, but you can also solve the problem in the macro I think, you need to generate nnkIdent for the star |
08:36:17 | Araq | nothing else will do. |
08:39:28 | vegansk | But ``postfix(ident"String", "*")`` generates ident for "*". Added macro code: https://gist.github.com/vegansk/3be27cc3be74adabedab43fec4905369#gistcomment-1791402 |
08:46:10 | vegansk | Wow, the "*" op must be the part of the identificator!!! |
08:48:48 | * | Ven joined #nim |
08:55:41 | * | TheLemonMan joined #nim |
09:01:20 | Araq | vegansk: try again. :-) |
09:05:38 | * | GangstaCat joined #nim |
09:12:13 | vegansk | Araq, tried with your commit f7f3d70a683bca1113764f9552417a52cc3fe62e. Version with postfix(ident, "*") fails with the same error. Version with ident"String*" compiles, but test fails on ``declared(String)`` |
09:12:53 | Araq | version with ident"string*" is wrong |
09:15:13 | Araq | well now you know what to touch in the compiler, add a debug(n) and 'koch temp' your example |
09:16:28 | Araq | debugging the compiler is easy. |
09:16:47 | vegansk | thanks |
09:18:36 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:21:20 | * | fastrom joined #nim |
09:23:35 | * | Arrrr joined #nim |
09:23:35 | * | Arrrr quit (Changing host) |
09:23:35 | * | Arrrr joined #nim |
09:32:02 | Araq | vegansk: I think your macro puts the declared identifier in a scope where '*' simply is not allowed |
09:32:09 | Araq | hence the error message stays the same |
09:32:19 | Araq | then it would be no commpiler bug. |
09:33:42 | vegansk | Araq, I found the problem |
09:33:59 | vegansk | https://github.com/nim-lang/Nim/pull/4248 |
09:34:58 | Araq | like I said. :-) |
09:35:28 | vegansk | :-) |
09:38:13 | * | fastrom quit (Quit: Leaving.) |
09:38:35 | * | der-landgraf quit (Quit: WeeChat 1.5) |
10:02:14 | * | bjz joined #nim |
10:04:52 | * | nsf quit (Quit: WeeChat 1.4) |
10:08:55 | Araq | is this a joke? http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.replace |
10:12:44 | TheLemonMan | it's pretty neat |
10:15:27 | cheatfate | Araq, you mean full algo? |
10:16:03 | Araq | the jargon, the size of the algo, the notation |
10:17:12 | Araq | and then they say JS is simple and C++ is complex. Seems an arbitrary statement when you look at the specs. |
10:21:36 | * | irrequietus joined #nim |
10:25:39 | * | GangstaCat quit (Ping timeout: 264 seconds) |
10:25:44 | Araq | but hey, C++ is the only language that gets blamed for operator overloading. It's an unfair world. |
10:31:02 | Arrrr | Why doesn't ecma leave space for implementation? |
10:35:37 | * | gokr joined #nim |
10:37:59 | * | fredrik92 joined #nim |
10:39:07 | Araq | JS is too important now, better leave no space for implementation differences. |
10:40:09 | * | fredrik92 quit (Client Quit) |
10:41:59 | * | GangstaCat joined #nim |
10:43:54 | * | cheatfate_ joined #nim |
10:43:54 | * | cheatfate quit (Read error: Connection reset by peer) |
10:50:02 | * | LowLifePerv quit (Quit: thinking about getting a znc) |
10:54:51 | * | cheatfate_ is now known as cheatfate |
11:01:02 | cheatfate | where is dom96? |
11:06:16 | * | dmitry_p quit (Quit: Leaving) |
11:16:51 | Araq | I don't think I'm allowed to say. |
11:17:37 | * | endragor quit (Remote host closed the connection) |
11:23:36 | cheatfate | Araq, are you allowed to say when he come back? |
11:23:49 | Araq | tomorrow. |
11:24:01 | * | endragor joined #nim |
11:27:54 | * | arnetheduck joined #nim |
11:52:18 | * | fredrik92 joined #nim |
11:56:15 | * | bjz quit (Ping timeout: 260 seconds) |
11:59:07 | * | bjz joined #nim |
12:14:46 | yglukhov | Araq: recent changes in asynchttpserver break things. |
12:15:00 | yglukhov | getting an url in safari now leads to bad request |
12:15:13 | yglukhov | safari doesn't send Content-Length |
12:24:53 | cheatfate | maybe because Content-Length not needed for get requests |
12:25:13 | cheatfate | because there no content |
12:39:17 | * | RGeisel joined #nim |
12:39:33 | * | RGeisel quit (Client Quit) |
12:46:30 | Araq | yglukhov: ok, shouldn't be hard to fix though, right? |
12:50:06 | * | fastrom joined #nim |
13:10:07 | * | irrequietus quit () |
13:17:48 | * | woadwarrior joined #nim |
13:20:36 | * | |meta joined #nim |
13:24:37 | * | s4 quit (Quit: Konversation terminated!) |
13:29:27 | * | bjz_ joined #nim |
13:30:10 | * | bjz quit (Ping timeout: 260 seconds) |
13:49:01 | * | TheLemonMan quit (Remote host closed the connection) |
13:49:33 | * | TheLemonMan joined #nim |
13:55:02 | * | saml quit (Remote host closed the connection) |
13:59:16 | * | saml joined #nim |
14:03:39 | * | zahary quit (Ping timeout: 246 seconds) |
14:05:35 | * | Sembei joined #nim |
14:11:44 | cheatfate | yglukhov, i think we need to remove https://github.com/nim-lang/Nim/blob/devel/lib/pure/asynchttpserver.nim#L233-L235 |
14:12:20 | cheatfate | yglukhov, and this line https://github.com/nim-lang/Nim/blob/devel/lib/pure/asynchttpserver.nim#L232 we must replace with Http411 error |
14:13:16 | yglukhov | cheatfate: i don't what RFC says, but it seems to me that in case of missing Content-Length we should read as much as we can until next request. |
14:14:36 | cheatfate | if `Content-Length` is missing and `Transfer-Encoding` is also missing then this request must be satisfied with Http411 error |
14:22:19 | cheatfate | yglukhov, server must not read whole request because it can be just a simple DoS attack on it... just sending trash and webserver consumes all server's ram |
14:24:28 | cheatfate | but asynchttpserver dont support chunked encoding in requests... |
14:33:49 | * | woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
14:47:14 | * | pregressive joined #nim |
14:58:24 | * | pregressive quit (Remote host closed the connection) |
14:59:40 | * | pregressive joined #nim |
15:50:48 | yglukhov | cheatfate: ok, i agree. will you do the pr? |
15:51:56 | cheatfate | we need to make chunked encoding processor, i dont like `remove some lines PRs` |
15:52:53 | * | fastrom quit (Quit: Leaving.) |
15:53:46 | * | filcuc quit (Read error: Connection reset by peer) |
15:54:07 | * | Parashurama joined #nim |
15:56:16 | Parashurama | Araq_: Hi, What is the rational behind using Rune as an alias to int in unicode module. uint32/int32 is more than large enough for all legal code-points (max is: 0x10ffff) |
15:57:03 | Araq | nobody could be bothered to create a PR for it |
15:57:27 | Araq | runes need to be replaced by graphemes anyway |
15:57:30 | yglukhov | cheatfate, Araq: how about reverting the change until a better solution is available. because now it is just unusable |
15:58:34 | Parashurama | You mean the name 'Rune' by 'Grapheme'? |
15:59:27 | * | chemist69_ joined #nim |
15:59:58 | Parashurama | Araq_: A PR shouldn't be too hard. |
16:00:23 | Parashurama | Araq_: I will do that. |
16:00:25 | Araq | yglukhov: try this one first |
16:00:48 | Araq | Parashurama: no, leave the name as it is for now, but the whole concept needs to be replaced by "grapheme" eventually |
16:01:04 | Parashurama | and chaging Rune = di |
16:01:31 | Parashurama | Araq_: and changing Rune to int32? |
16:01:53 | Araq | Parashurama: fine with me |
16:02:46 | Parashurama | Araq_: Technically there shouldn't be any breaking, since it *is* a distinct type. |
16:03:02 | Araq | I know |
16:03:35 | * | chemist69_ quit (Quit: WeeChat 1.5) |
16:04:23 | * | chemist69 joined #nim |
16:04:46 | yglukhov | Araq: which one? |
16:05:13 | Araq | yglukhov: pushed a fix |
16:06:30 | * | avsej quit (Ping timeout: 260 seconds) |
16:06:40 | yglukhov | Araq: looks good, thanks! |
16:11:35 | cheatfate | heh... |
16:23:50 | * | brson joined #nim |
16:24:24 | * | avsej joined #nim |
16:24:40 | * | avsej quit (Changing host) |
16:24:40 | * | avsej joined #nim |
16:25:12 | * | nsf joined #nim |
16:29:44 | cheatfate | we need to change semantic a little for asynchttpserver |
16:30:12 | cheatfate | aiohttp reads only request body and send to user this information |
16:30:39 | cheatfate | if user wants to read post body or any other body it needs to do it with like await getBody() |
16:31:49 | cheatfate | but i think all this changes must be agreed with dom96 |
16:31:55 | cheatfate | because this is breaking change |
16:33:28 | * | jeffc_ joined #nim |
16:33:41 | * | jeffc quit (Ping timeout: 240 seconds) |
16:39:09 | * | Parashurama quit (Quit: ChatZilla 0.9.92 [Firefox 46.0/20160425115046]) |
16:40:07 | * | Parashurama joined #nim |
16:41:28 | yglukhov | Araq: pls have a look at https://github.com/nim-lang/Nim/pull/4256 |
16:41:31 | yglukhov | bbl |
16:41:59 | * | endragor quit (Remote host closed the connection) |
16:44:16 | Parashurama | Araq_: Is there any interest in unicode and ASCII escape code support in triple strings. ex: usc"""foo \L shrub \u25cf""" |
16:44:19 | Parashurama | Araq_: I already wrote the code a few days ago for a personal project. |
16:46:04 | * | yglukhov quit (Ping timeout: 264 seconds) |
17:08:54 | Araq | Parashurama: yeah but it doesn't need to be built into the core, right? nim is flexible enough to do it at compile-time |
17:09:42 | Parashurama | Araq_: actually the proc has the pragma compiletime. |
17:10:12 | Parashurama | Araq_: I thought it would make a nice addition to the unicode module. |
17:10:34 | * | arnetheduck quit (Ping timeout: 260 seconds) |
17:11:29 | * | alexsystemf__ quit (Read error: Connection reset by peer) |
17:11:32 | * | jeffc_ quit (Ping timeout: 272 seconds) |
17:13:04 | * | cheatfate quit (Read error: Connection reset by peer) |
17:13:18 | * | alexsystemf__ joined #nim |
17:13:47 | Parashurama | Araq_: see gist https://gist.github.com/Parashurama/a2c0971a1c70957379bd7ecc1ec072b8 |
17:20:00 | Araq | hmm, maybe it should be in the core. seems simple enough. |
17:22:36 | * | cheatfate joined #nim |
17:23:05 | Parashurama | Araq_: I will make a PR and we can discuss it there. |
17:23:17 | Araq | yummy |
17:24:18 | * | yglukhov joined #nim |
17:25:31 | Parashurama | Araq_: BTW should I use 'L' or "L". I seem to remember an issue with portable newlines. |
17:27:09 | Araq | I remember newlines working as they should. They don't work like in C though. So sue me. |
17:28:35 | * | desophos joined #nim |
17:28:38 | * | yglukhov quit (Ping timeout: 258 seconds) |
17:32:07 | * | yglukhov joined #nim |
17:33:34 | * | jeffc joined #nim |
17:34:03 | * | fredrik92 quit (Ping timeout: 240 seconds) |
17:34:52 | * | |meta is now known as |2701 |
17:54:57 | * | desophos quit (Remote host closed the connection) |
17:55:21 | * | desophos joined #nim |
17:57:28 | * | fastrom joined #nim |
18:08:29 | * | chemist69 quit (Ping timeout: 250 seconds) |
18:12:56 | * | fredrik92 joined #nim |
18:21:41 | * | chemist69 joined #nim |
18:29:10 | * | Trustable joined #nim |
18:54:54 | * | vendethiel joined #nim |
18:59:45 | * | irrequietus joined #nim |
19:02:09 | * | brson quit (Quit: leaving) |
19:02:24 | * | brson joined #nim |
19:06:39 | * | cheatfate quit (Read error: Connection reset by peer) |
19:07:50 | * | irrequietus quit (Read error: Connection reset by peer) |
19:08:14 | * | irrequietus joined #nim |
19:12:44 | * | yglukhov quit (Remote host closed the connection) |
19:19:39 | * | pregressive quit (Remote host closed the connection) |
19:20:58 | * | pregressive joined #nim |
19:22:34 | * | fastrom1 joined #nim |
19:25:19 | * | fastrom quit (Ping timeout: 260 seconds) |
19:35:14 | * | yglukhov joined #nim |
19:39:33 | * | yglukhov quit (Ping timeout: 240 seconds) |
19:43:49 | * | yglukhov joined #nim |
19:45:08 | * | pregressive quit (Remote host closed the connection) |
19:51:33 | * | fredrik92 quit (Ping timeout: 240 seconds) |
19:52:19 | * | pregressive joined #nim |
19:55:11 | * | yglukhov quit (Remote host closed the connection) |
20:02:48 | * | Sembei quit (Read error: Connection reset by peer) |
20:03:56 | Parashurama | Araq_: If you are still there. I managed to remove all dependencies in the code. so its all contained in 70 LOC. see gist: https://gist.github.com/Parashurama/a2c0971a1c70957379bd7ecc1ec072b8 |
20:05:20 | * | benwbooth joined #nim |
20:05:28 | Parashurama | Araq_: I assume you meant adding the proc to lexer.nim ie: getEscapedCharsTriple or something. |
20:09:17 | * | yglukhov joined #nim |
20:12:20 | Parashurama | Araq_: I think I will just improve proc getString(L: var TLexer, ...) and proc getEscapedChar(L: var TLexer, ...). It would then add the \uXXXX syntax to simple string. |
20:13:36 | * | yglukhov quit (Ping timeout: 246 seconds) |
20:14:18 | * | yglukhov joined #nim |
20:14:20 | * | yglukhov quit (Remote host closed the connection) |
20:26:29 | * | yglukhov joined #nim |
20:26:33 | * | irrequietus quit (Ping timeout: 246 seconds) |
20:26:50 | * | LowLifePerv joined #nim |
20:27:51 | Araq | Parashurama: yup, that's what I had in mind too |
20:29:39 | Parashurama | Araq_: I'm not sure I should change default behavior for triple string since they are treated as rawstring |
20:29:56 | Araq | you shouldn't |
20:30:08 | Parashurama | Araq_: maybe another kind of string or something else? what do you suggest |
20:30:49 | Araq | """foo bar""" & "\u2323" & """workaround""" |
20:31:04 | * | yglukhov quit (Ping timeout: 264 seconds) |
20:31:07 | Araq | that's what I had in mind when I designed """ |
20:31:22 | Parashurama | Araq_: Yes, I think thats good enough for now. |
20:32:09 | Parashurama | Thinking about it its must better than escaping newlines in triple string: it ignore indentation. |
20:34:51 | Parashurama | Araq_: thanks, PR for tomorrow. |
20:36:05 | * | Arrrr_ joined #nim |
20:36:33 | * | Arrrr quit (Ping timeout: 240 seconds) |
20:37:39 | * | yglukhov joined #nim |
20:41:02 | * | Arrrr_ quit (Quit: WeeChat 1.4) |
20:44:28 | * | cheatfate joined #nim |
20:55:39 | * | Sembei joined #nim |
20:56:38 | * | saml quit (Ping timeout: 244 seconds) |
20:57:19 | * | saml joined #nim |
21:04:17 | cheatfate | Araq, i want to speak about futures and concurrency |
21:05:45 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
21:08:03 | cheatfate | Just want to know how you want to do it |
21:10:13 | Araq | oh? I thought you would tell me |
21:11:15 | Araq | I have 1 thread accepting connections, each connection is then handled by one thread in a thread pool |
21:12:18 | * | Trustable quit (Remote host closed the connection) |
21:13:59 | cheatfate | Araq, there is problem just because we have current Future implementation is `ref` so to complete it we need to complete it in thread which has this Future |
21:14:36 | cheatfate | And if we make Future to use shared memory there will be problems with memory leaks i think |
21:15:52 | cheatfate | and also which thread will `poll` or all threads will `poll` |
21:21:01 | cheatfate | i'm thinking about coroutines |
21:21:18 | cheatfate | which has storage for futures which this coroutine started |
21:21:32 | cheatfate | so it can be notified |
21:21:37 | cheatfate | about future is completed |
21:42:44 | cheatfate | Araq, i know you have some experience with coroutines |
21:43:24 | Araq | well in my design the thread pool just gets socket handles |
21:43:42 | Araq | these are ints so they can be passed around without problems |
21:43:57 | Araq | and then the worker thread produces the Future etc. |
21:45:41 | * | irrequietus joined #nim |
21:48:43 | * | Parashurama quit (Quit: ChatZilla 0.9.92 [Firefox 46.0/20160425115046]) |
21:49:44 | * | desophos quit (Remote host closed the connection) |
21:51:08 | cheatfate | I cannot clearly understand all this mechanic |
21:52:59 | * | desophos joined #nim |
21:54:29 | * | desophos quit (Remote host closed the connection) |
21:54:41 | * | desophos joined #nim |
21:57:41 | * | LowLifePerv quit (Quit: thinking about getting a znc) |
21:59:58 | * | yglukhov quit (Remote host closed the connection) |
22:01:33 | cheatfate | So is why i'm asking for help :) |
22:02:33 | * | pregressive quit (Remote host closed the connection) |
22:03:06 | cheatfate | Araq, and i dont trust pthreads... recently i have found that some crazy difference between our Lock semantic in Windows and Unix |
22:03:31 | cheatfate | Windows allow many enters to our Lock within one thread but pthreads no |
22:09:50 | * | irrequietus quit () |
22:10:53 | Araq | that's not crazy, that's documented |
22:11:51 | * | yglukhov joined #nim |
22:12:42 | cheatfate | This can cause a problems using yield and threads at the same time |
22:17:06 | * | yglukhov quit (Ping timeout: 276 seconds) |
22:21:23 | * | |2701 quit (Quit: Connection closed for inactivity) |
22:22:32 | * | Mat4 joined #nim |
22:22:36 | Mat4 | hello |
22:32:58 | cheatfate | nimdoc makes me crazy it shows `imports` of modules imported in `when isMainModule and not defined(nimdoc):` section |
22:33:16 | Araq | cheatfate: I'm very tired, let's discuss async concurrency tomorrow, ok? |
22:33:30 | cheatfate | ok |
22:33:32 | cheatfate | np |
22:33:52 | Araq | but I already told you to copy lwan's architecture :P |
22:33:59 | Araq | or whatever its name is |
22:40:09 | * | chemist69 quit (Ping timeout: 260 seconds) |
22:41:25 | cheatfate | i just trying to avoid creation of asyncdispatch from scratch |
22:41:39 | cheatfate | tomorrow i will create branch with new asyncdispatch |
22:41:58 | cheatfate | and publish my changes |
22:42:04 | cheatfate | to current asyncdispatch |
22:42:26 | cheatfate | so discussion will begins tomorrow :) |
22:42:47 | cheatfate | i have made it fully compatible with old one |
22:44:02 | * | desophos quit (Remote host closed the connection) |
22:48:32 | * | desophos joined #nim |
22:49:02 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:54:33 | * | Pumpkin joined #nim |
22:55:03 | Pumpkin | There is a problem in Nim website. |
22:55:33 | Pumpkin | Click on the Support page. |
22:56:53 | Araq | Pumpkin: what about it? |
22:57:12 | Pumpkin | At the bottom of the page. |
22:57:15 | * | chemist69 joined #nim |
22:57:40 | Pumpkin | the news list covers the bottom of the page |
22:57:51 | Araq | ah some layouting problem. |
22:58:12 | Araq | seems hard to fix :P we'll get a new website soon anyway. |
22:58:23 | Pumpkin | ? |
22:58:30 | Pumpkin | new website? |
22:59:14 | * | yglukhov joined #nim |
22:59:48 | Pumpkin | Araq, who said that? |
22:59:54 | Araq | me. |
23:00:02 | Pumpkin | Who are you? |
23:01:46 | Pumpkin | Araq, who are you? A Nim developer? |
23:02:09 | * | Mat4 quit (Quit: Leaving) |
23:02:30 | Araq | yeah, I'm the dude that started the Nim project. |
23:02:51 | Pumpkin | Andreas Rumpf?! |
23:03:20 | Araq | aye. |
23:03:43 | * | yglukhov quit (Ping timeout: 260 seconds) |
23:03:43 | * | cheatfate quit (Read error: Connection reset by peer) |
23:03:59 | * | cheatfate joined #nim |
23:04:37 | Pumpkin | I believe in you, Araq. |
23:04:43 | * | Jesin quit (Quit: Leaving) |
23:04:49 | Pumpkin | I believe your project. |
23:05:19 | * | mcc joined #nim |
23:05:48 | mcc | Hello... i'm building a simple nim app and i'm confused about a few things... |
23:06:04 | * | gokr quit (Ping timeout: 252 seconds) |
23:06:19 | Pumpkin | What few things, mcc? |
23:06:50 | mcc | first off... i'm interested in using nimYAML http://flyx.github.io/NimYAML/ .... i tried running the "Loading Nim objects from JSON" example at that URL... when I run it I get the error c:\users\andi\.nimble\pkgs\nimyaml-0.4.0\yaml.nim(542, 45) Error: undeclared identifier: 'JsonNode' |
23:07:08 | mcc | this is running in msys2 with the nim from the website |
23:07:43 | mcc | there are two things about this error... first off, what do you suppose i should do about it... and second off, i checked out nimyaml from github, and was able to run the test suite and it worked... which makes me wonder... how does nim decide where to load libraries from, and could i make the version in my github preempt the one in nimble? |
23:08:04 | * | Jesin joined #nim |
23:08:36 | Pumpkin | So, your problem is installation? |
23:08:44 | cheatfate | mcc, i think you need latest `devel` version of nim from github |
23:08:52 | mcc | cheatfate: i'm using it |
23:09:02 | cheatfate | `this is running in msys2 with the nim from the website` |
23:09:09 | * | bjz joined #nim |
23:09:12 | Pumpkin | Guys, can I just say one thing? |
23:09:24 | mcc | pumpkin: well, module installation. nim has worked fine on other files and i can use sdl2 from nimble |
23:10:06 | Pumpkin | Guys, can I just say one thing? |
23:10:13 | mcc | cheatfate: oh, i am sorry. i blanked. i started off with nim from the website, then i downloaded one from git and built it myself. it's ... commit 0ef391b4ccd |
23:10:35 | mcc | the error i am seeing right now is commit 0ef391b4ccd i built myself. |
23:10:47 | cheatfate | then maybe you need flyx but he is away currently |
23:11:10 | Pumpkin | mcc and cheatfate, can I just say one thing? |
23:11:24 | mcc | pumpkin i don't think you need my permission :) |
23:11:43 | mcc | but yes please go ahead? |
23:11:47 | * | |2701 joined #nim |
23:11:51 | Pumpkin | I love Nim. No joke. |
23:12:05 | mcc | My other problems I was having: Second, this is really basic, but how do I append an item to a list? The only thing I can figure out is ARRAYNAME += @[ ITEM ] which seems... weird |
23:12:14 | * | LowLifePerv joined #nim |
23:12:21 | Araq | Pumpkin: thanks :-) |
23:12:34 | Araq | mcc: myseq.add(item) |
23:12:34 | mcc | i am definitely impressed so far |
23:13:00 | mcc | araq: oh, i see that in the manual now. ok |
23:13:10 | * | Pumpkin left #nim (#nim) |
23:13:23 | mcc | Is there a recommended type to use for something like a dictionary or a hash table (either in the stdlib or in nimble)? |
23:13:37 | Araq | mcc: flyx is here in #nim he should be able to help with yaml |
23:13:58 | Araq | tables module is in the stdlib |
23:14:42 | mcc | cool |
23:22:46 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:26:59 | * | benwbooth quit (Ping timeout: 244 seconds) |
23:29:26 | * | benwbooth joined #nim |
23:37:31 | * | cheatfate_ joined #nim |
23:37:31 | * | cheatfate quit (Read error: Connection reset by peer) |
23:39:11 | mcc | ... two part question... "maze.nim(34, 10) Error: type mismatch: got (proc (){.locks: 0.}) but expected 'proc (){.gcsafe.}'" I am assigning an anonymous proc to a variable which is typed gcsafe. Does this error message mean "The anonymous proc you assigned accessed a global garbage-collected variable"? |
23:41:23 | mcc | and, uh... the second part i figured out myself |
23:42:59 | * | desophos quit (Remote host closed the connection) |
23:43:23 | * | desophos joined #nim |
23:46:38 | * | yglukhov joined #nim |
23:49:17 | * | fastrom1 quit (Quit: Leaving.) |
23:50:04 | * | desophos quit (Remote host closed the connection) |
23:51:07 | * | yglukhov quit (Ping timeout: 244 seconds) |
23:51:10 | * | desophos joined #nim |
23:53:16 | * | |2701 is now known as |meta |