<< 28-05-2024 >>

00:09:49FromDiscord<Robyn [She/Her]> In reply to @heysokam "global install by default": Eh... Idk, we'll just have to see what I'll do if I implement it then
00:10:04FromDiscord<Robyn [She/Her]> I'll definitely change what my plans are multiple times, anyway
00:19:18*SchweinDeBurg joined #nim
00:30:56*def- quit (Quit: -)
00:31:36*def- joined #nim
01:10:18*jmdaemon quit (Ping timeout: 268 seconds)
01:15:31*beholders_eye quit (Read error: Connection reset by peer)
01:21:29*beholders_eye joined #nim
01:26:57*jmdaemon joined #nim
01:32:31FromDiscord<Robyn [She/Her]> Can I do something like `{.push header: "header.h"}` or nah?
01:32:59FromDiscord<Robyn [She/Her]> I don't want to have to specify this for every proc I create but I'll do it if I have to
01:33:12*jmdaemon quit (Quit: ZNC 1.8.2 - https://znc.in)
01:33:31*jmdaemon joined #nim
01:40:32FromDiscord<demotomohiro> Yes you can
01:42:18FromDiscord<Robyn [She/Her]> Sweeet
01:43:32*SchweinDeBurg quit (Quit: WeeChat 4.4.0-dev)
01:43:41*SchweinDeBurg joined #nim
01:46:04*beholders_eye quit (Read error: Connection reset by peer)
01:49:09*jmdaemon quit (Ping timeout: 256 seconds)
01:51:47*beholders_eye joined #nim
01:53:40FromDiscord<Robyn [She/Her]> How am I supposed to wrap this? `TOML_EXTERN toml_table_t toml_parse(char conf, char errbuf, int errbufsz);`↵Does this mean that the function will modify the cstring I give to it?
01:53:40*beholders_eye quit (Read error: Connection reset by peer)
01:54:42FromDiscord<Elegantbeef> Probably just change where it points
01:55:46FromDiscord<Elegantbeef> Actually never mind
01:55:52FromDiscord<Elegantbeef> That's an `openArray[char]` in Nim
01:57:22FromDiscord<Robyn [She/Her]> Hm okay, thanks
01:59:05*beholders_eye joined #nim
01:59:27*SchweinDeBurg quit (Quit: WeeChat 4.4.0-dev)
02:04:15*FromDiscord quit (Remote host closed the connection)
02:04:28*FromDiscord joined #nim
02:13:08*beholders_eye quit (Read error: Connection reset by peer)
02:19:22*beholders_eye joined #nim
02:22:17*beholders_eye quit (Read error: Connection reset by peer)
02:27:43*beholders_eye joined #nim
02:55:31*def- quit (Quit: -)
02:56:25*def- joined #nim
03:03:34*krux02 quit (Remote host closed the connection)
03:11:15*beholders_eye quit (Ping timeout: 255 seconds)
03:45:56*SchweinDeBurg joined #nim
04:09:29FromDiscord<danielsokil> In reply to @chronos.vitaqua "It's also called `slurp`": Found the reference, lol↵https://forum.nim-lang.org/t/5168#32505
04:10:34FromDiscord<danielsokil> Ah it's also a built in function
04:14:46FromDiscord<odexine> In reply to @heysokam "if PMunch made it,": 🫑
04:21:25FromDiscord<danielsokil> paketwerk (;
04:31:13FromDiscord<huantian> peppa
04:33:51FromDiscord<saint.___.> peppa pig
05:12:35*rockcavera quit (Remote host closed the connection)
05:26:00*deadmarshal_ quit (Remote host closed the connection)
05:48:21*deadmarshal_ joined #nim
05:49:40FromDiscord<usawiniko> In reply to @chronos.vitaqua "It's also called `slurp`": i found this very funny when i first learned of it
05:49:41FromDiscord<usawiniko> i now
05:49:50FromDiscord<usawiniko> (edit) "i now ... " added "exclusively use it"
05:58:41FromDiscord<gogolxdong666> Is there any homomorphic encryption library in Nim?
06:00:12*pmp-p joined #nim
06:15:36*PMunch joined #nim
06:29:39*kenran joined #nim
07:03:00NimEventerNew Nimble package! libtray - Wrapper for dmikushin/tray, see https://github.com/neroist/libtray
07:03:51FromDiscord<Elegantbeef> Neroist really is just wrapping all the packages
07:14:43FromDiscord<zumi.dxy> Gotta wrap 'em all, like christmas presents
07:30:03FromDiscord<nnsee> he's beginning to feel like a wrap god?
07:32:29Amun-Ra;)
07:43:18*fredrikhr joined #nim
08:15:12FromDiscord<ieltan> Can someone explain what `sink openArray[T]` means plz
08:15:22FromDiscord<Elegantbeef> Nothing
08:15:53FromDiscord<Elegantbeef> https://nim-lang.org/docs/destructors.html#sink-parameters
08:16:42FromDiscord<Elegantbeef> `openArray[T]` cannot be moved as it's an operation that loses the origin
08:17:57FromDiscord<ieltan> yeah that makes sense, thanks 🙂
08:57:07*xet7 quit (Ping timeout: 268 seconds)
09:18:35*xet7 joined #nim
10:15:09*tanami quit (Ping timeout: 255 seconds)
10:16:00*tanami joined #nim
10:27:48*xet7 quit (Remote host closed the connection)
10:39:30*tanami quit (Ping timeout: 252 seconds)
10:40:43*krux02 joined #nim
10:41:00*kenran quit (Ping timeout: 260 seconds)
10:47:36FromDiscord<dissolved.girl> Apologies
11:01:22FromDiscord<abaer> does the nim http client compile on windows using its ssl library or whatever or is there a better library i could use?
11:01:24*tanami joined #nim
11:01:55FromDiscord<abaer> i just need to send and recieve requests to apis.
11:07:30FromDiscord<abaer> i would prefer something that uses libcurl...
11:09:31FromDiscord<nnsee> https://github.com/Araq/libcurl
11:26:40FromDiscord<abaer> Now I just need to write a few programs to play around with apis using nim to see if it works better than the other languages I've been using.
11:27:04FromDiscord<vortex> I'm trying to set up nimlangserver on nvim and it shows that the server is attached to the buffer, but I get no completions or highlights. Anyone?
11:28:47FromDiscord<arthurmiiengineering> is it normal to feel like your drowning a bit when your learning? i come from python and some of the syntax is hard to wrap the brain around :0
11:29:15FromDiscord<arthurmiiengineering> i think i just need to make some todo apps to get the hang of the basics
11:31:36FromDiscord<Phil> In reply to @arthurmiiengineering "is it normal to": I mean, that's just computers in general
11:31:41FromDiscord<Phil> There's always so much
11:31:49FromDiscord<Phil> The nice thing is that some stuff you just don't need to care about
11:31:51*ntat joined #nim
11:31:58FromDiscord<Phil> Focus on the things you need and expand slowly from there
11:32:44FromDiscord<abaer> Also if you started out with python... you're going to struggle with most other languages since python has a lot of lazy programming and syntax.
11:32:54FromDiscord<abaer> At least at first.
11:33:37FromDiscord<vortex> is it normal practice to program in nim without an lsp
11:33:41FromDiscord<vortex> is it normal practice to program in nim without an lsp?
11:37:08*def- quit (Quit: -)
11:37:31*def- joined #nim
11:38:00FromDiscord<tapeda> In reply to @vortex "is it normal practice": It's definitely slightly less masochistic than most other languages due to the clean syntax
11:41:55FromDiscord<vortex> I'm trying to get nimlangserver to work and it just doesn't
11:42:16*def- quit (Client Quit)
11:42:30*def- joined #nim
11:45:13FromDiscord<abaer> I don't get why the clean syntax is such a big deal since I can write clean code even in languages like perl.
11:53:18FromDiscord<arthurmiiengineering> In reply to @abaer "Also if you started": im not sure what you mean by that
12:02:05FromDiscord<exelotl> Nim's syntax is even more forgiving than Python tbh
12:02:32FromDiscord<abaer> Honestly I find python's syntax stupid and ugly.
12:04:17FromDiscord<exelotl> In reply to @vortex "is it normal practice": I'd say yes it's normal, Nimsuggest doesn't work that great for large projects and that will continue to be the case until NIR (or whatever the current solution for IC is these days) lands
12:04:20FromDiscord<odexine> syntax is a matter of preference noi
12:04:21FromDiscord<odexine> (edit) "noi" => "no"
12:04:44FromDiscord<abaer> curly brackets and semicolons ive found makes it a lot easier to read and work with the code.
12:05:05FromDiscord<odexine> personally i find them noisy
12:05:11FromDiscord<zumi.dxy> In reply to @exelotl "I'd say yes it's": i find it freaks out most often with invalid syntax as I'm typing
12:05:16FromDiscord<odexine> i prefer keywords in that sense
12:05:42PMunch@vortex, pretty normal to use it without LSP
12:05:44FromDiscord<abaer> i just never found python all that great of a language and the community is pretty obtuse.
12:05:46FromDiscord<zumi.dxy> i'm not finished typing, but let's try parsing anyway!↵oooops, sigsegv
12:05:52PMunchI mean I wrote NimLSP and even I don't use it that often :P
12:05:59FromDiscord<zumi.dxy> :(
12:06:00PMunchBut they should still work
12:06:10PMunchCan't speak to nimlangserver though
12:06:24FromDiscord<zumi.dxy> I've come to accept typing in python
12:06:35FromDiscord<zumi.dxy> if only because it meant more intellisense
12:07:40FromDiscord<zumi.dxy> i imagine the detractors are like "ooOooh but I like fighting type systems for no reason!"↵my reason for detraction was "i wish mypy also executed it"
12:07:51FromDiscord<vortex> I use LSPs mainly to jump to definitions real quick, isn' t that a handicap↵(<@709044657232936960_=50=4dunch=5b=49=52=43=5d>)
12:07:59FromDiscord<abaer> I tolerate it, but hate it.↵(@zumi.dxy)
12:08:13FromDiscord<arthurmiiengineering> In reply to @zumi.dxy "I've come to accept": its gotten much better better
12:08:16FromDiscord<arthurmiiengineering> (edit) removed "better"
12:08:26FromDiscord<arthurmiiengineering> like the type keyword now, and generics
12:08:44FromDiscord<abaer> It is still horrendous to work with.
12:08:57FromDiscord<arthurmiiengineering> In reply to @abaer "Honestly I find python's": ive heard this opinion before. to each their own
12:09:06FromDiscord<arthurmiiengineering> In reply to @abaer "It is still horrendous": how so?
12:09:12FromDiscord<abaer> Everyone I met that code a lot hate python.
12:09:15FromDiscord<zumi.dxy> I do like list comprehension
12:09:29FromDiscord<abaer> And I've coded in so many languages that python is just terrible.
12:09:35FromDiscord<arthurmiiengineering> In reply to @abaer "Everyone I met that": i code a lot and i dont hate python lol, but ok
12:09:53FromDiscord<arthurmiiengineering> i get having a preference though
12:09:59FromDiscord<abaer> Golang has much nicer syntax and is a lot more clean than any python code I've written.
12:10:00FromDiscord<odexine> i think python is down there in the ranking but personally a lot of the braces languages are too
12:10:09FromDiscord<vortex> how would you say nim handles those problems?(still getting my hands dirty with nim)
12:10:16FromDiscord<arthurmiiengineering> and knowing the language as well as i do, i certainly have gripes with it
12:10:26FromDiscord<odexine> to me, immediately go is under python merely for the "public is caps" thing
12:10:45FromDiscord<zumi.dxy> at least it's not python's "everything is public actually, haha"
12:10:52PMunch@vortex, jumping to definitions is nice. But after a while you get used to where stuff is
12:11:09FromDiscord<abaer> Go is what I wish more languages were like, but nooooo python and rust are better.
12:11:22FromDiscord<zumi.dxy> Sometimes I'd like to see what some function in some package is doing
12:11:28FromDiscord<abaer> There are so many better languages that don't get the love they deserve.
12:11:34FromDiscord<zumi.dxy> Not so easy when it's hidden under .nimble
12:11:51FromDiscord<zumi.dxy> In reply to @abaer "Go is what I": Go is uniquely offensive and I love it for that alone
12:12:20*def- quit (Quit: -)
12:12:24FromDiscord<zumi.dxy> Everyone seems to hate it
12:12:25FromDiscord<abaer> Perl is also better, but people give one look at it and were like nah it is ugly when it is a lot less obtuse and don't give a fuck about small peen energy. The documentation is also a lot better.
12:12:37FromDiscord<arthurmiiengineering> sent a long message, see https://pasty.ee/NFpcqcKH
12:12:51FromDiscord<arthurmiiengineering> In reply to @abaer "Go is what I": theyre different things entirely
12:12:57FromDiscord<zumi.dxy> Perl I admit I am not used to↵but I have used PHP, seems close enough right
12:13:12FromDiscord<zumi.dxy> Ruby I'm not quite interested in either
12:13:29FromDiscord<abaer> I love it and I've seen a lot of programs that were written in python ported to golang. Morons just complain about it being too verbose or something and usually it is the python fanboys.↵(@zumi.dxy)
12:13:52FromDiscord<arthurmiiengineering> "i wish everyone used hammers more often like us based and awesome-pilled blacksmiths, but those weirdo carpenters keep using planes instead"↵-said no good craftsman ever
12:13:58FromDiscord<abaer> I've dabbled in Crystal. It has potential. I want to code in it more.↵(@zumi.dxy)
12:14:02PMunchAnd here I'm enjoying Nim land feeling like Python is verbose..
12:14:05*def- joined #nim
12:14:25FromDiscord<zumi.dxy> I haven't written PHP in a long time and the moment I had to touch it again I felt like a caveman lmao↵Like↵Just jumping in and using "basic PHP" instead of the "proper PHP" I tried to write
12:14:31FromDiscord<odexine> how fun a war has broken out
12:14:43FromDiscord<arthurmiiengineering> In reply to @PMunch "And here I'm enjoying": it can be if you dont know what your doing, it took me a while to figure out what 'pythonic' code looks like lol
12:14:43FromDiscord<zumi.dxy> In reply to @arthurmiiengineering ""i wish everyone used": this
12:14:50PMunch@odexine, you grab the popcorn and I'll get the pitchforks?
12:14:56FromDiscord<odexine> my only experience with PHP is on legacy stuff so
12:15:02FromDiscord<odexine> In reply to @PMunch "<@259277943275126785>, you grab the": i dont think im interested in watching
12:15:04FromDiscord<zumi.dxy> I couldn't care any less what is and isn't pythonic lmao↵I just wanna coooooode
12:15:09FromDiscord<arthurmiiengineering> In reply to @PMunch "<@259277943275126785>, you grab the": can we do salt and butter?
12:15:23PMunchWhat's the alternative?
12:15:35FromDiscord<arthurmiiengineering> In reply to @zumi.dxy "I couldn't care any": oh i just meant in the sense of writing code that isnt verbose
12:15:55FromDiscord<abaer> I will die on this hill because python is a garbage language and is so bad that if rust and golang came out at the same time as that python... python wouldve never gotten as popular as it is now.↵(@odexine)
12:15:58FromDiscord<vortex> i don't mind python but the ecosystem around python tho. Horrible.
12:16:25FromDiscord<zumi.dxy> when did python "break even"? the 00s? 10s?
12:16:28FromDiscord<odexine> i aint gonna fight for python cuz i dont like it strongly enough
12:16:29PMunch@abaer, not a huge Python fan myself, but let's not get too carried away here
12:16:29FromDiscord<zumi.dxy> the AI craze?
12:16:43FromDiscord<zumi.dxy> In reply to @vortex "i don't mind python": come on, at least it's no npm or cargo :p
12:16:52FromDiscord<odexine> In reply to @zumi.dxy "when did python "break": prolly release of 3 or so, 3.3 3.4 around there
12:16:54Amun-Ratrue, let's not take drugs and irc at the same time
12:16:55FromDiscord<abaer> just a bunch of morons who cant do anything complicated and think theyre at the top of the food chain.
12:17:05FromDiscord<nnsee> In reply to @zumi.dxy "come on, at least": what's wrong with cargo
12:17:14FromDiscord<arthurmiiengineering> sent a code paste, see https://play.nim-lang.org/#pasty=QvhnBRLS
12:17:15FromDiscord<zumi.dxy> In reply to @nnsee "what's wrong with cargo": its package culture
12:17:38Amun-Raand the language cult
12:17:47FromDiscord<arthurmiiengineering> you can write ugly code in any language
12:17:51FromDiscord<abaer> rust has potential but the ego craze by the morons in the community has made me less interested in it.
12:17:54FromDiscord<zumi.dxy> packages consisting of 10 lines of code because nothing is that trivial in rust + static compile everything = 1gb build folder
12:17:59FromDiscord<vortex> jupyter 💀↵(@zumi.dxy)
12:18:25FromDiscord<zumi.dxy> rust has more of a valid reason at least for tiny packages admittedly
12:18:26FromDiscord<abaer> other languages are also better than other languages. i would rather code in javascript than python.↵(@arthurmiiengineering)
12:18:29FromDiscord<zumi.dxy> but still a problem
12:18:32FromDiscord<arthurmiiengineering> In reply to @abaer "I will die on": i would strongly disagree
12:18:47FromDiscord<odexine> In reply to @Amun-Ra "true, let's not take": "is irc a new drug or smth"
12:18:58FromDiscord<arthurmiiengineering> In reply to @abaer "other languages are also": then your a madman, enjoy parsing 0.00000005 into 5
12:18:59FromDiscord<zumi.dxy> IRC's an old drug :p
12:19:06FromDiscord<arthurmiiengineering> lol
12:19:08FromDiscord<abaer> of course cuz you came from python and struggling with nim.↵(@arthurmiiengineering)
12:19:09FromDiscord<zumi.dxy> all the kool kids get drunk on discord now
12:19:18FromDiscord<odexine> can we fucking not start insulting each other
12:19:23FromDiscord<vortex> here I disagree
12:19:31Amun-Raodexine: irc and 'new' in single sentence? ;)
12:19:33FromDiscord<zumi.dxy> also we're getting wayy off topic lmfao
12:19:38FromDiscord<arthurmiiengineering> In reply to @odexine "can we fucking not": yea idk why hes getting so salty
12:19:40FromDiscord<vortex> JS will always remain my most hated language
12:19:41PMunch@abaer, please behave. Throwing insults around for no reason won't get you anywhere
12:19:42FromDiscord<odexine> In reply to @Amun-Ra "<@259277943275126785>: irc and 'new'": yes
12:20:05FromDiscord<arthurmiiengineering> he heard python and decided today was the day to rant. like if you want a civil discussion about whats actually bad about python im all ears
12:20:08PMunchLet's all stay civil and get back to talking about Nim
12:20:12FromDiscord<arthurmiiengineering> i have my complaints trust me
12:20:26PMunchGo find a Python channel to discuss it in
12:20:31FromDiscord<abaer> i despise pythonists because it is like talking to a wall.↵(@arthurmiiengineering)
12:20:47FromDiscord<vortex> can I get some help setting up thiss lsp↵(<@709044657232936960_=50=4dunch=5b=49=52=43=5d>)
12:20:48FromDiscord<ieltan> sent a code paste, see https://play.nim-lang.org/#pasty=jQusxpXT
12:21:06FromDiscord<arthurmiiengineering> In reply to @PMunch "Go find a Python": i didnt want to discuss that here, i was asking about nim
12:21:16FromDiscord<odexine> In reply to @ieltan "does this copy the": len doesnt include a null term
12:21:17FromDiscord<abaer> can't admit python is a terrible language and allowed stupid people to "code" who dont even know basic building blocks.
12:21:29FromDiscord<ieltan> In reply to @odexine "len doesnt include a": gotcha
12:21:30FromDiscord<ieltan> thanks
12:21:34FromDiscord<Robyn [She/Her]> When making a parser combinator, how am I supposed to combine the parts of an AST together?
12:21:36FromDiscord<dissolved.girl> In reply to @abaer "i despise pythonists because": Labelling people by their preferred programming language is some next level gatekeeping new generation bigotry
12:21:37FromDiscord<abaer> anyways... back to coding.
12:21:44PMunchAgain @abaer, please refrain from insulting people or I'll have to ban you
12:21:47FromDiscord<arthurmiiengineering> In reply to @abaer "can't admit python is": tell you what, ping me in off topic and we can chat about it
12:21:51FromDiscord<zumi.dxy> In reply to @dissolved.girl "Labelling people by their": hear hear
12:22:13FromDiscord<Robyn [She/Her]> Like if I had `"Hello, World!"` how would I assemble that into a sentence?
12:22:17FromDiscord<odexine> In reply to @zumi.dxy "hear hear": here here
12:22:37FromDiscord<arthurmiiengineering> In reply to @dissolved.girl "Labelling people by their": you know about a next level new generation language? oh wait, your already here 😉
12:22:44FromDiscord<abaer> Oh right... I forgot being honest and blunt is gatekeeping and bigotry.↵(@dissolved.girl)
12:22:46PMunch@Robyn, not exactly sure what you're trying to do here
12:22:59FromDiscord<arthurmiiengineering> In reply to @abaer "Oh right... I forgot": dude, offtopic
12:23:14FromDiscord<arthurmiiengineering> we can chat in offtopic, this is a nim focused chat
12:23:28FromDiscord<Robyn [She/Her]> In reply to @PMunch "@Robyn, not exactly sure": Honestly I'm just trying to figure out the basics of a parser combinator
12:23:41PMunchTo be clear, offending people won't be tolerated in the offtopic channel either..
12:23:42FromDiscord<odexine> In reply to @abaer "Oh right... I forgot": your honesty is unrelated to the bigotry, hope this helps 💜
12:23:56FromDiscord<Robyn [She/Her]> Me, asking for support as this is going down: "This is fine"
12:24:03FromDiscord<arthurmiiengineering> In reply to @chronos.vitaqua "Me, asking for support": sorry
12:24:08FromDiscord<ieltan> In reply to @chronos.vitaqua "Me, asking for support": same lmao
12:24:12FromDiscord<abaer> Don't care. Go back with struggling with Nim or learn how to actually program and learn basic blocks which btw would let you code in any language you pick up.↵(@arthurmiiengineering)
12:24:30FromDiscord<ieltan> I am impervious to all those silly coding war drama
12:24:43FromDiscord<zumi.dxy> i'm kinda chill actually
12:24:45FromDiscord<arthurmiiengineering> In reply to @abaer "Don't care. Go back": what? bros acting like i only know python cause thats what im most used too lol
12:24:59FromDiscord<abaer> Being a jerk and being a dick rider because someone has strong opinions just makes you just an asshole. \<3↵(@odexine)
12:25:22FromDiscord<abaer> Sure sounds like it.↵(@arthurmiiengineering)
12:25:39PMunch@abaer, final warning.. Behave
12:26:05PMunchAnyways, @Robyn, parser combinators
12:26:36FromDiscord<abaer> I don't care about getting banned. If you guys are going to be assholes because I shitted on python and pythonists... I would rather be banned.
12:26:41FromDiscord<odexine> In reply to @abaer "Being a jerk and": idk when you started talking to a mirror
12:26:55FromDiscord<arthurmiiengineering> In reply to @abaer "I don't care about": dude, noone is trying to be rude to you
12:27:01FromDiscord<arthurmiiengineering> your the only one being rude
12:27:02FromDiscord<abaer> I'm not a narc like you are.↵(@odexine)
12:27:12FromDiscord<odexine> you're still talking to that mirror?
12:27:15FromDiscord<arthurmiiengineering> and i asked you 3 times to just have a chat with me in offtopic
12:27:25FromDiscord<abaer> learn proper english.↵(@arthurmiiengineering)
12:27:45PMunch@abaer, you don't have to agree with Python people, but there's no point in randomly attacking people or using course language for no apparent reason.
12:28:15FromDiscord<arthurmiiengineering> In reply to @abaer "learn proper english. (<@894599525329678366>)": i know you didnt say that and then not capitalize the first letter of that sentencea
12:28:18PMunch*swing*
12:28:19FromDiscord<arthurmiiengineering> (edit) "sentencea" => "sentence"
12:28:21FromDiscord<dissolved.girl> In reply to @abaer "learn proper english. (<@894599525329678366>)": Says the guy who doesn't know that the past tense of _shit_ is _shat_
12:28:38PMunchI banned them, so no point in replying to them
12:28:42FromDiscord<arthurmiiengineering> In reply to @dissolved.girl "Says the guy who": still cracks me up that word has so many variations
12:28:46FromDiscord<arthurmiiengineering> XD
12:28:52FromDiscord<ieltan> Welp
12:29:04FromDiscord<ieltan> lets change the subject... for example
12:29:09FromDiscord<arthurmiiengineering> In reply to @PMunch "I banned them, so": awww man 🥺 i get it i do, thats just not the way to have that argument but
12:29:19PMunchPARSER COMBINATORS
12:29:20FromDiscord<arthurmiiengineering> In reply to @ieltan "lets change the subject...": im all ears
12:29:45FromDiscord<ieltan> I am currently writting inplace versions of common functions from strutils, sequtils
12:29:46PMunch@arthurmiiengineering, well we only have so much time as moderators. I'm at work and can't babysit this channel to see if it got properly out of hand
12:29:46FromDiscord<odexine> In reply to @arthurmiiengineering "im all ears": biblically accurate human
12:30:08FromDiscord<ieltan> the goal is to reduce excessive allocation by using `dup`
12:30:12PMunchTried to tell them multiple times, but they persisted in being an asshat.
12:30:15FromDiscord<arthurmiiengineering> In reply to @PMunch "<@894599525329678366>, well we only": no your fine, i meant him
12:30:18PMunchSo temporary ban it is
12:30:26PMunchOh right :P
12:30:36FromDiscord<ieltan> and also stealing forgotten yet useful RFCs code 😉
12:30:41FromDiscord<arthurmiiengineering> rhetoric matters, you need to be kind in the way you disagree with others
12:30:47FromDiscord<dissolved.girl> In reply to @odexine "biblically accurate human": Underrated joke
12:30:53PMunch@ieltan, like zero-functional?
12:31:00FromDiscord<arthurmiiengineering> In reply to @odexine "biblically accurate human": lol what?
12:31:11FromDiscord<dissolved.girl> You're all ears
12:31:11FromDiscord<arthurmiiengineering> angels are all eyes 😏
12:31:15FromDiscord<odexine> biblically accurate angels iirc look like theyre all eyes
12:31:21FromDiscord<odexine> so if you say youre all ears
12:31:22PMunchHaha, I thought it was the angels who where all ears, eyes, or wings or whatever?
12:31:28FromDiscord<ieltan> In reply to @PMunch "<@256520101015060480>, like zero-functional?": no no not like zero functional... it's all macro over there
12:31:31PMunchHumans just got to live to 600
12:31:37FromDiscord<arthurmiiengineering> In reply to @PMunch "Haha, I thought it": yea thats what confused me
12:31:38FromDiscord<ieltan> I want to be KISS
12:32:17FromDiscord<nnsee> the band?
12:32:19FromDiscord<ieltan> also i was inspired by a forgotten RFC aiming to make `echo` less costly
12:32:27FromDiscord<arthurmiiengineering> In reply to @PMunch "Humans just got to": oldest was actually 967 years i think. which is insane, like imagine what you would see in that time. anyways, off topic again
12:32:28FromDiscord<odexine> the macro part is to collapse operations into one inplace operation no?
12:32:52FromDiscord<ieltan> better sequtils already exists anyways
12:32:56FromDiscord<ieltan> it's called slicerator
12:33:11FromDiscord<zumi.dxy> inplace vs inline 🤔
12:33:23FromDiscord<ieltan> what i do is inplace everything
12:34:04FromDiscord<odexine> In reply to @zumi.dxy "inplace vs inline 🤔": brain cooked forgive me
12:34:27FromDiscord<ieltan> In reply to @nnsee "the band?": keep it stupid simple
12:39:05FromDiscord<nnsee> (i know)
12:41:26FromDiscord<marioboi3112> which version of ECMA script can nim compile into>?
12:42:30Amun-Raiirc es6
12:43:04FromDiscord<zumi.dxy> anyone tried a nim2js -> babel combo
12:43:21FromDiscord<odexine> i feel like ive heard someone try it already
12:43:40FromDiscord<zumi.dxy> like↵what if you're sick enough to make a nim to jscript compiler↵not javascript↵microsoft jscript specifically
12:43:57FromDiscord<nnsee> no but i ran Nim (js) on the JVM using Graal
12:49:14FromDiscord<pmunch> In reply to @chronos.vitaqua "Like if I had": Still no idea what you're struggling with..
12:52:58FromDiscord<marioboi3112> In reply to @Amun-Ra "iirc es6": damn
13:01:35Amun-Ratoo new?
13:26:09FromDiscord<Robyn [She/Her]> In reply to @pmunch "Still no idea what": Sorry aha, I'm not sure how to formulate it tbh...
13:27:03FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "iirc es6": I thought Nim compiled to a very old JS version
13:28:21FromDiscord<odexine> i thought it was es6
13:28:26FromDiscord<odexine> fuck, i mean es3
13:28:34FromDiscord<odexine> brain legit cooked yall
13:30:25FromDiscord<Robyn [She/Her]> In reply to @odexine "fuck, i mean es3": Yeah
13:31:05FromDiscord<marioboi3112> In reply to @Amun-Ra "too new?": lmao no i didnt think it would be that outdated
13:31:53FromDiscord<odexine> oh brother
13:31:59FromDiscord<odexine> dont read what i just said...
13:32:36FromDiscord<marioboi3112> In reply to @odexine "i thought it was": -_-
13:32:49FromDiscord<marioboi3112> In reply to @odexine "dont read what i": XD thats exactly what im doin rn
13:37:14*ntat quit (Quit: Leaving)
13:56:56FromDiscord<marioboi3112> but ig its irrelevant
13:59:47*PMunch quit (Quit: Leaving)
14:00:57FromDiscord<pmunch> Let me guess, there is no `nimsuggest/nimsuggest.nim` in `/usr/lib/nim`?
14:01:11FromDiscord<pmunch> I would not install Nim through pacman, install choosenim instead \:)
14:01:26FromDiscord<griffith1deadly> Reply with unknown content
14:01:29FromDiscord<griffith1deadly> funny
14:03:52FromDiscord<vortex> i did, but then I get this \:↵`Client nimls quit with exit code 1 and signal 0. Check log for errors: /home/vorrtt3x/.local/state/nvim/lsp.log`
14:05:05FromDiscord<vortex> `"cannot find file: /home/<uname>/x.nim\n"` this is the log
14:06:48FromDiscord<vortex> oh wait works when I create the file first
14:06:54*def- quit (Quit: -)
14:06:56FromDiscord<Robyn [She/Her]> In reply to @pmunch "I would not install": I wouldn't use choosenim either
14:07:12FromDiscord<vortex> source build?↵(@Robyn [She/Her])
14:07:13FromDiscord<Robyn [She/Her]> Good tool but proxy binaries fuck up the lsp
14:07:24*Guest56 joined #nim
14:07:43FromDiscord<Robyn [She/Her]> In reply to @vortex "source build? (<@524288464422830095>)": Yeah I'd personally either build from source or grab a prebuilt binary
14:08:08FromDiscord<nnsee> you don't need to use the proxy exe
14:08:23FromDiscord<nnsee> choosenim still extracts the binaries to a location on disk and you can call those directly
14:08:53FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=dvkhmxFg
14:09:26FromDiscord<nnsee> just add that to your `$PATH` and you're gucci
14:13:37*Guest56 quit (Quit: Client closed)
14:18:56*rockcavera joined #nim
14:23:46*def- joined #nim
14:28:54FromDiscord<Robyn [She/Her]> Oh that is true tbf
14:32:11FromDiscord<Robyn [She/Her]> Doesn't work on arm last time I checked anyway
14:40:24FromDiscord<marioboi3112> @pmp_p sorry for the ping but do you have any instructions on building nim-panda3d?
14:55:45FromDiscord<pmp_p> In reply to @marioboi3112 "<@334096250897170433> sorry for the": i made a CI for wasi
14:56:55FromDiscord<pmp_p> but not very usefull unless you want to display in terminal ( via IIP eg iterm2 / xterm.js etc ) with software rendering
14:58:08FromDiscord<pmp_p> i did not try native build at all 😄
15:11:13*ntat joined #nim
15:11:52FromDiscord<pmp_p> In reply to @marioboi3112 "<@334096250897170433> sorry for the": for gcc native go https://discord.gg/UyepRMm and ask rdb on help channel. i only use clang and mostly wasm targets emscripten/wasi
15:11:57FromDiscord<hamachi> does nim have an IRC?
15:12:09FromDiscord<pmp_p> yeah on libera
15:12:30FromDiscord<hamachi> gotcha, thanks!
15:12:33strogon14it's just a bridge to this matrix/discord
15:12:33pmp-pyw
15:13:10strogon14and not very well implemented, tbh
15:13:28FromDiscord<hamachi> well, what's wrong with it?
15:14:26strogon14a) every msg comes from the bot user and the real nicj is prefixed to the msg
15:14:46FromDiscord<nnsee> that's just how irc bridges work without server side support
15:14:47strogon14b) longer messages are turned into linksto play.nimlang.org
15:15:09strogon14*play.nim-lang.org
15:16:08FromDiscord<hamachi> alright, thanks
15:16:37strogon14b) edits to messges show up as often unreadable messages just showing the difference
15:16:48strogon14or c) :)
15:16:53FromDiscord<odexine> In reply to @strogon14 "b) longer messages are": this was a commonly requested feature
15:16:55FromDiscord<odexine> In reply to @strogon14 "b) edits to messges": this as well
15:17:28strogon14they make this channel very hard to read/follow in IRC, though.
15:18:13FromDiscord<odexine> dunno, the old default was resending the whole message and everyone was complaining about it so
15:18:20strogon14I should switch to Matrix again,but I need to get an new matrix account, because my home server had to block access to matrix.org
15:18:33FromDiscord<nnsee> why did they have to block access?
15:19:51strogon14because if a user from matrix.org joins a channel with high traffix, all that traffic gets cached on the custom matrix server and blows up the database.
15:21:02strogon14apparently there's no channel whitelist feature in th eserver software.
15:21:35FromDiscord<basilajith> Is there an `error` type (like in Golang) in Nim?
15:21:58FromDiscord<Robyn [She/Her]> In reply to @basilajith "Is there an `error`": As in, results?
15:22:16FromDiscord<Robyn [She/Her]> There's no built-in support but there is `nim-results` as a package you can download?
15:22:27FromDiscord<Robyn [She/Her]> There's also `std/options` in the standard library
15:26:23FromDiscord<basilajith> Oh, okay.
15:27:02FromDiscord<pmunch> In reply to @chronos.vitaqua "Good tool but proxy": Really? Seems to work for me
15:27:35FromDiscord<pmunch> And how does proxy binaries play into this? NimLSP is its own program
15:28:34*def- quit (Quit: -)
15:29:04*def- joined #nim
15:29:06FromDiscord<pmunch> In reply to @odexine "dunno, the old default": Yeah the current system is way better than it was
15:29:28FromDiscord<pmunch> The long message -> playground link could be better though
15:30:58FromDiscord<Robyn [She/Her]> In reply to @pmunch "And how does proxy": It's an issue with the lang server killing the spawned nimsuggest process, but with choosenim, it kills the proxy process and not nimsuggest itself
15:31:14FromDiscord<Robyn [She/Her]> The behaviour is pretty painful and causes a lot of orphaned processes
15:32:04FromDiscord<nnsee> tbf this seems like a relatively easy fix
15:32:10FromDiscord<Robyn [She/Her]> https://github.com/nim-lang/langserver/issues/184#issuecomment-1969415140
15:32:32FromDiscord<pmunch> In reply to @chronos.vitaqua "It's an issue with": But NimLSP doesn't create or manage nimsuggest processes..
15:33:44*def- quit (Client Quit)
15:34:06*def- joined #nim
15:36:09FromDiscord<Robyn [She/Her]> In reply to @pmunch "But NimLSP doesn't create": I'm talking about the lang server here
15:36:15FromDiscord<Robyn [She/Her]> nimlangserver
15:36:37FromDiscord<pmunch> Yes, but we where talking about NimLSP
15:36:45FromDiscord<Robyn [She/Her]> Wait where?
15:36:50FromDiscord<pmunch> I recommend choosenim for NimLSP
15:36:57FromDiscord<Robyn [She/Her]> Oooh okay
15:37:27FromDiscord<Robyn [She/Her]> Sorry then, I didn't realise
15:37:39FromDiscord<Robyn [She/Her]> In reply to @pmunch "Let me guess, there": Is it possible that it was cut out?
15:37:48FromDiscord<Robyn [She/Her]> Since I can't see where it was mentioned
15:49:33*def- quit (Quit: -)
15:49:50*def- joined #nim
15:53:39strogon14tbh, choosenim is a mess: unmaintained, insecure, missing support for major architectures (aarch64) and building from source is broken.
15:54:45FromDiscord<odexine> idk why it hasnt been taken into the official nim repos (iirc)
15:59:52NimEventerNew thread by CardealRusso: Is taking too long to fully adapt to cosmopolitan, see https://forum.nim-lang.org/t/11663
16:02:51FromDiscord<Robyn [She/Her]> In reply to @NimEventer "New thread by CardealRusso:": Is the person who posted this in the server?
16:16:00NimEventerNew thread by davidvfx07: Wrapping ESP-IDF for embedded - Futhark - PlatformIO, see https://forum.nim-lang.org/t/11664
16:30:58*def- quit (Quit: -)
16:31:15*def- joined #nim
16:33:19FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=RxdZEXFf I can't figure out the issue with this code, why am I getting `/data/data/com.termux/files/home/combinator/main.nim(42, 27) Error: type mismatch: got 'string' for 'ParseResult.err("Couldn\'t find a word in the given input!")' but expected 'ParseResult = Result[tuple[ast: AstNode, rest: string], system.string]'` :/
16:35:21*mahlon quit (Ping timeout: 252 seconds)
16:45:59strogon14fwiw, I managed to fix the choosenim Arch Linux AUR package to build it from source. But you need to the choosenim-bin or nim package installd to build it, so, yeah...
16:46:02strogon14https://aur.archlinux.org/packages/choosenim
16:49:58*SchweinDeBurg quit (Quit: WeeChat 4.4.0-dev)
16:51:47*zgasma joined #nim
17:01:39*def- quit (Quit: -)
17:01:56*def- joined #nim
17:09:48*mahlon joined #nim
17:17:59*strogon14 left #nim (Und tschüss!)
17:18:25FromDiscord<Robyn [She/Her]> In reply to @chronos.vitaqua "https://play.nim-lang.org/#pasty=RxdZEXFf I can't f": So lost rip
17:22:44*om3ga joined #nim
17:29:25FromDiscord<Robyn [She/Her]> Oh
17:29:26FromDiscord<Robyn [She/Her]> `https://play.nim-lang.org/#pasty=yCCnMlxW`
17:29:32FromDiscord<Robyn [She/Her]> (edit) "`https://play.nim-lang.org/#pasty=yCCnMlxW`" => "https://play.nim-lang.org/#pasty=yCCnMlxW"
17:29:44FromDiscord<Robyn [She/Her]> Why does this work and my previous code didn't? I don't get it
17:31:10FromDiscord<nnsee> try naming `err` differently (the proc for example)
17:31:22FromDiscord<nnsee> maybe the parser gets confused about which err you're referring to
17:31:43FromDiscord<nnsee> or template, even, not proc
17:35:59FromDiscord<Robyn [She/Her]> Aaah that could make sense
17:38:25FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=whLzcFtp and now it's this
17:38:28FromDiscord<Robyn [She/Her]> Pain
17:47:08FromDiscord<Robyn [She/Her]> I'll just use the results package
17:57:35*def- quit (Quit: -)
17:57:47*def- joined #nim
18:05:34*xet7 joined #nim
18:32:13*def- quit (Quit: -)
18:32:41*def- joined #nim
18:40:14FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=FvcFWnHb aha... What-
18:40:49FromDiscord<Robyn [She/Her]> `results` is spitting out a bunch of text about side-effects and then refuses to compile
18:51:02*disso_pch joined #nim
18:53:13*Amun-Ra has never used one
18:53:23*disso-peach quit (Ping timeout: 264 seconds)
18:55:28FromDiscord<Robyn [She/Her]> I just changed all `func`s with `proc`s in `results.nim` lol
18:55:28FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=vrZRuQAI
18:55:32FromDiscord<Robyn [She/Her]> But it works!
19:27:25Amun-Rahmm… there were no funcs in the test case
19:28:49FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "hmm… there were no": What do you mean?
19:29:20*beholders_eye joined #nim
19:30:14FromDiscord<Robyn [She/Her]> Lovely code with a million errors :P↵https://play.nim-lang.org/#pasty=klMjGNBq
19:30:19Amun-RaI mean the FvcFWnHb test case
19:30:39Amun-Raor rather should I say I have that test case in mind
19:31:19FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "I mean the FvcFWnHb": The what-
19:31:41FromDiscord<Robyn [She/Her]> My brain is barely functioning, sorry Amun-Ra
19:31:52FromDiscord<mikaelashipha> Hey guys, is there proper maintained tui library for nim?
19:33:07FromDiscord<Robyn [She/Her]> In reply to @mikaelashipha "Hey guys, is there": You could look into `illwill`?
19:41:18FromDiscord<Elegantbeef> Also ansiwave(or is it nimwave)
19:51:34FromDiscord<Robyn [She/Her]> I think it's nim wave
19:56:23*jmdaemon joined #nim
20:17:04*ntat quit (Quit: Leaving)
20:17:50*fredrikhr quit (Quit: Disconnecting)
20:27:53*def- quit (Quit: -)
20:28:39*def- joined #nim
20:31:02FromDiscord<vortex> sent a code paste, see https://play.nim-lang.org/#pasty=UsSfUyhm
20:31:54FromDiscord<Elegantbeef> Nim uses the symbol defined in the closest scope
20:32:29FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=JbVYGFtS
20:34:21FromDiscord<vortex> So from line 3 here `nprinted` is the one defined in the local scope right?
20:34:28FromDiscord<Elegantbeef> Yes
20:35:23FromDiscord<vortex> sent a code paste, see https://play.nim-lang.org/#pasty=ZgPPnxNE
20:35:57FromDiscord<Elegantbeef> `var int` requires a mutable parameter passed
20:37:21FromDiscord<vortex> ah ok thanks!
20:42:08FromDiscord<vortex> I'm struggling to understand why all procedures' returns can't be implicitly discardable? In what case would we need the alternative?
20:42:22FromDiscord<Elegantbeef> Nim is an expressionful language
20:42:44FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=jxLkqoCA
20:42:44FromDiscord<Elegantbeef> Is totally valid
20:43:12FromDiscord<Robyn [She/Her]> I should look at the code you used to generate `init` procs, `Beef` :p
20:43:23FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=mOYQWnsQ
20:43:46FromDiscord<Elegantbeef> `Beef`?
20:44:35FromDiscord<Robyn [She/Her]> Oops
20:44:37FromDiscord<Robyn [She/Her]> Brain go blep
20:45:54FromDiscord<vortex> Just because you could there's a way to do that? I'm sorry but i'm not understanding the reason why more expresion is something one would desire?
20:46:25FromDiscord<Elegantbeef> Expressionful languages give you the ability to make every statement an expression. Which gives you definitive assignment
20:46:47FromDiscord<Elegantbeef> In the above case we know `x` is assigned in all branches in a nice form
20:48:23FromDiscord<vortex> how does that answer my question about discarding returns?
20:48:48FromDiscord<Elegantbeef> Cause if expressions can be discard it's ambiguous whether you wanted the side effects or the value from a proc
20:49:39FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=TkRejdyf
20:50:20FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=xNgRxgbI
20:50:43FromDiscord<Elegantbeef> Discard is lovely as it's an explicit operation to say "I do not care about this value" whilst enabling expressions
20:51:54FromDiscord<Robyn [She/Her]> Hey Beef, in a type section that uses a statement list, do I need to worry about generics such as `T` or no?
20:52:09FromDiscord<Elegantbeef> iirc, yes
20:53:02FromDiscord<Robyn [She/Her]> Damn it, how would I check if a generic param is actually used then? I don't want unnecessary generics
20:53:30FromDiscord<Robyn [She/Her]> I don't have my PC with me so I'm doing this on my phone
20:53:31FromDiscord<Elegantbeef> I mean you need the generic param on all your procs
20:53:43FromDiscord<Elegantbeef> Like `None[T].init()` is needed
20:54:03FromDiscord<Robyn [She/Her]> I do? Shit yeah
20:54:09FromDiscord<Robyn [She/Her]> Uuugh...
20:54:15FromDiscord<Robyn [She/Her]> Oh well, simplifies this a bit I guess
20:56:59FromDiscord<vortex> sent a code paste, see https://play.nim-lang.org/#pasty=tUWTudIP
20:56:59FromDiscord<Elegantbeef> Discardable is not a good pragma to use
20:57:00FromDiscord<Elegantbeef> It's only used in some cases
20:57:11*def- quit (Quit: -)
20:58:31FromDiscord<Elegantbeef> Languages that are expressionful do not do well with discardable expressions imo
21:03:33*def- joined #nim
21:04:53*jmdaemon quit (Ping timeout: 240 seconds)
21:06:11FromDiscord<vortex> sent a code paste, see https://play.nim-lang.org/#pasty=ZIbOybpn
21:06:26FromDiscord<Elegantbeef> Well no `discard doThing()`
21:07:55FromDiscord<vortex> so you wanted x to be assigned 30?
21:08:19FromDiscord<Elegantbeef> In a statement if the last statement has a value it is an expression
21:09:16FromDiscord<vortex> if we discard the last one, doesn't the one before that becomes an expression?
21:09:21FromDiscord<Elegantbeef> Nope
21:09:25FromDiscord<Elegantbeef> Cause it's not the last statement
21:10:54FromDiscord<vortex> ok lemme test on that snippet a bit maybe my doubts will be cleared
21:10:56FromDiscord<vortex> thanks
21:13:36FromDiscord<vortex> ok brilliant, i've understood it thank you so much
21:13:41FromDiscord<Robyn [She/Her]> I'm pretty sure I'm gonna run into the issue with the procs not being instantiated but I guess we'll see
21:13:56FromDiscord<Elegantbeef> Yep probably robyn 😄
21:14:26FromDiscord<vortex> i get the appeal of discard now 😄
21:14:43FromDiscord<Robyn [She/Her]> I'm not sure how I'm gonna work around it either
21:15:27FromDiscord<Elegantbeef> You cannot with the type section pragma 😄
21:31:54FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=XGvQoQuT yep Beef, still an issue :/
21:32:15*def- quit (Quit: -)
21:32:16FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "You cannot with the": What if I generate an empty type? :p
21:32:33FromDiscord<Elegantbeef> That could actually work
21:32:40*def- joined #nim
21:32:41FromDiscord<Elegantbeef> Hacky as fuck, but could work
21:32:46FromDiscord<Robyn [She/Her]> Yeah lmao
21:32:55FromDiscord<Robyn [She/Her]> I don't think there's any other way to do it, though
21:33:06FromDiscord<Robyn [She/Her]> Also people would have to export any init procs themselves too
21:33:53FromDiscord<Elegantbeef> This is why you export everything!
21:34:08FromDiscord<Robyn [She/Her]> You can't in type sections
21:34:16FromDiscord<Robyn [She/Her]> They're not top-level
21:34:21FromDiscord<Elegantbeef> You can
21:34:24FromDiscord<Robyn [She/Her]> For the procs
21:34:26FromDiscord<Elegantbeef> Just not in generics
21:34:41FromDiscord<Robyn [She/Her]> Oh didn't know that
21:34:50FromDiscord<Robyn [She/Her]> Either way, I'm just making it do whatever the user does
21:34:55FromDiscord<Robyn [She/Her]> If they export it, it'll get exported
21:34:58FromDiscord<Robyn [She/Her]> Otherwise it's a no
21:35:16FromDiscord<Robyn [She/Her]> I'm assuming Nim stdlib has a way for me to generate an identifier, right?
21:35:35FromDiscord<Robyn [She/Her]> Will it just automatically do it for me? Or nah?
21:36:06FromDiscord<Elegantbeef> `genSym`
21:36:49FromDiscord<Robyn [She/Her]> Thanks!
21:37:30FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=LsoWOfso
21:37:40FromDiscord<Elegantbeef> That's what constructors.default generates
21:38:49FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Ah yes it does": So my macro works with constructors?
21:38:57FromDiscord<Elegantbeef> No
21:39:08FromDiscord<Robyn [She/Her]> Hm
21:39:09FromDiscord<Elegantbeef> I'm showing what constructors generates
21:39:15FromDiscord<Robyn [She/Her]> Aaah
21:43:10*jmdaemon joined #nim
21:49:44*jmdaemon quit (Ping timeout: 260 seconds)
21:57:17*jmdaemon joined #nim
21:57:17*beholders_eye quit (Read error: Connection reset by peer)
22:02:52*beholders_eye joined #nim
22:06:14*def- quit (Quit: -)
22:07:51*def- joined #nim
22:24:40*pmp-p quit (Quit: No Ping reply in 180 seconds.)
22:25:12*xet7 quit (Ping timeout: 260 seconds)
22:25:47*jmdaemon quit (Ping timeout: 264 seconds)
22:26:18*pmp-p joined #nim
22:33:35FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=jdhRDEpY hey Beef, your expertise is required :P↵I'm getting an error from micros saying that the object is out of bounds, and the line it gives me (232) seems completely unrelated
22:34:35FromDiscord<Robyn [She/Her]> Oh wait
22:36:19FromDiscord<Robyn [She/Her]> Yeah I'm lost nvm
22:36:31FromDiscord<Elegantbeef> What's the error?
22:38:01*xet7 joined #nim
22:38:09FromDiscord<Robyn [She/Her]> I fixed it
22:38:15FromDiscord<Robyn [She/Her]> Now I got a different error :D
22:38:22FromDiscord<Robyn [She/Her]> Illformed AST
22:38:25FromDiscord<Robyn [She/Her]> I can fix it tho
22:40:29*beholders_eye quit (Read error: Connection reset by peer)
22:46:16*beholders_eye joined #nim
22:50:32FromDiscord<Robyn [She/Her]> I can not, in fact, fix it: https://play.nim-lang.org/#pasty=FgEoNPwi
22:50:51FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=yfMOkSFY
22:51:15FromDiscord<Robyn [She/Her]> I'm struggling with figuring out how to do the thing I did before, where I set a type's body to another type
22:51:24FromDiscord<Robyn [She/Her]> (edit) "another type" => "a statement list"
22:52:48FromDiscord<Elegantbeef> `= object` is wrong
22:53:43FromDiscord<Robyn [She/Her]> Oh wait, do I need to override the object type completely?
23:19:12FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=prXHoAfo
23:19:14FromDiscord<Robyn [She/Her]> New error... Yay
23:19:22FromDiscord<Robyn [She/Her]> I'm so, so close though
23:22:48FromDiscord<Robyn [She/Her]> Beef, any idea?
23:23:04FromDiscord<Robyn [She/Her]> I need the macro mage to assist the macro novice xD
23:23:20FromDiscord<Elegantbeef> Probably an issue with not using `ident` for your generic parameters
23:23:57FromDiscord<Robyn [She/Her]> Oh that's an issue? :/
23:25:28FromDiscord<Robyn [She/Her]> I wanted to also carry across stuff like `T: object`
23:26:19FromDiscord<Elegantbeef> Yea you just need to desym it
23:27:27FromDiscord<Robyn [She/Her]> How do I do that...?-
23:27:39FromDiscord<Elegantbeef> copy the tree and replace the `sym` with a `ident`
23:27:49FromDiscord<Robyn [She/Her]> It's still using `ident`s when checking the tree
23:27:52FromDiscord<Robyn [She/Her]> It's an untyped macro
23:27:59FromDiscord<Elegantbeef> Well then print the tree out
23:28:05FromDiscord<Robyn [She/Her]> I am
23:28:10FromDiscord<Robyn [She/Her]> Do you want me to post it?
23:28:48FromDiscord<Elegantbeef> SUre
23:31:13FromDiscord<Robyn [She/Her]> Code: https://play.nim-lang.org/#pasty=vUHpdnzM↵Output: https://pasty.ee/SbPCdHXX
23:34:11*beholders_eye quit (Ping timeout: 264 seconds)
23:40:48*xet7 quit (Ping timeout: 260 seconds)
23:43:55FromDiscord<Robyn [She/Her]> Imagine understanding macros
23:44:02FromDiscord<Robyn [She/Her]> This feels like it'll be extremely fragile
23:51:16FromDiscord<Elegantbeef> Ya think
23:53:23FromDiscord<Robyn [She/Her]> XD
23:53:34FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Ya think": But yeah I have no clue
23:54:02*xet7 joined #nim
23:54:45FromDiscord<Elegantbeef> Same
23:55:01FromDiscord<Elegantbeef> Use a debug compiler and compare the two types is all I can say
23:56:24FromDiscord<Robyn [She/Her]> Yay... 😭