00:11:32 | FromDiscord | <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:17 | FromDiscord | <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:12 | FromDiscord | <nitely_> In reply to @Zoom "Hey all! Any help": but copyMem within a func compiles, so it should be something else |
03:18:36 | FromDiscord | <nitely_> In reply to @Zoom "Hey all! Any help": oh it's because of --experimental:strictFuncs |
03:20:01 | FromDiscord | <nitely_> and it's newStringUninit which has sideeffects not copy<em |
03:20:07 | FromDiscord | <nitely_> (edit) "copy<em" => "copyMem" |
03:22:39 | FromDiscord | <nitely_> the fix is probably making newStringUninit not have sideeffects, though (ask araq idk) |
05:12:28 | FromDiscord | <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:58 | FromDiscord | <Elegantbeef> Nope Nim does not have constructors |
05:13:55 | FromDiscord | <explosiveend> damn... not even with some macro manipulation?? :plead: |
05:14:11 | FromDiscord | <Elegantbeef> You might be able to use a term rewriting macro but it's dumb |
05:14:24 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "You might be able": also would tank performance |
05:14:33 | FromDiscord | <Elegantbeef> No it wouldn't |
05:14:35 | FromDiscord | <Robyn [She/Her]> comptime performance |
05:14:58 | FromDiscord | <Robyn [She/Her]> term rewriting macros are heavy when you're using them a lot, no? |
05:15:02 | FromDiscord | <Elegantbeef> It wouldn't be that bad |
05:15:19 | FromDiscord | <Robyn [She/Her]> I'm not wording good rn, bear with me |
05:15:51 | FromDiscord | <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:05 | FromDiscord | <explosiveend> In reply to @battery.acid.bubblegum "just make a typeInit": LMAO |
05:16:10 | FromDiscord | <explosiveend> fair enough ig |
05:16:26 | FromDiscord | <Elegantbeef> What are you even trying to do? |
05:16:39 | FromDiscord | <Robyn [She/Her]> they reap what they sow, and what was sewn was misery |
05:19:47 | FromDiscord | <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:13 | FromDiscord | <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:57 | FromDiscord | <explosiveend> in the event that someone ran `var x = Matrix[int]()` instead of using `matrixInit()` |
05:21:07 | FromDiscord | <Elegantbeef> This is where I enter OOP hell and just say use a property 😄 |
05:21:10 | FromDiscord | <explosiveend> In reply to @battery.acid.bubblegum "just make a typeInit": but this is a fire sol |
05:21:43 | FromDiscord | <explosiveend> In reply to @Elegantbeef "This is where I": use a property in what way |
05:21:54 | madprops | is araq sane? |
05:22:03 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=qOvMcOUX |
05:22:06 | FromDiscord | <Elegantbeef> No he's not |
05:22:13 | FromDiscord | <explosiveend> In reply to @madprops "is araq sane?": only one answer to that |
05:22:45 | madprops | what is the answer? |
05:23:13 | FromDiscord | <explosiveend> In reply to @madprops "what is the answer?": elegantbeef got it correct 😁 |
05:23:14 | FromDiscord | <Elegantbeef> What's the initiator to that comment mad? |
05:23:57 | madprops | im fully supportive of extreme behavior |
05:24:04 | madprops | the whole industry is wack |
05:24:42 | FromDiscord | <Elegantbeef> Extreme behaviour is lame |
05:24:49 | madprops | not really |
05:24:54 | madprops | being a soyboy is lame |
05:25:16 | FromDiscord | <Elegantbeef> The implication being that not being extreme makes you a soyboy |
05:25:26 | madprops | not really |
05:25:43 | FromDiscord | <Elegantbeef> Excuse me whilst I go get my yellow and red flag to ensure momma aint raise a soyboy |
05:26:04 | madprops | soyboys will destroy your falt |
05:26:08 | madprops | flat* |
05:26:20 | madprops | they get no mercy |
05:26:26 | FromDiscord | <Elegantbeef> Sounds pretty extreme |
05:26:34 | FromDiscord | <explosiveend> sent a code paste, see https://play.nim-lang.org/#pasty=SPRtdfzH |
05:26:36 | madprops | it's necesary |
05:26:41 | FromDiscord | <Elegantbeef> Nope |
05:27:05 | madprops | soyboys are cannon fodder |
05:27:12 | madprops | and they'll just die |
05:27:19 | FromDiscord | <Elegantbeef> Are you ok mad? |
05:27:25 | FromDiscord | <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:26 | madprops | im the sanest man on earth |
05:27:34 | madprops | i know what im talking about |
05:27:47 | FromDiscord | <Elegantbeef> Doubt |
05:28:13 | madprops | araq is on the right track |
05:28:26 | FromDiscord | <Elegantbeef> In what respect? |
05:28:31 | madprops | aesthetics |
05:28:41 | FromDiscord | <Elegantbeef> Of what? |
05:29:09 | madprops | about how nim language creators get to say |
05:29:12 | madprops | what* |
05:29:26 | FromDiscord | <Elegantbeef> Uh huh |
05:29:30 | madprops | wink |
05:29:54 | madprops | there is an attack by weak people |
05:29:59 | FromDiscord | <Elegantbeef> This couldn't be any more obscure if you wrote it using morsecode encoded with spaces and whitespace |
05:30:07 | FromDiscord | <explosiveend> sent a code paste, see https://play.nim-lang.org/#pasty=nPmrLUEV |
05:30:19 | madprops | he knows there is an attack |
05:30:20 | FromDiscord | <Elegantbeef> Yes |
05:30:23 | madprops | and he rejects it |
05:30:31 | madprops | flat out rejects it |
05:30:36 | madprops | how many do that? |
05:30:40 | FromDiscord | <Elegantbeef> I wish I could find drugs to make me understand what you're even on about |
05:30:55 | madprops | the normie archetype is so boring |
05:31:53 | FromDiscord | <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:47 | FromDiscord | <Elegantbeef> If you're calling `row` and `col` a lot it's a few memory fetches and comparisons |
05:35:32 | madprops | do you think nim is making it clear it can be used as binaries for python programs? |
05:35:43 | madprops | i mean since python won |
05:35:51 | madprops | im personally a big fan of python |
05:36:04 | FromDiscord | <explosiveend> what did they win |
05:36:17 | madprops | the madprops awards |
05:36:36 | FromDiscord | <explosiveend> from you? |
05:36:39 | madprops | yeah |
05:36:56 | FromDiscord | <Elegantbeef> Madprops award of excellence, behonest it's just dogshit in a bag |
05:37:56 | madprops | the python typing system just werks for humans and ai |
05:38:32 | FromDiscord | <Elegantbeef> `TypeError no field 'werks' on 'bleh'` |
05:40:27 | madprops | what even is your position in the nim community? |
05:40:31 | madprops | you are a savant |
05:40:39 | madprops | but i don't know your affiiliation |
05:41:05 | madprops | you give me the impression you are anti nim |
05:41:26 | FromDiscord | <Elegantbeef> I don't have any official position I'm just a numpty with a keyboard |
05:42:18 | madprops | you know that is not true |
05:42:41 | FromDiscord | <Elegantbeef> I also have a mouse |
05:43:09 | madprops | heh |
05:43:13 | madprops | i guess that's funny |
05:43:19 | madprops | and i'll leave it at that |
05:43:31 | FromDiscord | <Elegantbeef> It is to me which is why I said it |
05:44:20 | madprops | the core of my temporary manifestion is, nim's extremism is right |
05:44:38 | madprops | and the main dev know's what's up |
05:46:00 | FromDiscord | <Elegantbeef> If you say so |
06:03:07 | FromDiscord | <lainlaylie> someone's been drinking |
06:05:08 | madprops | araq is high energy |
06:05:22 | madprops | don't get filtered |
06:28:22 | FromDiscord | <litlighilit> Considering NimPyLib? https\://nimpylib.org↵(<@709044657232936960_madprops=5b=49=52=43=5d>) |
06:29:04 | madprops | why is my nickname in that link |
07:02:24 | * | coldfeet joined #nim |
07:51:46 | FromDiscord | <nnsee> In reply to @madprops "why is my nickname": it's a reply but the bridge messed it up |
07:52:28 | FromDiscord | <nnsee> bridges, plural? think it's going matrix <-> discord <-> irc |
07:52:41 | FromDiscord | <nnsee> the internet is just a series of tubes |
08:00:08 | * | ntat joined #nim |
08:00:20 | FromDiscord | <nnsee> or maybe the other way around |
08:36:56 | FromDiscord | <.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:31 | FromDiscord | <.tokyovigilante> using Futhark |
10:20:03 | * | ntat quit (Quit: leaving) |
10:33:13 | * | ntat joined #nim |
11:41:12 | FromDiscord | <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:17 | FromDiscord | <enthus1ast.> I saw a mupdf wrapper on GitHub lately, but no idea if this allows to read or just display |
14:59:03 | FromDiscord | <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:12 | FromDiscord | <rakgew> yes - it would be just for text parsing. |
17:07:28 | FromDiscord | <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:32 | FromDiscord | <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 |