<< 24-11-2025 >>

00:00:49FromDiscord<dromedariodechapeu> sent a code paste, see https://play.nim-lang.org/#pasty=eKFGHPSl
00:01:14FromDiscord<dromedariodechapeu> (edit) "https://play.nim-lang.org/#pasty=IoNRUkzE" => "https://play.nim-lang.org/#pasty=WVCAhTfv"
00:01:54FromDiscord<dromedariodechapeu> looks like when i do the `or` the value is interpreted has a `uint16`, not a `int16`
00:03:31FromDiscord<Robyn [She/Her]> In reply to @dromedariodechapeu "looks like when i": Your issue was line 8
00:03:48FromDiscord<Robyn [She/Her]> Change `int16` to `cast[int16]`
00:04:00FromDiscord<Robyn [She/Her]> `cast` is a bitcast, while `int16` is a conversion
00:04:50FromDiscord<dromedariodechapeu> thank you, it works
00:06:07FromDiscord<Robyn [She/Her]> o7
01:11:23*Mister_Magister quit (Quit: bye)
01:13:58*Mister_Magister joined #nim
01:52:37*beholders_eye quit (Ping timeout: 246 seconds)
04:02:04*cm quit (Quit: Bye.)
04:08:38*cm joined #nim
04:09:57FromDiscord<ajusa> What would be the easiest workaround for something like https://github.com/treeform/chrono/issues/11? Mark each usage with cast(gcsafe)? Cast it to a pointer somehow?
04:59:07FromDiscord<lainlaylie> In reply to @nasuray "Feels a bit hyperbolic...,": this. clear bug reports do receive fixes.
05:31:01*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
05:31:28*SchweinDeBurg joined #nim
07:03:52*thunder joined #nim
09:18:54*beholders_eye joined #nim
09:33:29*beholders_eye quit (Ping timeout: 260 seconds)
09:35:55*beholders_eye joined #nim
09:48:43*xet7 joined #nim
09:56:10*beholders_eye quit (Ping timeout: 245 seconds)
10:02:55*ectobiuspallidus joined #nim
10:07:16FromDiscord<Robyn [She/Her]> In reply to @ajusa "What would be the": yeah, marking it with cast gcsafe is your only real option
10:11:59*beholders_eye joined #nim
10:20:49*xet7 quit (Remote host closed the connection)
10:26:16FromDiscord<kiloneie> https://www.reddit.com/r/nim/comments/qvb2ub/how_to_create_a_then_macro_which_can_be_used/ this really not possible ?
10:30:07FromDiscord<nocturn9x> quick question
10:30:12FromDiscord<nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=KNGegLVm
10:30:15FromDiscord<nocturn9x> why is this allowed?!
10:30:28FromDiscord<nocturn9x> (prints `linux` as expected when not redeclaring the variable)
10:30:41FromDiscord<nocturn9x> sounds like `hostOS` & co should be compile-time constants defined in `std/system` or something
10:49:29*ectobiuspallidus quit (Quit: Leaving)
10:53:51FromDiscord<solitudesf> In reply to @nocturn9x "sounds like `hostOS` &": you're not gonna believe it..
10:54:05FromDiscord<nocturn9x> then shadowing them should not be allowed?
10:54:19FromDiscord<nocturn9x> at the very least I expect an ambiguity error when resolving `hostOS`
10:54:26*beholders_eye quit (Ping timeout: 246 seconds)
11:21:45FromDiscord<Robyn [She/Her]> In reply to @kiloneie "https://www.reddit.com/r/nim/comments/qvb2ub/how_to": nope, unless you wanna modify the parser directly
11:22:29FromDiscord<Robyn [She/Her]> In reply to @nocturn9x "then shadowing them should": shadowing is okay imo, don't you get warnings for this, too?
11:22:49FromDiscord<Robyn [She/Her]> In reply to @nocturn9x "at the very least": you would if `hostOS` is imported from `b.nim`
11:23:40FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=iGwKsvYw
11:32:34*beholders_eye joined #nim
11:50:31*beholders_eye quit (Ping timeout: 240 seconds)
12:00:24FromDiscord<enthus1ast.> hey folks, how you build your releases? Do you use github workflows to capture your release builds etc?↵my releases currently are a little wonky and mostly by hand
12:00:40FromDiscord<enthus1ast.> so when you cross compile for several targets
12:01:59FromDiscord<enthus1ast.> or docker?
12:02:16FromDiscord<enthus1ast.> zig
12:38:31*beholders_eye joined #nim
12:41:09FromDiscord<janakali> In reply to @enthus1ast. "hey folks, how": I just have a nimscript to compile for each target with zigcc: https://codeberg.org/janAkali/grabnim/src/branch/master/zig_build_all.nims↵And a workflow that setups some windows dependencies, calls this script and creates new release: https://codeberg.org/janAkali/grabnim/src/branch/master/.forgejo/workflows/build.yaml↵Overall pretty simple and I can test stuff locally, just by running: `
12:52:36*hygo quit (Quit: WeeChat 4.7.1)
13:02:18FromDiscord<nasuray> In reply to @enthus1ast. "hey folks, how": I use an ubuntu runner on github workflows and `forge +release` from my zig cc wrapper https://github.com/daylinmorgan/forge
13:13:16FromDiscord<enthus1ast.> yeah @janakali in principal this is what i do, then i upload it to github manually. @nasuray do you have an example of a workflow file?
13:14:05FromDiscord<enthus1ast.> ah the codeberg.org workflow could also run on github or?
13:14:18FromDiscord<nasuray> In reply to @enthus1ast. "yeah <@154179249614356480> in principal": https://github.com/daylinmorgan/forge/blob/main/.github/workflows/build.yml
13:17:44*xutaxkamay quit (Ping timeout: 256 seconds)
13:25:54FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=uTHwmMWQ
13:30:44FromDiscord<nocturn9x> In reply to @battery.acid.bubblegum "you would if `hostOS`": so why not from std/system?
13:31:48FromDiscord<nocturn9x> In reply to @battery.acid.bubblegum "shadowing is okay imo,": no warnings from inim
13:31:56FromDiscord<nocturn9x> should be an error anyway
13:39:19*Jhonny2x1 quit (Quit: Jhonny2x1)
13:39:45*Jhonny2x4 joined #nim
13:51:19*beholders_eye quit (Ping timeout: 260 seconds)
14:01:33FromDiscord<ajusa> In reply to @battery.acid.bubblegum "yeah, marking it with": Thanks!
14:23:52*beholders_eye joined #nim
14:40:50FromDiscord<Robyn [She/Her]> In reply to @nocturn9x "no warnings from inim": because that's one file
14:41:46FromDiscord<Robyn [She/Her]> In reply to @nocturn9x "so why not from": because the ambiguity would come from `hostOS` coming from both modules, and you'd be forced to specify the module it comes from
14:45:33*xutaxkamay joined #nim
14:48:39*thunder quit (Quit: Leaving)
15:27:28FromDiscord<nocturn9x> In reply to @battery.acid.bubblegum "because that's one file": std/system should be another file though
15:33:19FromDiscord<nasuray> In reply to @nocturn9x "std/system should be another": well its special
15:33:30FromDiscord<nocturn9x> well I got that much
15:33:38FromDiscord<nocturn9x> gosh I love nim but it has such silly design flaws sometimes
15:33:43FromDiscord<nocturn9x> makes it hard to love sometimes
15:33:55FromDiscord<nocturn9x> _and_ it makes me look like I'm crazy when I tell people actually it's not that bad
15:33:57FromDiscord<nocturn9x> :p
15:44:48FromDiscord<lainlaylie> does this even have anything to do with system being special? in robyn's example the compiler can't choose between b.hostOS and system.hostOS because they both come from a different module, whereas if hostOS is declared and referenced in the same module then the compiler will just use that
15:45:08FromDiscord<lainlaylie> i havent tested it, but isnt this just how disambiguation works in nim?
15:45:21FromDiscord<nasuray> In reply to @lainlaylie "i havent tested it,": yep
15:45:47FromDiscord<nervecenter> Seems like it's just a basic shadowing mishap, don't redeclare identifiers for system constants to avoid the issue.
16:37:21FromDiscord<Robyn [She/Her]> In reply to @nocturn9x "std/system should be another": that's implicitly imported tho
16:37:50FromDiscord<Robyn [She/Her]> In reply to @lainlaylie "i havent tested it,": yeah, I'm just bad at explaining
16:39:38FromDiscord<Buckwheat> heads up to any of you using OpenBSD as your OS and using Futhark for any projects, should any of you have any bugs regarding the patch I just put out to fix Opir build on OpenBSD, please do not be shy to ping me and tell me I broke something!
16:41:29FromDiscord<Buckwheat> other than that, Futhark now works on OpenBSD as well as FreeBSD! 🥳
16:51:38*hygo joined #nim
17:02:27FromDiscord<nocturn9x> In reply to @battery.acid.bubblegum "that's implicitly imported tho": ...so?
18:18:24FromDiscord<hugop707> hello, ive come back after a long time, whats the best way nowadays to create c wrappers, c2nim?
18:24:27FromDiscord<1a.decpro> sent a long message, see https://pasty.ee/YEDuxcFn
18:56:22FromDiscord<lainlaylie> In reply to @hugop707 "hello, ive come back": futhark
19:25:21FromDiscord<Buckwheat> what about it?
19:25:55*hygo quit (Ping timeout: 240 seconds)
19:45:54FromDiscord<nervecenter> https://www.youtube.com/watch?v=7fGB-hjc2Gc
19:46:05FromDiscord<nervecenter> sent a long message, see https://pasty.ee/ntXnqfwA
19:46:20FromDiscord<nervecenter> (edit) "https://pasty.ee/YJiAZpvv" => "https://pasty.ee/crdcoDOy"
19:49:52FromDiscord<Laylie> looks like the bridge dropped the message i was replying to, someone was asking about the best way these days to do c wrappers
19:51:52FromDiscord<Buckwheat> AHHH I see I see, yeah Futhark seems to be a popular method... at least, it's what I use!
19:57:33*hygo joined #nim
20:18:19FromDiscord<mr_rowboto> In reply to @hugop707 "hello, ive come back": Maybe I can help another brother 🙂↵http://github.com/RowDaBoat/futhark-tutorial
22:21:12FromDiscord<helgas_0t> sent a long message, see https://pasty.ee/onjhECnQ
22:24:23FromDiscord<alexander888alexander> ok chatgpt
22:25:00FromDiscord<alexander888alexander> whatever you say
22:25:00FromDiscord<demotomohiro> <@&371760044473319454>
22:46:12*beholders_eye quit (Quit: WeeChat 4.6.3)
23:09:18FromDiscord<hugop707> thanks @mr_rowboto @lainlaylie
23:26:50*blackbeard420 quit (Changing host)
23:26:50*blackbeard420 joined #nim