| 00:54:45 | * | zero` quit (Ping timeout: 245 seconds) |
| 01:09:18 | * | zero` joined #nim |
| 01:13:29 | FromDiscord | <11clock> In reply to @determiedmech1 "vscode nimlsp seems to": This? https://github.com/PMunch/nimlsp |
| 01:13:41 | FromDiscord | <DetermiedNim1> yeah |
| 02:33:42 | * | rockcavera quit (Remote host closed the connection) |
| 02:39:20 | FromDiscord | <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:58 | FromDiscord | <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:20 | FromDiscord | <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:10 | FromDiscord | <pmunch> sent a code paste, see https://play.nim-lang.org/#pasty=pnFTMlvp |
| 06:53:22 | FromDiscord | <amun0666> hmm, discord text client (discordo) looks pretty nice; even the code pasted is highlighted |
| 06:56:51 | FromDiscord | <amun0666> sent a code paste, see https://play.nim-lang.org/#pasty=BEcxhnto |
| 06:57:35 | FromDiscord | <amun0666> (edit) "https://play.nim-lang.org/#pasty=aonUwHQy" => "https://play.nim-lang.org/#pasty=FSUADiwz" |
| 06:57:57 | FromDiscord | <janakali> it's better than Discord's own mobile app. No code highlighting here 😦 |
| 06:58:56 | FromDiscord | <amun0666> https://media.discordapp.net/attachments/371759389889003532/1523946400511950878/image.png?ex=6a4df52f&is=6a4ca3af&hm=dfa04b470133d4e57f270fccd2ad3a52595da6b25ff30b78f2bf6c059db1b4bc& |
| 06:59:23 | FromDiscord | <amun0666> I've to install it in my vpn to be able to run it via tmux session. |
| 07:01:37 | FromDiscord | <amun0666> although long discord image urls are broken into two lines and clicking on the link only uses the first part |
| 07:04:12 | FromDiscord | <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:00 | FromDiscord | <tempestro> sent a code paste, see https://play.nim-lang.org/#pasty=lbYWlvjv |
| 10:01:26 | FromDiscord | <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:45 | FromDiscord | <griffith1deadly> In reply to @tempestro "So, I'm working with": cint == int32 so you can just use int32? |
| 10:05:27 | FromDiscord | <tempestro> yup, I've got a converter for that |
| 10:07:51 | FromDiscord | <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:38 | FromDiscord | <griffith1deadly> Color(r: ..., g: ..., b: ...) |
| 10:08:44 | FromDiscord | <tempestro> oh, right, you have to name them |
| 10:08:49 | FromDiscord | <tempestro> yuck |
| 10:09:18 | * | beholders_eye joined #nim |
| 10:13:35 | FromDiscord | <amun0666> `cint` typically is 32-bit. But technically don't have to. |
| 10:14:12 | FromDiscord | <amun0666> In reply to @tempestro "yuck": `func initColor(r, g, b: int32): Color = […]` |
| 10:15:34 | FromDiscord | <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:17 | FromDiscord | <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:39 | FromDiscord | <tempestro> sent a code paste, see https://play.nim-lang.org/#pasty=UcdYZYYB |
| 10:18:12 | FromDiscord | <amun0666> Right. I don't think there are any ILP64 systems alive. 😉 |
| 10:18:46 | FromDiscord | <amun0666> Nor there is an SDL3 port for AVRs (16-bit integers). 😉 |
| 10:38:50 | * | vival joined #nim |
| 10:43:14 | FromDiscord | <unclechu> sent a long message, see https://pasty.ee/lZBfEzll |
| 10:45:46 | FromDiscord | <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:10 | FromDiscord | <unclechu> > λ nim --eval\:'echo 123' 2\>/dev/null↵> ↵> 123 |
| 10:46:25 | FromDiscord | <unclechu> Is --eval for nimscript? |
| 10:47:09 | FromDiscord | <amun0666> Mhm. |
| 10:47:24 | FromDiscord | <unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=sXgURMCz |
| 10:47:28 | FromDiscord | <unclechu> It does not say anything about stderr |
| 10:49:17 | FromDiscord | <unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=FYdpptKB |
| 10:51:37 | FromDiscord | <unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=wavTSJEz |
| 10:53:16 | FromDiscord | <tempestro> `let src = addr request.src.toFRect`↵`Error: expression has no address`↵WHAT |
| 10:53:50 | FromDiscord | <tempestro> I escaped from C++land to avoid this exact kind of bullshit |
| 10:54:02 | FromDiscord | <unclechu> sent a code paste, see https://play.nim-lang.org/#pasty=MyfYZEHv |
| 10:54:20 | FromDiscord | <unclechu> In the example I fixed the comment |
| 10:54:41 | FromDiscord | <amun0666> In reply to @tempestro "`let src = addr": Make it var. And keep lifetime. |
| 10:55:00 | FromDiscord | <amun0666> (edit) "keep" => "watch out for" |
| 10:55:37 | FromDiscord | <tempestro> making it var does nothing |
| 10:56:03 | FromDiscord | <tempestro> lemme break it down into individual statements and see what the compiler doesn't like |
| 10:56:17 | FromDiscord | <amun0666> Show more of the code. |
| 10:56:30 | FromDiscord | <gesee37> In reply to @tempestro "lemme break it down": yea that is it |
| 10:56:39 | FromDiscord | <gesee37> data are on the stack |
| 10:57:02 | FromDiscord | <gesee37> no adresse seems normal as it's not yet bounded to a var |
| 10:57:25 | FromDiscord | <amun0666> (edit) removed "of the" |
| 10:57:26 | FromDiscord | <gesee37> so just put the toFRect thing in a var then take the adress |
| 10:59:43 | FromDiscord | <tempestro> got it compiling, whether it does what I want is a different matter.↵Let me think about it for a sec |
| 11:03:08 | FromDiscord | <tempestro> Alright, so, `addr` can only be used on lvalues? |
| 11:03:14 | FromDiscord | <tempestro> Makes sense ig |
| 11:16:26 | FromDiscord | <amun0666> That depends on a type. |
| 11:31:01 | FromDiscord | <DetermiedNim1> In reply to @tempestro "`let src = addr": is toFrect a proc |
| 11:32:07 | FromDiscord | <DetermiedNim1> without the parentheses it's probably giving you a proc value instead of calling it, and procs dont have addresses |
| 11:36:29 | FromDiscord | <amun0666> It calls toFRect it the example. |
| 11:39:54 | FromDiscord | <alipolo17777> hey chat |
| 11:40:01 | FromDiscord | <alipolo17777> does nim support operator overloading? |
| 11:41:14 | FromDiscord | <amun0666> Yes. |
| 11:41:17 | FromDiscord | <tempestro> yup |
| 11:41:27 | FromDiscord | <tempestro> you can even create custom operators |
| 11:42:20 | FromDiscord | <amun0666> Even the ones that bad: https://play.nim-lang.org/#pasty=vwzpUobH |
| 11:58:23 | FromDiscord | <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:35 | FromDiscord | <pevici> Lass mich dann wissen, was du als Nächstes siehst. |
| 11:58:36 | FromDiscord | <alipolo17777> and are there facilities in std to support these? |
| 12:02:29 | FromDiscord | <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:25 | FromDiscord | <DetermiedNim1> In reply to @amun0666 "It calls toFRect it": So wouldnt you just change it to `toFRect()` |
| 12:27:18 | FromDiscord | <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:10 | FromDiscord | <timbuktu_guy> a very nice community we have here i must admit |
| 17:31:19 | FromDiscord | <timbuktu_guy> quite impressive and admiring |
| 17:34:59 | * | Skippy8 quit (Read error: Connection reset by peer) |
| 17:38:04 | FromDiscord | <Aceroph> https://media.discordapp.net/attachments/371759389889003532/1524107243082223716/house-covering-mouth.jpeg?ex=6a4e8afb&is=6a4d397b&hm=520bd017c87830cd454b07c6c9e6d44601675a1dff194c8d4b8216e7efe52b7e& |
| 17:38:12 | FromDiscord | <Aceroph> cant reply to a comment with a sticker apparently↵(@amun0666) |
| 17:38:13 | Amun-Ra | yes, that's how we roll... ;) |
| 17:39:08 | Amun-Ra | Aceroph: hehe |
| 17:39:30 | FromDiscord | <Aceroph> theres an irc bridge? |
| 17:39:47 | FromDiscord | <Aceroph> i have yet to meet another matrix user here |
| 17:40:02 | Amun-Ra | yes |
| 17:40:22 | Amun-Ra | I know only one - elegantbeef, he's somehow rarely here lately |
| 17:40:41 | Amun-Ra | only one I know of* |
| 17:42:09 | Amun-Ra | I use discord on my main machine only; IRC on laptops and everything else |
| 17:56:28 | FromDiscord | <Aceroph> deleted my account on march 2nd |
| 17:57:47 | Amun-Ra | I'm an old irc fart; I rather delete discord one ;) |
| 18:00:37 | FromDiscord | <Aceroph> no i meant discord, ive never used irc |
| 18:02:05 | Amun-Ra | ah, I see |
| 18:17:10 | FromDiscord | <rakgew> nice to meet you. (-; |
| 18:17:13 | FromDiscord | <rakgew> heheh |
| 18:17:26 | FromDiscord | <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:49 | Amun-Ra | :P |
| 19:04:32 | * | Jjp137_ joined #nim |
| 19:04:49 | * | Jjp137 quit (Quit: Leaving) |
| 19:22:53 | * | Skippy8 joined #nim |
| 20:01:53 | FromDiscord | <emiliajssl> So many apps |
| 20:20:28 | FromDiscord | <Emmanuel M. Smith 🔸> I'm on Matrix, technically. Using it as a bridge. |
| 20:20:30 | FromDiscord | <Aceroph> yeah true, from where? |
| 20:21:33 | FromDiscord | <Aceroph> if you count the many clients for irc and matrix, yeah theres plenty of fish in the sea 😆↵(@emiliajssl) |
| 20:21:55 | FromDiscord | <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:07 | FromDiscord | <emiliajssl> A |
| 20:22:11 | FromDiscord | <emiliajssl> Bridging discord |
| 20:22:13 | FromDiscord | <emiliajssl> Amazing |
| 20:23:13 | FromDiscord | <Aceroph> thats very cool, might look into it |
| 20:23:19 | FromDiscord | <Aceroph> is it foss? |
| 20:26:16 | FromDiscord | <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:19 | FromDiscord | <Aceroph> if there isnt any, i might just make one |
| 22:37:51 | * | jjido joined #nim |
| 22:38:11 | FromDiscord | <aintea> If building nimony from source throws an error, where should I report it ? |
| 22:38:33 | FromDiscord | <aintea> (edit) "If building nimony from source throws an error, where should I report it ... ?" added "/ get help with it" |
| 22:38:55 | Amun-Ra | https://github.com/nim-lang/nimony |
| 22:40:37 | FromDiscord | <aintea> thanks |
| 22:40:54 | FromDiscord | <aintea> I was wondering if I had to report it in the issues |
| 22:41:00 | FromDiscord | <aintea> (edit) "I was wondering if I had to report it in the issues ... " added "or not" |
| 22:41:37 | FromDiscord | <demotomohiro> In reply to @aintea "If building nimony from": Did you use devel Nim to build Nimony? |
| 22:41:46 | FromDiscord | <aintea> I think so yes |
| 22:41:59 | FromDiscord | <aintea> the only build instructions I've found |
| 22:42:35 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=ndaGxAMk |
| 22:43:22 | FromDiscord | <demotomohiro> What error did you get? |
| 22:43:57 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=BbIMIhTV |
| 22:44:07 | FromDiscord | <aintea> I guess this has to do with the new sum types added into nimony a few days ago |
| 22:44:36 | FromDiscord | <demotomohiro> It looks like you are not using devel Nim. nim-2.2.10 is stable Nim. |
| 22:44:45 | FromDiscord | <aintea> oh sorry I misread devel |
| 22:44:51 | FromDiscord | <aintea> No I am not using devel, I'm using stable |
| 22:45:05 | FromDiscord | <demotomohiro> Please build Nim from source: https://github.com/nim-lang/Nim |
| 22:45:14 | FromDiscord | <aintea> thank you |
| 22:53:46 | * | sdothum quit (Remote host closed the connection) |
| 22:55:15 | FromDiscord | <emiliajssl> In reply to @Amun-Ra "https://github.com/nim-lang/nimony": Nimony? |
| 22:55:18 | FromDiscord | <emiliajssl> Nim 2? |
| 22:56:23 | * | sdothum joined #nim |
| 23:06:50 | FromDiscord | <emiliajssl> Is that supposed to replace the current one? |
| 23:11:11 | FromDiscord | <aintea> Yes and no |
| 23:11:26 | FromDiscord | <aintea> From what I understand, Nimony is the beta project that will at term become Nim 3 |
| 23:11:56 | FromDiscord | <aintea> In reply to @demotomohiro "Please build Nim from": No way, I just checked and you're a contributor to Nimony |
| 23:12:13 | jjido | Interesting. I looked at continuations, good ideas there. |
| 23:12:15 | FromDiscord | <aintea> Thank you very much for your contributions and thanks to the whole Nim team, this language is awesome |
| 23:12:46 | FromDiscord | <aintea> ~~I can finally drop all other programming languages and focus on the one true programming language~~ |
| 23:12:56 | jjido | Is 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:39 | jjido | it feels like the delay() suspend() block should be an actual block, not a pair of instructions |
| 23:14:44 | jjido | Maybe call it a "sync:" block |
| 23:15:22 | * | rockcavera quit (Remote host closed the connection) |
| 23:25:47 | FromDiscord | <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:19 | FromDiscord | <aintea> from the talk at nimconf:↵↵> But every new app makes me rewrite the compiler |
| 23:31:44 | FromDiscord | <emiliajssl> Will Nim ever reach zen |
| 23:32:06 | FromDiscord | <aintea> sure, not sure when, making a programming language takes time |
| 23:32:10 | FromDiscord | <aintea> except when it's lisp |
| 23:32:13 | FromDiscord | <emiliajssl> Well |
| 23:32:23 | FromDiscord | <emiliajssl> As long as it really provide benefits overall |
| 23:32:30 | * | jjido23 is now known as jjido |
| 23:32:30 | FromDiscord | <emiliajssl> Justified refactoring |
| 23:32:31 | FromDiscord | <aintea> I mean, some Nim3 features will be implemented in Nim2 from what I've heard |
| 23:32:34 | FromDiscord | <aintea> for example sum types |
| 23:32:45 | FromDiscord | <emiliajssl> Love the language |
| 23:33:00 | FromDiscord | <emiliajssl> But just hear that it's rewritten many times |
| 23:33:03 | FromDiscord | <aintea> In reply to @emiliajssl "As long as it": Read the reasons Nimony is being developed, it's actually very interesting |
| 23:33:21 | FromDiscord | <emiliajssl> I mean the features written in the readme are cool |
| 23:33:33 | FromDiscord | <emiliajssl> In reply to @aintea "Read the reasons Nimony": You mean from the readme or where from |
| 23:33:35 | jjido | nimrod --> nim --> nimony |
| 23:33:54 | FromDiscord | <aintea> https://nim-lang.org/araq/nimony.html |
| 23:33:56 | FromDiscord | <emiliajssl> Nimrod? |
| 23:33:57 | FromDiscord | <aintea> I think it was this page |
| 23:34:04 | FromDiscord | <aintea> In reply to @emiliajssl "Nimrod?": it was the first name of Nim |
| 23:34:10 | FromDiscord | <aintea> 1.0 or before, I don't remember |
| 23:34:18 | FromDiscord | <emiliajssl> Ohhh |
| 23:34:25 | FromDiscord | <emiliajssl> Wait does this include docs? |
| 23:34:33 | FromDiscord | <emiliajssl> Specially the one that outputs to latex |
| 23:34:44 | FromDiscord | <emiliajssl> This nimony thingy |
| 23:35:21 | FromDiscord | <emiliajssl> While at it would be cool to migrate to Typst if feasible 😛 |
| 23:35:52 | jjido | is the Nimony std lib redesigned? |
| 23:36:18 | FromDiscord | <emiliajssl> Don't think the docgen is part of the stdlib |
| 23:36:24 | FromDiscord | <emiliajssl> Is it? |
| 23:36:24 | * | mal`` quit (Quit: Leaving) |
| 23:38:55 | jjido | https://github.com/nim-lang/nimony/blob/master/doc/language.md |
| 23:38:56 | jjido | https://github.com/nim-lang/nimony/blob/master/doc/stdlib.md |
| 23:40:54 | jjido | the 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:52 | FromDiscord | <emiliajssl> No idea😅 |
| 23:43:02 | FromDiscord | <emiliajssl> Meant https://nim-lang.org/docs/docgen.html |
| 23:43:30 | jjido | mmh |
| 23:44:25 | FromDiscord | <emiliajssl> 😛 |
| 23:44:54 | FromDiscord | <emiliajssl> Haven't seen what exactly of latex does the nim outputs |
| 23:45:29 | FromDiscord | <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 |