<< 07-03-2025 >>

00:10:27FromDiscord<je0010980> sent a long message, see https://pasty.ee/uVjcTLds
00:18:20FromDiscord<heysokam> does someone know how to find the `.md` files for the official manual?↵Can't find them in: https://github.com/nim-lang/website, so I assume they are somewhere else?
00:19:03FromDiscord<Elegantbeef> They're generated from `nim-lang/nim`
00:19:26FromDiscord<Elegantbeef> https://github.com/nim-lang/Nim/tree/devel/doc
00:19:54FromDiscord<prestosilver> Nims docgen is probably the feature in it I want to see more often the most ngl
00:20:15FromDiscord<prestosilver> It's so neatly implemented and language level support is just logical
00:20:41FromDiscord<prestosilver> (edit) "Nims docgen is probably the feature in it I want to see ... morelanguages" added "in" | "often" => "languages"
00:21:01FromDiscord<heysokam> found it, tyty ✍️↵https://github.com/nim-lang/Nim/blob/devel/doc/manual.md
00:23:08FromDiscord<heysokam> In reply to @prestosilver "Nims docgen is probably": I wish it was more flexible though, and didn't hardcode the process as it does 😦↵I tried outputting data for a different website gen... and it just didn't want to cooperate
01:51:27FromDiscord<Robyn [She/Her]> Currently wondering I can pass Nim's generated JS code to TypeScriptToLua and get Nim's loveliness working
01:58:26*rockcavera quit (Remote host closed the connection)
03:18:56*disso-peach joined #nim
03:58:05FromDiscord<albassort> E;ok
04:01:01*disso-peach quit (Quit: Leaving)
04:28:16FromDiscord<.tokyovigilante> On my ongoing project to build wayland bindings for nim, I'm struggling to import the generated protocol extensions, there's a whole bunch of inline functions in the headers which I've reimplemented in nim, but then there are also numerous typedefs, enums, and interfaces defined as structs of function pointers which Futhark is not processing, and are very tedious to redefine in Nim. For example, the xdg-shell extension header run
04:28:52FromDiscord<.tokyovigilante> https://media.discordapp.net/attachments/371759389889003532/1347425746108547182/xdg-shell-client-protocol.h?ex=67cbc783&is=67ca7603&hm=760f4e058066e2d897d6124362b097d047156e99889361a5fe28daeb41634cb6&
04:29:31FromDiscord<.tokyovigilante> At the rate I'm going I may be better off reimplementing the wayland-scanner tool to generate the extension code in Nim directly rather than C.
04:29:46FromDiscord<.tokyovigilante> Is there any reason Futhark would not produce any output for this header?
07:28:52*coldfeet joined #nim
07:34:37*MauGal joined #nim
07:41:13PMunch_My best guess is that you're missing some compile-time option and they are disabled in the header that way
07:41:24*PMunch_ is now known as PMunch
07:41:34PMunchHard to tell without looking into the code further though
07:45:31FromDiscord<leorize> check this one out\: https://git.sr.ht/~ehmry/wayland-nim/tree/trunk/src/wayland/codegenerator.nim↵(@.tokyovigilante)
07:46:38FromDiscord<.tokyovigilante> In reply to @leorize "check this one out\:": HOW GOOD
07:46:45FromDiscord<.tokyovigilante> Thanks!
07:48:37FromDiscord<leorize> you're welcome
07:48:55FromDiscord<leorize> it's likely that you can only reuse the codegen
07:49:59FromDiscord<leorize> the actual library is written for a cps-based async runtime, which does have a bit of a learning curve
07:53:05*coldfeet quit (Quit: Lost terminal)
08:09:50*derpydoo joined #nim
08:15:29FromDiscord<.tokyovigilante> That’s fine, I’ve got my own client code posted from Swift, just having issues with the C interop breaking down around the public headers for extensions. Will share back any improvements I make. My renderer is async too however so will have a look..
08:22:13*jjido joined #nim
08:39:08*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
08:44:23FromDiscord<.tokyovigilante> Orthogonally, have just gone down a wee CPS rabbit-hole.... are we for it or against it generally?
08:49:55*ntat joined #nim
09:30:21*alexdaguy joined #nim
10:15:14*derpydoo quit (Ping timeout: 252 seconds)
10:56:25*derpydoo joined #nim
11:30:08*^Dan joined #nim
11:30:46*^Dan quit (Remote host closed the connection)
11:32:20PMunchThat's like asking if we're for or against hammers..
11:37:32FromDiscord<fabric.input_output> #everythingisanail
12:18:03*MauGal quit (Ping timeout: 252 seconds)
12:21:24*derpydoo quit (Quit: derpydoo)
12:49:21*ntat quit (Quit: Leaving)
13:19:15*coldfeet joined #nim
13:37:48yaccHas anyone written a Firefox extension in nim?
13:39:21*MauGal joined #nim
14:13:25FromDiscord<nasuray> In reply to @yacc "Has anyone written a": I have
14:15:28*alexdaguy quit (Quit: w)
14:23:14yaccnasuray is the source code available for inspiration how to go at it?
14:40:54FromDiscord<nasuray> In reply to @yacc "nasuray is the source": It's ugly code for sure lol but I can throw it on my git forge later. I abandoned it because I decided I didn't really need the extension I was building.
14:45:06yaccnasuray thx
14:46:20*thunder joined #nim
14:54:24FromDiscord<System64 ~ Flandre Scarlet> Hi! Is it normal I have this compiler error when trying to use Nim PocketLang? https://github.com/khchen/nimpk https://media.discordapp.net/attachments/371759389889003532/1347583164964667503/message.txt?ex=67cc5a1f&is=67cb089f&hm=cefe11c8cd3670869689e6d0f5b8dea8f9275bd0e0859689f4ba58d751fb1111&
15:12:56FromDiscord<Robyn [She/Her]> In reply to @sys64 "Hi! Is it normal": Could you try compiling it to C?
15:13:07FromDiscord<System64 ~ Flandre Scarlet> In reply to @battery.acid.bubblegum "Could you try compiling": I had to import a file
15:13:14FromDiscord<Robyn [She/Her]> Oh you fixed it then
15:44:10FromDiscord<crochubourbier> Hello, I've been trying to register a new account on the forum but I get the error `Couldn't send email` when trying to do so (I tried with multiple addresses and same issue), I've seen on github issues that this problem is here since september and I've seen advices to go on the discord to get registered manually, so here I am 🙂. Is it possible to register me with the username Bourbz ?
15:44:26FromDiscord<crochubourbier> (edit) "Hello, I've been trying to register a new account on the forum but I get the error `Couldn't send email` when trying to do so (I tried with multiple addresses and same issue), I've seen on github issues that this problem is here since september and I've seen advices to go on the discord to get registered manually, so here I am 🙂. Is it possible to register me with the username Bourbz ? ... " added "Thanks for your he
15:48:33FromDiscord<enthus1ast.> Folks, a few weeks ago i saw a nim application deployment tool (like ansible but no shitty yaml) scrolling by in github; but i do not find it any more... any idea ?
15:50:17FromDiscord<leorize> well cps has proven itself to work↵(@.tokyovigilante)
15:50:33FromDiscord<leorize> but there's not enough interest from the community to keep the ball rolling
16:11:27*thunder quit (Killed (NickServ (GHOST command used by metasintactic)))
16:11:27*metasintactic joined #nim
16:14:07*MauGal quit (Ping timeout: 265 seconds)
17:07:32*ntat joined #nim
17:35:52*jjido joined #nim
17:45:54*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
17:54:14*jjido joined #nim
18:22:26FromDiscord<Elegantbeef> It probably doesn't help no one has met CPS before so it's a confounding premise
18:44:00*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
18:51:11*metasintactic is now known as thunder
19:12:09*MacDefender joined #nim
19:15:18*MacDefender quit (Client Quit)
19:49:22*coldfeet quit (Quit: Lost terminal)
20:03:09FromDiscord<abraham> That's a bit silly - I learned about Arena memory management from C++ developers - who have to hand-roll all their own memory management anyway. And there's nothing stopping us from writing our own Arena allocators in Nim.
20:04:15FromDiscord<Elegantbeef> Right but there is something stopping you from using one with std/json for instance
20:05:32FromDiscord<abraham> Yes, I know the standard complaint. And I sort of rage-quit Nim for awhile over it... until I realized that the alternatives were D, Go, C, Rust... all of which require you to forgo large portions of the standard library when doing "low level" development - just like Nim.
20:07:57FromDiscord<abraham> And I guess some people like Rust's memory management or Zig's syntax - but they're not for me.
20:13:40FromDiscord<nnsee> In reply to @crochubourbier "Hello, I've been trying": DM @pmunch
20:16:04FromDiscord<.tokyovigilante> In reply to @Elegantbeef "It probably doesn't help": Makes sense, thanks
20:27:48*jjido joined #nim
21:28:03*disso-peach joined #nim
21:49:12*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
22:01:52FromDiscord<System64 ~ Flandre Scarlet> Why is NimPk so hard to use?
22:11:30*disso-peach quit (Quit: Leaving)
22:21:23FromDiscord<System64 ~ Flandre Scarlet> What do you suggest to implement scripting in my Nim program?↵Knowing the fact that I need to call some functions in my script, and my script need to call Nim functions from an API
22:21:41*ntat quit (Quit: Leaving)
22:23:47FromDiscord<Elegantbeef> Lua and Wren could be fine
22:25:54FromDiscord<System64 ~ Flandre Scarlet> And what's the most performant between both?↵because I will call the functions very often
22:26:37FromDiscord<Elegantbeef> If you get luajit it can be very fat
22:26:38FromDiscord<Elegantbeef> fast\
22:27:28FromDiscord<nasuray> In reply to @yacc "nasuray thx": https://git.dayl.in/daylin/procurator/ the file at `src/webext.nim` has code wrapping the browser API's and is probably the most helpful example to use. The rest is basically a karax-powered bookmark/tab manager (or it would be if I didn't break it and never finish it 🙃
22:27:39FromDiscord<System64 ~ Flandre Scarlet> In reply to @Elegantbeef "If you get luajit": Oh nice↵Is there a Nimble package that can take advantage of it?
22:43:40FromDiscord<solitudesf> In reply to @sys64 "Oh nice Is there": https://github.com/glassesneo/spellua
22:48:48FromDiscord<System64 ~ Flandre Scarlet> In reply to @solitudesf "https://github.com/glassesneo/spellua": I give it a try, thanks!
22:51:29FromDiscord<System64 ~ Flandre Scarlet> Wait, it only works with files? Not possible to use a string?
23:31:42*sadomei joined #nim
23:31:42*sadomei quit (Client Quit)
23:33:19*sadomei joined #nim
23:38:28FromDiscord<System64 ~ Flandre Scarlet> In reply to @Elegantbeef "Lua and Wren could": I try euwren, doesn't compile↵Library too outdated I guess?
23:39:39*sadomei quit (Changing host)
23:39:40*sadomei joined #nim
23:40:35*sadomei quit (Quit: sadomei)
23:41:28FromDiscord<aintea> Do you people think Nim is too immature to be used in companies ? If your answer is "it depends", please develop
23:42:04*sadomei joined #nim
23:42:30*sadomei quit (Changing host)
23:42:30*sadomei joined #nim