<< 06-06-2024 >>

00:42:22*SchweinDeBurg quit (Quit: WeeChat 4.4.0-dev)
00:52:09*SchweinDeBurg joined #nim
00:57:35FromDiscord<saiplayz1138> anyone know any good image libraries to turn an image transparent?
01:01:22FromDiscord<user2m> In reply to @saiplayz1138 "anyone know any good": maybe pixie? honestly just use python PIL
01:09:26FromDiscord<saiplayz1138> In reply to @user2m "maybe pixie? honestly just": what if i want to use nim
01:10:01FromDiscord<user2m> In reply to @saiplayz1138 "what if i want": try pixie or use nimporter + python PIL
01:10:10FromDiscord<saiplayz1138> In reply to @user2m "try pixie or use": oh right
01:13:00FromDiscord<saiplayz1138> In reply to @user2m "try pixie or use": do you mean nimporter or nimpy
01:14:36*krux02_ quit (Remote host closed the connection)
01:19:18FromDiscord<user2m> In reply to @saiplayz1138 "do you mean nimporter": sorry nimpy
01:20:32FromDiscord<saiplayz1138> alr
01:49:23*dtomato quit (Ping timeout: 256 seconds)
01:49:49*dtomato joined #nim
02:03:37FromDiscord<saiplayz1138> cant get em to work
02:04:03FromDiscord<saiplayz1138> maybe pixie has an eraser or something to make it transparent
03:55:26FromDiscord<ElegantBeef> https://treeform.github.io/pixie/pixie/images.html#draw,Image,Image
03:58:28FromDiscord<ElegantBeef> @saiplayz1138
04:00:44FromDiscord<saiplayz1138> In reply to @elegantbeef "https://treeform.github.io/pixie/pixie/images.html#": oh thanks
04:01:26FromDiscord<saiplayz1138> does it work with transparent images though?
04:01:27FromDiscord<saiplayz1138> @ElegantBeef
04:02:08FromDiscord<ElegantBeef> It blends between two images so why not
05:31:42*rockcavera quit (Remote host closed the connection)
05:46:12*ntat joined #nim
06:49:45*PMunch joined #nim
07:48:36*derpydoo joined #nim
07:57:38*ntat quit (Quit: Leaving)
08:27:02FromDiscord<nnsee> In reply to @saiplayz1138 "does it work with": transparency is just an extra channel
08:28:26FromDiscord<nnsee> the "alpha" value if you will
09:14:27*m5zs7k quit (Ping timeout: 252 seconds)
09:15:37*m5zs7k joined #nim
09:39:36FromDiscord<Robyn [She/Her]> In reply to @user2m "try pixie or use": Pixie also has Nim bindings :)
09:40:50FromDiscord<Robyn [She/Her]> Wait that's wrong
09:40:56FromDiscord<Robyn [She/Her]> Pixie has Python bindings
09:53:47FromDiscord<nnsee> In reply to @chronos.vitaqua "Pixie also has Nim": :o
09:53:53FromDiscord<nnsee> TIL
09:57:32FromDiscord<Robyn [She/Her]> https://github.com/treeform/pixie-python
10:09:51*gst joined #nim
10:36:55*beholders_eye joined #nim
10:48:05*beholders_eye quit (Ping timeout: 240 seconds)
11:31:41*derpydoo quit (Ping timeout: 240 seconds)
11:33:26FromDiscord<albassort> im working in python right now
11:33:32FromDiscord<albassort> idk
11:33:54FromDiscord<albassort> I think its better than LUA but worse than JS
11:34:09FromDiscord<albassort> although Numpy makes Python so powerful. Python is hard carried
11:39:29*coldfeet joined #nim
11:51:50FromDiscord<Robyn [She/Her]> In reply to @albassort "I think its better": Worse than JS??
11:52:37*beholders_eye joined #nim
11:54:33FromDiscord<nnsee> .oO( worse than js??? )
12:00:10PMunchRight.. Trying to get choosenim up and running. Apparently its so old its kinda hard to build with modern Nim..
12:02:44FromDiscord<odexine> Let’s just finally fork it and redirect everyone to use that
12:03:26PMunchThat's what I'm trying to do..
12:04:15FromDiscord<pmunch> Don't tell anyone, but it's already forked
12:05:05FromDiscord<odexine> Congrats
12:06:04FromDiscord<nnsee> (i also forked it a while ago. even registered a domain for it)
12:06:08FromDiscord<nnsee> i think it was getnim.org or something
12:06:12FromDiscord<ieltan> I'm surprised something like choosenim have been left in the dark for so long...
12:06:28FromDiscord<nnsee> also getnim.com
12:06:31FromDiscord<nnsee> apparently
12:07:06FromDiscord<odexine> Would have been kinda fucked up if we called it gnim and pronounced it the same as Nim
12:07:33FromDiscord<odexine> Hehe 👉👈
12:08:15FromDiscord<ieltan> Why not make it choosenim2 and create a soft link `choosenim` when it get installed
12:09:26FromDiscord<odexine> What about chooni and we make a mascot that’s just an anime girl with middle school disease
12:09:39FromDiscord<odexine> I’m sorry it’s best I stop
12:10:03FromDiscord<ieltan> Middle school disease?
12:10:14FromDiscord<nnsee> what the fuck is middle school disease
12:10:26FromDiscord<ieltan> Ohhh
12:10:35FromDiscord<ieltan> Chunibyuu
12:10:41FromDiscord<ieltan> I probably spelled that wrong
12:10:45FromDiscord<nnsee> i have no idea what that means
12:11:38FromDiscord<ieltan> sent a code paste, see https://play.nim-lang.org/#pasty=ZRpTBRsn
12:20:08*ignorant_iterlop joined #nim
12:23:52*beholders_eye quit (Ping timeout: 255 seconds)
12:24:32FromDiscord<demotomohiro> `choosenimbyo`.
12:24:45*coldfeet quit (Remote host closed the connection)
12:24:52FromDiscord<odexine> Choose Nim disease I see
12:25:03FromDiscord<asbjorn2> sent a long message, see https://pasty.ee/nQSyVMnS
12:25:19FromDiscord<asbjorn2> Feel free to tell me, if I'm asking the wrong question 😅
12:31:23*ignorant_iterlop quit (Quit: Client closed)
12:44:46*beholders_eye joined #nim
12:50:10*coldfeet joined #nim
13:05:12FromDiscord<pmunch> In reply to @nnsee "(i also forked it": I meant forked to the nim-lang organization
13:06:34FromDiscord<pmunch> In reply to @asbjorn2 "It's a bit quiet": You can add your `requires` as normal, and then just run `nimble install` manually for the dependency
13:14:46*SEP_ joined #nim
13:17:50*SEP quit (Ping timeout: 268 seconds)
13:24:04FromDiscord<albassort> In reply to @chronos.vitaqua "Worse than JS??": I like JS
13:24:11FromDiscord<albassort> its like C but high level
13:24:29FromDiscord<albassort> boring in a good way
13:32:18FromDiscord<asbjorn2> In reply to @pmunch "You can add your": hmm this works for imperative package management, but I'm trying to build with nix, where that doesnt' really make sense :/
13:32:45FromDiscord<asbjorn2> I'll try to figure something out. for now using `--path` and listing all of my dependencies twice works
13:34:20FromDiscord<pmunch> Why twice? If you use path then you don't need nimble
13:34:56FromDiscord<asbjorn2> ah but I'm using nimble to specify and fetch external dependencies
13:35:08FromDiscord<asbjorn2> then I can generate a lockfrile from a .nimble file using `nim_lk`
13:35:17FromDiscord<asbjorn2> and it all works with `nix`'s `buildNimPackage`
13:35:55FromDiscord<asbjorn2> so I have a workflow that works well for any package that nimble knows how to fetch from the internet, but I'm having trouble adapting it to also work for a local package
13:36:03FromDiscord<_nenc> In reply to @albassort "I think its better": Nim itself learns from Python……
13:37:01FromDiscord<albassort> i could write an essay on this message
13:37:37FromDiscord<albassort> sent a long message, see https://pasty.ee/rAsyUcCn
13:41:21*beholders_eye quit (Ping timeout: 272 seconds)
13:42:29*ntat joined #nim
13:45:31FromDiscord<Robyn [She/Her]> In reply to @albassort "boring in a good": Fair, even if I don't see it
13:56:03*beholders_eye joined #nim
14:04:09PMunch@asbjorn2, you can require URLs, so maybe you can require a `file://` URL?
14:05:20*rockcavera joined #nim
14:10:32NimEventerNew Nimble package! nimgo - Asynchronous Library Inspired by Go's goroutines, for Nim, see https://github.com/Alogani/NimGo
14:17:56FromDiscord<_nenc> In reply to @albassort "it would boil down": ok, sorry for it
14:18:07FromDiscord<_nenc> (edit) "it" => "my misunderstanding"
14:20:05FromDiscord<saiplayz1138> what editor do you guys use for Nim?
14:20:20PMunchVim :)
14:20:41FromDiscord<saiplayz1138> I personally use vs code, but I wanna hear you guys' opinion
14:21:08FromDiscord<mratsim> In reply to @saiplayz1138 "what editor do you": vscode and nvim
14:25:28*PMunch quit (Quit: Leaving)
14:31:37strogon14PMunch: this is what I do to build choosenim for the AUR: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=choosenim
14:32:31strogon14I'm building proxyexe first, in a separate step.
14:46:57FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=kbMJQGrI
14:51:10FromDiscord<pmunch> In reply to @strogon14 "<@392962235737047041>: this is what": How does that work :S I got a bunch of errors I had to fix to be able to build with newest version of Nim and Nimble..
14:51:48*inselver joined #nim
14:52:00*inselver left #nim (#nim)
14:52:01*inselver joined #nim
14:52:48FromDiscord<pmunch> In reply to @user2m "does anyone know where": Try `static[string]` instead of that cstring
14:54:53FromDiscord<pmunch> The manual also says that emit with back ticks is deprecated: https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-emit-pragma
15:01:32*ntat quit (Quit: Leaving)
15:05:23*lucasta joined #nim
15:05:46FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=MQdykhud
15:07:56FromDiscord<_nenc> In reply to @user2m "Thanks I'm getting a": try $body ?
15:09:32*beholders_eye quit (Ping timeout: 256 seconds)
15:10:25FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=VrzOyjsm
15:12:30*m5zs7k quit (Ping timeout: 252 seconds)
15:14:21strogon14pmumch: not sure. but it builds fine here on Manjaro Linux. fwiw, I have --mm:orc and -d:useMalloc in my user's nim.cfg.
15:16:47FromDiscord<_nenc> hmmmmm
15:16:49FromDiscord<odexine> sent a code paste, see https://play.nim-lang.org/#pasty=LiBpFuwG
15:17:00FromDiscord<_nenc> yes yes yes
15:17:07FromDiscord<_nenc> I think you need the body compiled
15:18:31FromDiscord<_nenc> sent a code paste, see https://play.nim-lang.org/#pasty=WpGSRTzF
15:18:37FromDiscord<_nenc> thats it
15:18:43FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=tuMKxKbp
15:18:48FromDiscord<odexine> In reply to @_nenc "i am too stupid": dont worry about it
15:18:57FromDiscord<odexine> youll learn over time
15:24:24*m5zs7k joined #nim
15:27:46FromDiscord<pmunch> In reply to @strogon14 "pmumch: not sure. but": Very strange, I got all sorts of SSL, import issues, and things having been removed from nimble..
15:28:33FromDiscord<pmunch> I see you have nimble as a makedepend, so it uses Manjaro nimble to build initially? What version is that?
15:28:37strogon14did you try using an isolated nimble dir, like I do in the PKGBUILD?
15:29:28strogon14Bootsrap nim/nimble is from the official Arch/Manjaro package: https://archlinux.org/packages/extra/x86_64/nim/
15:30:12strogon14But I also tried building with the latest Nim version installed by by choosenim itself.
15:31:16strogon14Also I should maybe try building in a fresh Arch docker image...
15:45:04strogon14pmuch: just sucessfully tested building the package in a a fresh Arch docker container: https://cpaste.org/?8a7825c8c62d0958#4N42BZ5HeeizCpymsy5cjx5hNwc1aLmju9ojDPtHvxEN
15:45:11strogon14*pmunch
15:54:45*krux02 joined #nim
15:58:35FromDiscord<wannabelokesh> nvim setup for nim, need help.
16:00:51*ntat joined #nim
16:03:35strogon14pmunch: and building the choosenim package with Nim installed via "choosenim stable; export PATH="$HOME/.nimble/bin:$PATH" works too.
16:03:42FromDiscord<odexine> In reply to @wannabelokesh "nvim setup for nim,": help with what exactly?
16:12:58FromDiscord<wannabelokesh> In reply to @odexine "help with what exactly?": I need autocompletion, snipped suggestion, code/document/file formatting with nim conventions on nvim.
16:13:36FromDiscord<wannabelokesh> Hey, btw thanks for replying. I wasn't expecting help. I thought everyone is busy or just don't wanna help.
16:19:23FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=AdRzCCMd
16:21:07FromDiscord<pmunch> `--linedir:off` or something like that?
16:21:15FromDiscord<odexine> darn beat to the punch
16:21:28FromDiscord<odexine> beat to the p(m)unch
16:23:06FromDiscord<user2m> In reply to @pmunch "`--linedir:off` or something like": hmm that doesnt seem to change anything
16:24:51FromDiscord<user2m> `--lineTrace:off` did it!
16:26:13FromDiscord<user2m> @pmunch @odexine Thank you both. this has been so helpful!!
16:28:17*inselver quit (Quit: Leaving.)
16:33:29FromDiscord<wannabelokesh> In reply to @odexine "help with what exactly?": are you up for helping?
16:33:56FromDiscord<odexine> i'm not really sure what troubles you're having
16:33:58FromDiscord<odexine> what have you installed
16:38:04FromDiscord<wannabelokesh> I need ide features in neovim. well not all but mostly. ↵I need snippet suggestion, autocompletion suggestion, file formatting for nim files.
16:38:41FromDiscord<saiplayz1138> has anyone made Doom in Nim?
16:38:54FromDiscord<wannabelokesh> idk let's do it
16:39:22FromDiscord<odexine> In reply to @wannabelokesh "I need ide features": LSP or nim.nvim
16:39:41FromDiscord<odexine> no snippet in either i believe
16:40:02FromDiscord<odexine> formatting is poor personally speaking, use an external tool (nph) that runs on save
17:20:11*m5zs7k quit (Ping timeout: 268 seconds)
17:24:52*m5zs7k joined #nim
17:39:26NimEventerNew thread by lscrd: Nimsuggest and Manjaro Nim installation, see https://forum.nim-lang.org/t/11723
17:48:02*coldfeet quit (Remote host closed the connection)
17:57:35FromDiscord<Robyn [She/Her]> I need to wrap the Ollama API in Nim :/
17:57:44*gst quit (Quit: Client closed)
18:03:24FromDiscord<Robyn [She/Her]> When wrapping an API with optional params, would y'all say using `Option` types are better? And how about optional lists? Should those be empty?
18:06:13FromDiscord<morgan> ah i found it https://github.com/bkaradzic/bgfx/blob/master/scripts/bindings-zig.lua
18:06:28FromDiscord<morgan> i might actually try doing this
18:06:48FromDiscord<morgan> because it would be so cool to have autogenerated nim bindings
18:19:13FromDiscord<Robyn [She/Her]> What timestamp format is this and can the Nim stdlib parse it? `2023-08-04T08:52:19.385406455-07:00`
18:19:23FromDiscord<Robyn [She/Her]> In reply to @morganalyssa "i might actually try": Good luck! It'd definitely be cool yeah lol
18:21:37FromDiscord<morgan> i think im gonna also poke around in sokol and see if they're doing something similar that i can um borrow some code from
18:22:59FromDiscord<Robyn [She/Her]> XD good luck!
18:23:18FromDiscord<Robyn [She/Her]> I think I already recommended Raylib, right?
18:24:33FromDiscord<morgan> idk
18:24:46FromDiscord<morgan> idk if i looked much into it
18:25:17FromDiscord<morgan> i saw that bgfx had a way to make it render to an existing window handle and i jumped at the opportunity to have a less painful experience lmao
18:25:39FromDiscord<morgan> i'm using this for my audio plugin framework and the plugin host provides a window for me to render into
18:26:27FromDiscord<morgan> and along with that, it has to allow me to do normal gpu rendering stuff
18:26:39FromDiscord<odexine> In reply to @chronos.vitaqua "What timestamp format is": that's ISO 8601 and the standard library can do that easily no?
18:26:41FromDiscord<Robyn [She/Her]> Fair enough
18:26:52FromDiscord<Robyn [She/Her]> In reply to @odexine "that's ISO 8601 and": I didn't know what it was lol
18:27:23FromDiscord<morgan> i do not want to draw a circle, i need to draw a mesh with a shader. finding that with rendering to an existing window has been limiting lol
18:27:45FromDiscord<odexine> me when i have random ISO standards in my head
18:27:56FromDiscord<Robyn [She/Her]> https://nim-lang.org/docs/times.html#parse%2Cstring%2CTimeFormat%2CTimezone%2CDateTimeLocale 😭
18:28:05FromDiscord<morgan> i remember finding an issue on something else (might've been raylib for all i know) where the dev said it would require an internal restructure of stuff
18:28:12FromDiscord<Robyn [She/Her]> In reply to @morganalyssa "i do not want": Yeah fair enough
18:28:19FromDiscord<Robyn [She/Her]> In reply to @morganalyssa "i remember finding an": To use an existing window handle?
18:28:28FromDiscord<morgan> yeah
18:28:53FromDiscord<Robyn [She/Her]> Rip
18:29:10FromDiscord<Robyn [She/Her]> Oh doesn't BGFX have a C API too?
18:29:15FromDiscord<Robyn [She/Her]> Could just Futhark it
18:29:42FromDiscord<morgan> i could probably do that
18:29:56FromDiscord<morgan> for sokol, the dev was like "here's some code maybe you can figure out how to do it" i spent like most of two weeks doing nothing because it was so overwhelming
18:30:11FromDiscord<Robyn [She/Her]> Rip that's fair
18:31:03FromDiscord<morgan> and that was just the time i wasn't doing anything, it was an issue for a while before too lol
18:37:13FromDiscord<Robyn [She/Her]> @odexine↵So breaking this down: `2023-12-12T14:13:43.416799Z`↵It's `{YYYY}-{MM}-{dd}T{HH}:{mm}:{ss}.{fffffffff}Z`?
18:38:27FromDiscord<odexine> in what format
18:39:03FromDiscord<Robyn [She/Her]> I have no idea, that's all Ollama gives me as an example date
18:39:08FromDiscord<Robyn [She/Her]> Doesn't say what format it is exactly
18:41:22FromDiscord<odexine> times module format `yyyy-MM-dd'T'HH:mm:ss.fffffffffzzz`\
18:41:23FromDiscord<odexine> (edit) "`yyyy-MM-dd'T'HH:mm:ss.fffffffffzzz`\" => "`yyyy-MM-dd'T'HH:mm:ss.fffffffffzzz`"
18:41:50FromDiscord<Robyn [She/Her]> Oh
18:42:02FromDiscord<Robyn [She/Her]> Thank you aha
18:45:01FromDiscord<Robyn [She/Her]> TimeParseError ;-;
18:45:28FromDiscord<Robyn [She/Her]> Had to do `'.'` so the code is now `parse("2023-12-12T14:13:43.416799Z", "yyyy-MM-dd'T'HH:mm:ss'.'fffffffffzzz")` but I don't see the thing because I understand jack-
18:45:54FromDiscord<odexine> huh periods do need to be quoted
18:46:10FromDiscord<Robyn [She/Her]> Yep
18:46:12*ntat quit (Quit: Leaving)
18:46:39FromDiscord<Robyn [She/Her]> But yeah that's a time parser error, specifically the message is `Error: unhandled exception: Failed to parse '2023-12-12T14:13:43.416799Z' with format 'yyyy-MM-dd'T'HH:mm:ss'.'fffffffffzzz'. Failed on pattern 'fffffffff' [TimeParseError]`
18:47:10FromDiscord<odexine> remove 3 fs
18:47:42FromDiscord<odexine> the amount of fractional digits should match the amount of fs
19:09:42FromDiscord<pmunch> Which is super annoying in some cases..
19:46:08FromDiscord<Robyn [She/Her]> Ah
19:46:39*redj quit (Ping timeout: 255 seconds)
19:48:45*redj joined #nim
19:54:03*redj quit (Ping timeout: 260 seconds)
19:56:41*redj joined #nim
20:49:56*beholders_eye joined #nim
21:38:08FromDiscord<sOkam! 🫐> what does `rec` stand for in `nnkRecList` and friends?
21:56:38FromDiscord<ElegantBeef> record
22:09:37FromDiscord<sOkam! 🫐> ty
22:10:02FromDiscord<sOkam! 🫐> what does record mean in the context of an object's field list?
22:18:55FromDiscord<ElegantBeef> An object is a record
22:19:00FromDiscord<ElegantBeef> They're synonymous
22:19:15FromDiscord<sOkam! 🫐> is that a CS concept? can look it up
22:19:44FromDiscord<sOkam! 🫐> never heard of them being synonymous, but if its a known CS concept I can research it
22:20:08FromDiscord<ElegantBeef> It's quite literally another name for `struct` or `object` or whatever you want to call named types with fields
22:20:13FromDiscord<sOkam! 🫐> also, what's different between `stmt` and `expr` in Nim's AST? the feel almost equivalent? 🤔
22:20:24FromDiscord<ElegantBeef> `expr` returns a value
22:20:39FromDiscord<sOkam! 🫐> oh
22:20:48FromDiscord<sOkam! 🫐> In reply to @elegantbeef "It's quite literally another": kkty ✍️
22:47:37FromDiscord<Robyn [She/Her]> In reply to @elegantbeef "`expr` returns a value": So does a statement list though :P
22:47:43FromDiscord<Robyn [She/Her]> Also, how long has the bridge been down now?
22:47:54FromDiscord<Robyn [She/Her]> Sounds like someone should work on a rewrite
22:51:33FromDiscord<Robyn [She/Her]> Unrelated but for a parser combinator, would a `combinator` macro be a good decision to make? My thought process is that it'd be a pragma that could chain given combinators together at compile-time so that runtime cost is very minimal since you don't need to have chains of 100 combinators
22:51:57FromDiscord<Robyn [She/Her]> Either way this'd come later, a combinator macro could definitely make debugging nicer
22:56:17FromDiscord<morgan> In reply to @chronos.vitaqua "Also, how long has": would also be nice to have the bridge able to do moderation actions so mods awake on one platform can easily take action against a problematic user
22:57:24FromDiscord<Robyn [She/Her]> In reply to @morganalyssa "would also be nice": Yeah that'd probably be a useful thing, iirc Beef has a library for the Matrix API and Dimscord exists for the Discord API, I just can't be arsed to glue them together in a decent way
22:58:48FromDiscord<morgan> i’d offer but i have enough on my plate right now
22:59:28FromDiscord<Robyn [She/Her]> Yeah fair heh
23:05:25FromDiscord<saiplayz1138> by the end of this year, I want my GitHub page to be filled with Nim repositories. I started to learn a couple days ago
23:24:16FromDiscord<ElegantBeef> In reply to @chronos.vitaqua "So does a statement": An expression is a statement that has a value
23:24:23FromDiscord<ElegantBeef> In reply to @chronos.vitaqua "Sounds like someone should": Nah just need to selfhost it
23:26:38FromDiscord<saiplayz1138> someone needs to make an easier discord API wrapper
23:27:27FromDiscord<ElegantBeef> Dimscord was easy the last I used it
23:31:33FromDiscord<Robyn [She/Her]> Dimscord is easy, just feels a tad clunky, but that could just be the limitations of the Discord API and how a lib around it has to be designed
23:42:32FromDiscord<saiplayz1138> In reply to @chronos.vitaqua "Dimscord is easy, just": maybe it's just cuz I'm new then ig
23:42:36FromDiscord<saiplayz1138> and I'm still learning nim