<< 14-04-2024 >>

00:01:37FromDiscord<morgan> sent a long message, see https://pasty.ee/LYpGRKPTzQhv
00:09:21FromDiscord<Robyn [She/Her]> In reply to @morganalyssa "could we get an": I think the main issue with that is there isn't anything that'd allow Matrix or IRC users to listen in
00:09:48FromDiscord<Robyn [She/Her]> Also making a VC channel in the Community category would make it not look as nice imo because all VCs are put into a single category currently
00:11:18*krux02 quit (Remote host closed the connection)
00:11:26FromDiscord<Elegantbeef> What?
00:11:47FromDiscord<Elegantbeef> No one said voip channel robyn
00:12:03FromDiscord<Elegantbeef> You read audio too much it rattled your brian
00:14:29FromDiscord<morgan> oh lol
00:14:47FromDiscord<morgan> i meant text channel about development related to audio things
00:15:19FromDiscord<Elegantbeef> To mock robyn "Sorry Irc users only do analogue signal chat"
00:15:27FromDiscord<morgan> either api stuff or abstract dsp/math stuff
00:15:34FromDiscord<morgan> lmao
00:33:37FromDiscord<Robyn [She/Her]> Ooooh okay
00:33:46FromDiscord<Robyn [She/Her]> My brain is scrambled lol
00:42:12*lucasta joined #nim
00:54:42*beholders_eye joined #nim
01:00:02*nazgulsenpai quit (Quit: ZNC 1.8.2 - https://znc.in)
01:02:57*nazgulsenpai joined #nim
01:38:33*def- quit (Quit: -)
01:41:07*def- joined #nim
01:42:21*beholders_eye quit (Ping timeout: 256 seconds)
01:47:20*def- quit (Quit: -)
01:48:51FromDiscord<sOkam! 🫐> How can you read the memory of a running process with nim (or with C) on Linux?
01:49:24FromDiscord<Elegantbeef> scanmem
01:56:28FromDiscord<Elegantbeef> There is also ptrace of course
02:15:36FromDiscord<sOkam! 🫐> @beef I figure ptrace is more low level / raw access, correct?
02:15:46FromDiscord<sOkam! 🫐> and scanmem is an api on top of that?
02:15:52FromDiscord<Elegantbeef> Yea
02:16:08FromDiscord<sOkam! 🫐> sounds like scanmem is what I want reading their docs, so probably will go with that
02:16:25FromDiscord<Elegantbeef> No bindings though
02:16:40FromDiscord<Elegantbeef> Time to author yourself to another library πŸ˜„
02:16:43FromDiscord<Elegantbeef> The nim way
02:22:03*def- joined #nim
02:24:19FromDiscord<sOkam! 🫐> In reply to @Elegantbeef "No bindings though": but futhark, though
02:24:34FromDiscord<sOkam! 🫐> literally took me 10mins to make bindings for libevdev+uinput πŸ™ˆ
02:25:11FromDiscord<Elegantbeef> Yea but they're not idiomatic!
02:26:09FromDiscord<sOkam! 🫐> somebody has to make an idiomatic generator from the opir output, just sayin
02:26:24FromDiscord<Elegantbeef> It's not possible
02:26:31FromDiscord<sOkam! 🫐> how so?
02:26:42FromDiscord<Elegantbeef> `T` is an array in C and a ptr πŸ˜„
02:27:13FromDiscord<sOkam! 🫐> the user could provide a list of what is what
03:21:59FromDiscord<thomasfiddlecock> Hi
03:54:09*lucasta quit (Quit: Leaving)
04:09:15FromDiscord<demotomohiro> hi
04:16:15FromDiscord<morgan> In reply to @Elegantbeef "Yea but they're not": yeah i partly made overrides for all the clap stuff because clap's types all end with _t
04:16:56FromDiscord<morgan> tho i also added nice stuff like enums and converters from sets of them to distinct ints
04:17:00FromDiscord<Elegantbeef> You can just use futhark's rename mechanism
04:17:14FromDiscord<morgan> oh im sure there was an easier way
04:17:32FromDiscord<morgan> but it's certainly easier to read thru than the generated stuff
04:18:17FromDiscord<morgan> and idk how well autocomplete and such would work without that
04:45:37FromDiscord<sOkam! 🫐> In reply to @morganalyssa "but it's certainly easier": rename can literally rename everything as you please
04:45:57FromDiscord<sOkam! 🫐> its a function that you run on every name and it can do whatever you want, but on mass and automatically
04:46:25FromDiscord<sOkam! 🫐> and it handles name collisions for you, in case you make mistakes
04:47:01FromDiscord<sOkam! 🫐> Example: https://github.com/heysokam/libevdev/blob/master/src/libevdev.nim
04:47:19FromDiscord<sOkam! 🫐> I only remove `libevdev_` in those, but you can do whatever else is needed
05:13:12*def- quit (Quit: -)
05:13:49*def- joined #nim
05:47:37*def- quit (Quit: -)
05:48:26*def- joined #nim
05:58:03*def- quit (Quit: -)
06:10:42*MacDefender joined #nim
06:12:36FromDiscord<sOkam! 🫐> @ElegantBeef any tips on how to use scanmem?↡i'm trying to find a string (name of a map) but I get like 60+ hits, and if I change map it still gets the same big number of hits, so the tutorials I find are not being very helpful
06:16:52*def- joined #nim
06:20:00*def- quit (Client Quit)
06:20:25*def- joined #nim
06:20:26FromDiscord<Elegantbeef> I've never used scanmem so I can only say validate your inputs
06:31:23*def- quit (Quit: -)
06:33:08*def- joined #nim
06:37:07*def- quit (Client Quit)
06:37:28*def- joined #nim
06:57:49*def- quit (Quit: -)
06:58:39*def- joined #nim
07:10:34*def- quit (Quit: -)
07:12:24*def- joined #nim
07:13:23FromDiscord<dolfy0191> sent a code paste, see https://play.nim-lang.org/#pasty=RkXRLSqQBARU
07:15:20FromDiscord<dolfy0191> In reply to @dolfy0191 "Hi Someone please clarify": As this does not look declaration to me
07:15:29FromDiscord<Elegantbeef> `nim -v`?
07:17:33FromDiscord<dolfy0191> same message
07:17:50FromDiscord<Elegantbeef> What?
07:18:13FromDiscord<dolfy0191> Error: the special identifier '_' is ignored in declarations and cannot be used
07:18:24FromDiscord<Elegantbeef> What I asked does not compile code
07:19:24FromDiscord<dolfy0191> sorry?
07:19:33FromDiscord<Elegantbeef> `nim -v`
07:19:42FromDiscord<Elegantbeef> Run that
07:19:45FromDiscord<Elegantbeef> Just that
07:20:22FromDiscord<dolfy0191> Ah, version↡Nim Compiler Version 2.0.2 [Linux: amd64]↡Compiled at 2023-12-24
07:20:51FromDiscord<Elegantbeef> Well the above is fine so give more context
07:22:07FromDiscord<dolfy0191> parseDate() returns an anonymous touple, and I want to discard the first part.
07:22:24FromDiscord<Elegantbeef> More code context I mean
07:24:26FromDiscord<dolfy0191> sent a code paste, see https://play.nim-lang.org/#pasty=lhkCXnokKFJj
07:25:09FromDiscord<dolfy0191> `rep` is a tuple
07:25:18FromDiscord<Elegantbeef> Destructuring does not work that way I guess
07:25:32FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=wNQGGGvKaNZG
07:26:51FromDiscord<dolfy0191> you mean it cannot set existing values?
07:27:04FromDiscord<Elegantbeef> You can but you cannot use `_` inside destructuring
07:27:04FromDiscord<dolfy0191> what is interesting is that it complains about underscore
07:27:15FromDiscord<dolfy0191> aha
07:27:17FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=BQEgETXyPNDX
07:27:30FromDiscord<dolfy0191> ok then. Thank you!
07:27:33FromDiscord<Elegantbeef> It's easier to just do `a = doThing[1]`
07:27:39FromDiscord<Elegantbeef> `doThing()`\
07:27:46FromDiscord<dolfy0191> true
07:27:48FromDiscord<dolfy0191> thanks
07:29:07FromDiscord<dolfy0191> yes. doThing[1] works perfectly. Thanks!
07:57:09*xet7 joined #nim
08:06:19*redj joined #nim
08:12:48*xet7 quit (Ping timeout: 260 seconds)
08:14:47*def- quit (Quit: -)
08:15:33*def- joined #nim
08:18:36*def- quit (Client Quit)
08:19:47*def- joined #nim
08:25:40*xet7 joined #nim
08:30:13*def- quit (Quit: -)
08:31:17*def- joined #nim
08:33:46FromDiscord<kots> works as-is on devel, for what it's worth
08:41:45*xet7 quit (Quit: Leaving)
08:59:09FromDiscord<pk.kyle> how do i swap the values between variables without using another one
08:59:34FromDiscord<pk.kyle> sent a code paste, see https://play.nim-lang.org/#pasty=pNriXjVXbROf
08:59:37FromDiscord<pk.kyle> (edit) "one" => "variable"
09:01:30FromDiscord<pk.kyle> oh oops i found theres a `swap` func
09:01:32FromDiscord<pk.kyle> i shouldve rtfm
09:04:43FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=pamPDgmygUdN
09:05:14FromDiscord<Elegantbeef> Whoops order wrong
09:05:21FromDiscord<Elegantbeef> Don't do math at 3am kids it's bad for your health
09:11:17FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=tGAQVZReibpr
09:15:47FromDiscord<pk.kyle> bruh
09:15:59FromDiscord<pk.kyle> i love memes
09:21:42NimEventerNew question by lukz: Use openssl and RSA encryption in nim, see https://stackoverflow.com/questions/78323291/use-openssl-and-rsa-encryption-in-nim
09:33:52FromDiscord<pk.kyle> is there a function that adds the `+` sign before the number if it is positive
09:34:12FromDiscord<pk.kyle> im not sure when to write functions and when to use builtins actually. because im not that familiar with the std yet
09:51:42*def- quit (Quit: -)
09:55:39*def- joined #nim
10:01:54*def- quit (Quit: -)
10:21:49*def- joined #nim
10:41:03FromDiscord<zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=DHOloFSLLDdC
10:51:41FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#pasty=sTqHLvaJOMGE
10:52:00FromDiscord<Phil> Though swap is definitely the better choice since its more explicit
10:59:24*krux02 joined #nim
11:08:58FromDiscord<pk.kyle> i haven't thought of that
11:09:01FromDiscord<pk.kyle> dam
11:10:54FromDiscord<triedangle> Curious how the nim heap works. Lisp and Java both seem to have fixed heap limits and many other not just them just mmap a large amount of virtial memory that "doesn't exist" until it's used, so they have a linear address space. What does nim do? I am kinda confused of this "continuous" address space as this is not something that is a thing in manual memory managed languages afaik.
11:52:10FromDiscord<whisperecean> Does not nimble kinda suck?
11:52:15FromDiscord<whisperecean> Why are pkgs downloaded globally?
11:53:05FromDiscord<whisperecean> I've noticed that for some reason working with different projects fucks up my nimble pkgs and I get weird results.
12:00:33FromDiscord<demotomohiro> In reply to @whisperecean "Does not nimble kinda": How about to try atlas?↡https://github.com/nim-lang/atlas
12:01:03NimEventerNew thread by isaiah: Good day everyone does jester have support for google oauth?, see https://forum.nim-lang.org/t/11430
12:11:10FromDiscord<thomasfiddlecock> Hi
13:52:06FromDiscord<sOkam! 🫐> @beef I found the reason why I was hitting so many targets↡the cli tool is really confusing, but with the python gui it was very easy to figure out what was happening ✍️
13:52:28FromDiscord<sOkam! 🫐> _about the scanmem question from yesterday_
13:54:54FromDiscord<sOkam! 🫐> In reply to @whisperecean "Does not nimble kinda": in multiple ways. that one is just one of them 😦
13:55:07FromDiscord<sOkam! 🫐> atlas is a lot better
14:02:46FromDiscord<solitudesf> In reply to @heysokam "atlas is a lot": is it?
14:05:02FromDiscord<sOkam! 🫐> In reply to @solitudesf "is it?": i mean, if you compare it to nimble, where localdev doesn't even work since almost 1y ago...
14:05:50FromDiscord<sOkam! 🫐> the bar is not too high _(sadly, I loved nimble a lot, but reality is reality)_
14:06:58FromDiscord<kots> I've been using atlas exclusively for nearly a year now and I find it much easier to understand and use than nimble
14:10:57FromDiscord<solitudesf> In reply to @heysokam "i mean, if you": elaborate
14:12:32FromDiscord<sOkam! 🫐> In reply to @solitudesf "elaborate": localdev is bugged. and if you try to use the "classic" or wahtever else is called, it doesn't work either
14:12:54FromDiscord<solitudesf> what is localdev
14:16:13*ntat joined #nim
14:20:39FromDiscord<solitudesf> whatever, works on my machine
14:24:35*def- quit (Quit: -)
14:24:54FromDiscord<Phil> I believe they might just mean developing a package and using it locally
14:25:03*def- joined #nim
14:28:00*def- quit (Client Quit)
14:28:23*def- joined #nim
14:44:36*def- quit (Quit: -)
14:44:54*def- joined #nim
14:53:48FromDiscord<Robyn [She/Her]> Pretty sure sokam means `nimble develop`
15:16:13*Guest50 joined #nim
15:17:14*Guest50 quit (Client Quit)
15:26:42*def- quit (Quit: -)
15:37:57*def- joined #nim
15:40:22NimEventerNew thread by sei: Use of typeof() in object member definition inside macro fails, see https://forum.nim-lang.org/t/11431
15:50:45*beholders_eye joined #nim
16:28:29FromDiscord<sOkam! 🫐> In reply to @chronos.vitaqua "Pretty sure sokam means": yes, sorry. too much webdev
16:37:48*MacDefender quit (Quit: WeeChat 4.2.2)
16:57:25*beholders_eye quit (Read error: Connection reset by peer)
17:03:10*beholders_eye joined #nim
17:06:41FromDiscord<Robyn [She/Her]> No worries
17:40:31*xet7 joined #nim
18:36:52*def- quit (Quit: -)
18:37:35*def- joined #nim
19:01:12FromDiscord<grumblygibson> sent a code paste, see https://play.nim-lang.org/#pasty=htsGQaQtojGT
19:12:54FromDiscord<Elegantbeef> @grumblygibson how do you fix float's rounding?
19:13:39FromDiscord<Elegantbeef> There is no `0.81` in float64, the nearest number is `0.8100000000000001`
19:13:46FromDiscord<Elegantbeef> If you want two sigdigs you use `formatFloat`
19:14:12FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=eLwdMIxBUDnB
19:14:29FromDiscord<Robyn [She/Her]> I wonder how posits work, are they better than floats?
19:14:43FromDiscord<Elegantbeef> Using system libraries instead of `execProc`
19:15:01FromDiscord<sOkam! 🫐> yes, but what's the system library for `xprop`?
19:15:15FromDiscord<Elegantbeef> Read the source for those operations is all I can say
19:18:57FromDiscord<nnsee> In reply to @heysokam "yes, but what's the": execute the xprop command with ltrace
19:18:57FromDiscord<sOkam! 🫐> actually a good idea I guess
19:19:12FromDiscord<nnsee> see if it doesn't call some x lib
19:19:14FromDiscord<sOkam! 🫐> In reply to @nnsee "execute the xprop command": what's the difference there?
19:19:22FromDiscord<sOkam! 🫐> or whats the goal?
19:19:27FromDiscord<Elegantbeef> ltrace is to backwards engineer it
19:19:31FromDiscord<Elegantbeef> I imagine
19:19:40FromDiscord<nnsee> ltrace prints calls to linked libraries
19:19:44FromDiscord<sOkam! 🫐> oh
19:21:08FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=QTprydPklgVa
19:21:32FromDiscord<sOkam! 🫐> does that mean there is no library calls, or what does a regular output mean?
19:21:52FromDiscord<nnsee> what does ldd say about xprop
19:22:31*def- quit (Quit: -)
19:22:52FromDiscord<nnsee> it's weird that it doesn't even print libc stuff
19:22:57*def- joined #nim
19:22:59FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=vbalUFTjqppM
19:23:48FromDiscord<sOkam! 🫐> so I guess the functionality should be somewhere in xcb or xlib, from the looks of that output
19:24:22FromDiscord<sOkam! 🫐> both sound equally rough for different reasons
19:24:39FromDiscord<nnsee> apparently ltrace has been broken in recent years unless you compile from source
19:24:54FromDiscord<sOkam! 🫐> do you know of a way to track function calls into those libraries from running a command?
19:25:36FromDiscord<nnsee> that's what ltrace is supposed to do
19:25:47FromDiscord<nnsee> you can also do it the hard way with LD_PRELOAD
19:27:09FromDiscord<Elegantbeef> It's not that hard!
19:27:54FromDiscord<Elegantbeef> I mostly joke cause `dlsym` is one of the harder symbols to intercept
19:30:35FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=btKkFHukVUKL
19:31:47*ntat quit (Quit: Leaving)
19:36:18*def- quit (Quit: -)
19:37:07FromDiscord<sOkam! 🫐> I hate working with X so much. its so confusing 😦
19:39:33FromDiscord<Elegantbeef> Now imagine if it was XYZ that's ^3 more confusing!
19:41:46FromDiscord<sOkam! 🫐> In reply to @Elegantbeef "Now imagine if it": πŸ˜„ πŸ˜„ thats a next level good joke, hahaha
19:42:00FromDiscord<sOkam! 🫐> great wordplay lol
19:42:17FromDiscord<sOkam! 🫐> @nnsee compiled it from source, this looks a lot more promising https://media.discordapp.net/attachments/371759389889003532/1229154783789580420/image.png?ex=662ea699&is=661c3199&hm=3350044d3ae476aa5d79c66afecda42f7f6647c2604660e49afad0c056eb4fa3&
19:42:51FromDiscord<Phil> still not worse than posix
19:43:01FromDiscord<sOkam! 🫐> does this mean it is just calling `XOpenDisplay(nil)` and `XDefaultScreen()`?
19:43:07FromDiscord<sOkam! 🫐> (edit) "`XOpenDisplay(nil)`" => "`XOpenDisplay()`"
19:43:18FromDiscord<Elegantbeef> Seems so
19:43:49FromDiscord<Elegantbeef> Posix isn't that bad depending what you're touching Phil
19:43:54FromDiscord<sOkam! 🫐> I guess the information I want should be inside whatever the `XDefaultScreen` function returns πŸ€”
19:44:30FromDiscord<sOkam! 🫐> In reply to @isofruit "*still not worse than": nothing is worse than sh/bash syntax
19:44:40FromDiscord<sOkam! 🫐> literally nothing
19:44:57FromDiscord<Elegantbeef> A lot of X is not really documented
19:45:11FromDiscord<Phil> I'll take if/fi syntax any day over what I had to go through to even slightly play with selectors
19:45:28FromDiscord<nnsee> In reply to @heysokam "<@961485620075720734> compiled it from": are you sure you executed the command correctly?
19:45:34FromDiscord<Elegantbeef> Selectors arent that bad though
19:45:35FromDiscord<Phil> (which is me exaggerating to be honest but the API is still super bad imo)
19:45:36FromDiscord<nnsee> it seems like it prints an error
19:45:46FromDiscord<nnsee> about an invalid id format
19:45:49FromDiscord<Elegantbeef> Select a fd with some flags
19:46:15FromDiscord<Phil> In reply to @Elegantbeef "Selectors arent that bad": I'm not experienced enough and remember enough to properly distinguish what word accurately describes which parts were painful to the core
19:46:26FromDiscord<Phil> I know all my problems started when I started importing std/posix and tried to use stuff from it
19:47:19FromDiscord<Phil> Ah, it was epoll, not selectors
19:47:26FromDiscord<sOkam! 🫐> In reply to @nnsee "are you sure you": yo, good catch! classic me, I mistook `-id` for `-root`
19:50:14FromDiscord<sOkam! 🫐> how can I track this output into the code itself, now that I know what the exact output is? https://media.discordapp.net/attachments/371759389889003532/1229156782149079192/image.png?ex=662ea875&is=661c3375&hm=5ca88c253098049547d692538abd65bb2d83f0afda43e6944bb78f519fca8edd&
19:50:20FromDiscord<Elegantbeef> So phil with the scrollbar and gtk adjustment PR was the issue just there is no generic solution to things like `ScrollBar`?
19:51:24FromDiscord<Phil> I need context because I got none
19:51:56FromDiscord<Elegantbeef> You started the PR for adjustments and said there was an issue with scroll bar cause it was not a widget
19:52:02FromDiscord<Phil> Oh you mean the still ongoing scrollbar PR?
19:52:25FromDiscord<Elegantbeef> Can one not just manually emit the code the macro would emit?
19:52:48FromDiscord<Phil> Oh lord that PR is almost half a year old at this point, let me see what I can piece together again
19:53:34FromDiscord<Phil> Generally the issue is about it containing a data-type that owlkettle just doesn't have wrapper yet and entirely lacks the utilities to deal with, that I recall in broad strokes, I don't quite recall what exactly about it was unusual and required special treatment though that made it problematic
19:53:44FromDiscord<Phil> (edit) "Generally the issue is about it containing a data-type ... that" added "(GtkAdjustment)"
19:53:52FromDiscord<Phil> (edit) "wrapper" => "wrapped"
19:54:55*def- joined #nim
19:55:10FromDiscord<Phil> I am not 100% on if ↡> So the entire existing ecosystem for setting up event listeners is not set out for this.↡Meant that we don't have a way to express inside the DSL that a given event listener is for the GtkAdjustment object, or whether we don't have procs in general to do event listeners on GtkADjustment
19:55:36*krux02_ joined #nim
19:57:18FromDiscord<Phil> It is the latter.↡I can see it in the code
19:57:39FromDiscord<Phil> I attempted to set up event listeners on GtkAdjustment and just failed the quick route, so I'd need to dive in again and see how else I could do it
19:58:23FromDiscord<srabb> can i ask a math thing here
19:58:24*krux02 quit (Ping timeout: 260 seconds)
19:58:29FromDiscord<Phil> sure
19:59:05FromDiscord<Elegantbeef> Ok i'm only going to slightly prod you into it
20:00:34FromDiscord<Phil> I think there's a way to listen to changes on any field on a GObject as I think GObject provides that by default, I'd need to get back into it again to see if I tried that and it didn't work or if I was too lazy to try that out at the time
20:01:58FromDiscord<srabb> is there a specific name for this https://media.discordapp.net/attachments/371759389889003532/1229159737413734430/math.png?ex=662eab36&is=661c3636&hm=e2c484a43f09ffb471099580029067c823996196cb0b417405892f55e1600f35&
20:02:09FromDiscord<srabb> or is it just calculating a grids squares
20:02:11FromDiscord<Elegantbeef> Multiplication
20:02:16FromDiscord<Elegantbeef> Area
20:02:20FromDiscord<srabb> the method
20:02:35FromDiscord<Elegantbeef> Area of a square
20:02:48FromDiscord<sOkam! 🫐> grid size
20:02:48FromDiscord<Phil> ... multiplication?↡2 dimensional area calculation?
20:03:07FromDiscord<sOkam! 🫐> grid area, 2D area...
20:03:13FromDiscord<Phil> I'm slightly confused as to what word you're looking for
20:03:18FromDiscord<sOkam! 🫐> yeah same
20:03:26FromDiscord<Phil> And given how sOkam is also just flinging words around it seems the same for him
20:03:40FromDiscord<Elegantbeef> Guys guys we're wrong it's a MSPaint drawing
20:03:47FromDiscord<sOkam! 🫐> tru!
20:04:05FromDiscord<Phil> In reply to @Elegantbeef "Guys guys we're wrong": If it's MSPaint then the method is privacy invasive
20:04:48FromDiscord<sOkam! 🫐> I got it, guys. the technical name for the operation is:↡ `Handpainted MSPaint Black and White image of a Math Operation with and Unspeakable Name`
20:04:58FromDiscord<sOkam! 🫐> #smarter everyday
20:04:59FromDiscord<srabb> paint.net to be exact
20:05:17FromDiscord<Elegantbeef> The way I hear it phil it stole your ID just being shared to you
20:06:39FromDiscord<Phil> "You saw the image, thus I now have the right to know everything about you, including your passwords, PINs and what you thought during breakfast, it makes sense and is perfectly in line with our privacy policy"
20:06:47*def- quit (Quit: -)
20:07:32FromDiscord<Elegantbeef> We also now are allowed to put ads into your breakfast food
20:07:43FromDiscord<Elegantbeef> Speaking of breakfast... have a break have a kitkat
20:07:45FromDiscord<Phil> All to improve our services
20:08:02FromDiscord<Phil> How does beaming kitkat ads into your brain improve our services?
20:08:08*def- joined #nim
20:08:10FromDiscord<Elegantbeef> Money!
20:08:14FromDiscord<Phil> Don't you worry your little head about it and give. us. money!
20:08:23FromDiscord<Robyn [She/Her]> In reply to @srabb "is there a specific": Cell counting or something similar?
21:08:59*beholders_eye quit (Ping timeout: 264 seconds)
21:28:06*def- quit (Quit: -)
21:30:27*def- joined #nim
22:04:16*xet7 quit (Remote host closed the connection)
22:04:51*def- quit (Quit: -)
22:19:02*lucasta joined #nim
22:25:08*def- joined #nim
22:28:28FromDiscord<can.l> In reply to @Elegantbeef "So phil with the": Do you have an application that requires GtkAdjustment? (I assume your matrix client?)
22:37:11*disso-peach joined #nim
22:42:16FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=WfZSaflwCcPu
22:48:31FromDiscord<Robyn [She/Her]> Huh that looks odd honestly
22:48:49FromDiscord<Robyn [She/Her]> Any reason why you aren't just storing `Foo` in `Bar[Foo]`?
22:51:44FromDiscord<demotomohiro> I use generics because I want to create `Bar` with different types.
22:55:33FromDiscord<Robyn [She/Her]> So then why not just pass `Foo.x` to `Bar`?
22:55:52FromDiscord<Robyn [She/Her]> Seems like the best solution
22:56:03FromDiscord<Robyn [She/Her]> In reply to @demotomohiro "https://forum.nim-lang.org/t/11431 I thought `typeo": If it compiles, why is it an issue though?
23:00:27FromDiscord<demotomohiro> In reply to @chronos.vitaqua "If it compiles, why": ElegantBeef said:↡> Firstly `typeof(T.color)` is invalid cause T is a typedesc it does not have a color field.↡https://forum.nim-lang.org/t/11431#74204
23:02:33FromDiscord<demotomohiro> It compiles does not always mean the code is valid because the compiler can have bugs.
23:03:03FromDiscord<Robyn [She/Her]> Ah hm
23:32:17FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=yvxfdrdQrtLp
23:32:26FromDiscord<Robyn [She/Her]> > This is just `[1,2,3].flatMap(\x -> [10,11].flatMap(\y -> [x + y]))` btw. If you know what `flatMap` for lists does, you know what the do notation for it does
23:32:56FromDiscord<Robyn [She/Her]> @odexine you're the Haskell nut, you might know :P
23:42:33FromDiscord<sOkam! 🫐> In reply to @chronos.vitaqua "Anyone know what the": chatgpt is actually amazing at the "explain this code" type of question, fyi https://media.discordapp.net/attachments/371759389889003532/1229215245919060080/image.png?ex=662edee8&is=661c69e8&hm=f54ee5f347abfa333d2c77aeab0c03521508d64c8782391c4c34d245b5249d32&