<< 08-04-2023 >>

00:26:01*xet7 quit (Remote host closed the connection)
01:02:25*tiorock joined #nim
01:02:25*rockcavera is now known as Guest4725
01:02:25*Guest4725 quit (Killed (sodium.libera.chat (Nickname regained by services)))
01:02:25*tiorock is now known as rockcavera
01:19:00FromDiscord<mrgaturus> sent a code paste, see https://play.nim-lang.org/#ix=4sWb
01:20:41FromDiscord<mrgaturus> (edit) "https://play.nim-lang.org/#ix=4sWb" => "https://play.nim-lang.org/#ix=4sWe"
01:22:53FromDiscord<Elegantbeef> "other iterator"
01:22:53FromDiscord<Elegantbeef> you're returning a pointer
01:23:52FromDiscord<mrgaturus> i mean, i want forward view.grid.tiles to view.tiles, view.grid is private
01:24:08FromDiscord<mrgaturus> (edit) "i mean, i want forward view.grid.tiles ... to" added "(iterator)"
01:25:22FromDiscord<Elegantbeef> I do not follow, but if it works it's fine
01:27:26*ltriant quit (Ping timeout: 250 seconds)
01:44:37FromDiscord<huantian> Yeah that looks fine
01:45:16FromDiscord<huantian> If your goal is like an iterator alias
02:05:48FromDiscord<System64 ~ Flandre Scarlet> Is there something about functional programming in Nim?
02:08:28FromDiscord<Elegantbeef> Depends on what you're after
02:09:07FromDiscord<System64 ~ Flandre Scarlet> In reply to @Elegantbeef "Depends on what you're": I found this↵https://github.com/zero-functional/zero-functional↵IS it good?
02:09:27FromDiscord<Elegantbeef> If you're after chaining iterators, sure
02:11:00FromDiscord<System64 ~ Flandre Scarlet> I loved how Java's streams work
02:11:02FromDiscord<mrgaturus> In reply to @Elegantbeef "If you're after chaining": it was just an alias to no expose all private attribute
02:11:22FromDiscord<mrgaturus> In reply to @huantian "If your goal is": yes is that
02:11:24FromDiscord<Elegantbeef> So then use closure iterators
02:11:36FromDiscord<Elegantbeef> This is all to system mrg
02:11:42FromDiscord<System64 ~ Flandre Scarlet> same for C#'s Linq
02:11:57FromDiscord<mrgaturus> In reply to @Elegantbeef "So then use closure": too overkill
02:12:30FromDiscord<Elegantbeef> I'm still not talking to you
02:12:37FromDiscord<mrgaturus> ah ok
02:12:48FromDiscord<huantian> Tfw when multiple convos
02:13:05FromDiscord<System64 ~ Flandre Scarlet> In reply to @Elegantbeef "So then use closure": Wdym?
02:13:23FromDiscord<ringabout> In reply to @amadan "https://docutils.sourceforge.io/docs/ref/rst/restru": I see, thank you!
02:13:45FromDiscord<Elegantbeef> Use a closure iterator
02:13:45FromDiscord<Elegantbeef> It's very similar to java/C# streams
02:14:25*def- quit (Quit: -)
02:15:11*def- joined #nim
02:17:08FromDiscord<System64 ~ Flandre Scarlet> Ah it uses sugar, right?
02:17:16FromDiscord<Elegantbeef> What?
02:17:17FromDiscord<Elegantbeef> No
02:56:42*rockcavera quit (Remote host closed the connection)
02:57:01*rockcavera joined #nim
02:57:01*rockcavera quit (Changing host)
02:57:01*rockcavera joined #nim
03:51:10*jkl joined #nim
04:21:38*rockcavera quit (Remote host closed the connection)
04:52:43*arkurious quit (Quit: Leaving)
06:18:29*kenran joined #nim
06:45:29*azimut quit (Ping timeout: 255 seconds)
07:03:37*rockcavera joined #nim
07:23:39*ltriant joined #nim
07:28:15*ltriant quit (Ping timeout: 255 seconds)
07:38:38NimEventerNew Nimble package! dnsstamps2 - DNS Stamps package, see https://github.com/rockcavera/nim-dnsstamps2
08:41:41FromDiscord<Dudugz> Wouldn't these bot notifications better have an appropriate channel for them? notifications would be visible for longer and would not appear out of nowhere in the middle of a convo.
08:42:34FromDiscord<Dudugz> By visible I mean that any thread you start here will simply omit the information the bot is trying to convey, no one will scroll all the way up there to see the notification.
08:44:43FromDiscord<Andreas> In reply to @Dudugz "By visible I mean": yes, and one notification is enough. recently some three popped up within 5 minutes..
08:45:27FromDiscord<Andreas> (edit) removed "some"
08:46:15FromDiscord<Dudugz> Yeah, it would be better to have something like #nimeventer and then anyone looking for new packages or related stuff could just check out the channel
08:48:01FromDiscord<leetnewb> imo, there is something to be said for having them drop in both places
08:57:20FromDiscord<Elegantbeef> Remember the 3 irc users and matrix users 😄
08:59:57FromDiscord<Rika> Beef you’re pretty much the only matrix user
09:00:43FromDiscord<Elegantbeef> Just the otherday there were like 4 of us
09:04:03FromDiscord<Dudugz> >.> at that time someone still using IRC is a miracle, I could still continue sending normally on IRC and change the webhook only on discord
09:04:19FromDiscord<Dudugz> (edit) "I" => "it"
09:04:46FromDiscord<Dudugz> It's not like discord will bite you if you use it directly
09:05:13FromDiscord<Elegantbeef> No but it's a shitty platform and i'd rather not support using it
09:05:26FromDiscord<Dudugz> 🤔
09:05:44FromDiscord<Dudugz> And you don't think IRC is shitty? I think it's a complete mess
09:05:59FromDiscord<Elegantbeef> I do not use IRC so...
09:06:09FromDiscord<Dudugz> Oh...
09:06:12FromDiscord<Elegantbeef> Though using IRC does fall under my view that people should be able to use what they want
09:06:25FromDiscord<huantian> Maybe we should just have everything go through matrix instead of discord then \:p
09:06:39FromDiscord<Dudugz> Hm, yeah, it's nice to have more options to talk
09:06:40FromDiscord<Elegantbeef> Just kill the discord server, problem solved
09:06:42FromDiscord<Elegantbeef> No more bridge issues
09:06:53FromDiscord<Dudugz> lol
09:07:17FromDiscord<Dudugz> Or have them separate, Nim already has a forum even if it's antiquated these days.
09:07:19FromDiscord<huantian> Good imma switch to gitter
09:07:43FromDiscord<Elegantbeef> Gitter is getting axed soon
09:07:44FromDiscord<Elegantbeef> So checkmate drongo
09:08:10FromDiscord<huantian> BRB googling drongo
09:08:23FromDiscord<Elegantbeef> It's a bird and also an australian insult
09:08:25FromDiscord<Dudugz> The only thing missing was a bot linking the server to Skype >.>
09:09:01FromDiscord<Elegantbeef> Matrix probably has a skype bridge, so problem solved
09:09:26FromDiscord<Dudugz> Hmmm I've never heard of The Matrix, I'll look it up
09:09:34FromDiscord<huantian> Maybe we should actually have matrix be the platform everything is bridged to
09:09:35FromDiscord<Dudugz> (edit) removed "The"
09:09:42FromDiscord<Elegantbeef> It's an open protocol
09:09:49FromDiscord<Elegantbeef> It's wonderful imo
09:09:54FromDiscord<Elegantbeef> It probably is the wisest huan
09:10:42FromDiscord<Dudugz> https://matrix.org/↵↵Ok, pretty interesting
09:11:08FromDiscord<Dudugz> decentralizing the means of communication is really great, anyone can talk to anyone using whatever means they want
09:11:59FromDiscord<Elegantbeef> Plus you can be like huan here and have a homeserver
09:12:05FromDiscord<Elegantbeef> Which means you own your data
09:12:07FromDiscord<Dudugz> Hm, is it possible to use matrix to build your own communication app that can be linked to other apps like discord?
09:12:57FromDiscord<Elegantbeef> https://matrix.org/bridges/
09:12:58FromDiscord<Elegantbeef> I am using matrix to talk to you on discord
09:12:58FromDiscord<Elegantbeef> https://matrix.org/clients/
09:13:01FromDiscord<Elegantbeef> There is a discord puppet bridge, but that's against discord TOS
09:13:52FromDiscord<Dudugz> Got it, this is pretty cool
09:14:01FromDiscord<huantian> (And like it’s part of the TOS that might maybe kinda get you banned)
09:14:17FromDiscord<Elegantbeef> So many qualifiers there huan!
09:14:43FromDiscord<Dudugz> But still using a bot to create the bridge should not be against discord TOS
09:14:55FromDiscord<Elegantbeef> Sure, this one uses webhooks
09:15:03FromDiscord<Dudugz> Yea
09:15:07FromDiscord<Elegantbeef> The against discord TOS is using the discord API to self bot your account
09:15:19FromDiscord<Dudugz> Hmm
09:15:24FromDiscord<Elegantbeef> In the matrix world 'puppet' means you control a real user on the platform
09:15:47FromDiscord<Elegantbeef> So if i were using the puppet bridge i'd appear as a proper discord user since i'd be using my own account
09:16:51FromDiscord<huantian> But honestly the probably wouldn’t ban you
09:17:10FromDiscord<huantian> It’s almost equivalent to a custom discord client at that point
09:17:28FromDiscord<Dudugz> Yea
09:17:29FromDiscord<Elegantbeef> I just follow rules and be a good boy
09:18:10FromDiscord<Elegantbeef> \I'm still just amazed that discord's like "You know we should add abhorrent themes for nitro users"
09:18:29FromDiscord<Dudugz> >.> Speaking of custom discord client this is against the ToS too, although the discord has not spoken about it yet. There were people recommending a client that is basically a discord mod that allows you to change any aspect you want
09:18:43FromDiscord<Elegantbeef> betterdiscord?
09:18:49FromDiscord<Dudugz> Yea
09:19:06FromDiscord<Dudugz> The only discord theme that sucks is dark lol, light theme makes you blind.
09:19:17FromDiscord<Dudugz> (edit) "The only discord theme that ... sucks" added "doesn't"
09:19:20FromDiscord<huantian> Personally im an armcord + vencord person
09:19:20FromDiscord<Elegantbeef> Most of the new themes they added are abhorrent
09:19:43FromDiscord<huantian> Graphic design is my passion
09:20:30FromDiscord<huantian> Along with emnity for mobile
09:20:30FromDiscord<Dudugz> Personally I'm a good boy and use the original service despite the problems.
09:21:04FromDiscord<Elegantbeef> I do want to migrate my friends to matrix, but that lacking mumble like voip makes it a hard sell i imagine
09:21:21FromDiscord<huantian> Right but have you seen how nice code blocks are with modded clients? And you don’t have to worry about weird indents cus of code unindenter
09:21:32FromDiscord<Dudugz> Since the last discord update there are some bugs happening on android mobile. Sometimes part of the channel list simply disappears and becomes invisible and sometimes the context menu when you hold your finger on a message does not appear.
09:22:10FromDiscord<Dudugz> In reply to @huantian "Right but have you": Code blocks? 🥲 I'm using vscode
09:22:16FromDiscord<huantian> Hopefully the new matrix video call stuff will make the voice and video chat situation better
09:22:31FromDiscord<Elegantbeef> Yea that's the hope
09:23:11FromDiscord<Dudugz> When I get back home I'll check out matrix, at least the idea is interesting. But I can't leave discord since I have my own server :v
09:23:36FromDiscord<Elegantbeef> You can clearly leave discord by making your server a matrix room!
09:23:40FromDiscord<Elegantbeef> Or even a matrix space 😛
09:24:03FromDiscord<huantian> https://github.com/Vap0r1ze/vpc-shiki can’t give you any screenshots rn but it’s pretty↵(@Dudugz)
09:24:20FromDiscord<Dudugz> No i mean, how am i going to manage my discord server without being on it lol. I can't just force my users to migrate.
09:24:32FromDiscord<Elegantbeef> Of course you can
09:24:48FromDiscord<huantian> Send them a virus that deletes their discord account ez
09:25:10FromDiscord<Elegantbeef> I mean this is how any platform starts, some schmucks that are interested in it encouraging other schmucks
09:25:20FromDiscord<Elegantbeef> Eventually the schmucks are all on the platform, or the platform dies
09:25:27FromDiscord<Dudugz> In reply to @huantian "https://github.com/Vap0r1ze/vpc-shiki can’t give ": ok, this is much better than discord codeblock.
09:25:27FromDiscord<Dudugz> Q
09:26:51FromDiscord<Dudugz> But if Matrix's idea is to be decentralized then why are we centralizing everything in it :v the idea in this case is to connect matrix to the server and not disconnect the server.
09:27:09FromDiscord<Elegantbeef> Well cause discord is a shitty platform
09:27:23FromDiscord<Elegantbeef> Matrix is about decentralising the servers and communication on the protocol
09:27:25FromDiscord<Dudugz> lol, maybe it's for some but there are those who like it
09:27:37FromDiscord<Elegantbeef> The bridges are incidental
09:27:45FromDiscord<Dudugz> Hmm
09:28:07FromDiscord<leetnewb> How is matrix about discoverability of past conversations in a room like this?
09:28:23FromDiscord<Elegantbeef> Matrix's decentralisation is purely about the fact you can have different home servers that can communicate still
09:28:30FromDiscord<Elegantbeef> Like mastodon or other decentralised platforms
09:28:55FromDiscord<Dudugz> Hmm, got it
09:29:24FromDiscord<Elegantbeef> One should be able to fetch the history just fine
09:29:25FromDiscord<Elegantbeef> It's not a E2E room
09:29:28FromDiscord<Dudugz> I've been thinking about switching to Mastodon since Elon shitted the entire Twitter.
09:29:30FromDiscord<Elegantbeef> In the case of E2E encrypted rooms it's clearly not possible to get history without keys
09:29:33FromDiscord<huantian> Do you mean like search? There is a search button which tbh is somehow worse than discord’s trash search↵(@leetnewb)
09:30:01FromDiscord<Elegantbeef> I wonder how much of that search issue is down to matrix or element
09:30:03FromDiscord<leetnewb> In reply to @huantian "Do you mean like": Yes, interesting. I suppose search is hard though.
09:30:18FromDiscord<leetnewb> Is that an interface bad or a results bad?
09:30:50FromDiscord<Elegantbeef> Uncertain whether it's the client or the protocol design 😄
09:32:22FromDiscord<Andreas> In reply to @huantian "Do you mean like": we should somehow extract/filter the conversations, since they a are a treasure-trove of supporting-info..
09:32:51FromDiscord<Andreas> (edit) "supporting-info.." => "supporting-info..↵Is there a API for this ?"
09:33:54FromDiscord<huantian> We can make a website that displays random messages from beef
09:34:18FromDiscord<Andreas> In reply to @huantian "We can make a": year - all the macro-magic, uncommented..
09:34:21FromDiscord<huantian> Not sure what the api for messages / message search is
09:34:58FromDiscord<Elegantbeef> Just download the matrix chat
09:35:02FromDiscord<Elegantbeef> Or just use the irc logs
09:35:08FromDiscord<Andreas> In reply to @huantian "Not sure what the": there is the crappy search-field - but it does not even get the threads right..
09:35:53FromDiscord<Andreas> In reply to @Elegantbeef "Or just use the": and then one would have to re-build the threads from the logs ?
10:54:01FromDiscord<qb> How would a nim type definition look like for a python numpy shape (2, 2, 3) (`[[[1, 2, 3], [1, 2, 3]], [[1, 2, 3], [1, 2, 3]]]`). The inner arrays are always 3 uint8, the outer ones can be any size
10:54:29FromDiscord<qb> (edit) "How would a nim type definition look like for a python numpy ... shape" added "having the"
10:54:59FromDiscord<qb> (edit) "How would a nim type definition look like for a python numpy ... having" added "array"
11:14:47*xet7 joined #nim
11:24:46FromDiscord<Dudugz> I don't know if there's a way to limit the size of arrays in Nim, at least sequences don't seem to give that option
11:25:55FromDiscord<Dudugz> sent a code paste, see https://play.nim-lang.org/#ix=4sYf
11:27:32FromDiscord<Dudugz> Ooh, actually
11:27:35FromDiscord<Dudugz> https://nim-by-example.github.io/arrays/
11:27:42FromDiscord<Dudugz> You can use the array type
11:29:09FromDiscord<Dudugz> ``seq[array[2, array[3, int]]]``↵I think that may work
11:29:48FromDiscord<Dudugz> you have a sequence that can have multiple 2-dimensional arrays that can contain 2 3-dimensional arrays
11:46:34*kenran quit (Remote host closed the connection)
12:05:29FromDiscord<demotomohiro> In reply to @qb "How would a nim": Run `echo typeof([[[1,2,3], [1,2,3]], [[1,2,3], [1,2,3]]])` to see how Nim type definition look.
12:09:33*xet7 quit (Quit: Leaving)
13:24:14*ltriant joined #nim
13:29:03*ltriant quit (Ping timeout: 260 seconds)
13:38:45FromDiscord<Gumbercules> https://nim-lang.org/docs/system.html#newSeqOfCap,Natural
13:39:22FromDiscord<Gumbercules> In reply to @Dudugz "I don't know if": ^
13:49:31*jmdaemon quit (Ping timeout: 248 seconds)
13:54:27FromDiscord<guttural666> how can I get the size in bytes of the data stored in say a string or sequence? sizeof(s) should give me only the ptr size I think
14:01:58*kenran joined #nim
14:16:40FromDiscord<Rika> you want the capacity of the seq or the size of the contents only
14:21:20FromDiscord<guttural666> I can get the size of a string with sizeof(), which gets me the pointer to the heap (64bit), then I want to also get all the memory that that string allocs (string size, capacity and the data itself, etc.)
14:21:37FromDiscord<guttural666> basically a recursive memory counter
14:22:39FromDiscord<guttural666> my guess is its len, capacity and the data itself
14:23:03NimEventerNew post on r/nim by Sentmoraap: Avoiding heap allocations when using strings and closures, see https://reddit.com/r/nim/comments/12fnkud/avoiding_heap_allocations_when_using_strings_and/
14:25:27*Notxor joined #nim
15:03:57*azimut joined #nim
15:11:19FromDiscord<Takemichi Hanagaki> Sorry, I may have missed some documentation section. But what is the difference between a `tuple` and an `object` exactly? When should I use one instead of the other?
15:14:11FromDiscord<demotomohiro> In reply to @Takemichi Hanagaki "Sorry, I may have": https://nim-lang.org/docs/manual.html#types-tuples-and-object-types
15:15:03FromDiscord<Takemichi Hanagaki> Thanks, I was looking for this part since yesterday!
15:15:31FromDiscord<Takemichi Hanagaki> (edit) "part" => "section"
15:16:08*xet7 joined #nim
15:16:30*lucasta joined #nim
15:39:57*Notxor quit (Remote host closed the connection)
15:52:29*arkurious joined #nim
15:55:47*lucasta quit (Quit: Leaving)
16:06:25FromDiscord<guttural666> I have an API function, that fetches data from a website in chunks of 200 datasets per request. I am looking at multi threading this to spawn say 10 API calls at once to reduce latency. Additionally, I would like to collect any chunks of 200 that the API function produces at the call site to handle that data. Could anybody give me some leads as to how to achieve this? I guess system/threads in the API function? And at the call site to
16:06:45FromDiscord<guttural666> (edit) "latency." => "latency/increase throughput."
16:08:01FromDiscord<Rika> you should be careful with that because the site might (most likely will) have a rate limiter that would usually tempban you for a moment if you overrequest
16:08:22FromDiscord<Rika> other than that i dont usually use threads so i cant really help with that
16:14:10FromDiscord<guttural666> In reply to @Rika "you should be careful": Yeah, I thought about that, I'll just experiment with 2-3 threads or so at a time. Additional info: I am trying to go through "pages" of a JSON response with start_idx and end_idx as URL params.
16:16:01FromDiscord<guttural666> std/asyncdispatch is what I am looking at rn
16:26:07FromDiscord<guttural666> smth like this, call the api func, spawn async workers to produce chunks of results, give any results that are produced to the caller as soon as they are ready, so it can handle the data https://media.discordapp.net/attachments/371759389889003532/1094297129087946882/image.png
16:30:40FromDiscord<guttural666> so the threads should be resumable
16:37:31*xet7 quit (Ping timeout: 248 seconds)
16:49:07*xet7 joined #nim
17:08:03*xet7 quit (Quit: Leaving)
17:09:32FromDiscord<Marcus> does langserv do anything nimlsp doesn't?
17:10:01FromDiscord<Marcus> I guess it's able to compile without the nim sources, so that's something I suppose.
17:12:34FromDiscord<Marcus> Was just wondering if it's worth trying to open PRs to have nvim-lspconfig and mason.nvim support it 🤔
17:29:43*NimEventer quit (Remote host closed the connection)
17:29:56*NimEventer joined #nim
17:33:58*xet7 joined #nim
17:38:35FromDiscord<Marcus> I've now read https://github.com/nim-lang/RFCs/issues/300 and feel wiser about the whole nim tooling issue
18:03:31FromDiscord<guttural666> In reply to @Marcus "does langserv do anything": tell me if you get it working, nimlsp does not work for me atm in Vim, apparently because of some changes made to lsp itself or something?
18:04:33FromDiscord<EyeCon> In reply to @guttural666 "smth like this, call": You also need to handle if any of them get a "slow down buddy" you need to pause the other threads as well. On top of it, retrying and timeouts... It's not exactly trivial
18:07:01FromDiscord<guttural666> In reply to @EyeCon "You also need to": yeah, kind of hitting a wall rn with those plans, I have two seperate types of API calls I want to do to the server rn, I am thinking about just parallelizing those two as a start, since they both will write to different data structures
18:26:38FromDiscord<creative> sent a code paste, see https://play.nim-lang.org/#ix=4sZR
18:29:08FromDiscord<Elegantbeef> `-d:useMalloc`
18:30:09FromDiscord<firasuke> does nim have something like `execProcesses` but for `execCmdEx`?
18:30:24FromDiscord<firasuke> (edit) "`execCmdEx`?" => "`execCmdEx` to start multiple commands in parallel while storing their output?"
18:38:04*xet7 quit (Remote host closed the connection)
19:08:59FromDiscord<guttural666> In reply to @Marcus "for if you decided": hey, do you think you can help me with the Neovim config?
19:14:11FromDiscord<firasuke> In reply to @guttural666 "hey, do you think": oh don't
19:14:37FromDiscord<firasuke> `nimlsp` is broken because `nimsuggest` keeps breaking and exiting with error code `0`:↵https://github.com/PMunch/nimlsp/issues/36
19:15:06FromDiscord<firasuke> In reply to @guttural666 "hey, do you think": `alaviss/nim.nvim` for syntax highlighting
19:15:10FromDiscord<firasuke> there is no treesitter implementation
19:15:26FromDiscord<firasuke> `nimlangserver` with `vscode` is currently the better LSP implementation
19:15:35FromDiscord<jmgomez> hey @ElegantBeef the CI is not passing in my PR and I thought it was normal, but saw an suspecious issues in the logs. I ran the tests locally a commit before mine with `koch test` but they are failing. Am I missing something or they are merging stuff with the test failing?
19:15:59FromDiscord<guttural666> In reply to @firasuke "oh don't": just trying nvim out, hoping that that would be better, but lazynvim is just absolute sensory overload for my pleb mind
19:16:21FromDiscord<firasuke> In reply to @guttural666 "just trying nvim out,": I have lazy setup and working, but I wouldn't recommend it for nim development
19:16:35FromDiscord<guttural666> installed nim and nimlsp with mason and syntax highlighting works, but no autocomplete etc.
19:16:49FromDiscord<firasuke> In reply to @guttural666 "installed nim and nimlsp": yeah only highlighting works
19:16:53FromDiscord<firasuke> completion doesn't work
19:17:05FromDiscord<guttural666> coming from a very basic vim config, nvim and lazynvim is just a pure sensory assault
19:17:55FromDiscord<guttural666> In reply to @firasuke "completion doesn't work": yeah, okay, just trying to experiment here, because the lack of proc interface info etc. and autocomplete really pisses me off 😦
19:18:30FromDiscord<firasuke> In reply to @guttural666 "yeah, okay, just trying": you can use vscode with nimsaem plugin which uses `nimlangserver`
19:18:55FromDiscord<firasuke> but yeah as an nvim user myself, I am sad we don't have the tooling working with vim/nvim
19:18:55FromDiscord<guttural666> In reply to @firasuke "you can use vscode": really trying hard not to have to use anything but Konsole & vim
19:19:48FromDiscord<guttural666> In reply to @firasuke "but yeah as an": smart people ressources have to be assigned to this, who can I pay or blow to have this working 😄
19:20:46FromDiscord<guttural666> just wondering why there are no current issues for this, can't be the only one who relies on the LSP
19:20:52FromDiscord<firasuke> In reply to @guttural666 "just wondering why there": https://github.com/nim-lang/langserver
19:21:14FromDiscord<firasuke> this is the current LSP For nim, based on the latest nimsuggest version, although it's a bit less stable than nimlsp
19:21:34FromDiscord<firasuke> it doesn't have a plugin for nvim/vim, and you can't install it with mason
19:21:45FromDiscord<guttural666> In reply to @firasuke "this is the current": both seem really unactive in general, just checked the zig lsp, which is super active
19:22:00FromDiscord<firasuke> I wish we had treesitter working with nim and a proper LSP
19:22:27FromDiscord<firasuke> In reply to @guttural666 "both seem really unactive": same, just tried zig and although I hated the language, but the tooling is solid
19:24:43FromDiscord<guttural666> pretty concerned about this, this should be a top prio, I'm just trying to learn and a hobbyist, sure I can have docs open all the time to code and this has worked recently, but it's a real let down although I love the lang
19:25:46FromDiscord<guttural666> surely not a problem for experts, but how can you attract new people
19:26:14FromDiscord<firasuke> well yeah, I think it's a priority as well
19:26:19FromDiscord<firasuke> how can we help with this?
19:26:32FromDiscord<guttural666> if I were smart enough, I would put time in and fix anything, but this is over my head at this point, just relying on other peoples' work
19:26:37FromDiscord<firasuke> https://github.com/nvim-treesitter/nvim-treesitter/pull/4439
19:27:17FromDiscord<firasuke> apparently there's an RFC:↵https://github.com/nim-lang/RFCs/issues/300
19:28:18FromDiscord<guttural666> yeah, but all the issues you mentioned are old, this whole situation has arisen for me in the last month I'd say, or maybe I just update my stuff too infrequently
19:28:35FromDiscord<guttural666> Peter said that it was an issue with the LSP impl itself? dunno
19:28:40FromDiscord<firasuke> ok this comment on the RFC highlights the current situation:↵https://github.com/nim-lang/RFCs/issues/300#issuecomment-1496690532
19:29:05FromDiscord<guttural666> yeah but that seems to be more of a general question no?
19:29:12NimEventerNew thread by cmc: Scan syntax tree for procedure calls, see https://forum.nim-lang.org/t/10082
19:29:57FromDiscord<firasuke> In reply to @guttural666 "yeah but that seems": it is but it describes in detail the situation for all editors, we could start from there
19:30:06FromDiscord<firasuke> this is mostly working:↵https://github.com/aMOPel/tree-sitter-nim
19:31:57FromDiscord<guttural666> In reply to @firasuke "it is but it": yeah, just added a comment
19:32:35FromDiscord<Elegantbeef> @jmgomez I generally do `./koch boot -d:release` followed by `./koch test`
19:37:36FromDiscord<firasuke> It appears both alaviss and aMOPel are working together to get the tree sitter support working:↵https://github.com/alaviss/tree-sitter-nim/issues/11
19:38:33FromDiscord<jmgomez> In reply to @Elegantbeef "<@726017160115126333> I generally do": thanks. Do this looks suspicious to you? https://github.com/nim-lang/Nim/actions/runs/4645126062/jobs/8220805991?pr=21628 I see all PRs failing, but not sure if it's a CI thing or it is really a problem
19:38:50FromDiscord<Elegantbeef> Well other PRs are only failing on i386 linux
19:39:54FromDiscord<guttural666> In reply to @firasuke "It appears both alaviss": do people use treesitter to base their LS around or how does that work?
19:40:27FromDiscord<jmgomez> In reply to @Elegantbeef "Well other PRs are": true. I eye balled it this morning and got a wrong impression. WIll try to repro it locally
19:40:56FromDiscord<firasuke> In reply to @guttural666 "do people use treesitter": gives you better highlighting and stuff like that
19:42:37FromDiscord<guttural666> In reply to @firasuke "gives you better highlighting": is that only relevant to nvim? just read about it in that context
19:42:57FromDiscord<firasuke> I don't know
19:43:28FromDiscord<dlesnoff> I have plenty of questions about memory management and linked lists in Nim
19:43:51FromDiscord<dlesnoff> I checked the implementation in https://github.com/nim-lang/Nim/blob/version-1-6/lib/pure/collections/lists.nim#L84
19:44:17FromDiscord<dlesnoff> Sorry, actually I should check the 2.0 implementation
19:45:23FromDiscord<dlesnoff> I try to do the Exercism problem about a doubly linked list implementation
19:45:31FromDiscord<dlesnoff> https://exercism.org/tracks/nim/exercises/linked-list/edit
19:46:23FromDiscord<dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4t0a
19:46:38FromDiscord<dlesnoff> (edit) "https://play.nim-lang.org/#ix=4t0a" => "https://play.nim-lang.org/#ix=4t0b"
19:47:23FromDiscord<dlesnoff> Can I access the next field of a NodeObj through a Node ?
19:47:59FromDiscord<dlesnoff> Oops I have a double ref error sorry
19:48:29FromDiscord<dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4t0c
19:49:23FromDiscord<dlesnoff> Isn't this a mutually recursive definition?
19:50:14FromDiscord<dlesnoff> Since NodeObj depends on Node definition and Node depends on the Node definition?
19:59:11FromDiscord<dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4t0e
20:01:11FromDiscord<Elegantbeef> A type can be recursive if there is pointer indirection
20:01:36FromDiscord<Elegantbeef> `!= nil` is generally how that's written
20:03:14FromDiscord<dlesnoff> Thanks. How can I avoid the type mismatch I get when affecting a node to `list.tail.next`? I can not use the ref in front of node, it does not work like a pointer right?
20:03:45FromDiscord<Elegantbeef> `Node[T](val: val, next: nil, prev: list.tail)`?
20:03:56FromDiscord<Elegantbeef> `ref` is a pointer
20:05:01FromDiscord<dlesnoff> Oh, isn't `ref` like a C++ reference?
20:06:06FromDiscord<dlesnoff> Wait. I somehow read the Mastering Nim book a few months ago but I think I have to read the tutorial part 1 again 😂
20:07:50FromDiscord<Elegantbeef> Ref in Nim is a heap allocated memory safe pointer
20:08:22FromDiscord<dlesnoff> Yes just read that in the Nim tutorial !!!
20:08:31FromDiscord<Elegantbeef> It's nothing like C++'s reference
20:09:04FromDiscord<Elegantbeef> It's like Rust's `Box` or C#/Java's classes 😄
20:12:54FromDiscord<dlesnoff> Thanks for the implicit invitation to learn two other programming languages 😅
20:13:17FromDiscord<Elegantbeef> Hey I do not know what languages people know
20:14:35FromDiscord<jmgomez> hmm was able to reproduce it in linux, time to setup wsl
20:14:39FromDiscord<voidwalker> Would passing a socket between procs without var work ? Would it be the same socket ?
20:15:40FromDiscord<Elegantbeef> It's a reference so yes
20:16:07FromDiscord<Elegantbeef> The internal data is also big so it'd be passed by reference anyway
20:16:12FromDiscord<Marcus> @firasuke\: nimsuggest is broken in latest stable nim, that affects anything that uses a nim lsp.
20:16:49FromDiscord<Elegantbeef> Speaking of Jiezron `var` is pretty much C++'s reference, albeit safer. But like I mentioned unlike C/C++ Nim implicitly passes by reference when the object is big enough
20:17:26FromDiscord<firasuke> In reply to @Marcus "<@248208053952970752>\: nimsuggest is broken": so it's nimsuggest and not the LSPs
20:17:33FromDiscord<firasuke> why is nimlangserver working with VScode then?
20:17:57FromDiscord<Hourglass [She/Her]> I'm attempting to work on a chat platform with (a big part of it) written in Nim, currently haven't started the Nim part but wish me luck y'all
20:18:01FromDiscord<dlesnoff> In reply to @Elegantbeef "`!= nil` is generally": https://stackoverflow.com/questions/31990530/nim-how-to-prove-not-nil↵There is this old post about isNil usage for sequences. Now nil is not the default anymore (it is an empty seq, if I understand the docs). Then what is the usage of `isNil` ?
20:18:29FromDiscord<Elegantbeef> `isNil` is practically an alias for `== nil` if you're into that
20:18:29FromDiscord<Marcus> https://github.com/PMunch/nimlsp/issues/154#issuecomment-1476346873↵(@firasuke)
20:19:16FromDiscord<Hourglass [She/Her]> In reply to @Jiezron "https://stackoverflow.com/questions/31990530/nim-ho": Ref types that aren't initialised is one use
20:19:28FromDiscord<Elegantbeef> That's not the question horizon
20:19:38FromDiscord<Elegantbeef> the question is "Why does `isNil` exist if `== nil` works"
20:19:49FromDiscord<Marcus> Dunno about Vscode. I don't use it. Maybe langserv doesn't trigger the recursision issue?
20:20:12FromDiscord<Hourglass [She/Her]> Huh, question is worded weirdly then aha
20:21:00FromDiscord<dlesnoff> Sorry if it is, I am not native and forgot to reactivate grammarly extension for syntax checking.
20:21:15FromDiscord<dlesnoff> (edit) "Sorry if it is, I am not native and ... forgot" added "I"
20:22:03FromDiscord<Hourglass [She/Her]> It's fine, you're doing great for a non-native speaker anyway aha
20:23:11FromDiscord<Hourglass [She/Her]> I wonder how hard it'd be to make a parser for Nim from scratch (not relying on the existing implementation)
20:23:21FromDiscord<Hourglass [She/Her]> Crap got distracted
20:23:27FromDiscord<firasuke> In reply to @Marcus "Dunno about Vscode. I": oh ok
20:23:32FromDiscord<firasuke> thanks for elaborating
20:23:36FromDiscord<Elegantbeef> horizon about to start project #10000032
20:24:35FromDiscord<Marcus> Firasuke\: autocomplete works for me after downgrading to.10. But the lsp still struggles with larger code bases.
20:25:55FromDiscord<firasuke> In reply to @Marcus "Firasuke\: autocomplete works for": Like it is ok with VScode, but I am an nvim user and it is sad to find out that the tooling isn't working
20:26:29FromDiscord<firasuke> even with the tooling not working all the time, I am still much more productive with Nim than the other languages I've tried
20:27:00FromDiscord<Marcus> Yea. I was wondering if it's worth opening a pr to get langserver supported in lspconfig↵(@firasuke)
20:27:05FromDiscord<Marcus> And Mason.
20:27:35FromDiscord<firasuke> In reply to @Marcus "Yea. I was wondering": I think it is very much worth it.
20:27:47FromDiscord<firasuke> Surprisingly, helix is using nimlangserver I think
20:32:22FromDiscord<sOkam!> can someone explain this in less 4Head words?↵Its funny because it gives a lengthy explanation of `how` to use it, but not `what` it does↵Does someone know what `nimble develop` does exactly? https://media.discordapp.net/attachments/371759389889003532/1094359097530388481/image.png
20:33:00FromDiscord<Elegantbeef> Nimble develop with nimble 0.14 installs the packages locally to your project
20:33:20FromDiscord<Elegantbeef> Prior to that it symlinked the folder to the `pkgs` folder so you could develop concurrently
20:33:35*kenran quit (Remote host closed the connection)
20:33:45FromDiscord<jmgomez> the issue is quite odd, it counts more than one import in `ioselectors_epoll.nim` for posix o_O
20:34:08FromDiscord<sOkam!> ah so to avoid requiring a `switch(.., somePath)` inside the config.nims file?
20:34:11FromDiscord<Elegantbeef> Does it have `from x import, y, z`?
20:34:42FromDiscord<jmgomez> no, just `↵import posix, times, epoll`
20:34:47FromDiscord<Elegantbeef> Status had an issue with people doing `devel` and during development and shipping accidently
20:35:18FromDiscord<Elegantbeef> Fairly certain the only reason develop changed how it worked was cause of status' view
20:35:50FromDiscord<Elegantbeef> Odd that it errors then
20:36:26FromDiscord<jmgomez> I see, yeah. Will tackle it later need to dinner, maybe there is another way
20:38:08*lucasta joined #nim
20:39:21FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=4t0p
20:46:43FromDiscord<Elegantbeef> Or just around the `fut.read`
20:46:43FromDiscord<Elegantbeef> I do not know
20:46:46FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0u
20:58:20FromDiscord<anddam> howdy
20:58:46FromDiscord<Elegantbeef> Hello
20:59:05FromDiscord<anddam> I poked nimgl guy on the update but they seem to have been very little active last year and a half https://github.com/nimgl/nimgl/discussions/81
21:00:16FromDiscord<Hourglass [She/Her]> In reply to @Elegantbeef "horizon about to start": I plead the fifth!
21:00:30FromDiscord<anddam> I even tried to show my lack of knowledge of what's happening with cimgui with https://github.com/cimgui/cimgui/issues/231, turns out the part that the nim wrapper uses in the .nim file was the C++ definition, that seems wrong
21:00:51FromDiscord<Hourglass [She/Her]> I'm trying to work on my attention span but it is... Horrid
21:02:03FromDiscord<anddam> everybody's one is
21:02:11FromDiscord<anddam> well, not completely true
21:02:12FromDiscord<Elegantbeef> Could resort to email.... 😄
21:02:12FromDiscord<anddam> mine is
21:03:01FromDiscord<anddam> I read about a "de facto C Nim wrapper", I think it was on r/nim and it was `nimc` or `cnim`
21:03:17FromDiscord<anddam> I cannot find that discussion anymore, any help?
21:03:38FromDiscord<Elegantbeef> No clue what you mean, we have c2nim and futhark for generating C bindings
21:04:00FromDiscord<anddam> c2nim
21:04:47FromDiscord<anddam> I meant I read the article at it was "this is a pretty common C wrapper for nim" and so on, and I wondered if I could use that on top of cimgui since nimgl/imgui won't support latest cimgui branches
21:05:00FromDiscord<anddam> (edit) "at" => "and"
21:08:14FromDiscord<anddam> but maybe I took the wrong approach and this is all a big XY problem
21:09:43FromDiscord<firasuke> is there a twitch / youtube live streamer that codes in Nim xD
21:10:44FromDiscord<Elegantbeef> There used to be disruptek but he's now banned and lost all his cool
21:10:58NimEventerNew thread by Vince-LD: Need guidance for a first experience with Nim and ESP32, see https://forum.nim-lang.org/t/10083
21:11:55FromDiscord<anddam> I'll rephrase: I would like to open a window and draw some simple demoscene effect, I know almost nothing about graphics. Should I go with a opengl/glfw approach (so far a bit hard to chew) or should I get some higher level library like a 2d engine and have all the dirty work sorted out?
21:12:02FromDiscord<firasuke> In reply to @Elegantbeef "There used to be": really?
21:12:29FromDiscord<anddam> In reply to @Elegantbeef "There used to be": that sounds a story from the Middle Earth
21:12:36FromDiscord<anddam> (edit) "In reply to @Elegantbeef "There used to be": that sounds ... a" added "like"
21:12:52FromDiscord<Elegantbeef> Anddam i have my own framework based on sdl2 + opengl so i'd say use that
21:12:57FromDiscord<firasuke> why was he banned? he made a lot of cool nim projects?
21:12:58FromDiscord<anddam> "he's now banned from these whereabouts, we do not speaketh his name"
21:13:30FromDiscord<Elegantbeef> He had very little control when it came to calling people out on his view of their code
21:13:45FromDiscord<anddam> In reply to @Elegantbeef "Anddam i have my": ok, I am trying to figure the vodoo to draw stuff, so far I have met triangles, context, viewports and very abstruse C primitives to create textures
21:13:52FromDiscord<anddam> I thought I could draw(x,y) and be happy
21:13:56FromDiscord<dlesnoff> In reply to @firasuke "is there a twitch": It could be cool to have a list of Youtube Nim-related channels
21:14:13FromDiscord<firasuke> In reply to @Elegantbeef "He had very little": oh ok
21:14:21FromDiscord<Elegantbeef> Is there any reason you need gpu?
21:14:30FromDiscord<Elegantbeef> You could use treeform's boxy or just sdl2 raw
21:15:00FromDiscord<willyboar> Banned because they think he was harsh with dom
21:15:28FromDiscord<anddam> @ElegantBeef wast the GPU question for me?
21:15:34FromDiscord<anddam> (edit) "wast" => "was"
21:15:39FromDiscord<Elegantbeef> Yes
21:16:03FromDiscord<anddam> oh, no I don't, I wasn't even aware I had pulled GPU into discussion
21:16:50FromDiscord<anddam> I also would like something I can embed in the resulting executable, therefore I tried to use nimgl, specifically I thought I could use an imgui Image object and draw there
21:17:20FromDiscord<anddam> since an executable statically linking imgui comes at 2.5MB
21:17:54FromDiscord<Elegantbeef> What is your goal
21:18:18FromDiscord<anddam> a self contained executable starring some effects like in https://kitao.github.io/pyxel/wasm/launcher/?run=greg76.megademo.megademo
21:18:55FromDiscord<Elegantbeef> Ok so you literally could just use Nico
21:19:06FromDiscord<Elegantbeef> It does not need any gpu acceleration
21:19:11FromDiscord<anddam> ok
21:19:17FromDiscord<anddam> and can be statically linked?
21:19:25FromDiscord<Elegantbeef> Nico uses sdl2
21:19:25FromDiscord<anddam> I think I browsed through that btw
21:19:37FromDiscord<anddam> inspired by Pico8
21:19:58FromDiscord<Elegantbeef> Yea
21:20:12FromDiscord<anddam> time is an issue for me, I have very little spare so ends weekend to weekend a couple hours at night
21:20:30FromDiscord<anddam> wasting time trying to upgrade a library is not funny, but it helps understanding what one is looking for TBH
21:21:00FromDiscord<anddam> so Nico seems good, I'll try it right now
21:21:15FromDiscord<anddam> nimble develop clones the package locally for development, right?
21:22:37FromDiscord<Elegantbeef> Yea you want `nimble install nico`
21:23:06FromDiscord<Elegantbeef> Nico does support compiling to wasm
21:23:09FromDiscord<anddam> oh no, that is for installing the clone repo, for developing the package itself
21:23:18FromDiscord<Elegantbeef> https://www.impbox.net/platformer/
21:23:24FromDiscord<anddam> In reply to @Elegantbeef "Nico does support compiling": this keeps getting more wonderful-er
21:23:27FromDiscord<Elegantbeef> You do not need to develop nico presently though
21:23:32FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4t0z
21:23:38FromDiscord<Elegantbeef> You do not
21:23:41FromDiscord<anddam> (edit) "clone" => "cloned"
21:24:15*jmdaemon joined #nim
21:24:30FromDiscord<sOkam!> i guess import is a misnomer 🤔
21:24:53FromDiscord<sOkam!> i was thinking in terms of `from thing as alias import nil`
21:25:07FromDiscord<Elegantbeef> That makes no sense
21:25:18FromDiscord<sOkam!> why not?
21:25:26FromDiscord<sOkam!> import nil means everything is qualified mandatory
21:25:31FromDiscord<Elegantbeef> Yes
21:26:06FromDiscord<huantian> In reply to @anddam "nimble develop clones the": develop is like the --editable flag for pip if you’re familiar with that
21:27:05FromDiscord<Elegantbeef> I do not think there is a way to do what you want sokam
21:27:59FromDiscord<anddam> In reply to @Elegantbeef "https://www.impbox.net/platformer/": cannot figure the keys
21:28:00FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4t0B
21:28:28FromDiscord<Elegantbeef> arrows/wasd move
21:29:11FromDiscord<Elegantbeef> There used to be a way to open a dev ui, but i do not recall where impbox put that
21:29:22FromDiscord<Elegantbeef> nico also has a imgui module
21:29:45FromDiscord<Elegantbeef> I've personally used nico to make a small puzzle game, it's a fun package
21:30:43FromDiscord<Elegantbeef> https://www.impbox.net/spinsword/ impbox also has this demo using modern nico
21:34:26FromDiscord<anddam> I'm old, wasd was the first thing I tried but there's no jump, unlike ducking
21:35:45*lucasta quit (Remote host closed the connection)
21:36:05FromDiscord<Elegantbeef> z and x
21:36:54FromDiscord<anddam> enough playing, let's codecheck
21:39:14FromDiscord<guttural666> In reply to @Jiezron "Wait. I somehow read": you main "Maining Nim" 🤣
21:40:39FromDiscord<anddam> " ensure SDL2.dll is copied to your project directory." any way to install that in a system/installation wide directory and be automatically linked ?
21:42:25FromDiscord<Elegantbeef> Like ii said you can statically link sdl2
21:43:18FromDiscord<Elegantbeef> https://wiki.libsdl.org/SDL2/Installation#static_linking
21:44:14FromDiscord<jmgomez> yeah, traverse the imports in the context and there are these:↵`system, nativesockets,oserrors, strutils, posix, posix, times, epoll`↵I wonder if that's unintended and actually a bug
21:44:41FromDiscord<jmgomez> (edit) "traverse" => "traversed"
21:44:57FromDiscord<Elegantbeef> Does it `include` anything that imports posix?
21:45:03FromDiscord<Elegantbeef> Might be duplicated imports somewhere
21:45:49FromDiscord<jmgomez> you think two duplicated imports cauases both to be in the context? Let me check that
21:46:07FromDiscord<Elegantbeef> Perhaps, no clue really
21:46:33FromDiscord<Elegantbeef> https://github.com/beef331/slicerator/compare/master...itermacros#diff-3345d4e5a3359f8be5b796920d3e92d46be8ef4d80bae4213e7301208dc12649R45-R88 playing with the new capability of the compiler, we have slightly silly iterator chaining
21:46:36FromDiscord<jmgomez> lol yeah! it does, imported timesa few times more and it does it
21:46:42FromDiscord<jmgomez> (edit) "timesa" => "times a"
21:47:03FromDiscord<jmgomez> I can check if they are actually different before triggering an error
21:48:03FromDiscord<jmgomez> that looks neat!
21:48:57FromDiscord<jmgomez> why is it possible now? Wanted to do a Collection concept to unify TArray and Seqs in NUE
21:49:04FromDiscord<jmgomez> will use that
21:49:38FromDiscord<Elegantbeef> Well it's possible cause i made it so a for expression can have a macro that has a `(iterator x(): int = yield 100; x())`
21:49:51FromDiscord<Elegantbeef> What happens is each step emits a new iterator
21:50:39FromDiscord<jmgomez> Nice
21:51:35FromDiscord<Elegantbeef> It's very hacky, but it's a low cost change that just makes this much easier and cleaner
21:52:39FromDiscord<dlesnoff> In reply to @guttural666 "you main "Maining Nim"": 😅 Araq's nimconf last statements about the English language were funny indeed.
21:53:33FromDiscord<guttural666> In reply to @Jiezron "😅 Araq's nimconf": yes! I found it extremely funny, one youtube commenter strongly disagreed 😄
21:53:52FromDiscord<jmgomez> In reply to @Elegantbeef "It's very hacky, but": why is hacky? Cost in what terms?
21:54:20FromDiscord<Elegantbeef> It was a single line change in the Nim compiler, it's hacky cause one should not need to use a macro/template to achieve this
21:54:30FromDiscord<Elegantbeef> `iterator myIter(i: iterable)` should do this interally
21:56:26FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0D
21:57:55FromDiscord<jmgomez> gotcha, nice
21:58:31FromDiscord<jmgomez> what's the approach to resubmit a PR, should I revert it and push it as a single commit again? (just added an id check)
21:59:08FromDiscord<Elegantbeef> Just leave it as is
21:59:18FromDiscord<Elegantbeef> Or squash the commits(i tend to do this as i like git cleanliness in my PRs)
21:59:31FromDiscord<anddam> In reply to @Elegantbeef "Like ii said you": that's "you can" as in "you are allowed to" rather than "you are able to"
21:59:53FromDiscord<anddam> but I mean mostly what's a nim's default `-L` equivalent
21:59:54FromDiscord<Elegantbeef> I mean you are capable of doing so
22:00:11FromDiscord<Elegantbeef> `--passL:"-L sdl2path -lsdl2"`
22:00:48FromDiscord<anddam> now maybe I am, but isn't a library for static linking different than the dynamic one?
22:00:55FromDiscord<anddam> I followed README and got the SDL2.dll
22:01:32FromDiscord<anddam> btw just 2.5 MB seems a bargain
22:01:48FromDiscord<Elegantbeef> It is different to the static one
22:02:01FromDiscord<Elegantbeef> A statically linked sdl2 program will probably be like 1mb or even smaller
22:02:30FromDiscord<anddam> great
22:02:41FromDiscord<anddam> thanks a lot, I have a new path to walk now
22:02:55FromDiscord<anddam> and right now that is the doggy poop walk
22:03:11FromDiscord<anddam> have a nice evening/night/morning
22:07:29FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0H
22:09:01FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4t0I
22:10:10FromDiscord<Elegantbeef> Given you will not be able to keep up with the mangle nimscriptapi name, you need to disambiguate on the dirs
22:10:47FromDiscord<sOkam!> problem is that that will break the default nimble syntax
22:11:01FromDiscord<Elegantbeef> What?
22:11:17FromDiscord<sOkam!> what i want to disambiguate is the default nimble srdDir variable, not the other
22:11:54FromDiscord<Elegantbeef> sent a code paste, see https://paste.rs/OQh
22:11:54FromDiscord<sOkam!> i can do dirs.srcDir, but that resolves the wrong one
22:12:13FromDiscord<Elegantbeef> That's my point you need to rename the `srcDir` there
22:24:29FromDiscord<guttural666> is incremental compilation already in?
22:25:35FromDiscord<Elegantbeef> Technically yes, but it's wholly unusable
22:27:49FromDiscord<guttural666> why is that?
22:30:40FromDiscord<Elegantbeef> Cause it's not completed
22:40:18FromDiscord<Gumbercules> It'd be nice to know what is left to do there.
22:45:19FromDiscord<guttural666> anyone got a hunch why this would be an infinite recursion? it's logging "result ok" endlessly, this proc is being called by a proc that calls a template that calls this https://media.discordapp.net/attachments/371759389889003532/1094392556848164914/image.png
22:45:35FromDiscord<guttural666> (edit) "recursion?" => "recursion (after the first call, which works)?"
22:47:13FromDiscord<Arathanis> looks like the looping is coming from somewhere else
22:47:31FromDiscord<Elegantbeef> Why do you even use a while loop here
22:47:41FromDiscord<guttural666> yeah, some problem deeper in the call stack, forget it ^
22:47:58FromDiscord<guttural666> In reply to @Elegantbeef "Why do you even": waiting for a positive response
22:48:13FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0R
22:48:36FromDiscord<guttural666> sent a code paste, see https://play.nim-lang.org/#ix=4t0S
22:49:18FromDiscord<guttural666> calling a proc that calls a template that calls this could not be a problem I think?
22:50:45FromDiscord<Gumbercules> Maybe there's a way, I'm not sure if issues are tagged or not...
22:53:32FromDiscord<guttural666> nah, it's somewhere in the call stack, maybe deleted an inc somewhere, forget it 😛
22:57:23FromDiscord<jmgomez> In reply to @Gumbercules "It'd be nice to": the compiler needs a refactor to do it properly or a patch to the nimroad files is required (something like that is what araq said)
22:58:29FromDiscord<jmgomez> he didnt feel like patching the files, it was too complicated for me back then so I tried to include/exclude modules so we dont need a patch.. but it really didnt bring any gain with really big files which is what I had due to IO
22:59:20FromDiscord<jmgomez> so I discarded the pr which it probably wouldnt be accepted anyways xD
22:59:58FromDiscord<jmgomez> (edit) "which" => "(which" | "had" => "had)"
23:01:14*rockcavera quit (Remote host closed the connection)
23:09:09NimEventerNew thread by TyroneClide: Object Arrays, see https://forum.nim-lang.org/t/10084
23:16:46FromDiscord<jmgomez> aghs, it failed again. Can you take a look beef and let me know if it looks like usual CI iisues? https://github.com/nim-lang/Nim/pull/21628
23:18:11FromDiscord<Elegantbeef> `redefinition of 'm21496'; previous declaration here: t21496.nim(5, 12)`
23:18:12FromDiscord<Elegantbeef> Seems related if you ask me
23:18:48FromDiscord<jmgomez> xD agh
23:19:04FromDiscord<jmgomez> oky but legit!
23:19:21FromDiscord<jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t0Y
23:19:42FromDiscord<jmgomez> that shouldnt work
23:21:06FromDiscord<jmgomez> it's the bug that started it all
23:21:47FromDiscord<jmgomez> I meant, ringabout's fix should also error with it
23:22:12FromDiscord<Elegantbeef> Well you have to change the test
23:22:21FromDiscord<Elegantbeef> If it shouldnt work that should error and you need the test to represent that
23:23:03FromDiscord<jmgomez> yeah, but what I dont get is that it shoudlnt work with his code neither
23:23:39FromDiscord<jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t0Z
23:26:48FromDiscord<jmgomez> The error would be different though, it will ask for a qualification
23:26:57FromDiscord<Elegantbeef> I mean it expects that message
23:26:59FromDiscord<Elegantbeef> It gets nothing
23:27:07FromDiscord<Elegantbeef> Which means your code doesnt work
23:27:18FromDiscord<Elegantbeef> `./koch temp c ./tests/import/t21496.nim`
23:28:28FromDiscord<jmgomez> it works fine
23:30:00FromDiscord<Elegantbeef> So it errors?
23:30:23FromDiscord<jmgomez> yes, but with a different message I guess
23:30:29FromDiscord<jmgomez> maybe it's that?
23:30:36FromDiscord<jmgomez> the discard expects that exact message?
23:30:41FromDiscord<Elegantbeef> Yes
23:30:51FromDiscord<Elegantbeef> Worth noting though it says it got nothing
23:31:06FromDiscord<jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t11
23:31:26FromDiscord<jmgomez> because it is more appropriate
23:31:34FromDiscord<jmgomez> since it doesnt know what to pick
23:31:43FromDiscord<Elegantbeef> `./koch boot -d:release` `./koch test cat import`
23:33:44FromDiscord<jmgomez> ok thanks!
23:34:00FromDiscord<jmgomez> will review it tomorrow and resubmit, it's way late here
23:57:23*lucasta joined #nim