| 00:08:37 | * | Mister_Magister quit (Quit: bye) |
| 00:13:17 | * | Mister_Magister joined #nim |
| 00:42:40 | FromDiscord | <nasuray> In reply to @sys64 "": To my knowledge the official extension is explicitly designed to work with nim-lang/langserver....regarding your install issues earlier it's attempting to compile a separate nim from source because of nimble lock file behavior... So install langserver with `--useSystemNim` |
| 00:49:11 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @nasuray "To my knowledge the": It crashed I guess? https://media.discordapp.net/attachments/371759389889003532/1493050380697735392/image.png?ex=69dd8f06&is=69dc3d86&hm=4f8b5d3ff1d6afeab7ba420dc4146e58a8e64fcd769c95c9f07ec36214257ef5& |
| 02:39:50 | * | rockcavera quit (Remote host closed the connection) |
| 06:54:33 | * | mrinsane quit (Ping timeout: 248 seconds) |
| 08:28:02 | * | beholders_eye joined #nim |
| 11:42:04 | * | beholders_eye quit (Quit: WeeChat 4.9.0) |
| 11:42:18 | * | beholders_eye joined #nim |
| 11:59:39 | * | xutaxkamay quit (Quit: ZNC 1.9.1+deb2+b3 - https://znc.in) |
| 12:01:57 | * | xutaxkamay joined #nim |
| 15:46:02 | FromDiscord | <DetermiedNim1> is it possible to generate wrappers for dynamic libraries |
| 15:46:09 | FromDiscord | <DetermiedNim1> using futhark |
| 15:47:38 | FromDiscord | <DetermiedNim1> i'm trying to use [wiringPi](https://github.com/wiringPi/WiringPi/tree/e9821abdb4b4fe46a2ea9243471d339435fa7bde) |
| 15:47:48 | FromDiscord | <DetermiedNim1> and using the header gives me an error |
| 15:47:58 | FromDiscord | <DetermiedNim1> which i do not remember off the top of my head |
| 15:48:02 | FromDiscord | <mr_rowboto> what do you want to generate? the full harness with dlopen, getting the callbacks etc? |
| 15:48:11 | FromDiscord | <mr_rowboto> (edit) "callbacks" => "function pointers" |
| 15:49:33 | FromDiscord | <DetermiedNim1> what does "full harness" mean in this case |
| 15:49:42 | Amun-Ra | I wrote general dlopen wrapper but it requires manual work |
| 15:50:28 | Amun-Ra | ymmv https://github.com/amnr/dlutils |
| 15:50:49 | FromDiscord | <mr_rowboto> sent a code paste, see https://play.nim-lang.org/#pasty=yoKdDres |
| 15:50:54 | FromDiscord | <mr_rowboto> (edit) "https://play.nim-lang.org/#pasty=wnbHRQjL" => "https://play.nim-lang.org/#pasty=TCXjcUXv" |
| 15:50:58 | FromDiscord | <mr_rowboto> do yo want to generate that code? |
| 15:51:08 | FromDiscord | <mr_rowboto> or are you just intersted in the `.h` |
| 15:53:31 | FromDiscord | <DetermiedNim1> one sex |
| 15:53:34 | FromDiscord | <DetermiedNim1> (edit) "sex" => "sec" |
| 15:55:09 | FromDiscord | <DetermiedNim1> `Unknown node in addUsings: {"kind":"invalid","value":"inline enum?"}` this is the last error before it stops |
| 16:11:33 | FromDiscord | <DetermiedNim1> In reply to @Amun-Ra "ymmv https://github.com/amnr/dlutils": I think this worked! |
| 16:12:04 | FromDiscord | <DetermiedNim1> I cant test it atm but hopefully later it runs properly |
| 16:16:41 | * | mrinsane joined #nim |
| 16:41:25 | FromDiscord | <asviest> In reply to @determiedmech1 "is it possible to": If it's about dynlib pragma, I think anything can use it, if you about directly call dlopen and something like proc reloadLib(), probably no one has made binding generators for this |
| 16:41:49 | FromDiscord | <asviest> (edit) "anything" => "any binding generator" |
| 16:43:35 | Amun-Ra | DetermiedNim1: I use it in my projects |
| 16:44:54 | Amun-Ra | I needed something to conditionally load libraries I need, ie: sdl3, if not found sdl2, etc… |
| 17:29:51 | FromDiscord | <mr_rowboto> In reply to @Amun-Ra "ymmv https://github.com/amnr/dlutils": Nice! |
| 17:29:54 | FromDiscord | <DetermiedNim1> In reply to @mr_rowboto "or are you just": Oh i forgot to answer this |
| 17:30:09 | FromDiscord | <DetermiedNim1> yeah my original goal was to use the header |
| 17:30:20 | Amun-Ra | thx |
| 17:30:55 | FromDiscord | <mr_rowboto> the bindings futhark generates are static |
| 17:31:04 | FromDiscord | <mr_rowboto> (AFAIK) |
| 17:32:29 | FromDiscord | <DetermiedNim1> In reply to @determiedmech1 "`Unknown node in addUsings:": when i use the header i either get this |
| 17:32:42 | FromDiscord | <DetermiedNim1> or it claims that the functions i use are undefined references |
| 17:32:48 | FromDiscord | <mr_rowboto> same happened to me with wgpu |
| 17:32:51 | FromDiscord | <mr_rowboto> (edit) "wgpu" => "wgpu.h" |
| 17:32:57 | FromDiscord | <mr_rowboto> clang version? 22? |
| 17:33:38 | FromDiscord | <asviest> In reply to @mr_rowboto "the bindings futhark generates": can't it use the dynlib pragma? |
| 17:33:53 | FromDiscord | <DetermiedNim1> In reply to @mr_rowboto "clang version? 22?": oh lemme check |
| 17:34:15 | FromDiscord | <mr_rowboto> In reply to @asviest "can't it use the": I don't know. In fact I got stuck in answering because I realized I never did anything other than just casting func pointers. |
| 17:34:46 | FromDiscord | <mr_rowboto> (edit) "wgpu.h" => "wgpu.h↵-# which btw pushed me to do [this](https://github.com/rowdaboat/henka) ahem" |
| 17:35:58 | FromDiscord | <mr_rowboto> If `dynlib` generates the wrapper for you, adding that to `henka` would be super easy :thonk: |
| 17:45:31 | FromDiscord | <asviest> sent a code paste, see https://play.nim-lang.org/#pasty=SUGadJUH |
| 17:46:46 | FromDiscord | <mr_rowboto> ooofff |
| 17:47:18 | FromDiscord | <mr_rowboto> sounds like a combination of pmunch/futhark with amnr/dlutils |
| 17:47:27 | FromDiscord | <mr_rowboto> would be so nice |
| 18:17:54 | FromDiscord | <DetermiedNim1> In reply to @determiedmech1 "oh lemme check22.1.3": 22.1.3 @graphisco |
| 18:18:20 | FromDiscord | <mr_rowboto> In reply to @determiedmech1 "22.1.3 <@986886365763485736>": yep |
| 18:18:29 | FromDiscord | <mr_rowboto> futhark breaks with 22 for some reason |
| 18:18:51 | FromDiscord | <mr_rowboto> Two options right now: |
| 18:19:26 | FromDiscord | <mr_rowboto> (edit) "now:" => "now (I can think of):" |
| 18:19:30 | FromDiscord | <mr_rowboto> (edit) "(I" => "(that I" |
| 18:21:38 | FromDiscord | <mr_rowboto> sent a long message, see https://pasty.ee/JCFpgKoj |
| 18:22:15 | FromDiscord | <mr_rowboto> `henka` is not guaranteed to work tho, you'd be running barely cooked stuff. |
| 18:22:52 | FromDiscord | <mr_rowboto> (edit) "stuff." => "stuff (albeit very simple to use and with minimal dependencies)." |