00:49:09 | FromDiscord | <saint._._.> In reply to @fabric.input_output "I need a sax": I did some bindings for libxml |
00:49:44 | FromDiscord | <saint._._.> So you can use xpath |
00:50:23 | FromDiscord | <saint._._.> https://github.com/sainttttt/xavierXML |
00:50:33 | FromDiscord | <saint._._.> I need to add some examples and stuff |
02:16:56 | * | rockcavera joined #nim |
06:23:12 | * | nils` quit (Ping timeout: 252 seconds) |
06:37:43 | * | sabetts joined #nim |
06:40:09 | sabetts | with each slow python loop I write, my interest in nim grows. |
06:49:52 | FromDiscord | <saint._._.> In reply to @aintea "My code is so": Nice |
07:24:59 | * | sabetts quit (Ping timeout: 260 seconds) |
07:32:52 | * | nils` joined #nim |
08:32:02 | FromDiscord | <aintea> In reply to @sabetts "with each slow python": You will be shocked when you learn Nim is way more than just a faster python |
08:32:09 | FromDiscord | <aintea> I thought the same first |
08:32:23 | FromDiscord | <zumi.dxy> something something faster horses quote |
08:43:18 | * | end quit (Ping timeout: 244 seconds) |
08:43:29 | * | bcksl quit (Ping timeout: 248 seconds) |
09:04:21 | * | nils` quit (Ping timeout: 252 seconds) |
09:07:16 | * | bcksl joined #nim |
09:14:07 | * | end joined #nim |
13:10:35 | * | fabricio joined #nim |
13:14:02 | fabricio | is there a way to stream-write json? |
13:21:05 | FromDiscord | <Robyn [She/Her]> In reply to @fabricio "is there a way": wdym? like, construct it as you iterate over a type? |
13:21:15 | FromDiscord | <Robyn [She/Her]> Disruptek's jason may be good for you |
13:22:00 | FromDiscord | <Robyn [She/Her]> https://github.com/disruptek/jason |
13:25:04 | * | fabricio quit (Ping timeout: 272 seconds) |
13:25:31 | madprops | i made a simple image viewer by asking claude to write some rust code |
13:25:40 | madprops | it worked well enough |
13:25:41 | * | fabricio joined #nim |
13:25:49 | madprops | now i don't have to depend on sus image viewers |
13:26:33 | FromDiscord | <Robyn [She/Her]> https://nimble.directory/pkg/eminim also this perhaps |
13:26:57 | * | socrates1298 joined #nim |
13:27:50 | fabricio | eminim seems like what I need, thanks |
13:34:33 | * | beholders_eye joined #nim |
13:36:34 | FromDiscord | <Robyn [She/Her]> no worries! |
14:02:09 | * | beholders_eye quit (Ping timeout: 252 seconds) |
15:12:12 | * | socrates1298 quit (Ping timeout: 252 seconds) |
15:59:14 | * | beholders_eye joined #nim |
16:04:02 | * | beholders_eye quit (Ping timeout: 272 seconds) |
16:20:12 | * | amadaluzia joined #nim |
16:37:03 | * | fabricio quit (Quit: WeeChat 3.5) |
16:54:16 | FromDiscord | <hawkey5212> In reply to @aintea "I suggest you use": Rewrite of a good rust library. Nice examples. Simple to get started with. Looks good! |
16:54:54 | FromDiscord | <aintea> The last bug has been patched btw |
17:05:53 | FromDiscord | <TFed> how to make a constant attribute in the object? |
17:05:53 | FromDiscord | <TFed> i have type↵ NewObject = ref object of RootObj↵ pi = 3.14 |
17:05:53 | FromDiscord | <TFed> how to make this attribute constant |
17:05:56 | FromDiscord | <TFed> how to make this `pi` attribute (in this case) constant |
17:05:57 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=cSlBCgBA |
17:05:57 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=BzFTjtWT |
17:05:58 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=tmbCFmfa |
17:07:30 | * | andy-turner joined #nim |
17:12:11 | FromDiscord | <griffith1deadly> In reply to @TFed "how to make a": for what? |
17:12:35 | FromDiscord | <griffith1deadly> what you want to make |
17:13:22 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=CxytxPPY |
17:13:29 | FromDiscord | <aintea> a constant is a function that takes no parameter |
17:13:49 | FromDiscord | <aintea> but you should probably just use a global scoped defined constant for that |
17:14:47 | * | nils` joined #nim |
17:21:10 | FromDiscord | <aceroph> thats so coool, its like a @property in python |
17:33:49 | * | amadaluzia quit (Read error: Connection reset by peer) |
17:34:08 | * | amadaluzia joined #nim |
18:00:37 | FromDiscord | <TFed> there is PackageURL object that stores metainfo about package. where it's from, what version etc.↵(@griffith1deadly) |
18:01:23 | FromDiscord | <TFed> packageURL has .scheme attribute that is constant and is always "pkg\://"↵(@griffith1deadly) |
18:02:10 | FromDiscord | <TFed> but actually it doesnt matter because i know that anyway, so i can store it as just normal attribute🤔 |
18:02:28 | FromDiscord | <TFed> but actually it doesnt matter because i know that anyway, so i can store it just as normal attribute🤔 |
18:04:36 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=uFcjqPGu |
18:04:38 | FromDiscord | <TFed> oh, i thought about making it public↵↵is it↵nim const pi\ = 3.14 |
18:04:53 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=MvhsfQLX |
18:05:03 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=GpiZDoKZ |
18:05:35 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=HzZEMBGV |
18:05:41 | FromDiscord | <aintea> then you can just do like in C |
18:05:49 | FromDiscord | <aintea> "you should know what it does or when it should not be modified" |
18:06:02 | FromDiscord | <aintea> (edit) "does or" => "does, what it is and" | "does, what it is andwhen it should ... not" added "or" |
18:07:15 | FromDiscord | <TFed> okay i will use const then 😌 |
18:08:20 | FromDiscord | <TFed> it's for supporting purl (curl's sub project for addressing packages in all kinds of package managers)↵(@aintea) |
18:08:38 | FromDiscord | <aintea> then yeah a const should do the trick if it's done at compiletime |
18:08:50 | FromDiscord | <aintea> or you can do a func if you really want the `.` notation |
18:10:34 | FromDiscord | <TFed> i can even use both↵(@aintea) |
18:11:01 | FromDiscord | <TFed> sent a long message, see https://pasty.ee/RrdprzBq |
18:11:14 | FromDiscord | <TFed> sent a code paste, see https://play.nim-lang.org/#pasty=PdFQHBvP |
18:11:16 | FromDiscord | <aintea> yeah |
18:15:31 | * | amadaluzia quit (Ping timeout: 252 seconds) |
18:21:52 | * | andy-turner quit (Quit: Leaving) |
18:22:37 | * | andy-turner joined #nim |
18:26:36 | * | andy-turner quit (Client Quit) |
18:27:19 | * | amadaluzia joined #nim |
19:00:45 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=jyCzKlFk |
19:01:23 | FromDiscord | <Robyn [She/Her]> it's `_: typedesc[NewObject]` if you want `NewObject.pi` which is sorta similar to a static method |
19:01:48 | FromDiscord | <Robyn [She/Her]> In reply to @TFed "oh, i thought about": fyi the math module should have Pi as a constant |
19:05:52 | FromDiscord | <aintea> In reply to @battery.acid.bubblegum "it's `_: typedesc[NewObject]` if": yes but it looks like he wanted the `<actual_object>.pi` |
19:05:58 | FromDiscord | <aintea> if not then yes yours is better |
19:20:09 | * | amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in) |