<< 07-06-2025 >>

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