00:01:37 | FromDiscord | <morgan> sent a long message, see https://pasty.ee/LYpGRKPTzQhv |
00:09:21 | FromDiscord | <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:48 | FromDiscord | <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:26 | FromDiscord | <Elegantbeef> What? |
00:11:47 | FromDiscord | <Elegantbeef> No one said voip channel robyn |
00:12:03 | FromDiscord | <Elegantbeef> You read audio too much it rattled your brian |
00:14:29 | FromDiscord | <morgan> oh lol |
00:14:47 | FromDiscord | <morgan> i meant text channel about development related to audio things |
00:15:19 | FromDiscord | <Elegantbeef> To mock robyn "Sorry Irc users only do analogue signal chat" |
00:15:27 | FromDiscord | <morgan> either api stuff or abstract dsp/math stuff |
00:15:34 | FromDiscord | <morgan> lmao |
00:33:37 | FromDiscord | <Robyn [She/Her]> Ooooh okay |
00:33:46 | FromDiscord | <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:51 | FromDiscord | <sOkam! π«> How can you read the memory of a running process with nim (or with C) on Linux? |
01:49:24 | FromDiscord | <Elegantbeef> scanmem |
01:56:28 | FromDiscord | <Elegantbeef> There is also ptrace of course |
02:15:36 | FromDiscord | <sOkam! π«> @beef I figure ptrace is more low level / raw access, correct? |
02:15:46 | FromDiscord | <sOkam! π«> and scanmem is an api on top of that? |
02:15:52 | FromDiscord | <Elegantbeef> Yea |
02:16:08 | FromDiscord | <sOkam! π«> sounds like scanmem is what I want reading their docs, so probably will go with that |
02:16:25 | FromDiscord | <Elegantbeef> No bindings though |
02:16:40 | FromDiscord | <Elegantbeef> Time to author yourself to another library π |
02:16:43 | FromDiscord | <Elegantbeef> The nim way |
02:22:03 | * | def- joined #nim |
02:24:19 | FromDiscord | <sOkam! π«> In reply to @Elegantbeef "No bindings though": but futhark, though |
02:24:34 | FromDiscord | <sOkam! π«> literally took me 10mins to make bindings for libevdev+uinput π |
02:25:11 | FromDiscord | <Elegantbeef> Yea but they're not idiomatic! |
02:26:09 | FromDiscord | <sOkam! π«> somebody has to make an idiomatic generator from the opir output, just sayin |
02:26:24 | FromDiscord | <Elegantbeef> It's not possible |
02:26:31 | FromDiscord | <sOkam! π«> how so? |
02:26:42 | FromDiscord | <Elegantbeef> `T` is an array in C and a ptr π |
02:27:13 | FromDiscord | <sOkam! π«> the user could provide a list of what is what |
03:21:59 | FromDiscord | <thomasfiddlecock> Hi |
03:54:09 | * | lucasta quit (Quit: Leaving) |
04:09:15 | FromDiscord | <demotomohiro> hi |
04:16:15 | FromDiscord | <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:56 | FromDiscord | <morgan> tho i also added nice stuff like enums and converters from sets of them to distinct ints |
04:17:00 | FromDiscord | <Elegantbeef> You can just use futhark's rename mechanism |
04:17:14 | FromDiscord | <morgan> oh im sure there was an easier way |
04:17:32 | FromDiscord | <morgan> but it's certainly easier to read thru than the generated stuff |
04:18:17 | FromDiscord | <morgan> and idk how well autocomplete and such would work without that |
04:45:37 | FromDiscord | <sOkam! π«> In reply to @morganalyssa "but it's certainly easier": rename can literally rename everything as you please |
04:45:57 | FromDiscord | <sOkam! π«> its a function that you run on every name and it can do whatever you want, but on mass and automatically |
04:46:25 | FromDiscord | <sOkam! π«> and it handles name collisions for you, in case you make mistakes |
04:47:01 | FromDiscord | <sOkam! π«> Example: https://github.com/heysokam/libevdev/blob/master/src/libevdev.nim |
04:47:19 | FromDiscord | <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:36 | FromDiscord | <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:26 | FromDiscord | <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:23 | FromDiscord | <dolfy0191> sent a code paste, see https://play.nim-lang.org/#pasty=RkXRLSqQBARU |
07:15:20 | FromDiscord | <dolfy0191> In reply to @dolfy0191 "Hi Someone please clarify": As this does not look declaration to me |
07:15:29 | FromDiscord | <Elegantbeef> `nim -v`? |
07:17:33 | FromDiscord | <dolfy0191> same message |
07:17:50 | FromDiscord | <Elegantbeef> What? |
07:18:13 | FromDiscord | <dolfy0191> Error: the special identifier '_' is ignored in declarations and cannot be used |
07:18:24 | FromDiscord | <Elegantbeef> What I asked does not compile code |
07:19:24 | FromDiscord | <dolfy0191> sorry? |
07:19:33 | FromDiscord | <Elegantbeef> `nim -v` |
07:19:42 | FromDiscord | <Elegantbeef> Run that |
07:19:45 | FromDiscord | <Elegantbeef> Just that |
07:20:22 | FromDiscord | <dolfy0191> Ah, versionβ΅Nim Compiler Version 2.0.2 [Linux: amd64]β΅Compiled at 2023-12-24 |
07:20:51 | FromDiscord | <Elegantbeef> Well the above is fine so give more context |
07:22:07 | FromDiscord | <dolfy0191> parseDate() returns an anonymous touple, and I want to discard the first part. |
07:22:24 | FromDiscord | <Elegantbeef> More code context I mean |
07:24:26 | FromDiscord | <dolfy0191> sent a code paste, see https://play.nim-lang.org/#pasty=lhkCXnokKFJj |
07:25:09 | FromDiscord | <dolfy0191> `rep` is a tuple |
07:25:18 | FromDiscord | <Elegantbeef> Destructuring does not work that way I guess |
07:25:32 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=wNQGGGvKaNZG |
07:26:51 | FromDiscord | <dolfy0191> you mean it cannot set existing values? |
07:27:04 | FromDiscord | <Elegantbeef> You can but you cannot use `_` inside destructuring |
07:27:04 | FromDiscord | <dolfy0191> what is interesting is that it complains about underscore |
07:27:15 | FromDiscord | <dolfy0191> aha |
07:27:17 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=BQEgETXyPNDX |
07:27:30 | FromDiscord | <dolfy0191> ok then. Thank you! |
07:27:33 | FromDiscord | <Elegantbeef> It's easier to just do `a = doThing[1]` |
07:27:39 | FromDiscord | <Elegantbeef> `doThing()`\ |
07:27:46 | FromDiscord | <dolfy0191> true |
07:27:48 | FromDiscord | <dolfy0191> thanks |
07:29:07 | FromDiscord | <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:46 | FromDiscord | <kots> works as-is on devel, for what it's worth |
08:41:45 | * | xet7 quit (Quit: Leaving) |
08:59:09 | FromDiscord | <pk.kyle> how do i swap the values between variables without using another one |
08:59:34 | FromDiscord | <pk.kyle> sent a code paste, see https://play.nim-lang.org/#pasty=pNriXjVXbROf |
08:59:37 | FromDiscord | <pk.kyle> (edit) "one" => "variable" |
09:01:30 | FromDiscord | <pk.kyle> oh oops i found theres a `swap` func |
09:01:32 | FromDiscord | <pk.kyle> i shouldve rtfm |
09:04:43 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=pamPDgmygUdN |
09:05:14 | FromDiscord | <Elegantbeef> Whoops order wrong |
09:05:21 | FromDiscord | <Elegantbeef> Don't do math at 3am kids it's bad for your health |
09:11:17 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=tGAQVZReibpr |
09:15:47 | FromDiscord | <pk.kyle> bruh |
09:15:59 | FromDiscord | <pk.kyle> i love memes |
09:21:42 | NimEventer | New 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:52 | FromDiscord | <pk.kyle> is there a function that adds the `+` sign before the number if it is positive |
09:34:12 | FromDiscord | <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:03 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=DHOloFSLLDdC |
10:51:41 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#pasty=sTqHLvaJOMGE |
10:52:00 | FromDiscord | <Phil> Though swap is definitely the better choice since its more explicit |
10:59:24 | * | krux02 joined #nim |
11:08:58 | FromDiscord | <pk.kyle> i haven't thought of that |
11:09:01 | FromDiscord | <pk.kyle> dam |
11:10:54 | FromDiscord | <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:10 | FromDiscord | <whisperecean> Does not nimble kinda suck? |
11:52:15 | FromDiscord | <whisperecean> Why are pkgs downloaded globally? |
11:53:05 | FromDiscord | <whisperecean> I've noticed that for some reason working with different projects fucks up my nimble pkgs and I get weird results. |
12:00:33 | FromDiscord | <demotomohiro> In reply to @whisperecean "Does not nimble kinda": How about to try atlas?β΅https://github.com/nim-lang/atlas |
12:01:03 | NimEventer | New thread by isaiah: Good day everyone does jester have support for google oauth?, see https://forum.nim-lang.org/t/11430 |
12:11:10 | FromDiscord | <thomasfiddlecock> Hi |
13:52:06 | FromDiscord | <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:28 | FromDiscord | <sOkam! π«> _about the scanmem question from yesterday_ |
13:54:54 | FromDiscord | <sOkam! π«> In reply to @whisperecean "Does not nimble kinda": in multiple ways. that one is just one of them π¦ |
13:55:07 | FromDiscord | <sOkam! π«> atlas is a lot better |
14:02:46 | FromDiscord | <solitudesf> In reply to @heysokam "atlas is a lot": is it? |
14:05:02 | FromDiscord | <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:50 | FromDiscord | <sOkam! π«> the bar is not too high _(sadly, I loved nimble a lot, but reality is reality)_ |
14:06:58 | FromDiscord | <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:57 | FromDiscord | <solitudesf> In reply to @heysokam "i mean, if you": elaborate |
14:12:32 | FromDiscord | <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:54 | FromDiscord | <solitudesf> what is localdev |
14:16:13 | * | ntat joined #nim |
14:20:39 | FromDiscord | <solitudesf> whatever, works on my machine |
14:24:35 | * | def- quit (Quit: -) |
14:24:54 | FromDiscord | <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:48 | FromDiscord | <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:22 | NimEventer | New 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:29 | FromDiscord | <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:41 | FromDiscord | <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:12 | FromDiscord | <grumblygibson> sent a code paste, see https://play.nim-lang.org/#pasty=htsGQaQtojGT |
19:12:54 | FromDiscord | <Elegantbeef> @grumblygibson how do you fix float's rounding? |
19:13:39 | FromDiscord | <Elegantbeef> There is no `0.81` in float64, the nearest number is `0.8100000000000001` |
19:13:46 | FromDiscord | <Elegantbeef> If you want two sigdigs you use `formatFloat` |
19:14:12 | FromDiscord | <sOkam! π«> sent a code paste, see https://play.nim-lang.org/#pasty=eLwdMIxBUDnB |
19:14:29 | FromDiscord | <Robyn [She/Her]> I wonder how posits work, are they better than floats? |
19:14:43 | FromDiscord | <Elegantbeef> Using system libraries instead of `execProc` |
19:15:01 | FromDiscord | <sOkam! π«> yes, but what's the system library for `xprop`? |
19:15:15 | FromDiscord | <Elegantbeef> Read the source for those operations is all I can say |
19:18:57 | FromDiscord | <nnsee> In reply to @heysokam "yes, but what's the": execute the xprop command with ltrace |
19:18:57 | FromDiscord | <sOkam! π«> actually a good idea I guess |
19:19:12 | FromDiscord | <nnsee> see if it doesn't call some x lib |
19:19:14 | FromDiscord | <sOkam! π«> In reply to @nnsee "execute the xprop command": what's the difference there? |
19:19:22 | FromDiscord | <sOkam! π«> or whats the goal? |
19:19:27 | FromDiscord | <Elegantbeef> ltrace is to backwards engineer it |
19:19:31 | FromDiscord | <Elegantbeef> I imagine |
19:19:40 | FromDiscord | <nnsee> ltrace prints calls to linked libraries |
19:19:44 | FromDiscord | <sOkam! π«> oh |
19:21:08 | FromDiscord | <sOkam! π«> sent a code paste, see https://play.nim-lang.org/#pasty=QTprydPklgVa |
19:21:32 | FromDiscord | <sOkam! π«> does that mean there is no library calls, or what does a regular output mean? |
19:21:52 | FromDiscord | <nnsee> what does ldd say about xprop |
19:22:31 | * | def- quit (Quit: -) |
19:22:52 | FromDiscord | <nnsee> it's weird that it doesn't even print libc stuff |
19:22:57 | * | def- joined #nim |
19:22:59 | FromDiscord | <sOkam! π«> sent a code paste, see https://play.nim-lang.org/#pasty=vbalUFTjqppM |
19:23:48 | FromDiscord | <sOkam! π«> so I guess the functionality should be somewhere in xcb or xlib, from the looks of that output |
19:24:22 | FromDiscord | <sOkam! π«> both sound equally rough for different reasons |
19:24:39 | FromDiscord | <nnsee> apparently ltrace has been broken in recent years unless you compile from source |
19:24:54 | FromDiscord | <sOkam! π«> do you know of a way to track function calls into those libraries from running a command? |
19:25:36 | FromDiscord | <nnsee> that's what ltrace is supposed to do |
19:25:47 | FromDiscord | <nnsee> you can also do it the hard way with LD_PRELOAD |
19:27:09 | FromDiscord | <Elegantbeef> It's not that hard! |
19:27:54 | FromDiscord | <Elegantbeef> I mostly joke cause `dlsym` is one of the harder symbols to intercept |
19:30:35 | FromDiscord | <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:07 | FromDiscord | <sOkam! π«> I hate working with X so much. its so confusing π¦ |
19:39:33 | FromDiscord | <Elegantbeef> Now imagine if it was XYZ that's ^3 more confusing! |
19:41:46 | FromDiscord | <sOkam! π«> In reply to @Elegantbeef "Now imagine if it": π π thats a next level good joke, hahaha |
19:42:00 | FromDiscord | <sOkam! π«> great wordplay lol |
19:42:17 | FromDiscord | <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:51 | FromDiscord | <Phil> still not worse than posix |
19:43:01 | FromDiscord | <sOkam! π«> does this mean it is just calling `XOpenDisplay(nil)` and `XDefaultScreen()`? |
19:43:07 | FromDiscord | <sOkam! π«> (edit) "`XOpenDisplay(nil)`" => "`XOpenDisplay()`" |
19:43:18 | FromDiscord | <Elegantbeef> Seems so |
19:43:49 | FromDiscord | <Elegantbeef> Posix isn't that bad depending what you're touching Phil |
19:43:54 | FromDiscord | <sOkam! π«> I guess the information I want should be inside whatever the `XDefaultScreen` function returns π€ |
19:44:30 | FromDiscord | <sOkam! π«> In reply to @isofruit "*still not worse than": nothing is worse than sh/bash syntax |
19:44:40 | FromDiscord | <sOkam! π«> literally nothing |
19:44:57 | FromDiscord | <Elegantbeef> A lot of X is not really documented |
19:45:11 | FromDiscord | <Phil> I'll take if/fi syntax any day over what I had to go through to even slightly play with selectors |
19:45:28 | FromDiscord | <nnsee> In reply to @heysokam "<@961485620075720734> compiled it from": are you sure you executed the command correctly? |
19:45:34 | FromDiscord | <Elegantbeef> Selectors arent that bad though |
19:45:35 | FromDiscord | <Phil> (which is me exaggerating to be honest but the API is still super bad imo) |
19:45:36 | FromDiscord | <nnsee> it seems like it prints an error |
19:45:46 | FromDiscord | <nnsee> about an invalid id format |
19:45:49 | FromDiscord | <Elegantbeef> Select a fd with some flags |
19:46:15 | FromDiscord | <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:26 | FromDiscord | <Phil> I know all my problems started when I started importing std/posix and tried to use stuff from it |
19:47:19 | FromDiscord | <Phil> Ah, it was epoll, not selectors |
19:47:26 | FromDiscord | <sOkam! π«> In reply to @nnsee "are you sure you": yo, good catch! classic me, I mistook `-id` for `-root` |
19:50:14 | FromDiscord | <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:20 | FromDiscord | <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:24 | FromDiscord | <Phil> I need context because I got none |
19:51:56 | FromDiscord | <Elegantbeef> You started the PR for adjustments and said there was an issue with scroll bar cause it was not a widget |
19:52:02 | FromDiscord | <Phil> Oh you mean the still ongoing scrollbar PR? |
19:52:25 | FromDiscord | <Elegantbeef> Can one not just manually emit the code the macro would emit? |
19:52:48 | FromDiscord | <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:34 | FromDiscord | <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:44 | FromDiscord | <Phil> (edit) "Generally the issue is about it containing a data-type ... that" added "(GtkAdjustment)" |
19:53:52 | FromDiscord | <Phil> (edit) "wrapper" => "wrapped" |
19:54:55 | * | def- joined #nim |
19:55:10 | FromDiscord | <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:18 | FromDiscord | <Phil> It is the latter.β΅I can see it in the code |
19:57:39 | FromDiscord | <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:23 | FromDiscord | <srabb> can i ask a math thing here |
19:58:24 | * | krux02 quit (Ping timeout: 260 seconds) |
19:58:29 | FromDiscord | <Phil> sure |
19:59:05 | FromDiscord | <Elegantbeef> Ok i'm only going to slightly prod you into it |
20:00:34 | FromDiscord | <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:58 | FromDiscord | <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:09 | FromDiscord | <srabb> or is it just calculating a grids squares |
20:02:11 | FromDiscord | <Elegantbeef> Multiplication |
20:02:16 | FromDiscord | <Elegantbeef> Area |
20:02:20 | FromDiscord | <srabb> the method |
20:02:35 | FromDiscord | <Elegantbeef> Area of a square |
20:02:48 | FromDiscord | <sOkam! π«> grid size |
20:02:48 | FromDiscord | <Phil> ... multiplication?β΅2 dimensional area calculation? |
20:03:07 | FromDiscord | <sOkam! π«> grid area, 2D area... |
20:03:13 | FromDiscord | <Phil> I'm slightly confused as to what word you're looking for |
20:03:18 | FromDiscord | <sOkam! π«> yeah same |
20:03:26 | FromDiscord | <Phil> And given how sOkam is also just flinging words around it seems the same for him |
20:03:40 | FromDiscord | <Elegantbeef> Guys guys we're wrong it's a MSPaint drawing |
20:03:47 | FromDiscord | <sOkam! π«> tru! |
20:04:05 | FromDiscord | <Phil> In reply to @Elegantbeef "Guys guys we're wrong": If it's MSPaint then the method is privacy invasive |
20:04:48 | FromDiscord | <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:58 | FromDiscord | <sOkam! π«> #smarter everyday |
20:04:59 | FromDiscord | <srabb> paint.net to be exact |
20:05:17 | FromDiscord | <Elegantbeef> The way I hear it phil it stole your ID just being shared to you |
20:06:39 | FromDiscord | <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:32 | FromDiscord | <Elegantbeef> We also now are allowed to put ads into your breakfast food |
20:07:43 | FromDiscord | <Elegantbeef> Speaking of breakfast... have a break have a kitkat |
20:07:45 | FromDiscord | <Phil> All to improve our services |
20:08:02 | FromDiscord | <Phil> How does beaming kitkat ads into your brain improve our services? |
20:08:08 | * | def- joined #nim |
20:08:10 | FromDiscord | <Elegantbeef> Money! |
20:08:14 | FromDiscord | <Phil> Don't you worry your little head about it and give. us. money! |
20:08:23 | FromDiscord | <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:28 | FromDiscord | <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:16 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=WfZSaflwCcPu |
22:48:31 | FromDiscord | <Robyn [She/Her]> Huh that looks odd honestly |
22:48:49 | FromDiscord | <Robyn [She/Her]> Any reason why you aren't just storing `Foo` in `Bar[Foo]`? |
22:51:44 | FromDiscord | <demotomohiro> I use generics because I want to create `Bar` with different types. |
22:55:33 | FromDiscord | <Robyn [She/Her]> So then why not just pass `Foo.x` to `Bar`? |
22:55:52 | FromDiscord | <Robyn [She/Her]> Seems like the best solution |
22:56:03 | FromDiscord | <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:27 | FromDiscord | <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:33 | FromDiscord | <demotomohiro> It compiles does not always mean the code is valid because the compiler can have bugs. |
23:03:03 | FromDiscord | <Robyn [She/Her]> Ah hm |
23:32:17 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=yvxfdrdQrtLp |
23:32:26 | FromDiscord | <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:56 | FromDiscord | <Robyn [She/Her]> @odexine you're the Haskell nut, you might know :P |
23:42:33 | FromDiscord | <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& |