00:17:59 | * | CO2 quit (Quit: WeeChat 4.1.1) |
00:44:56 | * | lucasta quit (Quit: Leaving) |
01:03:09 | FromDiscord | <takemichihanagaki3129> Is it possible to use Tables for return anonymous functions?↵Example: `Table[string, proc]` |
01:05:01 | FromDiscord | <takemichihanagaki3129> sent a code paste, see https://play.nim-lang.org/#ix=4KWV |
01:05:09 | FromDiscord | <takemichihanagaki3129> (edit) "https://play.nim-lang.org/#ix=4KWV" => "https://play.nim-lang.org/#ix=4KWW" |
01:05:21 | FromDiscord | <takemichihanagaki3129> (edit) "https://play.nim-lang.org/#ix=4KWW" => "https://play.nim-lang.org/#ix=4KWX" |
01:16:34 | FromDiscord | <Elegantbeef> if they're all the same type yes |
01:16:34 | FromDiscord | <Elegantbeef> it'd be `Table[string, proc()]` |
01:16:34 | FromDiscord | <Elegantbeef> `.toTable` |
01:16:35 | FromDiscord | <Elegantbeef> No reason to use `string` or table |
01:16:39 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4KWY |
01:21:59 | FromDiscord | <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:16 | FromDiscord | <takemichihanagaki3129> In reply to @Elegantbeef "it'd be `Table[string, proc()]`": Sure! |
01:22:28 | FromDiscord | <Elegantbeef> `parseEnum` |
01:22:55 | FromDiscord | <takemichihanagaki3129> In reply to @Elegantbeef "`parseEnum`": Hmmmm, thanks again! |
02:01:44 | NimEventer | New thread by icedquinn: Abusing generic methods for variant types, see https://forum.nim-lang.org/t/10614 |
02:43:16 | FromDiscord | <taperfade> In reply to @pmunch "https://www.geeksforgeeks.org/du-command-linux-exam": im not a geek |
02:43:17 | FromDiscord | <taperfade> i use |
02:43:18 | FromDiscord | <taperfade> windwos |
02:43:20 | FromDiscord | <taperfade> 11 |
02:52:41 | FromDiscord | <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:01 | FromDiscord | <Elegantbeef> Tux killed my entire family!↵(@michaelb.eth) |
03:16:55 | FromDiscord | <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:57 | NimEventer | New 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:47 | FromDiscord | <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:28 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#ix=4KY0 |
08:43:19 | FromDiscord | <arathanis> In reply to @nnsee "this is literally only": we javascript now? |
08:43:32 | FromDiscord | <arathanis> does leftpad exist yet? that's how we know we've made it |
08:44:36 | FromDiscord | <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:14 | FromDiscord | <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:22 | FromDiscord | <Elegantbeef> I think it's more likely someone new, but who knows |
08:58:08 | FromDiscord | <nnsee> that's likely too, yes |
08:58:14 | FromDiscord | <nnsee> i'm just paranoid :p |
09:02:43 | FromDiscord | <nnsee> https://github.com/nim-lang/packages/pull/2747/commits/700a9068b13b27b743a3889d23a7357fc44f837b argh, the indentation here bothers me |
09:25:02 | PMunch | Does this feature have to be enabled manually? https://nim-lang.org/docs/manual_experimental.html#topminusdown-type-inference |
09:26:18 | FromDiscord | <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:13 | FromDiscord | <gyatsoyt> sent a code paste, see https://paste.rs/8wzzJ |
13:04:32 | FromDiscord | <odexine> Not enough information |
13:34:55 | FromDiscord | <nnsee> In reply to @PMunch "Does this feature have": love that url... top minus down type inference |
13:44:14 | PMunch | What is it with people and sending textual information as images.. |
13:50:25 | FromDiscord | <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:33 | Amun-Ra | esp. if the image url is split to several lines |
13:59:58 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4KZn |
14:10:34 | FromDiscord | <odexine> a missing `[]` for arrays is suspicious so i dont think its a matter of import |
14:23:29 | PMunch | That 1..6 range though is a bit unnatural, is this by any chance a custom type? |
14:23:38 | FromDiscord | <nnsee> yeah that seemed odd to me too |
14:23:48 | FromDiscord | <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:55 | FromDiscord | <_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:58 | FromDiscord | <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:49 | FromDiscord | <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:22 | FromDiscord | <gyatsoyt> In reply to @nnsee "but it's impossible to": https://srcb.in/QctJPyiPwv↵↵Here's the rest of the code^^^ |
15:49:07 | arkanoid | not sure if you've already been talking about this, but wow: https://ferrous-systems.com/blog/officially-qualified-ferrocene/ |
15:55:33 | termer | Does anyone have a guess at how long it'll be until we actually get incremental compilation |
15:55:54 | termer | I've been following the NIR thing and I'm not clear on the relationship between IC and NIR |
15:58:33 | arkanoid | termer: "when it's done". There is no ETA |
15:58:49 | termer | sasuga |
15:59:01 | termer | Araq... I kneel |
15:59:52 | termer | I've heard horror stories about the compiler code but I haven't actually gone into it, is it really that bad |
16:00:14 | termer | The standard library is pretty clean, but I don't know how representative that is of the compiler |
16:11:26 | FromDiscord | <jmgomez> No, it isnt that bad |
16:13:57 | FromDiscord | <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:23 | FromDiscord | <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:19 | FromDiscord | <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:19 | FromDiscord | <adrian> https://github.com/jaredmontoya/chatgptclient/tree/nim2.0compatibility |
16:26:17 | FromDiscord | <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:48 | FromDiscord | <adrian> the code from main branch compiles with nim 1.6.14 |
16:29:44 | FromDiscord | <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:57 | FromDiscord | <xtrayambak> In reply to @nnsee "this is literally only": good lord |
17:02:04 | FromDiscord | <xtrayambak> we've gotten into javascript territory |
17:02:12 | FromDiscord | <xtrayambak> that should be a github gist or smt |
17:02:14 | FromDiscord | <xtrayambak> not a package |
17:03:10 | FromDiscord | <xtrayambak> sent a long message, see http://ix.io/4L0c |
17:03:52 | FromDiscord | <odexine> "semi"? |
17:03:58 | FromDiscord | <xtrayambak> In reply to @termer "Does anyone have a": we won't have fast lsp stuff till we get IC :( |
17:04:14 | FromDiscord | <xtrayambak> sent a code paste, see https://play.nim-lang.org/#ix=4L0d |
17:04:16 | FromDiscord | <xtrayambak> if I'm not wrong that still works |
17:04:22 | FromDiscord | <xtrayambak> unless you enable safety checks |
17:04:43 | FromDiscord | <odexine> "works"? |
17:04:56 | FromDiscord | <xtrayambak> sent a code paste, see https://play.nim-lang.org/#ix=4L0f |
17:05:09 | FromDiscord | <xtrayambak> In reply to @odexine ""works"?": works = segfaults |
17:05:18 | FromDiscord | <odexine> doesnt seem to segfault when i tried it |
17:05:24 | FromDiscord | <xtrayambak> ah |
17:05:28 | FromDiscord | <xtrayambak> did it compile? |
17:05:39 | FromDiscord | <xtrayambak> also, I was browsing the std/os and found "uwu owo" in one of the examples |
17:05:40 | FromDiscord | <xtrayambak> 💀 |
17:05:44 | FromDiscord | <odexine> compiles |
17:05:44 | FromDiscord | <odexine> runs |
17:05:46 | FromDiscord | <odexine> no problems |
17:05:55 | FromDiscord | <odexine> nim 2.0.0 |
17:06:34 | FromDiscord | <odexine> sent a code paste, see https://play.nim-lang.org/#ix=4L0g |
17:06:44 | FromDiscord | <xtrayambak> In reply to @odexine "no problems": weird |
17:06:47 | FromDiscord | <xtrayambak> compiled and ran for me too |
17:06:51 | FromDiscord | <xtrayambak> in Nim 1.6 it'd segfault |
17:07:05 | FromDiscord | <odexine> tried 1.6.14 nope no segfault |
17:07:10 | FromDiscord | <xtrayambak> what |
17:07:14 | FromDiscord | <xtrayambak> I guess I'm schizophrenic now |
17:07:20 | FromDiscord | <xtrayambak> I gotta go sleep |
17:07:20 | FromDiscord | <xtrayambak> cya |
17:07:36 | FromDiscord | <odexine> okay |
17:07:48 | FromDiscord | <odexine> for when you wake up, 1.4 and 1.2 work with it as well |
17:34:53 | FromDiscord | <megabytesofrem> I got somewhat inspired by nims syntax a bit with regards to my toy language |
17:49:18 | termer | it's basically just python |
18:06:32 | FromDiscord | <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:52 | FromDiscord | <odexine> nice |
18:28:08 | FromDiscord | <.aingel.> https://cdn.discordapp.com/attachments/991450167041605662/1067994340787503125/YayFren.gif |
18:28:19 | FromDiscord | <odexine> nim embed disabled moment |
18:28:24 | FromDiscord | <.aingel.> In reply to @odexine "nim embed disabled moment": Haha |
18:28:37 | FromDiscord | <.aingel.> Do embeds only work for some users? |
18:28:47 | FromDiscord | <.aingel.> Oh I guess he's a moderator |
18:28:50 | FromDiscord | <odexine> only if theyre not links |
18:28:55 | FromDiscord | <odexine> and if theyre mods yeah |
18:29:09 | FromDiscord | <.aingel.> In reply to @odexine "only if theyre not": I thought screenshot embeds worked at some point |
18:29:23 | Amun-Ra | I wish I could be there, have fun guys |
18:56:54 | * | neceve joined #nim |
19:01:20 | FromDiscord | <Phil> In reply to @pietroppeter "Me and <@454991120028663809> meeting": Sweet!↵Cool to see you guys!↵Also nice stache! |
19:02:46 | FromDiscord | <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:19 | FromDiscord | <Phil> Pretty sure you can post files you upload yourself, links etc. just don't get resolved. |
19:11:27 | FromDiscord | <Phil> (edit) "yourself," => "yourself btw," |
19:12:03 | FromDiscord | <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:17 | FromDiscord | <pietroppeter> In reply to @isofruit "Are you guys moving": yes it is an organization. it has been planned for quite some time |
19:48:08 | FromDiscord | <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:41 | FromDiscord | <pietroppeter> this is what we were able to do today (very little): https://github.com/pietroppeter/nimib/discussions/221 |
19:59:08 | FromDiscord | <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:10 | FromDiscord | <.aingel.> What do you mean by converting @user2m ? |
20:03:22 | NimEventer | New thread by isaiah: Is jester now working well with nim version 2, see https://forum.nim-lang.org/t/10615 |
20:03:59 | FromDiscord | <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:57 | FromDiscord | <.aingel.> Intel mac? |
20:13:46 | FromDiscord | <.aingel.> Ubuntu usually is good if you just want things to work easily I guess |
20:13:54 | FromDiscord | <.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:15 | FromDiscord | <ieltan> In reply to @user2m "random question I'm converting": Fedora is great |
22:12:00 | FromDiscord | <ieltan> And there's no "distro that everyone use" because everyone use different distros |
22:13:15 | FromDiscord | <.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:32 | FromDiscord | <.aingel.> At least that's how I read it |
22:14:28 | FromDiscord | <.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:06 | FromDiscord | <.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:01 | FromDiscord | <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:58 | FromDiscord | <.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 |