| 00:12:12 | * | shanoaice quit (Quit: The Lounge - https://thelounge.chat) |
| 00:12:52 | * | shanoaice joined #nim |
| 00:21:50 | FromDiscord | <imanuelmav> hi |
| 00:47:18 | * | xet7 quit (Ping timeout: 272 seconds) |
| 00:59:08 | * | xet7 joined #nim |
| 01:04:29 | * | tty303 quit (Ping timeout: 245 seconds) |
| 01:09:18 | * | th3r00t joined #nim |
| 01:41:59 | * | rockcavera joined #nim |
| 04:44:55 | FromDiscord | <11clock> sent a code paste, see https://play.nim-lang.org/#pasty=XqGcBpPL |
| 04:46:45 | FromDiscord | <11clock> 100% compile-time, stateless, preserve's nim's semantics. |
| 04:47:32 | FromDiscord | <11clock> And supporting compound asignments on setters was a pain in the ass |
| 04:47:40 | FromDiscord | <11clock> (edit) "asignments" => "assignments" |
| 04:48:42 | FromDiscord | <11clock> And all of that compiles into normal nim code. It's literally shorthand |
| 04:48:52 | FromDiscord | <11clock> (edit) "shorthand" => "just shortcuts" |
| 04:49:56 | FromDiscord | <11clock> sent a code paste, see https://play.nim-lang.org/#pasty=qGZSxcvw |
| 04:50:41 | FromDiscord | <11clock> (edit) "https://play.nim-lang.org/#pasty=eFDZPINY" => "https://play.nim-lang.org/#pasty=opvYPcKy" |
| 05:06:52 | FromDiscord | <11clock> Also seriously, why are compound assignments the way they are and not syntactic sugar by default. |
| 05:07:08 | FromDiscord | <11clock> I made a few templates and had to put in some hacky workarounds in the DSL to unsugar them. |
| 05:08:18 | FromDiscord | <11clock> Oh well, at least my setter procs work with them reliably now |
| 07:01:38 | * | rockcavera is now known as Guest9251 |
| 07:01:38 | * | tiorock joined #nim |
| 07:01:38 | * | Guest9251 quit (Killed (molybdenum.libera.chat (Nickname regained by services))) |
| 07:01:38 | * | tiorock is now known as rockcavera |
| 07:49:06 | FromDiscord | <madonuko> sent a code paste, see https://play.nim-lang.org/#pasty=nDrAzaHe |
| 07:52:57 | FromDiscord | <madonuko> nvm the first issue on github is talking about this, right |
| 08:16:47 | FromDiscord | <11clock> Decided to try using nim without an LSP because it's just too unstable |
| 08:17:02 | FromDiscord | <11clock> I'll try to compensate in other ways |
| 08:38:47 | FromDiscord | <11clock> Oh, apparently I can try setting up nim check with a watcher? |
| 09:24:05 | * | tokyovigilante joined #nim |
| 09:41:00 | * | tokyovigilante quit (Remote host closed the connection) |
| 09:47:25 | * | tokyovigilante joined #nim |
| 09:48:35 | * | tokyovigilante quit (Remote host closed the connection) |
| 09:57:44 | * | beholders_eye joined #nim |
| 09:59:35 | * | tokyovigilante joined #nim |
| 11:12:24 | * | rockcavera quit (Ping timeout: 246 seconds) |
| 11:16:37 | * | rockcavera joined #nim |
| 11:16:37 | * | rockcavera quit (Changing host) |
| 11:16:37 | * | rockcavera joined #nim |
| 11:41:58 | * | karolyi quit (Remote host closed the connection) |
| 12:34:07 | * | karolyi joined #nim |
| 12:54:33 | * | om3ga quit (Ping timeout: 248 seconds) |
| 13:13:19 | * | karolyi quit (Remote host closed the connection) |
| 13:25:14 | FromDiscord | <tvoyglaza> sent a code paste, see https://play.nim-lang.org/#pasty=HBBSlyQs |
| 13:27:24 | FromDiscord | <tvoyglaza> The `method` keyword allow us to use any subtype of `Player`. And also you can give hp the `100` default value. |
| 13:27:26 | * | karolyi joined #nim |
| 13:29:31 | FromDiscord | <tvoyglaza> But you already did a nice work |
| 13:47:18 | * | FromDiscord quit (Remote host closed the connection) |
| 13:47:32 | * | FromDiscord joined #nim |
| 14:33:35 | * | FromDiscord quit (Remote host closed the connection) |
| 14:33:48 | * | FromDiscord joined #nim |
| 14:36:24 | * | FromDiscord quit (Remote host closed the connection) |
| 14:36:37 | * | FromDiscord joined #nim |
| 14:36:52 | FromDiscord | <timbuktu_guy> https://media.discordapp.net/attachments/371759389889003532/1522974477020037260/what-a-full-battleship-broadside-looks-like-uss-iowa-v0-4F07_Qem8OADryns-ykq6HUeauCkW8eQZgk3g7M5YOY.webp?ex=6a4a6c02&is=6a491a82&hm=a03b0e83d9fe0fad8889ba9ace634448c2661a055889757a825e4bcd07d0dfae& |
| 14:45:10 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 14:55:35 | * | om3ga joined #nim |
| 15:10:30 | FromDiscord | <Phil> In reply to @timbuktu_guy "": I'm not seeing heavy discussion in #main right now that would be interrupted by this so it's fine-ish, but generally, that belongs more in #offtopic 😉 |
| 15:11:11 | FromDiscord | <timbuktu_guy> 🫡 🍾 🏆 🥳 💃 🌞 |
| 15:50:33 | FromDiscord | <amun0666> Oh man… I was rooting for the redcoats… 😉 |
| 16:12:18 | FromDiscord | <11clock> sent a long message, see https://pasty.ee/xRRHIWgR |
| 16:13:05 | FromDiscord | <11clock> (edit) "https://pasty.ee/IRvJvliD" => "https://pasty.ee/nuJZvlcV" |
| 16:14:44 | FromDiscord | <11clock> And all that while still just generating normal nim oop under the hood. |
| 16:16:12 | FromDiscord | <11clock> Unfortunately there are a couple of things that are a little less ergonomic. |
| 16:17:53 | FromDiscord | <11clock> Defining fields requires a "var" keyword, and you pretty much should use the factory method rather than direct object initialization so that the init proc gets called. |
| 16:18:35 | FromDiscord | <11clock> (edit) removed "pretty much" |
| 16:19:29 | FromDiscord | <11clock> But I think that those are worthwhile tradeoffs. |
| 16:20:32 | FromDiscord | <11clock> Oh yeah and also regarding method overrides, my macro gives you "super" |
| 16:20:48 | FromDiscord | <11clock> There are probably a couple other advantages I missed |
| 16:21:17 | * | th3r00t quit (Ping timeout: 254 seconds) |
| 16:22:24 | FromDiscord | <11clock> But yeah a lot of thought went into this. I wanted to directly address every issue I had with OOP in every other language I used. Java and C# make it look like boilerplate hell when it doesn't need to be. |
| 16:23:57 | * | beholders_eye joined #nim |
| 16:38:36 | * | Skippy8 joined #nim |
| 16:39:14 | * | Skippy8 quit (Read error: Connection reset by peer) |
| 16:39:34 | * | Skippy8 joined #nim |
| 16:40:03 | FromDiscord | <11clock> nim already does quite a lot of the heavy lifting thanks to its ergonomic syntax, but I wanted to streamline things further, basically. |
| 16:40:20 | * | th3r00t joined #nim |
| 17:03:48 | FromDiscord | <11clock> In reply to @11clock "Defining fields requires a": Regarding this factory method thing, I added a "tap" macro, works similarly to Ruby. I saw that nim has a "with" but that evaluating the argument on every line made it a nogo. |
| 17:07:53 | FromDiscord | <11clock> This is a case where nim's normal syntax is better. https://media.discordapp.net/attachments/371759389889003532/1523012484045340825/e2a039f2197689912eb8f171ce9d4c5e.png?ex=6a4a8f68&is=6a493de8&hm=764f6338100d86e8c62e6cbc1a893aa6ae88a06fbc761dcaf7db32f14cafbf48& |
| 17:09:50 | FromDiscord | <11clock> Its benefits are more apparent with more complex objects. For simple data types with little to no methods it's not worth using. |
| 17:50:45 | FromDiscord | <tvoyglaza> Looks interesting |
| 17:51:52 | FromDiscord | <stankmaner.> https://media.discordapp.net/attachments/371759389889003532/1523023555309080689/image.jpg?ex=6a4a99b7&is=6a494837&hm=88124816d20b932e3186da7b2aa50e1ebdf1742fa9d8ae226ebae76fcaa4e141& https://media.discordapp.net/attachments/371759389889003532/1523023555611201576/image.jpg?ex=6a4a99b8&is=6a494838&hm=982374b74e2a2692d7e9461d553e59af9b6c6f487ace8c3f80077e4eb0ded3c5& |
| 17:53:53 | FromDiscord | <DetermiedNim1> 💀 |
| 17:53:56 | FromDiscord | <DetermiedNim1> <@&371760044473319454> |
| 17:54:06 | FromDiscord | <timbuktu_guy> bum detected |
| 17:54:08 | FromDiscord | <timbuktu_guy> 🚨 |
| 18:53:06 | * | rockcavera quit (Read error: Connection reset by peer) |
| 18:53:24 | * | rockcavera joined #nim |
| 18:53:24 | * | rockcavera quit (Changing host) |
| 18:53:24 | * | rockcavera joined #nim |
| 18:59:51 | FromDiscord | <Aceroph> wonder how they came up with the name↵(@11clock) |
| 19:08:35 | FromDiscord | <DetermiedNim1> https://klipy.com/gifs/orange-cat-cat-hitting-cat |
| 19:08:51 | FromDiscord | <DetermiedNim1> huh are embeds off |
| 19:09:10 | FromDiscord | <DetermiedNim1> anyways its like when a cat hits an object to see if itll do anything |
| 19:09:46 | FromDiscord | <DetermiedNim1> its like the `tee` command |
| 19:19:16 | FromDiscord | <im_rob> https://klipy.com/gifs/orange-cat-cat-hitting-cat |
| 19:25:40 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 19:27:10 | * | beholders_eye joined #nim |
| 19:35:33 | FromDiscord | <nnsee> In reply to @Aceroph "wonder how they came": i always thought it just comes from, like, "tapping into" something |
| 19:35:37 | FromDiscord | <nnsee> makes sense in my head |
| 19:48:12 | * | sdothum joined #nim |
| 19:50:23 | FromDiscord | <11clock> Time to figure out how to install naylib |
| 19:53:40 | FromDiscord | <11clock> sent a code paste, see https://play.nim-lang.org/#pasty=SMpegrkx |
| 20:01:43 | FromDiscord | <11clock> Great, now for some reason when I try to run "nimble install naylib" again it just builds my project -_- |
| 20:05:47 | FromDiscord | <11clock> ok got it working |
| 20:15:03 | FromDiscord | <11clock> For constants, is PascalCase or camelCase recommended? The style guide just says use either. |
| 20:37:17 | * | beholders_eye quit (Ping timeout: 244 seconds) |
| 21:16:36 | FromDiscord | <nasuray> In reply to @11clock "Man I love how": Tbf it seems like naylib is the one which is weird in this case as it's trying to inject information in the install process.. |
| 21:35:49 | FromDiscord | <DetermiedNim1> In reply to @11clock "For constants, is PascalCase": i think PascalCase is more common |
| 21:36:04 | FromDiscord | <DetermiedNim1> or SCREAMING_SNAKE_CASE |
| 21:57:00 | FromDiscord | <kodiakweb> SCREAMING_SNAKE_CASE is best used for global consts and the like |
| 21:57:07 | FromDiscord | <kodiakweb> (edit) "SCREAMING_SNAKE_CASE is best used for global consts and the like ... " added "lmao" |
| 22:08:59 | FromDiscord | <Aceroph> how do yall make unit tests? |
| 22:14:27 | FromDiscord | <kodiakweb> In reply to @Aceroph "how do yall make": https://nim-lang.org/docs/unittest.html |
| 22:19:56 | FromDiscord | <DetermiedNim1> In reply to @kodiakweb "SCREAMING_SNAKE_CASE is best used": your status cutout is in the wrong place lol |
| 22:49:51 | FromDiscord | <11clock> Still getting used to jot having an lsp. It seems to split my workflow into two distinct "modes" |
| 22:49:58 | FromDiscord | <11clock> (edit) "jot" => "not" |
| 22:50:18 | FromDiscord | <11clock> Writing code, and fixing the compiler errors |
| 22:51:00 | FromDiscord | <11clock> Using Zed. I set word completion to activate on single character and that definitely helps |