<< 21-07-2022 >>

00:00:03FromDiscord<ghoom> In reply to @Avahe "I'm just going to": ๐Ÿซ‚
00:00:21FromDiscord<Prestige> I get paid to make them though so I'm part of the problem
00:00:49FromDiscord<Elegantbeef> Could you imagine how advanced our technology would be if all popular websites just gave you a binary package to parse and you could render it how you wanted
00:00:49FromDiscord<ghoom> hey at least you get that cash
00:00:57FromDiscord<# Luke> How can I get a function as a parameter of another function
00:00:59FromDiscord<Elegantbeef> Damn we'd be at star trek level tech
00:01:17FromDiscord<ghoom> In reply to @Elegantbeef "Damn we'd be at": we'd be gods by now
00:01:20FromDiscord<Elegantbeef> You just make a function the parameter
00:01:37FromDiscord<# Luke> In reply to @Elegantbeef "You just make a": Would the type just be proc?
00:01:44FromDiscord<Elegantbeef> The world were all websites are replaced with rest api's is the one i want to be in
00:01:47FromDiscord<Elegantbeef> Well that's the type of a proc
00:01:59FromDiscord<Prestige> not a bad idea
00:02:15FromDiscord<Prestige> I just need to get paid to do something else and I'll be set
00:02:17FromDiscord<Elegantbeef> It's bad in the idea you need a client per website
00:02:52FromDiscord<jan0809> no all you need is uplink and patience
00:02:58FromDiscord<ghoom> In reply to @Elegantbeef "It's bad in the": i mean it wouldn't make a difference since browsers store cache anyway so
00:03:20FromDiscord<ghoom> and it's faster cuz you don't need to load the js and stuff
00:03:24FromDiscord<ghoom> (edit) "and it's faster cuz you don't need to load the js and stuff ... " added "everytime"
00:03:32FromDiscord<ghoom> win win
00:03:46FromDiscord<jan0809> what if an api runs in node
00:03:59FromDiscord<ghoom> ๐Ÿธ๐Ÿ”ซ
00:04:17FromDiscord<Elegantbeef> Let's make our new web protocol
00:04:22FromDiscord<jan0809> webland
00:04:28FromDiscord<ghoom> xd
00:04:38FromDiscord<ghoom> webtube
00:04:54FromDiscord<Elegantbeef> We'll call it client orient web protocol COWP
00:04:56FromDiscord<jan0809> like in wayland but in the web
00:05:09FromDiscord<ghoom> In reply to @jan0809 "like in wayland but": ooh ye i missed that
00:05:27FromDiscord<jan0809> x12
00:05:31FromDiscord<ghoom> In reply to @Elegantbeef "We'll call it client": cowp gang
00:05:35FromDiscord<ghoom> ๐Ÿ˜Ž i'm in
00:06:46FromDiscord<Elegantbeef> Prestige this is the type of project you wanted to work on right? ๐Ÿ˜›
00:07:41FromDiscord<Prestige> I mean sure but where's the money
00:07:56FromDiscord<Elegantbeef> It's a 16th standard! ๐Ÿ˜„
00:08:01FromDiscord<ghoom> In reply to @Avahe "I mean sure but": only reward is a better future
00:08:03*duuude joined #nim
00:08:16FromDiscord<ghoom> be a hero
00:11:37FromDiscord<Prestige> a hero with a cardboard box, programming the 16th standard in the corner of a starbucks cafe
00:11:59FromDiscord<Elegantbeef> fuck money i need a better world!
00:12:12FromDiscord<ghoom> exactly
00:12:26FromDiscord<Prestige> will code 4 mortgage
00:12:46FromDiscord<Elegantbeef> Cmon prestige with housing prices you're not going to be able to buy a house
00:13:08FromDiscord<jan0809> In reply to @Avahe "a hero with a": you should consider a `buy me a coffee` button
00:13:14FromDiscord<Prestige> I already bought a house
00:13:20FromDiscord<hector> Buying a house is for losers
00:13:29FromDiscord<Prestige> Hey man that's my house you're talking about
00:13:29FromDiscord<Elegantbeef> Ok correction, with housing prices i'll never be able to buy a house
00:13:32FromDiscord<Prestige> Lol
00:13:53FromDiscord<Prestige> Living in this house is actually cheaper than an apartment, which is great
00:14:05FromDiscord<hector> Who wants to deal with property taxes and HOAs and maintenance and shit
00:14:17FromDiscord<Prestige> HOAs are for losers
00:14:31FromDiscord<hector> Well at least we agree on that
00:14:31FromDiscord<ghoom> terry davis knows wassup
00:14:41FromDiscord<ghoom> (edit) "knows" => "knew"
00:15:16FromDiscord<# Luke> How can I set both gcsafe and lock pragmas for one function
00:17:11FromDiscord<Prestige> Can you not just type them both?
00:17:21FromDiscord<Prestige> or is there some weird issue with those two in particular
00:19:09FromDiscord<# Luke> In reply to @Avahe "Can you not just": It gives me an invalid indentation error
00:19:15FromDiscord<# Luke> But with just one it's fine
00:19:23FromDiscord<# Luke> So idk
00:19:23FromDiscord<Prestige> can you show?
00:19:31FromDiscord<# Luke> Sure
00:19:37FromDiscord<# Luke> Give me a second
00:22:36FromDiscord<# Luke> https://media.discordapp.net/attachments/371759389889003532/999471419660456047/unknown.png
00:24:19FromDiscord<!Patitotective> In reply to @ripluke "": is that retro vscode lol
00:24:24FromDiscord<Prestige> I think you want `{.gcsafe, locks: 0.}`
00:24:37FromDiscord<Yardanico> yep, and also `locks` is really kind of deprecated and you almost never need it
00:26:01FromDiscord<Elegantbeef> Also that locks 0 isnt what you want
00:26:16FromDiscord<Elegantbeef> If you're working with fsnotify you're solving the problem backwards
00:33:31*krux02 quit (Remote host closed the connection)
00:35:45FromDiscord<# Luke> In reply to @Patitotective "is that retro vscode": It's neovim
00:36:05FromDiscord<# Luke> In reply to @Elegantbeef "If you're working with": Then what should I do lol
00:36:35FromDiscord<Prestige> I can barely read that font lol
00:36:58FromDiscord<ghoom> In reply to @Avahe "I can barely read": i can read it just fine
00:37:28FromDiscord<ghoom> In reply to @ripluke "": i like the theme
00:37:47FromDiscord<ghoom> so cute and retro
00:38:04FromDiscord<Elegantbeef> It's not a theme it's vim ๐Ÿ˜„
00:38:04FromDiscord<Prestige> I'm using jetbrains mono, think it's pretty nice
00:38:13FromDiscord<j-james> you'd love my font prestige
00:38:21FromDiscord<j-james> https://media.discordapp.net/attachments/371759389889003532/999475384556990494/2022-07-20-173730.png
00:38:23FromDiscord<ghoom> In reply to @Elegantbeef "It's not a theme": ik lol
00:38:26FromDiscord<# Luke> In reply to @Elegantbeef "It's not a theme": You're not wrong
00:38:39FromDiscord<# Luke> In reply to @j-james "": ๐Ÿ’€
00:38:43FromDiscord<Prestige> Lol james - at least I can read it though
00:38:55FromDiscord<Prestige> here's my neovim https://media.discordapp.net/attachments/371759389889003532/999475527490486432/unknown.png
00:39:08FromDiscord<# Luke> In reply to @Avahe "I can barely read": I borrow it from Minecraft๐Ÿ˜„
00:39:20FromDiscord<ghoom> In reply to @Avahe "I'm using jetbrains mono,": i like jetbrains mono! personally i use cascadia code
00:39:21FromDiscord<# Luke> (edit) "borrow" => "borrowed"
00:39:22FromDiscord<Prestige> lol oh, that makes sense
00:39:38FromDiscord<j-james> comic mono is so unironically good
00:39:43FromDiscord<# Luke> In reply to @Avahe "I'm using jetbrains mono,": That's my secondary font
00:39:46FromDiscord<ghoom> comic mono lol
00:40:53FromDiscord<# Luke> In reply to @ghoom "i like jetbrains mono!": Caskaydia code looks kinda generic imho
00:41:20FromDiscord<ghoom> In reply to @ripluke "Caskaydia code looks kinda": not caskaydia, cascadia
00:41:37FromDiscord<ghoom> i didn't even know caskaydia existed lol
00:41:37FromDiscord<# Luke> They're different?
00:41:42FromDiscord<ghoom> apparently yes
00:41:45FromDiscord<# Luke> Oh
00:41:45FromDiscord<ghoom> caskaydia cove
00:45:24FromDiscord<!Patitotective> In reply to @j-james "": is that beautiful sublime? ๐Ÿ˜ณ
00:45:45FromDiscord<Elegantbeef> Beautiful like a pug
00:46:40FromDiscord<ghoom> sent a code paste, see https://play.nim-lang.org/#ix=44Zp
00:46:44FromDiscord<Elegantbeef> No
00:46:48FromDiscord<Elegantbeef> It's an object variant it's not "ran"
00:47:02FromDiscord<ghoom> oh so that's a special syntax then
00:47:06FromDiscord<Elegantbeef> Yes
00:47:09FromDiscord<ghoom> coo'
00:47:27FromDiscord<Elegantbeef> It basically states "In the case kind is imagesticker, the field(s) inside of it are accessible"
00:47:51FromDiscord<ghoom> mk
00:47:51FromDiscord<Elegantbeef> The way object variants work is the data can be overlapped
00:47:56*toluene quit (Read error: Connection reset by peer)
00:48:07FromDiscord<Elegantbeef> The size of `sticker` is the size of the largest branch
00:48:21*toluene joined #nim
00:48:28FromDiscord<Elegantbeef> If you care to learn them deeper, they're conventionally called tagged unions outside of Nim
00:48:44FromDiscord<ghoom> got it
00:54:43FromDiscord<# Luke> In reply to @Elegantbeef "Beautiful like a pug": Fax
00:54:54FromDiscord<# Luke> In reply to @Elegantbeef "Beautiful like a pug": What editor do u use?
00:55:45FromDiscord<ghoom> sent a code paste, see https://play.nim-lang.org/#ix=44Zr
00:56:19FromDiscord<ghoom> (edit) "https://play.nim-lang.org/#ix=44Zr" => "https://play.nim-lang.org/#ix=44Zs"
00:56:37FromDiscord<mbenam> Hi all. I have a jester application running behind nginx that gets some data from a sqlite db. Everything works well when i start the app from the command line. If I start it as a service, jester cannot access the db anymore. I changed the db file permission to 666, still it's not working. Any ideas?
00:58:05FromDiscord<ghoom> In reply to @mbenam "Hi all. I have": the app might be looking for the db somewhere else when it's a service
00:58:26FromDiscord<ghoom> like outside the home directory
00:58:34FromDiscord<ghoom> (edit) "like outside the home directory ... " added "(if it's stored there)"
00:58:47FromDiscord<j-james> In reply to @ghoom "which code is more": i think a
00:58:57FromDiscord<j-james> i know options add a bit of overhead
00:58:58FromDiscord<mbenam> Should I try absolute path?
00:59:20FromDiscord<j-james> but i'm not sure how enums are implemented at a low level
00:59:50FromDiscord<ghoom> ok james
01:00:06FromDiscord<ghoom> In reply to @mbenam "Should I try absolute": yes
01:04:56FromDiscord<mbenam> In reply to @ghoom "yes": Yep. That did it. Thanks a lot.
01:05:16FromDiscord<ghoom> ๐Ÿธ๐Ÿ‘
01:05:35FromDiscord<ghoom> In reply to @mbenam "Yep. That did it.": i'm legit surprised that worked XD
01:05:37FromDiscord<ghoom> (edit) "In reply to @mbenam "Yep. That did it.": i'm legit surprised that worked ... XD" added "ngl"
01:08:30FromDiscord<!Patitotective> In reply to @ripluke "What editor do u": he uses kate ๐Ÿคก
01:08:52FromDiscord<j-james> okay, any Option[T] type adds up to eight bytes more memory usage (and each enum entry is eight bytes)
01:09:07FromDiscord<j-james> an `unspecified` enum is slightly more efficient
01:09:08FromDiscord<# Luke> In reply to @Patitotective "he uses kate ๐Ÿคก": ๐Ÿ’€๐Ÿ’€๐Ÿ’€๐Ÿ’€๐Ÿ’€
01:09:17FromDiscord<j-james> but options are _nicer_
01:09:38FromDiscord<ghoom> In reply to @j-james "but options are _nicer_": ๐Ÿ˜ญ hard choice
01:10:34FromDiscord<ghoom> fuck it imma go options
01:11:33FromDiscord<Girvo> I mean I'm using options in embedded firmware dev lol. The overhead is pretty minimal in my experience
01:11:51FromDiscord<ghoom> ๐Ÿ˜ฎโ€๐Ÿ’จ
01:11:55FromDiscord<ghoom> (edit) "๐Ÿ˜ฎโ€๐Ÿ’จ" => "๐Ÿ˜ฎโ€๐Ÿ’จ๐Ÿ‘"
01:12:02FromDiscord<Elegantbeef> Hey we also have sentinel ๐Ÿ˜„โ†ต(@j-james)
01:12:26FromDiscord<ghoom> what's sentinel?
01:12:30FromDiscord<Elegantbeef> https://github.com/beef331/nimtrest/blob/master/sentinels.nim
01:12:39FromDiscord<Elegantbeef> Use a value of that type to signify no value
01:13:14FromDiscord<ghoom> oh shweet
01:14:24FromDiscord<Elegantbeef> It's not much but it's an idea i had that works if you have memory constraints
01:14:30FromDiscord<Elegantbeef> @Girvo\: probably would like it ๐Ÿ˜›
01:14:45FromDiscord<Girvo> Hah I'll have a play!
01:14:59FromDiscord<Elegantbeef> Statically typed sentinel values are much nicer than "returns -1 if error happened" or w/e
01:15:25FromDiscord<Girvo> Though tbh we're nowhere close to running out of memory right now lol, just switching to Nim and writing much cleaner code over ESP-IDF instead of the Arduino layer has freed up hundreds of kBs even with _more_ driver code
01:15:35FromDiscord<Elegantbeef> The fun part is you can actually use it directly in the place of C api calls though
01:15:40FromDiscord<Girvo> Oooooh
01:15:45FromDiscord<Girvo> Now you have my attention D:
01:15:47FromDiscord<Girvo> (edit) "D:" => "๐Ÿ˜„"
01:15:52FromDiscord<Elegantbeef> So if you have a C-api where `-1` is error you can do `Sentinel[cint -1]`
01:16:09FromDiscord<Girvo> Neat. I should be able to use it with `esp_err_t` then
01:16:23FromDiscord<Girvo> Its just a `cint` under the hood
01:16:28FromDiscord<Elegantbeef> Yep
01:17:02FromDiscord<Elegantbeef> It's a relatively simple thing, but quite interesting to me
01:17:07FromDiscord<j-james> In reply to @Elegantbeef "Hey we also have": haha, true
01:17:34FromDiscord<j-james> this is actually exactly what sentinels are good for right
01:17:36FromDiscord<Elegantbeef> Akin to Result types it encourages handling the error
01:18:09FromDiscord<Elegantbeef> If you can spare a value to indicate "no value" yes
01:18:19FromDiscord<Elegantbeef> If all values are a valid value, you need options
01:21:04FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=44Zu
01:26:09FromDiscord<j-james> is your file named `nakefile.nim`?
01:27:15FromDiscord<sOkam!> ye
01:28:03FromDiscord<sOkam!> https://media.discordapp.net/attachments/371759389889003532/999487890147004516/unknown.png
01:31:16FromDiscord<j-james> strange
01:31:33FromDiscord<j-james> try compiling it first with `nim c`, but you shouldn't have to do that
01:39:15FromDiscord<sharpcdf> does anyone know where you put window manager executables so that you can run them instead of your desktop environment? i have worm but it doesnt show up on the menu to switch
01:39:40FromDiscord<Elegantbeef> You have to populate a file in your window manager so you can select them
01:40:32FromDiscord<Prestige> Do you mean the drop down in your display manager before you log in @sharpcdf ?
01:40:41FromDiscord<sharpcdf> In reply to @Avahe "Do you mean the": yea
01:41:01FromDiscord<sharpcdf> well it doesnt look like im able to run it in the first place because its missing a .so file
01:41:16FromDiscord<Prestige> I think you need to put the `.desktop` file in `/usr/share/xsessions/`
01:41:42FromDiscord<Prestige> sent a code paste, see https://paste.rs/IOd
01:42:26FromDiscord<sharpcdf> im using worm but i should be able to do the same thing
01:42:52FromDiscord<Prestige> Yeah, then just make `worm.desktop` and put it in that directory
01:43:20FromDiscord<sharpcdf> In reply to @sharpcdf "well it doesnt look": just downloaded it
01:43:22FromDiscord<Prestige> Curious how well worm functions
01:43:40FromDiscord<sharpcdf> seems nice enough
01:44:05FromDiscord<# Luke> In reply to @sharpcdf "does anyone know where": Lol use nimdow it's better at tiling
01:44:35FromDiscord<Prestige> I wish I could just join forces with codic (I think that was his username)
01:44:46FromDiscord<# Luke> Yea it's codic
01:44:52FromDiscord<# Luke> codic#5624
01:45:06FromDiscord<sharpcdf> im trying out both
01:45:18FromDiscord<sharpcdf> plus nimdow was updated a while ago i think
01:45:24FromDiscord<sharpcdf> worm was updated more recently
01:45:43FromDiscord<# Luke> In reply to @sharpcdf "plus nimdow was updated": But it still works fine lol update time doesn't really matter
01:45:53FromDiscord<Prestige> I pushed an update 2 weeks ago
01:45:57FromDiscord<Prestige> ๐Ÿคทโ€โ™‚๏ธ
01:46:03FromDiscord<sharpcdf> oh idk lol
01:46:07FromDiscord<sharpcdf> also didnt know you were the maintainer
01:46:09FromDiscord<sharpcdf> lmao
01:46:17FromDiscord<# Luke> In reply to @sharpcdf "also didnt know you": Lol rip
01:46:25FromDiscord<Elegantbeef> sharp lives in a world that FOSS is deprecated if it isnt updated tomorrow
01:46:43FromDiscord<# Luke> Updated tommorow?
01:46:50FromDiscord<Elegantbeef> Yes
01:46:50FromDiscord<Prestige> Lol
01:47:03FromDiscord<sharpcdf> In reply to @Elegantbeef "sharp lives in a": how did you know
01:47:21FromDiscord<sharpcdf> aur is unmaintained
01:47:26FromDiscord<Elegantbeef> I've seen you ask inane questions about whether X software is dead due to not having a commit next friday
01:47:28FromDiscord<Prestige> I think Nimdow is getting a new contributor as well, which is exciting for me
01:47:34FromDiscord<# Luke> In reply to @sharpcdf "how did you know": Sharp are u using vscode to edit a desktop file??
01:47:46FromDiscord<# Luke> It seems a bit much
01:47:51FromDiscord<sharpcdf> In reply to @ripluke "Sharp are u using": yea is that a bad thing
01:47:51FromDiscord<Rika> Omg Nim hasnโ€™t had a release recently is it dead
01:47:52FromDiscord<sharpcdf> lmao idk
01:47:56FromDiscord<sharpcdf> In reply to @Rika "Omg Nim hasnโ€™t had": yes
01:47:59FromDiscord<sharpcdf> im switching to go now
01:48:01FromDiscord<sharpcdf> nim is dead to me
01:48:09FromDiscord<sharpcdf> dead language
01:48:17FromDiscord<# Luke> In reply to @sharpcdf "im switching to go": You should switch to vlang
01:48:23FromDiscord<Prestige> Rust last commit 4 hours ago, can't believe that project died already
01:48:23FromDiscord<# Luke> Best lang
01:48:27FromDiscord<sharpcdf> In reply to @ripluke "You should switch to": LMFAO
01:48:49FromDiscord<sharpcdf> the lang that shall not be named
01:49:00FromDiscord<# Luke> Guys Erlang is ded cuz it was updated last century
01:49:19FromDiscord<Prestige> I literally had someone earlier ask if I know rust and if I want to use rust to work on an NFT platform
01:49:21FromDiscord<Prestige> I died inside
01:49:30FromDiscord<Rika> Hey wait donโ€™t insult Erlang
01:49:43FromDiscord<Elegantbeef> The amount of people that have asked me to contribute to some crypto project is astounding
01:49:45FromDiscord<# Luke> In reply to @Avahe "I literally had someone": Solana nfts be like
01:49:49FromDiscord<# Luke> ๐Ÿฆ€
01:50:06FromDiscord<!Patitotective> In reply to @Elegantbeef "The amount of people": thats not stonks
01:50:26FromDiscord<# Luke> Someone should make crowncoin
01:50:30FromDiscord<# Luke> Written in nim
01:50:36FromDiscord<Rika> Canโ€™t be asked to help if youโ€™ve got no community participation
01:50:55FromDiscord<Prestige> Hah
01:51:55FromDiscord<Prestige> Elegantbeef speaking of my engine supporting shaders, do you have much experience writing shaders?
01:52:37FromDiscord<Elegantbeef> A bunch
01:52:59FromDiscord<sharpcdf> lmao
01:53:01FromDiscord<sharpcdf> ๐Ÿ˜”
01:53:05FromDiscord<sharpcdf> sent a code paste, see https://play.nim-lang.org/#ix=44ZC
01:53:08FromDiscord<Prestige> uh what
01:53:17FromDiscord<sharpcdf> its permission denied i cant write to it at all
01:53:30FromDiscord<Prestige> create a new file and write to it, then cp or mv it to that directory
01:53:39FromDiscord<sharpcdf> sent a code paste, see https://play.nim-lang.org/#ix=44ZD
01:53:43FromDiscord<Prestige> bruh what's a text editor lol
01:54:03FromDiscord<# Luke> In reply to @sharpcdf "its permission denied i": U can't run vsc as sudo
01:54:03FromDiscord<sharpcdf> text editors dont work either ๐Ÿ˜”
01:54:09FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=44ZE
01:54:13FromDiscord<sharpcdf> In reply to @ripluke "U can't run vsc": i know i tried nano too
01:54:15FromDiscord<sharpcdf> and echo
01:54:17FromDiscord<# Luke> In reply to @sharpcdf "text editors dont work": You use this thing called sudo lmao
01:54:23FromDiscord<sharpcdf> In reply to @ripluke "You use this thing": i tried
01:54:23FromDiscord<sharpcdf> bruh
01:54:25FromDiscord<# Luke> In reply to @sharpcdf "i know i tried": Wymmm
01:54:37FromDiscord<# Luke> sudo nano works fine
01:54:41FromDiscord<Prestige> @sharpcdf create the file in your home directory first, then sudo cp it
01:54:45FromDiscord<Prestige> if you want
01:54:51FromDiscord<sharpcdf> yea ill do that
01:54:51FromDiscord<# Luke> In reply to @Avahe "<@459463405636419594> create the file": ^
01:54:56FromDiscord<sharpcdf> wait can you not sudo cd
01:55:00FromDiscord<sharpcdf> wait shit
01:55:02FromDiscord<sharpcdf> im stupid
01:55:02FromDiscord<sharpcdf> lmao
01:55:31FromDiscord<sharpcdf> (edit) "wait" => "~~wait" | "cd" => "cd~~"
01:55:42FromDiscord<sharpcdf> (edit) "~~wait" => "no looking||~~wait" | "cd~~" => "cd~~||"
01:56:05FromDiscord<sharpcdf> ๐Ÿ˜‚
01:56:16FromDiscord<Prestige> Elegantbeef Cool - I make poke your brain about it sometime. I want to start using shaders but haven't had a use case yet
01:57:15FromDiscord<Prestige> maybe like a snowing shader or a reflective pool
01:57:15FromDiscord<# Luke> Does saying someones name in matrix basically ping them
01:57:21FromDiscord<sOkam!> is `nake` supposed to offer anything better than `nimble`?
01:57:27FromDiscord<sOkam!> what's the diff?
01:57:58FromDiscord<sharpcdf> In reply to @sOkam! "is `nake` supposed to": its old, before nimscript i think
01:58:01FromDiscord<sharpcdf> might be wrong
01:58:08FromDiscord<Elegantbeef> Nimble uses Nimscript, nake uses nim
01:58:23FromDiscord<sOkam!> oh so nake is compiled code, i guess
01:58:29FromDiscord<sharpcdf> ah ok
01:58:30FromDiscord<!Patitotective> yes
01:58:35FromDiscord<sOkam!> that sounds good, ye
01:58:55FromDiscord<sOkam!> where can I get support about it? this error I'm getting makes no sense
01:59:51FromDiscord<!Patitotective> i dont think you can get supportโ†ตi think the repo is abandoned
02:00:06FromDiscord<sOkam!> oh its abandoned
02:00:12FromDiscord<!Patitotective> but you can always open an issue and see if someone says something ๐Ÿ˜ โ†ตhttps://github.com/fowlmouth/nake
02:00:20FromDiscord<sOkam!> crap, then nimscript it is
02:00:57FromDiscord<!Patitotective> what are you using nake for ๐Ÿ‘€
02:01:03FromDiscord<# Luke> Why does nake remind me so much of rake with ruby
02:01:06FromDiscord<sOkam!> building ๐Ÿคทโ€โ™‚๏ธ
02:01:20FromDiscord<sOkam!> just wanted a tool to automate all the build options
02:01:29FromDiscord<Prestige> ah, yeah nimble is fine for that
02:01:41FromDiscord<!Patitotective> yea, i dont know why you went for nake in the first place
02:01:48FromDiscord<# Luke> In reply to @sOkam! "just wanted a tool": You could just use a config.nims
02:01:50FromDiscord<sOkam!> ๐Ÿคทโ€โ™‚๏ธ
02:02:09FromDiscord<# Luke> In reply to @ripluke "You could just use": What options do u need lol
02:02:30FromDiscord<sharpcdf> worm sucks
02:02:32FromDiscord<sharpcdf> sent a code paste, see https://play.nim-lang.org/#ix=44ZG
02:02:32FromDiscord<sharpcdf> nimdow better
02:02:35FromDiscord<sOkam!> couldn't find nimble docs anywhere, so i went for what i had used before (without knowing about goods or bads of any)
02:02:39FromDiscord<# Luke> In reply to @sharpcdf "nimdow better": Yup
02:02:54FromDiscord<Elegantbeef> Goodwm when? ๐Ÿ˜„
02:03:07FromDiscord<# Luke> In reply to @sOkam! "couldn't find nimble docs": https://github.com/nim-lang/nimbleโ†ตโ†ตโ†ตIt has a section on tasks in the readme
02:03:52FromDiscord<Prestige> sent a code paste, see https://play.nim-lang.org/#ix=44ZH
02:03:53FromDiscord<# Luke> In reply to @Elegantbeef "Goodwm when? ๐Ÿ˜„": Configured in nim ๐Ÿ‘€
02:04:10FromDiscord<Elegantbeef> Through wasmโ†ต(@.luke)
02:04:13FromDiscord<# Luke> sent a code paste, see https://play.nim-lang.org/#ix=44ZI
02:04:16FromDiscord<sharpcdf> In reply to @Avahe "Weird, it failed to": yea, when i tried just loading it up by itself polybar showed but nothing else
02:04:19FromDiscord<!Patitotective> why people define tasks in config.nims instead of the nimble file ๐Ÿ’€
02:04:20FromDiscord<sharpcdf> so i went back into gnome then ran it
02:04:23FromDiscord<!Patitotective> (edit) "why ... people" added "do"
02:04:31FromDiscord<# Luke> In reply to @Elegantbeef "Through wasm (<@704106773660827690>)": So then u can make the c/rust people happy to :P
02:04:40FromDiscord<# Luke> In reply to @sharpcdf "so i went back": That's why
02:04:52FromDiscord<# Luke> You can't run a wm from a desktop environment loo
02:04:55FromDiscord<# Luke> (edit) "loo" => "lol"
02:05:03FromDiscord<sharpcdf> i thought you said you could
02:05:07FromDiscord<sharpcdf> rip
02:05:07FromDiscord<# Luke> Because that desktop environment already has a wm running
02:05:14FromDiscord<sharpcdf> well anyways nothing loads
02:05:25FromDiscord<sharpcdf> and i have a hotkey that should open rofi when i press super
02:05:27FromDiscord<# Luke> In reply to @sharpcdf "i thought you said": Yea if u can kill the wm that the de is using
02:05:32FromDiscord<TryAngle> In reply to @Patitotective "why do people define": mad?
02:05:35FromDiscord<sharpcdf> but it doesnt
02:05:47FromDiscord<sharpcdf> In reply to @Patitotective "why do people define": its a revolt
02:05:52FromDiscord<# Luke> In reply to @sharpcdf "but it doesnt": Where did u define this hotkey?
02:05:55FromDiscord<Prestige> In reply to @sharpcdf "and i have a": How do you have that configured?
02:06:13FromDiscord<sharpcdf> its a hotkey with dxhd
02:06:17FromDiscord<sharpcdf> its a bash file
02:06:25FromDiscord<# Luke> In reply to @ripluke "Yea if u can": Like I run xfce with worm all the time
02:06:34FromDiscord<Prestige> Oh wow someone actually uses dxhd lol, my friend is the author of dxhd
02:06:35FromDiscord<# Luke> In reply to @sharpcdf "its a hotkey with": sxhkd?
02:06:42FromDiscord<TryAngle> did u reload ur scirpst already? this once happened to me ๐Ÿ’€
02:06:45FromDiscord<sharpcdf> oh thats cool
02:06:52FromDiscord<# Luke> In reply to @Avahe "Oh wow someone actually": Wait what that's a thing?
02:06:54FromDiscord<sharpcdf> i saw it and it looked pretty nice compared to sxhkd
02:07:03FromDiscord<Elegantbeef> indeedโ†ต(@.luke)
02:07:18FromDiscord<Prestige> https://github.com/dakyskye/dxhd
02:07:23FromDiscord<sharpcdf> In reply to @ripluke "Wait what that's a": its a hotkey daemon based on sxhkd
02:07:26FromDiscord<sharpcdf> in go
02:07:27FromDiscord<# Luke> In reply to @Elegantbeef "indeed (<@704106773660827690>)": Key to success is making the rustaceans happy
02:07:35FromDiscord<!Patitotective> In reply to @TryAngle "mad?": its just that nimble is the way
02:07:38FromDiscord<# Luke> In reply to @sharpcdf "in go": Ohh no
02:07:44FromDiscord<sharpcdf> In reply to @ripluke "Ohh no": yes!
02:07:46FromDiscord<sharpcdf> go better!
02:07:49FromDiscord<sharpcdf> unga bunga!
02:07:57FromDiscord<sharpcdf> go with go!
02:07:57FromDiscord<# Luke> In reply to @sharpcdf "go better!": For the writer sure
02:08:17FromDiscord<# Luke> Go is fun to write
02:08:23FromDiscord<# Luke> Well not to me
02:08:29FromDiscord<# Luke> But some people enjoy it
02:08:45FromDiscord<sharpcdf> (me)
02:08:54FromDiscord<sharpcdf> (even though d is a thousand times better)
02:09:04FromDiscord<Prestige> Anyway, are you sure dxhd was running?
02:09:07FromDiscord<sharpcdf> (and nim can easily replace it with desktop and cli apps)
02:09:08FromDiscord<TryAngle> In reply to @sharpcdf "in go": I'm mad rustacean now ๐Ÿ˜ 
02:09:14FromDiscord<sOkam!> How do I find out how to use these?โ†ตhttps://nim-lang.org/docs/nimc.html#compiler-usage-configuration-files
02:09:23FromDiscord<sOkam!> They only mention their existence, not their usage ๐Ÿ˜”
02:09:36FromDiscord<sharpcdf> In reply to @TryAngle "I'm mad rustacean now": rustaceans will never surpass gophers!
02:09:50FromDiscord<sharpcdf> seize him!
02:09:50FromDiscord<Elegantbeef> You're a lot of weird fuckers
02:09:53FromDiscord<# Luke> What are Nim people called?
02:09:57FromDiscord<TryAngle> nimmers
02:09:58FromDiscord<Elegantbeef> Normalโ†ต(@.luke)
02:09:59FromDiscord<sharpcdf> kings ๐Ÿ‘‘
02:10:00FromDiscord<sharpcdf> lmfao
02:10:07FromDiscord<TryAngle> nimblies
02:10:09FromDiscord<!Patitotective> In reply to @Elegantbeef "Normal (<@704106773660827690>)": hahah yea
02:10:21FromDiscord<# Luke> In reply to @Elegantbeef "Normal (<@704106773660827690>)": Not really we have @sharpcdf /j
02:10:26FromDiscord<sharpcdf> facts
02:10:31FromDiscord<sharpcdf> you cant compare
02:10:35FromDiscord<Elegantbeef> They just praised Go, they dont belong
02:10:44FromDiscord<Prestige> Time to go
02:10:46FromDiscord<# Luke> In reply to @sharpcdf "kings ๐Ÿ‘‘": Yes we use the crownlang
02:10:46FromDiscord<sharpcdf> i am a part of almost every language
02:10:55FromDiscord<TryAngle> In reply to @sharpcdf "rustaceans will never surpass": we will come in masses
02:11:01FromDiscord<TryAngle> and RIIR every last line of code
02:11:01FromDiscord<# Luke> In reply to @Avahe "Time to go": That pun ๐Ÿ’€
02:11:02FromDiscord<TryAngle> u wrote
02:11:17FromDiscord<TryAngle> there is no escape
02:11:22FromDiscord<TryAngle> only oxidization
02:11:29FromDiscord<sharpcdf> In reply to @TryAngle "we will come in": we have better c interop we swear
02:11:31FromDiscord<# Luke> I guess we all can be called ninrods
02:11:41FromDiscord<# Luke> (edit) "ninrods" => "nimrods"
02:11:53FromDiscord<sharpcdf> https://media.discordapp.net/attachments/371759389889003532/999498922395451392/unknown.png
02:11:56FromDiscord<sharpcdf> this is just some
02:11:57FromDiscord<TryAngle> nimlies sounds kinda cute
02:11:59FromDiscord<sharpcdf> a small fraction
02:12:13FromDiscord<sharpcdf> nim needs a living mascot
02:12:15FromDiscord<# Luke> In reply to @TryAngle "nimlies sounds kinda cute": Idek how to say that
02:12:15FromDiscord<sharpcdf> not a crown
02:12:20FromDiscord<Prestige> I've heard "nimmers" and "nimions"
02:12:26FromDiscord<TryAngle> OMG
02:12:27FromDiscord<sharpcdf> nimions is good
02:12:28FromDiscord<TryAngle> NIMIONS
02:12:31FromDiscord<# Luke> In reply to @sharpcdf "not a crown": :nimRawr: we have this
02:12:33FromDiscord<TryAngle> NO WAY
02:12:36FromDiscord<TryAngle> this is too good
02:12:47FromDiscord<sharpcdf> In reply to @TryAngle "NO WAY": ok so what are we nimdgers or something lmao
02:12:51FromDiscord<# Luke> TryAngle loves being a nimion
02:12:57FromDiscord<Elegantbeef> I'm going to nimoff myself if it's fine for nimeveryone else
02:13:04FromDiscord<sharpcdf> nimno
02:13:13FromDiscord<!Patitotective> In reply to @sharpcdf "": ๐Ÿคฃ python above nim
02:13:15FromDiscord<sharpcdf> nimyou nimcan nimnever nimleave
02:13:16FromDiscord<# Luke> In reply to @Elegantbeef "I'm going to nimoff": What is nimoff?
02:13:23FromDiscord<sharpcdf> In reply to @Patitotective "๐Ÿคฃ python above nim": its not in order lmao
02:13:27FromDiscord<Elegantbeef> Cmon luke you can remove 3 letters
02:13:44FromDiscord<# Luke> You're going to off yourself??
02:13:47FromDiscord<sharpcdf> were programmers not english majors
02:13:56FromDiscord<Nimion #1712> In reply to @sharpcdf "": go on top ๐Ÿคข
02:13:58FromDiscord<Elegantbeef> Here i'll help `str.replace("nim")`
02:14:01FromDiscord<!Patitotective> In reply to @sharpcdf "nim needs a living": https://media.discordapp.net/attachments/371759389889003532/999499455290146936/unknown.png
02:14:11FromDiscord<# Luke> In reply to @Patitotective "": Help
02:14:18FromDiscord<Prestige> I have nothing but weird things to say about that picture
02:14:18FromDiscord<Nimion #1712> isn't that the Profile picture of somebody here?
02:14:20FromDiscord<# Luke> What is that
02:14:26FromDiscord<!Patitotective> In reply to @TryAngle "isn't that the Profile": hmmmm
02:14:31FromDiscord<Elegantbeef> We dont need to hear how much you want to fuck itโ†ต(@Prestige)
02:14:35FromDiscord<sharpcdf> sent a code paste, see https://play.nim-lang.org/#ix=44ZL
02:14:35FromDiscord<sharpcdf> my official tier list
02:14:39FromDiscord<Prestige> Lmao beef
02:14:44FromDiscord<sharpcdf> In reply to @Patitotective "": what the fuck
02:14:46FromDiscord<sharpcdf> thats not living
02:14:47FromDiscord<sharpcdf> thats a monster
02:14:50FromDiscord<# Luke> In reply to @Elegantbeef "Here i'll help `str.replace("nim")`": Unfortunately I am not a portable Nim compiler :/
02:14:56FromDiscord<Nimion #1712> In reply to @Elegantbeef "We dont need to": hot ๐Ÿ˜ณ
02:15:03FromDiscord<!Patitotective> In reply to @sharpcdf "thats a monster": hey its really cute
02:15:06FromDiscord<# Luke> In reply to @Elegantbeef "We dont need to": ...
02:15:14FromDiscord<!Patitotective> i really liked this one https://github.com/nim-lang/RFCs/issues/104 https://media.discordapp.net/attachments/371759389889003532/999499761113632848/unknown.png
02:15:17FromDiscord<sharpcdf> In reply to @Patitotective "": this abomination should be in the deepest darkest pits of hell
02:15:23FromDiscord<Elegantbeef> Hey prestige left that joke openeded dont look at me
02:15:26FromDiscord<# Luke> In reply to @Patitotective "hey its really cute": Patio pls go get your eyes checked out
02:15:30FromDiscord<Elegantbeef> open ended\
02:15:35FromDiscord<sharpcdf> this looks like one of batman's enemies
02:15:42FromDiscord<# Luke> In reply to @ripluke "Patio pls go get": It's an egg with ears and legs
02:15:51FromDiscord<sharpcdf> exactly
02:16:02FromDiscord<sharpcdf> and a tail with a smaller egg at the end
02:16:10FromDiscord<Nimion #1712> how about a skull as mascot
02:16:12FromDiscord<!Patitotective> In reply to @ripluke "Patio pls go get": Lue pls go get your spelling checked out
02:16:12FromDiscord<Nimion #1712> oh wait...
02:16:18FromDiscord<!Patitotective> In reply to @TryAngle "how about a skull": ๐Ÿ’€
02:16:19FromDiscord<# Luke> In reply to @sharpcdf "and a tail with": It's a clown nose
02:16:20FromDiscord<sharpcdf> In reply to @TryAngle "how about a skull": i forgor ๐Ÿ’€
02:16:35FromDiscord<# Luke> In reply to @Patitotective "Lue pls go get": Ironic how you spelt my name wrong
02:16:36FromDiscord<sharpcdf> In reply to @ripluke "It's a clown nose": we ar no clwns!
02:16:43FromDiscord<!Patitotective> In reply to @ripluke "Ironic how you spelt": ironic
02:16:46FromDiscord<Prestige> Idk why everyone wants a "living" mascot
02:16:46FromDiscord<sharpcdf> In reply to @ripluke "Ironic how you spelt": LMFAO
02:16:52FromDiscord<j-james> i liked the honey badger a lot
02:16:56FromDiscord<j-james> the lion seems a bit generic
02:17:00FromDiscord<!Patitotective> why you added # btw @.luke
02:17:04FromDiscord<Nimion #1712> how about a Binturong as mascott
02:17:05FromDiscord<sharpcdf> In reply to @Avahe "Idk why everyone wants": who wants a language that just has a crown
02:17:08FromDiscord<sharpcdf> go has gophers
02:17:10FromDiscord<sharpcdf> rust has crabs
02:17:14FromDiscord<Nimion #1712> Binturongs are the biggest chad animals
02:17:16FromDiscord<Prestige> I mean a lot of languages don't have living mascots
02:17:18FromDiscord<sharpcdf> haxe has a polygon
02:17:23FromDiscord<sharpcdf> odin has a cool font
02:17:24FromDiscord<# Luke> In reply to @Avahe "Idk why everyone wants": Because we just wanna be as good as the rustaceans or the gophers ๐Ÿ˜ญ
02:17:25FromDiscord<!Patitotective> whats c mascot :o
02:17:26FromDiscord<sharpcdf> nim just has a crown
02:17:27FromDiscord<j-james> In reply to @Patitotective "why you added #": to catapult himself to the top of the online users list lmao
02:17:29FromDiscord<sharpcdf> c is the letter c
02:17:33FromDiscord<Prestige> java, c++, c, c#, javascript, ruby...
02:17:33FromDiscord<sharpcdf> d is the letter d
02:17:34FromDiscord<# Luke> In reply to @Patitotective "why you added #": I am just a comment
02:17:52FromDiscord<!Patitotective> In reply to @j-james "to catapult himself to": such a narcissist LOL
02:17:54FromDiscord<sharpcdf> In reply to @Avahe "java, c++, c, c#,": javascript is yellow and js
02:17:57FromDiscord<sharpcdf> ruby is rub
02:17:58FromDiscord<sharpcdf> y
02:18:04FromDiscord<sharpcdf> c++ and c# are c++ and c#
02:18:06FromDiscord<sharpcdf> java is mug of java
02:18:06FromDiscord<!Patitotective> In reply to @sharpcdf "c is the letter": then nim is the crown
02:18:18FromDiscord<sharpcdf> but even the letters are living
02:18:22FromDiscord<sharpcdf> here let me pull it up
02:18:36FromDiscord<j-james> In reply to @Patitotective "such a narcissist LOL": i know, who would add punctuation to the beginning of their name to do that @!Patitotective
02:18:37FromDiscord<sharpcdf> https://media.discordapp.net/attachments/371759389889003532/999500617443704923/unknown.png
02:18:38FromDiscord<sharpcdf> see
02:18:41FromDiscord<# Luke> In reply to @sharpcdf "javascript is yellow and": I like to think of it as a sticky note
02:18:42FromDiscord<sharpcdf> d has a live mascot
02:18:53FromDiscord<sharpcdf> at least give the crown legs or something
02:18:57FromDiscord<Nimion #1712> nim should take rune"๐Ÿ‘‘"โ†ตas mascott @ElegantBeef
02:19:14FromDiscord<!Patitotective> In reply to @TryAngle "nim should take rune"๐Ÿ‘‘"": i dont like that crown
02:19:17FromDiscord<# Luke> In reply to @j-james "to catapult himself to": Patio is still higher ๐Ÿ’€
02:19:19FromDiscord<!Patitotective> In reply to @j-james "i know, who would": so dumb
02:19:40FromDiscord<sharpcdf> LMAO
02:19:45FromDiscord<# Luke> In reply to @j-james "i know, who would": Hmm I wonder...
02:20:02FromDiscord<$sharpcdf> gg
02:20:08FromDiscord<!Patitotective> In reply to @ripluke "Patio is still higher": ๐Ÿ˜Ž
02:20:18FromDiscord<# Luke> In reply to @Patitotective "๐Ÿ˜Ž": I can change that
02:20:27FromDiscord<.> :)
02:20:29FromDiscord<$:{}sharpcdf> almost there
02:20:34FromDiscord<.> Oh wait no
02:20:40FromDiscord<!Patitotective> now you're lower ๐Ÿคก
02:20:42FromDiscord<$:{}sharpcdf:}#$)*%$(&%*@^#%&@$> how
02:20:44FromDiscord<$:{}sharpcdf:}#$)*%$(&%*@^#%&@$> the fuck
02:20:45FromDiscord<Prestige> What the hell is happening
02:20:46FromDiscord<$:{}sharpcdf:}#$)*%$(&%*@^#%&@$> am i not on top
02:20:52FromDiscord<$:{}sharpcdf:}#$)*%$(&%*@^#%&@$> nothing
02:20:52FromDiscord<!Patitotective> ! is the first characther ๐Ÿคก
02:20:53FromDiscord<$:{}sharpcdf:}#$)*%$(&%*@^#%&@$> i swear
02:21:00FromDiscord<Prestige> ! comes before $
02:21:02FromDiscord<$:{}sharpcdf:}#$)*%$(&%*@^#%&@$> In reply to @Patitotective "! is the first": you're wrong
02:21:07FromDiscord<!Patitotective> In reply to @sharpcdf "you're wrong": nope
02:21:07FromDiscord<!> @!Patitotective beat that
02:21:21FromDiscord<!Patitotective> In reply to @ripluke "<@762008715162419261> beat that": or get banned for spam
02:21:21FromDiscord<j-james> In reply to @Patitotective "! is the first": i just realized that ๐Ÿคฆ
02:21:24FromDiscord<~sharpcdf> HOW
02:21:27FromDiscord<~sharpcdf> ~ is before !
02:21:33FromDiscord<~sharpcdf> on us keyboard at least
02:21:34FromDiscord<~sharpcdf> bruh
02:21:36FromDiscord<Prestige> https://media.discordapp.net/attachments/371759389889003532/999501366743543848/unknown.png
02:21:40FromDiscord<~sharpcdf> oh shit
02:21:43FromDiscord<~sharpcdf> ok bet
02:21:51FromDiscord<# Luke> I am back
02:22:02FromDiscord<# Luke> To being a comment
02:22:16FromDiscord<Prestige> What are you all working on?
02:22:20FromDiscord<@sharpcdf> i am
02:22:21FromDiscord<@sharpcdf> going to
02:22:23FromDiscord<@sharpcdf> do
02:22:28FromDiscord<@sharpcdf> heinous crimes
02:22:34FromDiscord<@sharpcdf> to my username
02:22:41FromDiscord<Nimion #1712> In reply to @Avahe "What are you all": I'm studying data strctures and algorithms for uni test in 2 days ๐Ÿ˜ญ
02:22:45FromDiscord<@sharpcdf> ~~and to rustaceans~~
02:22:47FromDiscord<Nimion #1712> and I'm procastinating
02:22:49FromDiscord<Nimion #1712> too much
02:22:58FromDiscord<# Luke> In reply to @Avahe "What are you all": Idek what I'm doing
02:23:04FromDiscord<@sharpcdf> jokes on you i dont even have school for another 3 weeks
02:23:04FromDiscord<!Patitotective> In reply to @Avahe "What are you all": stuck with httpclient bugโ†ตand stuck with custom imgui text editor
02:23:07FromDiscord<Prestige> @TryAngle You can always procrastinate later
02:23:14FromDiscord<!Patitotective> In reply to @Avahe "<@147447489316913152> You can always": true
02:23:24FromDiscord<# Luke> In reply to @Avahe "<@147447489316913152> You can always": Procrastinating procrastination
02:23:26FromDiscord<@sharpcdf> oh yea @!Patitotective what should i add to jitter
02:23:29FromDiscord<@sharpcdf> idk what to add next
02:23:31FromDiscord<Prestige> wait, is it that bug I commented on github @!Patitotective ?
02:23:45FromDiscord<# Luke> In reply to @sharpcdf "oh yea <@762008715162419261> what": Add an illwill frontend
02:23:46FromDiscord<Nimion #1712> In reply to @Avahe "<@147447489316913152> You can always": I have prensentation 2 days after that and another test 3 days after that, there is no later ๐Ÿฅฒ
02:23:55FromDiscord<@sharpcdf> In reply to @ripluke "Add an illwill frontend": why tf would i do that
02:24:05FromDiscord<Prestige> https://github.com/nim-lang/Nim/issues/20066
02:24:08FromDiscord<@sharpcdf> that would remove the simple portion of it
02:24:10FromDiscord<!Patitotective> In reply to @Avahe "wait, is it that": are you avahe-kellenberger?
02:24:14FromDiscord<Prestige> Yeah
02:24:40FromDiscord<!Patitotective> In reply to @sharpcdf "oh yea <@762008715162419261> what": i need to check it first
02:24:45FromDiscord<@sharpcdf> In reply to @Patitotective "i need to check": yes sir
02:24:45FromDiscord<!Patitotective> In reply to @Avahe "Yeah": why lol
02:24:50FromDiscord<Nimion #1712> In reply to @Avahe "Yeah": LOL!
02:24:54FromDiscord<# Luke> In reply to @sharpcdf "that would remove the": Good point
02:24:55FromDiscord<Nimion #1712> I almsot named a package of mine nimdow
02:24:55FromDiscord<@sharpcdf> pull instead of getting the release
02:25:01FromDiscord<@sharpcdf> pretty sure its more stable
02:25:09FromDiscord<Nimion #1712> but I went for NimWin
02:25:11FromDiscord<Prestige> Why am I avahe-kellenberger? Uh, Idk how to answer that
02:25:11FromDiscord<# Luke> Does it have terminal colors? @sharpcdf
02:25:18FromDiscord<@sharpcdf> In reply to @ripluke "Does it have terminal": duh its a package manager
02:25:19FromDiscord<@sharpcdf> lmao
02:25:20FromDiscord<@sharpcdf> yea
02:25:24FromDiscord<Elegantbeef> Your parents really wanted no one to be able to pronounce your nameโ†ต(@Prestige)
02:25:28FromDiscord<@sharpcdf> just the basic ones in std/terminal
02:25:34FromDiscord<Prestige> Lol yeah Elegantbeef
02:25:38FromDiscord<# Luke> Does it have sexy progress bars?
02:25:48FromDiscord<@sharpcdf> In reply to @Avahe "Lol yeah Elegantbeef": im gonna be honest your last name sounds like a fast food chain
02:25:57FromDiscord<# Luke> In reply to @sharpcdf "im gonna be honest": Beef?
02:25:58FromDiscord<Elegantbeef> Cool
02:25:58FromDiscord<!Patitotective> yea prestige, that works but i need it not to freeze the main thread (and i also dont want async procs :p)
02:26:03FromDiscord<Prestige> Lol it's German
02:26:07FromDiscord<Nimion #1712> I use arch linux too btw. @Prestige ๐Ÿฅบ
02:26:14FromDiscord<Prestige> Nice
02:26:16FromDiscord<Nimion #1712> In reply to @Avahe "Lol it's German": avahe is not german
02:26:19FromDiscord<@sharpcdf> In reply to @ripluke "Does it have sexy": ill be honest i dont know how to do that and update it during the download
02:26:23FromDiscord<Prestige> My last name is
02:26:24FromDiscord<@sharpcdf> i probably need asynchttpclient but idk
02:26:29FromDiscord<@sharpcdf> In reply to @Avahe "Lol it's German": ah ok
02:26:30FromDiscord<!Patitotective> i thought you were from a spanish-speaking country prestige
02:26:45FromDiscord<Elegantbeef> The US is spanish speaking
02:26:45FromDiscord<# Luke> In reply to @sharpcdf "ill be honest i": Ah, you could always just not implement the backend of it ๐Ÿ’€
02:27:02FromDiscord<!Patitotective> In reply to @Elegantbeef "The US is spanish": เถž
02:27:22FromDiscord<@sharpcdf> In reply to @Patitotective "เถž": al\lien !!!!!!!!!!
02:27:24FromDiscord<Prestige> In reply to @Patitotective "yea prestige, that works": I mean if you don't want to use async and also don't want it to block... the only other option is using another thread, I think
02:27:24FromDiscord<# Luke> In reply to @Patitotective "i thought you were": Wdym)
02:27:26FromDiscord<@sharpcdf> imposta!
02:27:28FromDiscord<# Luke> (edit) "Wdym)" => "Wdym?"
02:27:36FromDiscord<@sharpcdf> In reply to @ripluke "Ah, you could always": wdym by that
02:27:40FromDiscord<Nimion #1712> เถž
02:27:55FromDiscord<!Patitotective> In reply to @Avahe "I mean if you": beef says async for IO operations
02:27:56FromDiscord<# Luke> In reply to @sharpcdf "wdym by that": Have a for loop just incrementing it
02:28:03FromDiscord<Elegantbeef> "dont want async procs" well why are you being dumb
02:28:05FromDiscord<!Patitotective> In reply to @ripluke "Wdym?": i mean what i said...
02:28:07FromDiscord<# Luke> In reply to @ripluke "Have a for loop": But don't actually do that
02:28:08FromDiscord<@sharpcdf> sent a code paste, see https://play.nim-lang.org/#ix=44ZS
02:28:11FromDiscord<Prestige> Yeah you should be using async here
02:28:18FromDiscord<@sharpcdf> In reply to @ripluke "But don't actually do": yea ik lol it wouldnt be accurate at all
02:28:24FromDiscord<Elegantbeef> Could use CPS if you dont want async and dont want threads
02:28:28FromDiscord<@sharpcdf> i need an async client but idk how to get the progress
02:28:29FromDiscord<Elegantbeef> But good luck learning how to use CPS here
02:28:34FromDiscord<Rika> why dont you want async in the firstplace
02:28:35FromDiscord<Rika> (edit) "firstplace" => "first place"
02:28:38FromDiscord<!Patitotective> In reply to @Elegantbeef ""dont want async procs"": i mean i dont to make my main imgui loop async
02:28:47FromDiscord<Elegantbeef> Then dont?
02:28:58FromDiscord<Elegantbeef> You can use async with a main loop without making it async
02:29:00FromDiscord<# Luke> In reply to @sharpcdf "yea ik lol it": I wonder who would do that, cough cough ||iOS update bar||
02:29:12FromDiscord<@sharpcdf> LMFAO
02:29:18FromDiscord<Rika> you can but i personally do; you can just manually poll() in the sync loop
02:29:36FromDiscord<!Patitotective> In reply to @Elegantbeef "You can use async": thats what im trying to do (?)โ†ตwhat i meant by "dont want async procs" is `{.async.}`
02:29:37FromDiscord<@sharpcdf> cough cough ||windows approximate length||
02:29:39FromDiscord<Rika> In reply to @sharpcdf "i need an async": ? https://nim-lang.org/docs/httpclient.html#progress-reporting
02:29:44FromDiscord<@sharpcdf> (edit) "cough cough ||windows approximate ... length||" added "download"
02:29:47FromDiscord<# Luke> In reply to @sharpcdf "cough cough ||windows approximate": Yes
02:30:01FromDiscord<@sharpcdf> In reply to @Rika "? https://nim-lang.org/docs/httpclient.html#progres": thank you good sir
02:30:14FromDiscord<@sharpcdf> a true nimion, see?
02:30:23FromDiscord<!Patitotective> nimions sounds horrible ngl
02:30:27FromDiscord<# Luke> In reply to @sharpcdf "thank you good sir": Wait but are they male?
02:30:30FromDiscord<Prestige> I prefer nimmer
02:30:35FromDiscord<Nimion #เถž> speaking of datastructures and algorithms what datastructure and hash does nim's table use?
02:30:37FromDiscord<# Luke> Assuming gender is baf
02:30:40FromDiscord<# Luke> (edit) "baf" => "bad"
02:30:40FromDiscord<!Patitotective> In reply to @Avahe "I prefer nimmer": me too
02:30:43FromDiscord<Prestige> Everyone is male in online chat rooms @.luke
02:30:47FromDiscord<@sharpcdf> facts
02:30:53FromDiscord<@sharpcdf> have you seen reddit demographics ๐Ÿ’€
02:30:54FromDiscord<# Luke> In reply to @Avahe "Everyone is male in": Ok
02:31:01FromDiscord<@sharpcdf> its like 3% female or something
02:31:05FromDiscord<Rika> In reply to @TryAngle "speaking of datastructures and": hash is wyhash i believe
02:31:49FromDiscord<# Luke> I wonder how much time I ~~wasted~~ spent doing very useful stuff in this chat
02:31:55FromDiscord<!!sharpcdf!!> YES
02:31:59FromDiscord<!!sharpcdf!!> @!Patitotective suck it
02:32:09FromDiscord<!Patitotective> lol
02:32:12FromDiscord<!!sharpcdf!!> lmao
02:32:16FromDiscord<Nimion #เถž> also I'm not male
02:32:20FromDiscord<Nimion #เถž> I'm a sigma male ๐Ÿ˜Ž
02:32:25FromDiscord<Nimion #เถž> nimmer male
02:32:26FromDiscord<!!sharpcdf!!> In reply to @TryAngle "I'm a sigma male": shit you got us there
02:32:30FromDiscord<# Luke> In reply to @TryAngle "I'm a sigma male": So am i
02:32:42FromDiscord<!!sharpcdf!!> buncha beta males
02:32:46FromDiscord<# Luke> Nimon male :nimRawr:
02:32:48FromDiscord<!!sharpcdf!!> so handsome ๐Ÿ˜
02:32:54FromDiscord<!!sharpcdf!!> absolute chads
02:32:55FromDiscord<Nimion #เถž> In reply to @sharpcdf "buncha beta males": they are all on go discord dw
02:33:05FromDiscord<!!sharpcdf!!> In reply to @TryAngle "they are all on": no its rust i swear
02:33:12FromDiscord<# Luke> In reply to @TryAngle "they are all on": Huh?
02:33:13FromDiscord<!!sharpcdf!!> go better!!!
02:33:20FromDiscord<ghoom> i'm a frog
02:33:21FromDiscord<!Patitotective> so sharp, it doesnt make sense that in the building instructions of jitter you say that to you can get the nim compiler by running `nim setup`โ†ตbut you need nim to run that :/
02:33:24FromDiscord<!!sharpcdf!!> best for http servers!
02:33:30FromDiscord<!Patitotective> In reply to @ghoom "i'm a frog": ๐Ÿธ
02:33:34FromDiscord<# Luke> In reply to @sharpcdf "go better!!!": Did you perhaps get hit on the head by a very hard object
02:33:41FromDiscord<!!sharpcdf!!> In reply to @Patitotective "so sharp, it doesnt": i didnt mean that, i meant zippy
02:33:46FromDiscord<ghoom> In reply to @Patitotective "๐Ÿธ": ๐Ÿธ๐Ÿค๐Ÿธ
02:33:46FromDiscord<# Luke> I suspect you have a severe case of brain dammage
02:33:46FromDiscord<!!sharpcdf!!> ill change it to be more specific
02:33:53FromDiscord<# Luke> (edit) "I suspect you have a severe case of brain dammage ... " added "/j"
02:33:54FromDiscord<Rika> you guys are wasting time
02:33:54FromDiscord<!!sharpcdf!!> In reply to @ripluke "I suspect you have": damage
02:33:54FromDiscord<!!sharpcdf!!> xd
02:33:56FromDiscord<!!sharpcdf!!> xd
02:33:56FromDiscord<!!sharpcdf!!> xd
02:34:14FromDiscord<# Luke> In reply to @sharpcdf "damage*": As you stated prior we are not English professors
02:34:25FromDiscord<Yardanico> guys can you please move to #offtopic
02:34:25FromDiscord<!Patitotective> also sharp, if you want jitter to be used by non-nimmers you should provide a link or nim installations instructions directly
02:34:27FromDiscord<!!sharpcdf!!> shi
02:34:35FromDiscord<Yardanico> some people write in other channels because #main is too spammy right now :(
02:34:37FromDiscord<!!sharpcdf!!> In reply to @Patitotective "also sharp, if you": ah alright yea ill do that
02:34:54FromDiscord<# Luke> In reply to @sharpcdf "shi": Just get some GitHub tasks to produce binaries
02:35:05FromDiscord<# Luke> I can help if u want
02:35:07FromDiscord<!!sharpcdf!!> In reply to @ripluke "Just get some GitHub": i tried doing that one time and it did not go well
02:35:14FromDiscord<# Luke> In reply to @sharpcdf "i tried doing that": Wdym
02:35:15FromDiscord<!!sharpcdf!!> it doesnt really matter though
02:35:23FromDiscord<!!sharpcdf!!> In reply to @ripluke "Wdym": errors everywhere
02:35:30FromDiscord<# Luke> In reply to @sharpcdf "errors everywhere": ๐Ÿ’€
02:35:36FromDiscord<!Patitotective> ~~AppImage~~
02:35:42FromDiscord<!!sharpcdf!!> errors son, errors were everywhere
02:35:58FromDiscord<!!sharpcdf!!> In reply to @Patitotective "~~AppImage~~": speaking of appimage how tf do you even make one
02:36:09FromDiscord<!!sharpcdf!!> i never saw anything on how to make one
02:36:14FromDiscord<# Luke> In reply to @sharpcdf "i never saw anything": True
02:36:17FromDiscord<!Patitotective> lets talk in #offtopic :]
02:36:28FromDiscord<!!sharpcdf!!> well i mean we are talking about jitter...
02:36:47FromDiscord<Nimion #เถž> In reply to @sharpcdf "speaking of appimage how": u don't ๐Ÿ’€
02:36:52FromDiscord<!!sharpcdf!!> rip
02:36:57*toluene quit (Read error: Connection reset by peer)
02:37:03FromDiscord<# Luke> Only appimages I've seen are for electron apps
02:37:06FromDiscord<Yardanico> In reply to @sharpcdf "well i mean we": Then please try to be more on-topic and less spam (1 word messages), or just go to #offtopic
02:37:14*arkurious quit (Quit: Leaving)
02:37:27FromDiscord<!!sharpcdf!!> In reply to @Yardanico "Then please try to": fair enough
02:38:03*toluene joined #nim
02:57:33*duuude quit (Ping timeout: 276 seconds)
03:11:16FromDiscord<anonsh> Hi
03:11:27FromDiscord<anonsh> So I've been playing around with nim
03:11:52FromDiscord<anonsh> can someone tell me how to get syntax highlighting for it in nvim?
03:12:07FromDiscord<anonsh> Just the syntax highlighting
03:12:11FromDiscord<anonsh> nothing else
03:13:43FromDiscord<huantian> did you try the nim.nvim plugin?
03:15:24FromDiscord<anonsh> I'm just looking for something that adds the syntax highlighting
03:15:30FromDiscord<anonsh> without being a plugin
03:16:06FromDiscord<huantian> I have no idea how to add syntax highlighting to neovim so I unforuntately cannot help
03:16:35FromDiscord<Rika> all syntax highlighting that isnt already in nvim is a plugin
03:17:10FromDiscord<anonsh> In reply to @Rika "all syntax highlighting that": well if I recall correctly syntax highlighting rules are defined in files for each language
03:17:15FromDiscord<anonsh> and ship with nvim
03:17:48FromDiscord<anonsh> but you can add your own files to add highlighting for other languages
03:18:13FromDiscord<Rika> oh this
03:18:14FromDiscord<Rika> https://neovim.io/doc/user/usr_44.html
03:18:47FromDiscord<anonsh> Yeah
03:21:24FromDiscord<anonsh> https://github.com/alaviss/nim.nvim/blob/master/syntax/nim.vim
03:21:33FromDiscord<anonsh> It think this would satisfy it
03:24:18FromDiscord<!Patitotective> ๐ŸŒƒ
03:30:26pchquestion: is there currently an implemented freestanding C definition of nim?
03:30:42pchnot necessarily with all of the features of the current nim std
03:30:58FromDiscord<Elegantbeef> There are c sources
03:31:05FromDiscord<Elegantbeef> But no Nim has never been implemented in C
03:31:51FromDiscord<Rika> in pure C
03:32:01pchthere is a nim definition for compiling to C
03:32:19pchyou can't... just not have at least a proxied definition, and do that
03:32:25FromDiscord<!!sharpcdf!!> oh yea @!Patitotective did you think of anything to add to jitter
03:32:28FromDiscord<!!sharpcdf!!> i forgot to ask
03:32:39FromDiscord<Rika> In reply to @pch "there is a nim": wdym?
03:33:15pchi want to use nim in OS dev and just need to compile to freestanding, from a hosted environment, for early dev stages
03:33:37FromDiscord<Elegantbeef> Oh you want a freestanding application
03:33:57FromDiscord<Elegantbeef> `--os:standalone` and `--gc:arc` is going to be what you get to do
03:34:12pchhmm
03:34:12FromDiscord<# Luke> What is gc?
03:34:17pchgarbage control
03:34:19FromDiscord<Elegantbeef> Probably with more flags for the c compiler
03:34:29FromDiscord<# Luke> In reply to @pch "garbage control": Ohhhh
03:34:34FromDiscord<Elegantbeef> garbage collector, though in 1.6+ it's ssupposed to be `--mm`
03:34:41pchi may want to set up individual GC flags for modules
03:34:46pchright collection
03:34:58pchsorry hot as hell here right now havent slept anywhere near enough in weeks
03:35:09FromDiscord<# Luke> What is arc tho
03:35:19pchone of the GC implementations
03:35:21FromDiscord<Elegantbeef> You cannot setup GC for specific modules, you have a global GC so either Orc/Arc is best for OS
03:35:35FromDiscord<# Luke> In reply to @Elegantbeef "You cannot setup GC": Oh
03:35:37pchthen ill just do no GC since it's going to be beside-C
03:35:38FromDiscord<Elegantbeef> arc is a memory management system similar to C++'s RAII or Rust's
03:35:41pchand beside-ASM
03:35:44FromDiscord<!!sharpcdf!!> In reply to @ripluke "What is gc?": garbage collector
03:35:48FromDiscord<!!sharpcdf!!> i believe
03:35:55FromDiscord<# Luke> In reply to @Elegantbeef "arc is a memory": Oh that's cool
03:36:01FromDiscord<Elegantbeef> Arc is basically no GC pch
03:36:05FromDiscord<Elegantbeef> It's RAII
03:36:06FromDiscord<# Luke> In reply to @sharpcdf "garbage collector": You're a teeny bit late lol
03:36:12FromDiscord<!!sharpcdf!!> yea sorry lol
03:36:21FromDiscord<# Luke> Lol no it's fine
03:36:27FromDiscord<Elegantbeef> It's scope basec compile time injected frees that only applies to `seq` `ref` and `string`s
03:36:32FromDiscord<Elegantbeef> based\
03:36:37pchah
03:36:58FromDiscord<Elegantbeef> Orc is arc with a cycle collector for cyclical `ref`s
03:37:01FromDiscord<# Luke> Hmm if anyone's making a Nim website or a Nim bot I found a good (free) hosting provider
03:37:01pchand I can be sure that this won't integrate hosted environment's libc, right?
03:37:08pchbecause I want fully-freestanding here
03:37:16pchI'm fine with losing functionality
03:37:28pchyou already do with freestanding C
03:37:29FromDiscord<!!sharpcdf!!> @.luke whats the hosting provider lol
03:37:36FromDiscord<Elegantbeef> You can link with musl and use the C's `malloc`
03:37:40FromDiscord<# Luke> In reply to @sharpcdf "<@704106773660827690> whats the hosting": #webdev
03:37:43FromDiscord<!!sharpcdf!!> oh yea
03:37:53pchElegantbeef okay so you're saying no, I cannot use nim for this
03:38:09FromDiscord<Elegantbeef> I'm saying you can
03:38:16FromDiscord<Elegantbeef> Atleast probably can
03:38:20pchlibc involvement in the point in the OS i want nim to start at is a very bad idea
03:38:35FromDiscord<Elegantbeef> Nim doesnt rely on libc
03:38:37pchand once I'm at a point it's a fine idea... I have libc
03:38:52FromDiscord<Elegantbeef> You can replace it's allocation functions with your own
03:39:21pchif you have to link to musl, libc is involved
03:39:24pchsince musl is a libc
03:39:35FromDiscord<Elegantbeef> I said can
03:39:56FromDiscord<Elegantbeef> I imagine you probably can use Nim how you want, but no clue if that's a correct assumption
03:40:08pchmm, will the nim compiler actually provide working code without though?
03:40:25pchI could set up an autopatcher for the output C but that's extra compile infra early on
03:42:28FromDiscord<!!sharpcdf!!> is it possible to get the keyboard input without using glfw or anything other than the stdlib
03:44:11FromDiscord<Rika> not in a cross compatible way, and with a lot of effort
03:44:29FromDiscord<Rika> you basically have to learn the input libraries of each operating system and interface with that
03:44:30pchyes, if you either block, make your own event system, and manually port to all different OSes' event providers
03:44:42pchor test on an interval
03:44:42FromDiscord<Rika> pretty much
03:44:49pchwhich means dropping most presses
03:44:49FromDiscord<Rika> exactly as they say
03:45:03*duuude joined #nim
03:45:05FromDiscord<!!sharpcdf!!> In reply to @Rika "you basically have to": well if i just support linux?
03:45:14FromDiscord<!!sharpcdf!!> what would the library that i have to interface to be
03:45:18FromDiscord<Elegantbeef> Dont reinvent the wheel use Sdl2, Glfw Windy
03:45:34pchwell you're almost lucky! linux reduces the number that you need to know
03:45:44FromDiscord<!!sharpcdf!!> whats windy
03:45:45pchbut you still have to either
03:45:58FromDiscord<Rika> libinput right?
03:46:00FromDiscord<Rika> or was it libev
03:46:11FromDiscord<Rika> evdev?
03:46:14FromDiscord<Rika> i forgot the fucking name
03:46:20FromDiscord<!!sharpcdf!!> i guess i could use glfw
03:46:20pchimplement evdev, js, kb, mouse, and buffered input, and hope everyone who uses it uses at least a kernel since 2012
03:46:22FromDiscord<Rika> its either evdev and libinput
03:46:41pchor implement x11 input, x11kb, and then still have to do evdev and js
03:46:42FromDiscord<Rika> pch have you heard of libinput
03:46:47FromDiscord<!!sharpcdf!!> glfw is for window management and input events mainly right
03:46:59pchplus have to do libinput or things won't work on wayland
03:47:04FromDiscord<!!sharpcdf!!> In reply to @pch "or implement x11 input,": lol i dont think ill do that
03:47:11pchand then libinput will not work with some x11 setups! which is so funny!
03:47:33pchor you can just pull SDL2 or GLFW and get a single interface
03:47:44pchwhich will also work on other OSes
03:48:49pchGLFW and SDL2 expose very, very similar featuresets in their base libraries, and similar featuresets in their extensions
03:49:14pchbut SDL2 doesn't require loading display from SDL2 to load events from SDL2
03:49:25pchwhile GLFW does but is just so much better to program for often
03:53:38FromDiscord<!!sharpcdf!!> well somebody did it in odin with libc by putting the terminal in rawmode or something like that
03:54:01pchyes but that's technically blocking
03:54:11pchyou're just not blocking your own application necessarily
03:54:19*CyberTailor quit (Remote host closed the connection)
03:55:04pchyou're blocking to read stdin from terminal but you can just do a check for new characters every little bit and empty the buffer
03:55:08pchinstead of just reading one at a time
03:55:52pchhowever, you need to rely that the terminal is taking input, the OS has terminal-to-stdin by default, and in a graphical environment that nothing has stolen input for some reason
03:56:07pchand some terminal emulators will screw this up habitually
03:56:29pchnot many anymore, very easy to find out how to prevent it from happening, but older terminal emulators will
03:57:07pchalso, key holds will be based on keyboard key repeat, NOT whether or not the key is held at the moment
03:58:19FromDiscord<Rika> thats only for the terminal
04:04:26*toluene quit (Ping timeout: 268 seconds)
04:07:00*toluene joined #nim
04:54:02NimEventerNew post on r/nim by An0nym0us-sh: How to add syntax highlighting for nim to nvim (without plugins), see https://reddit.com/r/nim/comments/w47pbd/how_to_add_syntax_highlighting_for_nim_to_nvim/
05:06:37FromDiscord<sOkam!> I have a `.nim` file that I'm trying to glue into a `.c` file, that will call the nim procedures directly after being built into a `.dll`โ†ตIs there a way to build a nim file into a C `.o` file, so that I can use that to link to the c code, instead of outputting a `.a`?
05:07:01FromDiscord<Elegantbeef> `--app:lib` or `--app:staticLib`
05:07:13FromDiscord<sOkam!> i got lib currently
05:07:34FromDiscord<sOkam!> (edit) "i got lib currently ... " added "active"
05:08:18FromDiscord<sOkam!> but the c compiler is saying that the file is not compatible with comiling a shared library
05:33:56*duuude quit (Ping timeout: 272 seconds)
05:38:00FromDiscord<ghoom> so nim is one of those languages where you the variable name "kind" is used at all
05:38:04FromDiscord<ghoom> (edit) "so nim is one of those languages where you the variable name "kind" is used at all ... " added "huh?"
05:38:10FromDiscord<ghoom> (edit) removed "you"
05:41:26FromDiscord<Elegantbeef> What?
05:41:51FromDiscord<ghoom> In reply to @Elegantbeef "What?": cuz you can't use "type" as a name
05:42:13FromDiscord<Elegantbeef> Yes kind is used a lot instead of `type`
05:42:25FromDiscord<Elegantbeef> You can technically use type but no one wants to accquote access
05:42:39FromDiscord<ghoom> wait
05:42:44FromDiscord<ghoom> i can use "type"?
05:42:50FromDiscord<Elegantbeef> No
05:43:01FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=450j
05:43:09FromDiscord<j-james> you can use ``type``
05:43:17FromDiscord<ghoom> lol
05:43:22FromDiscord<j-james> damn
05:43:23FromDiscord<j-james> sent a code paste, see https://play.nim-lang.org/#ix=450k
05:43:29FromDiscord<ghoom> discord be like
05:44:04FromDiscord<j-james> just got absolutely destroyed by markdown
05:44:09*duuude joined #nim
05:45:15FromDiscord<Rika> I honestly prefer it, type is an overloaded word in programming
05:46:00FromDiscord<Elegantbeef> The only downside is that most places use `type` is a field so serialises need tools to handle it
05:49:24FromDiscord<ghoom> In reply to @Rika "I honestly prefer it,": ๐Ÿ”ซ๐Ÿธ
05:49:44*pch quit (Quit: Leaving)
06:57:09*toluene quit (Read error: Connection reset by peer)
06:59:01*toluene7 joined #nim
06:59:21FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=
06:59:29FromDiscord<sOkam!> (edit)
06:59:40FromDiscord<sOkam!> (edit)
07:00:03FromDiscord<sOkam!> turns into \`type\`
07:03:10FromDiscord<Elegantbeef> What?
07:10:47FromDiscord<Rika> Youโ€™re prolly seeing it marbled
07:10:50FromDiscord<Rika> Mangled
07:26:24*LuxuryMode quit (Quit: Connection closed for inactivity)
08:06:29FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=450I
08:06:53FromDiscord<Elegantbeef> `("passL", it)`
08:07:29FromDiscord<sOkam!> doesn't it need the switch keyword?
08:07:45FromDiscord<Elegantbeef> You're using a colon instead of a comma
08:08:15FromDiscord<sOkam!> oh f
08:14:17*rockcavera quit (Remote host closed the connection)
08:21:31FromDiscord<Nimion #เถž> how do u guys gitignore executables generated by nim / nimble ?
08:22:11FromDiscord<Elegantbeef> git ignore all extension less files then add back all the files
08:24:09FromDiscord<Rika> Build directory
08:24:53FromDiscord<Nimion #เถž> sent a code paste, see https://play.nim-lang.org/#ix=450O
08:26:08FromDiscord<Rika> Also .out
08:44:34*duuude quit (Ping timeout: 272 seconds)
08:53:45FromDiscord<Nimion #เถž> thanks
08:54:05FromDiscord<Nimion #เถž> if I write iterator over object type
08:54:10FromDiscord<Nimion #เถž> does it copy the object?
08:54:21FromDiscord<Elegantbeef> No
08:54:28FromDiscord<Elegantbeef> Nim only copies when it needs to
08:54:42FromDiscord<Nimion #เถž> ok nice
08:54:46FromDiscord<Elegantbeef> So pretty much on assignment or when you said "Sink this resouce" but use it after
09:19:43*duuude joined #nim
09:34:42*duuude quit (Ping timeout: 276 seconds)
09:35:50*duuude joined #nim
10:20:57FromDiscord<lantos> sent a code paste, see https://play.nim-lang.org/#ix=4511
10:21:59FromDiscord<lantos> (edit) "https://play.nim-lang.org/#ix=4511" => "https://play.nim-lang.org/#ix=4512"
10:45:00FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=451e
10:48:06FromDiscord<Rictus> crazy how nim is better than both rust and go but has 0 corp backing so ppl barely even know it
10:48:10FromDiscord<Rictus> ๐Ÿ˜”
10:48:37FromDiscord<exelotl> sent a code paste, see https://play.nim-lang.org/#ix=451h
10:48:59FromDiscord<sOkam!> In reply to @exelotl "`var plus: Syscall` should": are you sure? its trying to access something from the engine, through a pointer
10:49:00FromDiscord<Phil> In reply to @Rictus "crazy how nim is": Better is relative. Like, I'll join you hands down regarding syntax, I vastly prefer nim's, but I'm hesitant regarding such a sweeping statement
10:49:31FromDiscord<sOkam!> my understanding is that having -not-a-pointer would make a copy of the procedure, not call the pointed proc
10:49:56FromDiscord<sOkam!> i could be wrong, this stuff is beyond confusing
10:50:06FromDiscord<exelotl> non-closure proc types in Nim are just straight up pointers. So a `ptr Syscall` would be a pointer to a pointer (e.g. `syscall_t` in C)
10:50:20FromDiscord<sOkam!> oh rly
10:50:35FromDiscord<Phil> Yeh agreed with exelotl, that rings bells around procs being pointers
10:50:55FromDiscord<ricky> it just fills the gap better imo
10:51:12FromDiscord<exelotl> ok my C code is probably wrong, but the rest of the message still holds ๐Ÿ˜…
10:59:46FromDiscord<Forest> Heya, I'm trying to use nim-new-backend, first following the example to see if it works (it doesn't), but idrk how to fix it?
10:59:55FromDiscord<Forest> sent a code paste, see https://play.nim-lang.org/#ix=451j
11:00:15FromDiscord<Forest> The repo: https://github.com/juancarlospaco/nim-new-backend
11:00:37FromDiscord<Phil> Without having looked at anything, why d:release and d:danger at the same time?
11:00:55FromDiscord<Forest> No idea lmao, it's just the example
11:01:10FromDiscord<Phil> It likely won't change anything, but just for reference: You typically use one or the other
11:01:13FromDiscord<Forest> Removed the danger flag
11:01:24FromDiscord<Forest> Yeah it's the same issue
11:01:29FromDiscord<Forest> In reply to @Isofruit "It likely won't change": Mhm I'm aware of that
11:01:36FromDiscord<Phil> ๐Ÿ‘
11:03:20FromDiscord<Rika> Your compiler is probably too old
11:03:39FromDiscord<Forest> It's cloned straight from GitHub
11:03:50FromDiscord<Forest> Or do you mean my system's compiler?
11:04:04FromDiscord<Forest> Nim 1.6.4
11:04:29FromDiscord<Forest> Now on 1.6.6
11:04:59FromDiscord<Forest> Yeah same issue, do i need Nim 1.7.X or?
11:05:10FromDiscord<Forest> Bleh i wish choosenim worked for arm
11:05:24FromDiscord<Rika> Iโ€™m looking into it
11:06:55FromDiscord<Rika> Oh
11:07:21FromDiscord<Rika> Go into the Nim folder and checkout devel instead of master
11:07:26FromDiscord<Rika> You might be on master by mistake
11:07:26FromDiscord<Forest> Ah okay
11:08:53FromDiscord<Forest> Uh how to do that with git? Lmao
11:09:17FromDiscord<Rika> git checkout devel
11:09:39FromDiscord<Forest> Figured it out yeah xD
11:10:15FromDiscord<RedBeard0531 (Mathias Stearn)> Is it possible for a macro used like `type Foo {.mymacro.} = object` to do anything other than provide a replacement for Foo? I'd like to add some functions and register Foo (and collected metadata about it) in some registry.
11:10:40FromDiscord<Rika> You can only do a replacement I believe, otherwise you have to encapsulate the type block as well
11:10:50FromDiscord<voidwalker> blah, I have a simple sql query with db.exec(sql(" ..")) that should work, I tried it in console replacing all the values correctly, yet it procudes wrong results:
11:11:00FromDiscord<voidwalker> ` db.exec(sql("INSERT INTO ? (?) SELECT DISTINCT ? FROM ?"),tbNameN, "name", tCol, tbName)`
11:11:20FromDiscord<Forest> sent a code paste, see https://play.nim-lang.org/#ix=451n
11:11:28FromDiscord<Rika> Perhaps, it lists version 1.1
11:11:39FromDiscord<voidwalker> Any way to see the query being executed ?
11:11:47FromDiscord<RedBeard0531 (Mathias Stearn)> That seems like an unfortunate limitation. The syntax seems perfect for things like ORMs tagging their data types, but it seems like you can't actually use it for that
11:12:12FromDiscord<Forest> In reply to @Rika "Perhaps, it lists version": May need to make an issue then
11:19:05FromDiscord<voidwalker> Is it possible there's a bug in db_sqlite ?
11:20:03FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=451s
11:20:38FromDiscord<voidwalker> I get this result: https://media.discordapp.net/attachments/371759389889003532/999637021427511306/unknown.png
11:22:07FromDiscord<voidwalker> If I run this query from sqlite console: `INSERT INTO title_basics_titleType (name) SELECT DISTINCT titleType FROM title_basics;`
11:22:22FromDiscord<voidwalker> I get the correct result:
11:22:25FromDiscord<voidwalker> https://media.discordapp.net/attachments/371759389889003532/999637469077196800/unknown.png
11:24:39FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=451x
11:28:20FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=451z
11:28:50FromDiscord<sOkam!> (edit) "https://play.nim-lang.org/#ix=451z" => "https://play.nim-lang.org/#ix=451A"
11:30:34FromDiscord<Rika> id say it is
11:30:56FromDiscord<Rika> he says that `INSERT INTO title_basics_titleType (name) SELECT DISTINCT titleType FROM title_basics;` is the right query and it checks out
11:31:20FromDiscord<Rika> sql is meant to only take in one string, its a conversion from string -> sql query
11:34:03FromDiscord<sOkam!> oh the `?` are like the parameters. makes sense, yep
11:36:26FromDiscord<voidwalker> If only I could see the exact query being run, so I can get an idea what's going on
12:00:04FromDiscord<voidwalker> I narrowed it down to the "titleType" replacement
12:03:59FromDiscord<voidwalker> it's not about the name, but the position. I changed column name to random other stuff, and it still does not work
12:09:11FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=451I
12:09:54FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=451J
12:10:33FromDiscord<voidwalker> (edit) "https://play.nim-lang.org/#ix=451J" => "https://play.nim-lang.org/#ix=451K"
12:26:31FromDiscord<phargob> Hi all, I've been trying to be good citizen and fix tests to 1.6 for codewars. Seems like I am running into one problem after another without actually fixing. I am currently trying to replicate why tests are failing by running a local testament. Been pulling my hair out trying to get it work, and using the simple example from https://nim-lang.org/docs/testament.html - I get the error:
12:26:53FromDiscord<phargob> fatal.nim(53) sysFatalโ†ตError: unhandled exception: specialpaths.nim(49, 12) `false` file must match this pattern: '/pathto/tests/dir//tfile.nim', got: 'test0.nim' [AssertionDefect]
12:27:29FromDiscord<phargob> anyone got any ideas?
12:29:10*duuude quit (Ping timeout: 240 seconds)
12:54:36FromDiscord<flywind> test0.nim needs to be under thr tests directory.
12:58:13FromDiscord<phargob> It is. That is why I am stumped.
13:02:52FromDiscord<flywind> what's the command you used?
13:04:30FromDiscord<flywind> In reply to @phargob "It is. That": Do you have a link for the codewar repo>
13:06:01*toluene7 quit (Read error: Connection reset by peer)
13:07:10*toluene joined #nim
13:19:48FromDiscord<Dale> Does nim have anything like python init modules? Whereby you can import a dir and it picks something like `init.nim`? Or do I need to manually add that feature?
13:33:42*jmdaemon quit (Ping timeout: 264 seconds)
13:36:40FromDiscord<Rika> nim does not import folders, you usually name a nim file the same as the folder, outside
13:36:58FromDiscord<Rika> so `mod_a/ mod_a.nim`
13:37:12FromDiscord<Rika> then you import&export in the file
13:37:35FromDiscord<Rika> `import mod_a/[mod_b, mod_c]`
13:37:42FromDiscord<Rika> (edit) "mod_c]`" => "mod_c]; export mod_b, mod_c`"
13:54:30*CyberTailor joined #nim
14:17:00Amun-RaDale: it doesn't have an equivalent of __init__.py
14:17:29Amun-Rayou can however place the code directly in a file you import
14:18:34FromDiscord<Dale> Okay, thanks
14:20:26Amun-Ra__init__ is just a convention after all
14:28:16*arkurious joined #nim
14:33:47*pch joined #nim
14:38:52FromDiscord<Require Support> any way to convert base64 string to byte array `array[xxx,byte]`? not` seq[byte]`
14:40:22FromDiscord<RedBeard0531 (Mathias Stearn)> Is there a way to make a `Table` that maps from a `typedesc` to an enum? Everything I am trying fails.
14:40:49Amun-RaRequire Support: only in compile time, seq in runtime
14:41:20Amun-RatoSeq (std/sequtils)
14:41:25FromDiscord<Require Support> got it, thanks
14:45:12FromDiscord<RedBeard0531 (Mathias Stearn)> sent a code paste, see https://play.nim-lang.org/#ix=452z
14:54:35FromDiscord<Hamid_Bluri> why's `nimble test` doesn't go deep down to my `tease` and `tsue` directory? https://media.discordapp.net/attachments/371759389889003532/999690859807264818/unknown.png https://media.discordapp.net/attachments/371759389889003532/999690860142788628/unknown.png
15:06:58FromDiscord<RedBeard0531 (Mathias Stearn)> Actually, is there in general a good way to have data that is mutable by macros at compile time but then exposed (ideally as `const`) at runtime? I'm trying to have a macro that registers some metadata about types, and emits some methods that will consult the metadata at runtime.
15:16:37FromDiscord<Professor Actual Factual> sent a long message, see http://ix.io/452W
15:17:22FromDiscord<Professor Actual Factual> (edit) "http://ix.io/452W" => "http://ix.io/452X"
15:22:06FromDiscord<geekrelief> Anyone know how I can compile a 32-bit executable on Windows 10? I'm trying to repro a CI test failure for "Linux i386".
15:23:46FromDiscord<geekrelief> I guess I have to install WSL2?
15:28:31FromDiscord<sOkam!> Can you create a full C function with some Nim syntax directly, so that its spelled exactly like what you say it has to do?โ†ตSomething like `exportc:"theName"`, but for the whole function definition
15:30:03FromDiscord<sOkam!> I guess its what `emit` pragma does?
15:33:43FromDiscord<sOkam!> I'm basically trying to find a way to create a proc type that I can access from Nim, but the type itself offsets its own address by -1 during its definition. So, every usage of that type is now offset always
15:43:24FromDiscord<sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4533
15:44:33FromDiscord<Professor Actual Factual> In reply to @geekrelief "Anyone know how I": https://forum.nim-lang.org/t/2519
15:45:11FromDiscord<geekrelief> In reply to @Professor Actual Factual "https://forum.nim-lang.org/t/2519": Thanks tried that, but it doesn't work.
15:45:23FromDiscord<geekrelief> I get errors related to missing 32-bit libraries
15:45:50FromDiscord<geekrelief> tried uninstalling gcc and reinstalling a 32-bit version, but scoop which I use to install gcc can't find a 32-bit version
15:45:57FromDiscord<geekrelief> so I'm resorting to WSL
15:46:59FromDiscord<geekrelief> Unless you think there's a better option? ๐Ÿ™‚
15:50:35FromDiscord<Professor Actual Factual> In reply to @geekrelief "Unless you think there's": Have you tried using gcc 32bit. Final restort would be like you said Using a 32 bit vm environment. If wsl helps you do that then
15:52:24FromDiscord<Professor Actual Factual> In reply to @sOkam! "I'm basically trying to": Im not an expert in this space, but here is an old article on the issue https://gradha.github.io/articles/2015/01/writing-c-libraries-with-nim.htmlโ†ตโ†ตTldr there are some nim things that you cant export directly to C, perhaps this is one of them
15:56:43FromDiscord<treeform> In reply to @d4rckh "can i somehow compress": When you save some thing as a .png it gets compressed.
15:59:44FromDiscord<ezquerra> Is there a way to get the return type of a procedure at compile time?
16:00:54FromDiscord<demotomohiro> !eval echo typeof(int.high)
16:00:59NimBotint
16:03:30FromDiscord<demotomohiro> !eval echo static(staticExec("").typeof)
16:03:33NimBotstatic[string]
16:05:47FromDiscord<phargob> In reply to @flywind "Do you have a": sorry, had to leave. yes - https://docs.codewars.com/languages/nim/ - they don't use testament, so I dont even know why I am asking about this. ๐Ÿ™‚ fwiw i was just following this https://nim-lang.org/docs/testament.html#running-a-single-test , and when I got to "testament run test0.nim" it gave me that error.
16:06:50FromDiscord<flywind> In reply to @phargob "sorry, had to leave.": You need to run testament at the same level as the tests directory.
16:07:09FromDiscord<flywind> `testament r tests/test0.nim`
16:08:45*CyberTailor quit (Excess Flood)
16:08:51FromDiscord<flywind> Sorry
16:09:10FromDiscord<flywind> It should be `testament r tests/???/test0.nim`
16:09:52*CyberTailor joined #nim
16:10:33FromDiscord<flywind> Imo the rule is not friendly, should be removed.
16:10:41FromDiscord<phargob> they produce the same error. I am suspecting something wrong with my install.
16:11:50FromDiscord<flywind> In reply to @phargob "they produce the same": https://media.discordapp.net/attachments/371759389889003532/999710302453121044/unknown.png
16:17:32FromDiscord<phargob> so this works "testament r tests/arc/t19435.nim" on local Nim repo.
16:18:53FromDiscord<phargob> and so "testament r tests/lll/t0.nim" works after tweaking example.
16:22:26FromDiscord<phargob> ok thanks! so maybe the example needs updating or something. anyway, sorry it was a bit of wild goose chase, since I need to compile with codewars runner and debug a bit there.
16:22:40*CyberTailor quit (Ping timeout: 268 seconds)
16:32:08FromDiscord<!!sharpcdf!!> when using `moveFile()` do you need to specify the path to the file instead of the directory for dest? like `moveFile(path/to/thing.txt, path/to/other/thing.txt)`? ive been omitting `thing.txt` for dest and it errors
16:33:37FromDiscord<!Patitotective> does std/strscans have syntax for something being optional?โ†ตit seems like i need to implement my own matcher :/
16:33:42FromDiscord<lantos> https://media.discordapp.net/attachments/371759389889003532/999715801005301800/unknown.png
16:34:07FromDiscord<lantos> Was wondering why my computer was running hot. Nim suggest is using 100% cpu for the last 4 hours
16:34:11FromDiscord<lantos> is this a bug?
16:37:19*CyberTailor joined #nim
16:39:04FromDiscord<Phil> Yeah, kill the process
16:39:54FromDiscord<lantos> nim crypto miner
16:42:37FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=453k
16:42:47FromDiscord<voidwalker> (edit) "https://play.nim-lang.org/#ix=453k" => "https://play.nim-lang.org/#ix=453l"
16:43:09FromDiscord<voidwalker> any idea how to do this in nim ? What's the deal with opening a connection to ":memory" ?
16:45:53FromDiscord<ezquerra> In reply to @demotomohiro "!eval echo typeof(int.high)": Is typeof always calculated at compile time?
16:45:58FromDiscord<Phil> In reply to @voidwalker "any idea how to": Basically means the sqlite file will be written into memory and disappear once the program finishes. Just use : memory: as the first Param in the open proc of db_sqlite
16:47:00FromDiscord<Phil> Memory is nice for testing and prototyping, basically any time where sqlite isn't supposed to be actually persistent storage
16:48:02FromDiscord<voidwalker> and how do you reuse the connection variable ?
16:48:28FromDiscord<voidwalker> db = open("file:imdb_db.zstd.sqlite?mode=ro&vfs=zstd", "", "", "")
16:48:50FromDiscord<Phil> And then just pass dB around
16:49:15FromDiscord<voidwalker> I guess it needs that extension to open it with the vfs=zstd param
16:49:17FromDiscord<Phil> Though I'm not sure about that file path, looks as bit weird
16:49:24FromDiscord<voidwalker> (edit) "I guess it needs that extension ... to" added "preloaded"
16:49:34FromDiscord<voidwalker> remember I experimented with a zstd sqlite extension ?
16:49:39FromDiscord<Phil> Yeh
16:50:01FromDiscord<voidwalker> Turns out I was using a dud. It has very poor behaviour, defaults.. No matter what I did, I ended up with a larger file.
16:50:26FromDiscord<voidwalker> https://github.com/mlin/GenomicSQLite ( includes https://github.com/mlin/sqlite_zstd_vfs ) is what I tested.. and got 50% reduction in size
16:51:08FromDiscord<Phil> Of the sqlite file? Or of the sqlite binary that you use to access the sqlite file?
16:51:16FromDiscord<voidwalker> of the sqlite file of course
16:51:29FromDiscord<Phil> I'm on phone and fresh from sports so it may be a bit slow
16:51:38FromDiscord<Phil> I
16:52:07FromDiscord<Phil> Huh, interesting. Even after you vacuumed?
16:52:36FromDiscord<voidwalker> Yes, after vacuum
16:53:10FromDiscord<voidwalker> I exchanged some mails with the author, he got a tiny bit of size reduction, no idea how, he know his stuff. But for just one table, the others ended up abotu the same or larger
16:53:16FromDiscord<Phil> Out of curiosity, how size sensitive are you? Like why care?
16:53:25FromDiscord<voidwalker> Anyway, it's a dead thing, not developed, not polished
16:54:03FromDiscord<voidwalker> I care cause I want all of this stuff to be embed-able in my app, or any 3rd party nim app that wants to have a local imdb database
16:54:14FromDiscord<voidwalker> all of the stuff by default is 5GB, uncompressed, unoptimized
16:54:24FromDiscord<Phil> Hot damn
16:54:42FromDiscord<voidwalker> But I bet it's theoretically possible to get it 10% of that size
16:55:16FromDiscord<Phil> For reference, I managed to fill up my database to 20mb after 3 years with storing mostly articles, and that was with storing most of them in triplicate to be able to search them
16:55:16FromDiscord<voidwalker> Of course I won't go that far, 50% or so will do
16:56:01FromDiscord<Phil> Yeah you'll want to look at sqlite extensions with compression or write your own
16:56:15FromDiscord<voidwalker> haha write my own haha. I can barely load them and use them
16:56:23FromDiscord<Phil> Which I have an article about bookmarked! Apparently not crazy hard
16:57:53FromDiscord<voidwalker> `conn = sqlite3.connect("file:Chinook_Sqlite.zstd.sqlite?mode=ro&vfs=zstd", uri=True)
16:57:58FromDiscord<voidwalker> (edit) "uri=True)" => "uri=True)`"
16:58:07FromDiscord<voidwalker> what's that uri=True param in python supposed to mean ?
16:58:25FromDiscord<Phil> Never seen it before tbh
16:58:36FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=
16:58:44FromDiscord<voidwalker> ok so it's python lib specific
16:58:59FromDiscord<Phil> I could dig up my old backend code where I loaded an extension in python if you want
16:59:36FromDiscord<voidwalker> has to be nim ๐Ÿ˜›
17:00:13FromDiscord<Phil> Yeah but can work as blueprint
17:00:15FromDiscord<voidwalker> so I have this
17:00:21FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=453p
17:00:36FromDiscord<voidwalker> it seems I can write anything after file:, even inexistent files, it does not error out when running
17:01:10FromDiscord<Phil> If you write a file that doesn't exist it tries to create the file there and use it as db
17:01:16FromDiscord<voidwalker> ohh
17:01:37FromDiscord<voidwalker> haha you are right
17:01:42FromDiscord<voidwalker> I now got the file `file:imdb_db.zstd.sqlite?mode=ro&vfs=zstd`
17:01:46FromDiscord<voidwalker> Ok, hilarious
17:02:01FromDiscord<Phil> If you want error on file not existing you'll need to write a wrapper proc around open
17:02:38FromDiscord<voidwalker> no, I just want it to open with the URI correctly passed.. maybe not implemented ?
17:03:55FromDiscord<Phil> No idea, I would need to start playing around with it myself
17:06:05FromDiscord<voidwalker> https://nim-lang.org/docs/sqlite3.html#open%2Ccstring%2CPSqlite3
17:07:27FromDiscord<voidwalker> https://github.com/nim-lang/Nim/blob/version-1-6/lib/impure/db_sqlite.nim#L746 this is the "wrapper" proc from db_sqlite
17:07:55FromDiscord<hotdog> @voidwalker try wrapping `sqlite3_open_v2` https://www.sqlite.org/c3ref/open.html
17:07:56FromDiscord<voidwalker> says filename:cstring, and it just passes that to the C lib
17:08:54FromDiscord<hotdog> @voidwalker something like this (untested) `proc open(filename: cstring, ppDb: var PSqlite3, flags: cint, vfs: cstring): int32 {.cdecl, mylib, importc: "sqlite3_open_v2".}`
17:10:13FromDiscord<voidwalker> aha, so only the _v2 C proc can accept URIs, and it is not wrapped in nim. What a shame
17:10:40FromDiscord<hotdog> No I don't think it accepts URIs
17:10:49FromDiscord<hotdog> But you can specify vfs with it
17:10:55FromDiscord<hotdog> It should be easy to wrap
17:11:12FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=453q
17:11:18FromDiscord<voidwalker> (edit) "https://play.nim-lang.org/#ix=453q" => "https://play.nim-lang.org/#ix=453r"
17:11:43FromDiscord<hotdog> Ah hadn't noticed that, yeah that would work too
17:12:03FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=453s
17:12:06FromDiscord<Phil> On the bright side, you're learning wrapping c procs
17:12:33FromDiscord<voidwalker> no I am not, I forget everything as soon as I paste it : P
17:14:56FromDiscord<voidwalker> If URI handling is globally enabled, all filenames passed to sqlite3_open(), sqlite3_open_v2(), sqlite3_open16() or
17:15:08FromDiscord<voidwalker> so I don't need open_v2, I just need to enable URIs globally
17:16:50FromDiscord<voidwalker> (edit) "If" => "`If" | "`IfURI handling is globally enabled, all filenames passed to sqlite3_open(), sqlite3_open_v2(), sqlite3_open16() or ... " added "specified as part of ATTACH commands are interpreted as URI`"
17:17:23FromDiscord<Phil> In reply to @voidwalker "no I am not,": Write an so question and answer it yourself! That way you can Google it later from yourself!
17:17:37FromDiscord<Phil> And admire your part self for being so smart
17:17:52FromDiscord<Phil> (edit) "part" => "past"
17:20:16FromDiscord<geekrelief> In reply to @Professor Actual Factual "Have you tried using": I was able to get WSL2 running and installed gcc-multilib. And I compiled my test with the `--cpu:i386` and `-m32` flags, but my PR still fails on the Azure Pipeline for Linux i386. https://github.com/nim-lang/Nim/pull/20039#discussion_r926911656
17:20:39FromDiscord<geekrelief> The test works for me locally.
17:24:10FromDiscord<voidwalker> https://github.com/arnetheduck/nim-sqlite3-abi/blob/master/sqlite3_gen.nim#L1579 :
17:24:23FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=453x
17:24:53FromDiscord<voidwalker> It's supposed to be called like: `sqlite3_config(SQLITE_CONFIG_URI, 1);`
17:25:20FromDiscord<voidwalker> sent a code paste, see https://play.nim-lang.org/#ix=453y
17:25:38FromDiscord<voidwalker> but got: `Error: undeclared identifier: 'SQLITE_CONFIG_URI'`
17:26:13FromDiscord<hotdog> `SQLITE_CONFIG_URI = 17`
17:26:30FromDiscord<hotdog> From here @voidwalker https://sqlite.org/c3ref/c_config_getmalloc.html
17:28:27FromDiscord<voidwalker> sqlite3_config(17,1) ?
17:29:24FromDiscord<voidwalker> wow, it worked. I got results from the zstd compressed table
17:29:42FromDiscord<voidwalker> about 3x slower query though
17:32:41FromDiscord<hotdog> In reply to @voidwalker "about 3x slower query": Perhaps expected from a compressed table
17:33:18FromDiscord<voidwalker> Yeah I guess it has to decompress 800MB of raw data to get all the results
17:33:25FromDiscord<voidwalker> if using "LIKE" to search
17:36:52FromDiscord<hotdog> @voidwalker looks like it can be tuned a bit: https://github.com/mlin/sqlite_zstd_vfs#performance
17:37:35FromDiscord<hotdog> Looks like increasing threads and page cache size should be an easy win
17:38:44FromDiscord<demotomohiro> In reply to @ezquerra "Is typeof always calculated": Yes. `typeof` doesn't work at runtime.
17:40:46FromDiscord<ghoom> should i always use tranced references?
17:40:49FromDiscord<ghoom> (edit) "tranced" => "traced"
17:41:06FromDiscord<ghoom> (edit) "traced references?" => "trace-referenced object typrs?"
17:41:08FromDiscord<ghoom> (edit) "typrs?" => "types?"
17:41:13FromDiscord<ghoom> (edit) "use" => "define"
17:41:24FromDiscord<ghoom> (edit) "should i always define trace-referenced object types? ... " added "(`ref object`)"
17:58:32FromDiscord<demotomohiro> No. Using object without ref is fine.
17:59:20FromDiscord<demotomohiro> https://internet-of-tomohiro.netlify.app/nim/faq.en.html#type-when-to-use-ref-object-vs-plain-object-qmark
17:59:37FromDiscord<ghoom> alrighty thanks
18:07:07FromDiscord<Phil> I wonder why Java straight up ripped value type objects out
18:08:47FromDiscord<ghoom> In reply to @Isofruit "I wonder why Java": value type objects?
18:10:03FromDiscord<Phil> In reply to @ghoom "value type objects?": You know how java passes e.g. ints by value? As in, if you throw an int into a function, and inside that function you change the value from 5 to 6 that doesn't change the value in the variable outside the function?
18:10:09FromDiscord<Phil> You can also do that with objects
18:10:22FromDiscord<Phil> That's the big difference between ref object and non ref (aka value type) objects.
18:11:15FromDiscord<ghoom> ah
18:16:41FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=453Y
18:18:55FromDiscord<Tuatarian> And you would do memcpy or `=copy` or whatever to make a copy right?
18:19:27FromDiscord<Phil> I'd need to consult the documentation as to how the copy is created, I can only tell you for sure that a copy is created
18:19:41FromDiscord<Phil> Yard, Beef, dom or Rika likely have this better in their head
18:20:30FromDiscord<Dale> `=copy` is the copy constructor. You can override default behavuour there (deep copy I believe), so you can have some vars be shallow copied/ref'd, or some deep copied, etc
18:21:00FromDiscord<Dale> So when you do `var b = a` it calls the copy constructor
18:21:09FromDiscord<Phil> The benefit of value objects is that they get allocated on the stack, which is worked with a fair bit faster than heap allocated objects (which is where ref-types go).
18:21:38FromDiscord<Phil> However, in exchange if they are large objects, you're likely copying around a lot of large stuff which is slow, so that'll slow you down again
18:21:39qwrit can't be only memcpy with reference counting
18:22:46FromDiscord<Tuatarian> If type A were changed to a ref object, how do you make a copy?
18:23:05FromDiscord<Phil> Pretty sure there's a proc for that somewhere
18:23:29FromDiscord<Phil> You mean deepcopy, right?
18:23:49qwryou can deref with []
18:23:56qwrand then copy...
18:24:08FromDiscord<Phil> Ah, right, I keep forgetting that you can deref a ref type and then it acts as a value type
18:24:12FromDiscord<Phil> thanks qw!
18:25:18*nyeaa4 quit (Ping timeout: 264 seconds)
18:25:35FromDiscord<Phil> Deref is actually pretty important! If you want to iterate over the fields of a ref object for example, you'll find yourself stuck!โ†ตThere is no iterator for iterating over the fields of a ref object!โ†ตSo you have to do e.g. `obj[].fieldPairs`, since obj[] is the dereferenced object and thus equivalent to a value type object at that moment.
18:32:59*tafa quit (Quit: ZNC - https://znc.in)
18:35:14*tafa joined #nim
18:42:33FromDiscord<ghoom> In reply to @Isofruit "Deref is actually pretty": you don't have to do `o[].p`
18:42:37FromDiscord<ghoom> you can just do `o.p`
18:44:12FromDiscord<huantian> there's a bug(?) with `fieldPairs` that means you have to deref it first
18:44:19FromDiscord<huantian> but normally `.` will deref automatically
18:44:23FromDiscord<ghoom> oh
18:44:37FromDiscord<ghoom> damn
18:49:41*pro joined #nim
19:13:27*CyberTailor quit (Read error: Connection reset by peer)
19:14:52*CyberTailor joined #nim
19:19:04*duuude joined #nim
19:19:54*kenran joined #nim
20:14:58FromDiscord<geekrelief> is there a way to check if I'm compiling on a 32-bit or 64-bit platform at compile time?
20:16:56FromDiscord<geekrelief> oh `when defined(i386)` seems to work
20:17:12Amun-Rabut that's platform dependend
20:17:41Amun-Rathe other, perhaps a little more portable way would be: when cint.sizeof == 4
20:18:07FromDiscord<geekrelief> thanks for the suggestion!
20:18:48Amun-RaI can't think of a platform, apart from avr, where it wouldn't work as intended
20:19:16FromDiscord<geekrelief> I think checking cint's size will be fine.
20:19:54Amun-Raat least in x86 and arm world
20:19:59Amun-Raworlds*
20:20:49FromDiscord<!!sharpcdf!!> ngl there should be a showcase channel
20:20:49FromDiscord<geekrelief> well I'm trying to get a PR test to pass on Linux i386
20:21:14FromDiscord<geekrelief> sent a code paste, see https://play.nim-lang.org/#ix=454j
20:21:17FromDiscord<Prestige> In reply to @sharpcdf "ngl there should be": Cool idea
20:21:38FromDiscord<!!sharpcdf!!> i mean pretty much every language discord im in has one except for this and python
20:21:39FromDiscord<geekrelief> I want my PR to go in because it fixes an enum unsigned issue at runtime
20:21:45FromDiscord<!!sharpcdf!!> and afaik we're better than python
20:22:51FromDiscord<Generic> you need to use `sizeof(pointer)` or `sizeof(int)` (as they're equal in Nim)
20:23:22FromDiscord<Generic> in fact the size of int in C can be the same on 32 bit and on 64 bit systems!
20:23:25*kenran quit (Quit: WeeChat info:version)
20:23:30FromDiscord<Generic> depending on the ABI
20:23:59Amun-Ranot to mention 36-bit ones
20:24:04FromDiscord<geekrelief> In reply to @Generic "you need to use": thanks for the info, I'll adjust my code
20:25:05FromDiscord<Generic> non power of two register sizes and segmented memory models are their own can of worms
20:25:31Amun-Raesp. when CHAR_BIT is not 8
20:40:38*pro quit (Quit: pro)
20:43:29FromDiscord<ghoom> sent a code paste, see https://play.nim-lang.org/#ix=454F
20:43:43FromDiscord<ghoom> i can only declare `p1` in one case
20:44:36FromDiscord<ghoom> (edit) "https://play.nim-lang.org/#ix=454F" => "https://play.nim-lang.org/#ix=454G"
20:45:20Amun-Radefine it for all the cases (outside of case), iirc you can't do that for some cases only
20:45:50FromDiscord<geekrelief> yeah I think there's either a forum or rfc thread about repeated field names
20:46:48*duuude quit (Ping timeout: 276 seconds)
20:47:37FromDiscord<geekrelief> https://github.com/nim-lang/RFCs/issues/368
20:47:58FromDiscord<ghoom> ok thx
20:52:56FromDiscord<Prestige> If I want to do some cleanup in an iterator after an item has been yielded, is it recommended to use defer or try/finally?
20:53:12FromDiscord<Elegantbeef> defer is just syntax sugar for try finally
20:54:00FromDiscord<Prestige> Yeah I'm curious if the code after yield is guaranteed to run
20:54:12FromDiscord<Prestige> in an iterator
20:54:32FromDiscord<Elegantbeef> use a defer or a try finally they have the same semantic meaning they will run
20:54:39FromDiscord<Elegantbeef> code after a yield will not run if you `break`
21:01:37FromDiscord<Nimion #เถž> In reply to @Elegantbeef "defer is just syntax": Hmm lol so with each defer u get another nesting ๐Ÿค”
21:01:50FromDiscord<Elegantbeef> Yes
21:02:08FromDiscord<Elegantbeef> Nested defers are hard to reason about and it's more clear to use try finallys if you ask me
21:03:14FromDiscord<!Patitotective> In reply to @sharpcdf "ngl there should be": you can post it in the porum under the showcase category
21:03:53FromDiscord<!!sharpcdf!!> True
21:03:56FromDiscord<Elegantbeef> "porum"
21:04:11FromDiscord<!!sharpcdf!!> porum it's not forum
21:04:16FromDiscord<!!sharpcdf!!> hahaha
21:04:24FromDiscord<!!sharpcdf!!> "it's snot"
21:04:39FromDiscord<!Patitotective> In reply to @Elegantbeef ""porum"": i dont have time to lose writing slowly
21:04:48FromDiscord<!!sharpcdf!!> I hate how mobile autocorrects its to it's
21:04:52FromDiscord<Elegantbeef> Uhh patito go something else on your mind?
21:05:04FromDiscord<Prestige> Dang it I broke the compiler again
21:05:07FromDiscord<!!sharpcdf!!> He's making a PR for me lmao
21:05:20FromDiscord<!!sharpcdf!!> For jitter
21:05:32FromDiscord<!Patitotective> In reply to @Elegantbeef "Uhh patito go something": actually im writing a bash script and its weeird
21:05:56FromDiscord<!!sharpcdf!!> In reply to @Patitotective "actually im writing a": What happened to shell script
21:06:07FromDiscord<Nimion #เถž> In reply to @sharpcdf "ngl there should be": Ye that would be cool
21:06:23FromDiscord<!!sharpcdf!!> Boom 2 yeses
21:06:25FromDiscord<Nimion #เถž> And maybe also rename community events to community updates or something like that
21:06:37FromDiscord<!Patitotective> In reply to @sharpcdf "What happened to shell": well shell ~= bash
21:06:39FromDiscord<!Patitotective> (edit) "In reply to @sharpcdf "What happened to shell": well shell ~= bash ... " added ":p"
21:06:48FromDiscord<!!sharpcdf!!> Discord is way more active than the forum too I think
21:06:58FromDiscord<Prestige> `Error: internal error: expr(nkVarTuple); unknown node kind` ๐Ÿค”
21:07:11FromDiscord<!!sharpcdf!!> In reply to @Patitotective "well shell ~= bash": Shell is universal while bash needs bash she'll afaik
21:07:18FromDiscord<!!sharpcdf!!> SHELL
21:07:23FromDiscord<!!sharpcdf!!> GOD I HATE AUTOCORRECT
21:07:37FromDiscord<Elegantbeef> But it's is correct
21:07:50FromDiscord<Elegantbeef> Prestige where are you using a var tuple
21:07:53FromDiscord<!Patitotective> In reply to @sharpcdf "GOD I HATE AUTOCORRECT": just disable it
21:08:14FromDiscord<Nimion #เถž> In reply to @sharpcdf "Shell is universal while": posix complience is dead anyways
21:08:16FromDiscord<Nimion #เถž> why bother
21:08:56FromDiscord<Elegantbeef> Why are we even using shell scripts is my question
21:09:04FromDiscord<!!sharpcdf!!> to install jitter B)
21:09:11FromDiscord<Prestige> Well, at least I can repro
21:09:17FromDiscord<!!sharpcdf!!> because its cool and original and nobody can say otherwise and shut up
21:09:24FromDiscord<Elegantbeef> Well what's repo!
21:09:26FromDiscord<Prestige> https://play.nim-lang.org/#ix=454K Elegantbeef
21:09:27FromDiscord<!Patitotective> In reply to @Elegantbeef "Why are we even": yea so nim is not a dependency
21:09:30FromDiscord<Elegantbeef> Ah there we go
21:09:54FromDiscord<Prestige> Everything I touch dies
21:09:55FromDiscord<!Patitotective> it just downloads a compiled nim binary from a github release :p
21:10:15FromDiscord<Elegantbeef> `(x, y) in f(i)` is incorrect
21:10:19FromDiscord<Elegantbeef> Shitty error message
21:10:39FromDiscord<Elegantbeef> Tuple unpacking in for loops is only for unpacking a parameter that is a tuple
21:10:40FromDiscord<Prestige> Should not have parens, huh?
21:10:43FromDiscord<Prestige> ah
21:10:55FromDiscord<Elegantbeef> Well return value that is a tuple
21:11:13FromDiscord<Elegantbeef> Of course make an issue, but yea
21:11:21FromDiscord<huantian> In reply to @sharpcdf "because its cool and": Itโ€™s just bad ๐Ÿ˜›
21:11:34FromDiscord<Elegantbeef> Also you know `f: iterator(a: int): Pair)`is implicitly a closure?
21:11:47FromDiscord<!!sharpcdf!!> In reply to @huantian "Itโ€™s just bad ๐Ÿ˜›": no!!!!!!!!
21:11:47FromDiscord<Elegantbeef> all procedure/iterator types default to `closure` calling conventions
21:11:49FromDiscord<Prestige> wasn't sure if I needed it
21:11:50FromDiscord<huantian> The NixOS users are gonna have to rewrap your program
21:11:53FromDiscord<Prestige> I never know when to use parens in a for loop
21:11:58FromDiscord<!!sharpcdf!!> reject nixos
21:12:15FromDiscord<Elegantbeef> It's quite simple if you have a tuple in the yielded type you want unpack you use parens
21:12:20FromDiscord<Elegantbeef> There is really no ambiguity if you ask me
21:12:25FromDiscord<# Luke> In reply to @sharpcdf "reject nixos": Yes
21:12:30FromDiscord<!!sharpcdf!!> YES!!!!
21:12:37FromDiscord<!!sharpcdf!!> RISE AGAINST THE MONARCHY
21:12:41FromDiscord<Elegantbeef> so if you have `(int, (int, int))` you'd do `x, (y, z)`
21:13:04FromDiscord<Prestige> Hm okay
21:13:21FromDiscord<Elegantbeef> Multi variable for loops will remove the top level of tuples if there are any
21:13:28FromDiscord<Prestige> I thought I needed to unpack the tuple there since it had 2 variables
21:13:39FromDiscord<Prestige> Interesting
21:13:56FromDiscord<# Luke> Why is it called jitter?
21:14:19FromDiscord<Elegantbeef> Eitherway it's a shitty error ๐Ÿ˜„
21:14:51FromDiscord<huantian> In reply to @sharpcdf "no!!!!!!!!": Extra error prone work thatโ€™s better left to programs designed for the task smh my head
21:15:13FromDiscord<!!sharpcdf!!> In reply to @ripluke "Why is it called": long story but basically i thought of coffee
21:15:20FromDiscord<# Luke> In reply to @huantian "Extra error prone work": Smh my head?
21:15:27FromDiscord<# Luke> In reply to @sharpcdf "long story but basically": Cuz of homebrew?
21:15:32FromDiscord<!!sharpcdf!!> In reply to @ripluke "Cuz of homebrew?": maybe
21:15:37FromDiscord<!!sharpcdf!!> just a little bit
21:16:05FromDiscord<!!sharpcdf!!> and because its made in nim so its ultra hyper fast! ๐Ÿ˜ฑ
21:16:11FromDiscord<!!sharpcdf!!> ๐Ÿ˜
21:16:42*duuude joined #nim
21:16:52FromDiscord<Elegantbeef> Nonono i have it on good authority from incomparable benchmarks that Nim is 2 times slower than rust
21:17:07FromDiscord<# Luke> In reply to @sharpcdf "maybe": I gave u a start lol
21:17:26FromDiscord<huantian> Beef you should just go rewrite all of those benchmarks then!
21:17:28FromDiscord<# Luke> (edit) "start" => "star"
21:17:33FromDiscord<Elegantbeef> I probably should
21:17:35FromDiscord<Elegantbeef> I thought about it
21:17:43FromDiscord<!!sharpcdf!!> In reply to @ripluke "I gave u a": lets go thanks
21:17:52FromDiscord<huantian> Donโ€™t worry weโ€™ll give you emotional support along the way beef
21:17:54FromDiscord<Elegantbeef> \Opens up twitch stream entitled "Fuck you fucking rust developers, we're going fast"
21:17:56FromDiscord<# Luke> In reply to @sharpcdf "lets go thanks": Can I jitter jitter?
21:18:00FromDiscord<# Luke> It has a tar
21:18:06FromDiscord<!!sharpcdf!!> i have 2 stars now, lets beat my highscore of 4 stars
21:18:20FromDiscord<!!sharpcdf!!> In reply to @ripluke "Can I jitter jitter?": thats how you update it rn lmfao
21:18:28FromDiscord<# Luke> ๐Ÿ’€
21:18:32FromDiscord<!!sharpcdf!!> patito is working on a bash scrfipt to install though
21:18:48FromDiscord<!!sharpcdf!!> and then mug will be obseolete
21:18:53FromDiscord<!!sharpcdf!!> (edit) "obseolete" => "obsolete"
21:18:54FromDiscord<huantian> Every time I see a curl sh command to install something I die inside
21:19:06FromDiscord<!!sharpcdf!!> In reply to @huantian "Every time I see": jokes on you its a wget command
21:19:11FromDiscord<# Luke> In reply to @sharpcdf "thats how you update": Umm why no nimble fine ._.
21:19:12FromDiscord<!!sharpcdf!!> pov alive
21:19:12FromDiscord<Elegantbeef> Let's actually see what's teh slow down is with thes nim programs
21:19:39FromDiscord<!!sharpcdf!!> In reply to @ripluke "Umm why no nimble": i plan on doing it later but the short answer is i find it weird to have a package manager in a package manager
21:19:50FromDiscord<# Luke> In reply to @sharpcdf "i plan on doing": ๐Ÿ’€
21:19:52FromDiscord<!Patitotective> In reply to @ripluke "Umm why no nimble": because you can use jitter without nimble or nim
21:19:56FromDiscord<!!sharpcdf!!> yes!
21:19:57FromDiscord<Elegantbeef> Yea it's so weird that apt is installed inside apt
21:20:01FromDiscord<!!sharpcdf!!> because its amazing and cool and fun!
21:20:05FromDiscord<!!sharpcdf!!> In reply to @Elegantbeef "Yea it's so weird": ikr
21:20:09FromDiscord<!!sharpcdf!!> makes no sense at all
21:20:11FromDiscord<# Luke> In reply to @sharpcdf "because its amazing and": Like me :P
21:20:15FromDiscord<!!sharpcdf!!> yes
21:20:18FromDiscord<huantian> Yeah itโ€™s so weird that Nim is written with Nim
21:20:21FromDiscord<!!sharpcdf!!> and your desktop lmfao
21:20:25FromDiscord<Prestige> Is there a way with a template to inline the same function call X amount of times at compile time?
21:20:37FromDiscord<!!sharpcdf!!> In reply to @huantian "Yeah itโ€™s so weird": objection, nim isnt a package manager its a programming language
21:20:45FromDiscord<Elegantbeef> There are unroll macrosโ†ต(@Prestige)
21:21:11FromDiscord<!Patitotective> In reply to @huantian "Yeah itโ€™s so weird": isnt and old version of the compiler written in c needed ๐Ÿคจ
21:21:18FromDiscord<Elegantbeef> Noโ†ต(@!Patitotective)
21:21:19FromDiscord<!!sharpcdf!!> BAM
21:21:22FromDiscord<Elegantbeef> Nim was never written in C
21:21:26FromDiscord<!!sharpcdf!!> c++ right
21:21:31FromDiscord<!!sharpcdf!!> please say yes
21:21:31FromDiscord<Elegantbeef> No
21:21:33FromDiscord<!!sharpcdf!!> shit
21:21:34FromDiscord<!!sharpcdf!!> what was it
21:21:43FromDiscord<huantian> JavaScript
21:21:44FromDiscord<Elegantbeef> It was written in a pascal dialect then transpiled to Nim when capable
21:21:53FromDiscord<# Luke> In reply to @huantian "JavaScript": ...
21:21:56FromDiscord<!!sharpcdf!!> oh thats cool
21:22:01FromDiscord<!!sharpcdf!!> ive never seen something like that
21:22:04FromDiscord<!!sharpcdf!!> In reply to @huantian "JavaScript": wtf
21:22:05FromDiscord<Prestige> Yeah Elegantbeef I was thinking for having a macro do it but probably don't know the most elegant solution. Was going to have a for loop with `quote do`
21:22:12FromDiscord<!!sharpcdf!!> cursed
21:22:31FromDiscord<Elegantbeef> I mean prestige this is archived but https://github.com/schneiderfelipe/unrolled
21:22:39FromDiscord<Elegantbeef> I know there are some other libraries with the capabillity
21:22:48FromDiscord<Prestige> Interesting
21:23:05FromDiscord<huantian> Well I canโ€™t convince you but I just hope you make your binary also able to run in an immutable location
21:23:36FromDiscord<huantian> And not pull a multimc where it tried to write a log file next to the binary and would crash if you put it in /usr/bin cus of that
21:23:49FromDiscord<# Luke> Might add an auto update feature to dye
21:24:03FromDiscord<huantian> In reply to @ripluke "Might add an auto": This isnโ€™t windows
21:24:12FromDiscord<# Luke> Lol
21:29:00FromDiscord<# Luke> I'm gonna add emojis to dye
21:29:06FromDiscord<# Luke> Cuz emojis make anything better
21:30:41FromDiscord<Prestige> works for my use case at least
21:30:42FromDiscord<Prestige> sent a code paste, see https://play.nim-lang.org/#ix=454Q
21:35:09FromDiscord<Elegantbeef> still using quote do, shame on you
21:42:56*duuude quit (Ping timeout: 272 seconds)
21:49:24FromDiscord<!Patitotective> can i do `switch("define", "version=" & version)` in the nimble file so whenever i do `nimble build` it defines a `const version {.strdefine.}` var?
21:49:37FromDiscord<Prestige> Why not use quote do there Beef?
21:49:55FromDiscord<!Patitotective> having the version in two different places is ๐Ÿ’€
21:56:14FromDiscord<Phil> In reply to @Elegantbeef "Nonono i have it": So what you're saying is, all I need is a couple pseudo benchmarks to convince you that python is faster than nim!
22:00:50FromDiscord<dom96> In reply to @Patitotective "can i do `switch("define",": Nimble defines `NimblePkgVersion`
22:01:31FromDiscord<Elegantbeef> I'm mostly just joking about not using genastโ†ต(@Prestige)
22:03:45FromDiscord<Prestige> ah, I'm unfamiliar
22:04:12FromDiscord<Elegantbeef> I mean you can just do `resutl.add body` in this case
22:04:44FromDiscord<!Patitotective> In reply to @dom96 "Nimble defines `NimblePkgVersion`": inside the nimble file?
22:05:19FromDiscord<!Patitotective> or how can i get it in another module (?)โ†ตit says `Error: undeclared identifier: 'NimblePkgVersion'`
22:05:19FromDiscord<dom96> in your nim code
22:05:34FromDiscord<!Patitotective> when i `nimble build`
22:08:10FromDiscord<Prestige> huh, that does work. Thanks
22:08:27FromDiscord<Elegantbeef> I mean of course it does
22:08:31FromDiscord<Elegantbeef> `body` is a NimNode
22:13:12*duuude joined #nim
22:19:39FromDiscord<michaelb.eth> I'd like to try to help fix this myself: https://github.com/PMunch/nimlsp/issues/130โ†ตโ†ตBut before jumping down a rabbit hole I wanted to ask if anyone here might have an idea what changed re: multisync in Nim versions > 1.2, since I think that's part of the problem
22:25:49FromDiscord<michaelb.eth> sent a long message, see http://ix.io/454W
22:26:09FromDiscord<michaelb.eth> (edit) "http://ix.io/454W" => "http://ix.io/454X"
22:26:22FromDiscord<michaelb.eth> (edit) "http://ix.io/454X" => "http://ix.io/454Y"
22:46:40*rockcavera joined #nim
22:46:40*rockcavera quit (Changing host)
22:46:40*rockcavera joined #nim
22:48:06*CyberTailor quit (Remote host closed the connection)
22:48:52*CyberTailor joined #nim
23:12:10FromDiscord<Prestige> Huh, interesting. Lol
23:33:12*duuude quit (Ping timeout: 276 seconds)
23:41:44*CyberTailor quit (Ping timeout: 268 seconds)
23:42:15*CyberTailor joined #nim
23:44:55FromDiscord<acikek> nim by example says `include` is good for splitting a module up into multiple files, is this a good approach?
23:45:33FromDiscord<Elegantbeef> If you need it it works, i generally say only use `include` if you need it
23:45:35FromDiscord<Dale> Either that, or import/export
23:46:04FromDiscord<acikek> are recursive import loops a thing?
23:46:14FromDiscord<acikek> because if i split it up into 2 modules they'd both depend on each other
23:46:25FromDiscord<Elegantbeef> You can if it's delayed but not if it's' a tight loop
23:46:48FromDiscord<Nimion #เถž> is there a library to paralellize for loops that go over an .items() iterator?
23:46:53FromDiscord<acikek> In reply to @Elegantbeef "You can if it's": what?
23:47:00FromDiscord<Elegantbeef> `taskPools` and `weave`
23:47:22FromDiscord<acikek> i mean dependency loops
23:47:40FromDiscord<Nimion #เถž> In reply to @Elegantbeef "`taskPools` and `weave`": thanks
23:48:36FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=455f
23:48:43FromDiscord<Elegantbeef> Yes i mean dependency loops aswell
23:48:56FromDiscord<Elegantbeef> If they're 100% cyclical you're going to have a case of module hell
23:49:09FromDiscord<Elegantbeef> If they're capable of being delayed your're fine
23:49:42FromDiscord<Elegantbeef> Basically when you `import somemodule` you import all code upto a `import somemodule`
23:50:00FromDiscord<Elegantbeef> So in the case of multiple module indirection this may cause an issue with cyclical dependencies and a lack of compilation
23:50:22FromDiscord<Elegantbeef> Cyclical dependencies is a known issue that is wanted to be fixed eventually
23:50:24FromDiscord<acikek> well in this case it's more about, i have a module with 1 type, but theres so many procs that apply to that type that i want to put them in different files
23:50:42FromDiscord<Elegantbeef> That's fine
23:51:10FromDiscord<Elegantbeef> your functionality modules can import your type module implement functionality then you can import those in an upper module
23:51:18FromDiscord<acikek> hm
23:51:27FromDiscord<acikek> ill try that later
23:52:23FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=455g
23:52:33FromDiscord<Elegantbeef> But if `mytypes` imports `mytypesops` is when you'll run into trouble
23:52:42FromDiscord<Elegantbeef> You might be wanting `include` here
23:52:49FromDiscord<Elegantbeef> Though i still think include is just bad taste
23:52:50FromDiscord<acikek> yeah that was the original idea
23:55:26*duuude joined #nim
23:56:25FromDiscord<acikek> hmm what do i do if i've found a highlighting bug in the vscode ext?
23:56:39FromDiscord<Elegantbeef> Make an issue or a PR to fix it
23:56:56FromDiscord<acikek> ok
23:57:01FromDiscord<acikek> its pretty small but i may do it anyways