02:41:17 | * | rockcavera quit (Remote host closed the connection) |
03:05:54 | FromDiscord | <goerge_lsd> there was a way to force exporting a symbol that doesn't have , i don't remember how :-? besides using include instead of import |
03:09:55 | FromDiscord | <Robyn [She/Her]> In reply to @goerge_lsd "there was a way": `export symbol ` |
03:10:15 | FromDiscord | <Robyn [She/Her]> (edit) "symbol `" => "<symbol>, <another>, <etc>`" |
03:10:36 | FromDiscord | <goerge_lsd> I meant, importing an unexported symbol |
03:10:41 | FromDiscord | <goerge_lsd> {.private.} pragma i think |
03:13:10 | FromDiscord | <goerge_lsd> hm compiler hints that it's {.all.} instead. can't find it in index or google ? |
03:23:09 | FromDiscord | <goerge_lsd> Is there a way to simply patch a line of code from an imported module instead ? |
03:29:17 | FromDiscord | <Robyn [She/Her]> In reply to @goerge_lsd "hm compiler hints that": yeah, to import all symbols, it's `import module {.all.}` |
03:29:29 | FromDiscord | <Robyn [She/Her]> In reply to @goerge_lsd "hm compiler hints that": probably because it's a hack |
03:29:34 | FromDiscord | <Robyn [She/Her]> In reply to @goerge_lsd "Is there a way": not really, no |
03:29:55 | FromDiscord | <Robyn [She/Her]> Iirc Nimble has a `patchFile` tho |
03:39:00 | FromDiscord | <goerge_lsd> oh that will do I guess |
03:43:38 | FromDiscord | <Elegantbeef> There is also importutils if you want to be sillier |
03:59:57 | FromDiscord | <goerge_lsd> oh yeah, privateAccess, that's what I was remembering, not the {.all.} pragma |
04:00:59 | FromDiscord | <goerge_lsd> My problem is, I am trying to uncompress a Rar Deflate stream, and the last block bit is not sent until server disconnection, and it seems no zlib wrapper, nor zippy, exposes a way to do that, with higher level procs. |
04:01:04 | FromDiscord | <goerge_lsd> (edit) "Rar" => "Raw" |
04:01:37 | FromDiscord | <goerge_lsd> (edit) "My problem is, I am trying to uncompress a Raw Deflate stream, and the last block bit is not sent until server disconnection, and it seems no zlib wrapper, nor zippy, exposes a way to do that, with higher level procs. ... " added "All panic when hitting end of buffer and lastblock not there." |
04:02:36 | FromDiscord | <goerge_lsd> I managed to fix it with the zlib raw procs, but then I thought, maybe better to ditch zlib alltogether, since it would need the .so/.dll to be there, an extra hassle for whoever might use this |
04:02:54 | FromDiscord | <goerge_lsd> Is it hard/problematic to bundle something like zlib in your code base ? |
04:03:12 | FromDiscord | <Elegantbeef> Is it hard to ship another file with a program? |
04:03:28 | FromDiscord | <goerge_lsd> well it's a library, not an end program |
04:03:45 | FromDiscord | <Elegantbeef> is it hard to ship another library with a library |
04:03:49 | FromDiscord | <goerge_lsd> feels like it should just work if you ask me |
04:03:58 | FromDiscord | <Elegantbeef> zlib does have static libraries |
04:04:00 | FromDiscord | <goerge_lsd> no idea, that is what i am asking. never done it, haven't found examples |
04:04:38 | FromDiscord | <goerge_lsd> i mean like, include it in the library compiled object, so there is no external file |
04:04:59 | FromDiscord | <Elegantbeef> That's what a static library is |
04:05:53 | FromDiscord | <goerge_lsd> there's a zlibstatic by treeform it seems |
04:06:59 | FromDiscord | <goerge_lsd> but it's not a nimble package, and the included zlib is outdated |
04:07:12 | FromDiscord | <goerge_lsd> (edit) "package," => "package (on nimble.directory)," |
04:07:22 | FromDiscord | <Elegantbeef> Oh noes you might have to use a giturl |
04:09:06 | FromDiscord | <goerge_lsd> i'll just patch zippy for the moment and ask if they can implement what i want for the future, I guess |
04:09:49 | FromDiscord | <Elegantbeef> If you're on linux it's really as simple as `--dynlibOverrid:libz --passL:-lz` |
04:09:55 | FromDiscord | <Elegantbeef> Assuming you have a libz.a |
04:11:03 | FromDiscord | <goerge_lsd> well I am, but some users will be on windows. I want to publish this on nimble.directory in the end |
04:32:06 | * | SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev) |
04:32:31 | * | SchweinDeBurg joined #nim |
05:15:56 | * | ntat joined #nim |