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:39 | major0 | Are 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:03 | FromDiscord | <basilajith> sent a code paste, see https://play.nim-lang.org/#pasty=oxQSQNXX |
08:17:09 | FromDiscord | <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:47 | FromDiscord | <demotomohiro> sent a long message, see https://pasty.ee/jQkwtWtf |
08:25:30 | FromDiscord | <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:38 | Amun-Ra | mind you can't change the variant once an object is created |
08:27:18 | FromDiscord | <undershell> sent a code paste, see https://play.nim-lang.org/#pasty=BznDmWro |
08:27:32 | FromDiscord | <undershell> (edit) "https://play.nim-lang.org/#pasty=juVvZsAF" => "https://play.nim-lang.org/#pasty=gjaTWLmZ" |
08:28:30 | Amun-Ra | clang? |
08:28:56 | FromDiscord | <enthus1ast.> would also try clang |
08:29:27 | Amun-Ra | I've seen these kind of errors when using clang's linker |
08:30:02 | FromDiscord | <demotomohiro> Before AI become popular, googling with error messages sometimes helped. |
08:30:10 | FromDiscord | <enthus1ast.> maybe also: "-fPIC" |
08:30:50 | FromDiscord | <enthus1ast.> nim c --passc:"-fPIC" (or passl?) |
08:31:54 | Amun-Ra | this looks like it's caused by some hardening flags |
08:33:48 | Amun-Ra | enthus1ast.: try passing "-z noexecstack" to the linker |
08:35:02 | Amun-Ra | --passl='-z noexecstack' |
08:36:46 | * | rstrz joined #nim |
08:48:49 | * | rstrz quit (Ping timeout: 244 seconds) |
09:08:41 | FromDiscord | <basilajith> In reply to @demotomohiro "https://nim-lang.org/docs/manual.html#generics-type": Would the auto type class work? |
09:09:25 | FromDiscord | <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:20 | FromDiscord | <alehander92> hey |
09:32:37 | FromDiscord | <alehander92> is nim 2.0 used in status.im these days? |
09:32:44 | FromDiscord | <alehander92> (edit) "2.0" => "2.x" |
09:33:08 | FromDiscord | <alehander92> as far as i see it and its deps are tested in CI with it |
09:33:22 | FromDiscord | <alehander92> but not sure if it's stable enough now for default usage |
09:33:31 | FromDiscord | <alehander92> (maybe @arnetheduck knows?) |
09:33:50 | PMunch | Hmm, aren't user defined pragmas exported from a module? |
09:34:02 | PMunch | Thinking 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:27 | Amun-Ra | nope |
10:30:27 | PMunch | Damn.. |
10:43:12 | * | rstrz quit (Ping timeout: 265 seconds) |
10:48:06 | FromDiscord | <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:28 | PMunch | Yeah writing a macro for that should be pretty trivial |
10:51:38 | PMunch | Good 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:28 | FromDiscord | <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:19 | FromDiscord | <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:31 | FromDiscord | <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:55 | PMunch | Is there a way to specify two `header` pragmas for a procedure? |
12:13:49 | * | rstrz quit (Ping timeout: 260 seconds) |
12:14:07 | FromDiscord | <Robyn [She/Her]> In reply to @PMunch "Is there a way": what do you mean? |
12:14:34 | FromDiscord | <Robyn [She/Her]> would emit not work instead? |
12:19:26 | Amun-Ra | usually headers are something-specific |
12:20:24 | PMunch | Well 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:53 | Amun-Ra | then emit |
12:20:54 | PMunch | If I just include `semphr.h` then it errors out saying I need to include `FreeRTOS.h` first |
12:21:06 | PMunch | But emit only works for the module I'm in |
12:21:28 | PMunch | I 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:42 | Amun-Ra | local include file? |
12:21:51 | PMunch | Hmm, I guess that'd work |
12:27:09 | * | rstrz joined #nim |
12:40:45 | FromDiscord | <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:04 | FromDiscord | <alehander92> or at least the parts that you use, that's good to hear |
12:41:23 | FromDiscord | <alehander92> another question |
12:41:38 | FromDiscord | <alehander92> do you plan on having a linter, something like `cargo clippy`? |
12:41:40 | FromDiscord | <alehander92> after nph? |
12:50:21 | * | rstrz quit (Ping timeout: 252 seconds) |
12:58:56 | FromDiscord | <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:20 | FromDiscord | <enthus1ast.> In reply to @undershell "you mean trying to": Yes think it works the same way with nimble |
13:47:44 | FromDiscord | <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:28 | FromDiscord | <TFed [Tee Fee]> sent a code paste, see https://play.nim-lang.org/#pasty=XnzoVfay |
14:07:49 | FromDiscord | <TFed [Tee Fee]> sent a code paste, see https://play.nim-lang.org/#pasty=XJDbmplx |
14:08:03 | FromDiscord | <TFed [Tee Fee]> sent a code paste, see https://play.nim-lang.org/#pasty=XFRwCDao |
14:09:28 | FromDiscord | <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:52 | FromDiscord | <TFed [Tee Fee]> it's in`strutils`, thanks |
14:11:52 | FromDiscord | <TFed [Tee Fee]> it's in `strutils`, thanks |
14:12:32 | FromDiscord | <fabric.input_output> 👍 |
14:13:50 | * | major0 quit (Quit: major0) |
14:28:01 | * | rstrz quit (Ping timeout: 248 seconds) |
14:39:48 | FromDiscord | <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:56 | FromDiscord | <pmunch> In reply to @demotomohiro "<@392962235737047041> You can include": Ah nice |
18:01:54 | FromDiscord | <pmunch> I ended up wrapping them in a proc where the original module has the emit. But this is probably better |
18:02:49 | FromDiscord | <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:21 | Amun-Ra | that'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:29 | FromDiscord | <abraham> sent a long message, see https://pasty.ee/eoEmPPwo |
19:34:30 | * | disso-peach quit (Quit: Leaving) |
19:36:37 | FromDiscord | <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:05 | FromDiscord | <Elegantbeef> You also could throw futhark at sdl's headers if you really wanted the most up to date sdl bindings |
19:50:15 | FromDiscord | <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:25 | FromDiscord | <kyepskee> Is there any alternative to genOid that's available compile-time? |
20:39:52 | FromDiscord | <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:43 | FromDiscord | <kyepskee> (edit) "https://play.nim-lang.org/#pasty=sppQqByP" => "https://play.nim-lang.org/#pasty=qNIJqjZR" |
20:41:01 | * | rockcavera joined #nim |
20:44:11 | FromDiscord | <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:03 | FromDiscord | <Elegantbeef> `-i` |
20:55:03 | FromDiscord | <Nlits (Ping on reply)> In reply to @Elegantbeef "`-i`": Thanks. Btw, does nimble check and uninstall dependencies yet? |
20:55:42 | FromDiscord | <Elegantbeef> What? |
21:20:22 | FromDiscord | <raynei486> what's the difference between `xmlparser` and `parsexml`? |
21:21:33 | FromDiscord | <raynei486> and which one to use if I want to convert lots of xml into another format |
21:34:27 | FromDiscord | <Elegantbeef> @raynei486 parsexml is the implementation that xmlparser uses |
21:40:07 | FromDiscord | <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:33 | FromDiscord | <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:39 | FromDiscord | <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:26 | FromDiscord | <zumi.dxy> In reply to @bubblie "is camelCase more used": It is the convention, yes: https://nim-lang.org/docs/nep1.html |