<< 24-04-2024 >>

00:01:05*def- quit (Client Quit)
00:01:37*def- joined #nim
00:01:57FromDiscord<the_real_hypno> well
00:02:02FromDiscord<the_real_hypno> no idea why but it works now
00:02:34FromDiscord<the_real_hypno> Atleast it doesnt die. Its also relatively fast in getting the document ready
00:04:50FromDiscord<the_real_hypno> sits at 600 mb. Cant really believe that the RAM increase did something ¯\_(ツ)_/¯
00:05:14FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Well when you get": I will heh
00:05:28FromDiscord<Robyn [She/Her]> In reply to @the_real_hypno "sits at 600 mb.": Hm, odd
00:06:05FromDiscord<the_real_hypno> Well, usually im coding though. Maybe it is allergic to weird code 😦
01:27:16FromDiscord<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:15FromDiscord<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:41FromDiscord<Elegantbeef> you can just do `return`
03:49:42FromDiscord<Elegantbeef> If result is set
03:49:54FromDiscord<Elegantbeef> It's best to use expressions if possible
03:50:04FromDiscord<drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=HpTnaoVNklDc
03:50:27FromDiscord<Elegantbeef> Why even return
03:50:32FromDiscord<Elegantbeef> That's an expression
03:51:12FromDiscord<drunkenalcoholic> ohh thats right nim uses the last line of code as the return value anyway?
03:51:26FromDiscord<odexine> Last expression
03:51:27FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=rYFgiGKnZFJJ
03:51:49FromDiscord<Elegantbeef> Nim is 'expressionful' so every statement can be an expression
03:52:56FromDiscord<Elegantbeef> actually I think `result` disables expressions so that should be `let vol = ...` then `prefix & " " vol`
03:52:57FromDiscord<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:02FromDiscord<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:28FromDiscord<Elegantbeef> Expressions are best as they ensure all code paths return a value
03:54:48FromDiscord<Elegantbeef> Then it's between explicit return and result, that's between you and your god
03:54:57FromDiscord<drunkenalcoholic> 🙂
03:58:29*SchweinDeBurg joined #nim
04:03:13FromDiscord<drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=KcbAVBNplrEG
04:05:41FromDiscord<Elegantbeef> Ew
04:05:47FromDiscord<drunkenalcoholic> lol
04:06:01FromDiscord<Elegantbeef> What's the point in doing `result = ...` if it's the last expression
04:06:28FromDiscord<drunkenalcoholic> because the compiler hasda cry
04:06:43FromDiscord<drunkenalcoholic> icon & " " & result <--- error
04:07:08FromDiscord<Elegantbeef> Right cause you used `result` earlier
04:07:17FromDiscord<Elegantbeef> `let vol = ...` then you no longer have that issue 😄
04:07:37FromDiscord<drunkenalcoholic> I see, i'll go and test it now
04:08:59FromDiscord<drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=ZYewoDEJwalv
04:09:44FromDiscord<drunkenalcoholic> That woked, now that it not use result first as you said
04:09:48FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=EuPtfzHTdSLR
04:10:09FromDiscord<nnsee> or something that outputs machine-parseable output
04:10:44FromDiscord<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:16FromDiscord<nnsee> oh yeah dbus is annoying to use
04:11:28FromDiscord<nnsee> but it's pretty useful specifically for things like these
04:11:39FromDiscord<nnsee> since you can subscribe to volume change/mute events etc
04:11:49FromDiscord<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