<< 07-07-2026 >>

00:54:45*zero` quit (Ping timeout: 245 seconds)
01:09:18*zero` joined #nim
01:13:29FromDiscord<11clock> In reply to @determiedmech1 "vscode nimlsp seems to": This? https://github.com/PMunch/nimlsp
01:13:41FromDiscord<DetermiedNim1> yeah
02:33:42*rockcavera quit (Remote host closed the connection)
02:39:20FromDiscord<nervecenter> In reply to @11clock "VS Code: - Enable": I personally use Sublime at work, it has a decent autocomplete for open projects, and its file symbol search is more than good enough. It can only warp to symbol definitions for certain types of symbols but it's not a huge hindrance for me.
02:39:58FromDiscord<nervecenter> I really really wish they had a built-in Terminal instead of me having to install Terminus and set a bind for starting a shell in the project dir.
02:40:20FromDiscord<nervecenter> Terminus is good though.
03:11:33*zero`_ joined #nim
03:12:59*zero` quit (Read error: Connection reset by peer)
03:13:00*zero`__ joined #nim
03:16:43*zero`_ quit (Ping timeout: 272 seconds)
06:33:37*termer quit (Remote host closed the connection)
06:33:58*termer joined #nim
06:41:10FromDiscord<pmunch> sent a code paste, see https://play.nim-lang.org/#pasty=pnFTMlvp
06:53:22FromDiscord<amun0666> hmm, discord text client (discordo) looks pretty nice; even the code pasted is highlighted
06:56:51FromDiscord<amun0666> sent a code paste, see https://play.nim-lang.org/#pasty=BEcxhnto
06:57:35FromDiscord<amun0666> (edit) "https://play.nim-lang.org/#pasty=aonUwHQy" => "https://play.nim-lang.org/#pasty=FSUADiwz"
06:57:57FromDiscord<janakali> it's better than Discord's own mobile app. No code highlighting here 😦
06:58:56FromDiscord<amun0666> https://media.discordapp.net/attachments/371759389889003532/1523946400511950878/image.png?ex=6a4df52f&is=6a4ca3af&hm=dfa04b470133d4e57f270fccd2ad3a52595da6b25ff30b78f2bf6c059db1b4bc&
06:59:23FromDiscord<amun0666> I've to install it in my vpn to be able to run it via tmux session.
07:01:37FromDiscord<amun0666> although long discord image urls are broken into two lines and clicking on the link only uses the first part
07:04:12FromDiscord<pmunch> In reply to @amun0666 "I's properly optimized even": Ah nice!
07:36:34*vival quit (Ping timeout: 245 seconds)
09:40:00*sdothum quit (Remote host closed the connection)
09:42:12*sdothum joined #nim
09:57:00FromDiscord<tempestro> sent a code paste, see https://play.nim-lang.org/#pasty=lbYWlvjv
10:01:26FromDiscord<tempestro> But I don't use `cint` in my own code, I mostly use `int32` and literals (which the language really wants to type as `int`), so constructing every single Rect feels like a puzzle.
10:04:45FromDiscord<griffith1deadly> In reply to @tempestro "So, I'm working with": cint == int32 so you can just use int32?
10:05:27FromDiscord<tempestro> yup, I've got a converter for that
10:07:51FromDiscord<tempestro> Wait, what even is the proper way to construct objects?↵If I go `const black: = Color(0, 0, 0, 255)`, that gives me `Error: attempting to call routine: 'Color'`, and if I go `const black: Color = (0, 0, 0, 255)`, that's a type mismatch
10:08:38FromDiscord<griffith1deadly> Color(r: ..., g: ..., b: ...)
10:08:44FromDiscord<tempestro> oh, right, you have to name them
10:08:49FromDiscord<tempestro> yuck
10:09:18*beholders_eye joined #nim
10:13:35FromDiscord<amun0666> `cint` typically is 32-bit. But technically don't have to.
10:14:12FromDiscord<amun0666> In reply to @tempestro "yuck": `func initColor(r, g, b: int32): Color = […]`
10:15:34FromDiscord<amun0666> (edit) "In reply to @tempestro "yuck": `func initColor(r, g, b: int32): Color = […]`" => "sent a code paste, see https://play.nim-lang.org/#pasty=TtELKDkK"
10:16:17FromDiscord<tempestro> In reply to @amun0666 "`cint` typically is 32-bit.": ackshually, I don't think there exists a platform on which SDL3 would work where this wouldn't be the case 🤓
10:16:39FromDiscord<tempestro> sent a code paste, see https://play.nim-lang.org/#pasty=UcdYZYYB
10:18:12FromDiscord<amun0666> Right. I don't think there are any ILP64 systems alive. 😉
10:18:46FromDiscord<amun0666> Nor there is an SDL3 port for AVRs (16-bit integers). 😉
10:38:50*vival joined #nim
10:43:14FromDiscord<unclechu> sent a long message, see https://pasty.ee/lZBfEzll
10:45:46FromDiscord<amun0666> In reply to @unclechu "https://nim-lang.org/docs/system.html#quit%2Cstring": `stdout` for JS, nimscript, nimvm and standalone. `stderr` for anything else.
10:46:10FromDiscord<unclechu> > λ nim --eval\:'echo 123' 2\>/dev/null↵> ↵> 123
10:46:25FromDiscord<unclechu> Is --eval for nimscript?
10:47:09FromDiscord<amun0666> Mhm.
10:47:24FromDiscord<unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=sXgURMCz
10:47:28FromDiscord<unclechu> It does not say anything about stderr
10:49:17FromDiscord<unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=FYdpptKB
10:51:37FromDiscord<unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=wavTSJEz
10:53:16FromDiscord<tempestro> `let src = addr request.src.toFRect`↵`Error: expression has no address`↵WHAT
10:53:50FromDiscord<tempestro> I escaped from C++land to avoid this exact kind of bullshit
10:54:02FromDiscord<unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=MyfYZEHv
10:54:20FromDiscord<unclechu> In the example I fixed the comment
10:54:41FromDiscord<amun0666> In reply to @tempestro "`let src = addr": Make it var. And keep lifetime.
10:55:00FromDiscord<amun0666> (edit) "keep" => "watch out for"
10:55:37FromDiscord<tempestro> making it var does nothing
10:56:03FromDiscord<tempestro> lemme break it down into individual statements and see what the compiler doesn't like
10:56:17FromDiscord<amun0666> Show more of the code.
10:56:30FromDiscord<gesee37> In reply to @tempestro "lemme break it down": yea that is it
10:56:39FromDiscord<gesee37> data are on the stack
10:57:02FromDiscord<gesee37> no adresse seems normal as it's not yet bounded to a var
10:57:25FromDiscord<amun0666> (edit) removed "of the"
10:57:26FromDiscord<gesee37> so just put the toFRect thing in a var then take the adress
10:59:43FromDiscord<tempestro> got it compiling, whether it does what I want is a different matter.↵Let me think about it for a sec
11:03:08FromDiscord<tempestro> Alright, so, `addr` can only be used on lvalues?
11:03:14FromDiscord<tempestro> Makes sense ig
11:16:26FromDiscord<amun0666> That depends on a type.
11:31:01FromDiscord<DetermiedNim1> In reply to @tempestro "`let src = addr": is toFrect a proc
11:32:07FromDiscord<DetermiedNim1> without the parentheses it's probably giving you a proc value instead of calling it, and procs dont have addresses
11:36:29FromDiscord<amun0666> It calls toFRect it the example.
11:39:54FromDiscord<alipolo17777> hey chat
11:40:01FromDiscord<alipolo17777> does nim support operator overloading?
11:41:14FromDiscord<amun0666> Yes.
11:41:17FromDiscord<tempestro> yup
11:41:27FromDiscord<tempestro> you can even create custom operators
11:42:20FromDiscord<amun0666> Even the ones that bad: https://play.nim-lang.org/#pasty=vwzpUobH
11:58:23FromDiscord<alipolo17777> i know returning an extra error code as an enum like zig or returning the result as a tagged union with result and error values are two alternatives to using exceptions for error handling↵are these common in nim code bases?
11:58:35FromDiscord<pevici> Lass mich dann wissen, was du als Nächstes siehst.
11:58:36FromDiscord<alipolo17777> and are there facilities in std to support these?
12:02:29FromDiscord<amun0666> Not in the batteries (std), but there's https://github.com/arnetheduck/nim-results
12:15:27*beholders_eye quit (Ping timeout: 244 seconds)
12:26:25FromDiscord<DetermiedNim1> In reply to @amun0666 "It calls toFRect it": So wouldnt you just change it to `toFRect()`
12:27:18FromDiscord<DetermiedNim1> In reply to @amun0666 "Even the ones that": 🫩
13:31:07*beholders_eye joined #nim
14:15:08*emery joined #nim
15:18:15*Jhonny2x4 quit (Ping timeout: 252 seconds)
15:19:15*Jhonny2x4 joined #nim
15:30:09*beholders_eye quit (Ping timeout: 241 seconds)
15:32:22*beholders_eye joined #nim
16:12:26*sdothum quit (Remote host closed the connection)
16:14:50*sdothum joined #nim
16:53:24*acidsys quit (Ping timeout: 252 seconds)
16:55:25*acidsys joined #nim
16:59:05*beholders_eye quit (Ping timeout: 263 seconds)
17:00:43*beholders_eye joined #nim
17:03:59*beholders_eye quit (Client Quit)
17:18:48*Skippy8 joined #nim
17:23:06*FromDiscord quit (Remote host closed the connection)
17:23:19*FromDiscord joined #nim
17:23:54*acidsys quit (Ping timeout: 244 seconds)
17:25:45*acidsys joined #nim
17:30:32*FromDiscord quit (Remote host closed the connection)
17:30:45*FromDiscord joined #nim
17:31:10FromDiscord<timbuktu_guy> a very nice community we have here i must admit
17:31:19FromDiscord<timbuktu_guy> quite impressive and admiring
17:34:59*Skippy8 quit (Read error: Connection reset by peer)
17:38:04FromDiscord<Aceroph> https://media.discordapp.net/attachments/371759389889003532/1524107243082223716/house-covering-mouth.jpeg?ex=6a4e8afb&is=6a4d397b&hm=520bd017c87830cd454b07c6c9e6d44601675a1dff194c8d4b8216e7efe52b7e&
17:38:12FromDiscord<Aceroph> cant reply to a comment with a sticker apparently↵(@amun0666)
17:38:13Amun-Rayes, that's how we roll... ;)
17:39:08Amun-RaAceroph: hehe
17:39:30FromDiscord<Aceroph> theres an irc bridge?
17:39:47FromDiscord<Aceroph> i have yet to meet another matrix user here
17:40:02Amun-Rayes
17:40:22Amun-RaI know only one - elegantbeef, he's somehow rarely here lately
17:40:41Amun-Raonly one I know of*
17:42:09Amun-RaI use discord on my main machine only; IRC on laptops and everything else
17:56:28FromDiscord<Aceroph> deleted my account on march 2nd
17:57:47Amun-RaI'm an old irc fart; I rather delete discord one ;)
18:00:37FromDiscord<Aceroph> no i meant discord, ive never used irc
18:02:05Amun-Raah, I see
18:17:10FromDiscord<rakgew> nice to meet you. (-;
18:17:13FromDiscord<rakgew> heheh
18:17:26FromDiscord<Aceroph> oh my gawd
18:23:09*termer quit (Remote host closed the connection)
18:24:42*termer joined #nim
18:28:00*tarzeau quit (Ping timeout: 252 seconds)
18:29:30*tarzeau joined #nim
18:30:20*redj quit (Ping timeout: 252 seconds)
18:36:49Amun-Ra:P
19:04:32*Jjp137_ joined #nim
19:04:49*Jjp137 quit (Quit: Leaving)
19:22:53*Skippy8 joined #nim
20:01:53FromDiscord<emiliajssl> So many apps
20:20:28FromDiscord<Emmanuel M. Smith 🔸> I'm on Matrix, technically. Using it as a bridge.
20:20:30FromDiscord<Aceroph> yeah true, from where?
20:21:33FromDiscord<Aceroph> if you count the many clients for irc and matrix, yeah theres plenty of fish in the sea 😆↵(@emiliajssl)
20:21:55FromDiscord<Emmanuel M. Smith 🔸> Through Beeper, have all my chats from all apps in one place. Used to use IRC way back in highschool, and was one of the early Discord users, but it got too bloated for me over time
20:22:07FromDiscord<emiliajssl> A
20:22:11FromDiscord<emiliajssl> Bridging discord
20:22:13FromDiscord<emiliajssl> Amazing
20:23:13FromDiscord<Aceroph> thats very cool, might look into it
20:23:19FromDiscord<Aceroph> is it foss?
20:26:16FromDiscord<Emmanuel M. Smith 🔸> Not really, part of the bridging stack is https://github.com/beeper/bridge-manager but if you can find a foss alternative, let me know
20:59:31*Skippy8 quit (Ping timeout: 243 seconds)
21:13:06*rockcavera joined #nim
21:20:19FromDiscord<Aceroph> if there isnt any, i might just make one
22:37:51*jjido joined #nim
22:38:11FromDiscord<aintea> If building nimony from source throws an error, where should I report it ?
22:38:33FromDiscord<aintea> (edit) "If building nimony from source throws an error, where should I report it ... ?" added "/ get help with it"
22:38:55Amun-Rahttps://github.com/nim-lang/nimony
22:40:37FromDiscord<aintea> thanks
22:40:54FromDiscord<aintea> I was wondering if I had to report it in the issues
22:41:00FromDiscord<aintea> (edit) "I was wondering if I had to report it in the issues ... " added "or not"
22:41:37FromDiscord<demotomohiro> In reply to @aintea "If building nimony from": Did you use devel Nim to build Nimony?
22:41:46FromDiscord<aintea> I think so yes
22:41:59FromDiscord<aintea> the only build instructions I've found
22:42:35FromDiscord<aintea> sent a code paste, see https://play.nim-lang.org/#pasty=ndaGxAMk
22:43:22FromDiscord<demotomohiro> What error did you get?
22:43:57FromDiscord<aintea> sent a code paste, see https://play.nim-lang.org/#pasty=BbIMIhTV
22:44:07FromDiscord<aintea> I guess this has to do with the new sum types added into nimony a few days ago
22:44:36FromDiscord<demotomohiro> It looks like you are not using devel Nim. nim-2.2.10 is stable Nim.
22:44:45FromDiscord<aintea> oh sorry I misread devel
22:44:51FromDiscord<aintea> No I am not using devel, I'm using stable
22:45:05FromDiscord<demotomohiro> Please build Nim from source: https://github.com/nim-lang/Nim
22:45:14FromDiscord<aintea> thank you
22:53:46*sdothum quit (Remote host closed the connection)
22:55:15FromDiscord<emiliajssl> In reply to @Amun-Ra "https://github.com/nim-lang/nimony": Nimony?
22:55:18FromDiscord<emiliajssl> Nim 2?
22:56:23*sdothum joined #nim
23:06:50FromDiscord<emiliajssl> Is that supposed to replace the current one?
23:11:11FromDiscord<aintea> Yes and no
23:11:26FromDiscord<aintea> From what I understand, Nimony is the beta project that will at term become Nim 3
23:11:56FromDiscord<aintea> In reply to @demotomohiro "Please build Nim from": No way, I just checked and you're a contributor to Nimony
23:12:13jjidoInteresting. I looked at continuations, good ideas there.
23:12:15FromDiscord<aintea> Thank you very much for your contributions and thanks to the whole Nim team, this language is awesome
23:12:46FromDiscord<aintea> ~~I can finally drop all other programming languages and focus on the one true programming language~~
23:12:56jjidoIs the spawn example something a programmer would write? https://github.com/nim-lang/nimony/blob/master/doc/passive_procs.md#spawn-fork-semantics-via-delay
23:13:39jjidoit feels like the delay() suspend() block should be an actual block, not a pair of instructions
23:14:44jjidoMaybe call it a "sync:" block
23:15:22*rockcavera quit (Remote host closed the connection)
23:25:47FromDiscord<emiliajssl> Is the current implementation with lots of issues?
23:28:10*jjido23 joined #nim
23:30:37*jjido quit (Ping timeout: 245 seconds)
23:31:19FromDiscord<aintea> from the talk at nimconf:↵↵> But every new app makes me rewrite the compiler
23:31:44FromDiscord<emiliajssl> Will Nim ever reach zen
23:32:06FromDiscord<aintea> sure, not sure when, making a programming language takes time
23:32:10FromDiscord<aintea> except when it's lisp
23:32:13FromDiscord<emiliajssl> Well
23:32:23FromDiscord<emiliajssl> As long as it really provide benefits overall
23:32:30*jjido23 is now known as jjido
23:32:30FromDiscord<emiliajssl> Justified refactoring
23:32:31FromDiscord<aintea> I mean, some Nim3 features will be implemented in Nim2 from what I've heard
23:32:34FromDiscord<aintea> for example sum types
23:32:45FromDiscord<emiliajssl> Love the language
23:33:00FromDiscord<emiliajssl> But just hear that it's rewritten many times
23:33:03FromDiscord<aintea> In reply to @emiliajssl "As long as it": Read the reasons Nimony is being developed, it's actually very interesting
23:33:21FromDiscord<emiliajssl> I mean the features written in the readme are cool
23:33:33FromDiscord<emiliajssl> In reply to @aintea "Read the reasons Nimony": You mean from the readme or where from
23:33:35jjidonimrod --> nim --> nimony
23:33:54FromDiscord<aintea> https://nim-lang.org/araq/nimony.html
23:33:56FromDiscord<emiliajssl> Nimrod?
23:33:57FromDiscord<aintea> I think it was this page
23:34:04FromDiscord<aintea> In reply to @emiliajssl "Nimrod?": it was the first name of Nim
23:34:10FromDiscord<aintea> 1.0 or before, I don't remember
23:34:18FromDiscord<emiliajssl> Ohhh
23:34:25FromDiscord<emiliajssl> Wait does this include docs?
23:34:33FromDiscord<emiliajssl> Specially the one that outputs to latex
23:34:44FromDiscord<emiliajssl> This nimony thingy
23:35:21FromDiscord<emiliajssl> While at it would be cool to migrate to Typst if feasible 😛
23:35:52jjidois the Nimony std lib redesigned?
23:36:18FromDiscord<emiliajssl> Don't think the docgen is part of the stdlib
23:36:24FromDiscord<emiliajssl> Is it?
23:36:24*mal`` quit (Quit: Leaving)
23:38:55jjidohttps://github.com/nim-lang/nimony/blob/master/doc/language.md
23:38:56jjidohttps://github.com/nim-lang/nimony/blob/master/doc/stdlib.md
23:40:54jjidothe Readme says "The stdlib source is in lib/std/ and is designed to be read directly — Nim is readable enough that type signatures often suffice as documentation." which suggests it's the same as Nim? not sure
23:41:52FromDiscord<emiliajssl> No idea😅
23:43:02FromDiscord<emiliajssl> Meant https://nim-lang.org/docs/docgen.html
23:43:30jjidommh
23:44:25FromDiscord<emiliajssl> 😛
23:44:54FromDiscord<emiliajssl> Haven't seen what exactly of latex does the nim outputs
23:45:29FromDiscord<emiliajssl> But if it doesn't use lots of latex native thingies, like shell escape specially, typst could be more convenient
23:50:12*jjido quit (Ping timeout: 245 seconds)
23:58:12*mal`` joined #nim