00:01:05 | * | def- quit (Client Quit) |
00:01:37 | * | def- joined #nim |
00:01:57 | FromDiscord | <the_real_hypno> well |
00:02:02 | FromDiscord | <the_real_hypno> no idea why but it works now |
00:02:34 | FromDiscord | <the_real_hypno> Atleast it doesnt die. Its also relatively fast in getting the document ready |
00:04:50 | FromDiscord | <the_real_hypno> sits at 600 mb. Cant really believe that the RAM increase did something ¯\_(ツ)_/¯ |
00:05:14 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Well when you get": I will heh |
00:05:28 | FromDiscord | <Robyn [She/Her]> In reply to @the_real_hypno "sits at 600 mb.": Hm, odd |
00:06:05 | FromDiscord | <the_real_hypno> Well, usually im coding though. Maybe it is allergic to weird code 😦 |
01:27:16 | FromDiscord | <maria_0516> sent a long message, see https://pasty.ee/pdoHtVEUCxgK |
02:03:26 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
02:11:43 | * | def- quit (Quit: -) |
02:11:56 | * | def- joined #nim |
02:12:18 | * | bcksl quit (Quit: \) |
02:12:24 | * | end quit (Quit: end) |
02:12:35 | * | mahlon quit (Read error: Connection reset by peer) |
02:13:13 | * | mahlon joined #nim |
02:14:05 | * | _________ quit (Ping timeout: 245 seconds) |
02:14:59 | * | _________ joined #nim |
02:20:28 | * | bcksl joined #nim |
02:24:54 | * | end joined #nim |
02:29:33 | * | krux02_ quit (Quit: Leaving) |
03:14:52 | * | xet7 quit (Remote host closed the connection) |
03:23:07 | * | pmp-p quit (Quit: No Ping reply in 180 seconds.) |
03:24:11 | * | def- quit (Quit: -) |
03:24:33 | * | pmp-p joined #nim |
03:25:35 | * | def- joined #nim |
03:31:46 | * | pmp-p quit (Quit: No Ping reply in 180 seconds.) |
03:32:57 | * | pmp-p joined #nim |
03:34:47 | * | def- quit (Quit: -) |
03:35:23 | * | def- joined #nim |
03:49:15 | FromDiscord | <drunkenalcoholic> Noob question incoming: is it frowned apon to use return and result in the same line? or its ok because "result" is just variable anyway? |
03:49:41 | FromDiscord | <Elegantbeef> you can just do `return` |
03:49:42 | FromDiscord | <Elegantbeef> If result is set |
03:49:54 | FromDiscord | <Elegantbeef> It's best to use expressions if possible |
03:50:04 | FromDiscord | <drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=HpTnaoVNklDc |
03:50:27 | FromDiscord | <Elegantbeef> Why even return |
03:50:32 | FromDiscord | <Elegantbeef> That's an expression |
03:51:12 | FromDiscord | <drunkenalcoholic> ohh thats right nim uses the last line of code as the return value anyway? |
03:51:26 | FromDiscord | <odexine> Last expression |
03:51:27 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=rYFgiGKnZFJJ |
03:51:49 | FromDiscord | <Elegantbeef> Nim is 'expressionful' so every statement can be an expression |
03:52:56 | FromDiscord | <Elegantbeef> actually I think `result` disables expressions so that should be `let vol = ...` then `prefix & " " vol` |
03:52:57 | FromDiscord | <drunkenalcoholic> Understood, thanks for the info, as hobbyist coming from Delphi/Pascal Nim is very similar but yet different as the case here |
03:54:02 | FromDiscord | <drunkenalcoholic> mind you the first code I posted did actually work, but then seeing return and result in the same line had me questioning myself |
03:54:28 | FromDiscord | <Elegantbeef> Expressions are best as they ensure all code paths return a value |
03:54:48 | FromDiscord | <Elegantbeef> Then it's between explicit return and result, that's between you and your god |
03:54:57 | FromDiscord | <drunkenalcoholic> 🙂 |
03:58:29 | * | SchweinDeBurg joined #nim |
04:03:13 | FromDiscord | <drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=KcbAVBNplrEG |
04:05:41 | FromDiscord | <Elegantbeef> Ew |
04:05:47 | FromDiscord | <drunkenalcoholic> lol |
04:06:01 | FromDiscord | <Elegantbeef> What's the point in doing `result = ...` if it's the last expression |
04:06:28 | FromDiscord | <drunkenalcoholic> because the compiler hasda cry |
04:06:43 | FromDiscord | <drunkenalcoholic> icon & " " & result <--- error |
04:07:08 | FromDiscord | <Elegantbeef> Right cause you used `result` earlier |
04:07:17 | FromDiscord | <Elegantbeef> `let vol = ...` then you no longer have that issue 😄 |
04:07:37 | FromDiscord | <drunkenalcoholic> I see, i'll go and test it now |
04:08:59 | FromDiscord | <drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=ZYewoDEJwalv |
04:09:44 | FromDiscord | <drunkenalcoholic> That woked, now that it not use result first as you said |
04:09:48 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=EuPtfzHTdSLR |
04:10:09 | FromDiscord | <nnsee> or something that outputs machine-parseable output |
04:10:44 | FromDiscord | <drunkenalcoholic> im only a young padwa in the coding realm, so I am not aware on the use of dbus to get that info |
04:11:16 | FromDiscord | <nnsee> oh yeah dbus is annoying to use |
04:11:28 | FromDiscord | <nnsee> but it's pretty useful specifically for things like these |
04:11:39 | FromDiscord | <nnsee> since you can subscribe to volume change/mute events etc |
04:11:49 | FromDiscord | <drunkenalcoholic> any examples how that may look like? |
04:27:41 | * | def- quit (Quit: -) |
04:30:09 | * | def- joined #nim |
04:36:37 | * | def- quit (Quit: -) |
04:57:53 | * | def- joined #nim |
05:28:32 | * | ntat joined #nim |