00:09:49 | FromDiscord | <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:04 | FromDiscord | <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:31 | FromDiscord | <Robyn [She/Her]> Can I do something like `{.push header: "header.h"}` or nah? |
01:32:59 | FromDiscord | <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:32 | FromDiscord | <demotomohiro> Yes you can |
01:42:18 | FromDiscord | <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:40 | FromDiscord | <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:42 | FromDiscord | <Elegantbeef> Probably just change where it points |
01:55:46 | FromDiscord | <Elegantbeef> Actually never mind |
01:55:52 | FromDiscord | <Elegantbeef> That's an `openArray[char]` in Nim |
01:57:22 | FromDiscord | <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:29 | FromDiscord | <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:34 | FromDiscord | <danielsokil> Ah it's also a built in function |
04:14:46 | FromDiscord | <odexine> In reply to @heysokam "if PMunch made it,": 🫑 |
04:21:25 | FromDiscord | <danielsokil> paketwerk (; |
04:31:13 | FromDiscord | <huantian> peppa |
04:33:51 | FromDiscord | <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:40 | FromDiscord | <usawiniko> In reply to @chronos.vitaqua "It's also called `slurp`": i found this very funny when i first learned of it |
05:49:41 | FromDiscord | <usawiniko> i now |
05:49:50 | FromDiscord | <usawiniko> (edit) "i now ... " added "exclusively use it" |
05:58:41 | FromDiscord | <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:00 | NimEventer | New Nimble package! libtray - Wrapper for dmikushin/tray, see https://github.com/neroist/libtray |
07:03:51 | FromDiscord | <Elegantbeef> Neroist really is just wrapping all the packages |
07:14:43 | FromDiscord | <zumi.dxy> Gotta wrap 'em all, like christmas presents |
07:30:03 | FromDiscord | <nnsee> he's beginning to feel like a wrap god? |
07:32:29 | Amun-Ra | ;) |
07:43:18 | * | fredrikhr joined #nim |
08:15:12 | FromDiscord | <ieltan> Can someone explain what `sink openArray[T]` means plz |
08:15:22 | FromDiscord | <Elegantbeef> Nothing |
08:15:53 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/destructors.html#sink-parameters |
08:16:42 | FromDiscord | <Elegantbeef> `openArray[T]` cannot be moved as it's an operation that loses the origin |
08:17:57 | FromDiscord | <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:36 | FromDiscord | <dissolved.girl> Apologies |
11:01:22 | FromDiscord | <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:55 | FromDiscord | <abaer> i just need to send and recieve requests to apis. |
11:07:30 | FromDiscord | <abaer> i would prefer something that uses libcurl... |
11:09:31 | FromDiscord | <nnsee> https://github.com/Araq/libcurl |
11:26:40 | FromDiscord | <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:04 | FromDiscord | <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:47 | FromDiscord | <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:15 | FromDiscord | <arthurmiiengineering> i think i just need to make some todo apps to get the hang of the basics |
11:31:36 | FromDiscord | <Phil> In reply to @arthurmiiengineering "is it normal to": I mean, that's just computers in general |
11:31:41 | FromDiscord | <Phil> There's always so much |
11:31:49 | FromDiscord | <Phil> The nice thing is that some stuff you just don't need to care about |
11:31:51 | * | ntat joined #nim |
11:31:58 | FromDiscord | <Phil> Focus on the things you need and expand slowly from there |
11:32:44 | FromDiscord | <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:54 | FromDiscord | <abaer> At least at first. |
11:33:37 | FromDiscord | <vortex> is it normal practice to program in nim without an lsp |
11:33:41 | FromDiscord | <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:00 | FromDiscord | <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:55 | FromDiscord | <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:13 | FromDiscord | <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:18 | FromDiscord | <arthurmiiengineering> In reply to @abaer "Also if you started": im not sure what you mean by that |
12:02:05 | FromDiscord | <exelotl> Nim's syntax is even more forgiving than Python tbh |
12:02:32 | FromDiscord | <abaer> Honestly I find python's syntax stupid and ugly. |
12:04:17 | FromDiscord | <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:20 | FromDiscord | <odexine> syntax is a matter of preference noi |
12:04:21 | FromDiscord | <odexine> (edit) "noi" => "no" |
12:04:44 | FromDiscord | <abaer> curly brackets and semicolons ive found makes it a lot easier to read and work with the code. |
12:05:05 | FromDiscord | <odexine> personally i find them noisy |
12:05:11 | FromDiscord | <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:16 | FromDiscord | <odexine> i prefer keywords in that sense |
12:05:42 | PMunch | @vortex, pretty normal to use it without LSP |
12:05:44 | FromDiscord | <abaer> i just never found python all that great of a language and the community is pretty obtuse. |
12:05:46 | FromDiscord | <zumi.dxy> i'm not finished typing, but let's try parsing anyway!↵oooops, sigsegv |
12:05:52 | PMunch | I mean I wrote NimLSP and even I don't use it that often :P |
12:05:59 | FromDiscord | <zumi.dxy> :( |
12:06:00 | PMunch | But they should still work |
12:06:10 | PMunch | Can't speak to nimlangserver though |
12:06:24 | FromDiscord | <zumi.dxy> I've come to accept typing in python |
12:06:35 | FromDiscord | <zumi.dxy> if only because it meant more intellisense |
12:07:40 | FromDiscord | <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:51 | FromDiscord | <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:59 | FromDiscord | <abaer> I tolerate it, but hate it.↵(@zumi.dxy) |
12:08:13 | FromDiscord | <arthurmiiengineering> In reply to @zumi.dxy "I've come to accept": its gotten much better better |
12:08:16 | FromDiscord | <arthurmiiengineering> (edit) removed "better" |
12:08:26 | FromDiscord | <arthurmiiengineering> like the type keyword now, and generics |
12:08:44 | FromDiscord | <abaer> It is still horrendous to work with. |
12:08:57 | FromDiscord | <arthurmiiengineering> In reply to @abaer "Honestly I find python's": ive heard this opinion before. to each their own |
12:09:06 | FromDiscord | <arthurmiiengineering> In reply to @abaer "It is still horrendous": how so? |
12:09:12 | FromDiscord | <abaer> Everyone I met that code a lot hate python. |
12:09:15 | FromDiscord | <zumi.dxy> I do like list comprehension |
12:09:29 | FromDiscord | <abaer> And I've coded in so many languages that python is just terrible. |
12:09:35 | FromDiscord | <arthurmiiengineering> In reply to @abaer "Everyone I met that": i code a lot and i dont hate python lol, but ok |
12:09:53 | FromDiscord | <arthurmiiengineering> i get having a preference though |
12:09:59 | FromDiscord | <abaer> Golang has much nicer syntax and is a lot more clean than any python code I've written. |
12:10:00 | FromDiscord | <odexine> i think python is down there in the ranking but personally a lot of the braces languages are too |
12:10:09 | FromDiscord | <vortex> how would you say nim handles those problems?(still getting my hands dirty with nim) |
12:10:16 | FromDiscord | <arthurmiiengineering> and knowing the language as well as i do, i certainly have gripes with it |
12:10:26 | FromDiscord | <odexine> to me, immediately go is under python merely for the "public is caps" thing |
12:10:45 | FromDiscord | <zumi.dxy> at least it's not python's "everything is public actually, haha" |
12:10:52 | PMunch | @vortex, jumping to definitions is nice. But after a while you get used to where stuff is |
12:11:09 | FromDiscord | <abaer> Go is what I wish more languages were like, but nooooo python and rust are better. |
12:11:22 | FromDiscord | <zumi.dxy> Sometimes I'd like to see what some function in some package is doing |
12:11:28 | FromDiscord | <abaer> There are so many better languages that don't get the love they deserve. |
12:11:34 | FromDiscord | <zumi.dxy> Not so easy when it's hidden under .nimble |
12:11:51 | FromDiscord | <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:24 | FromDiscord | <zumi.dxy> Everyone seems to hate it |
12:12:25 | FromDiscord | <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:37 | FromDiscord | <arthurmiiengineering> sent a long message, see https://pasty.ee/NFpcqcKH |
12:12:51 | FromDiscord | <arthurmiiengineering> In reply to @abaer "Go is what I": theyre different things entirely |
12:12:57 | FromDiscord | <zumi.dxy> Perl I admit I am not used to↵but I have used PHP, seems close enough right |
12:13:12 | FromDiscord | <zumi.dxy> Ruby I'm not quite interested in either |
12:13:29 | FromDiscord | <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:52 | FromDiscord | <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:58 | FromDiscord | <abaer> I've dabbled in Crystal. It has potential. I want to code in it more.↵(@zumi.dxy) |
12:14:02 | PMunch | And here I'm enjoying Nim land feeling like Python is verbose.. |
12:14:05 | * | def- joined #nim |
12:14:25 | FromDiscord | <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:31 | FromDiscord | <odexine> how fun a war has broken out |
12:14:43 | FromDiscord | <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:43 | FromDiscord | <zumi.dxy> In reply to @arthurmiiengineering ""i wish everyone used": this |
12:14:50 | PMunch | @odexine, you grab the popcorn and I'll get the pitchforks? |
12:14:56 | FromDiscord | <odexine> my only experience with PHP is on legacy stuff so |
12:15:02 | FromDiscord | <odexine> In reply to @PMunch "<@259277943275126785>, you grab the": i dont think im interested in watching |
12:15:04 | FromDiscord | <zumi.dxy> I couldn't care any less what is and isn't pythonic lmao↵I just wanna coooooode |
12:15:09 | FromDiscord | <arthurmiiengineering> In reply to @PMunch "<@259277943275126785>, you grab the": can we do salt and butter? |
12:15:23 | PMunch | What's the alternative? |
12:15:35 | FromDiscord | <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:55 | FromDiscord | <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:58 | FromDiscord | <vortex> i don't mind python but the ecosystem around python tho. Horrible. |
12:16:25 | FromDiscord | <zumi.dxy> when did python "break even"? the 00s? 10s? |
12:16:28 | FromDiscord | <odexine> i aint gonna fight for python cuz i dont like it strongly enough |
12:16:29 | PMunch | @abaer, not a huge Python fan myself, but let's not get too carried away here |
12:16:29 | FromDiscord | <zumi.dxy> the AI craze? |
12:16:43 | FromDiscord | <zumi.dxy> In reply to @vortex "i don't mind python": come on, at least it's no npm or cargo :p |
12:16:52 | FromDiscord | <odexine> In reply to @zumi.dxy "when did python "break": prolly release of 3 or so, 3.3 3.4 around there |
12:16:54 | Amun-Ra | true, let's not take drugs and irc at the same time |
12:16:55 | FromDiscord | <abaer> just a bunch of morons who cant do anything complicated and think theyre at the top of the food chain. |
12:17:05 | FromDiscord | <nnsee> In reply to @zumi.dxy "come on, at least": what's wrong with cargo |
12:17:14 | FromDiscord | <arthurmiiengineering> sent a code paste, see https://play.nim-lang.org/#pasty=QvhnBRLS |
12:17:15 | FromDiscord | <zumi.dxy> In reply to @nnsee "what's wrong with cargo": its package culture |
12:17:38 | Amun-Ra | and the language cult |
12:17:47 | FromDiscord | <arthurmiiengineering> you can write ugly code in any language |
12:17:51 | FromDiscord | <abaer> rust has potential but the ego craze by the morons in the community has made me less interested in it. |
12:17:54 | FromDiscord | <zumi.dxy> packages consisting of 10 lines of code because nothing is that trivial in rust + static compile everything = 1gb build folder |
12:17:59 | FromDiscord | <vortex> jupyter 💀↵(@zumi.dxy) |
12:18:25 | FromDiscord | <zumi.dxy> rust has more of a valid reason at least for tiny packages admittedly |
12:18:26 | FromDiscord | <abaer> other languages are also better than other languages. i would rather code in javascript than python.↵(@arthurmiiengineering) |
12:18:29 | FromDiscord | <zumi.dxy> but still a problem |
12:18:32 | FromDiscord | <arthurmiiengineering> In reply to @abaer "I will die on": i would strongly disagree |
12:18:47 | FromDiscord | <odexine> In reply to @Amun-Ra "true, let's not take": "is irc a new drug or smth" |
12:18:58 | FromDiscord | <arthurmiiengineering> In reply to @abaer "other languages are also": then your a madman, enjoy parsing 0.00000005 into 5 |
12:18:59 | FromDiscord | <zumi.dxy> IRC's an old drug :p |
12:19:06 | FromDiscord | <arthurmiiengineering> lol |
12:19:08 | FromDiscord | <abaer> of course cuz you came from python and struggling with nim.↵(@arthurmiiengineering) |
12:19:09 | FromDiscord | <zumi.dxy> all the kool kids get drunk on discord now |
12:19:18 | FromDiscord | <odexine> can we fucking not start insulting each other |
12:19:23 | FromDiscord | <vortex> here I disagree |
12:19:31 | Amun-Ra | odexine: irc and 'new' in single sentence? ;) |
12:19:33 | FromDiscord | <zumi.dxy> also we're getting wayy off topic lmfao |
12:19:38 | FromDiscord | <arthurmiiengineering> In reply to @odexine "can we fucking not": yea idk why hes getting so salty |
12:19:40 | FromDiscord | <vortex> JS will always remain my most hated language |
12:19:41 | PMunch | @abaer, please behave. Throwing insults around for no reason won't get you anywhere |
12:19:42 | FromDiscord | <odexine> In reply to @Amun-Ra "<@259277943275126785>: irc and 'new'": yes |
12:20:05 | FromDiscord | <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:08 | PMunch | Let's all stay civil and get back to talking about Nim |
12:20:12 | FromDiscord | <arthurmiiengineering> i have my complaints trust me |
12:20:26 | PMunch | Go find a Python channel to discuss it in |
12:20:31 | FromDiscord | <abaer> i despise pythonists because it is like talking to a wall.↵(@arthurmiiengineering) |
12:20:47 | FromDiscord | <vortex> can I get some help setting up thiss lsp↵(<@709044657232936960_=50=4dunch=5b=49=52=43=5d>) |
12:20:48 | FromDiscord | <ieltan> sent a code paste, see https://play.nim-lang.org/#pasty=jQusxpXT |
12:21:06 | FromDiscord | <arthurmiiengineering> In reply to @PMunch "Go find a Python": i didnt want to discuss that here, i was asking about nim |
12:21:16 | FromDiscord | <odexine> In reply to @ieltan "does this copy the": len doesnt include a null term |
12:21:17 | FromDiscord | <abaer> can't admit python is a terrible language and allowed stupid people to "code" who dont even know basic building blocks. |
12:21:29 | FromDiscord | <ieltan> In reply to @odexine "len doesnt include a": gotcha |
12:21:30 | FromDiscord | <ieltan> thanks |
12:21:34 | FromDiscord | <Robyn [She/Her]> When making a parser combinator, how am I supposed to combine the parts of an AST together? |
12:21:36 | FromDiscord | <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:37 | FromDiscord | <abaer> anyways... back to coding. |
12:21:44 | PMunch | Again @abaer, please refrain from insulting people or I'll have to ban you |
12:21:47 | FromDiscord | <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:51 | FromDiscord | <zumi.dxy> In reply to @dissolved.girl "Labelling people by their": hear hear |
12:22:13 | FromDiscord | <Robyn [She/Her]> Like if I had `"Hello, World!"` how would I assemble that into a sentence? |
12:22:17 | FromDiscord | <odexine> In reply to @zumi.dxy "hear hear": here here |
12:22:37 | FromDiscord | <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:44 | FromDiscord | <abaer> Oh right... I forgot being honest and blunt is gatekeeping and bigotry.↵(@dissolved.girl) |
12:22:46 | PMunch | @Robyn, not exactly sure what you're trying to do here |
12:22:59 | FromDiscord | <arthurmiiengineering> In reply to @abaer "Oh right... I forgot": dude, offtopic |
12:23:14 | FromDiscord | <arthurmiiengineering> we can chat in offtopic, this is a nim focused chat |
12:23:28 | FromDiscord | <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:41 | PMunch | To be clear, offending people won't be tolerated in the offtopic channel either.. |
12:23:42 | FromDiscord | <odexine> In reply to @abaer "Oh right... I forgot": your honesty is unrelated to the bigotry, hope this helps 💜 |
12:23:56 | FromDiscord | <Robyn [She/Her]> Me, asking for support as this is going down: "This is fine" |
12:24:03 | FromDiscord | <arthurmiiengineering> In reply to @chronos.vitaqua "Me, asking for support": sorry |
12:24:08 | FromDiscord | <ieltan> In reply to @chronos.vitaqua "Me, asking for support": same lmao |
12:24:12 | FromDiscord | <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:30 | FromDiscord | <ieltan> I am impervious to all those silly coding war drama |
12:24:43 | FromDiscord | <zumi.dxy> i'm kinda chill actually |
12:24:45 | FromDiscord | <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:59 | FromDiscord | <abaer> Being a jerk and being a dick rider because someone has strong opinions just makes you just an asshole. \<3↵(@odexine) |
12:25:22 | FromDiscord | <abaer> Sure sounds like it.↵(@arthurmiiengineering) |
12:25:39 | PMunch | @abaer, final warning.. Behave |
12:26:05 | PMunch | Anyways, @Robyn, parser combinators |
12:26:36 | FromDiscord | <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:41 | FromDiscord | <odexine> In reply to @abaer "Being a jerk and": idk when you started talking to a mirror |
12:26:55 | FromDiscord | <arthurmiiengineering> In reply to @abaer "I don't care about": dude, noone is trying to be rude to you |
12:27:01 | FromDiscord | <arthurmiiengineering> your the only one being rude |
12:27:02 | FromDiscord | <abaer> I'm not a narc like you are.↵(@odexine) |
12:27:12 | FromDiscord | <odexine> you're still talking to that mirror? |
12:27:15 | FromDiscord | <arthurmiiengineering> and i asked you 3 times to just have a chat with me in offtopic |
12:27:25 | FromDiscord | <abaer> learn proper english.↵(@arthurmiiengineering) |
12:27:45 | PMunch | @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:15 | FromDiscord | <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:18 | PMunch | *swing* |
12:28:19 | FromDiscord | <arthurmiiengineering> (edit) "sentencea" => "sentence" |
12:28:21 | FromDiscord | <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:38 | PMunch | I banned them, so no point in replying to them |
12:28:42 | FromDiscord | <arthurmiiengineering> In reply to @dissolved.girl "Says the guy who": still cracks me up that word has so many variations |
12:28:46 | FromDiscord | <arthurmiiengineering> XD |
12:28:52 | FromDiscord | <ieltan> Welp |
12:29:04 | FromDiscord | <ieltan> lets change the subject... for example |
12:29:09 | FromDiscord | <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:19 | PMunch | PARSER COMBINATORS |
12:29:20 | FromDiscord | <arthurmiiengineering> In reply to @ieltan "lets change the subject...": im all ears |
12:29:45 | FromDiscord | <ieltan> I am currently writting inplace versions of common functions from strutils, sequtils |
12:29:46 | PMunch | @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:46 | FromDiscord | <odexine> In reply to @arthurmiiengineering "im all ears": biblically accurate human |
12:30:08 | FromDiscord | <ieltan> the goal is to reduce excessive allocation by using `dup` |
12:30:12 | PMunch | Tried to tell them multiple times, but they persisted in being an asshat. |
12:30:15 | FromDiscord | <arthurmiiengineering> In reply to @PMunch "<@894599525329678366>, well we only": no your fine, i meant him |
12:30:18 | PMunch | So temporary ban it is |
12:30:26 | PMunch | Oh right :P |
12:30:36 | FromDiscord | <ieltan> and also stealing forgotten yet useful RFCs code 😉 |
12:30:41 | FromDiscord | <arthurmiiengineering> rhetoric matters, you need to be kind in the way you disagree with others |
12:30:47 | FromDiscord | <dissolved.girl> In reply to @odexine "biblically accurate human": Underrated joke |
12:30:53 | PMunch | @ieltan, like zero-functional? |
12:31:00 | FromDiscord | <arthurmiiengineering> In reply to @odexine "biblically accurate human": lol what? |
12:31:11 | FromDiscord | <dissolved.girl> You're all ears |
12:31:11 | FromDiscord | <arthurmiiengineering> angels are all eyes 😏 |
12:31:15 | FromDiscord | <odexine> biblically accurate angels iirc look like theyre all eyes |
12:31:21 | FromDiscord | <odexine> so if you say youre all ears |
12:31:22 | PMunch | Haha, I thought it was the angels who where all ears, eyes, or wings or whatever? |
12:31:28 | FromDiscord | <ieltan> In reply to @PMunch "<@256520101015060480>, like zero-functional?": no no not like zero functional... it's all macro over there |
12:31:31 | PMunch | Humans just got to live to 600 |
12:31:37 | FromDiscord | <arthurmiiengineering> In reply to @PMunch "Haha, I thought it": yea thats what confused me |
12:31:38 | FromDiscord | <ieltan> I want to be KISS |
12:32:17 | FromDiscord | <nnsee> the band? |
12:32:19 | FromDiscord | <ieltan> also i was inspired by a forgotten RFC aiming to make `echo` less costly |
12:32:27 | FromDiscord | <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:28 | FromDiscord | <odexine> the macro part is to collapse operations into one inplace operation no? |
12:32:52 | FromDiscord | <ieltan> better sequtils already exists anyways |
12:32:56 | FromDiscord | <ieltan> it's called slicerator |
12:33:11 | FromDiscord | <zumi.dxy> inplace vs inline 🤔 |
12:33:23 | FromDiscord | <ieltan> what i do is inplace everything |
12:34:04 | FromDiscord | <odexine> In reply to @zumi.dxy "inplace vs inline 🤔": brain cooked forgive me |
12:34:27 | FromDiscord | <ieltan> In reply to @nnsee "the band?": keep it stupid simple |
12:39:05 | FromDiscord | <nnsee> (i know) |
12:41:26 | FromDiscord | <marioboi3112> which version of ECMA script can nim compile into>? |
12:42:30 | Amun-Ra | iirc es6 |
12:43:04 | FromDiscord | <zumi.dxy> anyone tried a nim2js -> babel combo |
12:43:21 | FromDiscord | <odexine> i feel like ive heard someone try it already |
12:43:40 | FromDiscord | <zumi.dxy> like↵what if you're sick enough to make a nim to jscript compiler↵not javascript↵microsoft jscript specifically |
12:43:57 | FromDiscord | <nnsee> no but i ran Nim (js) on the JVM using Graal |
12:49:14 | FromDiscord | <pmunch> In reply to @chronos.vitaqua "Like if I had": Still no idea what you're struggling with.. |
12:52:58 | FromDiscord | <marioboi3112> In reply to @Amun-Ra "iirc es6": damn |
13:01:35 | Amun-Ra | too new? |
13:26:09 | FromDiscord | <Robyn [She/Her]> In reply to @pmunch "Still no idea what": Sorry aha, I'm not sure how to formulate it tbh... |
13:27:03 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "iirc es6": I thought Nim compiled to a very old JS version |
13:28:21 | FromDiscord | <odexine> i thought it was es6 |
13:28:26 | FromDiscord | <odexine> fuck, i mean es3 |
13:28:34 | FromDiscord | <odexine> brain legit cooked yall |
13:30:25 | FromDiscord | <Robyn [She/Her]> In reply to @odexine "fuck, i mean es3": Yeah |
13:31:05 | FromDiscord | <marioboi3112> In reply to @Amun-Ra "too new?": lmao no i didnt think it would be that outdated |
13:31:53 | FromDiscord | <odexine> oh brother |
13:31:59 | FromDiscord | <odexine> dont read what i just said... |
13:32:36 | FromDiscord | <marioboi3112> In reply to @odexine "i thought it was": -_- |
13:32:49 | FromDiscord | <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:56 | FromDiscord | <marioboi3112> but ig its irrelevant |
13:59:47 | * | PMunch quit (Quit: Leaving) |
14:00:57 | FromDiscord | <pmunch> Let me guess, there is no `nimsuggest/nimsuggest.nim` in `/usr/lib/nim`? |
14:01:11 | FromDiscord | <pmunch> I would not install Nim through pacman, install choosenim instead \:) |
14:01:26 | FromDiscord | <griffith1deadly> Reply with unknown content |
14:01:29 | FromDiscord | <griffith1deadly> funny |
14:03:52 | FromDiscord | <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:05 | FromDiscord | <vortex> `"cannot find file: /home/<uname>/x.nim\n"` this is the log |
14:06:48 | FromDiscord | <vortex> oh wait works when I create the file first |
14:06:54 | * | def- quit (Quit: -) |
14:06:56 | FromDiscord | <Robyn [She/Her]> In reply to @pmunch "I would not install": I wouldn't use choosenim either |
14:07:12 | FromDiscord | <vortex> source build?↵(@Robyn [She/Her]) |
14:07:13 | FromDiscord | <Robyn [She/Her]> Good tool but proxy binaries fuck up the lsp |
14:07:24 | * | Guest56 joined #nim |
14:07:43 | FromDiscord | <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:08 | FromDiscord | <nnsee> you don't need to use the proxy exe |
14:08:23 | FromDiscord | <nnsee> choosenim still extracts the binaries to a location on disk and you can call those directly |
14:08:53 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=dvkhmxFg |
14:09:26 | FromDiscord | <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:54 | FromDiscord | <Robyn [She/Her]> Oh that is true tbf |
14:32:11 | FromDiscord | <Robyn [She/Her]> Doesn't work on arm last time I checked anyway |
14:40:24 | FromDiscord | <marioboi3112> @pmp_p sorry for the ping but do you have any instructions on building nim-panda3d? |
14:55:45 | FromDiscord | <pmp_p> In reply to @marioboi3112 "<@334096250897170433> sorry for the": i made a CI for wasi |
14:56:55 | FromDiscord | <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:08 | FromDiscord | <pmp_p> i did not try native build at all 😄 |
15:11:13 | * | ntat joined #nim |
15:11:52 | FromDiscord | <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:57 | FromDiscord | <hamachi> does nim have an IRC? |
15:12:09 | FromDiscord | <pmp_p> yeah on libera |
15:12:30 | FromDiscord | <hamachi> gotcha, thanks! |
15:12:33 | strogon14 | it's just a bridge to this matrix/discord |
15:12:33 | pmp-p | yw |
15:13:10 | strogon14 | and not very well implemented, tbh |
15:13:28 | FromDiscord | <hamachi> well, what's wrong with it? |
15:14:26 | strogon14 | a) every msg comes from the bot user and the real nicj is prefixed to the msg |
15:14:46 | FromDiscord | <nnsee> that's just how irc bridges work without server side support |
15:14:47 | strogon14 | b) longer messages are turned into linksto play.nimlang.org |
15:15:09 | strogon14 | *play.nim-lang.org |
15:16:08 | FromDiscord | <hamachi> alright, thanks |
15:16:37 | strogon14 | b) edits to messges show up as often unreadable messages just showing the difference |
15:16:48 | strogon14 | or c) :) |
15:16:53 | FromDiscord | <odexine> In reply to @strogon14 "b) longer messages are": this was a commonly requested feature |
15:16:55 | FromDiscord | <odexine> In reply to @strogon14 "b) edits to messges": this as well |
15:17:28 | strogon14 | they make this channel very hard to read/follow in IRC, though. |
15:18:13 | FromDiscord | <odexine> dunno, the old default was resending the whole message and everyone was complaining about it so |
15:18:20 | strogon14 | I 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:33 | FromDiscord | <nnsee> why did they have to block access? |
15:19:51 | strogon14 | because 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:02 | strogon14 | apparently there's no channel whitelist feature in th eserver software. |
15:21:35 | FromDiscord | <basilajith> Is there an `error` type (like in Golang) in Nim? |
15:21:58 | FromDiscord | <Robyn [She/Her]> In reply to @basilajith "Is there an `error`": As in, results? |
15:22:16 | FromDiscord | <Robyn [She/Her]> There's no built-in support but there is `nim-results` as a package you can download? |
15:22:27 | FromDiscord | <Robyn [She/Her]> There's also `std/options` in the standard library |
15:26:23 | FromDiscord | <basilajith> Oh, okay. |
15:27:02 | FromDiscord | <pmunch> In reply to @chronos.vitaqua "Good tool but proxy": Really? Seems to work for me |
15:27:35 | FromDiscord | <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:06 | FromDiscord | <pmunch> In reply to @odexine "dunno, the old default": Yeah the current system is way better than it was |
15:29:28 | FromDiscord | <pmunch> The long message -> playground link could be better though |
15:30:58 | FromDiscord | <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:14 | FromDiscord | <Robyn [She/Her]> The behaviour is pretty painful and causes a lot of orphaned processes |
15:32:04 | FromDiscord | <nnsee> tbf this seems like a relatively easy fix |
15:32:10 | FromDiscord | <Robyn [She/Her]> https://github.com/nim-lang/langserver/issues/184#issuecomment-1969415140 |
15:32:32 | FromDiscord | <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:09 | FromDiscord | <Robyn [She/Her]> In reply to @pmunch "But NimLSP doesn't create": I'm talking about the lang server here |
15:36:15 | FromDiscord | <Robyn [She/Her]> nimlangserver |
15:36:37 | FromDiscord | <pmunch> Yes, but we where talking about NimLSP |
15:36:45 | FromDiscord | <Robyn [She/Her]> Wait where? |
15:36:50 | FromDiscord | <pmunch> I recommend choosenim for NimLSP |
15:36:57 | FromDiscord | <Robyn [She/Her]> Oooh okay |
15:37:27 | FromDiscord | <Robyn [She/Her]> Sorry then, I didn't realise |
15:37:39 | FromDiscord | <Robyn [She/Her]> In reply to @pmunch "Let me guess, there": Is it possible that it was cut out? |
15:37:48 | FromDiscord | <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:39 | strogon14 | tbh, choosenim is a mess: unmaintained, insecure, missing support for major architectures (aarch64) and building from source is broken. |
15:54:45 | FromDiscord | <odexine> idk why it hasnt been taken into the official nim repos (iirc) |
15:59:52 | NimEventer | New thread by CardealRusso: Is taking too long to fully adapt to cosmopolitan, see https://forum.nim-lang.org/t/11663 |
16:02:51 | FromDiscord | <Robyn [She/Her]> In reply to @NimEventer "New thread by CardealRusso:": Is the person who posted this in the server? |
16:16:00 | NimEventer | New 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:19 | FromDiscord | <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:59 | strogon14 | fwiw, 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:02 | strogon14 | https://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:25 | FromDiscord | <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:25 | FromDiscord | <Robyn [She/Her]> Oh |
17:29:26 | FromDiscord | <Robyn [She/Her]> `https://play.nim-lang.org/#pasty=yCCnMlxW` |
17:29:32 | FromDiscord | <Robyn [She/Her]> (edit) "`https://play.nim-lang.org/#pasty=yCCnMlxW`" => "https://play.nim-lang.org/#pasty=yCCnMlxW" |
17:29:44 | FromDiscord | <Robyn [She/Her]> Why does this work and my previous code didn't? I don't get it |
17:31:10 | FromDiscord | <nnsee> try naming `err` differently (the proc for example) |
17:31:22 | FromDiscord | <nnsee> maybe the parser gets confused about which err you're referring to |
17:31:43 | FromDiscord | <nnsee> or template, even, not proc |
17:35:59 | FromDiscord | <Robyn [She/Her]> Aaah that could make sense |
17:38:25 | FromDiscord | <Robyn [She/Her]> https://play.nim-lang.org/#pasty=whLzcFtp and now it's this |
17:38:28 | FromDiscord | <Robyn [She/Her]> Pain |
17:47:08 | FromDiscord | <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:14 | FromDiscord | <Robyn [She/Her]> https://play.nim-lang.org/#pasty=FvcFWnHb aha... What- |
18:40:49 | FromDiscord | <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:28 | FromDiscord | <Robyn [She/Her]> I just changed all `func`s with `proc`s in `results.nim` lol |
18:55:28 | FromDiscord | <Robyn [She/Her]> https://play.nim-lang.org/#pasty=vrZRuQAI |
18:55:32 | FromDiscord | <Robyn [She/Her]> But it works! |
19:27:25 | Amun-Ra | hmm… there were no funcs in the test case |
19:28:49 | FromDiscord | <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:14 | FromDiscord | <Robyn [She/Her]> Lovely code with a million errors :P↵https://play.nim-lang.org/#pasty=klMjGNBq |
19:30:19 | Amun-Ra | I mean the FvcFWnHb test case |
19:30:39 | Amun-Ra | or rather should I say I have that test case in mind |
19:31:19 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "I mean the FvcFWnHb": The what- |
19:31:41 | FromDiscord | <Robyn [She/Her]> My brain is barely functioning, sorry Amun-Ra |
19:31:52 | FromDiscord | <mikaelashipha> Hey guys, is there proper maintained tui library for nim? |
19:33:07 | FromDiscord | <Robyn [She/Her]> In reply to @mikaelashipha "Hey guys, is there": You could look into `illwill`? |
19:41:18 | FromDiscord | <Elegantbeef> Also ansiwave(or is it nimwave) |
19:51:34 | FromDiscord | <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:02 | FromDiscord | <vortex> sent a code paste, see https://play.nim-lang.org/#pasty=UsSfUyhm |
20:31:54 | FromDiscord | <Elegantbeef> Nim uses the symbol defined in the closest scope |
20:32:29 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=JbVYGFtS |
20:34:21 | FromDiscord | <vortex> So from line 3 here `nprinted` is the one defined in the local scope right? |
20:34:28 | FromDiscord | <Elegantbeef> Yes |
20:35:23 | FromDiscord | <vortex> sent a code paste, see https://play.nim-lang.org/#pasty=ZgPPnxNE |
20:35:57 | FromDiscord | <Elegantbeef> `var int` requires a mutable parameter passed |
20:37:21 | FromDiscord | <vortex> ah ok thanks! |
20:42:08 | FromDiscord | <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:22 | FromDiscord | <Elegantbeef> Nim is an expressionful language |
20:42:44 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=jxLkqoCA |
20:42:44 | FromDiscord | <Elegantbeef> Is totally valid |
20:43:12 | FromDiscord | <Robyn [She/Her]> I should look at the code you used to generate `init` procs, `Beef` :p |
20:43:23 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=mOYQWnsQ |
20:43:46 | FromDiscord | <Elegantbeef> `Beef`? |
20:44:35 | FromDiscord | <Robyn [She/Her]> Oops |
20:44:37 | FromDiscord | <Robyn [She/Her]> Brain go blep |
20:45:54 | FromDiscord | <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:25 | FromDiscord | <Elegantbeef> Expressionful languages give you the ability to make every statement an expression. Which gives you definitive assignment |
20:46:47 | FromDiscord | <Elegantbeef> In the above case we know `x` is assigned in all branches in a nice form |
20:48:23 | FromDiscord | <vortex> how does that answer my question about discarding returns? |
20:48:48 | FromDiscord | <Elegantbeef> Cause if expressions can be discard it's ambiguous whether you wanted the side effects or the value from a proc |
20:49:39 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=TkRejdyf |
20:50:20 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=xNgRxgbI |
20:50:43 | FromDiscord | <Elegantbeef> Discard is lovely as it's an explicit operation to say "I do not care about this value" whilst enabling expressions |
20:51:54 | FromDiscord | <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:09 | FromDiscord | <Elegantbeef> iirc, yes |
20:53:02 | FromDiscord | <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:30 | FromDiscord | <Robyn [She/Her]> I don't have my PC with me so I'm doing this on my phone |
20:53:31 | FromDiscord | <Elegantbeef> I mean you need the generic param on all your procs |
20:53:43 | FromDiscord | <Elegantbeef> Like `None[T].init()` is needed |
20:54:03 | FromDiscord | <Robyn [She/Her]> I do? Shit yeah |
20:54:09 | FromDiscord | <Robyn [She/Her]> Uuugh... |
20:54:15 | FromDiscord | <Robyn [She/Her]> Oh well, simplifies this a bit I guess |
20:56:59 | FromDiscord | <vortex> sent a code paste, see https://play.nim-lang.org/#pasty=tUWTudIP |
20:56:59 | FromDiscord | <Elegantbeef> Discardable is not a good pragma to use |
20:57:00 | FromDiscord | <Elegantbeef> It's only used in some cases |
20:57:11 | * | def- quit (Quit: -) |
20:58:31 | FromDiscord | <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:11 | FromDiscord | <vortex> sent a code paste, see https://play.nim-lang.org/#pasty=ZIbOybpn |
21:06:26 | FromDiscord | <Elegantbeef> Well no `discard doThing()` |
21:07:55 | FromDiscord | <vortex> so you wanted x to be assigned 30? |
21:08:19 | FromDiscord | <Elegantbeef> In a statement if the last statement has a value it is an expression |
21:09:16 | FromDiscord | <vortex> if we discard the last one, doesn't the one before that becomes an expression? |
21:09:21 | FromDiscord | <Elegantbeef> Nope |
21:09:25 | FromDiscord | <Elegantbeef> Cause it's not the last statement |
21:10:54 | FromDiscord | <vortex> ok lemme test on that snippet a bit maybe my doubts will be cleared |
21:10:56 | FromDiscord | <vortex> thanks |
21:13:36 | FromDiscord | <vortex> ok brilliant, i've understood it thank you so much |
21:13:41 | FromDiscord | <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:56 | FromDiscord | <Elegantbeef> Yep probably robyn 😄 |
21:14:26 | FromDiscord | <vortex> i get the appeal of discard now 😄 |
21:14:43 | FromDiscord | <Robyn [She/Her]> I'm not sure how I'm gonna work around it either |
21:15:27 | FromDiscord | <Elegantbeef> You cannot with the type section pragma 😄 |
21:31:54 | FromDiscord | <Robyn [She/Her]> https://play.nim-lang.org/#pasty=XGvQoQuT yep Beef, still an issue :/ |
21:32:15 | * | def- quit (Quit: -) |
21:32:16 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "You cannot with the": What if I generate an empty type? :p |
21:32:33 | FromDiscord | <Elegantbeef> That could actually work |
21:32:40 | * | def- joined #nim |
21:32:41 | FromDiscord | <Elegantbeef> Hacky as fuck, but could work |
21:32:46 | FromDiscord | <Robyn [She/Her]> Yeah lmao |
21:32:55 | FromDiscord | <Robyn [She/Her]> I don't think there's any other way to do it, though |
21:33:06 | FromDiscord | <Robyn [She/Her]> Also people would have to export any init procs themselves too |
21:33:53 | FromDiscord | <Elegantbeef> This is why you export everything! |
21:34:08 | FromDiscord | <Robyn [She/Her]> You can't in type sections |
21:34:16 | FromDiscord | <Robyn [She/Her]> They're not top-level |
21:34:21 | FromDiscord | <Elegantbeef> You can |
21:34:24 | FromDiscord | <Robyn [She/Her]> For the procs |
21:34:26 | FromDiscord | <Elegantbeef> Just not in generics |
21:34:41 | FromDiscord | <Robyn [She/Her]> Oh didn't know that |
21:34:50 | FromDiscord | <Robyn [She/Her]> Either way, I'm just making it do whatever the user does |
21:34:55 | FromDiscord | <Robyn [She/Her]> If they export it, it'll get exported |
21:34:58 | FromDiscord | <Robyn [She/Her]> Otherwise it's a no |
21:35:16 | FromDiscord | <Robyn [She/Her]> I'm assuming Nim stdlib has a way for me to generate an identifier, right? |
21:35:35 | FromDiscord | <Robyn [She/Her]> Will it just automatically do it for me? Or nah? |
21:36:06 | FromDiscord | <Elegantbeef> `genSym` |
21:36:49 | FromDiscord | <Robyn [She/Her]> Thanks! |
21:37:30 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=LsoWOfso |
21:37:40 | FromDiscord | <Elegantbeef> That's what constructors.default generates |
21:38:49 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Ah yes it does": So my macro works with constructors? |
21:38:57 | FromDiscord | <Elegantbeef> No |
21:39:08 | FromDiscord | <Robyn [She/Her]> Hm |
21:39:09 | FromDiscord | <Elegantbeef> I'm showing what constructors generates |
21:39:15 | FromDiscord | <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:35 | FromDiscord | <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:35 | FromDiscord | <Robyn [She/Her]> Oh wait |
22:36:19 | FromDiscord | <Robyn [She/Her]> Yeah I'm lost nvm |
22:36:31 | FromDiscord | <Elegantbeef> What's the error? |
22:38:01 | * | xet7 joined #nim |
22:38:09 | FromDiscord | <Robyn [She/Her]> I fixed it |
22:38:15 | FromDiscord | <Robyn [She/Her]> Now I got a different error :D |
22:38:22 | FromDiscord | <Robyn [She/Her]> Illformed AST |
22:38:25 | FromDiscord | <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:32 | FromDiscord | <Robyn [She/Her]> I can not, in fact, fix it: https://play.nim-lang.org/#pasty=FgEoNPwi |
22:50:51 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=yfMOkSFY |
22:51:15 | FromDiscord | <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:24 | FromDiscord | <Robyn [She/Her]> (edit) "another type" => "a statement list" |
22:52:48 | FromDiscord | <Elegantbeef> `= object` is wrong |
22:53:43 | FromDiscord | <Robyn [She/Her]> Oh wait, do I need to override the object type completely? |
23:19:12 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=prXHoAfo |
23:19:14 | FromDiscord | <Robyn [She/Her]> New error... Yay |
23:19:22 | FromDiscord | <Robyn [She/Her]> I'm so, so close though |
23:22:48 | FromDiscord | <Robyn [She/Her]> Beef, any idea? |
23:23:04 | FromDiscord | <Robyn [She/Her]> I need the macro mage to assist the macro novice xD |
23:23:20 | FromDiscord | <Elegantbeef> Probably an issue with not using `ident` for your generic parameters |
23:23:57 | FromDiscord | <Robyn [She/Her]> Oh that's an issue? :/ |
23:25:28 | FromDiscord | <Robyn [She/Her]> I wanted to also carry across stuff like `T: object` |
23:26:19 | FromDiscord | <Elegantbeef> Yea you just need to desym it |
23:27:27 | FromDiscord | <Robyn [She/Her]> How do I do that...?- |
23:27:39 | FromDiscord | <Elegantbeef> copy the tree and replace the `sym` with a `ident` |
23:27:49 | FromDiscord | <Robyn [She/Her]> It's still using `ident`s when checking the tree |
23:27:52 | FromDiscord | <Robyn [She/Her]> It's an untyped macro |
23:27:59 | FromDiscord | <Elegantbeef> Well then print the tree out |
23:28:05 | FromDiscord | <Robyn [She/Her]> I am |
23:28:10 | FromDiscord | <Robyn [She/Her]> Do you want me to post it? |
23:28:48 | FromDiscord | <Elegantbeef> SUre |
23:31:13 | FromDiscord | <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:55 | FromDiscord | <Robyn [She/Her]> Imagine understanding macros |
23:44:02 | FromDiscord | <Robyn [She/Her]> This feels like it'll be extremely fragile |
23:51:16 | FromDiscord | <Elegantbeef> Ya think |
23:53:23 | FromDiscord | <Robyn [She/Her]> XD |
23:53:34 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Ya think": But yeah I have no clue |
23:54:02 | * | xet7 joined #nim |
23:54:45 | FromDiscord | <Elegantbeef> Same |
23:55:01 | FromDiscord | <Elegantbeef> Use a debug compiler and compare the two types is all I can say |
23:56:24 | FromDiscord | <Robyn [She/Her]> Yay... 😭 |