00:02:57 | * | rockcavera quit (*.net *.split) |
00:02:58 | * | om3ga quit (*.net *.split) |
00:02:58 | * | gshumway quit (*.net *.split) |
00:02:59 | * | via quit (*.net *.split) |
00:03:00 | * | mal`` quit (*.net *.split) |
00:03:00 | * | dza quit (*.net *.split) |
00:03:01 | * | pbsds35 quit (*.net *.split) |
00:03:02 | * | kasimir_ quit (*.net *.split) |
00:03:02 | * | lumidify quit (*.net *.split) |
00:03:02 | * | Artea quit (*.net *.split) |
00:03:03 | * | _________ quit (*.net *.split) |
00:03:03 | * | vicfred quit (*.net *.split) |
00:03:03 | * | def- quit (*.net *.split) |
00:03:04 | * | disso-peach quit (*.net *.split) |
00:03:04 | * | pmp-p quit (*.net *.split) |
00:03:05 | * | FromDiscord quit (*.net *.split) |
00:03:05 | * | jkl quit (*.net *.split) |
00:03:08 | * | ormiret quit (*.net *.split) |
00:03:09 | * | attah quit (*.net *.split) |
00:03:09 | * | khazakar quit (*.net *.split) |
00:03:11 | * | Goodbye_Vincent1 quit (*.net *.split) |
00:03:12 | * | anddam quit (*.net *.split) |
00:03:13 | * | mronetwo quit (*.net *.split) |
00:03:13 | * | casaca quit (*.net *.split) |
00:03:15 | * | oz quit (*.net *.split) |
00:03:15 | * | sh4 quit (*.net *.split) |
00:03:16 | * | Jjp137 quit (*.net *.split) |
00:03:16 | * | GnuYawk6733 quit (*.net *.split) |
00:03:16 | * | Ekho quit (*.net *.split) |
00:03:17 | * | nyeaa49284230101 quit (*.net *.split) |
00:03:17 | * | termer quit (*.net *.split) |
00:03:17 | * | syl_ quit (*.net *.split) |
00:03:17 | * | hernan604 quit (*.net *.split) |
00:03:17 | * | flynn quit (*.net *.split) |
00:03:17 | * | maytham quit (*.net *.split) |
00:03:21 | * | nisstyre quit (*.net *.split) |
00:03:22 | * | acidsys quit (*.net *.split) |
00:03:22 | * | noeontheend quit (*.net *.split) |
00:03:22 | * | tmpod quit (*.net *.split) |
00:03:24 | * | Amun-Ra quit (*.net *.split) |
00:03:26 | * | bcksl quit (*.net *.split) |
00:03:26 | * | xutaxkamay quit (*.net *.split) |
00:03:27 | * | oddish quit (*.net *.split) |
00:03:28 | * | tk quit (*.net *.split) |
00:03:28 | * | marcus quit (*.net *.split) |
00:03:30 | * | strogon14 quit (*.net *.split) |
00:03:30 | * | GreaseMonkey quit (*.net *.split) |
00:03:30 | * | oisota quit (*.net *.split) |
00:03:30 | * | ttkap quit (*.net *.split) |
00:03:31 | * | m5zs7k quit (*.net *.split) |
00:03:31 | * | SchweinDeBurg quit (*.net *.split) |
00:03:32 | * | ehmry quit (*.net *.split) |
00:03:32 | * | end quit (*.net *.split) |
00:03:33 | * | blackbeard420 quit (*.net *.split) |
00:03:34 | * | Lord_Nightmare quit (Excess Flood) |
00:05:33 | * | ursa-major quit (Ping timeout: 240 seconds) |
00:07:23 | * | Jjp137 joined #nim |
00:07:23 | * | GnuYawk6733 joined #nim |
00:07:23 | * | Ekho joined #nim |
00:07:23 | * | nyeaa49284230101 joined #nim |
00:07:23 | * | termer joined #nim |
00:07:23 | * | syl_ joined #nim |
00:07:23 | * | hernan604 joined #nim |
00:07:23 | * | flynn joined #nim |
00:07:23 | * | maytham joined #nim |
00:08:02 | * | sh4_ joined #nim |
00:08:02 | * | vicfred joined #nim |
00:08:02 | * | def- joined #nim |
00:08:02 | * | disso-peach joined #nim |
00:08:02 | * | mal`` joined #nim |
00:08:02 | * | pmp-p joined #nim |
00:08:02 | * | dza joined #nim |
00:08:02 | * | attah joined #nim |
00:08:02 | * | khazakar joined #nim |
00:08:02 | * | FromDiscord joined #nim |
00:08:02 | * | pbsds35 joined #nim |
00:08:02 | * | jkl joined #nim |
00:08:02 | * | kasimir_ joined #nim |
00:08:02 | * | lumidify joined #nim |
00:08:02 | * | Artea joined #nim |
00:08:02 | * | _________ joined #nim |
00:08:02 | * | ormiret joined #nim |
00:08:02 | * | Goodbye_Vincent1 joined #nim |
00:08:18 | * | ursa-major joined #nim |
00:08:18 | * | ursa-major quit (Max SendQ exceeded) |
00:08:21 | * | rockcavera joined #nim |
00:08:21 | * | om3ga joined #nim |
00:08:21 | * | gshumway joined #nim |
00:08:21 | * | via joined #nim |
00:09:01 | * | nisstyre joined #nim |
00:09:07 | * | anddam joined #nim |
00:09:07 | * | casaca joined #nim |
00:09:07 | * | mronetwo joined #nim |
00:09:07 | * | oz joined #nim |
00:09:11 | * | bcksl joined #nim |
00:09:12 | * | xutaxkamay joined #nim |
00:09:12 | * | oddish joined #nim |
00:09:12 | * | tk joined #nim |
00:09:31 | * | m5zs7k joined #nim |
00:09:31 | * | SchweinDeBurg joined #nim |
00:09:31 | * | ehmry joined #nim |
00:09:31 | * | end joined #nim |
00:09:31 | * | blackbeard420 joined #nim |
00:11:59 | * | marcus joined #nim |
00:11:59 | * | strogon14 joined #nim |
00:11:59 | * | GreaseMonkey joined #nim |
00:11:59 | * | oisota joined #nim |
00:11:59 | * | ttkap joined #nim |
00:17:02 | * | acidsys joined #nim |
00:17:02 | * | tmpod joined #nim |
00:17:02 | * | noeontheend joined #nim |
00:17:02 | * | Amun-Ra joined #nim |
00:24:36 | * | ursa-major joined #nim |
00:48:29 | * | tiorock joined #nim |
00:48:29 | * | tiorock quit (Changing host) |
00:48:29 | * | tiorock joined #nim |
00:48:29 | * | rockcavera quit (Killed (platinum.libera.chat (Nickname regained by services))) |
00:48:29 | * | tiorock is now known as rockcavera |
01:08:02 | * | xet7 joined #nim |
01:36:24 | * | tiorock joined #nim |
01:36:24 | * | tiorock quit (Changing host) |
01:36:24 | * | tiorock joined #nim |
01:36:24 | * | rockcavera is now known as Guest6753 |
01:36:24 | * | tiorock is now known as rockcavera |
01:38:31 | * | tiorock joined #nim |
01:38:31 | * | tiorock quit (Changing host) |
01:38:31 | * | tiorock joined #nim |
01:38:31 | * | rockcavera is now known as Guest2048 |
01:38:32 | * | Guest2048 quit (Killed (copper.libera.chat (Nickname regained by services))) |
01:38:32 | * | tiorock is now known as rockcavera |
01:40:37 | * | Guest6753 quit (Ping timeout: 272 seconds) |
02:08:41 | * | SchweinDeBurg quit (Quit: WeeChat 4.6.0-dev) |
02:14:12 | FromDiscord | <Robyn [She/Her]> In reply to @aintea "It does help but": hopefully Nim V2 will add em |
02:14:36 | FromDiscord | <Elegantbeef> don't check your major version |
02:14:58 | FromDiscord | <Robyn [She/Her]> V3 oops |
02:16:10 | * | SchweinDeBurg joined #nim |
02:20:52 | * | mahlon joined #nim |
03:09:38 | FromDiscord | <odexine> Nim version 2, the second |
03:21:40 | * | vicfred quit (Ping timeout: 252 seconds) |
04:35:54 | * | tiorock joined #nim |
04:35:54 | * | rockcavera quit (Killed (tungsten.libera.chat (Nickname regained by services))) |
04:35:54 | * | tiorock is now known as rockcavera |
04:38:01 | * | tiorock joined #nim |
04:38:01 | * | tiorock quit (Changing host) |
04:38:01 | * | tiorock joined #nim |
04:38:01 | * | rockcavera is now known as Guest1636 |
04:38:01 | * | Guest1636 quit (Killed (platinum.libera.chat (Nickname regained by services))) |
04:38:01 | * | tiorock is now known as rockcavera |
04:57:14 | * | tiorock joined #nim |
04:57:14 | * | rockcavera is now known as Guest1239 |
04:57:14 | * | tiorock is now known as rockcavera |
04:59:16 | * | tiorock joined #nim |
04:59:16 | * | tiorock quit (Changing host) |
04:59:16 | * | tiorock joined #nim |
04:59:16 | * | rockcavera is now known as Guest2956 |
04:59:16 | * | Guest2956 quit (Killed (copper.libera.chat (Nickname regained by services))) |
04:59:16 | * | tiorock is now known as rockcavera |
05:01:23 | * | Guest1239 quit (Ping timeout: 272 seconds) |
05:30:29 | FromDiscord | <_lasse> sent a code paste, see https://play.nim-lang.org/#pasty=VoXBCfNP |
05:32:07 | FromDiscord | <Elegantbeef> Oh hello there 🙂 is `RootState` a parent of `State` procedure dispatching is static so you need to convert |
05:32:22 | FromDiscord | <Elegantbeef> Methods exist but are only dispatched on the first parameter(without the deprecated --multiMethods\:on) |
05:32:49 | FromDiscord | <_lasse> sent a code paste, see https://play.nim-lang.org/#pasty=YIIGzptF |
05:33:36 | FromDiscord | <Elegantbeef> Hmph it should've worked |
05:33:39 | FromDiscord | <Elegantbeef> Up casting can happen implicitly but down casting requires conversions |
05:35:59 | FromDiscord | <Elegantbeef> Did you by anychance do `State = ref object of RootObj` ? |
05:36:16 | FromDiscord | <_lasse> Yes |
05:36:44 | FromDiscord | <_lasse> sent a code paste, see https://play.nim-lang.org/#pasty=xPyvDRHD |
05:36:54 | FromDiscord | <Elegantbeef> You need to specify `ref` on all children otherwise you're only inheriting the value type the pointer points to |
05:37:20 | FromDiscord | <Elegantbeef> You may have missed the `ref` in my message |
05:37:44 | FromDiscord | <_lasse> Ah, yeah I have been fiddling around and the ref was there originally and I added it back now, the error did not change |
05:38:21 | * | fallback quit (Ping timeout: 276 seconds) |
05:38:23 | FromDiscord | <Elegantbeef> You need `RootState = ref object of State` otherwise you're inheriting a hidden value type |
05:39:23 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=UyLfzVai |
05:39:27 | FromDiscord | <_lasse> sent a code paste, see https://play.nim-lang.org/#pasty=LqDzYJhZ |
05:39:38 | FromDiscord | <_lasse> Still errors |
05:40:46 | FromDiscord | <Elegantbeef> Erm |
05:41:09 | FromDiscord | <Elegantbeef> Can you share `State`s definition aswell? |
05:41:28 | FromDiscord | <_lasse> sent a code paste, see https://play.nim-lang.org/#pasty=xtRdSKpf |
05:42:23 | FromDiscord | <Elegantbeef> Well given these are reference objects you don't need the `var` since I you don't want to change where they point probably |
05:42:47 | FromDiscord | <Elegantbeef> since I imagine\ |
05:43:11 | FromDiscord | <_lasse> Ah right, yeah that's true. I'm coming from C# where everything's mutable by default |
05:43:49 | FromDiscord | <Elegantbeef> Well refs carry that over a bit |
05:43:52 | FromDiscord | <Elegantbeef> You can mutate fields but just not change where they point |
05:44:34 | FromDiscord | <_lasse> Oh I removed those and it gave me a different error from elsewhere now. Thanks! |
05:44:56 | FromDiscord | <_lasse> I had another var in the FSM changeState |
05:45:13 | FromDiscord | <_lasse> (edit) "var" => "`var`" |
05:46:22 | FromDiscord | <Elegantbeef> I should note your procedures are not going to work how you imagine. They're not runtime type bound so `State().enter()` will always call `state.enter(State())` |
05:46:36 | FromDiscord | <Elegantbeef> you likely want to use `method` and mark the `state` module procedures with `{.base.}` |
05:47:06 | FromDiscord | <_lasse> Oh, thanks. I'll check that feature out. Still learning 😅 |
05:47:37 | FromDiscord | <Elegantbeef> Yea I was there 5 years ago |
05:47:57 | FromDiscord | <Elegantbeef> I also came from C# with Unity |
05:49:55 | FromDiscord | <_lasse> Yeah that's where I'm coming from too. 15 years of Unity and Unreal. Decided to learn something new |
06:05:09 | FromDiscord | <_lasse> In reply to @Elegantbeef "you likely want to": Thanks again! https://media.discordapp.net/attachments/371759389889003532/1346000426369159228/image.png?ex=67c69815&is=67c54695&hm=d0a43ecc0d02329087c3c87a3902a8836ccdb06ec5c96b985bc290d049070260& |
06:05:29 | FromDiscord | <Elegantbeef> We did it we're OOPing ourselves! |
06:07:01 | * | fallback joined #nim |
06:47:47 | * | tiorock joined #nim |
06:47:47 | * | tiorock quit (Changing host) |
06:47:47 | * | tiorock joined #nim |
06:47:47 | * | rockcavera is now known as Guest8940 |
06:47:47 | * | Guest8940 quit (Killed (iridium.libera.chat (Nickname regained by services))) |
06:47:47 | * | tiorock is now known as rockcavera |
06:49:57 | * | tiorock joined #nim |
06:49:57 | * | tiorock quit (Changing host) |
06:49:57 | * | tiorock joined #nim |
06:49:57 | * | rockcavera is now known as Guest7668 |
06:49:57 | * | tiorock is now known as rockcavera |
06:51:02 | * | fallback quit (Ping timeout: 244 seconds) |
06:52:51 | * | Guest7668 quit (Ping timeout: 252 seconds) |
07:31:10 | * | fallback joined #nim |
08:06:26 | * | derpydoo joined #nim |
08:10:38 | * | disso-peach quit (Quit: Leaving) |
08:30:30 | * | MauGal joined #nim |
09:23:58 | FromDiscord | <madonuko> In reply to @madonuko "for some reason nim_langserver": figured it out, it doesn't support `binary_name.nim.cfg` but it does support `config.nims` |
09:24:30 | FromDiscord | <madonuko> the funny https://media.discordapp.net/attachments/371759389889003532/1346050591842897981/image.png?ex=67c6c6cd&is=67c5754d&hm=1aab96411e2c10b11d4bb0971488eab48b25f52928012e216d52360a9a848a1c& |
09:27:14 | FromDiscord | <aintea> In reply to @battery.acid.bubblegum "hopefully Nim V2 will": I hope it is already in the language but I didn't discover it yet |
09:37:04 | FromDiscord | <jabuci> sent a code paste, see https://play.nim-lang.org/#pasty=icREXLGw |
09:37:48 | FromDiscord | <jabuci> sent a code paste, see https://play.nim-lang.org/#pasty=szhrSaVs |
09:38:46 | FromDiscord | <that_dude.> I'm pretty sure ord isn't designed to hardle unicode |
09:39:46 | FromDiscord | <that_dude.> `echo cast[int](char.high) # = 255` |
09:40:04 | FromDiscord | <that_dude.> (edit) "hardle" => "handle" |
09:41:10 | FromDiscord | <that_dude.> Well characters don't go above 255 which is what `'a'` creates |
09:41:34 | FromDiscord | <lainlaylie> https://nim-lang.org/docs/manual.html#lexical-analysis-character-literals |
09:41:46 | FromDiscord | <lainlaylie> > A character is not a Unicode character but a single byte. |
09:42:35 | FromDiscord | <jabuci> Thanks, that must be it. If I want to store a Unicode char, should I use a string? |
09:42:45 | FromDiscord | <lainlaylie> yes |
10:02:34 | * | beholders_eye joined #nim |
10:11:41 | Amun-Ra | lainlaylie: https://nim-lang.org/docs/unicode.html |
10:45:31 | FromDiscord | <lainlaylie> thanks? |
10:47:13 | * | tiorock joined #nim |
10:47:13 | * | tiorock quit (Changing host) |
10:47:13 | * | tiorock joined #nim |
10:47:14 | * | rockcavera is now known as Guest1618 |
10:47:14 | * | tiorock is now known as rockcavera |
10:49:17 | * | tiorock joined #nim |
10:49:17 | * | tiorock quit (Changing host) |
10:49:17 | * | tiorock joined #nim |
10:49:17 | * | rockcavera quit (Killed (platinum.libera.chat (Nickname regained by services))) |
10:49:17 | * | tiorock is now known as rockcavera |
10:50:49 | * | Guest1618 quit (Ping timeout: 252 seconds) |
11:11:17 | * | tiorock joined #nim |
11:11:17 | * | tiorock quit (Changing host) |
11:11:17 | * | tiorock joined #nim |
11:11:17 | * | rockcavera is now known as Guest2516 |
11:11:17 | * | Guest2516 quit (Killed (osmium.libera.chat (Nickname regained by services))) |
11:11:17 | * | tiorock is now known as rockcavera |
11:13:22 | * | tiorock joined #nim |
11:13:22 | * | tiorock quit (Changing host) |
11:13:22 | * | tiorock joined #nim |
11:13:22 | * | rockcavera is now known as Guest1923 |
11:13:23 | * | tiorock is now known as rockcavera |
11:16:37 | * | Guest1923 quit (Ping timeout: 248 seconds) |
11:42:43 | * | derpydoo quit (Quit: derpydoo) |
12:28:52 | * | MauGal quit (Ping timeout: 268 seconds) |
12:54:55 | * | sh4_ quit (Changing host) |
12:54:55 | * | sh4_ joined #nim |
13:08:36 | * | sh4_ is now known as sh4 |
13:34:36 | * | ntat joined #nim |
13:37:29 | * | beholders_eye quit (Ping timeout: 245 seconds) |
13:55:52 | * | scmutalisk left #nim (ERC 5.6.0.30.1 (IRC client for GNU Emacs 30.1)) |
13:58:32 | * | MauGal joined #nim |
14:26:50 | * | MauGal quit (Ping timeout: 260 seconds) |
15:01:40 | * | MauGal joined #nim |
15:08:00 | * | Guest60 joined #nim |
15:11:12 | * | Guest60 quit (Client Quit) |
15:19:10 | * | beholders_eye joined #nim |
16:47:26 | FromDiscord | <heysokam> Is anyone here somewhat acquainted with the `nim-lang/nimony` repo/project?↵Trying to understand what the benefits are of having an extra layer between gdb/lldb and nim code↵https://github.com/nim-lang/nimony/blob/master/doc/nifc-spec.md |
16:51:15 | * | def- quit (Quit: -) |
16:51:18 | FromDiscord | <nervecenter> In reply to @heysokam "Is anyone here somewhat": Best to discuss that in #internals, Araq has discussed it at length in the forums and in Github issues. |
16:52:29 | FromDiscord | <heysokam> In reply to @nervecenter "Best to discuss that": I'd rather not being called out for making genuine questions about the internals again↵I'd rather not get my question answered than touch that channel |
16:53:03 | FromDiscord | <heysokam> If you have a link to the discussions, I'd be keen to read it |
17:03:16 | FromDiscord | <nervecenter> I wasn't trying to attack you and I don't know your knowledge of the subject. My own is limited and I'm just pointing out that Araq is the driver of the project and its philosophy. I have no idea who else you could talk to or where. |
17:04:54 | FromDiscord | <nervecenter> Here's one active thread: https://forum.nim-lang.org/t/12693 |
17:07:13 | FromDiscord | <heysokam> In reply to @nervecenter "I wasn't trying to": No, sorry I explained myself wrong. It's not you↵I meant I'd rather not touch that channel, because I'd get called out for making questions, as it has happened multiple times before in there |
17:07:20 | FromDiscord | <heysokam> My bad |
17:07:52 | FromDiscord | <heysokam> As for my question, I think I found the answer: ↵> As for the debugging, all the transformations and tools keep column-precise line information and name mangling information, a debugger can be written to make good use of that. However, I expect in practice we'll just use NIFC-to-LLVM instead of NIFC-to-C and get the typical debugging experience of all the other compiled languages. |
17:15:57 | * | def- joined #nim |
17:18:52 | FromDiscord | <Robyn [She/Her]> In reply to @heysokam "Is anyone here somewhat": the extra layer is between Nim and C in general, no? But benefit is incremental recompilation and allows for cleaner separation of data and logic |
17:21:11 | FromDiscord | <heysokam> In reply to @battery.acid.bubblegum "the extra layer is": but, as that link explains, nim outputs nimc, not C... so you get an extra layer in between gdb and nim (aka nimc) |
17:21:15 | * | MauGal quit (Ping timeout: 260 seconds) |
17:21:39 | FromDiscord | <heysokam> right now there is 1 layer, and it has awful DX |
17:22:22 | FromDiscord | <Robyn [She/Her]> you mean nifc? |
17:23:01 | FromDiscord | <Robyn [She/Her]> that extra info is to help optimise Nim -> Nifc codegen output to be used for C codegen |
17:23:03 | FromDiscord | <Robyn [She/Her]> Iirc |
17:24:20 | FromDiscord | <heysokam> ah yea, mispelled. I meant `nifc` with an f |
17:27:29 | * | beholders_eye quit (Ping timeout: 245 seconds) |
17:51:02 | FromDiscord | <Robyn [She/Her]> also it means the AST can be saved to/loaded from disk much easier |
18:41:36 | * | beholders_eye joined #nim |
19:57:57 | * | ntat quit (Ping timeout: 244 seconds) |
19:58:15 | * | ntat joined #nim |
20:58:01 | * | ntat quit (Quit: Leaving) |
21:15:53 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=XMROlVJT |
21:16:48 | FromDiscord | <Elegantbeef> That should be `T: Animal` |
21:17:05 | FromDiscord | <Elegantbeef> Otherwise you can only have 1 `into` and it's not really generic |
21:18:14 | FromDiscord | <Elegantbeef> One thing is you cannot do `p.into[Animal]()` and need to do `p.into[: Animal]() so perhaps `into(p\: person, T\: typedesc[Animal])\: T\` is the way to go |
22:44:58 | * | beholders_eye quit (Ping timeout: 245 seconds) |
22:46:49 | * | beholders_eye joined #nim |