| 00:09:11 | * | Epsilon- is now known as Epsilon |
| 00:45:49 | FromDiscord | <Avahe> Is there any issue with setting up channels like this (for threading) https://play.nim-lang.org/#ix=3qO3 ?↵The channels are "global", used in c.nim and passed to instances of B |
| 00:48:17 | FromDiscord | <Elegant Beef> I dont imagine there is any logical issue there |
| 00:49:09 | FromDiscord | <Avahe> Thanks. Just trying to make sense of the restrictions with channels |
| 00:55:56 | * | lucerne joined #nim |
| 01:22:14 | * | mjsir911 quit (Remote host closed the connection) |
| 01:22:29 | * | mjsir911 joined #nim |
| 01:46:46 | FromDiscord | <deech> Are source code filters a pretty stable feature? I don't see too many people using them, I find them convenient for certain things but I'd rather forego that if people think they won't be around long term. |
| 01:49:35 | FromDiscord | <Elegant Beef> They're a rather old part of the language i believe so and can do somethings nothing else can so they should be stable/supported |
| 02:03:20 | * | lucerne quit (Remote host closed the connection) |
| 02:04:22 | * | lucerne joined #nim |
| 02:17:30 | FromDiscord | <Bung> `Error: unhandled exception: Failed to parse '2021-06-11 15:04:29' with format 'HH:mm:ss '. Unexpected character: 2 [TimeParseError]` |
| 02:17:47 | FromDiscord | <Bung> my format is `YYYY-MM-dd' 'HH:mm:ss` |
| 02:19:21 | FromDiscord | <Bung> `echo parse("2021-06-11 15:04:29", "YYYY-MM-dd' 'HH:mm:ss")` when I run single line test , it works. |
| 02:19:47 | FromDiscord | <Bung> `parse(post.date, dtf)` while use variables it fails. |
| 02:21:17 | FromDiscord | <Elegant Beef> Do you really need that space? |
| 02:21:26 | FromDiscord | <Elegant Beef> Like i dont think it needs to be quoted |
| 02:23:21 | FromDiscord | <Bung> I read the times doc , space is not mentioned |
| 02:24:21 | FromDiscord | <Bung> with or without quote same results |
| 02:24:24 | FromDiscord | <Zachary Carter> in your format |
| 02:24:27 | FromDiscord | <Zachary Carter> sent a code paste, see https://play.nim-lang.org/#ix=3qOe |
| 02:24:31 | FromDiscord | <Zachary Carter> it doesn't work just with whitespace? |
| 02:24:41 | FromDiscord | <Zachary Carter> (edit) "whitespace?" => "whitespace in the format string?" |
| 02:25:29 | FromDiscord | <Bung> it works with my single line test quote or not quote. |
| 02:26:10 | FromDiscord | <Bung> sent a code paste, see https://play.nim-lang.org/#ix=3qOg |
| 02:26:38 | FromDiscord | <Bung> I can't image what cause my format turned to `'HH:mm:ss '` |
| 02:27:00 | FromDiscord | <Zachary Carter> maybe you need to escape the whitespace or something |
| 02:27:05 | FromDiscord | <Zachary Carter> hmm |
| 02:33:14 | FromDiscord | <Bung> no idea , how escape whitespace, also it is suddenly not works, it works couple days before. |
| 02:34:21 | FromDiscord | <Elegant Beef> Did you change nim versions? |
| 02:35:09 | * | rockcavera quit (Remote host closed the connection) |
| 02:36:56 | FromDiscord | <Bung> always devel , 1.4.6 and 1.4.8 will throw `ld: symbol(s) not found for architecture x86_64` |
| 02:39:35 | FromDiscord | <Bung> oh, something might changed when call dll |
| 02:41:41 | FromDiscord | <Bung> yeah, it's my cached dll |
| 02:46:05 | FromDiscord | <Bung> it seems I cant really properly give a cache key to dll |
| 02:49:49 | * | arkurious quit (Quit: Leaving) |
| 03:32:27 | FromDiscord | <@bracketmaster-5a708063d73408ce4> I know you can import files in Nim, what about folders? |
| 03:33:48 | FromDiscord | <Elegant Beef> You mean import the entire folder of modules? |
| 03:34:04 | FromDiscord | <@bracketmaster-5a708063d73408ce4> yeah |
| 03:34:42 | FromDiscord | <@bracketmaster-5a708063d73408ce4> say you have a folder foo. foo contains bar1.nim and bar2.nim |
| 03:34:48 | FromDiscord | <Elegant Beef> No standard way of doing that no, but a macro can do it |
| 03:34:55 | FromDiscord | <@bracketmaster-5a708063d73408ce4> I'd like to do something like import foo |
| 03:35:10 | FromDiscord | <@bracketmaster-5a708063d73408ce4> and then do foo.bar1.some\_func |
| 03:35:14 | FromDiscord | <@bracketmaster-5a708063d73408ce4> a macro? |
| 03:35:18 | FromDiscord | <Elegant Beef> https://github.com/GaryM-exkage/GDGW-Maverick-Bot/blob/master/src/nimcordbot/utils.nim#L3 well here is a reference to handle it |
| 03:35:26 | FromDiscord | <Elegant Beef> Yea a macro |
| 03:35:55 | FromDiscord | <@bracketmaster-5a708063d73408ce4> i see |
| 03:36:12 | FromDiscord | <Elegant Beef> That imports all folders in the `command` folder of that bot |
| 03:36:12 | FromDiscord | <Elegant Beef> That imports all files in the `command` folder of that bot |
| 04:01:13 | * | lucerne quit (Write error: Connection reset by peer) |
| 04:06:02 | * | supakeen quit (Quit: WeeChat 3.2) |
| 04:06:40 | * | supakeen joined #nim |
| 04:10:15 | FromDiscord | <Rika> Well usually you have a file next to the folder that’s named the same which does exactly that |
| 04:10:29 | FromDiscord | <Rika> Except sometimes you don’t want exactly that so you change what the file exports |
| 04:10:46 | FromDiscord | <Rika> Which is why you don’t usually import folders |
| 04:12:56 | FromDiscord | <Avahe> I'm using the irc module (AsyncIrc) and need to process those events, but I'm also wanting to try reading data from another channel at the same time. Is there a way to process these at the same time? looks like Channel's tryRecv blocks, and so does asyncdispatch.poll() |
| 04:13:52 | FromDiscord | <Avahe> Can I just wrap tryRecv in an async proc and process it, or something similar? |
| 04:14:27 | FromDiscord | <Elegant Beef> tryRecv shouldnt block though afaik |
| 04:15:15 | FromDiscord | <Avahe> I think even if it doesn't, I'd be blocked while calling poll() for irc events to come in |
| 04:40:35 | FromDiscord | <Valor> trying to download nim again, and my computer wont let me extra nim |
| 04:40:42 | FromDiscord | <Valor> apparenlty its a secuirty risk??? |
| 04:44:47 | FromDiscord | <Elegant Beef> Yea some AV will mark it as a virus but it's just a false positive |
| 04:45:55 | FromDiscord | <Valor> how do i turn it off |
| 04:46:43 | FromDiscord | <Elegant Beef> Should be a "keep file" or "ignore warning" |
| 04:48:27 | * | lucerne joined #nim |
| 06:12:35 | FromDiscord | <Avahe> Example here of something I'm hung up on https://play.nim-lang.org/#ix=3qOQ↵Trying to pass a callback to the irc module, but also include the object in the callback. Is there a better paradigm? |
| 06:14:33 | FromDiscord | <Avahe> Would be nice if the callback took a generic, then I could just pass it in.. |
| 06:24:55 | * | lucerne quit (Remote host closed the connection) |
| 06:26:09 | FromDiscord | <p-i- (Pi)> sent a long message, see http://ix.io/3qOS |
| 06:26:22 | FromDiscord | <p-i- (Pi)> It doesn't seem to be class-based. |
| 06:26:59 | FromDiscord | <Elegant Beef> Yea it just uses a global variable |
| 06:27:33 | FromDiscord | <Elegant Beef> `initClient` sets up that `client` variable so all the procedures can be used |
| 06:28:32 | FromDiscord | <p-i- (Pi)> sent a code paste, see https://play.nim-lang.org/#ix=3qOU |
| 06:28:54 | FromDiscord | <Elegant Beef> It probably doesnt reload the library |
| 06:28:55 | FromDiscord | <p-i- (Pi)> Clumsy meh. |
| 06:29:06 | FromDiscord | <Elegant Beef> I dont know how python works |
| 06:29:31 | FromDiscord | <Rika> might be best to open an issue |
| 06:30:55 | FromDiscord | <p-i- (Pi)> This lib seems to be a thin wrapper around some `httpClient` object.↵How come I see `import httpclient` but then `cliente {.inject.} = createU HttpClient`. Different case. |
| 06:31:00 | FromDiscord | <p-i- (Pi)> Is that some nim convention. |
| 06:31:27 | FromDiscord | <p-i- (Pi)> And then 'newHttpClient'↵Confusing. |
| 06:31:54 | FromDiscord | <Rika> httpclient => module↵HttpClient => type↵newHttpClient => initialiser/constructor |
| 06:32:10 | FromDiscord | <p-i- (Pi)> The lib says it's not supported any more, but yes I'll try and file an issue. |
| 06:32:21 | FromDiscord | <p-i- (Pi)> Thanks. |
| 06:32:36 | FromDiscord | <Rika> its convention. i could say the same thing about python conventions like magic methods |
| 06:32:44 | FromDiscord | <Rika> (that its confusing) |
| 06:36:53 | FromDiscord | <p-i- (Pi)> No, I got it now. It's the implicit imports that confused me. |
| 06:36:57 | FromDiscord | <Elegant Beef> it's in a template, so it's being unhygenic |
| 06:37:03 | FromDiscord | <p-i- (Pi)> sent a code paste, see https://paste.rs/sZs |
| 06:37:39 | FromDiscord | <Elegant Beef> templates are typically hygienic and do variables declared them are gensym'd(unaccessible) so that overrides that behaviour |
| 06:39:32 | FromDiscord | <p-i- (Pi)> I see, it's like using `nonlocal foo` in Python... |
| 06:39:49 | FromDiscord | <Elegant Beef> Well no, cause a template injects code where it was called |
| 06:39:59 | FromDiscord | <Elegant Beef> I dont think python has an equivlent |
| 06:40:26 | FromDiscord | <p-i- (Pi)> Ah the metaprogramming. cool. |
| 06:40:55 | FromDiscord | <p-i- (Pi)> sent a code paste, see https://play.nim-lang.org/#ix=3qOX |
| 06:41:17 | FromDiscord | <Elegant Beef> that's a template call and `:` is for passing the last argument |
| 06:42:08 | FromDiscord | <Elegant Beef> sent a code paste, see https://play.nim-lang.org/#ix=3qOY |
| 06:45:15 | FromDiscord | <p-i- (Pi)> So the last argument is using the `cliente` var that was created by the template. That looks ... hacky 😉 Is that the purpose of this construct? |
| 06:45:43 | FromDiscord | <p-i- (Pi)> To allow some kind of circular definition/use pattern... |
| 06:46:45 | FromDiscord | <Elegant Beef> That's templates in action |
| 06:47:01 | FromDiscord | <Rika> thats just the syntax of nim i believe? |
| 06:47:07 | FromDiscord | <Rika> hard to understand because of the bridge |
| 06:47:21 | FromDiscord | <Rika> (edit) "hard to understand because of the ... bridgebeing" added "chatroom" | "chatroombridge ... " added "being weird with your msgs" |
| 06:48:24 | FromDiscord | <p-i- (Pi)> It doesn't like code sections maybe |
| 06:48:40 | FromDiscord | <p-i- (Pi)> I see you are bridging from discord |
| 06:48:55 | * | Schnouki joined #nim |
| 06:48:57 | FromDiscord | <p-i- (Pi)> Could somone throw me a link? |
| 06:49:44 | FromDiscord | <p-i- (Pi)> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/857150077809983519): Matrix doesn't like code sections maybe |
| 06:49:49 | FromDiscord | <Rika> i think the invite is literally just nim |
| 06:50:12 | FromDiscord | <Rika> yeah the invite is just "nim" |
| 06:51:29 | FromDiscord | <Elegant Beef> Generally though templates like that let you write code in a more ergnomic way without any loss in performance |
| 06:51:29 | FromDiscord | <p-i- (Pi)> Yesterday I posted this https://gitter.im/nim-lang/Nim?at=60d22a9124f0ae2a24207f50↵I've had to comment out an nimporter line to build on macOS.↵And I was asking if there is any workaround.↵Someone suggest something, but I didn't understand the answer. |
| 06:51:48 | FromDiscord | <p-i- (Pi)> Is there anyone around now that understands how to achieve workaround? |
| 06:52:15 | FromDiscord | <p-i- (Pi)> I'd like to have another crack at it. |
| 06:52:30 | FromDiscord | <p-i- (Pi)> Maybe I can actually fix this `faster` lib myself and submit a PR. |
| 06:54:42 | FromDiscord | <Elegant Beef> well all that does is `--passc:"-flto"` and `--passl:"-flto"` which i think timothee mentioned is broken on mac with the nim compiler |
| 06:55:10 | FromDiscord | <Elegant Beef> So doing what i showed instead of `-d:lto` works |
| 06:56:21 | FromDiscord | <Rika> why? clang on mac doesnt like -flto? |
| 06:56:33 | FromDiscord | <Elegant Beef> Apparently |
| 06:56:44 | FromDiscord | <Elegant Beef> https://forum.nim-lang.org/t/8097#51862 |
| 06:59:32 | FromDiscord | <p-i- (Pi)> > ↵> So doing what i showed instead of -d\:lto works↵> ^ Did you show something? |
| 06:59:37 | FromDiscord | <p-i- (Pi)> I can't find it in the scrolllback |
| 07:00:01 | FromDiscord | <Elegant Beef> well all that does is --passc\:"-flto" and --passl\:"-flto" which i think timothee mentioned(in regard to -d\:lto) is broken on mac with the nim compiler |
| 07:01:37 | FromDiscord | <p-i- (Pi)> But I can't see a way to prevent nimporter from filling out the value |
| 07:03:10 | FromDiscord | <p-i- (Pi)> I got this suggestion\:↵↵https://gitter.im/nim-lang/Nim?at=60d22c698c12474d8cc8761c↵But I can't see how to do it. |
| 07:04:03 | FromDiscord | <Elegant Beef> My point is make a PR to it with the fix |
| 07:05:13 | FromDiscord | <Elegant Beef> Your local fixes do not resolve anyone else that uses mac with it 😀 |
| 07:05:25 | PMunch | Hmm, is the forum updater bot not moved over from Freenode? |
| 07:05:42 | FromDiscord | <Elegant Beef> Dont think so |
| 07:05:59 | FromDiscord | <p-i- (Pi)> You think I should submit a patch to `nimporter`? |
| 07:06:27 | FromDiscord | <Elegant Beef> Well by using `-d:lto` it just doesnt work on mac |
| 07:07:54 | FromDiscord | <p-i- (Pi)> I'll flag an issue on nimporter.↵Someone with some level of expertise should review and take action, not me I think! |
| 07:08:36 | FromDiscord | <Elegant Beef> Eh it's two flags |
| 07:08:56 | FromDiscord | <p-i- (Pi)> There's also an `--os:macOSX` flag that should anull it. |
| 07:09:14 | FromDiscord | <p-i- (Pi)> Yes, but that flag was probably put there for a reason. It probably does something favourable on another operating system. |
| 07:09:43 | FromDiscord | <Avahe> PMunch: you have any thoughts on a solution for this? https://play.nim-lang.org/#ix=3qOQ |
| 07:10:23 | FromDiscord | <Avahe> Doesn't compile, not sure if it's a bug.. but even if it did, I can't think of a better way to write this |
| 07:10:59 | PMunch | Uhm, is that return intended to be inside the inner procedure? |
| 07:11:59 | FromDiscord | <Avahe> Hmm I would think it wouldn't make a difference but I suppose not |
| 07:12:03 | PMunch | What are you trying to do there? |
| 07:12:35 | PMunch | Because it looks like you're trying to wait for yourself, which isn't a great idea |
| 07:12:37 | FromDiscord | <Avahe> Basically I want access to my Foo object when I get an event back from the irc connection |
| 07:12:58 | PMunch | Aah, I see |
| 07:14:18 | PMunch | First of I'd make it a ref object. When it's just an object it's harder to have multiple references to the same object |
| 07:16:06 | FromDiscord | <Avahe> Hot damn that return actually was the problem. Thought it'd be fine since the both were voids |
| 07:16:21 | PMunch | Yay :) |
| 07:16:28 | FromDiscord | <Avahe> Thanks haha. |
| 07:16:38 | PMunch | No problem at all :) |
| 07:17:08 | PMunch | Did we lose you to the discord crowd after transferring to Libera by the way? |
| 07:18:28 | FromDiscord | <Avahe> Nah I'm still on freenode and plan to bridge the nim channels, that's what I'm working on |
| 07:18:52 | FromDiscord | <Avahe> Hopefully will be ready tomorrow or the next day |
| 07:18:53 | PMunch | Yeah I saw you where still on Freenode, but I wondered why you weren't on here |
| 07:18:59 | PMunch | Aah right |
| 07:21:01 | * | lucerne joined #nim |
| 07:24:45 | * | Vladar joined #nim |
| 07:47:57 | * | ozzz quit (Ping timeout: 265 seconds) |
| 07:56:00 | FromDiscord | <mlokis> Is there a way to pass a null as query parameter when using prepared statement? When i pass `"null"` it gets escaped as string literal. |
| 08:03:26 | * | Helios joined #nim |
| 08:09:35 | FromDiscord | <haxscramper> Positional parameters are initialized to null by default IIRC |
| 08:09:55 | FromDiscord | <haxscramper> So you just need to specify parameters using their number |
| 08:10:30 | FromDiscord | <haxscramper> `prepared.bindParam(8, "arg"); prepared.bindParam(10, "other arg");` |
| 08:13:29 | * | max22- joined #nim |
| 08:15:03 | * | lucerne quit (Remote host closed the connection) |
| 08:26:26 | FromDiscord | <Araq> hmm I think I need a new CPU. are these affordable once again? |
| 08:27:22 | FromDiscord | <vindaar> last time I checked \~2 weeks ago it seemed to be the case. One could even get a 5950x for MSRP. Might be different depending on model of course |
| 08:27:51 | FromDiscord | <Rika> cpus didnt really rise i believe |
| 08:28:35 | FromDiscord | <vindaar> not as bad as GPUs, that's true. But at some point you were also paying a decent premium here in Germany |
| 08:29:27 | FromDiscord | <Rika> idk the situation in germany sorry xd hell i dont even know the situation in specific countries |
| 08:41:46 | FromDiscord | <Varriount> Hm, this is interesting: https://blog.adacore.com/going-beyond-ada-2022↵Especially the "Additional `When` constructs" |
| 08:46:07 | FromDiscord | <Varriount> I'm still skeptical of the pattern-matching craze going on in various languages though. The usefulness of pattern matching seems very dependent on the language. |
| 09:02:35 | FromDiscord | <haxscramper> It is immediately useful and simple to understand |
| 09:03:52 | FromDiscord | <haxscramper> But in languages that don't have any kind of sum type this is less useful |
| 09:13:15 | * | lucerne joined #nim |
| 09:25:58 | * | asd joined #nim |
| 09:33:18 | * | lucerne quit (Remote host closed the connection) |
| 09:34:22 | * | lucerne joined #nim |
| 09:45:44 | * | asd quit (Ping timeout: 252 seconds) |
| 09:47:39 | * | asd joined #nim |
| 09:49:33 | FromDiscord | <Varriount> Hm. Ada syntax is interesting. I like the way parameters are defined. I could do without the Capitals_And_Underscores style though. That just looks painful to type. |
| 09:53:32 | * | asd quit (Ping timeout: 268 seconds) |
| 09:55:07 | * | asd joined #nim |
| 10:00:10 | FromDiscord | <Rika> im already so lazy that i dont capitalise or underscore and you want me to do BOTH?!? (i am joking) |
| 10:06:31 | FromDiscord | <Araq> Ada is nice but quite limited. Back then when I used both Delphi was better. |
| 10:27:30 | * | lucerne quit (Read error: Connection reset by peer) |
| 11:03:07 | * | rockcavera joined #nim |
| 11:03:07 | * | rockcavera quit (Changing host) |
| 11:03:07 | * | rockcavera joined #nim |
| 11:12:25 | FromDiscord | <p-i- (Pi)> However if I time it, I see that the second task is waiting upon completion of the first to initiate |
| 11:12:26 | FromDiscord | <p-i- (Pi)> I'm trying to parallelize HTTP requests using Python async, over this nim lib https://github.com/juancarlospaco/faster-than-requests/blob/master/faster_than_requests/faster_than_requests.nim |
| 11:12:29 | FromDiscord | <p-i- (Pi)> Can anyone see why this nim code won't parallelize? |
| 11:21:34 | FromDiscord | <p-i- (Pi)> I found one relevant issue\: [juancarlospaco/faster-than-requests#167](https://github.com/juancarlospaco/faster-than-requests/issues/167) |
| 11:24:48 | * | lucerne joined #nim |
| 11:37:47 | * | luis_ joined #nim |
| 11:43:32 | FromDiscord | <p-i- (Pi)> To ask more productive question, can anyone see a way to make it play with async python? |
| 11:49:50 | * | max22- quit (Ping timeout: 252 seconds) |
| 11:54:24 | * | SebastianM joined #nim |
| 11:54:26 | * | SebastianM quit (Client Quit) |
| 11:55:21 | * | Torro joined #nim |
| 11:57:20 | FromDiscord | <Rika> async in nim and async in python are two different systems that would need a tonne of work to make work together |
| 11:57:45 | FromDiscord | <Rika> ...is my guess |
| 11:58:14 | FromDiscord | <Rika> in truth i do not know how easy it is to work with async python externally |
| 11:58:36 | FromDiscord | <Rika> but i assume it would be difficult because it is difficult for other languages to do |
| 12:00:43 | FromDiscord | <p-i- (Pi)> I'm getting segfaults trying to make http requests on 2 simultaneous threads |
| 12:06:02 | * | supakeen quit (Quit: WeeChat 3.2) |
| 12:06:38 | * | supakeen joined #nim |
| 12:11:01 | * | lucerne quit (Read error: Connection reset by peer) |
| 12:13:05 | * | lucerne joined #nim |
| 12:25:32 | * | arkurious joined #nim |
| 12:30:13 | FromDiscord | <dom96> In reply to @Avahe "I'm using the irc": What are you using channels for here? Async only should be all you need |
| 12:31:03 | FromDiscord | <dom96> In reply to @p-i- (Pi) "I'm getting segfaults trying": @p-i- (Pi) what is your goal? Using Python async and Nim’s in the same process? |
| 12:37:29 | * | luis_ quit (Quit: luis_) |
| 12:37:49 | * | luis_ joined #nim |
| 12:39:09 | * | ozzz joined #nim |
| 12:41:14 | ozzz | Hello all! Is here anybody who uses nigui? I want to integrate image in binary, but seems nigui only can load it from file |
| 12:42:26 | FromDiscord | <Araq> use your platforms "resource file" mechanism please |
| 12:44:23 | ozzz | Araq, thanks, possible solution. |
| 12:56:18 | FromDiscord | <dom96> You can also staticRead the file. You might need to patch nigui to accept image data from memory rather than file. |
| 13:03:14 | PMunch | Or write the image into temporary storage when your program runs and let nigui read it from there |
| 13:03:21 | PMunch | Which is slightly hacky, but should work |
| 13:26:47 | * | fputs joined #nim |
| 13:28:00 | FromDiscord | <Avahe> @dom96 I was planning on having each client run on a different thread but I could just use async |
| 13:34:26 | PMunch | Woohoo, schedule for NimConf is live: https://conf.nim-lang.org/ |
| 13:37:35 | * | luis_ quit (Quit: luis_) |
| 13:41:26 | FromDiscord | <zetashift> and they are all amazing subjects |
| 13:42:00 | PMunch | Curious about the "Zen of Nim" talk by Araq, all the others are pretty easy to guess what are about |
| 13:42:36 | FromDiscord | <zetashift> yeah same |
| 13:43:00 | * | beshr quit (Read error: Connection reset by peer) |
| 13:44:02 | FromDiscord | <zetashift> Zen of Nim: Or how I stopped worrying about style insensitivity |
| 13:44:25 | FromDiscord | <dom96> In reply to @Avahe "<@132595483838251008> I was planning": Why? Async already essentially gives you lightweight threads. Using system threads is just asking for pain 🙂 |
| 13:44:33 | FromDiscord | <Araq> it's an introduction into Nim as much as it's about the philosophy of the language's design |
| 13:45:54 | FromDiscord | <zetashift> exciting! |
| 13:46:03 | FromDiscord | <dom96> So many talks 😮 |
| 13:46:43 | FromDiscord | <zetashift> Next year maybe a 2 day conf 😉 |
| 13:47:03 | FromDiscord | <Araq> we thought about that, yes |
| 13:47:14 | FromDiscord | <dom96> Yay. Norm talk |
| 13:47:19 | FromDiscord | <dom96> I love that library 🙂 |
| 13:57:53 | PMunch | That's kinda what I expected, looking forward to it :) |
| 13:59:00 | FromDiscord | <konsumlamm> i feel like case insensitivity doesn't even make a difference, people just use camelCase all the time |
| 13:59:05 | FromDiscord | <p-i- (Pi)> @\_discord\_132595483838251008\:t2bot.io I'm trying to get the fastest possible http POST, as measured by packet arrival time. |
| 13:59:06 | FromDiscord | <p-i- (Pi)> [juancarlospaco/faster-than-requests#164](https://github.com/juancarlospaco/faster-than-requests/issues/164)↵^ This issue suggests ther e may be a fault within nim's httpClient implementation that procludes multithreading. |
| 13:59:07 | FromDiscord | <planetis> nice cant wait |
| 13:59:07 | FromDiscord | <p-i- (Pi)> [juancarlospaco/faster-than-requests#164](https://github.com/juancarlospaco/faster-than-requests/issues/164)↵^ This issue suggests there may be a fault within nim's httpClient implementation that procludes multithreading. |
| 14:02:18 | FromDiscord | <zetashift> In reply to @konsumlamm "i feel like case": It doesn't make a difference, but reddit/HN/lobster sure like to bring it up every damn time Nim is being discussed |
| 14:03:09 | FromDiscord | <konsumlamm> ye, but nim people also like to advertise it as "everyone can use their own style", but i don't think that's really the case in practice either |
| 14:03:20 | FromDiscord | <konsumlamm> it would have been easier to just leave it out |
| 14:09:43 | FromDiscord | <dom96> I think it is the case in practice more than people think |
| 14:09:56 | FromDiscord | <dom96> in particular when it comes to C wrappers |
| 14:11:41 | PMunch | konsumlamm, some people use snake case, I tend to when I'm wrapping C code |
| 14:11:50 | * | stkrdknmibalz quit (Quit: WeeChat 3.0.1) |
| 14:12:00 | PMunch | So the names are 1:1 with the C sources, and then I can use camelCase when I write Nim code |
| 14:12:44 | FromDiscord | <Rika> In reply to @konsumlamm "ye, but nim people": a lot of the libraries ive seen use snake or camel so im p sure its the case in practice |
| 14:13:34 | PMunch | Oh well, gotta go |
| 14:13:35 | * | PMunch quit (Quit: leaving) |
| 14:33:37 | FromDiscord | <planetis> i import a wrapped C lib and use camel case |
| 14:35:48 | FromDiscord | <planetis> what breaks it is when people use MyFoo for function names |
| 14:38:04 | FromDiscord | <zetashift> Raylibbbbbb |
| 14:38:25 | FromDiscord | <Avahe> In reply to @dom96 "Why? Async already essentially": Okay you've convinced me :P |
| 14:41:12 | FromDiscord | <planetis> i mean it breaks my editor, but you can use .importc\: "MyFoo" and be done with it |
| 14:42:55 | * | Vladar quit (Quit: Leaving) |
| 14:51:59 | * | max22- joined #nim |
| 14:56:21 | * | Torro quit (Quit: leaving) |
| 15:13:13 | * | fputs quit (Remote host closed the connection) |
| 15:18:56 | ozzz | dom96: yeah, I used tmp file variant, thanks. |
| 15:21:38 | ozzz | patching nigui might be tricky, I need binary for linux and win, and not experienced enough with gdiplus to go deep there |
| 15:23:54 | * | mib_y6ixso joined #nim |
| 15:32:55 | * | mib_y6ixso quit (Quit: https://mibbit.com Online IRC Client) |
| 15:39:57 | FromDiscord | <p-i- (Pi)> sent a code paste, see https://play.nim-lang.org/#ix=3qT6 |
| 15:41:38 | FromDiscord | <Alea> can anyone tell me what the default state of this block in nim.cfg is? I think I edited it and broke the compiler |
| 15:41:41 | FromDiscord | <Alea> https://media.discordapp.net/attachments/371759389889003532/857284278907043870/unknown.png |
| 15:45:02 | FromDiscord | <haxscramper> https://github.com/nim-lang/Nim/blob/3b1aabdcffafbbf37ad02f013f754f67dfe2461c/config/nim.cfg#L46 |
| 15:45:12 | FromDiscord | <haxscramper> Exactly as you linked |
| 15:45:17 | FromDiscord | <Alea> thanks |
| 15:45:48 | FromDiscord | <Alea> sent a code paste, see https://play.nim-lang.org/#ix=3qT7 |
| 15:58:17 | FromDiscord | <dom96> In reply to @Avahe "Okay you've convinced me": Great 🙂↵Happy to help if you get into any problems 🙂 |
| 16:04:13 | FromDiscord | <j.dupaon> hi all, will the conf be available on replay after ? |
| 16:06:37 | FromDiscord | <dom96> Yep |
| 16:07:16 | FromDiscord | <dom96> Do join if you can though. The live chat is fun |
| 16:16:46 | * | stkrdknmibalz joined #nim |
| 16:20:46 | FromDiscord | <j.dupaon> I imagine. 🙂 |
| 16:21:00 | FromDiscord | <j.dupaon> 11 UTC is 1 in the morning here |
| 16:34:17 | FromDiscord | <dom96> Ouch. Maybe you can wake up early or sleep late 🙂 |
| 16:44:14 | FromDiscord | <j.dupaon> I'll probably be able to see the beginning but I'm not sure to be back after ... "lunch" |
| 16:54:47 | FromDiscord | <Alea> sent a code paste, see https://play.nim-lang.org/#ix=3qTD |
| 16:55:04 | FromDiscord | <Alea> I have no idea why only those 3 are unquotted |
| 16:56:03 | FromDiscord | <Alea> (edit) "https://play.nim-lang.org/#ix=3qTD" => "https://paste.rs/GdB" |
| 16:59:19 | Clonkk[m] | How the fuck can getAst be ambigous oO ? |
| 17:01:33 | FromDiscord | <zetashift> you define getAst somewhere in the same scope? 😮 |
| 17:01:57 | Clonkk[m] | Well no |
| 17:01:59 | Clonkk[m] | I'm not an animal |
| 17:02:24 | Clonkk[m] | Ah got it |
| 17:02:34 | Clonkk[m] | It's the proc getAST is called on |
| 17:11:29 | * | fputs joined #nim |
| 17:13:33 | FromDiscord | <Avahe> In reply to @dom96 "Great 🙂 Happy to": Thanks 🙂 will be a few hours before I can work on it again |
| 17:19:49 | FromDiscord | <zetashift> Is there a way to get the `Windows` folder no matter what the drive letter is? |
| 17:20:19 | * | springb0k joined #nim |
| 17:22:43 | FromDiscord | <dom96> sounds like a question for stackoverflow |
| 17:25:23 | FromDiscord | <zetashift> it really does |
| 17:25:47 | FromDiscord | <zetashift> or I could be a baller and just hardcode it with "C" and move on with my life |
| 17:33:36 | FromDiscord | <dom96> or you could ask the user: "Hey, where is your Windows folder?" 😄 |
| 17:39:42 | FromDiscord | <pietroppeter> informed by a stackoverflow answer I made a search in winim and this looks promising (although no clue on how you use it :)): https://github.com/khchen/winim/blob/b7b32603f4ef672bc34405bc6200e8aab2c366b1/winim/inc/winbase.nim#L2179 |
| 17:48:20 | FromDiscord | <zetashift> My google search didn't even get me close to such an answer :(, all I got was Nim installation stuff |
| 17:48:23 | FromDiscord | <zetashift> thanks! |
| 17:55:50 | * | Ashu joined #nim |
| 18:02:33 | * | supakeen quit (Remote host closed the connection) |
| 18:02:56 | * | supakeen joined #nim |
| 18:05:11 | FromDiscord | <deech> Shouldn't line 12 here be a compile error? I compile it with `--gc:orc`: https://play.nim-lang.org/#ix=3qU8 |
| 18:11:05 | FromDiscord | <pietroppeter> In reply to @zetashift "My google search didn't": Yeah Google did not give me results so I searched in SO where I found a lowly ranked result which mentioned the fact that there is a windows api for that so I had the idea to search in winim |
| 18:12:13 | FromDiscord | <zetashift> I'll remember that tactic, good one |
| 18:23:52 | FromDiscord | <clyybber> In reply to @deech "Shouldn't line 12 here": No, it's defined behaviour, move will zero out it's argument |
| 18:27:07 | * | fputs quit (Remote host closed the connection) |
| 18:27:46 | FromDiscord | <deech> In reply to @Clyybber "No, it's defined behaviour,": I see. Aside from `destructors.rst` is there any documentation on how `arc` works? |
| 18:29:55 | FromDiscord | <clyybber> That's pretty much all of it |
| 18:31:20 | FromDiscord | <deech> For example, why is a value that has been `move`ed still accessible after the move? |
| 18:35:05 | * | SebastianM joined #nim |
| 18:38:34 | FromDiscord | <clyybber> sent a code paste, see https://play.nim-lang.org/#ix=3qUl |
| 18:39:16 | FromDiscord | <clyybber> now if the i in the second line can be proven to be the same i as in the third line, then the compiler could in theory optimize it to a move automatically |
| 18:39:32 | FromDiscord | <clyybber> but are situations where only the developer knows about that |
| 18:41:03 | * | fputs joined #nim |
| 18:42:38 | FromDiscord | <deech> In reply to @Clyybber "but are situations where": Ah interesting. A nice feature might be to turn off auto defaulting, eg. an object can't be accessed unless it is explicitly initialized. Then reading from a zero'ed out value would be an error. |
| 18:43:23 | FromDiscord | <clyybber> Yeah, but this couldn't generally catch that |
| 18:44:34 | FromDiscord | <clyybber> sent a code paste, see https://paste.rs/nDW |
| 18:44:52 | FromDiscord | <clyybber> In the previous example b[i] = c[i] is a kind of explicit "intializtation" |
| 18:45:06 | FromDiscord | <clyybber> but preventing reads of b[i] if it might have been moved would make sense |
| 18:45:28 | FromDiscord | <clyybber> but move is explicit and allows you to override the compilers analysis essentially |
| 18:46:50 | FromDiscord | <clyybber> sent a code paste, see https://play.nim-lang.org/#ix=3qUu |
| 18:47:10 | FromDiscord | <clyybber> But this should be enforced for {.requiresInit.} types but I believe it isn't currently |
| 18:47:35 | FromDiscord | <clyybber> But generally I think having `move` have clearing semantics is the best design |
| 18:49:51 | * | Sebasti32 joined #nim |
| 18:49:52 | * | SebastianM quit (Read error: Connection reset by peer) |
| 18:51:24 | FromDiscord | <deech> In reply to @Clyybber "But generally I think": Makes sense! Thanks for explaining. |
| 18:51:47 | FromDiscord | <clyybber> np :) |
| 18:52:24 | FromDiscord | <carpal> how much money did the nim project received in donations? |
| 18:55:20 | FromDiscord | <haxscramper> https://nim-lang.org/donate.html has links to respective donation pages, some of which show total amount |
| 18:57:57 | * | Sebasti32 quit (Quit: Bye) |
| 18:58:20 | * | SebastianM joined #nim |
| 19:17:51 | FromDiscord | <Hi02Hi> is a move an optimized copy b/c there is no need to call a destructor afterwards? |
| 19:21:44 | * | SebastianM quit (Quit: Bye) |
| 19:28:59 | FromDiscord | <clyybber> yep |
| 19:39:12 | FromDiscord | <gerwy> sent a long message, see http://ix.io/3qUM |
| 19:59:17 | FromDiscord | <zetashift> usually what happens is you make a third module that exports that variable |
| 20:01:18 | FromDiscord | <gerwy> oh |
| 20:01:22 | FromDiscord | <gerwy> kinda sucks |
| 20:04:38 | FromDiscord | <kaushalmodi> In reply to @Life Sucks "okay so i have": If you are on `devel`, `import foo {.all.}` might help. See the changelog.md changes in https://github.com/nim-lang/Nim/pull/17706 . |
| 20:05:08 | FromDiscord | <kaushalmodi> .. also https://github.com/nim-lang/RFCs/issues/299 |
| 20:09:40 | * | fputs quit (Remote host closed the connection) |
| 20:12:33 | FromDiscord | <zetashift> `provides a surgical way for client code to access specific private symbols in a module.` but why 😮 |
| 20:12:48 | FromDiscord | <zetashift> nvm I'm blind use cases are a lil bit down |
| 20:14:14 | * | PMunch joined #nim |
| 20:14:55 | * | Ashu left #nim (WeeChat 3.2) |
| 20:15:51 | FromDiscord | <@bracketmaster-5a708063d73408ce4> I sometimes use cast[foo](http://bar) |
| 20:15:54 | FromDiscord | <@bracketmaster-5a708063d73408ce4> oops |
| 20:16:04 | FromDiscord | <@bracketmaster-5a708063d73408ce4> `cast[foo](bar)` |
| 20:16:23 | FromDiscord | <@bracketmaster-5a708063d73408ce4> where is this mentioned in the nim manual? |
| 20:16:48 | FromDiscord | <kaushalmodi> In reply to @@bracketmaster-5a708063d73408ce4 "where is this mentioned": I have only needed to cast pointer types when working with C interop. |
| 20:17:10 | FromDiscord | <kaushalmodi> Otherwise `TYPE(VAR)` or `VAR.TYPE` works. |
| 20:17:24 | FromDiscord | <@bracketmaster-5a708063d73408ce4> yes I know |
| 20:17:35 | FromDiscord | <kaushalmodi> In reply to @@bracketmaster-5a708063d73408ce4 "where is this mentioned": https://nim-lang.github.io/Nim/manual#statements-and-expressions-type-casts |
| 20:17:37 | FromDiscord | <@bracketmaster-5a708063d73408ce4> but I'm wondering where cast is mentioned in the manual |
| 20:17:56 | FromDiscord | <kaushalmodi> In reply to @@bracketmaster-5a708063d73408ce4 "but I'm wondering where": I just opened the manual link and Ctrl+F "cast" to get the above link. |
| 20:18:11 | FromDiscord | <@bracketmaster-5a708063d73408ce4> alright - that's on me |
| 20:19:09 | FromDiscord | <zetashift> dw happens to everybody from time to time |
| 20:19:26 | FromDiscord | <@bracketmaster-5a708063d73408ce4> what's "dw"? |
| 20:19:30 | FromDiscord | <@bracketmaster-5a708063d73408ce4> oh - don't worry |
| 20:19:32 | FromDiscord | <@bracketmaster-5a708063d73408ce4> thx |
| 20:20:39 | FromDiscord | <zetashift> yup! |
| 20:23:17 | * | PMunch quit (Quit: leaving) |
| 20:31:30 | FromDiscord | <hamidb80> hey |
| 20:39:22 | FromDiscord | <hamidb80> hey |
| 20:42:08 | FromDiscord | <hamidb80> i have a file here https://gist.githubusercontent.com/hamidb80/89e55c57b7c97aabba22bcc8f5ca5934/raw/24b74dcd73717c91bfd01071467d933edb344440/day%252011 |
| 20:42:27 | FromDiscord | <hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=3qUZ |
| 20:42:35 | FromDiscord | <hamidb80> and something crazy happens with line iterator |
| 20:43:21 | FromDiscord | <hamidb80> https://media.discordapp.net/attachments/371759389889003532/857360195231416340/unknown.png |
| 20:43:42 | FromDiscord | <hamidb80> it prints all of the lines and gives me an `IOError` |
| 20:44:01 | FromDiscord | <hamidb80> can anybody test it? |
| 20:45:12 | FromDiscord | <hamidb80> nim 1.5.1↵os: windows 10 |
| 20:47:25 | FromDiscord | <hamidb80> oh |
| 20:47:36 | FromDiscord | <hamidb80> i lost my mind 😄 |
| 20:47:59 | FromDiscord | <Elegant Beef> `"./play.txt".lines` |
| 20:48:49 | FromDiscord | <hamidb80> yep, thanks |
| 20:50:24 | FromDiscord | <kaushalmodi> @hamidb80 The key is in understanding the return type. `readFile` returns a string; not a seq of string: https://nim-lang.github.io/Nim/io.html#readFile%2Cstring |
| 20:56:27 | FromDiscord | <demotomohiro> This issue has been closed but I think this is a bug need to be fixed.↵https://github.com/nim-lang/Nim/issues/18325 |
| 21:09:04 | FromDiscord | <zetashift> it got closed by the OP tho haha |
| 21:19:10 | * | rockcavera quit (Read error: Connection reset by peer) |
| 21:20:01 | * | rockcavera joined #nim |
| 21:20:01 | * | rockcavera quit (Changing host) |
| 21:20:01 | * | rockcavera joined #nim |
| 21:42:34 | * | aeverr quit (Ping timeout: 252 seconds) |
| 21:46:23 | * | max22- quit (Quit: Leaving) |
| 21:51:10 | * | max22- joined #nim |
| 21:51:12 | * | max22- quit (Client Quit) |
| 22:12:29 | * | Gustavo6046_ joined #nim |
| 22:13:00 | * | Gustavo6046 quit (Ping timeout: 252 seconds) |
| 22:14:48 | * | Gustavo6046_ is now known as Gustavo6046 |
| 22:28:43 | * | vicfred quit (Quit: Leaving) |
| 23:34:30 | FromDiscord | <timotheecour> re-opened |