<< 19-09-2024 >>

00:22:04*SchweinDeBurg joined #nim
00:51:11*disso-peach joined #nim
01:08:32*beholders_eye quit (Ping timeout: 265 seconds)
01:39:39major0Are there any provisions for testing interactive programs?
01:52:39*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
01:56:39*rstrz quit (Ping timeout: 260 seconds)
02:22:27*rstrz joined #nim
02:27:00*rstrz quit (Ping timeout: 246 seconds)
02:57:28*rstrz joined #nim
03:10:24*rstrz quit (Ping timeout: 246 seconds)
03:24:41*rstrz joined #nim
03:24:51*rockcavera quit (Remote host closed the connection)
03:29:44*rstrz quit (Ping timeout: 252 seconds)
03:36:19*rstrz joined #nim
03:48:39*rstrz quit (Ping timeout: 260 seconds)
03:53:50*SchweinDeBurg joined #nim
04:15:29*rstrz joined #nim
04:27:18*ntat joined #nim
04:45:15*rstrz quit (Ping timeout: 252 seconds)
05:13:53*rstrz joined #nim
05:19:33*rstrz quit (Ping timeout: 246 seconds)
05:33:14*rstrz joined #nim
06:16:33*rstrz quit (Ping timeout: 252 seconds)
06:38:50*rstrz joined #nim
06:43:19*rstrz quit (Ping timeout: 252 seconds)
06:56:27*rstrz joined #nim
07:13:19*rstrz quit (Ping timeout: 245 seconds)
07:22:56*xet7 joined #nim
07:28:08*rstrz joined #nim
07:35:35*redj quit (Quit: No Ping reply in 180 seconds.)
07:36:09*rstrz quit (Ping timeout: 260 seconds)
07:37:04*redj joined #nim
07:49:55*rstrz joined #nim
08:04:45*rstrz quit (Ping timeout: 246 seconds)
08:08:28*rstrz joined #nim
08:15:31*mfg joined #nim
08:17:03FromDiscord<basilajith> sent a code paste, see https://play.nim-lang.org/#pasty=oxQSQNXX
08:17:09FromDiscord<basilajith> (edit) "https://play.nim-lang.org/#pasty=QWKEwYoy" => "https://play.nim-lang.org/#pasty=cgYZLJPd"
08:22:20*rstrz quit (Ping timeout: 255 seconds)
08:24:47FromDiscord<demotomohiro> sent a long message, see https://pasty.ee/jQkwtWtf
08:25:30FromDiscord<demotomohiro> In reply to @basilajith "How can do a": Use object variants:↵https://nim-lang.org/docs/manual.html#types-object-variants
08:26:01*mfg quit (Quit: Reconnecting)
08:26:16*mfg joined #nim
08:26:38Amun-Ramind you can't change the variant once an object is created
08:27:18FromDiscord<undershell> sent a code paste, see https://play.nim-lang.org/#pasty=BznDmWro
08:27:32FromDiscord<undershell> (edit) "https://play.nim-lang.org/#pasty=juVvZsAF" => "https://play.nim-lang.org/#pasty=gjaTWLmZ"
08:28:30Amun-Raclang?
08:28:56FromDiscord<enthus1ast.> would also try clang
08:29:27Amun-RaI've seen these kind of errors when using clang's linker
08:30:02FromDiscord<demotomohiro> Before AI become popular, googling with error messages sometimes helped.
08:30:10FromDiscord<enthus1ast.> maybe also: "-fPIC"
08:30:50FromDiscord<enthus1ast.> nim c --passc:"-fPIC" (or passl?)
08:31:54Amun-Rathis looks like it's caused by some hardening flags
08:33:48Amun-Raenthus1ast.: try passing "-z noexecstack" to the linker
08:35:02Amun-Ra--passl='-z noexecstack'
08:36:46*rstrz joined #nim
08:48:49*rstrz quit (Ping timeout: 244 seconds)
09:08:41FromDiscord<basilajith> In reply to @demotomohiro "https://nim-lang.org/docs/manual.html#generics-type": Would the auto type class work?
09:09:25FromDiscord<Elegantbeef> https://github.com/alaviss/union nope there is no builtin union
09:15:02*rstrz joined #nim
09:26:24*rstrz quit (Ping timeout: 260 seconds)
09:27:45*coldfeet joined #nim
09:29:20FromDiscord<alehander92> hey
09:32:37FromDiscord<alehander92> is nim 2.0 used in status.im these days?
09:32:44FromDiscord<alehander92> (edit) "2.0" => "2.x"
09:33:08FromDiscord<alehander92> as far as i see it and its deps are tested in CI with it
09:33:22FromDiscord<alehander92> but not sure if it's stable enough now for default usage
09:33:31FromDiscord<alehander92> (maybe @arnetheduck knows?)
09:33:50PMunchHmm, aren't user defined pragmas exported from a module?
09:34:02PMunchThinking of these: https://nim-lang.org/docs/manual.html#userminusdefined-pragmas-pragma-pragma
09:39:28*rstrz joined #nim
09:52:55*rstrz quit (Ping timeout: 264 seconds)
10:02:51*beholders_eye joined #nim
10:04:54*xutaxkamay quit (Ping timeout: 260 seconds)
10:05:58*xutaxkamay joined #nim
10:19:00*rstrz joined #nim
10:19:27Amun-Ranope
10:30:27PMunchDamn..
10:43:12*rstrz quit (Ping timeout: 265 seconds)
10:48:06FromDiscord<tauruuuuuus> In reply to @PMunch "Thinking of these: https://nim-lang.org/docs/manual": That's the thing that got me into macros actually lol
10:51:28PMunchYeah writing a macro for that should be pretty trivial
10:51:38PMunchGood first introduction I guess :P
10:55:50*rstrz joined #nim
11:01:05*rstrz quit (Ping timeout: 265 seconds)
11:08:18*lucasta joined #nim
11:14:01*rstrz joined #nim
11:37:21*rstrz quit (Ping timeout: 248 seconds)
11:40:28FromDiscord<undershell> In reply to @enthus1ast. "would also try clang": you mean trying to compile it like this `nimble build --cc:clang` ?
11:42:45*rstrz joined #nim
11:56:54*rstrz quit (Ping timeout: 244 seconds)
12:00:19FromDiscord<arnetheduck> In reply to @alehander92 "(maybe <@449019668296892420> knows?)": we use it with `--mm:refc`, where it's better than 1.6.x typically - arc/orc is not stable in 2.0
12:00:31FromDiscord<arnetheduck> (edit) "In reply to @alehander92 "(maybe <@449019668296892420> knows?)": we use it with `--mm:refc`, where it's better than 1.6.x typically - arc/orc is not stable in 2.0 ... " added "for our usage"
12:08:48*rstrz joined #nim
12:11:55PMunchIs there a way to specify two `header` pragmas for a procedure?
12:13:49*rstrz quit (Ping timeout: 260 seconds)
12:14:07FromDiscord<Robyn [She/Her]> In reply to @PMunch "Is there a way": what do you mean?
12:14:34FromDiscord<Robyn [She/Her]> would emit not work instead?
12:19:26Amun-Rausually headers are something-specific
12:20:24PMunchWell the problem I have is that you need to do `#include "FreeRTOS.h"` and then `#include "semphr.h"` to import the semaphore module for FreeRTOS
12:20:53Amun-Rathen emit
12:20:54PMunchIf I just include `semphr.h` then it errors out saying I need to include `FreeRTOS.h` first
12:21:06PMunchBut emit only works for the module I'm in
12:21:28PMunchI want to wrap this in a nice Nim module that I can just import normally and don't have to worry about emits
12:21:42Amun-Ralocal include file?
12:21:51PMunchHmm, I guess that'd work
12:27:09*rstrz joined #nim
12:40:45FromDiscord<alehander92> In reply to @arnetheduck "we use 2.0.8 with": interesting, so i assume all of your deps are now also stable under `--mm:refc` 2.0.8
12:41:04FromDiscord<alehander92> or at least the parts that you use, that's good to hear
12:41:23FromDiscord<alehander92> another question
12:41:38FromDiscord<alehander92> do you plan on having a linter, something like `cargo clippy`?
12:41:40FromDiscord<alehander92> after nph?
12:50:21*rstrz quit (Ping timeout: 252 seconds)
12:58:56FromDiscord<arnetheduck> In reply to @alehander92 "do you plan on": would be nice but we don't have bandwidth to develop one
13:17:27*rstrz joined #nim
13:47:20FromDiscord<enthus1ast.> In reply to @undershell "you mean trying to": Yes think it works the same way with nimble
13:47:44FromDiscord<enthus1ast.> At least for the nim binary --cc is correct
13:50:04*beholders_eye quit (Ping timeout: 260 seconds)
13:52:04*beholders_eye joined #nim
13:58:54*coldfeet quit (Remote host closed the connection)
14:07:28FromDiscord<TFed [Tee Fee]> sent a code paste, see https://play.nim-lang.org/#pasty=XnzoVfay
14:07:49FromDiscord<TFed [Tee Fee]> sent a code paste, see https://play.nim-lang.org/#pasty=XJDbmplx
14:08:03FromDiscord<TFed [Tee Fee]> sent a code paste, see https://play.nim-lang.org/#pasty=XFRwCDao
14:09:28FromDiscord<fabric.input_output> In reply to @TFed "How can i join": that but you have to import `strutils` or `sequtils` before, the `join` function is in one of those
14:11:52FromDiscord<TFed [Tee Fee]> it's in`strutils`, thanks
14:11:52FromDiscord<TFed [Tee Fee]> it's in `strutils`, thanks
14:12:32FromDiscord<fabric.input_output> 👍
14:13:50*major0 quit (Quit: major0)
14:28:01*rstrz quit (Ping timeout: 248 seconds)
14:39:48FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=jdyKBBPX
14:51:17*rstrz joined #nim
16:10:33*mfg quit (Ping timeout: 246 seconds)
16:20:53*krux02 joined #nim
16:52:33*SchweinDeBurg quit (Ping timeout: 246 seconds)
16:54:34*beholders_eye quit (Ping timeout: 252 seconds)
16:55:52*SchweinDeBurg joined #nim
16:56:27*beholders_eye joined #nim
17:14:14*beholders_eye quit (Ping timeout: 265 seconds)
17:18:01*beholders_eye joined #nim
17:22:43*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
18:00:56FromDiscord<pmunch> In reply to @demotomohiro "<@392962235737047041> You can include": Ah nice
18:01:54FromDiscord<pmunch> I ended up wrapping them in a proc where the original module has the emit. But this is probably better
18:02:49FromDiscord<Jad1> Hey guys 👋
18:13:46*beholders_eye quit (Ping timeout: 252 seconds)
18:21:20*krux02 quit (Remote host closed the connection)
18:21:33*krux02 joined #nim
18:38:56*rstrz quit (Ping timeout: 272 seconds)
18:40:21Amun-Rathat's ugly as
18:46:20*PMunch quit (Quit: Leaving)
18:47:47*rstrz joined #nim
19:02:29*rstrz quit (Ping timeout: 265 seconds)
19:04:39*rstrz joined #nim
19:28:29FromDiscord<abraham> sent a long message, see https://pasty.ee/eoEmPPwo
19:34:30*disso-peach quit (Quit: Leaving)
19:36:37FromDiscord<zidsal> Pretty sure people have done ue integration with Nim but if you want a sdl2ish experience there is a wrapper for raylib↵↵https://github.com/planetis-m/naylib
19:46:29*jjido joined #nim
19:49:05FromDiscord<Elegantbeef> You also could throw futhark at sdl's headers if you really wanted the most up to date sdl bindings
19:50:15FromDiscord<abraham> I might give that a try, too. I'm interested in getting a grasp on FFI beyond just the potential applications for SDL2. If I use futhark then I can kill 2 birds with one stone.
20:08:30*ntat quit (Quit: Leaving)
20:39:25FromDiscord<kyepskee> Is there any alternative to genOid that's available compile-time?
20:39:52FromDiscord<kyepskee> I need it for creating a template that caches the result of a computation to a file after the first execution. Code here: https://play.nim-lang.org/#pasty=sppQqByP
20:40:43FromDiscord<kyepskee> (edit) "https://play.nim-lang.org/#pasty=sppQqByP" => "https://play.nim-lang.org/#pasty=qNIJqjZR"
20:41:01*rockcavera joined #nim
20:44:11FromDiscord<Nlits (Ping on reply)> Nimble uninstall keeps on saying the package i am currently working on depends on the package i am trying to uninstall, even though it doesn't. How do i force it to uninstall/make it realize the deps changed
20:52:03FromDiscord<Elegantbeef> `-i`
20:55:03FromDiscord<Nlits (Ping on reply)> In reply to @Elegantbeef "`-i`": Thanks. Btw, does nimble check and uninstall dependencies yet?
20:55:42FromDiscord<Elegantbeef> What?
21:20:22FromDiscord<raynei486> what's the difference between `xmlparser` and `parsexml`?
21:21:33FromDiscord<raynei486> and which one to use if I want to convert lots of xml into another format
21:34:27FromDiscord<Elegantbeef> @raynei486 parsexml is the implementation that xmlparser uses
21:40:07FromDiscord<Nlits (Ping on reply)> In reply to @Elegantbeef "What?": If package X depended on package Y uninstalling X would uninstall Y if nothing else depended on Y
21:46:47*rockcavera quit (Ping timeout: 252 seconds)
21:47:18*beholders_eye joined #nim
21:50:20*rockcavera joined #nim
22:41:25*beholders_eye quit (Ping timeout: 252 seconds)
22:51:42*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
22:52:33FromDiscord<bubblie> is camelCase more used in nim projects than other cases? I just want to double check
23:09:09*rstrz quit (Ping timeout: 246 seconds)
23:09:45*tiorock joined #nim
23:09:45*tiorock quit (Changing host)
23:09:45*tiorock joined #nim
23:09:45*rockcavera quit (Killed (lead.libera.chat (Nickname regained by services)))
23:09:45*tiorock is now known as rockcavera
23:11:50*tiorock joined #nim
23:11:50*rockcavera is now known as Guest2163
23:11:50*tiorock is now known as rockcavera
23:14:47*Guest2163 quit (Ping timeout: 265 seconds)
23:28:39FromDiscord<nervecenter> In reply to @bubblie "is camelCase more used": In my experience yes. Most projects seem to use camel case and 2-space indents. I would know because I go against the grain, I use snake case and 4-space tabs.
23:37:03*rstrz joined #nim
23:46:26FromDiscord<zumi.dxy> In reply to @bubblie "is camelCase more used": It is the convention, yes: https://nim-lang.org/docs/nep1.html