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:00 | FromDiscord | <mrgaturus> sent a code paste, see https://play.nim-lang.org/#ix=4sWb |
01:20:41 | FromDiscord | <mrgaturus> (edit) "https://play.nim-lang.org/#ix=4sWb" => "https://play.nim-lang.org/#ix=4sWe" |
01:22:53 | FromDiscord | <Elegantbeef> "other iterator" |
01:22:53 | FromDiscord | <Elegantbeef> you're returning a pointer |
01:23:52 | FromDiscord | <mrgaturus> i mean, i want forward view.grid.tiles to view.tiles, view.grid is private |
01:24:08 | FromDiscord | <mrgaturus> (edit) "i mean, i want forward view.grid.tiles ... to" added "(iterator)" |
01:25:22 | FromDiscord | <Elegantbeef> I do not follow, but if it works it's fine |
01:27:26 | * | ltriant quit (Ping timeout: 250 seconds) |
01:44:37 | FromDiscord | <huantian> Yeah that looks fine |
01:45:16 | FromDiscord | <huantian> If your goal is like an iterator alias |
02:05:48 | FromDiscord | <System64 ~ Flandre Scarlet> Is there something about functional programming in Nim? |
02:08:28 | FromDiscord | <Elegantbeef> Depends on what you're after |
02:09:07 | FromDiscord | <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:27 | FromDiscord | <Elegantbeef> If you're after chaining iterators, sure |
02:11:00 | FromDiscord | <System64 ~ Flandre Scarlet> I loved how Java's streams work |
02:11:02 | FromDiscord | <mrgaturus> In reply to @Elegantbeef "If you're after chaining": it was just an alias to no expose all private attribute |
02:11:22 | FromDiscord | <mrgaturus> In reply to @huantian "If your goal is": yes is that |
02:11:24 | FromDiscord | <Elegantbeef> So then use closure iterators |
02:11:36 | FromDiscord | <Elegantbeef> This is all to system mrg |
02:11:42 | FromDiscord | <System64 ~ Flandre Scarlet> same for C#'s Linq |
02:11:57 | FromDiscord | <mrgaturus> In reply to @Elegantbeef "So then use closure": too overkill |
02:12:30 | FromDiscord | <Elegantbeef> I'm still not talking to you |
02:12:37 | FromDiscord | <mrgaturus> ah ok |
02:12:48 | FromDiscord | <huantian> Tfw when multiple convos |
02:13:05 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Elegantbeef "So then use closure": Wdym? |
02:13:23 | FromDiscord | <ringabout> In reply to @amadan "https://docutils.sourceforge.io/docs/ref/rst/restru": I see, thank you! |
02:13:45 | FromDiscord | <Elegantbeef> Use a closure iterator |
02:13:45 | FromDiscord | <Elegantbeef> It's very similar to java/C# streams |
02:14:25 | * | def- quit (Quit: -) |
02:15:11 | * | def- joined #nim |
02:17:08 | FromDiscord | <System64 ~ Flandre Scarlet> Ah it uses sugar, right? |
02:17:16 | FromDiscord | <Elegantbeef> What? |
02:17:17 | FromDiscord | <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:38 | NimEventer | New Nimble package! dnsstamps2 - DNS Stamps package, see https://github.com/rockcavera/nim-dnsstamps2 |
08:41:41 | FromDiscord | <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:34 | FromDiscord | <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:43 | FromDiscord | <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:27 | FromDiscord | <Andreas> (edit) removed "some" |
08:46:15 | FromDiscord | <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:01 | FromDiscord | <leetnewb> imo, there is something to be said for having them drop in both places |
08:57:20 | FromDiscord | <Elegantbeef> Remember the 3 irc users and matrix users 😄 |
08:59:57 | FromDiscord | <Rika> Beef you’re pretty much the only matrix user |
09:00:43 | FromDiscord | <Elegantbeef> Just the otherday there were like 4 of us |
09:04:03 | FromDiscord | <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:19 | FromDiscord | <Dudugz> (edit) "I" => "it" |
09:04:46 | FromDiscord | <Dudugz> It's not like discord will bite you if you use it directly |
09:05:13 | FromDiscord | <Elegantbeef> No but it's a shitty platform and i'd rather not support using it |
09:05:26 | FromDiscord | <Dudugz> 🤔 |
09:05:44 | FromDiscord | <Dudugz> And you don't think IRC is shitty? I think it's a complete mess |
09:05:59 | FromDiscord | <Elegantbeef> I do not use IRC so... |
09:06:09 | FromDiscord | <Dudugz> Oh... |
09:06:12 | FromDiscord | <Elegantbeef> Though using IRC does fall under my view that people should be able to use what they want |
09:06:25 | FromDiscord | <huantian> Maybe we should just have everything go through matrix instead of discord then \:p |
09:06:39 | FromDiscord | <Dudugz> Hm, yeah, it's nice to have more options to talk |
09:06:40 | FromDiscord | <Elegantbeef> Just kill the discord server, problem solved |
09:06:42 | FromDiscord | <Elegantbeef> No more bridge issues |
09:06:53 | FromDiscord | <Dudugz> lol |
09:07:17 | FromDiscord | <Dudugz> Or have them separate, Nim already has a forum even if it's antiquated these days. |
09:07:19 | FromDiscord | <huantian> Good imma switch to gitter |
09:07:43 | FromDiscord | <Elegantbeef> Gitter is getting axed soon |
09:07:44 | FromDiscord | <Elegantbeef> So checkmate drongo |
09:08:10 | FromDiscord | <huantian> BRB googling drongo |
09:08:23 | FromDiscord | <Elegantbeef> It's a bird and also an australian insult |
09:08:25 | FromDiscord | <Dudugz> The only thing missing was a bot linking the server to Skype >.> |
09:09:01 | FromDiscord | <Elegantbeef> Matrix probably has a skype bridge, so problem solved |
09:09:26 | FromDiscord | <Dudugz> Hmmm I've never heard of The Matrix, I'll look it up |
09:09:34 | FromDiscord | <huantian> Maybe we should actually have matrix be the platform everything is bridged to |
09:09:35 | FromDiscord | <Dudugz> (edit) removed "The" |
09:09:42 | FromDiscord | <Elegantbeef> It's an open protocol |
09:09:49 | FromDiscord | <Elegantbeef> It's wonderful imo |
09:09:54 | FromDiscord | <Elegantbeef> It probably is the wisest huan |
09:10:42 | FromDiscord | <Dudugz> https://matrix.org/↵↵Ok, pretty interesting |
09:11:08 | FromDiscord | <Dudugz> decentralizing the means of communication is really great, anyone can talk to anyone using whatever means they want |
09:11:59 | FromDiscord | <Elegantbeef> Plus you can be like huan here and have a homeserver |
09:12:05 | FromDiscord | <Elegantbeef> Which means you own your data |
09:12:07 | FromDiscord | <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:57 | FromDiscord | <Elegantbeef> https://matrix.org/bridges/ |
09:12:58 | FromDiscord | <Elegantbeef> I am using matrix to talk to you on discord |
09:12:58 | FromDiscord | <Elegantbeef> https://matrix.org/clients/ |
09:13:01 | FromDiscord | <Elegantbeef> There is a discord puppet bridge, but that's against discord TOS |
09:13:52 | FromDiscord | <Dudugz> Got it, this is pretty cool |
09:14:01 | FromDiscord | <huantian> (And like it’s part of the TOS that might maybe kinda get you banned) |
09:14:17 | FromDiscord | <Elegantbeef> So many qualifiers there huan! |
09:14:43 | FromDiscord | <Dudugz> But still using a bot to create the bridge should not be against discord TOS |
09:14:55 | FromDiscord | <Elegantbeef> Sure, this one uses webhooks |
09:15:03 | FromDiscord | <Dudugz> Yea |
09:15:07 | FromDiscord | <Elegantbeef> The against discord TOS is using the discord API to self bot your account |
09:15:19 | FromDiscord | <Dudugz> Hmm |
09:15:24 | FromDiscord | <Elegantbeef> In the matrix world 'puppet' means you control a real user on the platform |
09:15:47 | FromDiscord | <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:51 | FromDiscord | <huantian> But honestly the probably wouldn’t ban you |
09:17:10 | FromDiscord | <huantian> It’s almost equivalent to a custom discord client at that point |
09:17:28 | FromDiscord | <Dudugz> Yea |
09:17:29 | FromDiscord | <Elegantbeef> I just follow rules and be a good boy |
09:18:10 | FromDiscord | <Elegantbeef> \I'm still just amazed that discord's like "You know we should add abhorrent themes for nitro users" |
09:18:29 | FromDiscord | <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:43 | FromDiscord | <Elegantbeef> betterdiscord? |
09:18:49 | FromDiscord | <Dudugz> Yea |
09:19:06 | FromDiscord | <Dudugz> The only discord theme that sucks is dark lol, light theme makes you blind. |
09:19:17 | FromDiscord | <Dudugz> (edit) "The only discord theme that ... sucks" added "doesn't" |
09:19:20 | FromDiscord | <huantian> Personally im an armcord + vencord person |
09:19:20 | FromDiscord | <Elegantbeef> Most of the new themes they added are abhorrent |
09:19:43 | FromDiscord | <huantian> Graphic design is my passion |
09:20:30 | FromDiscord | <huantian> Along with emnity for mobile |
09:20:30 | FromDiscord | <Dudugz> Personally I'm a good boy and use the original service despite the problems. |
09:21:04 | FromDiscord | <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:21 | FromDiscord | <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:32 | FromDiscord | <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:10 | FromDiscord | <Dudugz> In reply to @huantian "Right but have you": Code blocks? 🥲 I'm using vscode |
09:22:16 | FromDiscord | <huantian> Hopefully the new matrix video call stuff will make the voice and video chat situation better |
09:22:31 | FromDiscord | <Elegantbeef> Yea that's the hope |
09:23:11 | FromDiscord | <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:36 | FromDiscord | <Elegantbeef> You can clearly leave discord by making your server a matrix room! |
09:23:40 | FromDiscord | <Elegantbeef> Or even a matrix space 😛 |
09:24:03 | FromDiscord | <huantian> https://github.com/Vap0r1ze/vpc-shiki can’t give you any screenshots rn but it’s pretty↵(@Dudugz) |
09:24:20 | FromDiscord | <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:32 | FromDiscord | <Elegantbeef> Of course you can |
09:24:48 | FromDiscord | <huantian> Send them a virus that deletes their discord account ez |
09:25:10 | FromDiscord | <Elegantbeef> I mean this is how any platform starts, some schmucks that are interested in it encouraging other schmucks |
09:25:20 | FromDiscord | <Elegantbeef> Eventually the schmucks are all on the platform, or the platform dies |
09:25:27 | FromDiscord | <Dudugz> In reply to @huantian "https://github.com/Vap0r1ze/vpc-shiki can’t give ": ok, this is much better than discord codeblock. |
09:25:27 | FromDiscord | <Dudugz> Q |
09:26:51 | FromDiscord | <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:09 | FromDiscord | <Elegantbeef> Well cause discord is a shitty platform |
09:27:23 | FromDiscord | <Elegantbeef> Matrix is about decentralising the servers and communication on the protocol |
09:27:25 | FromDiscord | <Dudugz> lol, maybe it's for some but there are those who like it |
09:27:37 | FromDiscord | <Elegantbeef> The bridges are incidental |
09:27:45 | FromDiscord | <Dudugz> Hmm |
09:28:07 | FromDiscord | <leetnewb> How is matrix about discoverability of past conversations in a room like this? |
09:28:23 | FromDiscord | <Elegantbeef> Matrix's decentralisation is purely about the fact you can have different home servers that can communicate still |
09:28:30 | FromDiscord | <Elegantbeef> Like mastodon or other decentralised platforms |
09:28:55 | FromDiscord | <Dudugz> Hmm, got it |
09:29:24 | FromDiscord | <Elegantbeef> One should be able to fetch the history just fine |
09:29:25 | FromDiscord | <Elegantbeef> It's not a E2E room |
09:29:28 | FromDiscord | <Dudugz> I've been thinking about switching to Mastodon since Elon shitted the entire Twitter. |
09:29:30 | FromDiscord | <Elegantbeef> In the case of E2E encrypted rooms it's clearly not possible to get history without keys |
09:29:33 | FromDiscord | <huantian> Do you mean like search? There is a search button which tbh is somehow worse than discord’s trash search↵(@leetnewb) |
09:30:01 | FromDiscord | <Elegantbeef> I wonder how much of that search issue is down to matrix or element |
09:30:03 | FromDiscord | <leetnewb> In reply to @huantian "Do you mean like": Yes, interesting. I suppose search is hard though. |
09:30:18 | FromDiscord | <leetnewb> Is that an interface bad or a results bad? |
09:30:50 | FromDiscord | <Elegantbeef> Uncertain whether it's the client or the protocol design 😄 |
09:32:22 | FromDiscord | <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:51 | FromDiscord | <Andreas> (edit) "supporting-info.." => "supporting-info..↵Is there a API for this ?" |
09:33:54 | FromDiscord | <huantian> We can make a website that displays random messages from beef |
09:34:18 | FromDiscord | <Andreas> In reply to @huantian "We can make a": year - all the macro-magic, uncommented.. |
09:34:21 | FromDiscord | <huantian> Not sure what the api for messages / message search is |
09:34:58 | FromDiscord | <Elegantbeef> Just download the matrix chat |
09:35:02 | FromDiscord | <Elegantbeef> Or just use the irc logs |
09:35:08 | FromDiscord | <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:53 | FromDiscord | <Andreas> In reply to @Elegantbeef "Or just use the": and then one would have to re-build the threads from the logs ? |
10:54:01 | FromDiscord | <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:29 | FromDiscord | <qb> (edit) "How would a nim type definition look like for a python numpy ... shape" added "having the" |
10:54:59 | FromDiscord | <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:46 | FromDiscord | <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:55 | FromDiscord | <Dudugz> sent a code paste, see https://play.nim-lang.org/#ix=4sYf |
11:27:32 | FromDiscord | <Dudugz> Ooh, actually |
11:27:35 | FromDiscord | <Dudugz> https://nim-by-example.github.io/arrays/ |
11:27:42 | FromDiscord | <Dudugz> You can use the array type |
11:29:09 | FromDiscord | <Dudugz> ``seq[array[2, array[3, int]]]``↵I think that may work |
11:29:48 | FromDiscord | <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:29 | FromDiscord | <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:45 | FromDiscord | <Gumbercules> https://nim-lang.org/docs/system.html#newSeqOfCap,Natural |
13:39:22 | FromDiscord | <Gumbercules> In reply to @Dudugz "I don't know if": ^ |
13:49:31 | * | jmdaemon quit (Ping timeout: 248 seconds) |
13:54:27 | FromDiscord | <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:40 | FromDiscord | <Rika> you want the capacity of the seq or the size of the contents only |
14:21:20 | FromDiscord | <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:37 | FromDiscord | <guttural666> basically a recursive memory counter |
14:22:39 | FromDiscord | <guttural666> my guess is its len, capacity and the data itself |
14:23:03 | NimEventer | New 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:19 | FromDiscord | <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:11 | FromDiscord | <demotomohiro> In reply to @Takemichi Hanagaki "Sorry, I may have": https://nim-lang.org/docs/manual.html#types-tuples-and-object-types |
15:15:03 | FromDiscord | <Takemichi Hanagaki> Thanks, I was looking for this part since yesterday! |
15:15:31 | FromDiscord | <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:25 | FromDiscord | <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:45 | FromDiscord | <guttural666> (edit) "latency." => "latency/increase throughput." |
16:08:01 | FromDiscord | <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:22 | FromDiscord | <Rika> other than that i dont usually use threads so i cant really help with that |
16:14:10 | FromDiscord | <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:01 | FromDiscord | <guttural666> std/asyncdispatch is what I am looking at rn |
16:26:07 | FromDiscord | <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:40 | FromDiscord | <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:32 | FromDiscord | <Marcus> does langserv do anything nimlsp doesn't? |
17:10:01 | FromDiscord | <Marcus> I guess it's able to compile without the nim sources, so that's something I suppose. |
17:12:34 | FromDiscord | <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:35 | FromDiscord | <Marcus> I've now read https://github.com/nim-lang/RFCs/issues/300 and feel wiser about the whole nim tooling issue |
18:03:31 | FromDiscord | <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:33 | FromDiscord | <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:01 | FromDiscord | <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:38 | FromDiscord | <creative> sent a code paste, see https://play.nim-lang.org/#ix=4sZR |
18:29:08 | FromDiscord | <Elegantbeef> `-d:useMalloc` |
18:30:09 | FromDiscord | <firasuke> does nim have something like `execProcesses` but for `execCmdEx`? |
18:30:24 | FromDiscord | <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:59 | FromDiscord | <guttural666> In reply to @Marcus "for if you decided": hey, do you think you can help me with the Neovim config? |
19:14:11 | FromDiscord | <firasuke> In reply to @guttural666 "hey, do you think": oh don't |
19:14:37 | FromDiscord | <firasuke> `nimlsp` is broken because `nimsuggest` keeps breaking and exiting with error code `0`:↵https://github.com/PMunch/nimlsp/issues/36 |
19:15:06 | FromDiscord | <firasuke> In reply to @guttural666 "hey, do you think": `alaviss/nim.nvim` for syntax highlighting |
19:15:10 | FromDiscord | <firasuke> there is no treesitter implementation |
19:15:26 | FromDiscord | <firasuke> `nimlangserver` with `vscode` is currently the better LSP implementation |
19:15:35 | FromDiscord | <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:59 | FromDiscord | <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:21 | FromDiscord | <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:35 | FromDiscord | <guttural666> installed nim and nimlsp with mason and syntax highlighting works, but no autocomplete etc. |
19:16:49 | FromDiscord | <firasuke> In reply to @guttural666 "installed nim and nimlsp": yeah only highlighting works |
19:16:53 | FromDiscord | <firasuke> completion doesn't work |
19:17:05 | FromDiscord | <guttural666> coming from a very basic vim config, nvim and lazynvim is just a pure sensory assault |
19:17:55 | FromDiscord | <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:30 | FromDiscord | <firasuke> In reply to @guttural666 "yeah, okay, just trying": you can use vscode with nimsaem plugin which uses `nimlangserver` |
19:18:55 | FromDiscord | <firasuke> but yeah as an nvim user myself, I am sad we don't have the tooling working with vim/nvim |
19:18:55 | FromDiscord | <guttural666> In reply to @firasuke "you can use vscode": really trying hard not to have to use anything but Konsole & vim |
19:19:48 | FromDiscord | <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:46 | FromDiscord | <guttural666> just wondering why there are no current issues for this, can't be the only one who relies on the LSP |
19:20:52 | FromDiscord | <firasuke> In reply to @guttural666 "just wondering why there": https://github.com/nim-lang/langserver |
19:21:14 | FromDiscord | <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:34 | FromDiscord | <firasuke> it doesn't have a plugin for nvim/vim, and you can't install it with mason |
19:21:45 | FromDiscord | <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:00 | FromDiscord | <firasuke> I wish we had treesitter working with nim and a proper LSP |
19:22:27 | FromDiscord | <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:43 | FromDiscord | <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:46 | FromDiscord | <guttural666> surely not a problem for experts, but how can you attract new people |
19:26:14 | FromDiscord | <firasuke> well yeah, I think it's a priority as well |
19:26:19 | FromDiscord | <firasuke> how can we help with this? |
19:26:32 | FromDiscord | <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:37 | FromDiscord | <firasuke> https://github.com/nvim-treesitter/nvim-treesitter/pull/4439 |
19:27:17 | FromDiscord | <firasuke> apparently there's an RFC:↵https://github.com/nim-lang/RFCs/issues/300 |
19:28:18 | FromDiscord | <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:35 | FromDiscord | <guttural666> Peter said that it was an issue with the LSP impl itself? dunno |
19:28:40 | FromDiscord | <firasuke> ok this comment on the RFC highlights the current situation:↵https://github.com/nim-lang/RFCs/issues/300#issuecomment-1496690532 |
19:29:05 | FromDiscord | <guttural666> yeah but that seems to be more of a general question no? |
19:29:12 | NimEventer | New thread by cmc: Scan syntax tree for procedure calls, see https://forum.nim-lang.org/t/10082 |
19:29:57 | FromDiscord | <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:06 | FromDiscord | <firasuke> this is mostly working:↵https://github.com/aMOPel/tree-sitter-nim |
19:31:57 | FromDiscord | <guttural666> In reply to @firasuke "it is but it": yeah, just added a comment |
19:32:35 | FromDiscord | <Elegantbeef> @jmgomez I generally do `./koch boot -d:release` followed by `./koch test` |
19:37:36 | FromDiscord | <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:33 | FromDiscord | <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:50 | FromDiscord | <Elegantbeef> Well other PRs are only failing on i386 linux |
19:39:54 | FromDiscord | <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:27 | FromDiscord | <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:56 | FromDiscord | <firasuke> In reply to @guttural666 "do people use treesitter": gives you better highlighting and stuff like that |
19:42:37 | FromDiscord | <guttural666> In reply to @firasuke "gives you better highlighting": is that only relevant to nvim? just read about it in that context |
19:42:57 | FromDiscord | <firasuke> I don't know |
19:43:28 | FromDiscord | <dlesnoff> I have plenty of questions about memory management and linked lists in Nim |
19:43:51 | FromDiscord | <dlesnoff> I checked the implementation in https://github.com/nim-lang/Nim/blob/version-1-6/lib/pure/collections/lists.nim#L84 |
19:44:17 | FromDiscord | <dlesnoff> Sorry, actually I should check the 2.0 implementation |
19:45:23 | FromDiscord | <dlesnoff> I try to do the Exercism problem about a doubly linked list implementation |
19:45:31 | FromDiscord | <dlesnoff> https://exercism.org/tracks/nim/exercises/linked-list/edit |
19:46:23 | FromDiscord | <dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4t0a |
19:46:38 | FromDiscord | <dlesnoff> (edit) "https://play.nim-lang.org/#ix=4t0a" => "https://play.nim-lang.org/#ix=4t0b" |
19:47:23 | FromDiscord | <dlesnoff> Can I access the next field of a NodeObj through a Node ? |
19:47:59 | FromDiscord | <dlesnoff> Oops I have a double ref error sorry |
19:48:29 | FromDiscord | <dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4t0c |
19:49:23 | FromDiscord | <dlesnoff> Isn't this a mutually recursive definition? |
19:50:14 | FromDiscord | <dlesnoff> Since NodeObj depends on Node definition and Node depends on the Node definition? |
19:59:11 | FromDiscord | <dlesnoff> sent a code paste, see https://play.nim-lang.org/#ix=4t0e |
20:01:11 | FromDiscord | <Elegantbeef> A type can be recursive if there is pointer indirection |
20:01:36 | FromDiscord | <Elegantbeef> `!= nil` is generally how that's written |
20:03:14 | FromDiscord | <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:45 | FromDiscord | <Elegantbeef> `Node[T](val: val, next: nil, prev: list.tail)`? |
20:03:56 | FromDiscord | <Elegantbeef> `ref` is a pointer |
20:05:01 | FromDiscord | <dlesnoff> Oh, isn't `ref` like a C++ reference? |
20:06:06 | FromDiscord | <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:50 | FromDiscord | <Elegantbeef> Ref in Nim is a heap allocated memory safe pointer |
20:08:22 | FromDiscord | <dlesnoff> Yes just read that in the Nim tutorial !!! |
20:08:31 | FromDiscord | <Elegantbeef> It's nothing like C++'s reference |
20:09:04 | FromDiscord | <Elegantbeef> It's like Rust's `Box` or C#/Java's classes 😄 |
20:12:54 | FromDiscord | <dlesnoff> Thanks for the implicit invitation to learn two other programming languages 😅 |
20:13:17 | FromDiscord | <Elegantbeef> Hey I do not know what languages people know |
20:14:35 | FromDiscord | <jmgomez> hmm was able to reproduce it in linux, time to setup wsl |
20:14:39 | FromDiscord | <voidwalker> Would passing a socket between procs without var work ? Would it be the same socket ? |
20:15:40 | FromDiscord | <Elegantbeef> It's a reference so yes |
20:16:07 | FromDiscord | <Elegantbeef> The internal data is also big so it'd be passed by reference anyway |
20:16:12 | FromDiscord | <Marcus> @firasuke\: nimsuggest is broken in latest stable nim, that affects anything that uses a nim lsp. |
20:16:49 | FromDiscord | <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:26 | FromDiscord | <firasuke> In reply to @Marcus "<@248208053952970752>\: nimsuggest is broken": so it's nimsuggest and not the LSPs |
20:17:33 | FromDiscord | <firasuke> why is nimlangserver working with VScode then? |
20:17:57 | FromDiscord | <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:01 | FromDiscord | <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:29 | FromDiscord | <Elegantbeef> `isNil` is practically an alias for `== nil` if you're into that |
20:18:29 | FromDiscord | <Marcus> https://github.com/PMunch/nimlsp/issues/154#issuecomment-1476346873↵(@firasuke) |
20:19:16 | FromDiscord | <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:28 | FromDiscord | <Elegantbeef> That's not the question horizon |
20:19:38 | FromDiscord | <Elegantbeef> the question is "Why does `isNil` exist if `== nil` works" |
20:19:49 | FromDiscord | <Marcus> Dunno about Vscode. I don't use it. Maybe langserv doesn't trigger the recursision issue? |
20:20:12 | FromDiscord | <Hourglass [She/Her]> Huh, question is worded weirdly then aha |
20:21:00 | FromDiscord | <dlesnoff> Sorry if it is, I am not native and forgot to reactivate grammarly extension for syntax checking. |
20:21:15 | FromDiscord | <dlesnoff> (edit) "Sorry if it is, I am not native and ... forgot" added "I" |
20:22:03 | FromDiscord | <Hourglass [She/Her]> It's fine, you're doing great for a non-native speaker anyway aha |
20:23:11 | FromDiscord | <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:21 | FromDiscord | <Hourglass [She/Her]> Crap got distracted |
20:23:27 | FromDiscord | <firasuke> In reply to @Marcus "Dunno about Vscode. I": oh ok |
20:23:32 | FromDiscord | <firasuke> thanks for elaborating |
20:23:36 | FromDiscord | <Elegantbeef> horizon about to start project #10000032 |
20:24:35 | FromDiscord | <Marcus> Firasuke\: autocomplete works for me after downgrading to.10. But the lsp still struggles with larger code bases. |
20:25:55 | FromDiscord | <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:29 | FromDiscord | <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:00 | FromDiscord | <Marcus> Yea. I was wondering if it's worth opening a pr to get langserver supported in lspconfig↵(@firasuke) |
20:27:05 | FromDiscord | <Marcus> And Mason. |
20:27:35 | FromDiscord | <firasuke> In reply to @Marcus "Yea. I was wondering": I think it is very much worth it. |
20:27:47 | FromDiscord | <firasuke> Surprisingly, helix is using nimlangserver I think |
20:32:22 | FromDiscord | <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:00 | FromDiscord | <Elegantbeef> Nimble develop with nimble 0.14 installs the packages locally to your project |
20:33:20 | FromDiscord | <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:45 | FromDiscord | <jmgomez> the issue is quite odd, it counts more than one import in `ioselectors_epoll.nim` for posix o_O |
20:34:08 | FromDiscord | <sOkam!> ah so to avoid requiring a `switch(.., somePath)` inside the config.nims file? |
20:34:11 | FromDiscord | <Elegantbeef> Does it have `from x import, y, z`? |
20:34:42 | FromDiscord | <jmgomez> no, just `↵import posix, times, epoll` |
20:34:47 | FromDiscord | <Elegantbeef> Status had an issue with people doing `devel` and during development and shipping accidently |
20:35:18 | FromDiscord | <Elegantbeef> Fairly certain the only reason develop changed how it worked was cause of status' view |
20:35:50 | FromDiscord | <Elegantbeef> Odd that it errors then |
20:36:26 | FromDiscord | <jmgomez> I see, yeah. Will tackle it later need to dinner, maybe there is another way |
20:38:08 | * | lucasta joined #nim |
20:39:21 | FromDiscord | <voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=4t0p |
20:46:43 | FromDiscord | <Elegantbeef> Or just around the `fut.read` |
20:46:43 | FromDiscord | <Elegantbeef> I do not know |
20:46:46 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0u |
20:58:20 | FromDiscord | <anddam> howdy |
20:58:46 | FromDiscord | <Elegantbeef> Hello |
20:59:05 | FromDiscord | <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:16 | FromDiscord | <Hourglass [She/Her]> In reply to @Elegantbeef "horizon about to start": I plead the fifth! |
21:00:30 | FromDiscord | <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:51 | FromDiscord | <Hourglass [She/Her]> I'm trying to work on my attention span but it is... Horrid |
21:02:03 | FromDiscord | <anddam> everybody's one is |
21:02:11 | FromDiscord | <anddam> well, not completely true |
21:02:12 | FromDiscord | <Elegantbeef> Could resort to email.... 😄 |
21:02:12 | FromDiscord | <anddam> mine is |
21:03:01 | FromDiscord | <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:17 | FromDiscord | <anddam> I cannot find that discussion anymore, any help? |
21:03:38 | FromDiscord | <Elegantbeef> No clue what you mean, we have c2nim and futhark for generating C bindings |
21:04:00 | FromDiscord | <anddam> c2nim |
21:04:47 | FromDiscord | <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:00 | FromDiscord | <anddam> (edit) "at" => "and" |
21:08:14 | FromDiscord | <anddam> but maybe I took the wrong approach and this is all a big XY problem |
21:09:43 | FromDiscord | <firasuke> is there a twitch / youtube live streamer that codes in Nim xD |
21:10:44 | FromDiscord | <Elegantbeef> There used to be disruptek but he's now banned and lost all his cool |
21:10:58 | NimEventer | New thread by Vince-LD: Need guidance for a first experience with Nim and ESP32, see https://forum.nim-lang.org/t/10083 |
21:11:55 | FromDiscord | <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:02 | FromDiscord | <firasuke> In reply to @Elegantbeef "There used to be": really? |
21:12:29 | FromDiscord | <anddam> In reply to @Elegantbeef "There used to be": that sounds a story from the Middle Earth |
21:12:36 | FromDiscord | <anddam> (edit) "In reply to @Elegantbeef "There used to be": that sounds ... a" added "like" |
21:12:52 | FromDiscord | <Elegantbeef> Anddam i have my own framework based on sdl2 + opengl so i'd say use that |
21:12:57 | FromDiscord | <firasuke> why was he banned? he made a lot of cool nim projects? |
21:12:58 | FromDiscord | <anddam> "he's now banned from these whereabouts, we do not speaketh his name" |
21:13:30 | FromDiscord | <Elegantbeef> He had very little control when it came to calling people out on his view of their code |
21:13:45 | FromDiscord | <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:52 | FromDiscord | <anddam> I thought I could draw(x,y) and be happy |
21:13:56 | FromDiscord | <dlesnoff> In reply to @firasuke "is there a twitch": It could be cool to have a list of Youtube Nim-related channels |
21:14:13 | FromDiscord | <firasuke> In reply to @Elegantbeef "He had very little": oh ok |
21:14:21 | FromDiscord | <Elegantbeef> Is there any reason you need gpu? |
21:14:30 | FromDiscord | <Elegantbeef> You could use treeform's boxy or just sdl2 raw |
21:15:00 | FromDiscord | <willyboar> Banned because they think he was harsh with dom |
21:15:28 | FromDiscord | <anddam> @ElegantBeef wast the GPU question for me? |
21:15:34 | FromDiscord | <anddam> (edit) "wast" => "was" |
21:15:39 | FromDiscord | <Elegantbeef> Yes |
21:16:03 | FromDiscord | <anddam> oh, no I don't, I wasn't even aware I had pulled GPU into discussion |
21:16:50 | FromDiscord | <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:20 | FromDiscord | <anddam> since an executable statically linking imgui comes at 2.5MB |
21:17:54 | FromDiscord | <Elegantbeef> What is your goal |
21:18:18 | FromDiscord | <anddam> a self contained executable starring some effects like in https://kitao.github.io/pyxel/wasm/launcher/?run=greg76.megademo.megademo |
21:18:55 | FromDiscord | <Elegantbeef> Ok so you literally could just use Nico |
21:19:06 | FromDiscord | <Elegantbeef> It does not need any gpu acceleration |
21:19:11 | FromDiscord | <anddam> ok |
21:19:17 | FromDiscord | <anddam> and can be statically linked? |
21:19:25 | FromDiscord | <Elegantbeef> Nico uses sdl2 |
21:19:25 | FromDiscord | <anddam> I think I browsed through that btw |
21:19:37 | FromDiscord | <anddam> inspired by Pico8 |
21:19:58 | FromDiscord | <Elegantbeef> Yea |
21:20:12 | FromDiscord | <anddam> time is an issue for me, I have very little spare so ends weekend to weekend a couple hours at night |
21:20:30 | FromDiscord | <anddam> wasting time trying to upgrade a library is not funny, but it helps understanding what one is looking for TBH |
21:21:00 | FromDiscord | <anddam> so Nico seems good, I'll try it right now |
21:21:15 | FromDiscord | <anddam> nimble develop clones the package locally for development, right? |
21:22:37 | FromDiscord | <Elegantbeef> Yea you want `nimble install nico` |
21:23:06 | FromDiscord | <Elegantbeef> Nico does support compiling to wasm |
21:23:09 | FromDiscord | <anddam> oh no, that is for installing the clone repo, for developing the package itself |
21:23:18 | FromDiscord | <Elegantbeef> https://www.impbox.net/platformer/ |
21:23:24 | FromDiscord | <anddam> In reply to @Elegantbeef "Nico does support compiling": this keeps getting more wonderful-er |
21:23:27 | FromDiscord | <Elegantbeef> You do not need to develop nico presently though |
21:23:32 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4t0z |
21:23:38 | FromDiscord | <Elegantbeef> You do not |
21:23:41 | FromDiscord | <anddam> (edit) "clone" => "cloned" |
21:24:15 | * | jmdaemon joined #nim |
21:24:30 | FromDiscord | <sOkam!> i guess import is a misnomer 🤔 |
21:24:53 | FromDiscord | <sOkam!> i was thinking in terms of `from thing as alias import nil` |
21:25:07 | FromDiscord | <Elegantbeef> That makes no sense |
21:25:18 | FromDiscord | <sOkam!> why not? |
21:25:26 | FromDiscord | <sOkam!> import nil means everything is qualified mandatory |
21:25:31 | FromDiscord | <Elegantbeef> Yes |
21:26:06 | FromDiscord | <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:05 | FromDiscord | <Elegantbeef> I do not think there is a way to do what you want sokam |
21:27:59 | FromDiscord | <anddam> In reply to @Elegantbeef "https://www.impbox.net/platformer/": cannot figure the keys |
21:28:00 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4t0B |
21:28:28 | FromDiscord | <Elegantbeef> arrows/wasd move |
21:29:11 | FromDiscord | <Elegantbeef> There used to be a way to open a dev ui, but i do not recall where impbox put that |
21:29:22 | FromDiscord | <Elegantbeef> nico also has a imgui module |
21:29:45 | FromDiscord | <Elegantbeef> I've personally used nico to make a small puzzle game, it's a fun package |
21:30:43 | FromDiscord | <Elegantbeef> https://www.impbox.net/spinsword/ impbox also has this demo using modern nico |
21:34:26 | FromDiscord | <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:05 | FromDiscord | <Elegantbeef> z and x |
21:36:54 | FromDiscord | <anddam> enough playing, let's codecheck |
21:39:14 | FromDiscord | <guttural666> In reply to @Jiezron "Wait. I somehow read": you main "Maining Nim" 🤣 |
21:40:39 | FromDiscord | <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:25 | FromDiscord | <Elegantbeef> Like ii said you can statically link sdl2 |
21:43:18 | FromDiscord | <Elegantbeef> https://wiki.libsdl.org/SDL2/Installation#static_linking |
21:44:14 | FromDiscord | <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:41 | FromDiscord | <jmgomez> (edit) "traverse" => "traversed" |
21:44:57 | FromDiscord | <Elegantbeef> Does it `include` anything that imports posix? |
21:45:03 | FromDiscord | <Elegantbeef> Might be duplicated imports somewhere |
21:45:49 | FromDiscord | <jmgomez> you think two duplicated imports cauases both to be in the context? Let me check that |
21:46:07 | FromDiscord | <Elegantbeef> Perhaps, no clue really |
21:46:33 | FromDiscord | <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:36 | FromDiscord | <jmgomez> lol yeah! it does, imported timesa few times more and it does it |
21:46:42 | FromDiscord | <jmgomez> (edit) "timesa" => "times a" |
21:47:03 | FromDiscord | <jmgomez> I can check if they are actually different before triggering an error |
21:48:03 | FromDiscord | <jmgomez> that looks neat! |
21:48:57 | FromDiscord | <jmgomez> why is it possible now? Wanted to do a Collection concept to unify TArray and Seqs in NUE |
21:49:04 | FromDiscord | <jmgomez> will use that |
21:49:38 | FromDiscord | <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:51 | FromDiscord | <Elegantbeef> What happens is each step emits a new iterator |
21:50:39 | FromDiscord | <jmgomez> Nice |
21:51:35 | FromDiscord | <Elegantbeef> It's very hacky, but it's a low cost change that just makes this much easier and cleaner |
21:52:39 | FromDiscord | <dlesnoff> In reply to @guttural666 "you main "Maining Nim"": 😅 Araq's nimconf last statements about the English language were funny indeed. |
21:53:33 | FromDiscord | <guttural666> In reply to @Jiezron "😅 Araq's nimconf": yes! I found it extremely funny, one youtube commenter strongly disagreed 😄 |
21:53:52 | FromDiscord | <jmgomez> In reply to @Elegantbeef "It's very hacky, but": why is hacky? Cost in what terms? |
21:54:20 | FromDiscord | <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:30 | FromDiscord | <Elegantbeef> `iterator myIter(i: iterable)` should do this interally |
21:56:26 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0D |
21:57:55 | FromDiscord | <jmgomez> gotcha, nice |
21:58:31 | FromDiscord | <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:08 | FromDiscord | <Elegantbeef> Just leave it as is |
21:59:18 | FromDiscord | <Elegantbeef> Or squash the commits(i tend to do this as i like git cleanliness in my PRs) |
21:59:31 | FromDiscord | <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:53 | FromDiscord | <anddam> but I mean mostly what's a nim's default `-L` equivalent |
21:59:54 | FromDiscord | <Elegantbeef> I mean you are capable of doing so |
22:00:11 | FromDiscord | <Elegantbeef> `--passL:"-L sdl2path -lsdl2"` |
22:00:48 | FromDiscord | <anddam> now maybe I am, but isn't a library for static linking different than the dynamic one? |
22:00:55 | FromDiscord | <anddam> I followed README and got the SDL2.dll |
22:01:32 | FromDiscord | <anddam> btw just 2.5 MB seems a bargain |
22:01:48 | FromDiscord | <Elegantbeef> It is different to the static one |
22:02:01 | FromDiscord | <Elegantbeef> A statically linked sdl2 program will probably be like 1mb or even smaller |
22:02:30 | FromDiscord | <anddam> great |
22:02:41 | FromDiscord | <anddam> thanks a lot, I have a new path to walk now |
22:02:55 | FromDiscord | <anddam> and right now that is the doggy poop walk |
22:03:11 | FromDiscord | <anddam> have a nice evening/night/morning |
22:07:29 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0H |
22:09:01 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4t0I |
22:10:10 | FromDiscord | <Elegantbeef> Given you will not be able to keep up with the mangle nimscriptapi name, you need to disambiguate on the dirs |
22:10:47 | FromDiscord | <sOkam!> problem is that that will break the default nimble syntax |
22:11:01 | FromDiscord | <Elegantbeef> What? |
22:11:17 | FromDiscord | <sOkam!> what i want to disambiguate is the default nimble srdDir variable, not the other |
22:11:54 | FromDiscord | <Elegantbeef> sent a code paste, see https://paste.rs/OQh |
22:11:54 | FromDiscord | <sOkam!> i can do dirs.srcDir, but that resolves the wrong one |
22:12:13 | FromDiscord | <Elegantbeef> That's my point you need to rename the `srcDir` there |
22:24:29 | FromDiscord | <guttural666> is incremental compilation already in? |
22:25:35 | FromDiscord | <Elegantbeef> Technically yes, but it's wholly unusable |
22:27:49 | FromDiscord | <guttural666> why is that? |
22:30:40 | FromDiscord | <Elegantbeef> Cause it's not completed |
22:40:18 | FromDiscord | <Gumbercules> It'd be nice to know what is left to do there. |
22:45:19 | FromDiscord | <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:35 | FromDiscord | <guttural666> (edit) "recursion?" => "recursion (after the first call, which works)?" |
22:47:13 | FromDiscord | <Arathanis> looks like the looping is coming from somewhere else |
22:47:31 | FromDiscord | <Elegantbeef> Why do you even use a while loop here |
22:47:41 | FromDiscord | <guttural666> yeah, some problem deeper in the call stack, forget it ^ |
22:47:58 | FromDiscord | <guttural666> In reply to @Elegantbeef "Why do you even": waiting for a positive response |
22:48:13 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t0R |
22:48:36 | FromDiscord | <guttural666> sent a code paste, see https://play.nim-lang.org/#ix=4t0S |
22:49:18 | FromDiscord | <guttural666> calling a proc that calls a template that calls this could not be a problem I think? |
22:50:45 | FromDiscord | <Gumbercules> Maybe there's a way, I'm not sure if issues are tagged or not... |
22:53:32 | FromDiscord | <guttural666> nah, it's somewhere in the call stack, maybe deleted an inc somewhere, forget it 😛 |
22:57:23 | FromDiscord | <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:29 | FromDiscord | <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:20 | FromDiscord | <jmgomez> so I discarded the pr which it probably wouldnt be accepted anyways xD |
22:59:58 | FromDiscord | <jmgomez> (edit) "which" => "(which" | "had" => "had)" |
23:01:14 | * | rockcavera quit (Remote host closed the connection) |
23:09:09 | NimEventer | New thread by TyroneClide: Object Arrays, see https://forum.nim-lang.org/t/10084 |
23:16:46 | FromDiscord | <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:11 | FromDiscord | <Elegantbeef> `redefinition of 'm21496'; previous declaration here: t21496.nim(5, 12)` |
23:18:12 | FromDiscord | <Elegantbeef> Seems related if you ask me |
23:18:48 | FromDiscord | <jmgomez> xD agh |
23:19:04 | FromDiscord | <jmgomez> oky but legit! |
23:19:21 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t0Y |
23:19:42 | FromDiscord | <jmgomez> that shouldnt work |
23:21:06 | FromDiscord | <jmgomez> it's the bug that started it all |
23:21:47 | FromDiscord | <jmgomez> I meant, ringabout's fix should also error with it |
23:22:12 | FromDiscord | <Elegantbeef> Well you have to change the test |
23:22:21 | FromDiscord | <Elegantbeef> If it shouldnt work that should error and you need the test to represent that |
23:23:03 | FromDiscord | <jmgomez> yeah, but what I dont get is that it shoudlnt work with his code neither |
23:23:39 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t0Z |
23:26:48 | FromDiscord | <jmgomez> The error would be different though, it will ask for a qualification |
23:26:57 | FromDiscord | <Elegantbeef> I mean it expects that message |
23:26:59 | FromDiscord | <Elegantbeef> It gets nothing |
23:27:07 | FromDiscord | <Elegantbeef> Which means your code doesnt work |
23:27:18 | FromDiscord | <Elegantbeef> `./koch temp c ./tests/import/t21496.nim` |
23:28:28 | FromDiscord | <jmgomez> it works fine |
23:30:00 | FromDiscord | <Elegantbeef> So it errors? |
23:30:23 | FromDiscord | <jmgomez> yes, but with a different message I guess |
23:30:29 | FromDiscord | <jmgomez> maybe it's that? |
23:30:36 | FromDiscord | <jmgomez> the discard expects that exact message? |
23:30:41 | FromDiscord | <Elegantbeef> Yes |
23:30:51 | FromDiscord | <Elegantbeef> Worth noting though it says it got nothing |
23:31:06 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t11 |
23:31:26 | FromDiscord | <jmgomez> because it is more appropriate |
23:31:34 | FromDiscord | <jmgomez> since it doesnt know what to pick |
23:31:43 | FromDiscord | <Elegantbeef> `./koch boot -d:release` `./koch test cat import` |
23:33:44 | FromDiscord | <jmgomez> ok thanks! |
23:34:00 | FromDiscord | <jmgomez> will review it tomorrow and resubmit, it's way late here |
23:57:23 | * | lucasta joined #nim |