<< 02-04-2025 >>

02:41:17*rockcavera quit (Remote host closed the connection)
03:05:54FromDiscord<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:55FromDiscord<Robyn [She/Her]> In reply to @goerge_lsd "there was a way": `export symbol `
03:10:15FromDiscord<Robyn [She/Her]> (edit) "symbol `" => "<symbol>, <another>, <etc>`"
03:10:36FromDiscord<goerge_lsd> I meant, importing an unexported symbol
03:10:41FromDiscord<goerge_lsd> {.private.} pragma i think
03:13:10FromDiscord<goerge_lsd> hm compiler hints that it's {.all.} instead. can't find it in index or google ?
03:23:09FromDiscord<goerge_lsd> Is there a way to simply patch a line of code from an imported module instead ?
03:29:17FromDiscord<Robyn [She/Her]> In reply to @goerge_lsd "hm compiler hints that": yeah, to import all symbols, it's `import module {.all.}`
03:29:29FromDiscord<Robyn [She/Her]> In reply to @goerge_lsd "hm compiler hints that": probably because it's a hack
03:29:34FromDiscord<Robyn [She/Her]> In reply to @goerge_lsd "Is there a way": not really, no
03:29:55FromDiscord<Robyn [She/Her]> Iirc Nimble has a `patchFile` tho
03:39:00FromDiscord<goerge_lsd> oh that will do I guess
03:43:38FromDiscord<Elegantbeef> There is also importutils if you want to be sillier
03:59:57FromDiscord<goerge_lsd> oh yeah, privateAccess, that's what I was remembering, not the {.all.} pragma
04:00:59FromDiscord<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:04FromDiscord<goerge_lsd> (edit) "Rar" => "Raw"
04:01:37FromDiscord<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:36FromDiscord<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:54FromDiscord<goerge_lsd> Is it hard/problematic to bundle something like zlib in your code base ?
04:03:12FromDiscord<Elegantbeef> Is it hard to ship another file with a program?
04:03:28FromDiscord<goerge_lsd> well it's a library, not an end program
04:03:45FromDiscord<Elegantbeef> is it hard to ship another library with a library
04:03:49FromDiscord<goerge_lsd> feels like it should just work if you ask me
04:03:58FromDiscord<Elegantbeef> zlib does have static libraries
04:04:00FromDiscord<goerge_lsd> no idea, that is what i am asking. never done it, haven't found examples
04:04:38FromDiscord<goerge_lsd> i mean like, include it in the library compiled object, so there is no external file
04:04:59FromDiscord<Elegantbeef> That's what a static library is
04:05:53FromDiscord<goerge_lsd> there's a zlibstatic by treeform it seems
04:06:59FromDiscord<goerge_lsd> but it's not a nimble package, and the included zlib is outdated
04:07:12FromDiscord<goerge_lsd> (edit) "package," => "package (on nimble.directory),"
04:07:22FromDiscord<Elegantbeef> Oh noes you might have to use a giturl
04:09:06FromDiscord<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:49FromDiscord<Elegantbeef> If you're on linux it's really as simple as `--dynlibOverrid:libz --passL:-lz`
04:09:55FromDiscord<Elegantbeef> Assuming you have a libz.a
04:11:03FromDiscord<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