2025-09-01 02:55:26 why the heck c-value is documented in gforth's ffi but does not fucking exist? 2025-09-01 02:55:38 Undefined word >>>c-value<<< 2025-09-01 02:55:55 yet here is documented https://gforth.org/manual/Declaring-C-Functions.html 2025-09-01 03:01:10 maybe i have an old version 2025-09-01 03:02:57 seems to be the reason 2025-09-01 03:03:00 gforth 0.7.3 2025-09-01 03:12:21 :0 newest gforth comes with xlib bindings 2025-09-01 04:43:10 it installed the entire world, but there are no xlib bindings 2025-09-01 04:43:41 yet it comes with minos2 and there is a file x11-actors that says "also x11" yet there is no x11 nowhere :/ 2025-09-01 05:03:01 oh i have found the x.fs file :D 2025-09-01 05:03:57 i just had to include unix/x.fs 2025-09-01 05:58:34 https://termbin.com/jwyb 2025-09-01 05:58:41 this is cool 2025-09-01 13:58:34 I think the point of programming language standards is to produce code that scares people trained on the last revision of the standard where it was broken 2025-09-01 14:08:21 vms14: yay xlib bindings! 2025-09-01 14:08:31 I didn't know about include unix/x.fs 2025-09-01 14:09:08 xentrac: you have to update gforth 2025-09-01 14:09:29 yeah, I also have 0.7.3 which doesn't have it 2025-09-01 14:09:33 https://gforth.org/ 2025-09-01 14:09:48 download the bleeding edge version 2025-09-01 14:09:54 then run the commands there 2025-09-01 14:09:55 veltas: what do you mean? 2025-09-01 14:10:05 it will install the entire universe though 2025-09-01 14:10:16 but it comes with xlib bindings, opengl, etc 2025-09-01 14:10:36 I should add GForth bindings to Yeso 2025-09-01 14:10:53 xentrac: e.g. C++ code that uses globals makes me cringe because I 'know' that's bad, but since constexpr constructors have been added it's more safe now for some things 2025-09-01 14:11:50 because of the static initialization order fiasco? 2025-09-01 14:11:55 Yeah 2025-09-01 14:12:10 interesting, I didn't realize constexpr was relevant to that 2025-09-01 14:12:37 the nice thing about C++ is that there's always so much more to learn? 2025-09-01 14:12:49 Well if it's constexpr doesn't that mean it's safe wrt order of init? 2025-09-01 14:13:05 Wow deja vu, feel like I've had this conversation before 2025-09-01 14:14:37 I'm sure you're right 2025-09-01 14:24:08 btw the code i shown is terribly wrong xD 2025-09-01 14:24:23 i forgot to actually execute the open-display word 2025-09-01 14:24:41 it works because i have put a [ ] inside it xD 2025-09-01 14:25:13 but i actually just wanted to add the if, so that [] should be outside and the word just check 2025-09-01 14:28:17 also i see that it takes a s" string instead of s\" " drop i'm not sure if the stable version supports that, but c-function accepts s as argument which will take a s" string 2025-09-01 14:29:29 i was using s\" ...\0" to add the null for c because i did not know i could actually put s instead of a in the stack notation for c-function 2025-09-01 14:29:46 although not sure if that is available in the stable version 2025-09-01 14:33:11 it's not documented https://gforth.org/manual/Declaring-C-Functions.html 2025-09-01 14:33:32 but i have seen it in the unix/x.fs file 2025-09-01 14:34:07 that's the file 2025-09-01 14:34:10 https://termbin.com/4zz6 2025-09-01 14:36:04 also i do not know how is he adding the I flag for the compiler 2025-09-01 14:37:04 i see s" X11 -lXext" add-lib 2025-09-01 14:39:11 and seems that gforth structures map to c structures 2025-09-01 14:39:50 i don't know if it's new, because i thought i had to create my own c functions to mess with them 2025-09-01 14:49:19 that's awesome! 2025-09-01 14:49:42 I imagine it's a thing that hasn't changed and which might be platform-dependent 2025-09-01 14:50:14 I mean you could imagine that on some platform the padding between struct members might differ between GForth and C 2025-09-01 14:50:24 but that's not so likely to change over time 2025-09-01 14:51:57 btw now gforth uses swig to generate the .fs files for ffi 2025-09-01 14:52:32 idk if you are going to update it, but swig should help you automate bindings if you want to create them 2025-09-01 14:52:53 although i know nothing about swig xd 2025-09-01 14:54:04 forthBot: S" Donald Trump en etat de grace dans les nuages , en compagnie d'anges "S IMAGE 2025-09-01 14:54:05 would be cool to be able to ask mr paysan random questions 2025-09-01 14:54:07 DEBUG: No 'url' key found in OpenAI response 2025-09-01 14:54:07 Error: IMAGE: Failed to generate or upload image 2025-09-01 14:54:29 cleobuline: some users left the channel because you wouldn't stop spamming with your bot 2025-09-01 14:54:48 forthBot: EXIT 2025-09-01 14:58:13 it's amazing that SWIG is still a thing 2025-09-01 16:49:39 vms14: anyone can type "forthBot: EXIT 2025-09-01 16:50:12 no one will though 2025-09-01 16:54:50 It's Kermit day 2025-09-01 16:58:40 https://www.oris.ch/en-GB/product/watch/propilot-x/propilot-x-calibre-400/01-400-7778-7157-Set 2025-09-01 16:58:55 "reminding you to make a little time for yourself"