<< 23-06-2021 >>

00:09:11*Epsilon- is now known as Epsilon
00:45:49FromDiscord<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:17FromDiscord<Elegant Beef> I dont imagine there is any logical issue there
00:49:09FromDiscord<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:46FromDiscord<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:35FromDiscord<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:30FromDiscord<Bung> `Error: unhandled exception: Failed to parse '2021-06-11 15:04:29' with format 'HH:mm:ss '. Unexpected character: 2 [TimeParseError]`
02:17:47FromDiscord<Bung> my format is `YYYY-MM-dd' 'HH:mm:ss`
02:19:21FromDiscord<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:47FromDiscord<Bung> `parse(post.date, dtf)` while use variables it fails.
02:21:17FromDiscord<Elegant Beef> Do you really need that space?
02:21:26FromDiscord<Elegant Beef> Like i dont think it needs to be quoted
02:23:21FromDiscord<Bung> I read the times doc , space is not mentioned
02:24:21FromDiscord<Bung> with or without quote same results
02:24:24FromDiscord<Zachary Carter> in your format
02:24:27FromDiscord<Zachary Carter> sent a code paste, see https://play.nim-lang.org/#ix=3qOe
02:24:31FromDiscord<Zachary Carter> it doesn't work just with whitespace?
02:24:41FromDiscord<Zachary Carter> (edit) "whitespace?" => "whitespace in the format string?"
02:25:29FromDiscord<Bung> it works with my single line test quote or not quote.
02:26:10FromDiscord<Bung> sent a code paste, see https://play.nim-lang.org/#ix=3qOg
02:26:38FromDiscord<Bung> I can't image what cause my format turned to `'HH:mm:ss '`
02:27:00FromDiscord<Zachary Carter> maybe you need to escape the whitespace or something
02:27:05FromDiscord<Zachary Carter> hmm
02:33:14FromDiscord<Bung> no idea , how escape whitespace, also it is suddenly not works, it works couple days before.
02:34:21FromDiscord<Elegant Beef> Did you change nim versions?
02:35:09*rockcavera quit (Remote host closed the connection)
02:36:56FromDiscord<Bung> always devel , 1.4.6 and 1.4.8 will throw `ld: symbol(s) not found for architecture x86_64`
02:39:35FromDiscord<Bung> oh, something might changed when call dll
02:41:41FromDiscord<Bung> yeah, it's my cached dll
02:46:05FromDiscord<Bung> it seems I cant really properly give a cache key to dll
02:49:49*arkurious quit (Quit: Leaving)
03:32:27FromDiscord<@bracketmaster-5a708063d73408ce4> I know you can import files in Nim, what about folders?
03:33:48FromDiscord<Elegant Beef> You mean import the entire folder of modules?
03:34:04FromDiscord<@bracketmaster-5a708063d73408ce4> yeah
03:34:42FromDiscord<@bracketmaster-5a708063d73408ce4> say you have a folder foo. foo contains bar1.nim and bar2.nim
03:34:48FromDiscord<Elegant Beef> No standard way of doing that no, but a macro can do it
03:34:55FromDiscord<@bracketmaster-5a708063d73408ce4> I'd like to do something like import foo
03:35:10FromDiscord<@bracketmaster-5a708063d73408ce4> and then do foo.bar1.some\_func
03:35:14FromDiscord<@bracketmaster-5a708063d73408ce4> a macro?
03:35:18FromDiscord<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:26FromDiscord<Elegant Beef> Yea a macro
03:35:55FromDiscord<@bracketmaster-5a708063d73408ce4> i see
03:36:12FromDiscord<Elegant Beef> That imports all folders in the `command` folder of that bot
03:36:12FromDiscord<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:15FromDiscord<Rika> Well usually you have a file next to the folder that’s named the same which does exactly that
04:10:29FromDiscord<Rika> Except sometimes you don’t want exactly that so you change what the file exports
04:10:46FromDiscord<Rika> Which is why you don’t usually import folders
04:12:56FromDiscord<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:52FromDiscord<Avahe> Can I just wrap tryRecv in an async proc and process it, or something similar?
04:14:27FromDiscord<Elegant Beef> tryRecv shouldnt block though afaik
04:15:15FromDiscord<Avahe> I think even if it doesn't, I'd be blocked while calling poll() for irc events to come in
04:40:35FromDiscord<Valor> trying to download nim again, and my computer wont let me extra nim
04:40:42FromDiscord<Valor> apparenlty its a secuirty risk???
04:44:47FromDiscord<Elegant Beef> Yea some AV will mark it as a virus but it's just a false positive
04:45:55FromDiscord<Valor> how do i turn it off
04:46:43FromDiscord<Elegant Beef> Should be a "keep file" or "ignore warning"
04:48:27*lucerne joined #nim
06:12:35FromDiscord<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:33FromDiscord<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:09FromDiscord<p-i- (Pi)> sent a long message, see http://ix.io/3qOS
06:26:22FromDiscord<p-i- (Pi)> It doesn't seem to be class-based.
06:26:59FromDiscord<Elegant Beef> Yea it just uses a global variable
06:27:33FromDiscord<Elegant Beef> `initClient` sets up that `client` variable so all the procedures can be used
06:28:32FromDiscord<p-i- (Pi)> sent a code paste, see https://play.nim-lang.org/#ix=3qOU
06:28:54FromDiscord<Elegant Beef> It probably doesnt reload the library
06:28:55FromDiscord<p-i- (Pi)> Clumsy meh.
06:29:06FromDiscord<Elegant Beef> I dont know how python works
06:29:31FromDiscord<Rika> might be best to open an issue
06:30:55FromDiscord<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:00FromDiscord<p-i- (Pi)> Is that some nim convention.
06:31:27FromDiscord<p-i- (Pi)> And then 'newHttpClient'↵Confusing.
06:31:54FromDiscord<Rika> httpclient => module↵HttpClient => type↵newHttpClient => initialiser/constructor
06:32:10FromDiscord<p-i- (Pi)> The lib says it's not supported any more, but yes I'll try and file an issue.
06:32:21FromDiscord<p-i- (Pi)> Thanks.
06:32:36FromDiscord<Rika> its convention. i could say the same thing about python conventions like magic methods
06:32:44FromDiscord<Rika> (that its confusing)
06:36:53FromDiscord<p-i- (Pi)> No, I got it now. It's the implicit imports that confused me.
06:36:57FromDiscord<Elegant Beef> it's in a template, so it's being unhygenic
06:37:03FromDiscord<p-i- (Pi)> sent a code paste, see https://paste.rs/sZs
06:37:39FromDiscord<Elegant Beef> templates are typically hygienic and do variables declared them are gensym'd(unaccessible) so that overrides that behaviour
06:39:32FromDiscord<p-i- (Pi)> I see, it's like using `nonlocal foo` in Python...
06:39:49FromDiscord<Elegant Beef> Well no, cause a template injects code where it was called
06:39:59FromDiscord<Elegant Beef> I dont think python has an equivlent
06:40:26FromDiscord<p-i- (Pi)> Ah the metaprogramming. cool.
06:40:55FromDiscord<p-i- (Pi)> sent a code paste, see https://play.nim-lang.org/#ix=3qOX
06:41:17FromDiscord<Elegant Beef> that's a template call and `:` is for passing the last argument
06:42:08FromDiscord<Elegant Beef> sent a code paste, see https://play.nim-lang.org/#ix=3qOY
06:45:15FromDiscord<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:43FromDiscord<p-i- (Pi)> To allow some kind of circular definition/use pattern...
06:46:45FromDiscord<Elegant Beef> That's templates in action
06:47:01FromDiscord<Rika> thats just the syntax of nim i believe?
06:47:07FromDiscord<Rika> hard to understand because of the bridge
06:47:21FromDiscord<Rika> (edit) "hard to understand because of the ... bridgebeing" added "chatroom" | "chatroombridge ... " added "being weird with your msgs"
06:48:24FromDiscord<p-i- (Pi)> It doesn't like code sections maybe
06:48:40FromDiscord<p-i- (Pi)> I see you are bridging from discord
06:48:55*Schnouki joined #nim
06:48:57FromDiscord<p-i- (Pi)> Could somone throw me a link?
06:49:44FromDiscord<p-i- (Pi)> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/857150077809983519): Matrix doesn't like code sections maybe
06:49:49FromDiscord<Rika> i think the invite is literally just nim
06:50:12FromDiscord<Rika> yeah the invite is just "nim"
06:51:29FromDiscord<Elegant Beef> Generally though templates like that let you write code in a more ergnomic way without any loss in performance
06:51:29FromDiscord<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:48FromDiscord<p-i- (Pi)> Is there anyone around now that understands how to achieve workaround?
06:52:15FromDiscord<p-i- (Pi)> I'd like to have another crack at it.
06:52:30FromDiscord<p-i- (Pi)> Maybe I can actually fix this `faster` lib myself and submit a PR.
06:54:42FromDiscord<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:10FromDiscord<Elegant Beef> So doing what i showed instead of `-d:lto` works
06:56:21FromDiscord<Rika> why? clang on mac doesnt like -flto?
06:56:33FromDiscord<Elegant Beef> Apparently
06:56:44FromDiscord<Elegant Beef> https://forum.nim-lang.org/t/8097#51862
06:59:32FromDiscord<p-i- (Pi)> > ↵> So doing what i showed instead of -d\:lto works↵> ^ Did you show something?
06:59:37FromDiscord<p-i- (Pi)> I can't find it in the scrolllback
07:00:01FromDiscord<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:37FromDiscord<p-i- (Pi)> But I can't see a way to prevent nimporter from filling out the value
07:03:10FromDiscord<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:03FromDiscord<Elegant Beef> My point is make a PR to it with the fix
07:05:13FromDiscord<Elegant Beef> Your local fixes do not resolve anyone else that uses mac with it 😀
07:05:25PMunchHmm, is the forum updater bot not moved over from Freenode?
07:05:42FromDiscord<Elegant Beef> Dont think so
07:05:59FromDiscord<p-i- (Pi)> You think I should submit a patch to `nimporter`?
07:06:27FromDiscord<Elegant Beef> Well by using `-d:lto` it just doesnt work on mac
07:07:54FromDiscord<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:36FromDiscord<Elegant Beef> Eh it's two flags
07:08:56FromDiscord<p-i- (Pi)> There's also an `--os:macOSX` flag that should anull it.
07:09:14FromDiscord<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:43FromDiscord<Avahe> PMunch: you have any thoughts on a solution for this? https://play.nim-lang.org/#ix=3qOQ
07:10:23FromDiscord<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:59PMunchUhm, is that return intended to be inside the inner procedure?
07:11:59FromDiscord<Avahe> Hmm I would think it wouldn't make a difference but I suppose not
07:12:03PMunchWhat are you trying to do there?
07:12:35PMunchBecause it looks like you're trying to wait for yourself, which isn't a great idea
07:12:37FromDiscord<Avahe> Basically I want access to my Foo object when I get an event back from the irc connection
07:12:58PMunchAah, I see
07:14:18PMunchFirst 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:06FromDiscord<Avahe> Hot damn that return actually was the problem. Thought it'd be fine since the both were voids
07:16:21PMunchYay :)
07:16:28FromDiscord<Avahe> Thanks haha.
07:16:38PMunchNo problem at all :)
07:17:08PMunchDid we lose you to the discord crowd after transferring to Libera by the way?
07:18:28FromDiscord<Avahe> Nah I'm still on freenode and plan to bridge the nim channels, that's what I'm working on
07:18:52FromDiscord<Avahe> Hopefully will be ready tomorrow or the next day
07:18:53PMunchYeah I saw you where still on Freenode, but I wondered why you weren't on here
07:18:59PMunchAah right
07:21:01*lucerne joined #nim
07:24:45*Vladar joined #nim
07:47:57*ozzz quit (Ping timeout: 265 seconds)
07:56:00FromDiscord<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:35FromDiscord<haxscramper> Positional parameters are initialized to null by default IIRC
08:09:55FromDiscord<haxscramper> So you just need to specify parameters using their number
08:10:30FromDiscord<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:26FromDiscord<Araq> hmm I think I need a new CPU. are these affordable once again?
08:27:22FromDiscord<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:51FromDiscord<Rika> cpus didnt really rise i believe
08:28:35FromDiscord<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:27FromDiscord<Rika> idk the situation in germany sorry xd hell i dont even know the situation in specific countries
08:41:46FromDiscord<Varriount> Hm, this is interesting: https://blog.adacore.com/going-beyond-ada-2022↵Especially the "Additional `When` constructs"
08:46:07FromDiscord<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:35FromDiscord<haxscramper> It is immediately useful and simple to understand
09:03:52FromDiscord<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:33FromDiscord<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:10FromDiscord<Rika> im already so lazy that i dont capitalise or underscore and you want me to do BOTH?!? (i am joking)
10:06:31FromDiscord<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:25FromDiscord<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:26FromDiscord<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:29FromDiscord<p-i- (Pi)> Can anyone see why this nim code won't parallelize?
11:21:34FromDiscord<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:32FromDiscord<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:20FromDiscord<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:45FromDiscord<Rika> ...is my guess
11:58:14FromDiscord<Rika> in truth i do not know how easy it is to work with async python externally
11:58:36FromDiscord<Rika> but i assume it would be difficult because it is difficult for other languages to do
12:00:43FromDiscord<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:13FromDiscord<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:03FromDiscord<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:14ozzzHello 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:26FromDiscord<Araq> use your platforms "resource file" mechanism please
12:44:23ozzzAraq, thanks, possible solution.
12:56:18FromDiscord<dom96> You can also staticRead the file. You might need to patch nigui to accept image data from memory rather than file.
13:03:14PMunchOr write the image into temporary storage when your program runs and let nigui read it from there
13:03:21PMunchWhich is slightly hacky, but should work
13:26:47*fputs joined #nim
13:28:00FromDiscord<Avahe> @dom96 I was planning on having each client run on a different thread but I could just use async
13:34:26PMunchWoohoo, schedule for NimConf is live: https://conf.nim-lang.org/
13:37:35*luis_ quit (Quit: luis_)
13:41:26FromDiscord<zetashift> and they are all amazing subjects
13:42:00PMunchCurious about the "Zen of Nim" talk by Araq, all the others are pretty easy to guess what are about
13:42:36FromDiscord<zetashift> yeah same
13:43:00*beshr quit (Read error: Connection reset by peer)
13:44:02FromDiscord<zetashift> Zen of Nim: Or how I stopped worrying about style insensitivity
13:44:25FromDiscord<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:33FromDiscord<Araq> it's an introduction into Nim as much as it's about the philosophy of the language's design
13:45:54FromDiscord<zetashift> exciting!
13:46:03FromDiscord<dom96> So many talks 😮
13:46:43FromDiscord<zetashift> Next year maybe a 2 day conf 😉
13:47:03FromDiscord<Araq> we thought about that, yes
13:47:14FromDiscord<dom96> Yay. Norm talk
13:47:19FromDiscord<dom96> I love that library 🙂
13:57:53PMunchThat's kinda what I expected, looking forward to it :)
13:59:00FromDiscord<konsumlamm> i feel like case insensitivity doesn't even make a difference, people just use camelCase all the time
13:59:05FromDiscord<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:06FromDiscord<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:07FromDiscord<planetis> nice cant wait
13:59:07FromDiscord<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:18FromDiscord<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:09FromDiscord<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:20FromDiscord<konsumlamm> it would have been easier to just leave it out
14:09:43FromDiscord<dom96> I think it is the case in practice more than people think
14:09:56FromDiscord<dom96> in particular when it comes to C wrappers
14:11:41PMunchkonsumlamm, 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:00PMunchSo the names are 1:1 with the C sources, and then I can use camelCase when I write Nim code
14:12:44FromDiscord<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:34PMunchOh well, gotta go
14:13:35*PMunch quit (Quit: leaving)
14:33:37FromDiscord<planetis> i import a wrapped C lib and use camel case
14:35:48FromDiscord<planetis> what breaks it is when people use MyFoo for function names
14:38:04FromDiscord<zetashift> Raylibbbbbb
14:38:25FromDiscord<Avahe> In reply to @dom96 "Why? Async already essentially": Okay you've convinced me :P
14:41:12FromDiscord<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:56ozzzdom96: yeah, I used tmp file variant, thanks.
15:21:38ozzzpatching 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:57FromDiscord<p-i- (Pi)> sent a code paste, see https://play.nim-lang.org/#ix=3qT6
15:41:38FromDiscord<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:41FromDiscord<Alea> https://media.discordapp.net/attachments/371759389889003532/857284278907043870/unknown.png
15:45:02FromDiscord<haxscramper> https://github.com/nim-lang/Nim/blob/3b1aabdcffafbbf37ad02f013f754f67dfe2461c/config/nim.cfg#L46
15:45:12FromDiscord<haxscramper> Exactly as you linked
15:45:17FromDiscord<Alea> thanks
15:45:48FromDiscord<Alea> sent a code paste, see https://play.nim-lang.org/#ix=3qT7
15:58:17FromDiscord<dom96> In reply to @Avahe "Okay you've convinced me": Great 🙂↵Happy to help if you get into any problems 🙂
16:04:13FromDiscord<j.dupaon> hi all, will the conf be available on replay after ?
16:06:37FromDiscord<dom96> Yep
16:07:16FromDiscord<dom96> Do join if you can though. The live chat is fun
16:16:46*stkrdknmibalz joined #nim
16:20:46FromDiscord<j.dupaon> I imagine. 🙂
16:21:00FromDiscord<j.dupaon> 11 UTC is 1 in the morning here
16:34:17FromDiscord<dom96> Ouch. Maybe you can wake up early or sleep late 🙂
16:44:14FromDiscord<j.dupaon> I'll probably be able to see the beginning but I'm not sure to be back after ... "lunch"
16:54:47FromDiscord<Alea> sent a code paste, see https://play.nim-lang.org/#ix=3qTD
16:55:04FromDiscord<Alea> I have no idea why only those 3 are unquotted
16:56:03FromDiscord<Alea> (edit) "https://play.nim-lang.org/#ix=3qTD" => "https://paste.rs/GdB"
16:59:19Clonkk[m]How the fuck can getAst be ambigous oO ?
17:01:33FromDiscord<zetashift> you define getAst somewhere in the same scope? 😮
17:01:57Clonkk[m]Well no
17:01:59Clonkk[m]I'm not an animal
17:02:24Clonkk[m]Ah got it
17:02:34Clonkk[m]It's the proc getAST is called on
17:11:29*fputs joined #nim
17:13:33FromDiscord<Avahe> In reply to @dom96 "Great 🙂 Happy to": Thanks 🙂 will be a few hours before I can work on it again
17:19:49FromDiscord<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:43FromDiscord<dom96> sounds like a question for stackoverflow
17:25:23FromDiscord<zetashift> it really does
17:25:47FromDiscord<zetashift> or I could be a baller and just hardcode it with "C" and move on with my life
17:33:36FromDiscord<dom96> or you could ask the user: "Hey, where is your Windows folder?" 😄
17:39:42FromDiscord<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:20FromDiscord<zetashift> My google search didn't even get me close to such an answer :(, all I got was Nim installation stuff
17:48:23FromDiscord<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:11FromDiscord<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:05FromDiscord<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:13FromDiscord<zetashift> I'll remember that tactic, good one
18:23:52FromDiscord<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:46FromDiscord<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:55FromDiscord<clyybber> That's pretty much all of it
18:31:20FromDiscord<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:34FromDiscord<clyybber> sent a code paste, see https://play.nim-lang.org/#ix=3qUl
18:39:16FromDiscord<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:32FromDiscord<clyybber> but are situations where only the developer knows about that
18:41:03*fputs joined #nim
18:42:38FromDiscord<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:23FromDiscord<clyybber> Yeah, but this couldn't generally catch that
18:44:34FromDiscord<clyybber> sent a code paste, see https://paste.rs/nDW
18:44:52FromDiscord<clyybber> In the previous example b[i] = c[i] is a kind of explicit "intializtation"
18:45:06FromDiscord<clyybber> but preventing reads of b[i] if it might have been moved would make sense
18:45:28FromDiscord<clyybber> but move is explicit and allows you to override the compilers analysis essentially
18:46:50FromDiscord<clyybber> sent a code paste, see https://play.nim-lang.org/#ix=3qUu
18:47:10FromDiscord<clyybber> But this should be enforced for {.requiresInit.} types but I believe it isn't currently
18:47:35FromDiscord<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:24FromDiscord<deech> In reply to @Clyybber "But generally I think": Makes sense! Thanks for explaining.
18:51:47FromDiscord<clyybber> np :)
18:52:24FromDiscord<carpal> how much money did the nim project received in donations?
18:55:20FromDiscord<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:51FromDiscord<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:59FromDiscord<clyybber> yep
19:39:12FromDiscord<gerwy> sent a long message, see http://ix.io/3qUM
19:59:17FromDiscord<zetashift> usually what happens is you make a third module that exports that variable
20:01:18FromDiscord<gerwy> oh
20:01:22FromDiscord<gerwy> kinda sucks
20:04:38FromDiscord<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:08FromDiscord<kaushalmodi> .. also https://github.com/nim-lang/RFCs/issues/299
20:09:40*fputs quit (Remote host closed the connection)
20:12:33FromDiscord<zetashift> `provides a surgical way for client code to access specific private symbols in a module.` but why 😮
20:12:48FromDiscord<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:51FromDiscord<@bracketmaster-5a708063d73408ce4> I sometimes use cast[foo](http://bar)
20:15:54FromDiscord<@bracketmaster-5a708063d73408ce4> oops
20:16:04FromDiscord<@bracketmaster-5a708063d73408ce4> `cast[foo](bar)`
20:16:23FromDiscord<@bracketmaster-5a708063d73408ce4> where is this mentioned in the nim manual?
20:16:48FromDiscord<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:10FromDiscord<kaushalmodi> Otherwise `TYPE(VAR)` or `VAR.TYPE` works.
20:17:24FromDiscord<@bracketmaster-5a708063d73408ce4> yes I know
20:17:35FromDiscord<kaushalmodi> In reply to @@bracketmaster-5a708063d73408ce4 "where is this mentioned": https://nim-lang.github.io/Nim/manual#statements-and-expressions-type-casts
20:17:37FromDiscord<@bracketmaster-5a708063d73408ce4> but I'm wondering where cast is mentioned in the manual
20:17:56FromDiscord<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:11FromDiscord<@bracketmaster-5a708063d73408ce4> alright - that's on me
20:19:09FromDiscord<zetashift> dw happens to everybody from time to time
20:19:26FromDiscord<@bracketmaster-5a708063d73408ce4> what's "dw"?
20:19:30FromDiscord<@bracketmaster-5a708063d73408ce4> oh - don't worry
20:19:32FromDiscord<@bracketmaster-5a708063d73408ce4> thx
20:20:39FromDiscord<zetashift> yup!
20:23:17*PMunch quit (Quit: leaving)
20:31:30FromDiscord<hamidb80> hey
20:39:22FromDiscord<hamidb80> hey
20:42:08FromDiscord<hamidb80> i have a file here https://gist.githubusercontent.com/hamidb80/89e55c57b7c97aabba22bcc8f5ca5934/raw/24b74dcd73717c91bfd01071467d933edb344440/day%252011
20:42:27FromDiscord<hamidb80> sent a code paste, see https://play.nim-lang.org/#ix=3qUZ
20:42:35FromDiscord<hamidb80> and something crazy happens with line iterator
20:43:21FromDiscord<hamidb80> https://media.discordapp.net/attachments/371759389889003532/857360195231416340/unknown.png
20:43:42FromDiscord<hamidb80> it prints all of the lines and gives me an `IOError`
20:44:01FromDiscord<hamidb80> can anybody test it?
20:45:12FromDiscord<hamidb80> nim 1.5.1↵os: windows 10
20:47:25FromDiscord<hamidb80> oh
20:47:36FromDiscord<hamidb80> i lost my mind 😄
20:47:59FromDiscord<Elegant Beef> `"./play.txt".lines`
20:48:49FromDiscord<hamidb80> yep, thanks
20:50:24FromDiscord<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:27FromDiscord<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:04FromDiscord<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:30FromDiscord<timotheecour> re-opened