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