| 00:00:49 | FromDiscord | <dromedariodechapeu> sent a code paste, see https://play.nim-lang.org/#pasty=eKFGHPSl |
| 00:01:14 | FromDiscord | <dromedariodechapeu> (edit) "https://play.nim-lang.org/#pasty=IoNRUkzE" => "https://play.nim-lang.org/#pasty=WVCAhTfv" |
| 00:01:54 | FromDiscord | <dromedariodechapeu> looks like when i do the `or` the value is interpreted has a `uint16`, not a `int16` |
| 00:03:31 | FromDiscord | <Robyn [She/Her]> In reply to @dromedariodechapeu "looks like when i": Your issue was line 8 |
| 00:03:48 | FromDiscord | <Robyn [She/Her]> Change `int16` to `cast[int16]` |
| 00:04:00 | FromDiscord | <Robyn [She/Her]> `cast` is a bitcast, while `int16` is a conversion |
| 00:04:50 | FromDiscord | <dromedariodechapeu> thank you, it works |
| 00:06:07 | FromDiscord | <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:57 | FromDiscord | <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:07 | FromDiscord | <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:16 | FromDiscord | <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:16 | FromDiscord | <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:07 | FromDiscord | <nocturn9x> quick question |
| 10:30:12 | FromDiscord | <nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=KNGegLVm |
| 10:30:15 | FromDiscord | <nocturn9x> why is this allowed?! |
| 10:30:28 | FromDiscord | <nocturn9x> (prints `linux` as expected when not redeclaring the variable) |
| 10:30:41 | FromDiscord | <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:51 | FromDiscord | <solitudesf> In reply to @nocturn9x "sounds like `hostOS` &": you're not gonna believe it.. |
| 10:54:05 | FromDiscord | <nocturn9x> then shadowing them should not be allowed? |
| 10:54:19 | FromDiscord | <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:45 | FromDiscord | <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:29 | FromDiscord | <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:49 | FromDiscord | <Robyn [She/Her]> In reply to @nocturn9x "at the very least": you would if `hostOS` is imported from `b.nim` |
| 11:23:40 | FromDiscord | <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:24 | FromDiscord | <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:40 | FromDiscord | <enthus1ast.> so when you cross compile for several targets |
| 12:01:59 | FromDiscord | <enthus1ast.> or docker? |
| 12:02:16 | FromDiscord | <enthus1ast.> zig |
| 12:38:31 | * | beholders_eye joined #nim |
| 12:41:09 | FromDiscord | <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:18 | FromDiscord | <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:16 | FromDiscord | <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:05 | FromDiscord | <enthus1ast.> ah the codeberg.org workflow could also run on github or? |
| 13:14:18 | FromDiscord | <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:54 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=uTHwmMWQ |
| 13:30:44 | FromDiscord | <nocturn9x> In reply to @battery.acid.bubblegum "you would if `hostOS`": so why not from std/system? |
| 13:31:48 | FromDiscord | <nocturn9x> In reply to @battery.acid.bubblegum "shadowing is okay imo,": no warnings from inim |
| 13:31:56 | FromDiscord | <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:33 | FromDiscord | <ajusa> In reply to @battery.acid.bubblegum "yeah, marking it with": Thanks! |
| 14:23:52 | * | beholders_eye joined #nim |
| 14:40:50 | FromDiscord | <Robyn [She/Her]> In reply to @nocturn9x "no warnings from inim": because that's one file |
| 14:41:46 | FromDiscord | <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:28 | FromDiscord | <nocturn9x> In reply to @battery.acid.bubblegum "because that's one file": std/system should be another file though |
| 15:33:19 | FromDiscord | <nasuray> In reply to @nocturn9x "std/system should be another": well its special |
| 15:33:30 | FromDiscord | <nocturn9x> well I got that much |
| 15:33:38 | FromDiscord | <nocturn9x> gosh I love nim but it has such silly design flaws sometimes |
| 15:33:43 | FromDiscord | <nocturn9x> makes it hard to love sometimes |
| 15:33:55 | FromDiscord | <nocturn9x> _and_ it makes me look like I'm crazy when I tell people actually it's not that bad |
| 15:33:57 | FromDiscord | <nocturn9x> :p |
| 15:44:48 | FromDiscord | <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:08 | FromDiscord | <lainlaylie> i havent tested it, but isnt this just how disambiguation works in nim? |
| 15:45:21 | FromDiscord | <nasuray> In reply to @lainlaylie "i havent tested it,": yep |
| 15:45:47 | FromDiscord | <nervecenter> Seems like it's just a basic shadowing mishap, don't redeclare identifiers for system constants to avoid the issue. |
| 16:37:21 | FromDiscord | <Robyn [She/Her]> In reply to @nocturn9x "std/system should be another": that's implicitly imported tho |
| 16:37:50 | FromDiscord | <Robyn [She/Her]> In reply to @lainlaylie "i havent tested it,": yeah, I'm just bad at explaining |
| 16:39:38 | FromDiscord | <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:29 | FromDiscord | <Buckwheat> other than that, Futhark now works on OpenBSD as well as FreeBSD! 🥳 |
| 16:51:38 | * | hygo joined #nim |
| 17:02:27 | FromDiscord | <nocturn9x> In reply to @battery.acid.bubblegum "that's implicitly imported tho": ...so? |
| 18:18:24 | FromDiscord | <hugop707> hello, ive come back after a long time, whats the best way nowadays to create c wrappers, c2nim? |
| 18:24:27 | FromDiscord | <1a.decpro> sent a long message, see https://pasty.ee/YEDuxcFn |
| 18:56:22 | FromDiscord | <lainlaylie> In reply to @hugop707 "hello, ive come back": futhark |
| 19:25:21 | FromDiscord | <Buckwheat> what about it? |
| 19:25:55 | * | hygo quit (Ping timeout: 240 seconds) |
| 19:45:54 | FromDiscord | <nervecenter> https://www.youtube.com/watch?v=7fGB-hjc2Gc |
| 19:46:05 | FromDiscord | <nervecenter> sent a long message, see https://pasty.ee/ntXnqfwA |
| 19:46:20 | FromDiscord | <nervecenter> (edit) "https://pasty.ee/YJiAZpvv" => "https://pasty.ee/crdcoDOy" |
| 19:49:52 | FromDiscord | <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:52 | FromDiscord | <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:19 | FromDiscord | <mr_rowboto> In reply to @hugop707 "hello, ive come back": Maybe I can help another brother 🙂↵http://github.com/RowDaBoat/futhark-tutorial |
| 22:21:12 | FromDiscord | <helgas_0t> sent a long message, see https://pasty.ee/onjhECnQ |
| 22:24:23 | FromDiscord | <alexander888alexander> ok chatgpt |
| 22:25:00 | FromDiscord | <alexander888alexander> whatever you say |
| 22:25:00 | FromDiscord | <demotomohiro> <@&371760044473319454> |
| 22:46:12 | * | beholders_eye quit (Quit: WeeChat 4.6.3) |
| 23:09:18 | FromDiscord | <hugop707> thanks @mr_rowboto @lainlaylie |
| 23:26:50 | * | blackbeard420 quit (Changing host) |
| 23:26:50 | * | blackbeard420 joined #nim |