<< 20-12-2024 >>

00:45:21*beholders_eye quit (Ping timeout: 252 seconds)
01:39:23*krux02 quit (Remote host closed the connection)
03:08:42FromDiscord<shovid> sent a code paste, see https://play.nim-lang.org/#pasty=YvAKlfsc
03:14:17FromDiscord<Elegantbeef> `untyped` means it's not semantically checked
03:14:26FromDiscord<Elegantbeef> Change it to `typed` and it should expand
03:17:53FromDiscord<shovid> sadly the code would have unresolved stuff in there that I plan to manipulate in the `test` macro and by changing it to `typed` it would just throw errors
03:18:21FromDiscord<shovid> (edit) "sadly the code would have unresolved stuff in there that I plan to manipulate in the `test` macro and by changing it to `typed` it would just throw errors ... " added "like `undeclared identifier` etc"
03:18:26FromDiscord<Elegantbeef> So then this is not possible since by it's very nature you cannot have untyped and typed code
03:19:47FromDiscord<xtrayambak> Any clue why my class declared in Nim doesn't inherit its constructor from a class declared in C++? Is there something extra I need to do?
03:19:59FromDiscord<xtrayambak> I've checked the manual but nothing seems to work
03:22:56FromDiscord<Elegantbeef> You likely have to use your own proc that calls the C++ constructor inside
03:23:00FromDiscord<shovid> In reply to @Elegantbeef "So then this is": i see thanks for confirming for me. i thought it could expand with untyped stuff but what you said makes sense
03:27:12FromDiscord<xtrayambak> In reply to @Elegantbeef "You likely have to": That's fine but I need to allocate it on the heap with the `new` keyword
03:27:19FromDiscord<xtrayambak> that's another headache
03:28:03FromDiscord<Elegantbeef> Welcome to C++ interop 😄
03:28:50FromDiscord<xtrayambak> In reply to @Elegantbeef "Welcome to C++ interop": I've not blown off my foot yet, but I've certainly banged my head against the wall a few times now
03:34:08FromDiscord<xtrayambak> In reply to @Elegantbeef "Welcome to C++ interop": Anyways, do ya have any clue as to how I can call the constructor whilst allocating the class on the heap?
03:34:21FromDiscord<xtrayambak> I tried emitting the C++ code for that myself, but it falls flat on its head
03:35:19FromDiscord<Elegantbeef> Make a Nim procedure that calls the underling code
03:35:26FromDiscord<Elegantbeef> That's all I can really say I've never done C++ interop
03:35:31FromDiscord<xtrayambak> this seems to work https://media.discordapp.net/attachments/371759389889003532/1319508455488360488/ealq3tg.png?ex=67663783&is=6764e603&hm=039d451b994815a12b0bee214c53eec25d10f86c02b70dc21090528eedcaf5e8&
03:35:58FromDiscord<Elegantbeef> I'm more likely to write a C++ function that abstracts the logic to a FFI than rely on C++ interop
03:36:08FromDiscord<demotomohiro> In reply to @shovid "is it possible to": My template can do that: https://github.com/demotomohiro/littlesugar/blob/main/src/littlesugar/expandFirst.nim
03:42:51FromDiscord<demotomohiro> In reply to @xtrayambak "Any clue why my": It seems constructors are not inherited in C++: https://softwareengineering.stackexchange.com/questions/197893/why-are-constructors-not-inherited
03:46:30FromDiscord<demotomohiro> If I remember correctly, the constructor of base class is automatically called if it has no parameters. If you need to call the constructor of base class with parameters, you probably need to defien a constructor of derived class that explicitly call the constructor of base class.
03:49:04FromDiscord<demotomohiro> You might better to write the C++ class that inherit the base classs and see if it works before trying in Nim.
04:09:50*rockcavera joined #nim
04:10:20FromDiscord<grumblygibson> Yeah, you need to explicitly call the base constructor.
04:15:20FromDiscord<demotomohiro> In reply to @xtrayambak "Any clue why my": You can use constructor pragma to define C++ constructor: https://nim-lang.org/docs/manual_experimental.html#constructor-pragma
04:56:13*SchweinDeBurg quit (Quit: WeeChat 4.6.0-dev)
05:48:56*SchweinDeBurg joined #nim
06:00:53*tokyovigilante_ joined #nim
06:01:52*tokyovigilante quit (Ping timeout: 252 seconds)
06:01:53*tokyovigilante_ is now known as tokyovigilante
06:43:33*ntat joined #nim
06:49:45FromDiscord<albassort> sent a code paste, see https://play.nim-lang.org/#pasty=NsWcGgMv
06:49:48FromDiscord<albassort> does nimpy not work?
07:29:49FromDiscord<albassort> help im trying to sython and im dying
08:04:17*redj quit (Remote host closed the connection)
08:05:35*redj joined #nim
08:18:57*tokyovigilante quit (Ping timeout: 265 seconds)
08:25:59*tokyovigilante joined #nim
08:32:12FromDiscord<odexine> What
09:05:34*alexdaguy joined #nim
09:37:33*beholders_eye joined #nim
10:08:45FromDiscord<apis035> is there a way to get only syntax color without the lsp in vscode?
10:09:29FromDiscord<apis035> nim lsp giving random errors, infinite file checking, etc. is just getting is my way when writing code.
10:37:52FromDiscord<k0ts> in order to solve the problem instead of simply avoiding it, consider making an issue with reproduction steps. also #tooling
11:35:34*tiorock joined #nim
11:35:34*rockcavera is now known as Guest1200
11:35:34*Guest1200 quit (Killed (tantalum.libera.chat (Nickname regained by services)))
11:35:34*tiorock is now known as rockcavera
11:37:44*tiorock joined #nim
11:37:44*rockcavera is now known as Guest9460
11:37:44*Guest9460 quit (Killed (zinc.libera.chat (Nickname regained by services)))
11:37:44*tiorock is now known as rockcavera
11:58:13*tiorock joined #nim
11:58:13*rockcavera is now known as Guest4990
11:58:13*tiorock is now known as rockcavera
11:59:31FromDiscord<firasuke> why did the size of the latest release tarballs almost triple? (from ~ 15 MB to ~ 45 MB)?
12:00:07FromDiscord<firasuke> (edit) "why did the size of the latest ... release" added ""nightly""
12:00:15FromDiscord<firasuke> (edit) "latest" => "recent"
12:02:31*Guest4990 quit (Ping timeout: 264 seconds)
12:02:36FromDiscord<zumi.dxy> are there debug symbols left in?
12:06:54FromDiscord<firasuke> In reply to @zumi.dxy "are there debug symbols": No idea, I am trying to track the commit that did that
12:08:38FromDiscord<nnsee> the new tarball has a `dist` directory
12:09:00FromDiscord<nnsee> most of the new size comes from the zippy test data inside `dist`
12:09:08FromDiscord<nnsee> as for why it has dist... no clue
12:11:04FromDiscord<firasuke> ah ok
12:11:35FromDiscord<firasuke> - 15.2 MB: https://github.com/nim-lang/nightlies/releases/tag/2024-12-13-devel-f485973459a6cfce80497251512df13894e8fda6↵- 42.4 MB: https://github.com/nim-lang/nightlies/releases/tag/2024-12-18-devel-f80ce139d5d404720e0cb4a4a59882c1e8e7f3de
12:15:16FromDiscord<nnsee> @firasuke this? https://github.com/nim-lang/Nim/commit/70b3232d3a5fe23f1803ab8160677a2dc29aee02
12:16:04FromDiscord<nnsee> @ringabout might have more of an idea
12:16:39FromDiscord<firasuke> hmmm
12:16:46FromDiscord<firasuke> I'll open an issue to track this
12:17:12FromDiscord<nnsee> I should be clear, old tarball also had the dist directory, but without the included dependencies
12:18:45FromDiscord<nnsee> but the new one specifically has `dist/nimble/vendor` with zippy in it. the old one had `dist/nimble/dist` with just checksums and sat, and no zippy
12:19:45FromDiscord<firasuke> In reply to @firasuke "I'll open an issue": https://github.com/nim-lang/nightlies/issues/95
12:19:49FromDiscord<firasuke> In reply to @nnsee "but the new one": interesting
12:20:08FromDiscord<nnsee> ok, looks like zippy was added to nimble in this commit https://github.com/nim-lang/nimble/commit/30258d6cc0d296fc004d96ecd24c3c321ec70665
12:20:37FromDiscord<nnsee> one mammoth of a commit
12:23:05FromDiscord<firasuke> oh so it's being pulled entirely/recursively as a submodule into the tarball as part of nimble?
12:23:09FromDiscord<nnsee> indeed
12:23:27FromDiscord<firasuke> I do not think that is intended
12:23:32FromDiscord<firasuke> (edit) "is" => "was"
12:23:56*valms19901 quit (Ping timeout: 252 seconds)
12:24:49*tiorock joined #nim
12:24:50*tiorock quit (Changing host)
12:24:50*tiorock joined #nim
12:24:50*rockcavera quit (Killed (calcium.libera.chat (Nickname regained by services)))
12:24:50*tiorock is now known as rockcavera
12:25:10FromDiscord<nnsee> doesn't seem like it
12:25:28FromDiscord<firasuke> Is it ok if I referenced the commits mentioned above in the issue? Or will you hopefully do so?
12:26:10FromDiscord<nnsee> In reply to @firasuke "Is it ok if": feel free, but only the last commit seems to be relevant
12:26:16FromDiscord<nnsee> i'm currently signed out of github
12:26:57*tiorock joined #nim
12:26:57*rockcavera is now known as Guest1981
12:26:57*Guest1981 quit (Killed (copper.libera.chat (Nickname regained by services)))
12:26:57*tiorock is now known as rockcavera
12:31:25FromDiscord<buwubie> sent a code paste, see https://play.nim-lang.org/#pasty=owoANvis
12:31:46FromDiscord<buwubie> (edit) "https://play.nim-lang.org/#pasty=DKmhBxpe" => "https://play.nim-lang.org/#pasty=CTTnPCDz"
12:32:33FromDiscord<buwubie> .
12:32:35FromDiscord<buwubie> 0
12:35:20FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=pGUwgeBw
12:35:56FromDiscord<nnsee> > The `T` is called a generic type parameter or a type variable.
12:36:15FromDiscord<nnsee> (edit) "https://play.nim-lang.org/#pasty=lHzQLtUb" => "https://play.nim-lang.org/#pasty=VnSascZx"
12:36:26FromDiscord<buwubie> thank you very much
12:43:48FromDiscord<xtrayambak> Is there a way to ensure that C++ functions created with `{.emit.}` are present in the same file as where they're referenced? https://media.discordapp.net/attachments/371759389889003532/1319646432357253131/PKFCwuh.png?ex=6766b803&is=67656683&hm=e04387463a6ff0cdc543905cef25a98215aa858f14a7e5bc582272825e71e502&
12:44:15FromDiscord<xtrayambak> the definition for `getSurfacesInternal` and the code generated with `{.emit.}` are generated in different files
15:02:52*alexdaguy quit (Quit: w)
15:17:23FromDiscord<@smithlord:matrix.org> https://www.snapchat.com/add/kieron247?share_id=0GLaQHCxLzg&locale=en-US
15:19:45FromDiscord<griffith1deadly> In reply to @xtrayambak "Is there a way": why not emitting inside getSurface proc?
15:20:06FromDiscord<xtrayambak> In reply to @griffith1deadly "why not emitting inside": Oh, I just noticed
15:20:09FromDiscord<xtrayambak> thanks for finding that
15:20:21FromDiscord<xtrayambak> I just ended up doing a native Nim conversion implementation
15:25:18FromDiscord<xtrayambak> In reply to @rakgew "cool! looking forward. do": Yes, once I'm done with some basic stuff like tiling
15:25:57FromDiscord<xtrayambak> As for fancy effects like blurring, I suck at writing shaders and shady will probably be useless here since I'll have to write EGL shaders, not regular OpenGL shaders
15:43:03*tiorock joined #nim
15:43:03*tiorock quit (Changing host)
15:43:03*tiorock joined #nim
15:43:03*rockcavera quit (Killed (molybdenum.libera.chat (Nickname regained by services)))
15:43:03*tiorock is now known as rockcavera
15:45:09*rockcavera is now known as Guest8621
15:45:09*tiorock joined #nim
15:45:09*Guest8621 quit (Killed (tantalum.libera.chat (Nickname regained by services)))
15:45:09*tiorock is now known as rockcavera
15:51:19FromDiscord<saint._._.> Has there been any update on IC?
16:01:03*coldfeet joined #nim
16:06:44FromDiscord<saint._._.> So NIR is now NIF?
16:10:12*beholders_eye quit (Ping timeout: 265 seconds)
16:16:42*termer_ is now known as termer
16:17:53*coldfeet quit (Quit: leaving)
16:22:51*coldfeet joined #nim
17:10:15FromDiscord<mrgaturus> sent a code paste, see https://play.nim-lang.org/#pasty=NPoSUqfz
17:10:57FromDiscord<mrgaturus> the `child(tmp, body)` is a macro that wraps each expression to `tmp.add <expression>`
17:11:51FromDiscord<mrgaturus> In reply to @saint._._. "Has there been any": https://github.com/nim-lang/RFCs/issues/556
17:13:38FromDiscord<saint._._.> In reply to @mrgaturus "https://github.com/nim-lang/RFCs/issues/556": Nice thanks!
17:14:03FromDiscord<saint._._.> Also what's the status of atlas, last time I heard that they were deprecating it and implementing the features back into nimble
17:14:14FromDiscord<saint._._.> But reading some of the threads I am not sure if this is still happening/happened?
17:52:48*krux02 joined #nim
17:53:17*GnuYawk6 quit (Quit: The Lounge - https://thelounge.chat)
17:53:58*GnuYawk6 joined #nim
18:54:32*nils` quit (Ping timeout: 265 seconds)
19:26:32FromDiscord<nnsee> In reply to @@smithlord:matrix.org "https://www.snapchat.com/add/kieron247?share_id=0GL": <@&371760044473319454>
19:36:38*krux02 quit (Remote host closed the connection)
20:02:23*kotrcka joined #nim
20:48:44*nils` joined #nim
20:53:36*beholders_eye joined #nim
21:19:53*beholders_eye quit (Ping timeout: 244 seconds)
21:31:19*beholders_eye joined #nim
21:48:07*ntat quit (Quit: Leaving)
22:11:36*coldfeet quit (Quit: Lost terminal)
22:29:00*Guest46 joined #nim
22:29:47*Guest46 quit (Client Quit)
22:53:05*beholders_eye quit (Ping timeout: 248 seconds)
23:01:55*kotrcka quit (Remote host closed the connection)