<< 08-11-2023 >>

00:17:59*CO2 quit (Quit: WeeChat 4.1.1)
00:44:56*lucasta quit (Quit: Leaving)
01:03:09FromDiscord<takemichihanagaki3129> Is it possible to use Tables for return anonymous functions?↵Example: `Table[string, proc]`
01:05:01FromDiscord<takemichihanagaki3129> sent a code paste, see https://play.nim-lang.org/#ix=4KWV
01:05:09FromDiscord<takemichihanagaki3129> (edit) "https://play.nim-lang.org/#ix=4KWV" => "https://play.nim-lang.org/#ix=4KWW"
01:05:21FromDiscord<takemichihanagaki3129> (edit) "https://play.nim-lang.org/#ix=4KWW" => "https://play.nim-lang.org/#ix=4KWX"
01:16:34FromDiscord<Elegantbeef> if they're all the same type yes
01:16:34FromDiscord<Elegantbeef> it'd be `Table[string, proc()]`
01:16:34FromDiscord<Elegantbeef> `.toTable`
01:16:35FromDiscord<Elegantbeef> No reason to use `string` or table
01:16:39FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4KWY
01:21:59FromDiscord<takemichihanagaki3129> In reply to @Elegantbeef "No reason to use": In my case, I need the string...↵Since I'll look for it from the user input.
01:22:16FromDiscord<takemichihanagaki3129> In reply to @Elegantbeef "it'd be `Table[string, proc()]`": Sure!
01:22:28FromDiscord<Elegantbeef> `parseEnum`
01:22:55FromDiscord<takemichihanagaki3129> In reply to @Elegantbeef "`parseEnum`": Hmmmm, thanks again!
02:01:44NimEventerNew thread by icedquinn: Abusing generic methods for variant types, see https://forum.nim-lang.org/t/10614
02:43:16FromDiscord<taperfade> In reply to @pmunch "https://www.geeksforgeeks.org/du-command-linux-exam": im not a geek
02:43:17FromDiscord<taperfade> i use
02:43:18FromDiscord<taperfade> windwos
02:43:20FromDiscord<taperfade> 11
02:52:41FromDiscord<michaelb.eth> In reply to @taperfade "windwos": never hurts to learn a bit of Linux; maybe try WSL2 in Windows 11
03:07:13*edr quit (Quit: Leaving)
03:13:01FromDiscord<Elegantbeef> Tux killed my entire family!↵(@michaelb.eth)
03:16:55FromDiscord<michaelb.eth> it would have been shocking enough if Beastie committed such an atrocity, but Tux??
03:19:09*xet7 joined #nim
04:41:32*Amun-Ra quit (Server closed connection)
04:41:56*Amun-Ra joined #nim
06:59:57NimEventerNew Nimble package! paint - Colorize strings in a simple and clean way, see https://github.com/pNeal0/paint
07:21:21*PMunch joined #nim
08:37:47FromDiscord<nnsee> In reply to @NimEventer "New Nimble package! paint": i guess the "Tiny libraries should be avoided where possible" in the nim-lang/packages readme means nothing
08:38:28FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#ix=4KY0
08:43:19FromDiscord<arathanis> In reply to @nnsee "this is literally only": we javascript now?
08:43:32FromDiscord<arathanis> does leftpad exist yet? that's how we know we've made it
08:44:36FromDiscord<Chronos [She/Her]> In reply to @nnsee "this is literally only": Also I'm pretty sure that won't work in the command prompt on Windows lol, and it doesn't detect if the user is in true colour mode
08:55:14FromDiscord<nnsee> the _only_ contributions that person has on their github is this package and the PR for the nimble packages. Now maybe I'm being overly paranoid and this is all legit, but that, combined with the fact that it's such a simple package with a very - how to say - "good" name, makes me wonder whether this is a set up for a potential supply chain attack
08:56:22FromDiscord<Elegantbeef> I think it's more likely someone new, but who knows
08:58:08FromDiscord<nnsee> that's likely too, yes
08:58:14FromDiscord<nnsee> i'm just paranoid :p
09:02:43FromDiscord<nnsee> https://github.com/nim-lang/packages/pull/2747/commits/700a9068b13b27b743a3889d23a7357fc44f837b argh, the indentation here bothers me
09:25:02PMunchDoes this feature have to be enabled manually? https://nim-lang.org/docs/manual_experimental.html#topminusdown-type-inference
09:26:18FromDiscord<Elegantbeef> Nope
09:46:42*redj quit (Remote host closed the connection)
09:49:06*redj joined #nim
12:11:52*adium quit (Server closed connection)
12:12:56*adium joined #nim
12:27:11*edr joined #nim
12:59:27*jmdaemon quit (Ping timeout: 240 seconds)
13:02:13FromDiscord<gyatsoyt> sent a code paste, see https://paste.rs/8wzzJ
13:04:32FromDiscord<odexine> Not enough information
13:34:55FromDiscord<nnsee> In reply to @PMunch "Does this feature have": love that url... top minus down type inference
13:44:14PMunchWhat is it with people and sending textual information as images..
13:50:25FromDiscord<demotomohiro> If you send text as image, it drastically increase data size.↵People cannot copy the text. So hard to test code on local machine.
13:54:33Amun-Raesp. if the image url is split to several lines
13:59:58FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4KZn
14:10:34FromDiscord<odexine> a missing `[]` for arrays is suspicious so i dont think its a matter of import
14:23:29PMunchThat 1..6 range though is a bit unnatural, is this by any chance a custom type?
14:23:38FromDiscord<nnsee> yeah that seemed odd to me too
14:23:48FromDiscord<nnsee> but it's impossible to tell without the rest of the code
14:52:42*Onionhammer quit (Server closed connection)
14:52:57*Onionhammer joined #nim
14:53:55FromDiscord<_m4d_h4tt3r> Hi all. Is there any resource to learn algorithms and data structures with Nim?
15:03:29*PMunch quit (Quit: Leaving)
15:07:58FromDiscord<arnetheduck> we're using mdbook when writing documentation for a number of our projects - if like us, you'd like to see built-in nim support, add some thumbs up here: https://github.com/rust-lang/mdBook/pull/2232
15:10:49FromDiscord<arnetheduck> (this avoids the manual "theme" step otherwise needed to get syntax highlighting, as done here: https://github.com/status-im/nim-style-guide/pull/19)
15:16:22FromDiscord<gyatsoyt> In reply to @nnsee "but it's impossible to": https://srcb.in/QctJPyiPwv↵↵Here's the rest of the code^^^
15:49:07arkanoidnot sure if you've already been talking about this, but wow: https://ferrous-systems.com/blog/officially-qualified-ferrocene/
15:55:33termerDoes anyone have a guess at how long it'll be until we actually get incremental compilation
15:55:54termerI've been following the NIR thing and I'm not clear on the relationship between IC and NIR
15:58:33arkanoidtermer: "when it's done". There is no ETA
15:58:49termersasuga
15:59:01termerAraq... I kneel
15:59:52termerI've heard horror stories about the compiler code but I haven't actually gone into it, is it really that bad
16:00:14termerThe standard library is pretty clean, but I don't know how representative that is of the compiler
16:11:26FromDiscord<jmgomez> No, it isnt that bad
16:13:57FromDiscord<adrian> is there anyone who knows how to use https://github.com/simonkrauter/NiGui with threadpool after Nim 2.0.0? Nim 2.0.0 is more memory safe but that also means that we can't just use threadpool threads to move blocking code away from the gui(main) thread so now ui just freezes while something like an api request is being done.
16:15:23FromDiscord<adrian> I guess it's mostly because NiGui library is poorly designed when it comes to multithreading but it is still an awesome way to make a quick gui app that uses "native" ui toolkits and is cross platform.
16:21:19FromDiscord<michaelb.eth> > but that also means that we can't just use threadpool threads to move blocking code away from the gui(main) thread↵wdym?
16:25:19FromDiscord<adrian> https://github.com/jaredmontoya/chatgptclient/tree/nim2.0compatibility
16:26:17FromDiscord<adrian> try compiling this app's source code from this branch. it will give Base method 'enabled=' requires explicit '{.gcsafe.}' to be GC-safe
16:26:48FromDiscord<adrian> the code from main branch compiles with nim 1.6.14
16:29:44FromDiscord<adrian> if you know to fix this issue you can open a pull request
16:40:30*LuxuryMode quit (Quit: Connection closed for inactivity)
17:01:57FromDiscord<xtrayambak> In reply to @nnsee "this is literally only": good lord
17:02:04FromDiscord<xtrayambak> we've gotten into javascript territory
17:02:12FromDiscord<xtrayambak> that should be a github gist or smt
17:02:14FromDiscord<xtrayambak> not a package
17:03:10FromDiscord<xtrayambak> sent a long message, see http://ix.io/4L0c
17:03:52FromDiscord<odexine> "semi"?
17:03:58FromDiscord<xtrayambak> In reply to @termer "Does anyone have a": we won't have fast lsp stuff till we get IC :(
17:04:14FromDiscord<xtrayambak> sent a code paste, see https://play.nim-lang.org/#ix=4L0d
17:04:16FromDiscord<xtrayambak> if I'm not wrong that still works
17:04:22FromDiscord<xtrayambak> unless you enable safety checks
17:04:43FromDiscord<odexine> "works"?
17:04:56FromDiscord<xtrayambak> sent a code paste, see https://play.nim-lang.org/#ix=4L0f
17:05:09FromDiscord<xtrayambak> In reply to @odexine ""works"?": works = segfaults
17:05:18FromDiscord<odexine> doesnt seem to segfault when i tried it
17:05:24FromDiscord<xtrayambak> ah
17:05:28FromDiscord<xtrayambak> did it compile?
17:05:39FromDiscord<xtrayambak> also, I was browsing the std/os and found "uwu owo" in one of the examples
17:05:40FromDiscord<xtrayambak> 💀
17:05:44FromDiscord<odexine> compiles
17:05:44FromDiscord<odexine> runs
17:05:46FromDiscord<odexine> no problems
17:05:55FromDiscord<odexine> nim 2.0.0
17:06:34FromDiscord<odexine> sent a code paste, see https://play.nim-lang.org/#ix=4L0g
17:06:44FromDiscord<xtrayambak> In reply to @odexine "no problems": weird
17:06:47FromDiscord<xtrayambak> compiled and ran for me too
17:06:51FromDiscord<xtrayambak> in Nim 1.6 it'd segfault
17:07:05FromDiscord<odexine> tried 1.6.14 nope no segfault
17:07:10FromDiscord<xtrayambak> what
17:07:14FromDiscord<xtrayambak> I guess I'm schizophrenic now
17:07:20FromDiscord<xtrayambak> I gotta go sleep
17:07:20FromDiscord<xtrayambak> cya
17:07:36FromDiscord<odexine> okay
17:07:48FromDiscord<odexine> for when you wake up, 1.4 and 1.2 work with it as well
17:34:53FromDiscord<megabytesofrem> I got somewhat inspired by nims syntax a bit with regards to my toy language
17:49:18termerit's basically just python
18:06:32FromDiscord<pietroppeter> Me and @hugogranstrom meeting IRL and doing some move of nimib repos to nimib-land. Tomorrow we are at PyCon Sweden together if anyone is around and wants to say high 🇸🇪🐳🥳 https://media.discordapp.net/attachments/371759389889003532/1171873402622058537/IMG_0839.jpg?ex=655e4327&is=654bce27&hm=e993fad2c9acfe1b9433b9758caffb5bd1fee22122c16e81c67126e023bf0426&
18:15:21*oz quit (Server closed connection)
18:15:36*ox joined #nim
18:27:52FromDiscord<odexine> nice
18:28:08FromDiscord<.aingel.> https://cdn.discordapp.com/attachments/991450167041605662/1067994340787503125/YayFren.gif
18:28:19FromDiscord<odexine> nim embed disabled moment
18:28:24FromDiscord<.aingel.> In reply to @odexine "nim embed disabled moment": Haha
18:28:37FromDiscord<.aingel.> Do embeds only work for some users?
18:28:47FromDiscord<.aingel.> Oh I guess he's a moderator
18:28:50FromDiscord<odexine> only if theyre not links
18:28:55FromDiscord<odexine> and if theyre mods yeah
18:29:09FromDiscord<.aingel.> In reply to @odexine "only if theyre not": I thought screenshot embeds worked at some point
18:29:23Amun-RaI wish I could be there, have fun guys
18:56:54*neceve joined #nim
19:01:20FromDiscord<Phil> In reply to @pietroppeter "Me and <@454991120028663809> meeting": Sweet!↵Cool to see you guys!↵Also nice stache!
19:02:46FromDiscord<Phil> In reply to @pietroppeter "Me and <@454991120028663809> meeting": Are you guys moving the nimib repos to an org? Or what do you mean by nimib -land?
19:11:19FromDiscord<Phil> Pretty sure you can post files you upload yourself, links etc. just don't get resolved.
19:11:27FromDiscord<Phil> (edit) "yourself," => "yourself btw,"
19:12:03FromDiscord<Phil> I mean I can't test that here at this point, but I mean sz posts plenty of stuff which I assume are not embeds but copy pasted images she uploads via the discord client
19:30:39*jmdaemon joined #nim
19:43:17FromDiscord<pietroppeter> In reply to @isofruit "Are you guys moving": yes it is an organization. it has been planned for quite some time
19:48:08FromDiscord<pietroppeter> I think in April is the first time we talked publicly about this move to nimib-land: https://github.com/pietroppeter/nimib/discussions/200
19:48:41FromDiscord<pietroppeter> this is what we were able to do today (very little): https://github.com/pietroppeter/nimib/discussions/221
19:59:08FromDiscord<user2m> random question I'm converting a mac to linux I know there are a fe linux users here so I was wondering what distro is everyone using?
20:02:10FromDiscord<.aingel.> What do you mean by converting @user2m ?
20:03:22NimEventerNew thread by isaiah: Is jester now working well with nim version 2, see https://forum.nim-lang.org/t/10615
20:03:59FromDiscord<user2m> In reply to @.aingel. "What do you mean": I'm uninstalling mac os on a mac machine and looking to install a new linux os - leaning towards ubuntu atm
20:09:55*neceve quit (Ping timeout: 255 seconds)
20:10:39*neceve joined #nim
20:12:57FromDiscord<.aingel.> Intel mac?
20:13:46FromDiscord<.aingel.> Ubuntu usually is good if you just want things to work easily I guess
20:13:54FromDiscord<.aingel.> Lots of support for it
20:26:19*jmdaemon quit (Ping timeout: 264 seconds)
20:37:48*neceve quit (Read error: Connection reset by peer)
20:42:17*neceve joined #nim
20:47:59*tk quit (Remote host closed the connection)
20:48:07*tk joined #nim
21:13:03*jmdaemon joined #nim
22:11:14*LuxuryMode joined #nim
22:11:15FromDiscord<ieltan> In reply to @user2m "random question I'm converting": Fedora is great
22:12:00FromDiscord<ieltan> And there's no "distro that everyone use" because everyone use different distros
22:13:15FromDiscord<.aingel.> In reply to @ieltan "And there's no "distro": I think they just meant as in like what is each person here using, rather than implying we're all using the same distro 😸
22:13:32FromDiscord<.aingel.> At least that's how I read it
22:14:28FromDiscord<.aingel.> Yeah I hear fedora is good too, I feel weary to switch out of ubuntu just cause I feel like if something goes wrong there is more support for it
22:16:06FromDiscord<.aingel.> Oh yeah, for example I was building this project rn, and it has a script called "setup-linux.sh" or something like that and in the script it's literally hardcoded to check for ubuntu 20
22:33:01FromDiscord<nasuray> In reply to @user2m "random question I'm converting": I use arch on a thinkpad but have been playing around with NixOs on my VPS and in a VM. Once I finish grad school I'll probably transition my main machine to NixOs too.
22:37:56*lucasta joined #nim
23:17:07*neceve quit (Ping timeout: 255 seconds)
23:31:58FromDiscord<.aingel.> In reply to @nasuray "I use arch on": Yeah I'm pretty curious about nixOS too! How are you liking it?
23:54:05*jmdaemon quit (Read error: Connection reset by peer)
23:54:50*jmdaemon joined #nim