00:35:36 | FromDiscord | <that_dude.> sent a code paste, see https://play.nim-lang.org/#ix=4Fke |
00:51:24 | FromDiscord | <odexine> It’s a waste I’d say |
00:51:52 | FromDiscord | <odexine> Unless you don’t just want to match card base |
00:53:08 | FromDiscord | <that_dude.> My initial train of thought when writing is without the CardBase defined, but then I make it out of convenience and end up just inheriting the base |
01:34:19 | FromDiscord | <Elegantbeef> insert my row stuffs here |
02:04:38 | FromDiscord | <sOkam! 🫐> @ElegantBeouf is doing `let one = create(char, 10)` compatible with `let two :ptr UncheckedArray[char]= ....` given their internal representation? |
02:05:39 | FromDiscord | <Elegantbeef> Yes |
02:05:51 | FromDiscord | <Elegantbeef> A `ptr T` is the same as `ptr UncheckedArray[T]` |
02:06:02 | * | xmachina joined #nim |
02:06:13 | FromDiscord | <sOkam! 🫐> i want to make my own dynamically sized string type, but don't know which type to use for the underlying storage, since cstring seems so sketchy to work with given my understanding |
02:06:25 | FromDiscord | <Elegantbeef> Cstring is fine to use |
02:06:37 | FromDiscord | <sOkam! 🫐> yeah but how do you realloc, dealloc, etc? |
02:06:58 | FromDiscord | <sOkam! 🫐> given that it is a distinct |
02:07:06 | FromDiscord | <Elegantbeef> Cast |
02:07:39 | FromDiscord | <sOkam! 🫐> so you would create a `proc cstring( mystr :MyStringType) :cstring= ...`? |
02:07:44 | FromDiscord | <sOkam! 🫐> to be able to convert? |
02:08:11 | FromDiscord | <sOkam! 🫐> idk if thats even possible with system types |
02:08:24 | FromDiscord | <Elegantbeef> It's not |
02:08:31 | FromDiscord | <Elegantbeef> it's not possible for any type |
02:08:47 | FromDiscord | <sOkam! 🫐> kk. so it would need a different achronym |
02:09:19 | FromDiscord | <sOkam! 🫐> would you store it as cstring directly? that sounds a bit more ergonomic to access |
02:09:26 | FromDiscord | <sOkam! 🫐> (edit) "directly?" => "directly internally?" |
02:09:34 | FromDiscord | <Elegantbeef> that or `ptr UncheckedArray[T]` |
02:10:33 | FromDiscord | <sOkam! 🫐> is there any real difference in functionality between `seq[char]` and `string` , other than string being a separate type? do they behave the same internally? |
02:10:45 | FromDiscord | <Elegantbeef> `string` is always null terminated |
02:11:14 | FromDiscord | <sOkam! 🫐> true. but assuming the underlying repr only, are they the same in behavior (minus the nullterm)? |
02:12:04 | FromDiscord | <Elegantbeef> I mean it's `int, ptr` |
02:12:05 | FromDiscord | <sOkam! 🫐> i was thinking that maybe making dynamic arrays first would just solve most of the dynamic strings thing, if they can be stored as `ptr UnchechedArray[T]` where T for strings is just char |
02:13:47 | FromDiscord | <sOkam! 🫐> what does that mean in practice? not sure i follow what `int, ptr` means |
02:13:57 | FromDiscord | <sOkam! 🫐> (edit) "means" => "implied" |
02:14:08 | FromDiscord | <Elegantbeef> It's an object with an int and a pointer |
02:14:28 | FromDiscord | <sOkam! 🫐> so you mean that they are technically both the same? |
02:14:47 | FromDiscord | <Elegantbeef> The only difference is as I said a string is always null terminated |
02:15:08 | FromDiscord | <sOkam! 🫐> kk, so my guess was correct. tyty ✍️ |
02:16:36 | NimEventer | New Nimble package! instagram - Instagram internal web api implementation, see https://github.com/thisago/instagram |
02:17:12 | FromDiscord | <Elegantbeef> https://github.com/nim-lang/Nim/blob/devel/lib/system/strs_v2.nim↵https://github.com/nim-lang/Nim/blob/devel/lib/system/seqs_v2.nim |
02:17:34 | FromDiscord | <sOkam! 🫐> didn't know how to find those, tysm! |
02:26:34 | FromDiscord | <raynei486> sent a code paste, see https://play.nim-lang.org/#ix=4Fky |
02:27:26 | FromDiscord | <Elegantbeef> did you build atlas from source, think the atlas shipped with nim2.0 has issues |
02:28:15 | FromDiscord | <raynei486> bruh |
02:28:19 | FromDiscord | <raynei486> yeah I did |
02:28:54 | FromDiscord | <raynei486> I installed nim with choosenim but it didn't include atlas |
02:30:38 | FromDiscord | <sOkam! 🫐> it includes it, it just doesn't link it to `.nimble/bin` |
02:31:45 | FromDiscord | <raynei486> so where is it? |
02:32:41 | FromDiscord | <sOkam! 🫐> inside the toolkit folder of that version. im on linux, and i just linked the toolkit bin to the .nimble/bin with ln -s |
02:32:57 | FromDiscord | <sOkam! 🫐> idk how to do it on windows if you are on win |
02:33:10 | FromDiscord | <raynei486> ah okay I'll dig a bit |
02:33:26 | FromDiscord | <sOkam! 🫐> i would tell you the exact command ,but i don't remember it |
02:33:29 | FromDiscord | <sOkam! 🫐> (edit) "it" => "the folders" |
02:33:33 | FromDiscord | <sOkam! 🫐> (edit) "folders" => "folders. just searched for them" |
02:37:46 | FromDiscord | <raynei486> I found it in `~/.choosenim/toolchains/nim-1.6.12/bin/` |
02:38:03 | FromDiscord | <raynei486> hopefully this one works |
02:39:56 | FromDiscord | <Elegantbeef> It's going to be outdated |
02:42:09 | FromDiscord | <sOkam! 🫐> In reply to @raynei486 "I found it in": there should be one at `~/.choosenim/toolchains/nim-2.0.0/bin/`, which is what you need to link |
02:42:29 | FromDiscord | <sOkam! 🫐> or install devel and link that one instead, since beef mentioned that 2.0 version has issues |
02:42:38 | FromDiscord | <raynei486> yeah that's what I was thinking |
02:42:42 | FromDiscord | <raynei486> I'll do that |
02:42:45 | FromDiscord | <Elegantbeef> Atlas doesnt depend on the nim version |
02:42:57 | FromDiscord | <Elegantbeef> So you should not need to install devel |
02:43:31 | FromDiscord | <huantian> beef i'm too lazy to docs whats the proc to get the users config and cache dir |
02:44:06 | FromDiscord | <Elegantbeef> Fuck off |
02:44:20 | FromDiscord | <huantian> dang the ai is spicy today |
02:44:49 | FromDiscord | <Elegantbeef> lol |
02:46:52 | FromDiscord | <huantian> oh the module is called appdirs |
05:06:15 | FromDiscord | <huantian> beef is there a way to recursively create file/dir or do i make my own |
05:06:31 | FromDiscord | <Elegantbeef> There is not that I know of |
05:06:46 | FromDiscord | <huantian> cool |
05:10:02 | FromDiscord | <huantian> sent a code paste, see https://play.nim-lang.org/#ix=4FkW |
05:29:13 | * | ntat joined #nim |
05:29:18 | FromDiscord | <odexine> has anyone used nim-dbus? is it still recommended for use or is there a replacement? |
05:35:08 | * | azimut joined #nim |
05:37:36 | * | advesperacit joined #nim |
05:44:17 | * | disso-peach joined #nim |
06:28:39 | PMunch | @odexine, I used it in notificatcher |
06:41:17 | * | kenran joined #nim |
06:43:25 | FromDiscord | <odexine> btw for "installing atlas", you can basically copy the `nim` exe in `~/.nimble/bin/` and rename it `atlas` and itll work, but if you switch back to a nim without atlas bundled then it wont ofc |
06:43:33 | FromDiscord | <odexine> switch -> via choosenim |
06:46:19 | FromDiscord | <odexine> atlas is p neat huh |
06:54:56 | PMunch | Wait what? |
06:55:03 | PMunch | Is atlas built into the compiler? |
06:56:22 | FromDiscord | <Elegantbeef> No |
06:56:22 | FromDiscord | <Elegantbeef> It's in the tool chain |
06:56:26 | PMunch | I've got a strange bug, some of my procedures with doc comments refuse to render.. |
06:57:19 | PMunch | @Elegantbeef, but how would copying the `nim` binary and renaming it `atlas` do anything if Atlas wasn't built into Nim? |
06:57:20 | Amun-Ra | huantian: getenv |
06:57:25 | FromDiscord | <odexine> In reply to @PMunch "Is atlas built into": no, the binaries in the nimble bin folder for nim/nimble/nimsuggest/etc are all shim programs that reference back into the choosenim folder by reading the exe filename |
06:57:28 | PMunch | Or did I misunderstand something |
06:57:47 | FromDiscord | <Elegantbeef> rika meant to write atlas exe |
06:57:53 | PMunch | Oh right, the shims :P |
06:58:06 | FromDiscord | <odexine> lol |
06:58:53 | PMunch | So all the shims are the same, they just read paramStr(0) or something to decide which program to run? |
06:59:41 | FromDiscord | <odexine> pretty much |
06:59:56 | FromDiscord | <odexine> uses getAppFilename() specifically iirc |
07:00:33 | Amun-Ra | huantian: "recursively create file/dir" as in "create directory along with parent ones"? if so create_dir from std/osdirs |
07:08:50 | FromDiscord | <nnsee> In reply to @odexine "has anyone used nim-dbus?": i used it for a post-exploitation implant, used dbus to communicate with systemd to find a suitable service to inject/burrow into |
07:08:53 | FromDiscord | <nnsee> worked fine for my purpose |
07:09:22 | FromDiscord | <odexine> okay thanks, i was just wondering if there were other implementations |
07:09:35 | FromDiscord | <nnsee> from what i found during my research phase, not really |
07:09:57 | FromDiscord | <nnsee> there seemed to be some projects that were started but then abandoned |
07:10:11 | FromDiscord | <nnsee> libdbus is a beast and reimplementing it is sort of a herculean task |
07:11:31 | FromDiscord | <nnsee> also love dbus's documentation page https://media.discordapp.net/attachments/371759389889003532/1148153352023195648/image.png |
07:12:46 | FromDiscord | <odexine> lmao |
07:28:13 | PMunch | This is getting really frustrating.. No matter what I do some of the procedures refuse to render their doc comments.. |
07:28:34 | termer | that's very bizarre |
07:35:38 | FromDiscord | <toma400> I see Atlas being brought up, if I could ask, how does it relate to Nimble? What differences it has, advantages, disadvantages, unique goals that Nimble can't reach? |
07:41:34 | PMunch | @toma400, this probably answers your questions: https://forum.nim-lang.org/t/10234 |
07:42:06 | PMunch | Granted it's written to promote Atlas, so there aren't any disadvantages listed |
07:50:47 | * | junaid_ joined #nim |
08:15:31 | * | junaid_ quit (Remote host closed the connection) |
08:16:47 | FromDiscord | <ieltan> In reply to @toma400 "I see Atlas being": Well, one disadvantage i can think of is that the workspace approach pulls all dependencies for each of your projects , that mean more disk space consumed overtime |
08:18:13 | FromDiscord | <ieltan> That's very inherent to the workspace concept though |
08:19:26 | FromDiscord | <ieltan> But you can mitigate this by having multiple projects in the same workspace |
08:21:05 | FromDiscord | <ieltan> imo the biggest advantage to Atlas is the workflow, if I am working on some library I can easily pull it in a test project and hack away at it |
08:24:15 | * | xet7 quit (Ping timeout: 245 seconds) |
09:04:38 | FromDiscord | <Phil> sent a long message, see http://ix.io/4FlH |
09:04:57 | FromDiscord | <Phil> (edit) "http://ix.io/4FlH" => "http://ix.io/4FlI" |
09:09:57 | FromDiscord | <Phil> sent a long message, see http://ix.io/4FlK |
09:11:17 | FromDiscord | <odexine> technically you also already have atlas |
09:27:30 | FromDiscord | <Phil> Not that I'm aware of, the atlas docs tell me to clone and compile the tool and put it onto the path myself |
09:28:01 | FromDiscord | <Phil> Which is already more effort than I'm willing to expend for something that I only benefit from under specific circumstances and also has drawbacks. |
09:28:56 | FromDiscord | <Phil> Though if you develop a lot of packages locally or co-develop some I assume Atlas is pretty much holy to you as it seemingly solves that well. |
09:29:15 | FromDiscord | <ieltan> sent a code paste, see https://play.nim-lang.org/#ix=4FlO |
09:30:15 | FromDiscord | <Phil> In reply to @ieltan "1. `atlas search $keyword`": Ah, so it's a matter of missing docs rather than missing feature |
09:30:23 | FromDiscord | <ieltan> yeah, it's really underdocumented |
09:31:05 | FromDiscord | <ieltan> took some time to figure out how to properly set vendors for my project |
09:32:26 | FromDiscord | <ieltan> also I don't understand why it pulls https://github.com/nim-lang/packages into your workspace |
09:36:50 | FromDiscord | <odexine> In reply to @isofruit "Not that I'm aware": if you have nim 2 you have atlas, its bundled |
09:37:06 | FromDiscord | <odexine> you cant access it because choosenim doesnt put a shim in the nimble bin folder |
09:37:31 | FromDiscord | <odexine> `cp ~/.nimble/bin/nim ~/.nimble/bin/atlas` iirc |
09:38:41 | FromDiscord | <Phil> If somebody gives me a featurescope rundown I might be willing to write nimibook docs |
09:39:12 | FromDiscord | <Phil> ~~Wouldn't be the first foreign project I slapped documentation in the shape of a nimibook onto~~ |
09:53:03 | FromDiscord | <enthus1ast> it was working properly, since a few version it behaves strangely↵(@Phil) |
10:00:30 | FromDiscord | <odexine> it -> atlas or nimble? |
10:08:40 | FromDiscord | <Phil> Pretty sure he means nimble |
10:09:57 | * | disso-peach quit (Ping timeout: 245 seconds) |
10:10:14 | * | disso-peach joined #nim |
10:32:12 | FromDiscord | <ezquerra> In reply to @odexine "you cant access it": I hope that will change soon, hopefully by the next point release? 🙂 |
10:32:41 | FromDiscord | <enthus1ast> nimble |
10:33:39 | FromDiscord | <odexine> In reply to @ezquerra "I hope that will": choosenim is still under doms acct and needs to be moved or forked so |
10:34:01 | FromDiscord | <enthus1ast> https://github.com/nim-lang/nimble/issues/1124 |
10:44:07 | * | tk quit (Ping timeout: 245 seconds) |
10:44:26 | * | krux02 joined #nim |
10:45:31 | * | tk joined #nim |
10:45:49 | FromDiscord | <enthus1ast> i also have no mac (that i want to use) |
10:49:53 | FromDiscord | <~piuvas> choosenim doesnt add atlas to path right |
10:55:37 | FromDiscord | <odexine> In reply to @odexine "`cp ~/.nimble/bin/nim ~/.nimble/bin/atlas` iirc": temp fix is to do this |
11:03:19 | FromDiscord | <griffith1deadly> In reply to @enthus1ast "the incident looks fixed": on nim docs - as i recall no, on nim github docs page yes |
11:05:52 | FromDiscord | <Phil> In reply to @cortana.exe "https://github.com/nim-lang/website/issues/375 this": Fixed, but not released afaik |
11:06:52 | FromDiscord | <ringabout> In reply to @cortana.exe "https://github.com/nim-lang/website/issues/375 this": Yeah, as a workaround, you could look at the devel documentation. |
11:41:10 | FromDiscord | <piuvas> In reply to @odexine "temp fix is to": it doesnt show on matrix LMFAO |
11:41:32 | FromDiscord | <piuvas> if i knew it was a bridge i wouldve joined here earlier |
11:41:37 | FromDiscord | <piuvas> thx |
11:44:29 | FromDiscord | <odexine> oh shit it doesnt? bruh |
11:49:44 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4Fm8 |
11:50:56 | FromDiscord | <piuvas> In reply to @odexine "oh shit it doesnt?": the reply doesnt unforts |
11:56:22 | * | junaid_ joined #nim |
12:02:40 | FromDiscord | <griffith1deadly> sent a code paste, see https://play.nim-lang.org/#ix=4Fm9 |
12:03:47 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "maybe because Game =": And how can I fix this? |
12:07:00 | * | junaid_ quit (Remote host closed the connection) |
12:27:07 | FromDiscord | <System64 ~ Flandre Scarlet> Is there any pragma or something I can use? |
12:36:29 | FromDiscord | <System64 ~ Flandre Scarlet> And if I try to satisfy the compiler, it yells that https://media.discordapp.net/attachments/371759389889003532/1148235133833457754/image.png |
12:39:17 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "maybe because Game =": No, my graphics engine does that too, no problems |
12:39:27 | * | rockcavera joined #nim |
12:40:02 | FromDiscord | <odexine> sent a code paste, see https://play.nim-lang.org/#ix=4Fmj |
12:40:12 | FromDiscord | <odexine> it seems like a bug though |
12:40:41 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://paste.rs/rVQw8 |
12:40:58 | FromDiscord | <odexine> ?? why? |
12:41:03 | FromDiscord | <odexine> Game is still ref |
12:41:13 | FromDiscord | <System64 ~ Flandre Scarlet> Yeah but to access the fields |
12:41:15 | FromDiscord | <odexine> this is completely equivalent |
12:41:18 | FromDiscord | <odexine> it's still accessible |
12:41:23 | FromDiscord | <odexine> iirc |
12:41:25 | FromDiscord | <System64 ~ Flandre Scarlet> Oh, sorry |
12:41:59 | FromDiscord | <odexine> ill test it if youd like, at least to double check |
12:42:13 | FromDiscord | <System64 ~ Flandre Scarlet> Alright |
12:42:29 | PMunch | Hmm, what's the best way to convert a module with doc comments to a README.md file? |
12:42:45 | FromDiscord | <odexine> yup |
12:42:53 | FromDiscord | <odexine> still is accessible |
12:43:34 | FromDiscord | <odexine> https://wandbox.org/permlink/q6ZXSg8JdvvFxTpz system64 |
12:45:28 | FromDiscord | <System64 ~ Flandre Scarlet> Oh nice, but now I have another problem |
12:46:12 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4Fmk |
12:46:22 | FromDiscord | <odexine> oh |
12:46:30 | FromDiscord | <odexine> that might have been the "real" error |
12:46:34 | FromDiscord | <odexine> what's your Room type |
12:47:13 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4Fml |
12:48:08 | FromDiscord | <odexine> what about `Background` `Bitmap` `RoomSerialize` `HubSerialize`? basically theres a likelihood there's a generic that's missing its generic parameters |
12:48:31 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @odexine "what about `Background` `Bitmap`": They are types from a C library |
12:48:43 | FromDiscord | <odexine> defined how |
12:49:29 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4Fmn |
12:51:50 | FromDiscord | <odexine> i wonder if its because of that |
12:52:27 | FromDiscord | <System64 ~ Flandre Scarlet> That would be weird |
12:55:48 | FromDiscord | <odexine> bugs are usually weird |
12:58:43 | PMunch | Just released another Futhark'd wrapper library :) https://github.com/PMunch/mapm-nim |
12:59:02 | FromDiscord | <System64 ~ Flandre Scarlet> Oh nice! |
13:01:04 | FromDiscord | <ieltan> In reply to @PMunch "Just released another Futhark'd": Nice, how long did it take to wrap it? |
13:01:38 | PMunch | To wrap it? Took me about 10 seconds |
13:01:51 | FromDiscord | <ieltan> sent a code paste, see https://play.nim-lang.org/#ix=4Fmq |
13:02:15 | PMunch | To copy over the documentation and write the high level wrapper took a bit longer :P |
13:03:02 | PMunch | I mean the entire low-level wrapper is generated here: https://github.com/PMunch/mapm-nim/blob/master/src/internal.nim |
13:03:19 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @ieltan "Are you perhaps using": No idea what is a typeclass, but I don't use concepts |
13:03:35 | FromDiscord | <ieltan> In reply to @PMunch "To copy over the": Yeah I actually mean the high level wrapper sorry |
13:04:19 | FromDiscord | <ieltan> In reply to @sys64 "No idea what is": Something like `type MyType = SomeType | OtherType` |
13:04:43 | PMunch | Well my first commit was 4 days ago, but I have done it a bit on and off when I've had time |
13:04:48 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @ieltan "Something like `type MyType": No I don't do that |
13:05:07 | FromDiscord | <odexine> have you used any type with that in it? |
13:05:10 | FromDiscord | <odexine> like SomeInteger etc? |
13:08:09 | * | kenran quit (Remote host closed the connection) |
13:08:31 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @odexine "like SomeInteger etc?": No |
13:08:54 | FromDiscord | <odexine> truly strange |
13:10:54 | FromDiscord | <piuvas> btw nim 2 is finally on arch repos |
13:10:59 | FromDiscord | <piuvas> on testing |
13:11:04 | FromDiscord | <piuvas> daaaamn took so long |
13:11:34 | FromDiscord | <piuvas> hope it goes to main soon |
13:12:20 | FromDiscord | <odexine> that took long |
13:16:49 | * | xmachina quit (Quit: WeeChat 4.0.4) |
13:21:56 | * | xmachina joined #nim |
13:38:57 | * | rockcavera quit (Read error: Connection reset by peer) |
13:39:30 | * | rockcavera joined #nim |
13:39:31 | * | rockcavera quit (Changing host) |
13:39:31 | * | rockcavera joined #nim |
13:56:02 | * | xmachina quit (Quit: WeeChat 4.0.4) |
13:58:06 | NimEventer | New Nimble package! mapm - Nim wrapper for MAPM, an arbitrary maths library with support for trig functions, see https://github.com/PMunch/mapm-nim |
14:02:59 | * | ced2 joined #nim |
14:07:01 | * | ced2 is now known as cedb |
14:59:13 | FromDiscord | <Schelz> Hi! Is there any way that I could cast an interface to a class ? |
15:05:46 | FromDiscord | <odexine> interface? |
15:07:34 | FromDiscord | <Phil> In reply to @Schelz "Hi! Is there any": Are you.sure this is about Nim?↵Do you maybe mean the experimental feature "concept"? |
15:08:04 | FromDiscord | <Phil> (edit) "Nim?↵Do" => "Nim?↵Or do" |
15:19:38 | * | Onionhammer3 joined #nim |
15:21:16 | * | Onionhammer quit (Ping timeout: 248 seconds) |
15:21:16 | * | Onionhammer3 is now known as Onionhammer |
15:21:59 | * | adigitoleo quit (*.net *.split) |
15:31:00 | * | adigitoleo joined #nim |
15:32:44 | * | ced2 joined #nim |
15:33:14 | * | cedb quit (Read error: Connection reset by peer) |
15:33:17 | * | xmachina joined #nim |
15:34:21 | * | jmdaemon quit (Ping timeout: 246 seconds) |
15:36:28 | * | kenran joined #nim |
15:36:58 | * | ced2 quit (Ping timeout: 250 seconds) |
15:39:06 | * | ced2 joined #nim |
15:56:34 | FromDiscord | <Schelz> nvm i got it working from https://github.com/nim-lang/Nim/wiki/Playing-with-CPP--VTABLE-from-Nim |
15:57:00 | FromDiscord | <Schelz> (edit) "https://github.com/nim-lang/Nim/wiki/Playing-with-CPP--VTABLE-from-Nim" => "https://github.com/nim-lang/Nim/wiki/Playing-with-CPP--VTABLE-from-Nim, thx tho" |
15:57:21 | FromDiscord | <jmgomez> In reply to @Schelz "nvm i got it": dont do that, that's old |
15:57:45 | FromDiscord | <jmgomez> You want to look for these: https://nim-lang.github.io/Nim/manual_experimental.html#virtual-pragma |
15:58:24 | * | ced2 is now known as cedb |
15:59:18 | FromDiscord | <Schelz> seems interesting, thx i will check it out in detail later |
16:14:59 | * | junaid_ joined #nim |
16:32:27 | * | kenran quit (Ping timeout: 246 seconds) |
17:47:23 | PMunch | Hmm, interesting issue |
17:47:41 | PMunch | The C library I'm importing sets up some globals |
17:48:07 | PMunch | These globals are destroyed when you tell the library to deinitialize |
17:48:38 | PMunch | But since I've attached a destructor to that type these are already destroyed by the time the library wants to deinitialize them.. |
17:49:18 | PMunch | I guess I could add a bunch of `if` tests to ensure that these globals aren't destroyed.. |
17:49:24 | FromDiscord | <jviega> That makes perfect sense, your destructor def has to test for whether the module is loaded |
17:50:01 | PMunch | Oh yeah, it makes perfect sense. Just trying to figure out how to best solve it |
17:51:38 | PMunch | The library is a math library, and it has constants like Pi in it. If I try to use this constant in my code my destructor also gets called and frees it, which is a bit unfortunate |
17:57:46 | FromDiscord | <sOkam! 🫐> In reply to @PMunch "I mean the entire": whats your workflow for creating the internal?↵i found that manually copying the output of futhark is a bit uncomfortable, but maybe you have a better workflow in place |
17:58:27 | * | qwr quit (Remote host closed the connection) |
17:58:29 | FromDiscord | <sOkam! 🫐> _(maybe it was because I wanted to keep control over the names, and you just literal copy/paste instead, could explain)_ |
17:59:23 | PMunch | Well you can use the `outputPath` option as described in the shipping wrappers section of the README |
17:59:33 | PMunch | But for this I just manually copy pasted the file |
18:00:17 | FromDiscord | <sOkam! 🫐> yeah, i know. that's why i was asking, because i kinda failed but you mentioned it is really easy for you to do, so was wondering what i failed with |
18:00:41 | FromDiscord | <sOkam! 🫐> i never managed to make it behave like I wanted to, it just did its thing on its own |
18:03:34 | PMunch | Hmm, what where you trying to make it do? |
18:04:06 | PMunch | were* |
18:05:28 | FromDiscord | <fabric.input_output> theme is broken https://media.discordapp.net/attachments/371759389889003532/1148317924201857064/image.png |
18:16:54 | FromDiscord | <juan_carlos> Maybe is Dark theme for colorblind people. |
18:17:02 | PMunch | @fabric.input_output, this is a known and fixed bug (fix will be present in next version of Nim) |
18:24:45 | PMunch | Damn it.. Something is wrong with my `=copy`/`=destroy` hooks.. |
18:24:59 | PMunch | Or Nim isn't properly freeing memory |
18:25:08 | PMunch | At least according to valgrind |
18:25:33 | * | xet7 joined #nim |
18:34:04 | FromDiscord | <breadpudding> Hello everyone. I'm currently writing UEFI bindings for Nim and I keep getting an error about having an out of order `enum`. I understand that `enum`s are supposed to be ordinal in Nim, however the documentation states that you can ignore that to maintain compatibility with C. What it doesn't say is how to do so. I've been digging through pragmas for a bit now but I haven't found anything useful. Thoughts? |
18:36:15 | * | xet7 quit (Ping timeout: 255 seconds) |
18:48:36 | * | xet7 joined #nim |
19:03:58 | * | xet7 quit (Quit: Leaving) |
19:15:10 | * | ntat quit (Quit: leaving) |
19:29:30 | * | azimut quit (Ping timeout: 246 seconds) |
19:30:21 | * | azimut joined #nim |
19:39:12 | FromDiscord | <vindaar> In reply to @PMunch "Damn it.. Something is": the sections in the manual about the hooks imo should be greatly expanded. multiple times I've wondered if the issue is on my side or not. Many details about what I can/must/... assume etc are just not clear |
19:42:07 | FromDiscord | <System64 ~ Flandre Scarlet> With ORC, is the cycle collector Mark and Sweep? |
19:55:05 | PMunch | @vindaar, yeah it's not very clear.. |
19:57:35 | PMunch | @breadpudding, where did you read that? |
19:57:54 | PMunch | The manual clearly states: "For better interfacing to other programming languages, the fields of enum types can be assigned an explicit ordinal value. However, the ordinal values have to be in ascending order." |
20:06:00 | FromDiscord | <pmunch> @breadpudding ^ |
20:06:41 | * | junaid_ quit (Remote host closed the connection) |
20:11:40 | * | casaca_ joined #nim |
20:12:46 | * | deadmarshal_ quit (Ping timeout: 246 seconds) |
20:12:46 | * | xaltsc_ quit (Ping timeout: 246 seconds) |
20:12:47 | * | casaca quit (Ping timeout: 246 seconds) |
20:12:50 | * | casaca_ is now known as casaca |
20:12:57 | * | FromDiscord quit (Ping timeout: 246 seconds) |
20:13:01 | * | casaca quit (Read error: Connection reset by peer) |
20:13:02 | * | noeontheend quit (Write error: Connection reset by peer) |
20:13:02 | * | adigitoleo quit (Read error: Connection reset by peer) |
20:13:02 | * | mronetwo quit (Write error: Connection reset by peer) |
20:13:02 | * | henrytill quit (Write error: Connection reset by peer) |
20:13:03 | * | oddish quit (Read error: Connection reset by peer) |
20:13:14 | * | FromDiscord joined #nim |
20:13:17 | * | adigitoleo joined #nim |
20:13:18 | * | mronetwo joined #nim |
20:13:19 | * | oddish joined #nim |
20:13:44 | * | casaca joined #nim |
20:14:20 | * | xet7 joined #nim |
20:14:38 | * | henrytill joined #nim |
20:14:44 | * | xaltsc joined #nim |
20:15:04 | * | noeontheend joined #nim |
20:21:35 | * | deadmarshal_ joined #nim |
20:24:05 | FromDiscord | <breadpudding> Ah heck, looks like I got that one from a third party source. |
20:26:12 | FromDiscord | <breadpudding> In reply to @PMunch "@breadpudding, where did you": So I got it working now. Nim must treat `enum`s as ascending order from a signed number point of view. |
20:26:34 | FromDiscord | <breadpudding> I put all the values with the high bit set at the top of my enum and now it stopped complaining. |
20:29:25 | FromDiscord | <breadpudding> @pmunch |
20:29:43 | PMunch | Great |
20:34:22 | * | advesperacit quit () |
20:39:27 | * | xet7 quit (Ping timeout: 244 seconds) |
20:39:43 | * | xet7 joined #nim |
20:45:53 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @heysokam "definitely not. its a": Oh alright, so both ARC and ORC are RAII? |
20:49:06 | FromDiscord | <System64 ~ Flandre Scarlet> So I don't understand why I have crashes with ORC |
20:53:41 | PMunch | Ugh, I'm off. But this hooks thing is kicking my ass.. I think it optimizes away my `=destroy`, which obviously isn't great because I kinda need that.. |
20:54:07 | PMunch | I think the bug lies in the `=wasMoved(x); =destroy(x)` optimization |
20:54:10 | * | PMunch quit (Quit: leaving) |
20:55:24 | * | rockcavera quit (Read error: Connection reset by peer) |
20:55:45 | * | rockcavera joined #nim |
20:55:45 | * | rockcavera quit (Changing host) |
20:55:45 | * | rockcavera joined #nim |
21:40:46 | NimEventer | New question by me0045: Nim intellisense not working properly with nim jester, see https://stackoverflow.com/questions/77040725/nim-intellisense-not-working-properly-with-nim-jester |
21:45:58 | * | nyeaa4928423010 joined #nim |
21:47:07 | * | dza2 joined #nim |
21:47:17 | * | _________ quit (Ping timeout: 246 seconds) |
21:47:38 | * | nyeaa492842301 quit (Ping timeout: 246 seconds) |
21:47:59 | * | dza quit (Ping timeout: 246 seconds) |
21:47:59 | * | dza2 is now known as dza |
21:49:25 | * | _________ joined #nim |
22:23:09 | FromDiscord | <Chronos [She/Her]> With Nim using Zig CC, how do I crosscompile...? :P |
22:23:17 | FromDiscord | <Chronos [She/Her]> Need to target aarch64 Linux |
22:28:17 | FromDiscord | <Chronos [She/Her]> Hm |
22:28:55 | FromDiscord | <Chronos [She/Her]> Think I figured it iut |
22:35:22 | * | xmachina quit (Quit: WeeChat 4.0.4) |
22:37:53 | * | jmdaemon joined #nim |
22:39:43 | * | FromDiscord quit (Ping timeout: 240 seconds) |
22:40:31 | * | FromDiscord joined #nim |
23:02:45 | * | xmachina joined #nim |
23:20:15 | FromDiscord | <barbiehammer> can someone explain to me the tradeoff of compiling nim into js? |
23:20:27 | FromDiscord | <barbiehammer> versus writing pure js |
23:20:35 | FromDiscord | <barbiehammer> or is there no cons? |
23:34:30 | * | azimut quit (Ping timeout: 246 seconds) |
23:40:09 | * | disso-peach quit (Quit: Leaving) |