<< 31-07-2025 >>

00:09:21*zeropoint quit (Quit: leaving)
00:31:10*amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in)
00:33:02*redj quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
00:33:31*redj joined #nim
02:46:42*rockcavera quit (Remote host closed the connection)
05:55:10*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
05:56:47*SchweinDeBurg joined #nim
06:27:31*skippy8 joined #nim
06:38:26FromDiscord<blashyrk> In reply to @nieznanymagnat "If anyone has an": https://play.nim-lang.org/#pasty=buwaZVGj
06:44:43FromDiscord<blashyrk> Oh damn I completely missed @demotomohiro 's messages and basically parroted him lol
06:53:33FromDiscord<lainlaylie> calling new on a non ref object is valid and results in a ref version of the object↵the issue was that outEdge and incEdge are List, not ref List
06:53:46FromDiscord<lainlaylie> (edit) "calling new on a non ref object ... is" added "type"
06:56:57FromDiscord<nnsee> In reply to @lainlaylie "calling new on a": i didn't know this
07:29:05FromDiscord<blashyrk> sent a code paste, see https://play.nim-lang.org/#pasty=NlCkXyPw
08:20:29*nils` quit (Ping timeout: 260 seconds)
09:01:13*skippy8 quit (Quit: WeeChat 4.6.3)
09:02:13*CypherCat quit (Ping timeout: 248 seconds)
09:04:29*skippy8 joined #nim
09:15:00*beholders_eye joined #nim
10:06:39*beholders_eye quit (Ping timeout: 260 seconds)
10:22:55*CypherCat joined #nim
10:27:11*nils` joined #nim
10:49:20*amadaluzia joined #nim
10:57:06*amadaluzia quit (Ping timeout: 252 seconds)
10:58:16FromDiscord<steamhacker_1837> I want to ask something that why nim use glibc when nim use POSIX
10:58:27FromDiscord<steamhacker_1837> Nim can use gcc inline assembly
10:58:43FromDiscord<steamhacker_1837> and that means we can make our native POSIX and libnim
10:59:13FromDiscord<steamhacker_1837> but I want to ask you why nim does not develop Nim-POISX
10:59:18FromDiscord<steamhacker_1837> (edit) "Nim-POISX" => "Nim-POSIX"
11:02:48FromDiscord<0xfab_10> https://xkcd.com/927/
11:11:13FromDiscord<nnsee> In reply to @steamhacker_1837 "but I want to": because that's tremendous effort with pretty minimal gain
11:11:40FromDiscord<nnsee> but feel free to do that if you wish
11:11:53FromDiscord<nnsee> nim doesn't have to use glibc fwiw, you can also link against musl
11:13:08FromDiscord<steamhacker_1837> so you mean it has low Cost-effectiveness
11:13:14FromDiscord<steamhacker_1837> um..
11:14:07FromDiscord<steamhacker_1837> but i have to use native nim posix library↵because i want to make my whole apps with static linking
11:14:09FromDiscord<steamhacker_1837> so
11:14:12FromDiscord<steamhacker_1837> that means
11:14:14FromDiscord<steamhacker_1837> I have to
11:14:26FromDiscord<steamhacker_1837> make nim-posix
11:14:30FromDiscord<steamhacker_1837> okay
11:15:09FromDiscord<nnsee> no you don't, you can statically link using musl
11:34:58FromDiscord<steamhacker_1837> but it's C not nim
11:35:01FromDiscord<steamhacker_1837> it's not cool
11:35:32FromDiscord<nnsee> nim compiles to C
11:35:54FromDiscord<steamhacker_1837> and it's true that if we use C library, Nim eco sysctem does not grow
11:36:09FromDiscord<steamhacker_1837> In reply to @nnsee "nim compiles to C": I know
11:36:37FromDiscord<steamhacker_1837> but we have to use nim librarys to make our eco system bigger
11:38:30FromDiscord<nnsee> absolutely
12:02:19*amadaluzia joined #nim
12:05:31*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
12:06:28*ehmry joined #nim
12:40:53*CypherCat quit (Ping timeout: 248 seconds)
13:44:56*CypherCat joined #nim
14:40:16FromDiscord<aethrvmn> In reply to @nnsee "nim doesn't have to": Tbh I'd love if it used musl as a default
14:40:40FromDiscord<aethrvmn> So the binaries carry their own statically linked lib
15:23:48*skippy8 quit (Quit: WeeChat 4.6.3)
15:33:52*amadaluzia_ joined #nim
15:34:29*amadaluzia quit (Ping timeout: 240 seconds)
16:00:55*xtr00 quit (Ping timeout: 265 seconds)
16:09:18FromDiscord<leorize> there are plenty of reasons not to do so, musl is tiny compared to glibc but you pay for that in library support and performance
16:13:43*xtr00 joined #nim
16:34:49*CypherCat quit (Changing host)
16:34:49*CypherCat joined #nim
16:41:50FromDiscord<nervecenter> In reply to @leorize "there are plenty of": I link against musl and my binary is blazingly fast
16:42:33FromDiscord<nervecenter> (actually not really, most of my ops do obvious, direct translations of math formulas on dataframes, if there are any vector ops or other optimizations they're datamancer or arraymancer's doing)
16:43:09FromDiscord<nervecenter> but yeah it works great in our use case because we run servers that have a disparate smattering of glibc versions and trying to line up library compatibility was a nightmare
16:43:31FromDiscord<nervecenter> we've since containerized quite a bit but still, it's convenient to lose the hard dependency
16:46:41*skippy8 joined #nim
16:46:55FromDiscord<leorize> it's slower than glibc, but that doesn't mean it's slow slow
16:46:56FromDiscord<leorize> and ofc there were issues with DNS, but that's resolved by now
17:00:33*xet7 joined #nim
18:19:08FromDiscord<dxbear_86508> Is Nim language still relevant in 2025 and actively maintained
18:20:18*syl quit (Quit: C-x C-c)
18:22:27FromDiscord<blashyrk> In reply to @dxbear_86508 "Is Nim language still": For your first question: up to you to decide↵For your second question: yes.
18:24:15*syl joined #nim
18:25:56*nils` quit (Ping timeout: 272 seconds)
18:26:11FromDiscord<Robyn [She/Her]> In reply to @dxbear_86508 "Is Nim language still": actively maintained, yes, relevant... it's considered pretty niche, honestly
18:26:27FromDiscord<Robyn [She/Her]> only company i know actively using Nim is status-im
18:54:18*nils` joined #nim
19:00:32FromDiscord<leorize> technically nim is used at reddit too
19:02:59FromDiscord<hawkey5212> sent a long message, see https://pasty.ee/FDEzdGWy
19:08:41*amadaluzia joined #nim
19:11:00*amadaluzia_ quit (Ping timeout: 252 seconds)
19:11:39FromDiscord<blashyrk> sent a code paste, see https://play.nim-lang.org/#pasty=FzTkmcCC
19:12:36FromDiscord<hawkey5212> the mapping function itself is not the issue, I'm asking about how to map over the results as they come in async
19:13:51FromDiscord<hawkey5212> if it wasn't async, it would just be something like `let resp = closests.mapIt(kad.dispatchPutVal(it, validEntry)).mapIt(it.foo()`↵↵...but with async, things are less straight forward.
19:28:20FromDiscord<blashyrk> I assume you want to put `map` on the `it`
19:31:27FromDiscord<hawkey5212> sent a long message, see https://pasty.ee/aWuAoyGo
19:33:09FromDiscord<blashyrk> sent a long message, see https://pasty.ee/yiPraeFW
19:35:30FromDiscord<hawkey5212> that example deosn't help. I'm processing a stream of values that are the results of a bulk dispatch of io-bound functions, and I want to map them as they come in one by one.↵↵that example just provides a collection of values that arrive at the same time.
19:39:20FromDiscord<blashyrk> Sorry, then I haven't got the faintest
20:11:20*zgasma quit (Quit: Lost terminal)
20:44:36*xtr00 quit (Ping timeout: 252 seconds)
20:45:40*xtr00 joined #nim
20:51:56FromDiscord<hawkey5212> Thanks for the attempt anyway.↵↵I've kinda concluded that it's just not a feature of nim to be able to do in an ergonomic way. Oh well
21:00:58*om3ga quit (Ping timeout: 240 seconds)
21:34:02*rockcavera joined #nim
21:35:14*zgasma joined #nim
21:56:34*xutaxkamay quit (Ping timeout: 248 seconds)
22:15:28*tiorock joined #nim
22:15:28*rockcavera is now known as Guest4279
22:15:28*Guest4279 quit (Killed (silver.libera.chat (Nickname regained by services)))
22:15:28*tiorock is now known as rockcavera
22:16:09*skippy8 quit (Quit: WeeChat 4.6.3)
22:17:31*tiorock joined #nim
22:17:31*rockcavera is now known as Guest3000
22:17:31*tiorock is now known as rockcavera
22:20:29*Guest3000 quit (Ping timeout: 260 seconds)
22:40:54*oprypin quit (Quit: Bye)
22:41:05*oprypin joined #nim
22:41:18*tiorock joined #nim
22:41:18*tiorock quit (Changing host)
22:41:18*tiorock joined #nim
22:41:18*rockcavera quit (Killed (tungsten.libera.chat (Nickname regained by services)))
22:41:18*tiorock is now known as rockcavera
23:00:01*marcus quit (Remote host closed the connection)
23:00:42*marcus joined #nim