<< 25-04-2025 >>

00:50:18*computerquip quit (Ping timeout: 276 seconds)
00:50:18*gshumway_ quit (Ping timeout: 276 seconds)
00:50:39FromDiscord<devlop_gaming> Ok so I'm trying to get nim to find my .so files which is in the /usr directory in linux but for some reason it's unable to find it even tho it's in path and I tried everything. Anyone know why?
00:56:41*gshumway joined #nim
01:04:20*computerquip joined #nim
01:41:12*xutaxkamay_ joined #nim
01:42:42*xutaxkamay quit (Read error: Connection reset by peer)
01:42:42*xutaxkamay_ is now known as xutaxkamay
02:01:40*skippy8 quit (Quit: WeeChat 4.4.2)
03:04:14FromDiscord<aryzen> This is apparently an error that's happening a lot in the background for me? In Zed it constantly crops up, so maybe it's happinging in a loop https://media.discordapp.net/attachments/371759389889003532/1365161451396005918/image.png?ex=680c4d2d&is=680afbad&hm=8841fa0c976be43120926c4d3aea62577f4b52dead7b797883ea2667820a75e5&
03:05:33FromDiscord<aintea> Yeah the nim lsp is sometimes a drama queen and just crashes because it feels like it
03:06:04FromDiscord<aryzen> I feel like I have a screwed installation because I'm not doing anything weird and it's still failing; I also had to install it in a "funny" way because it refused to otherwise
03:06:09FromDiscord<aintea> I do feel like the 2.2.6 update fixed some problems, I don't remember having a lot of problems anymore
03:06:27FromDiscord<aintea> In reply to @aryzen "I feel like I": Also don't use the official LSP, use nimlsp
03:06:27FromDiscord<aryzen> Oh, I'm on 2.2.4
03:06:31FromDiscord<aintea> Not Nim langserver
03:06:33FromDiscord<aryzen> nimlsp won't install
03:06:42FromDiscord<aintea> Install it with nimble
03:06:45FromDiscord<aryzen> yeah
03:06:47FromDiscord<aryzen> hold on
03:06:59FromDiscord<aryzen> https://media.discordapp.net/attachments/371759389889003532/1365162143728664597/image.png?ex=680c4dd2&is=680afc52&hm=d995e8ef64388ac6437a84158a2fd27768b2bf9c3ebd19ea99ea9948496cbf59&
03:07:00FromDiscord<aryzen> This
03:07:07FromDiscord<aintea> Then link it to /sbin/nimlangserver or whatever the "official" lsp binary name is
03:07:25FromDiscord<aintea> In reply to @aryzen "This": Your nimble is broken
03:07:38FromDiscord<aintea> Remove it and reinstall it using the curl command on Nim's website
03:08:15FromDiscord<aintea> The `curl -fsSL https://thingamajig.thing | sh`
03:08:26FromDiscord<aryzen> Nimble is installed with nim in brew
03:08:36FromDiscord<aryzen> I don't think I can remove it
03:08:51FromDiscord<aintea> Then remove it
03:08:59FromDiscord<aintea> And install Nim using the curl command on the website
03:09:06FromDiscord<aryzen> ok, I will try it
03:09:08FromDiscord<aintea> Just brew uninstall nim
03:09:15FromDiscord<aintea> Or whatever it is on brew
03:09:20FromDiscord<aryzen> ye that's it
03:09:25FromDiscord<aryzen> I'll curl from the website
03:09:45FromDiscord<aryzen> the website is 2.2.4, how do I get .6?
03:09:51FromDiscord<aryzen> Nightlies?
03:10:11FromDiscord<aintea> Install the thing on the website then follow updating instructions in the patchnote
03:10:17FromDiscord<aintea> I don't remember the exact steps
03:10:41FromDiscord<aintea> My bad it's not 2.2.4
03:10:46FromDiscord<aintea> (edit) "2.2.4" => "2.2.6"
03:10:49FromDiscord<aintea> It's 2.2.4
03:11:14FromDiscord<aryzen> iirc choosenim pulls the x86/64 version even if my system is arm
03:12:18FromDiscord<aryzen> OH, no it pulled arm ver, nevermind!
03:18:51FromDiscord<aryzen> In reply to @aintea "Then link it to": Sorry to be a bother, but how do I do this?
03:19:25FromDiscord<aintea> This is the dirty way to do it
03:19:38FromDiscord<aintea> The clean way is to modify the config for your Zed nim plugin
03:19:43FromDiscord<aryzen> also my nimlangserver came as a nimble package, could I just remove it?
03:19:59FromDiscord<aintea> You can
03:20:07FromDiscord<aintea> But just install nimlsp
03:20:17FromDiscord<aryzen> Yeah I just installed nimlsp, that works now
03:20:21FromDiscord<aintea> Until everything works don't delete anything
03:20:29FromDiscord<aintea> In reply to @aryzen "Yeah I just installed": So your zed works perfectly now ?
03:20:37FromDiscord<aryzen> no, the install 😅
03:20:44FromDiscord<aintea> Oh yeah
03:20:47FromDiscord<aryzen> It failed to install before, but it succeeded this time
03:21:12FromDiscord<aintea> Then go to Zed, and modify the lsp path, no idea how to do that since I don't use Zed
03:21:23FromDiscord<aryzen> I'd prefer using vscode but I was using zed to troubleshoot
03:21:26FromDiscord<aintea> But it should be pretty easy, Zed is well indicated
03:21:34FromDiscord<aintea> In reply to @aryzen "I'd prefer using vscode": Then even better
03:21:49FromDiscord<aintea> Go to your Nim plugin, and modify the path to LSP to select nimlsp
03:22:36FromDiscord<aryzen> ~~should I use nim lang org or nimsaem?~~
03:22:44FromDiscord<aintea> For what
03:22:53FromDiscord<aryzen> As my nim plugin, since vscode has like 50 options?
03:22:53FromDiscord<aintea> The nim plugin ?
03:22:55FromDiscord<aryzen> (edit) "options?" => "options"
03:22:59FromDiscord<aintea> Oh I have no idea
03:23:05FromDiscord<aintea> If there is an official one, take it
03:23:14FromDiscord<aintea> If not, take the one with the most downloads I guess
03:23:30FromDiscord<aryzen> nim lang org is official afaik
03:23:36FromDiscord<aintea> Then take this one
03:24:29FromDiscord<aryzen> Like so? https://media.discordapp.net/attachments/371759389889003532/1365166548679004221/image.png?ex=680c51ec&is=680b006c&hm=740f6049718e314797c076d59118e4c83182e1c95c9907a362971ebdabf06fe9&
03:24:45FromDiscord<aintea> Yep
03:24:49FromDiscord<aryzen> alright! wish me luck!
03:24:52FromDiscord<aintea> Now it should work perfectly
03:24:58FromDiscord<aintea> If not, ping me
03:26:45FromDiscord<aryzen> It doesn't look like it worked, there's no processes
03:31:27FromDiscord<aryzen> sorry for ping on short notice! @aintea
03:31:42FromDiscord<aintea> Don't be sorry I told you to ping
03:31:57FromDiscord<aintea> What happens when you `nimlsp` in a terminal
03:32:41FromDiscord<aryzen> Hangs here https://media.discordapp.net/attachments/371759389889003532/1365168611492237382/image.png?ex=680c53d8&is=680b0258&hm=995cc11fb7d3cf64c499de93e0334781f29a2389df1252aa32f8ef3608c62396&
03:33:04FromDiscord<aintea> Ok then it should be good
03:33:14FromDiscord<aintea> Is there any log file in vscode
03:34:14FromDiscord<aryzen> uhh, suddenly I'm getting these popups https://media.discordapp.net/attachments/371759389889003532/1365168998638948352/image.png?ex=680c5434&is=680b02b4&hm=90f6bdb845ad85ac8ecb2340e9294ae7e92ddad131352e49d3101d899e4efe89&
03:34:33FromDiscord<aintea> Ok so nimlsp does start
03:34:38FromDiscord<aintea> But it crashes for some reason
03:34:53FromDiscord<aintea> Try to put back nimlangserver as your LSP in the nim plugin parameters
03:35:18FromDiscord<aryzen> I cannot reinstall it, it errors out as before
03:35:27FromDiscord<aintea> What ?
03:35:35FromDiscord<aintea> How is that even possible
03:35:40FromDiscord<aryzen> 1sec, let me install it again
03:35:42FromDiscord<aintea> You have Nim 2.2.4
03:35:49FromDiscord<aintea> `nimble install nimlangserver`
03:36:03FromDiscord<aryzen> https://media.discordapp.net/attachments/371759389889003532/1365169457449930863/image.png?ex=680c54a2&is=680b0322&hm=67d54e167d03e8db1d26cd8cdac6f4a256d28b8c8b1e775a444df1d81e66ed09&
03:36:29FromDiscord<aryzen> 2.0.8 is not even remotely relevant to anything I have so idk what that is
03:36:33FromDiscord<aintea> Ok so
03:36:42FromDiscord<aryzen> I tried nim years ago and gave up...?
03:36:46FromDiscord<aintea> Delete your ~/.nimble
03:36:46FromDiscord<aryzen> Is that a broken old install?
03:36:56FromDiscord<aintea> And redo the install with curl
03:37:07FromDiscord<aryzen> ok, anything else I should uninstall?
03:37:12FromDiscord<aintea> I don't think so
03:38:06FromDiscord<aryzen> It completed instantly https://media.discordapp.net/attachments/371759389889003532/1365169975270047875/image.png?ex=680c551d&is=680b039d&hm=d4e685f5b138022b9445a63ddc6259554e52147416a514153fc9479a16f323d4&
03:38:38FromDiscord<aintea> Now install nimlangserver
03:38:48FromDiscord<aintea> Wait
03:39:02FromDiscord<aintea> Did you remove ~/.nimble before reinstalling with curl ?
03:39:06FromDiscord<aryzen> yeah
03:39:15FromDiscord<aintea> Then that's good
03:39:19FromDiscord<aryzen> that folder was kinda huge for some reason
03:39:20FromDiscord<aintea> Install nimlangserver
03:39:29FromDiscord<aryzen> It's churning at that rn
03:39:51FromDiscord<aryzen> nope https://media.discordapp.net/attachments/371759389889003532/1365170416716480613/image.png?ex=680c5586&is=680b0406&hm=1bd35ae96c30cd22f899da031ea22d887bdb23a2af5f6f53ada8187292316226&
03:40:07FromDiscord<aintea> Interesting
03:40:10FromDiscord<aryzen> Are there other folders to wipe?
03:40:18FromDiscord<aintea> Not to my knowledge
03:40:24FromDiscord<aryzen> There must be some sort of old cache with something broken in it
03:40:48FromDiscord<aintea> Maybe delete your ~/.local/share/cache/nim`
03:40:55FromDiscord<aintea> (edit) "~/.local/share/cache/nim`" => "`~/.local/share/cache/nim`"
03:40:59FromDiscord<aintea> Or the equivalent on macos
03:41:07FromDiscord<aintea> Should be in ~/.local
03:41:20FromDiscord<aryzen> ~/.local/share has no /cache folder for me
03:41:26FromDiscord<aryzen> I have a ~/.cache though
03:41:39FromDiscord<aintea> Oh then delete the cache for Nim in that folder
03:41:50FromDiscord<aintea> If there is none then don't do anything
03:41:59FromDiscord<aryzen> There is one but I've deleted it before
03:42:29FromDiscord<aryzen> no luck deleting the cache folder
03:42:39FromDiscord<aintea> Can you install nimlangserver with brew ?
03:42:45FromDiscord<aintea> We're going to do this the dirty way
03:42:56FromDiscord<aintea> If you can't build it we're going to give you the binary
03:42:57FromDiscord<aryzen> no luck https://media.discordapp.net/attachments/371759389889003532/1365171195431092224/image.png?ex=680c5640&is=680b04c0&hm=6c12802458e85addcd6bf922784a5ea32426ba503db0ad5f93db1a7bd35a0322&
03:43:25FromDiscord<aryzen> I can "install" it with `nimble install nimlangserver --useLocalNim` (or something similar to that)
03:43:32FromDiscord<aryzen> but that gives me 500 warnings and leads to my really buggy install
03:43:54FromDiscord<aintea> Without the last flag, it should compile fine
03:44:14FromDiscord<aryzen> Yeah that's my concern, nowhere does it say I have to use that flag, so where's the issue?
03:44:27FromDiscord<aintea> Try to remove the ~/.nimble directory once more, close your terminal, reopen it and then run the curl thingy
03:44:28FromDiscord<aryzen> I must have some sort of broken old nim 2.0.8 install somewhere
03:44:39FromDiscord<aintea> You know what
03:44:41FromDiscord<aintea> Do this
03:45:05FromDiscord<aintea> `find / -name "2.0.8"`
03:45:14FromDiscord<aintea> Check in the output if you got any Nim things
03:45:27FromDiscord<aintea> And if so delete them IF YOU EXACTLY KNOW WHAT YOU ARE DOING
03:45:42FromDiscord<aryzen> Wait should I sudo that command?
03:45:45FromDiscord<aryzen> lots of access denied
03:45:57FromDiscord<aintea> No, don't
03:45:58FromDiscord<aryzen> (edit) "access" => "permission"
03:46:05FromDiscord<aryzen> kk, I'll let it cook for a while
03:46:11FromDiscord<aintea> If it's access denied then just add a `2>/dev/null` at the end
03:46:40FromDiscord<aintea> Except if you installed Nim with sudo, and even then it shouldn't be readable only by superuser
03:46:44FromDiscord<aryzen> It's denied I think because it started with system folders
03:47:35FromDiscord<aintea> Yeah
03:47:38FromDiscord<aintea> So you should be good
03:48:06FromDiscord<aryzen> oh boy, how long should this take?
03:48:39FromDiscord<aintea> sent a long message, see https://pasty.ee/ylIYGmgC
03:48:53FromDiscord<aintea> In reply to @aryzen "oh boy, how long": Depends on how many files you have on your system
03:49:06FromDiscord<aintea> Install `brew install fd` for faster search
03:49:21FromDiscord<aintea> The command will be `fd / --glob "2.0.8"`
03:49:28FromDiscord<aryzen> Is the magnitute on hours or minute?
03:49:31FromDiscord<aintea> It will use all your cpu cores, therefore faster
03:49:40FromDiscord<aintea> In reply to @aryzen "Is the magnitute on": Minutes
03:49:48FromDiscord<aintea> But with fd it should be within seconds
03:50:04FromDiscord<aintea> Except if you have a billion files on your computer (and when I say a billion I really mean a billion)
03:50:17FromDiscord<aryzen> I doubt I have billions, and it's already been minutes so I may as well let it finish
04:05:53FromDiscord<aryzen> So that is still running, I killed it and installed fd; the command failed :S
04:07:20FromDiscord<aryzen> @aintea `[fd error]: Search path '2.0.8' is not a directory.`↵↵Sorry I'm so hopless rn!
04:10:00FromDiscord<aryzen> I did `fd 2.0.8` and it didn't find anything but I don't know if that's a good search...
04:10:58FromDiscord<aintea> It's not the right syntax for the command
04:11:03FromDiscord<aintea> Use the command I gave you
04:11:17FromDiscord<aintea> `fd / --glob "2.0.8" 2>/dev/null`
04:11:38FromDiscord<aryzen> that completed instantly with no results
04:11:54FromDiscord<aintea> Then you don't have any 2.0.8 installations I guess
04:12:05FromDiscord<aintea> Let's let someone more experienced than me help you out here
04:13:29FromDiscord<aintea> Good luck
04:13:57FromDiscord<aryzen> ok... I'll try and find something about that lock file
04:25:31FromDiscord<aryzen> Thanks for all the help thus far
04:28:54FromDiscord<aryzen> ... Also it kinda feels like the IRC bridge is dead
04:30:28*Guest17 joined #nim
04:31:21FromDiscord<aryzen> nop the bridge works
04:31:28*Guest17 quit (Client Quit)
05:11:11FromDiscord<aryzen> I even installed Nim 2.0.8 but it still says checksum mismatch
05:14:59FromDiscord<lainlaylie> if you have nim 2.0.8 then you don't need nimble to clone and build another copy of it
05:15:10FromDiscord<lainlaylie> there should be a flag that tells nimble to use the system nim
05:15:36FromDiscord<lainlaylie> problems with git configuration can cause checksum mismatch: https://github.com/nim-lang/nimble/issues/1188
05:18:02FromDiscord<aryzen> I want to use nim 2.2.4 (latest?) but nimlangserver seems to require 2.0.8 of a particular checksum
05:18:06FromDiscord<aryzen> @lainlaylie
05:18:46FromDiscord<lainlaylie> langserver requires to be built by nim 2.0.8
05:19:12FromDiscord<lainlaylie> that doesn't restrict the nim version of your project or your nimsuggest
05:20:23FromDiscord<aryzen> lets say I come from a completely fresh nim install from choosenim at 2.2.4, following the instructions from the website↵↵what are my next steps to get nimlangserver to work?
05:20:39FromDiscord<aryzen> (edit) "2.2.4," => "2.2.4 (which is what you get by default),"
05:22:00FromDiscord<lainlaylie> normally just nimble install nimlangserver (allegedly; i never do this)↵but since theres something going wrong at the git checksum match, i dont know
05:22:50FromDiscord<aryzen> the checksums were recently changed in the nimble.lock on the git but neither the old or the new checksums match what mine claims to be
05:23:22FromDiscord<aryzen> How is yours set up if you don't use nimble?
05:24:58FromDiscord<lainlaylie> i do use nimble but i git clone the repository then do nimble build↵that won't help you here because it'll still need to clone nim 2.0.8
05:25:41FromDiscord<lainlaylie> you might try getting a nim 2.0.8 elsewhere (choosenim since you're already using it) and tell nimble to use the system nim instead of building one
05:27:13FromDiscord<lainlaylie> is your git up to date? maybe it's not correctly supporting the options that nimble uses to clone stuff (https://github.com/nim-lang/nimble/blob/d4aa18b18b6126171ea5ec5adbede8ed2cb401bf/src/nimblepkg/download.nim#L43)
05:29:14FromDiscord<aryzen> My git is 2.23.0 where the latest appears to be 2.49.0
05:29:29FromDiscord<aryzen> So... It's a little older?
05:29:38FromDiscord<aryzen> But I don't think that's missing features
05:30:03FromDiscord<lainlaylie> it's half a decade old, i would try upgrading it first if thats not hard to do
05:30:14FromDiscord<aryzen> It... might be? Since that's what came with macos
05:30:25FromDiscord<aryzen> brew doesn't seem to have a git package... for some odd reason?
05:30:54FromDiscord<aryzen> oh oops, didn't scroll up
05:33:21FromDiscord<aryzen> ~~brew casually updating literally every package on my system instead of doing what I asked for~~
05:43:54FromDiscord<aryzen> OH WOW Was that really it?! https://media.discordapp.net/attachments/371759389889003532/1365201633587363841/image.png?ex=680c7299&is=680b2119&hm=82963dcaf902a1f062cb4bbe808d3a62394a0e3ca4ed8198c4d8edd9ca7fa088&
05:44:28FromDiscord<aryzen> ~~IS THIS WHY HALF MY PACKAGES DON'T WORK FOR ME??~~
05:44:53FromDiscord<lainlaylie> lol, nice
05:45:23FromDiscord<lainlaylie> if that was really it, nimble probably needs to add some note somewhere about git version/configuration requirements
05:51:49FromDiscord<aryzen> I didn't use any scientific method or testing here but I wanna say with 99% confidence it was my outdated git version
05:52:25FromDiscord<aryzen> So yeah I think for the sake of mac users, who really are the only ones who would suffer from this, there should be a note
05:53:41FromDiscord<aryzen> maybe installing via choosenim should ask users to select a newer git version if the detected one is insufficient
05:54:12FromDiscord<aryzen> ... And maybe have a requirement on the brew package
06:25:56FromDiscord<aryzen> Aaaargh...!!!↵↵`DBG Nimsuggest is not working, returning empty result`
06:31:53FromDiscord<aryzen> ~~ok maybe its working actually, it's still a touch slow but fingers crossed it stays working~~
06:46:37FromDiscord<aryzen> So it appears to loop on something like "Timeout on if file is known, assuming file is unknown" (not verbatim, from memory), so it reloads the file and seems to spawn a new nimsuggest; This pegs the cpu at 100% causing it to timeout again and start reading the file over again
08:57:12*ntat joined #nim
09:10:04*ntat quit (Quit: leaving)
09:18:49*ntat joined #nim
11:05:12FromDiscord<nocturn9x> can someone with more experience debugging Nim code help me out here?
11:05:18FromDiscord<nocturn9x> I've been trying to use gdb, to no avail
11:05:27FromDiscord<nocturn9x> Getting completely random segfaults and I can't identify the source
11:05:43FromDiscord<nocturn9x> compiling with `-d:debug` prints no exception and no traceback, with or without `--panics:on`
11:06:27FromDiscord<nocturn9x> I have a known working commit where this doesn't happen and then one where it does happen but nothing else seems to have changed
11:07:30FromDiscord<nnsee> In reply to @nocturn9x "I have a known": could do a git bisect to identify the exact commit that introduced the segfaults
11:07:35FromDiscord<nocturn9x> oh I have tried
11:07:40FromDiscord<nocturn9x> git bisect is what got me the known working commit
11:07:45FromDiscord<nnsee> ah i see
11:07:48FromDiscord<nocturn9x> `7efd176beaba00a615f61abe16472d9ce0e253d0` is the last one where the crash doesn't occur
11:07:57FromDiscord<nocturn9x> the commit right after that already crashes
11:08:01FromDiscord<nocturn9x> _but reverting it changes nothing_
11:08:05FromDiscord<nocturn9x> I am so fucking confused rn
11:08:26FromDiscord<nnsee> it could be symptomatic, not the cause
11:08:29FromDiscord<nocturn9x> and all the tools I usually employ to debug this are utterly unhelpful
11:08:35FromDiscord<nnsee> ie that commit changed something in the memory layout that made the bug easy to trigger
11:08:50FromDiscord<nocturn9x> perhaps, but I've had datagen runs go on for days on end without problems
11:08:56FromDiscord<nocturn9x> after that commit they crash within minutes
11:09:10FromDiscord<nnsee> can you link the commit
11:09:13FromDiscord<nocturn9x> yes
11:10:54FromDiscord<nocturn9x> <https://git.nocturn9x.space/heimdall-engine/heimdall/commit/f1b7366235e49ea54dae9009804c2eea5d2ec289>
11:11:09FromDiscord<nocturn9x> the code has changed a lot since then
11:11:18FromDiscord<nocturn9x> I can give you a way to reproduce the issue, if you can build the project
11:15:48FromDiscord<nocturn9x> all you really need is nim and clang, then `make native DBG_SYMBOLS=1`, run `./bin/heimdall datagen --workers=16 --seed=5892452553848641876` and wait a few minutes (2-3 usually)
11:16:14FromDiscord<nocturn9x> it'll choke and die and segfault and there seems to be no way of catching this as an exception or anything
11:16:33FromDiscord<nocturn9x> I have inspected the near objects via GDB when it crashes
11:16:35FromDiscord<nocturn9x> they all look fine
11:16:39FromDiscord<nocturn9x> so I am truly at a loss here
11:18:09FromDiscord<nocturn9x> In reply to @nocturn9x "<https://git.nocturn9x.space/heimdall-engine/heimda": the thing is I know this is not the culprit because if I disable repetition detection, the code insta-crashes
11:18:15FromDiscord<nocturn9x> so wtf is going on 😭
11:56:03*ntat quit (Quit: leaving)
12:05:52*andy-turner_ joined #nim
13:00:07*ntat joined #nim
13:14:46*skippy8 joined #nim
15:42:32*skippy8 quit (Quit: WeeChat 4.4.2)
16:28:04*derpydoo joined #nim
17:33:58FromDiscord<Phil> I'm basically overhauling nim's smtp at the moment
17:34:01FromDiscord<Phil> (edit) "I'm basically overhauling nim's smtp ... at" added "module"
17:35:48FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#pasty=tnuaJWym
17:36:14FromDiscord<Phil> (edit) "https://play.nim-lang.org/#pasty=kcMLagPD" => "https://play.nim-lang.org/#pasty=vKRZqlQv"
17:36:46FromDiscord<Phil> (edit) "https://play.nim-lang.org/#pasty=EKRRcbnx" => "https://play.nim-lang.org/#pasty=TBAViXMV"
17:41:13FromDiscord<Robyn [She/Her]> In reply to @isofruit "I've got a proc": just overload it?
17:41:29FromDiscord<Phil> I don't want ot write about a thousand overloads, or do you mean just for the sender?
17:43:31FromDiscord<microwave3607> nimllo
17:43:35FromDiscord<microwave3607> I have a nimquestion
17:43:47FromDiscord<microwave3607> https://github.com/nim-lang/RFCs/issues/548
17:43:58FromDiscord<microwave3607> I didn't nimderstood this, was this nimplemented?
17:44:46FromDiscord<griffith1deadly> In reply to @microwave3607 "I didn't nimderstood this,": dont implemented
17:44:48FromDiscord<griffith1deadly> https://github.com/nim-lang/RFCs/issues/559
17:44:57FromDiscord<griffith1deadly> this is accepted rfc
17:45:02FromDiscord<griffith1deadly> that will be implemented
17:46:34FromDiscord<microwave3607> thanks
17:46:57FromDiscord<microwave3607> I'm waiting for years, it would be great
17:48:50FromDiscord<griffith1deadly> In reply to @microwave3607 "I'm waiting for years,": have you seen nimony?
17:49:34FromDiscord<microwave3607> In reply to @griffith1deadly "have you seen nimony?": no
17:49:57FromDiscord<griffith1deadly> In reply to @microwave3607 "no": https://github.com/nim-lang/nimony/blob/master/doc/design.md
17:50:05FromDiscord<griffith1deadly> :nim1:
17:51:51FromDiscord<microwave3607> In reply to @griffith1deadly "https://github.com/nim-lang/nimony/blob/master/doc/": :O
17:53:23FromDiscord<griffith1deadly> now we need waiting for years for nim 3 as full nim 2 replacement
17:57:47FromDiscord<microwave3607> I'll wait for sum times, for now.
17:57:56FromDiscord<microwave3607> I didn't learned much of the language
18:36:13FromDiscord<Robyn [She/Her]> In reply to @isofruit "I don't want ot": yep
18:46:28FromDiscord<Phil> Solved the problem differently, thus this issue disappeared ^^
19:00:55FromDiscord<ElegantBeef> In reply to @isofruit "I've got a proc": Wait what's teh actual issue?
19:01:57FromDiscord<ElegantBeef> Like you want all `Email`s to be `string | Email`?
19:02:31FromDiscord<ElegantBeef> Cause that's probably doable just doing `[T: distinct Email | String]`
19:02:36FromDiscord<ElegantBeef> (edit) "String]`" => "string]`"
19:02:44FromDiscord<Elegantbeef> ping
19:02:55FromDiscord<ElegantBeef> Pong
19:03:19FromDiscord<Elegantbeef> Still down Discord -\> Matrix need to selfhost bridge
19:16:15FromDiscord<Phil> In reply to @elegantbeef "Wait what's teh actual": The issue is mostly I want a generic and a default value
19:16:26FromDiscord<Phil> And wanting both at the same time is a problematic desire
19:17:02FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#pasty=mJelwEjW
19:18:37*skippy8 joined #nim
19:28:31FromDiscord<ElegantBeef> Jesus you hate yourself 😄
19:29:07FromDiscord<ElegantBeef> You want to mix and match all of these?
19:30:58FromDiscord<Phil> I don't, I'd like to give users the flexibility
19:31:42Amun-Rawhy not just add methods .add_cc, .add_bcc, .add_fooshmoo to the Message object itself?
19:31:47FromDiscord<Phil> I can live with forcing my users that if one is Email, they all must be.↵However, if possible I'd need want to enforce arbitrary limitations
19:32:22FromDiscord<Phil> Because the smtp module currently works with createMessage and I didn't want to refactor so hard that I include the builder pattern suddenly
19:45:15FromDiscord<ElegantBeef> seems like a `createMessage(subject, body, Message(additionalSenders: @["a", "b"].toEmails, ...))` would be the most sensible approach
19:45:28FromDiscord<ElegantBeef> Cause yea generics are poo poo heads
19:47:04FromDiscord<ElegantBeef> Even doing everything properly it doesn't compile https://play.nim-lang.org/#pasty=wNDignoY
19:56:19FromDiscord<microwave3607> what it means to write `A | B` on the type part
19:56:25FromDiscord<microwave3607> (edit) "part" => "part?"
20:00:40FromDiscord<Phil> It turns the proc into a generic (which means its a fancy template, aka a piece of code that gets copy pasted as it gets used for the specific type).
20:00:51FromDiscord<Phil> (edit) "It turns the proc into a generic ... (which" added "for those types"
20:01:58FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#pasty=fgxSeLZN
20:13:23*Ekho quit (Quit: CORE ERROR, SYSTEM HALTED.)
20:21:35*Ekho joined #nim
20:38:13FromDiscord<microwave3607> got it
20:38:15FromDiscord<microwave3607> thanks
20:51:34*andy-turner_ quit (Quit: Leaving)
21:09:26*ntat quit (Quit: leaving)
21:20:32FromDiscord<choltreppe> sent a code paste, see https://play.nim-lang.org/#pasty=wboRLNOv
22:18:07Amun-Rait does work
22:36:36FromDiscord<Elegantbeef> Oh shit bridge is back both ways?!
22:36:38FromDiscord<ElegantBeef> Ping
22:36:43FromDiscord<Elegantbeef> Indeed
22:36:53FromDiscord<Elegantbeef> `{.all.}` does not bring in fields @choltreppe
22:42:14Amun-Ragreen beef is back (the other one is purple in my client)
22:44:07FromDiscord<Elegantbeef> Green beef the best flavour
22:44:13Amun-Ra:>
23:01:21FromDiscord<choltreppe> In reply to @Amun-Ra "it does work": I did some tests, seems like it imports the private defs but not private fields of objects 😦
23:01:23*skippy8 quit (Quit: WeeChat 4.4.2)
23:01:57FromDiscord<Elegantbeef> If only someone said that
23:02:12FromDiscord<Elegantbeef> use `std/importutils` if you are attempting to break code
23:14:16FromDiscord<choltreppe> oh sorry missed that message. thanks
23:14:33FromDiscord<Elegantbeef> Inexcusable!
23:15:02FromDiscord<choltreppe> 😂
23:45:54*anddam quit (Ping timeout: 260 seconds)