<< 20-11-2026 >>

00:10:40*Mister_Magister quit (Ping timeout: 257 seconds)
00:12:06*Mister_Magister joined #nim
00:45:15FromDiscord<.bobbbob> In reply to @aaronspeedy "My company used Nim": Do you also have company wide flagellation sessions?
00:49:20*xtr00 quit (Read error: Connection reset by peer)
01:08:33*Mister_Magister_ joined #nim
01:09:37*Mister_Magister quit (Ping timeout: 261 seconds)
01:09:59*Mister_Magister_ is now known as Mister_Magister
01:56:10*Mister_Magister quit (Ping timeout: 260 seconds)
02:06:39*Mister_Magister joined #nim
02:26:45*iwuvmika joined #nim
02:57:52*rockcavera joined #nim
03:48:33*rockcavera quit (Remote host closed the connection)
04:48:41FromDiscord<zumi.dxy> damn I never thought I'd miss effects↵particularly I/O effects↵using rust at work now and I have little in the way of accidentally calling a function that opens a file
04:49:03FromDiscord<zumi.dxy> other than putting the entire thing under `unsafe{}` maybe lol
04:49:22FromDiscord<zumi.dxy> (even if it isn't)
06:19:19*VITALIK joined #nim
07:18:46FromDiscord<mobilex1122> Hello. I'm new to NIM. What would you recommend for GUI library. Like what's the most developed one?
07:20:50*VITALIK quit (Ping timeout: 252 seconds)
07:46:23FromDiscord<bung8954> In reply to @mobilex1122 "Hello. I'm new to": nglfw with nanovg, https://github.com/nim-lang/uirelays and https://github.com/elcritch/merenda those are libs i used
08:05:25*tty303 joined #nim
08:06:37*th3r00t quit (Ping timeout: 272 seconds)
09:09:26*xtr00 joined #nim
09:27:10FromDiscord<tempestro> I personally use SDL3 through bindings↵If you're making a video game, it is not any worse than using SDL3 from C/C++↵Would not recommend otherwise
09:47:26FromDiscord<devlop_gaming> Sdl3 is a good library when in c/c++ wym? Also it's the industry standard and a highly used library.
09:47:31FromDiscord<devlop_gaming> I use it all the time
10:01:11FromDiscord<Abdulrahman> Abstracting over sdl3 is the best
10:01:30FromDiscord<Abdulrahman> https://github.com/abdulrahman-103/nimgfx
10:02:48FromDiscord<Abdulrahman> I'm working on this to make sdl3 simpler and provide customizable widgets, currently only buttons.
10:05:32FromDiscord<Abdulrahman> https://media.discordapp.net/attachments/371759389889003532/1573278107685625987/Video_2026-11-20_13-05-11.mp4?ex=6b016cea&is=6b001b6a&hm=7a1750d1af15e4facafa432fee3ef5e2f8a83a5c244d96ab0c242172022cab51&
10:06:46FromDiscord<Abdulrahman> oh
10:06:48FromDiscord<Abdulrahman> the buttons are buggy
10:06:51FromDiscord<Abdulrahman> time to fix them
10:10:58*xtr00 quit (Read error: Connection reset by peer)
10:11:04*xtr00_ joined #nim
11:46:28FromDiscord<devlop_gaming> Is there a vscode extension for nim that isn't buggy?
11:56:00FromDiscord<Abdulrahman> In reply to @devlop_gaming "Is there a vscode": i use "nim-lang.org" which is totally buggy
11:56:18FromDiscord<Abdulrahman> vscodium
11:57:14FromDiscord<devlop_gaming> I think vscode broke again
11:57:41FromDiscord<devlop_gaming> Could it be possible for extensions to stall vscode when it first opens?
12:03:16FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "vscodium": Is that what people use for nim?
12:07:29*VITALIK joined #nim
12:14:11FromDiscord<Abdulrahman> In reply to @devlop_gaming "Is that what people": idk that's just what I use it's vscode but without microsoft telemetry
12:17:55FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "idk that's just what": Wym?
12:27:08FromDiscord<Abdulrahman> In reply to @devlop_gaming "Wym?": vscodium is foss vscode before adding proprietary parts just like how chromium is foss chrome
12:27:55FromDiscord<devlop_gaming> Who uses chromium?
12:29:06FromDiscord<devlop_gaming> I need a text editor who's market place doesn't break
12:29:37FromDiscord<devlop_gaming> Recently vscode market place be getting stuck loading. Extensions still load but the market place doesn't,
12:29:41FromDiscord<devlop_gaming> (edit) "doesn't," => "doesn't/"
12:29:45FromDiscord<devlop_gaming> (edit) "doesn't/" => "doesn't."
12:38:05FromDiscord<Abdulrahman> In reply to @devlop_gaming "Who uses chromium?": Most browsers
12:38:31FromDiscord<Abdulrahman> Some people use "ungoogled chromium" which is very bare metal chromium
12:43:09FromDiscord<devlop_gaming> sent a code paste, see https://paste.rs/yhgsq
12:43:44FromDiscord<devlop_gaming> I exported everything in my other file so i don't understand why nim refuses to find it
13:26:31FromDiscord<Abdulrahman> In reply to @devlop_gaming "Ok i can't figure": can't really help you without the 2 files and the output
13:32:58FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "can't really help you": All it says is cannot import InitWindow
13:33:25FromDiscord<devlop_gaming> sent a code paste, see https://paste.rs/IO8Dd
13:35:36FromDiscord<Abdulrahman> In reply to @devlop_gaming "All it says is": idk
13:35:38FromDiscord<Abdulrahman> should work
13:35:54FromDiscord<Abdulrahman> do you have raylib installed?
13:36:46FromDiscord<devlop_gaming> I compiled from source
13:37:00FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "do you have raylib": It's not talking about the symbols from the so file
13:37:13FromDiscord<devlop_gaming> It's talking about the symbols from nim
13:37:21FromDiscord<Abdulrahman> so the bindings compiled correctly?
13:38:08FromDiscord<devlop_gaming> Idk i just know for some reason nim is having trouble finding functions from nim_raylib.nim even tho it has the path to the directory the file is in
13:38:09*xtr00_ quit (Read error: Connection reset by peer)
13:39:08*xtr00 joined #nim
13:41:23FromDiscord<devlop_gaming> Am i doing something wrong here or is this a bug?
13:42:06FromDiscord<devlop_gaming> I even tried to export and i got the same erorr
13:42:10FromDiscord<devlop_gaming> (edit) "erorr" => "errorr"
13:42:15FromDiscord<devlop_gaming> (edit) "errorr" => "error"
13:42:27FromDiscord<janakali> is it compiler that can't find imported functions, or just lsp messages?
13:43:52FromDiscord<devlop_gaming> compiler
13:44:20FromDiscord<devlop_gaming> lsp found the functions it's the compiler that can't
13:45:15FromDiscord<janakali> do you use nimble to compile?
13:46:00FromDiscord<devlop_gaming> I use nim
13:46:31FromDiscord<devlop_gaming> Wait i can compile with nimble?
13:47:43FromDiscord<janakali> nimble is like a build-system, you make .nimble project file and then `nimble build`, but it still uses nim compiler underneath
13:49:30*iwuvmika quit (Ping timeout: 250 seconds)
13:54:06FromDiscord<janakali> I get the same error with your example.
13:54:25FromDiscord<janakali> but it's at runtime
13:54:32FromDiscord<janakali> @devlop_gaming
13:57:21FromDiscord<Abdulrahman> In reply to @janakali "but it's at runtime": Then its .so issie
13:57:24FromDiscord<Abdulrahman> (edit) "issie" => "issue"
14:09:07FromDiscord<devlop_gaming> It said nothing to build
14:09:44FromDiscord<devlop_gaming> What does the bin key do?
14:14:51FromDiscord<devlop_gaming> Am i supposed to put the test file in the bin key?
14:18:07FromDiscord<janakali> what bin key?
14:20:19FromDiscord<devlop_gaming> https://nim-lang.org/docs/nimscript.html#bin
14:23:50FromDiscord<janakali> that's for binary packages meant to be installed, see https://nim-lang.github.io/nimble/package-types.html
14:29:21FromDiscord<devlop_gaming> So how am I supposed to build the test files??
14:37:17FromDiscord<janakali> In reply to @devlop_gaming "All it says is": https://nim-lang.org/2.4.2/manual.html#foreign-function-interface-dynlib-pragma-for-import↵> Note: Passing variables to the dynlib pragma will fail at runtime because of order of initialization problems.
14:37:38FromDiscord<devlop_gaming> In reply to @janakali "https://nim-lang.org/2.4.2/manual.html#foreign-func": Again it's not dynlib
14:37:52FromDiscord<devlop_gaming> I tested that earlier
14:39:23FromDiscord<devlop_gaming> I temporarily moved InitWindow proc to the test file and the new error said it couldn't find BeginDrawing. Meaning it's nim.
14:39:33FromDiscord<devlop_gaming> Not being able to find nim functions
14:40:20FromDiscord<janakali> can you run `nim c <your file>` in the terminal and show output please?
14:42:00FromDiscord<devlop_gaming> Im not at my laptop anymore
14:42:32FromDiscord<devlop_gaming> Im still confused on how im supposed to compile tests
14:44:54FromDiscord<janakali> here's a good write-up on how to do tests: https://peterme.net/writing-tests-for-nim-libraries-with-nimble-and-unittest.html
14:47:21FromDiscord<janakali> sent a code paste, see https://paste.rs/6d1Nb
14:47:37FromDiscord<janakali> atleast on my machine
14:48:47FromDiscord<janakali> I also added relative path to linux lib, so it looks in same directory, otherwise it only checked the system paths
14:49:22FromDiscord<devlop_gaming> In reply to @janakali "I also added relative": Wym?
14:49:29FromDiscord<Abdulrahman> In reply to @janakali "also, your example is": Never seen them as variables
14:49:39FromDiscord<Abdulrahman> Always use constants for dynlib
14:50:21FromDiscord<janakali> In reply to @devlop_gaming "Wym?": "./libraylib.so" - looks in same directory as binary↵"libraylib.so" - looks in system paths
14:50:21FromDiscord<devlop_gaming> Let me figure that part out. I just need to know why can't nim find it's pen functions.
14:50:58FromDiscord<tempestro> In reply to @devlop_gaming "Sdl3 is a good": yes, why are you telling me this?
14:51:18FromDiscord<tempestro> In reply to @devlop_gaming "I use it all": do you make anything other than video games?
14:51:26FromDiscord<Abdulrahman> C isnt good
14:51:52FromDiscord<Abdulrahman> Headers arent good, c for loops arent good, c syntax sincr 1970 isnt good.
14:52:00FromDiscord<Abdulrahman> (edit) "sincr" => "since"
14:52:05FromDiscord<devlop_gaming> In reply to @tempestro "do you make anything": Yes
14:52:34FromDiscord<Abdulrahman> If you want a low level language use zig or nim and disable mm
14:52:56FromDiscord<tempestro> In reply to @abdulrahman.103 "If you want a": Kind of↵I still look back on my C days fondly, tho
14:53:09FromDiscord<devlop_gaming> C is actually good for portability
14:53:19FromDiscord<devlop_gaming> Why you think there's so many c libraries 💀
14:53:47FromDiscord<tempestro> https://klipy.com/gifs/nerd-ackchyually
14:53:50FromDiscord<tempestro> akcshually, Nim transpiles to C, so therefore Nim is strictly superior to C and you should feel ashamed for ever suggesting otherwise
14:54:10FromDiscord<devlop_gaming> No one uses nim but this small community💀
14:54:52FromDiscord<Abdulrahman> In reply to @devlop_gaming "C is actually good": Because its popular, not because its good.
14:54:54FromDiscord<tempestro> In reply to @devlop_gaming "Yes": how is doing reactive UI in SDL3?
14:55:12FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "Because its popular, not": C isn't popular 💀
14:55:34FromDiscord<devlop_gaming> And I said it's only good for portability
14:55:46FromDiscord<devlop_gaming> Safety wise not so much
14:56:03FromDiscord<tempestro> In reply to @devlop_gaming "Safety wise not so": why do you keep saying things that everyone already knows?
14:56:08FromDiscord<Abdulrahman> How do i not render every frame in sdl? Im forced to clear and rerender 144 fps so that window doesnt become unresponsive
14:56:23FromDiscord<Abdulrahman> And so that input it taken
14:56:37FromDiscord<devlop_gaming> In reply to @tempestro "why do you keep": Im explaining to them because apparently they don't know
14:56:51FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "How do i not": So?
14:57:22FromDiscord<devlop_gaming> You have to clear the screen and refresh textures in every graphical application
14:57:22FromDiscord<Abdulrahman> In reply to @devlop_gaming "C isn't popular 💀": C is one of the most used languages ever, and it is still used. How is it not popular?
14:57:32FromDiscord<Abdulrahman> In reply to @devlop_gaming "You have to clear": Thats immediate mode
14:57:39FromDiscord<Abdulrahman> I want retained mode
14:58:28FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "C is one of": No one writes games in c. A lot of tools aren't written in c. Not even unreal is written in c. Do all these things use c? Yes. But is c talked about or is anything primarily written in c? No.
14:58:49FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "I want retained mode": Use vulkan or wgpy native
14:59:24FromDiscord<Abdulrahman> In reply to @devlop_gaming "No one writes games": What? I wrote a game in c, A lot of tools are written in c like gnu tools. Linux is in c.
14:59:42FromDiscord<Abdulrahman> In reply to @devlop_gaming "Use vulkan or wgpy": What are you even talking about
14:59:42FromDiscord<tempestro> Everyone's happy to be escaping C
14:59:45FromDiscord<Abdulrahman> Im talking about sdl
14:59:51FromDiscord<Abdulrahman> I want retained mode in sdl
14:59:56FromDiscord<devlop_gaming> You said you wanted retained
14:59:56FromDiscord<Abdulrahman> If thats possible inform me
14:59:58FromDiscord<tempestro> In reply to @abdulrahman.103 "I want retained mode": doesn't exist I think
15:00:07FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "I want retained mode": That's not possible unless you make a custom sdl
15:00:19FromDiscord<tempestro> "custom sdl" what is that supposed to mean?
15:00:24FromDiscord<tempestro> that's stupid
15:00:37FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "What? I wrote a": You're game isn't popular 🥀
15:01:06FromDiscord<tempestro> In reply to @devlop_gaming "You're game isn't popular": yr'oue
15:01:11FromDiscord<devlop_gaming> In reply to @tempestro ""custom sdl" what is": Fork sdl and modify it
15:01:20FromDiscord<devlop_gaming> Simple
15:01:21FromDiscord<tempestro> that's very stupid
15:01:25FromDiscord<devlop_gaming> How?
15:01:33FromDiscord<tempestro> that should be self-evident
15:01:46FromDiscord<devlop_gaming> If that's stupid then I guess a lot of language and engine devs are stupid too
15:02:07FromDiscord<tempestro> just use the OS' native frameworks then
15:02:19FromDiscord<Laylie> known troll, save your keystrokes..
15:02:31FromDiscord<devlop_gaming> In reply to @tempestro "just use the OS'": You mighr as well use wgpu native then💀
15:02:31FromDiscord<tempestro> I think that means using Wayland/X11 directly?
15:02:36FromDiscord<devlop_gaming> (edit) "mighr" => "might"
15:02:46FromDiscord<tempestro> No idea how Windows does this
15:03:05FromDiscord<tempestro> In reply to @devlop_gaming "You might as well": no idea what that is and I don't care↵WebGPU?
15:03:12FromDiscord<devlop_gaming> With wgpu native you only have to write code once and just compile for each target platform
15:03:25FromDiscord<tempestro> ah
15:03:31FromDiscord<tempestro> so they reinvented programming languages
15:03:36FromDiscord<tempestro> but for the GPU!
15:03:38FromDiscord<devlop_gaming> ?
15:03:43FromDiscord<tempestro> that's smart
15:03:48FromDiscord<devlop_gaming> No it's just a wrapper over other graphics apis
15:04:05FromDiscord<asviest> In reply to @tempestro "No idea how Windows": winapi
15:04:06FromDiscord<tempestro> In reply to @Laylie "known troll, save your": how dare you I'll let you know I've only been an upstanding member of the community so far
15:04:22FromDiscord<tempestro> In reply to @asviest "winapi": right↵Thanks
15:04:27FromDiscord<devlop_gaming> No need to be an asshole
15:04:46FromDiscord<tempestro> who you calling an asshole? I'm having fun
15:05:25FromDiscord<Abdulrahman> In reply to @devlop_gaming "No it's just a": Sounds like sdl
15:06:05FromDiscord<asviest> In reply to @tempestro "so they reinvented programming": This named RHI (rendering hardware interface)
15:06:24FromDiscord<Abdulrahman> I think the nim community has the most people that use sdl for apps instead of games
15:06:25FromDiscord<asviest> For example wgpu, sdl_gpu, nvrhi
15:06:28FromDiscord<tempestro> and aren't those graphics APIs already wrappers around the GPUs' APIs?↵Which in turn are wrappers around the GPUs' bytecode, which is a "wrapper" around their actual machine code
15:06:48FromDiscord<tempestro> In reply to @abdulrahman.103 "I think the nim": yeah, I sure do wonder why 💀
15:06:50FromDiscord<tempestro> actually wait
15:06:53FromDiscord<tempestro> why don't people use Qt?
15:06:54FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "Sounds like sdl": It's not. It's a low level wrapper library
15:07:02FromDiscord<tempestro> In reply to @asviest "This named RHI (rendering": what?
15:07:02FromDiscord<Abdulrahman> In reply to @tempestro "why don't people use": I think we lack bindings
15:07:07FromDiscord<devlop_gaming> You're actually in control of the application and gpu
15:07:16FromDiscord<tempestro> In reply to @abdulrahman.103 "I think we lack": just generate them yourself, can't you?
15:07:26FromDiscord<tempestro> or is it actually hard for something like this?
15:07:29FromDiscord<devlop_gaming> In reply to @abdulrahman.103 "I think we lack": Make some
15:07:37FromDiscord<Abdulrahman> In reply to @tempestro "just generate them yourself,": Yeah but the official ones are actively maintained
15:07:46FromDiscord<Abdulrahman> Of sdl
15:07:52FromDiscord<Abdulrahman> Thats why its convenient
15:07:58FromDiscord<asviest> In reply to @tempestro "what?": Name for graphics api abstraction
15:08:03FromDiscord<Abdulrahman> The downside is youre gonna reinvent the wheel
15:08:07FromDiscord<Abdulrahman> Sdl is bare bones
15:08:13FromDiscord<devlop_gaming> No it's not💀
15:08:20FromDiscord<Abdulrahman> Compared to qt it is
15:08:24FromDiscord<devlop_gaming> Sdl hides a lot of stuff from you
15:08:28FromDiscord<devlop_gaming> Compared to wgpu
15:08:30FromDiscord<tempestro> In reply to @abdulrahman.103 "Of sdl": not really↵Last time I checked, last commit was like three years ago, and when I did a pull request, it hung there for like a week before I realised it's nonsense and deleted it
15:08:41FromDiscord<Abdulrahman> In reply to @tempestro "not really Last time": Nah i did a commit a month ago
15:08:47FromDiscord<Abdulrahman> its nim-lang/sdl3
15:08:55FromDiscord<tempestro> In reply to @asviest "Name for graphics api": but what does that mean?
15:09:28FromDiscord<Abdulrahman> I think youre usin the old bindings
15:09:30FromDiscord<Abdulrahman> (edit) "usin" => "using"
15:09:41FromDiscord<Abdulrahman> Which nimble used to point to until i corrected it
15:10:19FromDiscord<Abdulrahman> https://github.com/nim-lang/sdl3
15:10:49FromDiscord<tempestro> huh, I must be using the old bindings
15:10:50FromDiscord<tempestro> oh well
15:11:11FromDiscord<Abdulrahman> In reply to @tempestro "huh, I must be": Dont worry the conversion doesnt take a while
15:11:27FromDiscord<Abdulrahman> Just remove sdl_ and use camelCase
15:12:35FromDiscord<Abdulrahman> i wrote sdl3_image bindings so now sdl in nim is kinda complete
15:12:35FromDiscord<tempestro> but that's what the bindings I use already look like
15:12:38FromDiscord<tempestro> lemme figure out what's going on
15:13:03FromDiscord<tempestro> In reply to @abdulrahman.103 "https://github.com/nim-lang/sdl3": oh yeah, I'm using that, but an old commit
15:13:17FromDiscord<Abdulrahman> In reply to @tempestro "oh yeah, I'm using": Use nimble install sdl3
15:13:19FromDiscord<asviest> In reply to @tempestro "but what does that": Library that looks familiar to graphics API's but it's abstract over different graphics API's
15:13:23FromDiscord<Abdulrahman> Or git clone if you vendor
15:14:35FromDiscord<asviest> (edit) "abstract" => "abstraction"
15:15:12FromDiscord<tempestro> In reply to @tempestro "oh yeah, I'm using": some functions were missing from upstream, and between me not using Nimble (there was always something broken about it, it was more work to install something with Nimble than just git cloning it) and not wanting to wait for upstream to accept the pull request, I just vendored it
15:15:53FromDiscord<tempestro> In reply to @asviest "Library that looks familiar": that sounds neat↵Why are you telling me this?
15:42:22*rockcavera joined #nim
15:45:30*xtr00 quit (Read error: Connection reset by peer)
15:53:12*xtr00 joined #nim
16:13:21*rockcavera quit (Remote host closed the connection)
16:22:28*tk quit (Ping timeout: 248 seconds)
16:22:28*casaca quit (Ping timeout: 248 seconds)
16:22:28*ursa-major quit (Ping timeout: 248 seconds)
16:24:05*ursa-major joined #nim
16:24:05*casaca joined #nim
16:24:09*tk joined #nim
16:24:43*zgasma joined #nim
16:36:33*joast quit (Ping timeout: 255 seconds)
16:42:32*iwuvmika joined #nim
16:44:08*midgard quit (Server closed connection)
16:44:17*midgard joined #nim
16:51:14FromDiscord<Abdulrahman> In reply to @tempestro "why don't people use": I remembered my reason for not using qt
16:51:42FromDiscord<Abdulrahman> It had several bugs that are ignored since years and I couldn't do anything
16:52:00FromDiscord<Abdulrahman> I dont want to fix their bugs with cpp and build their huge library
17:04:43*rockcavera joined #nim
17:12:48*void09 quit (Server closed connection)
17:13:04*void09 joined #nim
17:38:06*iwuvmika quit (Remote host closed the connection)
17:59:26*joast joined #nim
20:03:28*nisstyre quit (Server closed connection)
20:03:46*nisstyre joined #nim
20:14:08*CypherCat quit (Server closed connection)