<< 23-03-2025 >>

00:11:32FromDiscord<Zoom> Hey all! Any help with appeasing the CI? https://github.com/nim-lang/Nim/pull/24792#issuecomment-2745926860
01:58:25*_________ quit (Ping timeout: 244 seconds)
02:15:16*_________ joined #nim
02:55:17FromDiscord<nitely_> In reply to @Zoom "Hey all! Any help": what you said pretty sure. See https://github.com/nim-lang/Nim/blob/482662d19855788c61b46b1c8f3236c57cba6fb3/lib/system/strs_v2.nim#L201 needs it because of copyMem
03:15:12FromDiscord<nitely_> In reply to @Zoom "Hey all! Any help": but copyMem within a func compiles, so it should be something else
03:18:36FromDiscord<nitely_> In reply to @Zoom "Hey all! Any help": oh it's because of --experimental:strictFuncs
03:20:01FromDiscord<nitely_> and it's newStringUninit which has sideeffects not copy<em
03:20:07FromDiscord<nitely_> (edit) "copy<em" => "copyMem"
03:22:39FromDiscord<nitely_> the fix is probably making newStringUninit not have sideeffects, though (ask araq idk)
05:12:28FromDiscord<explosiveend> is it possible to run code when an object of a certain type is created (assuming they dont use a "typical" `typeInit()` proc to create it)
05:12:58FromDiscord<Elegantbeef> Nope Nim does not have constructors
05:13:55FromDiscord<explosiveend> damn... not even with some macro manipulation?? :plead:
05:14:11FromDiscord<Elegantbeef> You might be able to use a term rewriting macro but it's dumb
05:14:24FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "You might be able": also would tank performance
05:14:33FromDiscord<Elegantbeef> No it wouldn't
05:14:35FromDiscord<Robyn [She/Her]> comptime performance
05:14:58FromDiscord<Robyn [She/Her]> term rewriting macros are heavy when you're using them a lot, no?
05:15:02FromDiscord<Elegantbeef> It wouldn't be that bad
05:15:19FromDiscord<Robyn [She/Her]> I'm not wording good rn, bear with me
05:15:51FromDiscord<Robyn [She/Her]> In reply to @explosiveend "is it possible to": just make a typeInit function and if someone doesn't use it, let them deal with the consequences of their actions
05:16:05FromDiscord<explosiveend> In reply to @battery.acid.bubblegum "just make a typeInit": LMAO
05:16:10FromDiscord<explosiveend> fair enough ig
05:16:26FromDiscord<Elegantbeef> What are you even trying to do?
05:16:39FromDiscord<Robyn [She/Her]> they reap what they sow, and what was sewn was misery
05:19:47FromDiscord<explosiveend> i'm trying to write a `Matrix[T]` type and depending on whether they pass in certain data (e.g. row/col size), it'll set the field(s) to the inferred values (e.g. `matInit(data: @[@[1, 2], @[3, 4]]` will have `row, col = 2, 2`)
05:20:13FromDiscord<explosiveend> very simple and ik i can just write a basic proc / template for it, just wanted to know if there was a constructor-like thing in nim
05:20:57FromDiscord<explosiveend> in the event that someone ran `var x = Matrix[int]()` instead of using `matrixInit()`
05:21:07FromDiscord<Elegantbeef> This is where I enter OOP hell and just say use a property 😄
05:21:10FromDiscord<explosiveend> In reply to @battery.acid.bubblegum "just make a typeInit": but this is a fire sol
05:21:43FromDiscord<explosiveend> In reply to @Elegantbeef "This is where I": use a property in what way
05:21:54madpropsis araq sane?
05:22:03FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=qOvMcOUX
05:22:06FromDiscord<Elegantbeef> No he's not
05:22:13FromDiscord<explosiveend> In reply to @madprops "is araq sane?": only one answer to that
05:22:45madpropswhat is the answer?
05:23:13FromDiscord<explosiveend> In reply to @madprops "what is the answer?": elegantbeef got it correct 😁
05:23:14FromDiscord<Elegantbeef> What's the initiator to that comment mad?
05:23:57madpropsim fully supportive of extreme behavior
05:24:04madpropsthe whole industry is wack
05:24:42FromDiscord<Elegantbeef> Extreme behaviour is lame
05:24:49madpropsnot really
05:24:54madpropsbeing a soyboy is lame
05:25:16FromDiscord<Elegantbeef> The implication being that not being extreme makes you a soyboy
05:25:26madpropsnot really
05:25:43FromDiscord<Elegantbeef> Excuse me whilst I go get my yellow and red flag to ensure momma aint raise a soyboy
05:26:04madpropssoyboys will destroy your falt
05:26:08madpropsflat*
05:26:20madpropsthey get no mercy
05:26:26FromDiscord<Elegantbeef> Sounds pretty extreme
05:26:34FromDiscord<explosiveend> sent a code paste, see https://play.nim-lang.org/#pasty=SPRtdfzH
05:26:36madpropsit's necesary
05:26:41FromDiscord<Elegantbeef> Nope
05:27:05madpropssoyboys are cannon fodder
05:27:12madpropsand they'll just die
05:27:19FromDiscord<Elegantbeef> Are you ok mad?
05:27:25FromDiscord<explosiveend> ohhh wait r u saying that internally (e.g. they try to run a matrix operation) i just call `m.col()` there, and it'll calculate the value before trying to use it?
05:27:26madpropsim the sanest man on earth
05:27:34madpropsi know what im talking about
05:27:47FromDiscord<Elegantbeef> Doubt
05:28:13madpropsaraq is on the right track
05:28:26FromDiscord<Elegantbeef> In what respect?
05:28:31madpropsaesthetics
05:28:41FromDiscord<Elegantbeef> Of what?
05:29:09madpropsabout how nim language creators get to say
05:29:12madpropswhat*
05:29:26FromDiscord<Elegantbeef> Uh huh
05:29:30madpropswink
05:29:54madpropsthere is an attack by weak people
05:29:59FromDiscord<Elegantbeef> This couldn't be any more obscure if you wrote it using morsecode encoded with spaces and whitespace
05:30:07FromDiscord<explosiveend> sent a code paste, see https://play.nim-lang.org/#pasty=nPmrLUEV
05:30:19madpropshe knows there is an attack
05:30:20FromDiscord<Elegantbeef> Yes
05:30:23madpropsand he rejects it
05:30:31madpropsflat out rejects it
05:30:36madpropshow many do that?
05:30:40FromDiscord<Elegantbeef> I wish I could find drugs to make me understand what you're even on about
05:30:55madpropsthe normie archetype is so boring
05:31:53FromDiscord<explosiveend> how much of a penalty would that incur over just using a template to calculate once (assuming they use `init()` and bricking if they dont)?
05:32:47FromDiscord<Elegantbeef> If you're calling `row` and `col` a lot it's a few memory fetches and comparisons
05:35:32madpropsdo you think nim is making it clear it can be used as binaries for python programs?
05:35:43madpropsi mean since python won
05:35:51madpropsim personally a big fan of python
05:36:04FromDiscord<explosiveend> what did they win
05:36:17madpropsthe madprops awards
05:36:36FromDiscord<explosiveend> from you?
05:36:39madpropsyeah
05:36:56FromDiscord<Elegantbeef> Madprops award of excellence, behonest it's just dogshit in a bag
05:37:56madpropsthe python typing system just werks for humans and ai
05:38:32FromDiscord<Elegantbeef> `TypeError no field 'werks' on 'bleh'`
05:40:27madpropswhat even is your position in the nim community?
05:40:31madpropsyou are a savant
05:40:39madpropsbut i don't know your affiiliation
05:41:05madpropsyou give me the impression you are anti nim
05:41:26FromDiscord<Elegantbeef> I don't have any official position I'm just a numpty with a keyboard
05:42:18madpropsyou know that is not true
05:42:41FromDiscord<Elegantbeef> I also have a mouse
05:43:09madpropsheh
05:43:13madpropsi guess that's funny
05:43:19madprops and i'll leave it at that
05:43:31FromDiscord<Elegantbeef> It is to me which is why I said it
05:44:20madpropsthe core of my temporary manifestion is, nim's extremism is right
05:44:38madpropsand the main dev know's what's up
05:46:00FromDiscord<Elegantbeef> If you say so
06:03:07FromDiscord<lainlaylie> someone's been drinking
06:05:08madpropsaraq is high energy
06:05:22madpropsdon't get filtered
06:28:22FromDiscord<litlighilit> Considering NimPyLib? https\:&#47;&#47;nimpylib.org↵(<@709044657232936960_madprops=5b=49=52=43=5d>)
06:29:04madpropswhy is my nickname in that link
07:02:24*coldfeet joined #nim
07:51:46FromDiscord<nnsee> In reply to @madprops "why is my nickname": it's a reply but the bridge messed it up
07:52:28FromDiscord<nnsee> bridges, plural? think it's going matrix <-> discord <-> irc
07:52:41FromDiscord<nnsee> the internet is just a series of tubes
08:00:08*ntat joined #nim
08:00:20FromDiscord<nnsee> or maybe the other way around
08:36:56FromDiscord<.tokyovigilante> If I'm importing two C headers that both forward define the same type, is there a way to suppress the define from one? I can import the module that contains the other so the type is visible to Nim, but need something like `noopaquetypes` for a single type
08:41:31FromDiscord<.tokyovigilante> using Futhark
10:20:03*ntat quit (Quit: leaving)
10:33:13*ntat joined #nim
11:41:12FromDiscord<rakgew> is there a lib in nim for reading pdf? (similar to pypdf?)↵with nimble I only found ones that seem to write pdf.
11:44:29*tiorock joined #nim
11:44:29*tiorock quit (Changing host)
11:44:29*tiorock joined #nim
11:44:29*rockcavera is now known as Guest3240
11:44:29*Guest3240 quit (Killed (tantalum.libera.chat (Nickname regained by services)))
11:44:29*tiorock is now known as rockcavera
11:46:34*tiorock joined #nim
11:46:34*tiorock quit (Changing host)
11:46:34*tiorock joined #nim
11:46:34*rockcavera quit (Killed (silver.libera.chat (Nickname regained by services)))
11:46:34*tiorock is now known as rockcavera
12:38:57*tiorock joined #nim
12:38:57*tiorock quit (Changing host)
12:38:57*tiorock joined #nim
12:38:57*rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services)))
12:38:57*tiorock is now known as rockcavera
12:41:02*tiorock joined #nim
12:41:02*tiorock quit (Changing host)
12:41:02*tiorock joined #nim
12:41:02*rockcavera is now known as Guest5555
12:41:02*tiorock is now known as rockcavera
12:43:36*Guest5555 quit (Ping timeout: 252 seconds)
12:55:18*ntat quit (Quit: leaving)
13:37:25*SchweinDeBurg quit (Ping timeout: 248 seconds)
14:23:09*coldfeet quit (Quit: Lost terminal)
14:32:24*SchweinDeBurg joined #nim
14:53:21*rez joined #nim
14:55:15*rez quit (Client Quit)
14:57:16*rez joined #nim
14:58:17FromDiscord<enthus1ast.> I saw a mupdf wrapper on GitHub lately, but no idea if this allows to read or just display
14:59:03FromDiscord<enthus1ast.> When you just need the text you could call pandoc or similar, then use the text
15:00:00*rez quit (Client Quit)
15:09:13*ntat joined #nim
16:39:58*beholders_eye joined #nim
17:06:12FromDiscord<rakgew> yes - it would be just for text parsing.
17:07:28FromDiscord<rakgew> thx for the pointers. tbh I was hoping for a nim lib.
17:20:19*beholders_eye quit (Quit: WeeChat 4.5.1)
18:07:40*SchweinDeBurg quit (Ping timeout: 252 seconds)
18:08:53*SchweinDeBurg joined #nim
18:36:36*SchweinDeBurg quit (Ping timeout: 276 seconds)
18:38:09*SchweinDeBurg joined #nim
19:11:44*SchweinDeBurg quit (Quit: WeeChat 4.6.0-dev)
20:07:38*rockcavera quit (Read error: Connection reset by peer)
20:07:57*rockcavera joined #nim
20:07:57*rockcavera quit (Changing host)
20:07:57*rockcavera joined #nim
20:40:51*tiorock joined #nim
20:40:51*tiorock quit (Changing host)
20:40:51*tiorock joined #nim
20:40:51*rockcavera is now known as Guest1219
20:40:51*tiorock is now known as rockcavera
20:43:04*tiorock joined #nim
20:43:04*tiorock quit (Changing host)
20:43:04*tiorock joined #nim
20:43:04*rockcavera is now known as Guest8617
20:43:04*Guest8617 quit (Killed (tantalum.libera.chat (Nickname regained by services)))
20:43:04*tiorock is now known as rockcavera
20:44:59*Guest1219 quit (Ping timeout: 260 seconds)
21:01:37*ntat quit (Quit: leaving)
21:44:42*tiorock joined #nim
21:44:42*tiorock quit (Changing host)
21:44:42*tiorock joined #nim
21:44:42*rockcavera is now known as Guest3260
21:44:42*Guest3260 quit (Killed (silver.libera.chat (Nickname regained by services)))
21:44:42*tiorock is now known as rockcavera
21:46:48*tiorock joined #nim
21:46:48*tiorock quit (Changing host)
21:46:48*tiorock joined #nim
21:46:48*rockcavera is now known as Guest837
21:46:48*tiorock is now known as rockcavera
21:49:44*Guest837 quit (Ping timeout: 260 seconds)
23:08:58*tiorock joined #nim
23:08:58*rockcavera quit (Killed (mercury.libera.chat (Nickname regained by services)))
23:08:58*tiorock is now known as rockcavera
23:11:03*tiorock joined #nim
23:11:03*tiorock quit (Changing host)
23:11:03*tiorock joined #nim
23:11:03*rockcavera quit (Killed (silver.libera.chat (Nickname regained by services)))
23:11:03*tiorock is now known as rockcavera
23:26:18*beholders_eye joined #nim
23:29:32FromDiscord<Zoom> PDF is a byzantine hell of a standard. Some things, like determining the page count, you can do pretty easily, but never reliably. Also\: https://github.com/ading2210/doompdf
23:46:59*beholders_eye quit (Ping timeout: 260 seconds)
23:54:32*beholders_eye joined #nim