00:10:56 | FromDiscord | <aurelian5014> does `sink` do anything with `refc`? |
00:11:57 | FromDiscord | <spotlightkid> sent a long message, see https://pasty.ee/YHMElCAP |
00:12:16 | FromDiscord | <Elegantbeef> yesn't, it partially does, but not really well↵(@aurelian5014) |
00:12:37 | FromDiscord | <spotlightkid> sent a long message, see https://pasty.ee/xMidQhOi |
00:14:10 | FromDiscord | <zumi.dxy> In reply to @Elegantbeef "Use musl and statically": unless you use threads I guess↵https://github.com/nim-lang/Nim/issues/20886 |
00:18:59 | FromDiscord | <Elegantbeef> time for `muslthreads` 😄 |
00:19:44 | FromDiscord | <Elegantbeef> I'm not suggesting it exists, just that someone could make it exist |
00:22:13 | FromDiscord | <zumi.dxy> there's a mingw flag right?↵maybe a musl flag would do... |
00:58:23 | FromDiscord | <Elegantbeef> Could also just have musl detection |
00:58:54 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=QUKZTlbI |
01:02:54 | FromDiscord | <zumi.dxy> well i can compile to musl with gcc... |
01:05:35 | FromDiscord | <Elegantbeef> You mean musl-gcc? |
06:28:51 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
07:03:48 | * | SchweinDeBurg joined #nim |
07:15:34 | Amun-Ra | and static musl build is going to make dlopen defunct |
07:37:05 | FromDiscord | <sejong> I wish the nin-pipexp package worked with std/sugar lambdas |
08:01:09 | * | ntat joined #nim |
08:06:18 | FromDiscord | <eightbit_dboy> Any resources for adding CPU targets to Nim? Like if I want to add SH-4 support, for example. |
08:13:45 | * | PMunch joined #nim |
08:14:55 | Amun-Ra | if there's supported CPU with the same data model length you can use it as a foundation for new target |
08:15:58 | Amun-Ra | the next step is to make a define, than redefine <cpuarch>.linux.gcc.exe (if crosscompiling on linux), etc. |
08:16:21 | Amun-Ra | if you'd like to add the support officially you have to check the source |
08:18:13 | Amun-Ra | if you pick method no 1, check config/nim.cfg |
08:25:56 | * | ntat quit (Remote host closed the connection) |
08:26:20 | * | ntat joined #nim |
08:33:21 | * | beholders_eye joined #nim |
08:42:11 | * | kenran joined #nim |
09:01:38 | * | beholders_eye quit (Ping timeout: 252 seconds) |
09:24:36 | * | beholders_eye joined #nim |
11:29:02 | * | kenran quit (Remote host closed the connection) |
11:41:41 | * | xet7 quit (Ping timeout: 248 seconds) |
11:54:37 | * | ryuukk quit (Remote host closed the connection) |
11:56:23 | * | ryuukk joined #nim |
12:01:10 | * | ryuukk quit (Ping timeout: 265 seconds) |
12:01:11 | * | ryuukk_ joined #nim |
13:27:11 | * | ryuukk_ quit (Remote host closed the connection) |
13:29:29 | * | ryuukk joined #nim |
14:42:50 | FromDiscord | <majortrips1763> In reply to @Elegantbeef "Use musl and statically": Not certain that is a useful option for a kernel |
14:59:55 | FromDiscord | <majortrips1763> I am also not following why anyone would need to link against musl just to make a static binary. gcc can make static binaries against glibc just fine. |
15:03:34 | FromDiscord | <sejong> whats the most common solution for backend and frontend web development respectively in Nim> |
15:03:36 | FromDiscord | <sejong> (edit) "Nim>" => "Nim?" |
15:04:44 | FromDiscord | <odexine> prologue and karax iirc |
15:04:49 | Amun-Ra | majortrips1763: not "just as fine" as musl build |
15:05:30 | FromDiscord | <majortrips1763> In reply to @Amun-Ra "<@661414156846628885>: not "just as": We comparing glibc's sizes to uclibc and musl? or we still talking about "how do make a static binary"? |
15:06:42 | Amun-Ra | when did the size come into the discussion? |
15:06:50 | FromDiscord | <majortrips1763> I should maybe be more specific .. how do I get nim to stop trying to link w/ `-ldl` ? |
15:07:28 | Amun-Ra | add -Wl,-Bstatic |
15:07:44 | FromDiscord | <majortrips1763> So, gcc can create static binaries w/out the need for musl. |
15:08:07 | Amun-Ra | depends on what stdlib function you call |
15:08:15 | Amun-Ra | some work, some do not |
15:08:46 | FromDiscord | <majortrips1763> That would be true for a whole lot of libraries... |
15:09:36 | Amun-Ra | true, but I'm comparing libc vs libc (tho, I don't remember which functions didn't work for me when in glibc) |
15:09:49 | FromDiscord | <demotomohiro> In reply to @majortrips1763 "I should maybe be": I did `switch("gcc.options.linker", "")` to remove `-ldl`. |
15:14:17 | FromDiscord | <demotomohiro> Maybe this line should be @elif not genode and os != any:↵https://github.com/nim-lang/Nim/blob/devel/config/nim.cfg#L142 |
15:15:26 | Amun-Ra | this is a part of my windows cross compile settings: https://dpaste.com/8YTUBMS62 |
15:16:27 | FromDiscord | <zumi.dxy> In reply to @sejong "whats the most common": jester is still pretty good↵nimforum is powered by jester and karax iirc |
15:16:40 | FromDiscord | <zumi.dxy> there's happyx too |
15:18:22 | FromDiscord | <sejong> Im kinda still soul searching for a FE templating system that fits like a glove |
15:18:38 | FromDiscord | <sejong> I made my own in another language that I can't stay in and I'm considering remaking it for Nim |
15:19:06 | FromDiscord | <sejong> But I'm still soul searching to see what language I want to use to hunker down for my next projects, and Nim seems cool but I need to experiment |
15:19:26 | FromDiscord | <sejong> I want to have a better idea of how production Nim usually handles exceptions and errors and how they do async and parallelism |
15:21:11 | FromDiscord | <odexine> uh |
15:21:20 | FromDiscord | <odexine> lots of people have disliked the parallelism here so far |
15:21:24 | FromDiscord | <odexine> async is a mixed bag |
15:21:35 | FromDiscord | <odexine> exceptions havent been much of an issue from what ive seen |
15:26:08 | FromDiscord | <sejong> do people usually use result types? |
15:26:20 | FromDiscord | <sejong> i prefer result/option types over try/catch |
15:26:41 | FromDiscord | <sejong> (edit) "i prefer result/option types over try/catch ... " added "or errors as values (akin to Go)(" |
15:26:43 | FromDiscord | <sejong> (edit) "Go)(" => "Go)" |
15:27:44 | FromDiscord | <odexine> its possible to use them yes |
15:27:45 | FromDiscord | <nnsee> depends entirely on your preference. Status uses result values in production |
15:27:52 | FromDiscord | <odexine> not as streamlined as exceptions but not impossible |
15:28:01 | FromDiscord | <odexine> nor even that horrible to use |
15:28:04 | FromDiscord | <odexine> god bless macros |
15:28:14 | FromDiscord | <nnsee> macros make them fairly ergonomic. Not first class support but not far off either |
15:28:52 | FromDiscord | <sejong> i try to incorporate functional programming patterns when I can but prefer a strong imperative base |
15:28:58 | FromDiscord | <sejong> Nim seems like a very good language for this so far |
15:29:13 | FromDiscord | <nnsee> https://github.com/arnetheduck/nim-results is commonly recommended |
15:30:33 | FromDiscord | <zumi.dxy> wish it supported pattern matching through things like patty and gara... |
15:30:47 | FromDiscord | <zumi.dxy> feels wrong to be using a fancy if |
15:30:57 | FromDiscord | <zumi.dxy> i've suffered enough of that in go |
15:30:59 | FromDiscord | <sejong> there are some things im not crazy about in Nim so far though which is that UFCS sounds cool on paper but it has a fatal flaw |
15:31:11 | FromDiscord | <sejong> `chaining.these.functions`↵looks like↵`record.subfield.subfield` |
15:31:16 | FromDiscord | <sejong> I really despise that |
15:31:27 | FromDiscord | <zumi.dxy> you can type the optional () if you want |
15:31:38 | FromDiscord | <zumi.dxy> i make sure to do that as much as i can |
15:31:40 | FromDiscord | <sejong> i much prefer having a true pipe operator thats distinct from record access |
15:31:52 | FromDiscord | <sejong> which is why nim-pipexp pkg looks great |
15:31:57 | FromDiscord | <sejong> but it doesnt work with std/sugar lambdas |
15:32:02 | FromDiscord | <sejong> which is kind of a massive letdown |
15:32:24 | FromDiscord | <zumi.dxy> but yeah, it's not enforced by the compiler↵and we all want things to generate more errors |
15:32:47 | FromDiscord | <sejong> Another language that I looked at a lot was julias |
15:32:48 | FromDiscord | <sejong> (edit) "julias" => "julia" |
15:32:51 | FromDiscord | <zumi.dxy> In reply to @sejong "which is kind of": sadly a catchphrase |
15:33:22 | FromDiscord | <zumi.dxy> but i'd much rather a tool that encourages me to stay humble |
15:33:52 | FromDiscord | <sejong> i dont think theres anything more ergonomic for function chaining than elixir's pipe operator but i really dont like a lot of things about elixir |
15:34:07 | FromDiscord | <zumi.dxy> In reply to @sejong "there are some things": i thought you were gonna talk about how unqualified imports are the default |
15:34:12 | FromDiscord | <sejong> its not really type safe and the post-facto type system addition was kind of too little too late and not amazing |
15:34:36 | FromDiscord | <sejong> In reply to @zumi.dxy "i thought you were": thats also an issue |
15:34:54 | FromDiscord | <zumi.dxy> like, it's not a problem in nim because it's all typed and everything |
15:35:06 | FromDiscord | <majortrips1763> In reply to @demotomohiro "I did `switch("gcc.options.linker", "")`": omg .. thanks .. this was the hint I needed. There is a stack of stuff being stuffed into all this that was hiding from me.↵↵Any idea of how I get Nim to show me the compiler and linker flags it is using w/out needing to wait for an error? |
15:35:09 | FromDiscord | <zumi.dxy> but the thing is that operators and templates exist |
15:35:36 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=wuQJZlqN |
15:35:55 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=olJWTGOT |
15:36:01 | FromDiscord | <zumi.dxy> to not have to do that |
15:36:33 | FromDiscord | <zumi.dxy> if you happen to use templates from modules you're gonna have to import whatever things the template pulls in |
15:38:03 | FromDiscord | <zumi.dxy> like everything it's a tradeoff i think↵"i want to know where everything comes from without using an IDE" vs. "i want to see algorithms without all this extra fluff" |
15:38:20 | FromDiscord | <zumi.dxy> imo nim's design leans much into the latter |
15:38:43 | FromDiscord | <zumi.dxy> you can especially see this with bitsets |
15:39:21 | FromDiscord | <zumi.dxy> don't need to do `0x1000 and 1` or whatever for checking flags |
15:40:32 | FromDiscord | <demotomohiro> In reply to @majortrips1763 "omg .. thanks ..": I run Nim with `--listcmd` option to see flags passed to c compiler and linker. I don't know easier way to get flags. |
15:41:11 | FromDiscord | <odexine> In reply to @nnsee "https://github.com/arnetheduck/nim-results is commo": id add https://github.com/codex-storage/questionable |
15:42:37 | FromDiscord | <odexine> In reply to @sejong "its not really type": the type system addition is still in progress, and i personally think its been good so far |
15:43:03 | FromDiscord | <odexine> my problem with elixir is that its not general purpose 😔 |
15:44:26 | FromDiscord | <sejong> that too |
16:08:01 | FromDiscord | <majortrips1763> sent a code paste, see https://play.nim-lang.org/#pasty=YxGZroDx |
16:43:10 | FromDiscord | <kiloneie> is there a way to tell nim-lang.org nim extension to stop pasting me field snippets for objects? it's pissing me off |
16:44:07 | FromDiscord | <kiloneie> upon pressing enter, how to disable this ? https://media.discordapp.net/attachments/371759389889003532/1295426926076231762/image.png?ex=670e9bd7&is=670d4a57&hm=12ca2bf2f934d66dd6631c288038f987a5375aff529d47f70dc74d1438f4167a& |
16:46:17 | * | beholders_eye quit (Read error: Connection reset by peer) |
16:52:05 | * | beholders_eye joined #nim |
16:57:33 | * | beholders_eye quit (Read error: Connection reset by peer) |
17:03:26 | * | beholders_eye joined #nim |
17:24:03 | * | beholders_eye quit (Read error: Connection reset by peer) |
17:29:51 | * | beholders_eye joined #nim |
17:34:16 | FromDiscord | <spotlightkid> should be a setting in your IDE. In VS code, for example, go to the extensions, filter by installed ones, click on nim-lang extension, then click on the gear symbol to open the settings. |
17:57:49 | * | beholders_eye quit (Read error: Connection reset by peer) |
18:03:20 | * | beholders_eye joined #nim |
18:07:55 | FromDiscord | <kiloneie> if i knew which setting controlled this, i tried a few, i don't know... |
18:11:06 | FromDiscord | <odexine> theyre called snippets |
18:11:10 | FromDiscord | <odexine> i dont remember how to disable them |
18:34:48 | FromDiscord | <ieltan> Disable inlays |
18:49:55 | FromDiscord | <THE F*CKING BANNED ONE> Am i potentially bannable? |
18:50:33 | FromDiscord | <michaelb.eth> In reply to @THE F*CKING BANNED ONE "Am i potentially bannable?": keep it up, and let's see what happens 😄 |
18:52:13 | FromDiscord | <THE F*CKING BANNED ONE> sent a long message, see https://pasty.ee/FURpETXO |
18:52:26 | FromDiscord | <THE F*CKING BANNED ONE> Is this a bannable offense? |
18:53:01 | FromDiscord | <THE F*CKING BANNED ONE> Have i ticked all the boxes for being ban-worthy? |
18:53:22 | FromDiscord | <michaelb.eth> bets on if we find out soon? |
18:54:53 | FromDiscord | <THE F*CKING BANNED ONE> Technically speaking i could leave the room and not get banned. So all bets are off motherfuckers lol. |
18:56:28 | FromDiscord | <nnsee> wow so edgy |
18:56:48 | FromDiscord | <nnsee> i remember being 13 too |
18:57:35 | FromDiscord | <madonuko> Oh. My. God. A middle finger. I'm so scared. |
19:05:08 | FromDiscord | <odexine> someone ban this menace for sending such an offensive message |
19:05:41 | FromDiscord | <kiloneie> just force move him to offtopic, or some sort of technical jail |
19:05:58 | FromDiscord | <fabric.input_output> insane what I'm witnessing in nim server >:( |
19:06:10 | FromDiscord | <fabric.input_output> not using nim ever again >:( |
19:06:50 | FromDiscord | <kiloneie> In reply to @ieltan "Disable inlays": Not it... i'd have to somehow disable autocomplete on object...↵↵Doesn't everyone use enter to go to newline ? I use tab to autocomplete, not enter... |
19:06:56 | FromDiscord | <kiloneie> this is very annoying |
19:07:01 | FromDiscord | <nnsee> In reply to @madonuko "Oh. My. God. A": my day is ruined |
19:09:56 | FromDiscord | <odexine> i use enter to complete |
19:10:06 | FromDiscord | <odexine> i use tab to cycle completion |
19:14:26 | FromDiscord | <kiloneie> Guess i will forever spam ESC on every type section and type def... |
19:14:48 | FromDiscord | <odexine> im not really sure why you dont like it personally |
19:16:31 | * | beholders_eye quit (Ping timeout: 252 seconds) |
19:18:43 | * | beholders_eye joined #nim |
19:18:44 | FromDiscord | <kiloneie> Because `field_name: field_type` is something i already know, and now i have to delete it and type what i want. |
19:20:53 | FromDiscord | <kiloneie> I tried using the never used insert button, it doesn't even work in vsc... |
19:29:25 | * | coldfeet joined #nim |
20:14:46 | * | ntat quit (Quit: Leaving) |
20:41:19 | * | coldfeet quit (Remote host closed the connection) |
20:49:57 | * | xet7 joined #nim |
20:58:50 | * | beholders_eye quit (Ping timeout: 252 seconds) |
21:44:11 | * | dv^_^ quit (Quit: dv^_^) |
21:44:39 | * | dv^_^ joined #nim |
22:25:28 | * | disso-peach joined #nim |
23:24:13 | * | xet7 quit (Remote host closed the connection) |