<< 26-04-2026 >>

00:10:44*ephapticpulse quit (Remote host closed the connection)
00:33:26*xet7 quit (Remote host closed the connection)
00:37:34*Guest97 joined #nim
00:39:43*Guest97 quit (Client Quit)
02:14:11*PMunch joined #nim
02:17:07*PMunch_ quit (Ping timeout: 264 seconds)
02:22:06*rockcavera joined #nim
02:47:27*xet7 joined #nim
03:19:27FromDiscord<DetermiedNim1> what does `||` actually do
03:20:14FromDiscord<DetermiedNim1> sent a code paste, see https://play.nim-lang.org/#pasty=cCETMHfs
03:20:18FromDiscord<DetermiedNim1> (edit) "https://play.nim-lang.org/#pasty=dwQJpzEP" => "https://play.nim-lang.org/#pasty=ORLRbFMM"
03:20:24FromDiscord<DetermiedNim1> but it doesnt seem to do anything
03:21:07FromDiscord<DetermiedNim1> its just a normal for when i run it
04:27:19FromDiscord<janakali> sent a long message, see https://pasty.ee/DBQXkXvl
04:27:54FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=mLqcuGLS
04:30:56FromDiscord<janakali> Source for 4 is this forum post - https://forum.nim-lang.org/t/6443#39758
06:11:46*benson joined #nim
07:01:20*tiorock joined #nim
07:01:20*tiorock quit (Changing host)
07:01:20*tiorock joined #nim
07:01:20*rockcavera is now known as Guest2355
07:01:20*Guest2355 quit (Killed (gallium.libera.chat (Nickname regained by services)))
07:01:20*tiorock is now known as rockcavera
12:53:50FromDiscord<nnsee> @janakali why does grabnim tell me to add this to PATH when this doesn't exist? `~/.local/share/grabnim/current/bin`
12:54:27FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=YjMyxDab
12:55:54FromDiscord<nnsee> ah, i see. it's created after i invoke grabnim for the first time
12:56:14FromDiscord<nnsee> that doesn't really work well with fish, maybe have the installer create a blank directory there from the get go?
13:14:16*deavmi quit (Read error: Connection reset by peer)
13:20:56*deavmi joined #nim
13:25:36strogon14_nnsee: yeah, I noticed that too. You could open an issue at the grabnim project.
13:32:41FromDiscord<nnsee> thought i'd ping jan here directly but i might do that yeah
13:42:52FromDiscord<janakali> A damn lie and deception! 🙂 I've also checked their "exceptions" and it tells nothing relevant about this.
13:42:54FromDiscord<janakali> 2026-04-26-213806\_869x116\_scrot.png https://media.discordapp.net/attachments/371759389889003532/1497956139357306942/2026-04-26-213806_869x116_scrot.png?ex=69ef67de&is=69ee165e&hm=3f7a60aa5e690109c6dccb9d11030fccb227b1a65293810d1bf17199400792ea&
13:43:14FromDiscord<janakali> @nnseethank you for the heads up, I'll fix it asap.
13:46:10FromDiscord<nnsee> the man page for that func does state it: `If an argument is not an existing directory, fish_add_path ignores it.`
13:46:43FromDiscord<nnsee> (although this was surprising behavior to me as well - i would've expected it to add it to the var regardless. but it's my first time trying to use it on a directory that doesn't exist)
13:47:32FromDiscord<nnsee> although i suppose it's a consequence of it trying to be "smart": `This is a "do what I mean" style command - it tries to do the right thing by default, and follow your lead on what you have already set up.`
15:21:05*PMunch_ joined #nim
15:23:56*PMunch quit (Ping timeout: 252 seconds)
15:44:51FromDiscord<janakali> sent a long message, see https://pasty.ee/fADxIBoX
15:45:22FromDiscord<janakali> the only fix I can see here is to recommend fish users to use a `set -Up fish_user_paths <path>` command↵↵Does anyone know if this modifies system PATH seen by gui apps launched outside of terminal?
15:46:10FromDiscord<nnsee> it doesn't, but that's the case for all shells. you would have to put it in /etc/environ or something for it to be global-global without a shell invocation
15:46:32FromDiscord<nnsee> .bashrc is read by bash upon starting up, well, bash, same for .zshrc and zsh, etc
15:55:21*PMunch joined #nim
15:57:54*PMunch_ quit (Ping timeout: 246 seconds)
15:58:18FromDiscord<janakali> At least Ubuntu/Debian and their derivatives source `~/.profile` on login. Not sure if this standard across other distros.
15:58:48FromDiscord<mostypc123 (linkin park lover)> I think login shells have /etc/profile but not standard ones
16:03:52FromDiscord<mostypc123 (linkin park lover)> And busybox ash does \~/.profile too iirc
16:07:35FromDiscord<janakali> Yeah, fish is not providing any way to set PATH for GUI apps\: https://github.com/fish-shell/fish-shell/issues/3665
16:10:54nmzthey all follow POSIX
16:14:26nmzif they follow POSIX
16:14:48nmzfish uses its own programming language, can it eval bourneshell code?
16:14:57nmzbecause /etc/profile is strictly bourne
16:16:04FromDiscord<nnsee> no, it doesn't have a compatibility mode
16:16:13FromDiscord<nnsee> even sourcing `.env` is a bit of a pain...
16:16:20nmzand it shouldn't
16:16:21FromDiscord<nnsee> one of the pain points of fish
16:16:33FromDiscord<nnsee> still worth it, imo
16:17:13nmzI don't do this anymore, but I set rc as my login shell, and if it saw -i or -l then it would exec into my preferred default shell
16:17:34nmzkinda stupid but it worked
16:17:48nmzsourcing env should be easy enough
16:18:40nmzjust eval $(awk '-F=' '{print "setenv " $1 " " $2}' env)
16:19:09nmzyou'd need to sanitize it a bit though, but /etc/environ only cares about ${} so its easy enough
16:23:08nmzlol, I just used busybox sh -l and it errored because /etc/profile sources all *.sh in /etc/profile.d who thought that was a good idea
16:24:14FromDiscord<janakali> ok, but I was more curious if there's some fish-specific config for this, or a command
16:31:40nmzI just told you a command
16:34:38nmzsh -lc 'exec fish'
16:35:39nmzhmm sh -lc "exec fish $*"
16:35:41nmzor something
16:35:51nmzbetter ask in #fish on libera or whatever
16:43:38*hygo quit (Quit: WeeChat 4.7.1)
18:03:47*gabreal_ joined #nim
18:05:19*gabreal quit (Ping timeout: 245 seconds)
18:08:39*gabreal_ quit (Ping timeout: 245 seconds)
18:36:34*Freneticks quit (Ping timeout: 245 seconds)
18:40:05*Freneticks joined #nim
18:58:55*benson quit (Quit: Konversation terminated!)
19:19:35FromDiscord<Robyn [She/Her]> In reply to @nnsee "even sourcing `.env` is": There's `replay` tbf, a fisher plugin for fish
19:19:48FromDiscord<Robyn [She/Her]> tho i think there was an alternative to replay, too?
19:21:25FromDiscord<Robyn [She/Her]> https://github.com/jorgebucaran/replay.fish
19:25:34*xet7 quit (Remote host closed the connection)
19:31:55*xet7 joined #nim
20:09:37*gabreal joined #nim
20:10:16*gabreal quit (Client Quit)
20:25:41FromDiscord<crochubourbier> Hello, I'm having a little bit of trouble with distinct types, I'm trying to create distinct types inheriting from all functions of base type using `{.borrow: ``.``.}`, but it doesnt seem to work, operators still dont work if I don't borrow them one by one, is there a new way of borrowing all ?
20:26:07FromDiscord<crochubourbier> (edit) "``.``.}`," => "`.`.}`,"
20:26:25FromDiscord<crochubourbier> (edit) "`.`.}`," => "``.``.}`,"
20:27:54FromDiscord<crochubourbier> sent a code paste, see https://play.nim-lang.org/#pasty=BcHnOuQG
20:31:27FromDiscord<crochubourbier> Or is borrow all obsolete ?
20:33:26FromDiscord<crochubourbier> my bad, "Currently, only the dot accessor can be borrowed in this way." from documentation. So this means there is no way to "borrow all" then ?
20:39:26FromDiscord<nasuray> In reply to @crochubourbier "my bad, "Currently, only": What are you using a distinct type for that borrows everything?
20:54:34FromDiscord<planetis_m> In reply to @crochubourbier "my bad, "Currently, only": there's no 'borrows everything' mechanism
20:58:49FromDiscord<crochubourbier> In reply to @nasuray "What are you using": Im trying to find uses for distinct types because right now I dont see any benefit of using them over a wrapper object/tuple type with a single property
21:01:58FromDiscord<crochubourbier> for example Im trying to create a glsl library in nim that implement glsl transpilation, and using glsl types, and I want to use distinct type for glsl primitive types, keep the operators but change the implicit conversion rules with custom converter
21:02:04FromDiscord<crochubourbier> (edit) "converter" => "converters"
21:02:36FromDiscord<crochubourbier> (edit) "types," => "types and functions in nim,"
21:02:59FromDiscord<crochubourbier> (edit) "type" => "types"
21:03:26FromDiscord<crochubourbier> (edit) "implement" => "implements"
21:05:42FromDiscord<crochubourbier> a "borrow everything" or "borrow everything except" would be nice
21:05:54FromDiscord<planetis_m> In reply to @crochubourbier "for example Im trying": I think converters create lots of temporaries everywhere, but I haven't used them in a while
21:07:40FromDiscord<crochubourbier> (edit) "except"" => "except", or even "borrow <list of operators>""
21:08:41FromDiscord<crochubourbier> In reply to @planetis_m "I think converters create": I dont know about that, but you have to use them if you want your types to have custom implicit conversion rules
23:15:59*emery quit (Read error: Connection reset by peer)
23:20:22*emery joined #nim
23:41:19*PMunch_ joined #nim
23:44:15*PMunch quit (Ping timeout: 244 seconds)
23:48:30*przmk_ quit (Ping timeout: 245 seconds)