| 00:22:25 | demi- | valgrind too maybe |
| 00:42:17 | * | planhths quit (Ping timeout: 240 seconds) |
| 00:59:05 | * | yglukhov joined #nim |
| 01:09:41 | * | yingjun joined #nim |
| 01:13:11 | * | Jesin quit (Quit: Leaving) |
| 01:14:08 | * | yingjun quit (Ping timeout: 246 seconds) |
| 01:24:59 | * | chemist69 quit (Ping timeout: 246 seconds) |
| 01:38:52 | * | chemist69 joined #nim |
| 01:45:15 | * | yingjun joined #nim |
| 02:02:00 | * | pilne quit (Quit: Quitting!) |
| 02:05:19 | * | captainkraft joined #nim |
| 02:10:09 | * | rosshadden quit (Quit: WeeChat 1.8) |
| 02:15:32 | * | def-pri-pub joined #nim |
| 02:15:32 | * | def-pri-pub quit (Changing host) |
| 02:15:32 | * | def-pri-pub joined #nim |
| 02:18:16 | * | SusWombat joined #nim |
| 02:18:30 | * | arnetheduck joined #nim |
| 02:31:55 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
| 02:46:20 | * | Neomex quit (Quit: Leaving) |
| 02:49:54 | * | jsgrant quit (Ping timeout: 255 seconds) |
| 02:53:12 | ftsf | any way I can get an object(of RootObject's child)'s type at runtime? either a string or unique id? |
| 02:55:42 | * | libman quit (Quit: Connection closed for inactivity) |
| 03:35:11 | * | LeNsTR|away joined #nim |
| 04:10:02 | FromGitter | <Varriount> ftsf: Depends on the level of granularity you want. |
| 04:10:28 | FromGitter | <Varriount> And you'll have to use a rootref. Objects can't be polymorphic. |
| 04:17:25 | * | def-pri-pub quit (Quit: leaving) |
| 04:24:21 | * | Jesin joined #nim |
| 04:25:09 | * | ofelas quit (Quit: shutdown -h now) |
| 04:26:46 | ftsf | yeah it's of a ref |
| 04:27:03 | * | yingjun quit (Remote host closed the connection) |
| 04:27:12 | ftsf | I want to make a table to index objects by their types |
| 04:27:21 | * | yingjun joined #nim |
| 04:28:46 | * | yingjun quit (Remote host closed the connection) |
| 04:30:07 | * | krux02 quit (Remote host closed the connection) |
| 04:36:56 | FromGitter | <Varriount> ftsf: Look at the typeinfo module |
| 04:37:30 | ftsf | i did, I tried foo.type.name but it only gives me the type that's passed in to the proc, not the type of the created object |
| 04:38:14 | FromGitter | <Varriount> Yes, I was about to mention that |
| 04:38:49 | ftsf | oh wait, typeinfo, i was using typetrait |
| 04:39:14 | FromGitter | <Varriount> I don't know why, but all the current runtime-type retrieval procedures get the type of the variable/parameter that holds the reference, not the underlying reference type. |
| 04:41:05 | FromGitter | <Varriount> Coincidentally, that's the reason the marshal module doesn't support reference polymorphism |
| 04:41:08 | * | yingjun joined #nim |
| 04:41:15 | ftsf | hmm i see |
| 04:41:22 | * | yingjun quit (Remote host closed the connection) |
| 04:41:23 | ftsf | troublesome for my usecase then |
| 04:41:29 | * | yingjun joined #nim |
| 04:41:52 | ftsf | i've worked around it for now by storing a class id and registering that, but it's a pain and seems like it should be unnecessary |
| 04:42:08 | * | yingjun quit (Remote host closed the connection) |
| 04:43:38 | FromGitter | <Varriount> ftsf: Best way to fix this is to lodge an issue, ask araq how to get the true runtime type, then add it to the typeinfo module |
| 04:44:19 | ftsf | https://github.com/nim-lang/Nim/issues/4193 This feature is now available via -d:nimTypeNames but not yet documented and also might change again. |
| 04:45:25 | FromGitter | <Varriount> Oh wonderful. Let's hide a useful feature behind yet another undocumented define. It's not like we don't have 10-15 of those already. |
| 04:46:10 | FromGitter | <Varriount> ftsf: That still doesn't allow you to iterate over the true type's fields though, I think. |
| 04:46:30 | ftsf | hmm i don't need to do that in my case |
| 04:46:33 | FromGitter | <Varriount> I mean, you just need the type name, true, but others need access to the true node |
| 04:46:52 | ftsf | i don't even really need the name, just some kind of distinguisher |
| 04:47:10 | ftsf | which i'm guessing must be stored somewhere... |
| 04:48:33 | FromGitter | <Varriount> Yes. There is a run-time-type container for each type in a Nim program |
| 04:54:45 | FromGitter | <Varriount> ftsf: That issue doesn't appear to address the "get true underlying type" problem |
| 04:54:54 | ftsf | true |
| 04:55:07 | ftsf | i'll make an issue |
| 04:57:30 | * | yingjun joined #nim |
| 05:04:13 | ftsf | https://github.com/nim-lang/Nim/issues/5955 |
| 05:21:17 | * | vlad1777d joined #nim |
| 05:24:32 | * | Vladar joined #nim |
| 05:28:40 | * | gokr joined #nim |
| 05:38:37 | * | rauss quit (Quit: WeeChat 1.8) |
| 05:38:57 | FromGitter | <Varriount> ftsf: You still there? |
| 05:40:24 | ftsf | yep |
| 05:48:12 | FromGitter | <Varriount> ftsf: Unfortunately, the code in your issue works exactly as intended. `type` is meant to get the compile-time type of the expression passed in. |
| 05:48:47 | FromGitter | <Varriount> https://nim-lang.org/docs/manual.html#generics-type-operator |
| 05:50:12 | FromGitter | <Varriount> Ideally, the way to get the underlying type of a reference would be to use https://nim-lang.org/docs/typeinfo.html#toAny,T |
| 05:50:12 | ftsf | hmm that may be so, but something should still fill that purpose |
| 05:50:31 | ftsf | toAny doesn't work on ref objects passed to procs |
| 05:50:34 | ftsf | since they're immutable |
| 05:50:54 | ftsf | going afk now |
| 05:54:38 | FromGitter | <Varriount> ftsf: Yes. You need to pass in a var type, or submit a PR that will accept non-var types (much like unsafeAddr in system.nim) |
| 06:02:00 | FromGitter | <Varriount> *submit a PR for a version of toAny that accepts non-var types |
| 06:05:11 | * | yingjun quit (Remote host closed the connection) |
| 06:05:36 | * | yingjun joined #nim |
| 06:06:32 | * | yingjun quit (Remote host closed the connection) |
| 06:15:08 | * | yingjun joined #nim |
| 06:29:08 | * | yglukhov quit (Ping timeout: 246 seconds) |
| 06:32:45 | * | nsf joined #nim |
| 06:49:25 | * | planhths joined #nim |
| 06:51:15 | * | Arrrr joined #nim |
| 06:51:15 | * | Arrrr quit (Changing host) |
| 06:51:15 | * | Arrrr joined #nim |
| 07:02:26 | * | jsgrant joined #nim |
| 07:06:29 | * | xet7 joined #nim |
| 07:15:24 | * | murych joined #nim |
| 07:24:20 | * | benny_ joined #nim |
| 07:41:55 | * | Andris_zbx joined #nim |
| 07:48:42 | ftsf | so i can get a unique ID from the ref object by casting it, but this feels like there should be a cleaner way |
| 07:55:50 | * | benny_ quit (Remote host closed the connection) |
| 08:02:00 | Araq | ftsf: like what? the runtime doesn't have any other |
| 08:02:09 | Araq | unless you program it. |
| 08:02:30 | ftsf | I mean, a cleaner way to expose that information that won't break if the underlying implementation changes. |
| 08:02:56 | ftsf | but if that's the only way that's fine, just assumed there was another way. |
| 08:04:46 | * | LeNsTR|away quit (Ping timeout: 240 seconds) |
| 08:06:39 | * | jsgrant quit (Read error: Connection reset by peer) |
| 08:07:03 | Arrrr | I don't think there can be a better way unless you implement it yourself. |
| 08:08:09 | * | jsgrant joined #nim |
| 08:20:28 | * | yglukhov joined #nim |
| 08:25:00 | * | yglukhov quit (Ping timeout: 260 seconds) |
| 08:29:02 | * | yglukhov joined #nim |
| 08:29:05 | hlt | hello, is there a good resource/tutorial for using macros to alter AST? |
| 08:30:29 | * | benny_ joined #nim |
| 08:31:23 | * | benny__ joined #nim |
| 08:31:24 | * | benny_ quit (Read error: Connection reset by peer) |
| 08:36:08 | * | PMunch joined #nim |
| 08:39:49 | Arrrr | I learned a lot from https://raw.githubusercontent.com/nim-lang/Nim/devel/doc/astspec.txt |
| 08:47:47 | * | aedigix quit (Remote host closed the connection) |
| 08:49:21 | * | aedigix joined #nim |
| 08:52:34 | * | aedigix quit (Remote host closed the connection) |
| 08:52:54 | * | aedigix joined #nim |
| 08:57:58 | * | aedigix quit (Remote host closed the connection) |
| 08:58:45 | * | aedigix joined #nim |
| 09:01:53 | * | aedigix quit (Remote host closed the connection) |
| 09:03:43 | * | aedigix joined #nim |
| 09:05:29 | * | aedigix quit (Remote host closed the connection) |
| 09:05:54 | * | aedigix joined #nim |
| 09:12:30 | FromGitter | <zacharycarter> can I use an Enum as the key to a table? |
| 09:13:34 | ftsf | zacharycarter sure can |
| 09:13:35 | FromGitter | <zacharycarter> nm I see I need to implement hash |
| 09:14:05 | ftsf | enum shouldn't require a hash unless it's distinct or something? |
| 09:14:11 | FromGitter | <zacharycarter> hrm |
| 09:14:14 | FromGitter | <zacharycarter> I keep getting this error |
| 09:14:38 | FromGitter | <zacharycarter> https://gist.github.com/zacharycarter/2c77a6e3b66a06eaa0888302315e78a1 |
| 09:14:49 | hlt | how can i break an if statement to multiple lines |
| 09:14:51 | hlt | ? |
| 09:15:09 | hlt | if condition* |
| 09:15:29 | Arrrr | import hashes |
| 09:15:34 | FromGitter | <zacharycarter> thanks |
| 09:15:44 | Arrrr | hlt try `if conditionA and ` |
| 09:16:21 | FromGitter | <zacharycarter> that didn't fix the problem Arrrr |
| 09:16:49 | ftsf | zacharycarter, weird, that's a runtime error? |
| 09:16:58 | FromGitter | <zacharycarter> ftsf: yup |
| 09:17:13 | FromGitter | <zacharycarter> I'll try to see if I can reproduce with a minimal example |
| 09:17:59 | hlt | Arrrr: okay |
| 09:18:49 | Arrrr | What table are you using? |
| 09:19:57 | FromGitter | <zacharycarter> standard Table |
| 09:20:39 | Arrrr | That's a weird error |
| 09:20:41 | hlt | Arrrr: that works |
| 09:29:35 | Araq | zacharycarter, error aside, can't you use array[MyEnum, T] instead? |
| 09:31:02 | * | benny__ quit (Remote host closed the connection) |
| 09:32:15 | * | couven92 joined #nim |
| 09:33:30 | FromGitter | <zacharycarter> I could @Araq |
| 09:54:38 | Arrrr | Are dot operators still experimental? |
| 10:02:05 | hlt | i get SIGSEGV during compile with a macro |
| 10:04:16 | hlt | http://termbin.com/6st4 |
| 10:04:18 | hlt | this is the code |
| 10:06:40 | * | hlt is now known as m712 |
| 10:06:46 | SusWombat | http://www.spoj.com has support for nim O: |
| 10:07:42 | Araq | Arrrr: yes |
| 10:10:02 | * | benny_ joined #nim |
| 10:10:59 | Arrrr | The issue is methodName, seems like you cannot access to head 0 1 |
| 10:12:25 | Arrrr | Mm, no, im wrong |
| 10:13:22 | Arrrr | There is something wrong with the way you are building the proc. You can check out the result with `echo treeRepr(result)` |
| 10:13:53 | Arrrr | And then compare with what you expect to get (dumpTree: etc) |
| 10:15:25 | FromGitter | <ephja> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5937d23d02c480e6721e34fc] |
| 10:16:22 | FromGitter | <ephja> I am trying to do something like bindSym($T.getType...) |
| 10:28:38 | * | benny_ quit (Remote host closed the connection) |
| 10:34:20 | * | benny_ joined #nim |
| 10:38:16 | * | ritchie_ joined #nim |
| 10:38:44 | ritchie_ | hello, how can i read from the console in an async loop? |
| 10:41:50 | * | Tiberium joined #nim |
| 10:45:13 | PMunch | dom96, https://github.com/dom96/jester/issues/114 |
| 10:45:26 | PMunch | I added our discussion from here and a suggestion on how to fix it |
| 10:52:59 | * | yingjun quit (Remote host closed the connection) |
| 10:53:09 | * | yingjun joined #nim |
| 10:54:06 | * | yingjun quit (Remote host closed the connection) |
| 10:57:18 | * | yingjun joined #nim |
| 11:02:35 | * | Snircle joined #nim |
| 11:16:12 | * | krux02 joined #nim |
| 11:16:35 | * | yingjun quit (Remote host closed the connection) |
| 11:17:20 | * | yingjun joined #nim |
| 11:17:58 | * | yingjun quit (Remote host closed the connection) |
| 11:22:05 | * | Arrrr quit (Ping timeout: 246 seconds) |
| 11:56:51 | * | chemist69 quit (Ping timeout: 260 seconds) |
| 11:58:29 | FromGitter | <AjBreidenbach> hey, is it possible to export a high order function using the exportc pragma? |
| 12:00:04 | * | Tiberium quit (Remote host closed the connection) |
| 12:00:18 | * | aziz joined #nim |
| 12:03:00 | * | Snircle_ joined #nim |
| 12:04:19 | * | Snircle quit (Ping timeout: 260 seconds) |
| 12:07:12 | Araq | well kind of. if you only have a single instantiation it should work out |
| 12:18:24 | * | yingjun joined #nim |
| 12:18:41 | * | Matthias247 joined #nim |
| 12:22:46 | * | yingjun quit (Ping timeout: 240 seconds) |
| 12:23:33 | * | chemist69 joined #nim |
| 12:24:18 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 12:24:20 | * | murych quit (Read error: Connection reset by peer) |
| 12:24:44 | * | murych joined #nim |
| 12:26:27 | * | Arrrr joined #nim |
| 12:52:04 | FromGitter | <AjBreidenbach> @Araq so did I do something wrong in this code: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5937f6f3df471bc51c36b338] |
| 13:09:35 | * | ftsf quit (Ping timeout: 240 seconds) |
| 13:14:00 | * | ftsf joined #nim |
| 13:14:21 | * | ftsf quit (Read error: Connection reset by peer) |
| 13:15:25 | * | ftsf joined #nim |
| 13:15:26 | * | ftsf quit (Read error: Connection reset by peer) |
| 13:18:13 | * | nsf quit (Quit: WeeChat 1.7.1) |
| 13:22:41 | * | ftsf joined #nim |
| 13:32:04 | * | ftsf quit (Read error: Connection reset by peer) |
| 13:46:17 | * | Neomex joined #nim |
| 13:56:54 | * | andris_ joined #nim |
| 13:58:16 | * | aziz quit (Remote host closed the connection) |
| 13:58:53 | * | Andris_zbx quit (Ping timeout: 246 seconds) |
| 14:12:10 | * | rauss joined #nim |
| 14:15:28 | * | planhths quit (Quit: Konversation terminated!) |
| 14:16:46 | * | planhths joined #nim |
| 14:20:40 | * | yingjun joined #nim |
| 14:22:57 | * | rusua joined #nim |
| 14:25:16 | * | yingjun quit (Ping timeout: 260 seconds) |
| 14:35:44 | * | ftsf joined #nim |
| 14:41:54 | subsetpark | Curious: is there a difference between static and {. compileTime .} ? |
| 14:59:22 | * | ofelas joined #nim |
| 15:02:26 | * | noethics quit (Remote host closed the connection) |
| 15:02:46 | * | noethics joined #nim |
| 15:06:15 | * | nsf joined #nim |
| 15:11:51 | * | benny_ quit (Remote host closed the connection) |
| 15:13:32 | * | benny_ joined #nim |
| 15:13:52 | * | benny_ quit (Remote host closed the connection) |
| 15:14:05 | * | benny_ joined #nim |
| 15:16:16 | * | rauss quit (Ping timeout: 240 seconds) |
| 15:17:28 | * | rauss joined #nim |
| 15:23:52 | * | xet7 quit (Quit: Leaving) |
| 15:26:06 | * | xet7 joined #nim |
| 15:28:08 | * | Neomex quit (Ping timeout: 240 seconds) |
| 15:28:11 | * | Neomex_ joined #nim |
| 15:36:39 | * | benny_ quit (Remote host closed the connection) |
| 15:43:53 | * | ofelas quit (Ping timeout: 246 seconds) |
| 15:44:19 | * | jsgrant quit (Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.) |
| 15:45:17 | * | gokr quit (Ping timeout: 246 seconds) |
| 15:45:51 | * | jsgrant joined #nim |
| 15:48:50 | * | Matthias247 joined #nim |
| 15:49:02 | FromGitter | <Varriount> subsetpark: Probably, but it's not documented. |
| 15:49:03 | * | yglukhov quit (Remote host closed the connection) |
| 15:49:30 | FromGitter | <Varriount> compileTime marks a procedure as always being run at compileTime. static runs a block of code at compile time. |
| 15:50:30 | * | yglukhov joined #nim |
| 15:51:54 | * | Trustable joined #nim |
| 15:54:46 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 15:55:27 | * | ofelas joined #nim |
| 16:01:52 | * | couven92 quit (Quit: Client disconnecting) |
| 16:04:32 | * | arnetheduck quit (Ping timeout: 246 seconds) |
| 16:04:52 | * | benny_ joined #nim |
| 16:06:15 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 16:12:17 | * | stefantalpalaru joined #nim |
| 16:12:56 | stefantalpalaru | is it possible to assign an anonymous proc to a variable? |
| 16:13:10 | FromGitter | <krux02> @Araq do you have an opinion on my issue here? https://github.com/nim-lang/Nim/issues/5845 |
| 16:13:27 | FromGitter | <krux02> stefantalpalaru: yes it is |
| 16:13:34 | niv | futures/generics question: what am i doing wrong? *sadface* https://gist.github.com/niv/4eb451c91a072413949a564896af14ed |
| 16:14:33 | FromGitter | <AjBreidenbach> @Araq my bad about the exportc pragma, sorry you obviously can't export a proc called register to C code :) |
| 16:15:12 | stefantalpalaru | are there calling convention restrictions? because it doesn't work with cdecl |
| 16:16:06 | FromGitter | <krux02> well a lambda expression normally is not a cdecl |
| 16:16:27 | FromGitter | <krux02> a lambda has a closure and therefore it is not a cdecl |
| 16:19:07 | stefantalpalaru | Mine is. I'm trying to convince the Nim transpiler to output a cdecl lambda at the top level of the C file (lambda declared in some other proc), and use the function pointer through a procvar |
| 16:19:18 | stefantalpalaru | no, not all lambdas are closures |
| 16:19:32 | stefantalpalaru | https://nim-lang.org/docs/manual.html#types-procedural-type |
| 16:20:15 | stefantalpalaru | "For an inner proc an analysis is performed whether it accesses its environment. If it does so, it has the calling convention closure, otherwise it has the calling convention nimcall." |
| 16:26:26 | * | andris_ quit (Remote host closed the connection) |
| 16:36:19 | * | yglukhov joined #nim |
| 16:45:21 | * | benny_ quit (Remote host closed the connection) |
| 16:53:40 | * | pilne joined #nim |
| 16:54:04 | * | benny_ joined #nim |
| 16:58:12 | * | benny_ quit (Remote host closed the connection) |
| 17:04:31 | * | krux02 quit (Remote host closed the connection) |
| 17:09:51 | * | benny_ joined #nim |
| 17:17:18 | * | couven92 joined #nim |
| 17:17:49 | * | Trustable quit (Remote host closed the connection) |
| 17:23:10 | Arrrr | niv: could it be that B is of type R instead of T ? |
| 17:24:17 | niv | ugh. yes. but that's not the issue. if i replace that with A() it errors with the same message |
| 17:24:32 | niv | if i remove the AskResult[] wrapper it works, but then i can't pass metadata alongside with R |
| 17:26:36 | Arrrr | No idea, and i guess you can't use simple pointers |
| 17:29:32 | * | yglukhov quit (Remote host closed the connection) |
| 17:31:55 | * | chemist69 quit (Ping timeout: 260 seconds) |
| 17:34:36 | * | planhths quit (Quit: Konversation terminated!) |
| 17:41:22 | * | yglukhov joined #nim |
| 17:47:27 | * | Arrrr quit (Ping timeout: 260 seconds) |
| 17:47:47 | * | Neomex_ quit (Ping timeout: 260 seconds) |
| 17:47:57 | * | aedigix quit (Ping timeout: 240 seconds) |
| 17:49:22 | * | Neomex joined #nim |
| 17:58:46 | * | chemist69 joined #nim |
| 18:00:11 | * | yingjun joined #nim |
| 18:02:19 | * | Trustable joined #nim |
| 18:05:04 | * | aedigix joined #nim |
| 18:05:38 | * | yingjun quit (Ping timeout: 246 seconds) |
| 18:13:27 | * | aedigix quit (Ping timeout: 240 seconds) |
| 18:18:18 | * | yglukhov quit (Remote host closed the connection) |
| 18:33:01 | * | yglukhov joined #nim |
| 18:50:19 | * | couven92 quit (Ping timeout: 260 seconds) |
| 19:07:17 | captainkraft | Is there a way to create an object with default fields other than passing each default into the constructor? Currently, I use an init function that sets them for me, requiring me to call something like "obj.init()" after calling the constructor. |
| 19:08:19 | captainkraft | I also need to type "obj.fieldA" for every field of the object. Is there a way to allow setting fields of a parameter passed to a function without having to retype the parameter's name each time? |
| 19:09:09 | captainkraft | Something like "using: parameter" which will cause "fieldA = someVal" to be equivalent to "parameter.fieldA = someVal" |
| 19:10:03 | captainkraft | Or maybe there is some way to make this nicer via the constructor or other means? |
| 19:10:26 | dom96 | You can just do: MyType() and the fields will be initialised to the default |
| 19:10:51 | dom96 | Although I think at some point specifying each field might be enforced by the compiler. |
| 19:11:21 | PMunch | Oh hi dom96, would this work: https://github.com/dom96/jester/issues/114 ? |
| 19:12:27 | dom96 | hrm, good idea, it might work indeed :) |
| 19:14:01 | * | rauss quit (Ping timeout: 255 seconds) |
| 19:14:11 | captainkraft | dom96: by "the default" do you mean 0? I want to set my own default values. |
| 19:14:55 | captainkraft | This is a small example of what I am doing now: https://gist.github.com/CaptainKraft/fc89ccaa19376299476a34af6f4127a0 |
| 19:14:56 | dom96 | captainkraft: then you should create your own constructor (a procedure named initT or newT depending on whether the type is a ref or not) |
| 19:15:47 | * | rauss joined #nim |
| 19:15:59 | captainkraft | OK, if that's the best option, then I'm doing the right thing. My second question is about making that init function a little nicer. Is there a way to remove the need to type "entity." before each field and tell the proc that it should assume I'm setting the fields of the parameter object? |
| 19:17:21 | captainkraft | This would also be useful for more than just an init, but allowing a function to assume that it is modifying the parameter's fields could be nice for many procs. |
| 19:17:46 | captainkraft | s/but/and |
| 19:21:55 | dom96 | I haven't used it but this exists: https://nim-lang.org/docs/manual.html#overloading-resolution-automatic-self-insertions |
| 19:22:07 | dom96 | I think it's exactly what you want :) |
| 19:22:43 | captainkraft | I'll take a look. Thanks for the help |
| 19:24:44 | captainkraft | Wow, that is exactly what I need. |
| 19:35:35 | PMunch | dom96, in my opinion it would be a tad cleaner as well. Just create the block and return statement in the macro and drop in the block of code verbatim :) |
| 19:36:04 | * | chemist69 quit (Ping timeout: 255 seconds) |
| 19:40:40 | * | chemist69 joined #nim |
| 19:51:06 | * | gokr joined #nim |
| 20:03:03 | * | yingjun joined #nim |
| 20:07:27 | * | yingjun quit (Ping timeout: 240 seconds) |
| 20:13:50 | * | benny_ quit (Remote host closed the connection) |
| 20:17:07 | * | rauss quit (Ping timeout: 246 seconds) |
| 20:18:05 | * | rauss joined #nim |
| 20:36:26 | * | Vladar quit (Remote host closed the connection) |
| 20:39:10 | * | Matthias247 joined #nim |
| 20:50:33 | stefantalpalaru | new pull request to support gccgo 6.3 (and presumably 7.1): https://github.com/nim-lang/Nim/pull/5964 |
| 20:53:54 | ritchie_ | niv, are you the websocket guy? I'm using readLine within the async loop so i can then send to websockets, but i think it's blocking, and i'm getting delayed incoming events over websockets |
| 20:54:53 | ritchie_ | or is readLine(stdin) the way to do it? |
| 21:08:12 | dom96 | ritchie_: stdin.readLine is blocking |
| 21:08:20 | dom96 | Any function that doesn't return a Future is blocking |
| 21:08:20 | * | Trustable quit (Remote host closed the connection) |
| 21:09:31 | dom96 | You can do something like this if you want non-blocking stdin: https://github.com/dom96/nim-in-action-code/blob/master/Chapter3/ChatApp/src/client.nim#L39 |
| 21:09:46 | dom96 | It's very common so this will become easier to do, but for now this "hacky" approach is required. |
| 21:24:32 | * | Syneh__ joined #nim |
| 21:26:25 | FromGitter | <Varriount> @stefantalpalaru: Wow, I didn't think anyone was using the Go GC backend! |
| 21:26:47 | * | pleiosau1 joined #nim |
| 21:26:54 | stefantalpalaru | :-) |
| 21:28:59 | * | StarBrilliant1 joined #nim |
| 21:29:23 | * | StarBrilliant quit (Ping timeout: 240 seconds) |
| 21:29:23 | * | Syneh_ quit (Ping timeout: 240 seconds) |
| 21:29:23 | * | odc quit (Ping timeout: 240 seconds) |
| 21:29:23 | * | gsingh93 quit (Ping timeout: 240 seconds) |
| 21:29:24 | * | nightmared quit (Ping timeout: 240 seconds) |
| 21:29:24 | * | euantor quit (Ping timeout: 240 seconds) |
| 21:29:24 | * | joebo quit (Ping timeout: 240 seconds) |
| 21:29:24 | * | pleiosaur quit (Ping timeout: 240 seconds) |
| 21:29:24 | * | dom96 quit (Ping timeout: 240 seconds) |
| 21:29:25 | * | StarBrilliant1 is now known as StarBrilliant |
| 21:29:48 | * | Syneh__ is now known as Syneh_ |
| 21:30:27 | * | gsingh93 joined #nim |
| 21:30:46 | * | nightmared joined #nim |
| 21:31:09 | * | joebo joined #nim |
| 21:32:54 | * | dom96 joined #nim |
| 21:37:53 | * | rauss quit (Quit: WeeChat 1.8) |
| 22:10:05 | * | yglukhov quit (Remote host closed the connection) |
| 22:10:14 | * | jsgrant quit (Read error: Connection reset by peer) |
| 22:11:23 | * | jsgrant_ joined #nim |
| 22:16:45 | * | gokr quit (Ping timeout: 255 seconds) |
| 22:19:39 | * | yglukhov joined #nim |
| 22:28:25 | * | vlad1777d quit (Remote host closed the connection) |
| 22:41:31 | * | yglukhov quit (Remote host closed the connection) |
| 22:41:40 | * | nsf quit (Quit: WeeChat 1.7.1) |
| 22:42:04 | * | yglukhov joined #nim |
| 22:46:16 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 22:50:46 | * | murych quit (Ping timeout: 240 seconds) |
| 23:05:03 | * | yingjun joined #nim |
| 23:07:24 | FromGitter | <UrKr> For fast 2d collections, is seq[seq[T]] the best choice? All I need is setting at index, reading from index and resizing |
| 23:09:27 | * | yingjun quit (Ping timeout: 260 seconds) |
| 23:20:54 | * | euantor joined #nim |
| 23:21:55 | * | odc joined #nim |
| 23:25:36 | * | rauss joined #nim |
| 23:26:42 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 23:27:54 | * | aedigix joined #nim |
| 23:44:30 | * | arnetheduck joined #nim |
| 23:46:13 | * | yglukhov joined #nim |