00:23:36 | * | hyiltiz quit (Ping timeout: 260 seconds) |
00:27:08 | * | hyiltiz joined #nim |
00:27:08 | * | hyiltiz quit (Changing host) |
00:27:08 | * | hyiltiz joined #nim |
00:32:37 | * | johnnynitwits quit (Ping timeout: 265 seconds) |
00:45:56 | * | Guest66296 quit (Quit: Guest66296) |
00:46:17 | * | Guest66296 joined #nim |
00:54:01 | * | Tlangir joined #nim |
00:56:32 | * | nphg1 joined #nim |
00:58:46 | * | nphg quit (Ping timeout: 272 seconds) |
01:07:26 | * | PMunch quit (Ping timeout: 240 seconds) |
01:16:45 | * | theelous3 quit (Read error: Connection reset by peer) |
01:21:29 | * | PMunch joined #nim |
01:46:05 | * | Guest66296 quit (Quit: Guest66296) |
01:46:22 | * | Guest66296 joined #nim |
02:36:35 | ForumUpdaterBot | New post on r/nim by thprogramador: GUI toolkit for use with Nim, see https://reddit.com/r/nim/comments/nlxnru/gui_toolkit_for_use_with_nim/ |
02:41:09 | * | wasted_youth2 joined #nim |
02:43:45 | * | wasted_youth2 left #nim (#nim) |
02:44:04 | * | sagax quit (Ping timeout: 252 seconds) |
02:50:29 | * | zopsi quit (*.net *.split) |
02:50:42 | * | zopsi joined #nim |
02:53:16 | * | Adeon quit (Ping timeout: 265 seconds) |
02:54:16 | * | Adeon joined #nim |
03:13:52 | * | Q-Master quit (Quit: No Ping reply in 180 seconds.) |
03:14:59 | * | Q-Master joined #nim |
03:24:59 | * | spiderstew_ quit (Ping timeout: 245 seconds) |
03:26:59 | * | spiderstew joined #nim |
03:46:09 | * | Guest66296 quit (Quit: Guest66296) |
03:46:26 | * | Guest66296 joined #nim |
04:11:18 | * | rockcavera quit (Remote host closed the connection) |
04:15:48 | * | Tlangir quit (Remote host closed the connection) |
04:40:27 | * | narimiran joined #nim |
05:30:32 | * | johnnynitwits joined #nim |
05:35:41 | * | Adeon left #nim (#nim) |
05:45:02 | FromGitter | <gogolxdong> Hint: used config file 'C:\Nim\config\nim.cfg' [Conf] ⏎ Hint: used config file 'C:\Nim\config\config.nims' [Conf] ⏎ Hint: used config file 'C:\lingX\config.nims' [Conf] ⏎ .fatal.nim(53) sysFatal ⏎ Error: unhandled exception: over- or underflow [OverflowDefect] [https://gitter.im/nim-lang/Nim?at=60af31de45c2185a5ef14c40] |
05:46:14 | * | Guest66296 quit (Quit: Guest66296) |
05:47:36 | * | Guest66296 joined #nim |
06:44:46 | * | aeverr quit (Ping timeout: 240 seconds) |
06:45:01 | * | aeverr joined #nim |
06:47:24 | * | Guest66296 quit (Quit: Guest66296) |
06:47:44 | * | Guest66296 joined #nim |
06:59:22 | * | Vladar joined #nim |
07:17:27 | * | Guest66296 quit (Ping timeout: 250 seconds) |
07:22:26 | * | aeverr quit (Ping timeout: 240 seconds) |
07:47:47 | * | Guest66296 joined #nim |
07:54:03 | * | haxscramper joined #nim |
07:58:20 | haxscramper | irc logs test |
08:27:41 | * | sz0 joined #nim |
08:46:59 | ForumUpdaterBot | New thread by Mantielero: Libraries: geometry - 3d - coord systems , see https://forum.nim-lang.org/t/8046 |
08:47:33 | * | Guest66296 quit (Quit: Guest66296) |
08:48:21 | * | Guest66296 joined #nim |
08:54:53 | * | tane_ joined #nim |
09:04:32 | * | xet7 quit (Quit: Leaving) |
09:04:53 | * | xet7 joined #nim |
09:05:49 | * | theelous3 joined #nim |
09:37:48 | * | Arrrrrrrr joined #nim |
09:44:32 | * | FromDiscord joined #nim |
09:44:44 | FromDiscord | <ilmanzo> now I manually downloaded the binary release .. but I don't get where is the issue |
09:45:09 | * | arkurious joined #nim |
09:45:34 | FromDiscord | <ilmanzo> (edit) "now I manually downloaded the ... binary" added "1.4.8 nim" |
09:46:13 | FromDiscord | <dom96> The issue is with choosenim, you can give this one a try and see if it works https://github.com/dom96/choosenim/releases/tag/v0.5.0 |
09:46:48 | Oddmonger | what, nim 1.4.8 is here ? |
09:47:09 | Oddmonger | i had just updated to 1.4.6 |
09:47:51 | FromDiscord | <ilmanzo> sent a long message, see http://ix.io/3o0z |
09:48:06 | * | Guest66296 quit (Quit: Guest66296) |
09:48:50 | * | Guest66296 joined #nim |
09:49:33 | FromDiscord | <dom96> cool, can you report this in choosenim's issue tracker together with info about your system? (Linux distro, version, anything else that might help us reproduce this issue) |
09:50:33 | FromDiscord | <ilmanzo> In reply to @dom96 "cool, can you report": sure, but honestly I don't know how to reproduce it ... On another system I had no issue |
09:50:43 | FromDiscord | <ElegantBeef> The nim 1.4.8 update was mostly due to dealing with the antivirus situation |
09:53:01 | Oddmonger | ah , just for changing signature for antivirus ^^' |
09:54:14 | narimiran | that's not the only change |
10:19:38 | * | aeverr joined #nim |
10:29:45 | * | sz0 quit (Quit: Connection closed for inactivity) |
10:32:36 | FromDiscord | <mlokis> https://github.com/jakubDoka/netbuff i finished it |
10:33:51 | FromDiscord | <mlokis> Need to add a subtitle but its High level safe data buffering. |
10:39:29 | ForumUpdaterBot | New thread by Arnetheduck: FutureVar in async, see https://forum.nim-lang.org/t/8047 |
11:19:05 | * | rockcavera joined #nim |
11:34:52 | * | Guest66296 quit (Quit: Guest66296) |
11:35:11 | * | Guest66296 joined #nim |
11:35:35 | ForumUpdaterBot | New thread by Jasonfi: How to respond to an OPTIONS request?, see https://forum.nim-lang.org/t/8048 |
11:39:42 | * | lritter joined #nim |
11:52:14 | FromDiscord | <kraptor> Hi, noob here maybe someone can explain... What's the difference between case B and C? Why D works? May we get a warning on using {.union.} on ref objects directly or is this a bug? https://play.nim-lang.org/#ix=3o0Z |
11:53:43 | FromDiscord | <kraptor> Sorry, proper link here: https://play.nim-lang.org/#ix=3o12 |
11:53:55 | FromDiscord | <kraptor> I'm not sure what I'm doing wrong |
11:58:11 | PMunch | Hmm, yeah I guess {.union.} can't be applied to ref object |
11:58:46 | PMunch | By putting it late you're saying that it's a `ref` to an `object {.union.}`, similar to what case C does I'd imagine |
11:59:47 | FromDiscord | <kraptor> yeah, in that case I get a warning, that this form of using pragmas is deprecated |
12:03:02 | PMunch | Yeah it is, and has been for a while |
12:03:28 | PMunch | Might be a bug that {.union.} for ref objects doesn't work, it should at least throw an error. Have you checked the GitHub issues? |
12:03:46 | FromDiscord | <kraptor> I only found my own report: https://github.com/nim-lang/Nim/issues/14307 |
12:11:38 | ForumUpdaterBot | New thread by Brunomerod: Problem installing nimble via ./koch on linux, see https://forum.nim-lang.org/t/8049 |
12:26:38 | * | theelous3 quit (Read error: Connection reset by peer) |
12:34:57 | * | Guest66296 quit (Quit: Guest66296) |
12:35:16 | * | Guest66296 joined #nim |
12:50:21 | * | EastByte quit (Ping timeout: 245 seconds) |
12:50:43 | * | EastByte joined #nim |
13:14:03 | * | blackbea- joined #nim |
13:14:31 | * | blackbeard420 quit (Ping timeout: 245 seconds) |
13:18:24 | * | blackbea- is now known as blackbeard420 |
13:27:52 | * | superbia joined #nim |
13:31:50 | * | superbia quit (Client Quit) |
13:35:02 | * | Guest66296 quit (Quit: Guest66296) |
13:35:16 | * | Guest66296 joined #nim |
13:35:48 | ForumUpdaterBot | New thread by Bung: How to handle concurrent requests when my chronos based web framework with chronos based mysql lib, see https://forum.nim-lang.org/t/8050 |
13:36:27 | * | Arrrrrrrr quit (Quit: Arrrrrrrr) |
13:39:47 | * | D_ quit (Ping timeout: 258 seconds) |
13:40:45 | * | D_ joined #nim |
14:15:59 | FromDiscord | <ajusa> I wrote a simple print based test runner if anyone is interested: https://github.com/ajusa/susta↵I'll add it to nimble once there is more documentation in the README, but I'd appreciate any feedback! |
14:17:07 | * | rockcavera quit (Remote host closed the connection) |
14:19:32 | ForumUpdaterBot | New Nimble package! netbuff - Fast and unsafe byte buffering for intensive network data transfer., see https://github.com/jakubDoka/netbuff |
14:25:12 | * | abm joined #nim |
14:40:33 | FromDiscord | <alehander42> hey |
14:40:42 | FromDiscord | <alehander42> can we have functions in `if` |
14:41:46 | FromDiscord | <alehander42> sent a code paste, see https://play.nim-lang.org/#ix=3o1J |
14:41:53 | FromDiscord | <alehander42> and in javascript backend this generates `if (b) { } .. ` |
14:42:09 | FromDiscord | <alehander42> so it just doesn't seem to generate the code |
14:42:26 | FromDiscord | <alehander42> function definitions in `if` |
14:48:00 | FromDiscord | <alehander42> it generates it but it doesn't seem to assign it |
14:48:23 | FromDiscord | <alehander42> i am using an older version of nim though (and hello after long time) |
14:50:00 | FromDiscord | <haxscramper> !eval let a = (if 1 == 1: (proc = echo "123") else: nil); a() |
14:50:05 | NimBot | 123 |
14:50:35 | FromDiscord | <alehander42> huh |
14:50:56 | FromDiscord | <haxscramper> It works on C, so JS backend missing this functionality is probably a bug |
14:51:12 | FromDiscord | <alehander42> maybe DCE |
14:51:18 | FromDiscord | <alehander42> (edit) "DCE" => "dce" |
14:51:36 | FromDiscord | <alehander42> dead code elimination |
14:51:40 | FromDiscord | <alehander42> but probably missing |
14:52:14 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3o1M |
14:52:28 | FromDiscord | <haxscramper> But it does generate empty `if(true)` for me as well on `1.4.6` |
14:52:42 | FromDiscord | <alehander42> yes! |
15:15:24 | * | NimBot joined #nim |
15:25:44 | FromDiscord | <Airbus5717> bruh is that nim? |
15:31:09 | * | Dreamer3 joined #nim |
15:32:11 | Prestige | I think that's js? haha |
15:33:34 | * | DannyHpy[m] quit (*.net *.split) |
15:33:34 | * | bfgcoding[m] quit (*.net *.split) |
15:33:34 | * | altarrel quit (*.net *.split) |
15:33:34 | * | lnxw37d4 quit (*.net *.split) |
15:33:35 | * | screamapiller[m] quit (*.net *.split) |
15:33:35 | * | Gambit[m] quit (*.net *.split) |
15:33:35 | * | gemath[m] quit (*.net *.split) |
15:34:38 | FromDiscord | <haxscramper> This is JS code generated from `let a = (if 1 == 1: (proc = echo "123") else: nil); a()` |
15:34:55 | * | DannyHpy[m] joined #nim |
15:34:55 | * | altarrel joined #nim |
15:34:55 | * | bfgcoding[m] joined #nim |
15:34:55 | * | lnxw37d4 joined #nim |
15:34:55 | * | screamapiller[m] joined #nim |
15:34:55 | * | Gambit[m] joined #nim |
15:34:55 | * | gemath[m] joined #nim |
15:35:06 | * | Guest66296 quit (Quit: Guest66296) |
15:35:24 | * | Guest66296 joined #nim |
15:37:52 | * | screamapiller[m] quit (Ping timeout: 245 seconds) |
15:38:19 | * | CodeBitCookie[m] quit (Ping timeout: 245 seconds) |
15:38:40 | FromDiscord | <willyboar> In reply to @ajusa "I wrote a simple": Susta in greek is synonymous with spring, coil |
15:38:41 | * | customer[m] quit (Ping timeout: 245 seconds) |
15:38:41 | * | Guest007[m]1 quit (Ping timeout: 245 seconds) |
15:38:43 | * | Avahe[m] quit (Ping timeout: 246 seconds) |
15:38:43 | * | Zoom[m] quit (Ping timeout: 246 seconds) |
15:38:43 | * | Benjamin[m]1 quit (Ping timeout: 246 seconds) |
15:39:00 | * | cheer[m] quit (Ping timeout: 258 seconds) |
15:39:00 | * | zuckerberg[m] quit (Ping timeout: 258 seconds) |
15:39:04 | * | Avatarfighter[m] quit (Ping timeout: 246 seconds) |
15:39:04 | * | Hasnep[m] quit (Ping timeout: 246 seconds) |
15:39:05 | * | dithpri[m] quit (Ping timeout: 246 seconds) |
15:39:07 | * | fbpyr[m] quit (Ping timeout: 245 seconds) |
15:39:07 | * | stisa quit (Ping timeout: 245 seconds) |
15:39:08 | * | DannyHpy[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | bfgcoding[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | altarrel quit (Ping timeout: 245 seconds) |
15:39:09 | * | ee7[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | Edoardo[m]1 quit (Ping timeout: 245 seconds) |
15:39:09 | * | wanr[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | bluemax[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | reversem3 quit (Ping timeout: 245 seconds) |
15:39:09 | * | npham[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | Gambit[m] quit (Ping timeout: 245 seconds) |
15:39:09 | * | gemath[m] quit (Ping timeout: 245 seconds) |
15:39:35 | FromDiscord | <exelotl> that sounds pretty sus :amogus: |
15:41:37 | * | lnxw37d4 quit (Ping timeout: 245 seconds) |
15:42:17 | * | cadmium[m] quit (Ping timeout: 250 seconds) |
15:42:27 | * | BitPuffin quit (Ping timeout: 258 seconds) |
15:42:27 | * | goblinslayer[m] quit (Ping timeout: 258 seconds) |
15:42:29 | * | MTRNord quit (Ping timeout: 245 seconds) |
15:42:34 | * | vegai1 quit (Ping timeout: 246 seconds) |
15:42:50 | * | leorize[m] quit (Ping timeout: 258 seconds) |
15:42:51 | * | jfondren[m] quit (Ping timeout: 245 seconds) |
15:44:27 | * | Clonkk[m] quit (Ping timeout: 268 seconds) |
15:48:56 | * | theelous3 joined #nim |
15:50:55 | FromGitter | <kaushalmodi> In Hindi/Gujarati, susta/sustu is "cheap" |
15:54:04 | FromDiscord | <Anuke> I know nimsuggest is known to be a memory hog but this is getting ridiculous https://media.discordapp.net/attachments/371759389889003532/847502927765307422/2021-05-27_11-51-51.png |
15:54:46 | FromDiscord | <Anuke> 25gb+ of RAM taken up by nimsuggest processes |
15:54:48 | FromDiscord | <ElegantBeef> Not nimsuggests fault |
15:55:05 | FromDiscord | <ElegantBeef> If a project isnt properly setup an instance is spawned per file 😄 |
15:55:18 | FromDiscord | <ElegantBeef> Atleast with the vscode extension |
15:58:30 | FromDiscord | <ElegantBeef> You can also set the path for the project if needed using the settings |
15:59:17 | FromDiscord | <Anuke> Does that affect suggestion quality? |
15:59:46 | FromDiscord | <lamersc.com> In reply to @Anuke "Does that affect suggestion": It effects your poor computer |
15:59:47 | FromDiscord | <ElegantBeef> It shouldnt, it just means a single instance like intended |
16:00:15 | FromDiscord | <Anuke> In reply to @ElegantBeef "If a project isnt": I opened maybe 10 different files at most since opening VS code, so that still seems unreasonable |
16:00:18 | FromDiscord | <ElegantBeef> The same static analysis is going on, just in fewer instances |
16:00:35 | FromDiscord | <ElegantBeef> Which nim extension are you using? |
16:00:43 | FromDiscord | <Anuke> saem/vscode-nim |
16:01:08 | FromDiscord | <Anuke> (edit) "saem/vscode-nim ... " added "(v0.1.21)" |
16:01:19 | FromDiscord | <ElegantBeef> Ah then yea that one allows you to specify project paths and has proper dispatching, as long as you have a "proper" project |
16:01:44 | FromDiscord | <Anuke> Does the project path have to include every file you're using, or only the entry point? |
16:01:54 | FromDiscord | <ElegantBeef> Should only be entry point |
16:02:26 | FromDiscord | <ElegantBeef> If you have multiple entry points, specify them all |
16:02:57 | FromDiscord | <ElegantBeef> https://github.com/saem/vscode-nim#using |
16:04:43 | FromDiscord | <Anuke> I see, will try that and see if it reduces the memory usage, thanks |
16:05:13 | FromDiscord | <ElegantBeef> Yea, especially since iirc you like many source files at root, the extension must've had many issues |
16:06:58 | * | narimiran quit (Ping timeout: 272 seconds) |
16:10:33 | * | Edoardo[m]1 joined #nim |
16:10:38 | * | zuckerberg[m] joined #nim |
16:10:38 | * | wanr[m] joined #nim |
16:10:38 | * | bluemax[m] joined #nim |
16:10:39 | * | ee7[m] joined #nim |
16:10:40 | * | npham[m] joined #nim |
16:10:41 | * | cheer[m] joined #nim |
16:10:43 | * | reversem3 joined #nim |
16:11:04 | * | CodeBitCookie[m] joined #nim |
16:11:51 | * | Hasnep[m] joined #nim |
16:11:52 | * | dithpri[m] joined #nim |
16:11:53 | * | Benjamin[m]1 joined #nim |
16:11:55 | * | Avatarfighter[m] joined #nim |
16:12:22 | * | Zoom[m] joined #nim |
16:13:00 | * | Avahe[m] joined #nim |
16:17:37 | * | willyboar joined #nim |
16:20:51 | * | uvegbot quit (Ping timeout: 260 seconds) |
16:21:16 | * | narimiran joined #nim |
16:22:02 | * | reversem3 quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | wanr[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | cheer[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | Edoardo[m]1 quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | bluemax[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | npham[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | CodeBitCookie[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | ee7[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | zuckerberg[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | Avatarfighter[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | Zoom[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | Benjamin[m]1 quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | Avahe[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | Hasnep[m] quit (Quit: Bridge terminating on SIGTERM) |
16:22:02 | * | dithpri[m] quit (Quit: Bridge terminating on SIGTERM) |
16:23:47 | FromDiscord | <willyboar> matrix and irc bridge seems to collapsed |
16:28:45 | * | tane_ quit (Quit: Leaving) |
16:29:53 | * | Guest007[m] joined #nim |
16:32:44 | haxscramper | test |
16:34:21 | FromDiscord | <ajusa> In reply to @kaushalmodi "In Hindi/Gujarati, susta/sustu is": Yep, that's what I was going for! The idea being that this is a cheap way to write tests 😄 |
16:35:11 | * | Guest66296 quit (Quit: Guest66296) |
16:35:32 | * | Guest66296 joined #nim |
16:37:11 | FromDiscord | <willyboar> but it can be flexible like a spring |
16:37:15 | FromDiscord | <willyboar> 😛 |
16:37:53 | * | rockcavera joined #nim |
16:38:25 | FromDiscord | <ajusa> Yeah, print based testing is honestly really nice and flexible. I'll make sure to include both translations in the readme :nim1: |
16:39:02 | FromDiscord | <willyboar> susta/σούστα(ελατήριο) |
16:43:55 | * | j-james[m] joined #nim |
16:45:04 | FromDiscord | <garett> Good morning friends of Nim |
16:45:18 | FromDiscord | <ElegantBeef> Dont call me friend, pal! |
16:45:42 | FromDiscord | <garett> I wanted to do some Sym comparison in a macro, and I came up with a technique that works |
16:46:01 | FromDiscord | <ElegantBeef> `yourSym.eqIdent("name")` |
16:46:04 | FromDiscord | <garett> sent a code paste, see https://play.nim-lang.org/#ix=3o2l |
16:46:18 | FromDiscord | <garett> Beef, you're just checking whether they have the same Ident |
16:46:23 | FromDiscord | <garett> that is not symbol equality |
16:46:34 | FromDiscord | <ElegantBeef> Well of course, i'm not your friend afterall 😄 |
16:46:48 | FromDiscord | <garett> sent a code paste, see https://play.nim-lang.org/#ix=3o2m |
16:47:24 | FromDiscord | <garett> This comparison lets me check whether ty[0] is the same symbol as the symbol for the type `Texture` |
16:47:35 | * | j-james[m] left #nim ("User left") |
16:48:17 | FromDiscord | <garett> it is a little ugly, but I could maybe make another macro that emits the 3-line block `textureSym {.compileTime.}...` |
16:48:48 | FromDiscord | <ElegantBeef> Why are you even passing the ident there? |
16:49:02 | FromDiscord | <garett> usage: `uniform albedo : Texture` |
16:49:53 | FromDiscord | <garett> sent a code paste, see https://play.nim-lang.org/#ix=3o2o |
16:58:13 | * | shodan45 quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
17:01:02 | * | Avatarfighter[m] joined #nim |
17:01:02 | * | BitPuffin joined #nim |
17:01:03 | * | cadmium[m] joined #nim |
17:01:03 | * | customer[m] joined #nim |
17:01:03 | * | DannyHpy[m] joined #nim |
17:01:03 | * | fbpyr[m] joined #nim |
17:01:03 | * | goblinslayer[m] joined #nim |
17:01:03 | * | jfondren[m] joined #nim |
17:01:03 | * | lnxw37d4 joined #nim |
17:01:03 | * | leorize[m] joined #nim |
17:01:04 | * | npham[m] joined #nim |
17:01:04 | * | MTRNord joined #nim |
17:01:04 | * | reversem3 joined #nim |
17:01:04 | * | Clonkk[m] joined #nim |
17:01:04 | * | stisa joined #nim |
17:01:04 | * | vegai joined #nim |
17:01:04 | * | Benjamin[m]2 joined #nim |
17:01:08 | * | cheer[m] joined #nim |
17:01:09 | * | ee7[m] joined #nim |
17:01:09 | * | Zoom[m] joined #nim |
17:01:09 | * | Edoardo[m] joined #nim |
17:01:09 | * | bluemax[m] joined #nim |
17:01:09 | * | Hasnep[m] joined #nim |
17:01:09 | * | dithpri[m] joined #nim |
17:01:10 | * | Avahe[m] joined #nim |
17:01:10 | * | CodeBitCookie[m] joined #nim |
17:01:10 | * | altarrel joined #nim |
17:01:11 | * | screamapiller[m] joined #nim |
17:01:11 | * | wanr[m] joined #nim |
17:01:14 | * | bfgcoding[m] joined #nim |
17:01:42 | * | zuckerberg[m] joined #nim |
17:01:42 | * | gemath[m] joined #nim |
17:01:45 | * | Gambit[m] joined #nim |
17:12:35 | * | aenesidemus joined #nim |
17:18:43 | * | aenesidemus quit (Quit: Leaving) |
17:25:04 | FromDiscord | <zetashift> Just starred a treeform repo that doesn't even contain code yet, that's how sure I am that I'll already will like it |
17:28:59 | * | Dreamer3 quit (Quit: Leaving...) |
17:29:04 | FromDiscord | <Ondrejoda> hello, how can i make a function return an array/sequence? |
17:32:08 | * | Guest66296 quit (Remote host closed the connection) |
17:32:26 | Prestige | proc foo(): seq[int] = return @[1, 2, 3] |
17:34:38 | FromGitter | <bung87> can I export * from module ? I dont want that module name conflict with my variable |
17:35:29 | Prestige | I'm not sure about than but you can import x as y if that helps? |
17:37:38 | FromGitter | <bung87> well the conflict symbol comming from x module export a, I have a variable |
17:40:27 | Prestige | So module x exports a, and you have a variable named a? I'd have to look into it, haven't tried resolving this issue before without a variable rename |
17:41:10 | FromGitter | <bung87> yeah, also my first time , I can only iterater what I need from a for now |
18:00:53 | FromGitter | <bung87> rename variable easier. thanks! |
18:03:00 | * | SebastianM joined #nim |
18:04:07 | FromDiscord | <treeform> In reply to @zetashift "Just starred a treeform": Thank you for the vote of confidence. |
18:12:31 | FromDiscord | <Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o2N |
18:12:57 | FromDiscord | <Ondrejoda> that doesn't work |
18:13:57 | FromDiscord | <Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o2O |
18:14:07 | Prestige | import strutils |
18:14:24 | Prestige | then you can do `if b in a:` |
18:14:43 | FromDiscord | <Ondrejoda> oh |
18:14:49 | FromDiscord | <Ondrejoda> thanks! |
18:18:01 | FromDiscord | <ajusa> In reply to @zetashift "Just starred a treeform": Wait was Pixie originally going to be pixely before it was changed? That would make it consistent in the treeformverse |
18:24:26 | FromDiscord | <zetashift> treeformverse, that's beautiful |
18:26:01 | * | raboof left #nim ("bye-bye freenode") |
18:36:14 | FromDiscord | <Encrypted Backpack> Idk why am I even here, what is Nim used for? |
18:38:04 | FromGitter | <bung87> "used for " could be more detail ? |
18:39:53 | Prestige | It's a programming language, you can do pretty much anything with it |
18:40:32 | Prestige | Check out https://nim-lang.org/ and feel free to ask questions |
18:41:01 | FromDiscord | <willyboar> what is nim not used for? |
18:41:38 | FromGitter | <bung87> widely use I guess |
18:42:13 | FromDiscord | <Encrypted Backpack> Is it any better for desktop app development? |
18:42:28 | FromDiscord | <Encrypted Backpack> I haven't heard of this language, idk how I even got to this Discord. |
18:42:59 | FromDiscord | <Encrypted Backpack> Kind of looks like if Lua and Python had a baby. |
18:43:00 | FromGitter | <bung87> you can search github gui language:nim |
18:43:02 | FromDiscord | <Encrypted Backpack> Tbh |
18:43:27 | FromGitter | <bung87> there're some good libs |
18:43:34 | Prestige | There are a number of cross platform GUI libraries available. Nim compiles to c, so it's fast. You could also use bindings to C libraries |
18:43:49 | Prestige | https://nimble.directory/ to search for Nim packages |
18:44:03 | FromDiscord | <Encrypted Backpack> So it's kind of a language that simplifies C? |
18:44:57 | FromDiscord | <hugogranstrom.nim> Most importantly it makes it fun to program 🙂 |
18:45:20 | FromDiscord | <Encrypted Backpack> Maybe or maybe I'll try it. |
18:45:25 | FromDiscord | <Encrypted Backpack> (edit) "I'll" => " noyI'll" |
18:45:31 | FromDiscord | <Encrypted Backpack> (edit) " noyI'll" => "not I'll" |
18:45:32 | Prestige | I suggest reading the home page and looking at https://nim-lang.org/documentation.html |
18:46:58 | FromDiscord | <Encrypted Backpack> Wowsies, I love the fact that it's statically typed. |
18:47:47 | FromDiscord | <willyboar> In reply to @Encrypted Backpack "Maybe or maybe not": We - the users- are strongly recommend you to try it. |
18:48:20 | FromDiscord | <Encrypted Backpack> I feel like in a cult that tries to force em to use join them. |
18:49:24 | Prestige | We're byok (bring your own kool-aid) |
18:50:08 | FromDiscord | <Encrypted Backpack> 😩 I'll check that shit out when I'm done writing my Discord bot, maybe I'll be eating from the same garbage as you thankss |
18:51:06 | FromDiscord | <Encrypted Backpack> (edit) "😩 I'll check that shit out when I'm done writing my Discord bot, maybe I'll be eating from the same garbage ... assomeday," added "bin" | "binas you ... thankss" added "someday," |
19:03:46 | FromDiscord | <zetashift> you can write your bot in Nim! https://github.com/krisppurg/dimscord |
19:04:51 | FromDiscord | <zetashift> In reply to @Encrypted Backpack "I feel like in": You're gonna get biased views if you're asking those kind of questions in one of the main Nim hangouts 😛 |
19:06:20 | FromDiscord | <Encrypted Backpack> I feel like rewriting the bot in JS would be better. |
19:06:25 | FromDiscord | <Encrypted Backpack> ¯\_(ツ)_/¯ |
19:06:37 | FromDiscord | <Encrypted Backpack> After all discord.js is written by Discord themselves. |
19:13:49 | FromDiscord | <InventorMatt> Nim can also compile to javascript as well |
19:14:47 | FromDiscord | <Encrypted Backpack> What's the point of knowing 2 languages just to write a Discord bot tho? |
19:15:23 | FromDiscord | <InventorMatt> You don't. You just need nim |
19:18:19 | FromDiscord | <Encrypted Backpack> I don't think Nim can be used as a frontend. |
19:18:29 | Prestige | It can |
19:19:01 | FromDiscord | <Encrypted Backpack> :mikestare: |
19:19:10 | Prestige | I believe the nim website and https://stardust.dev/play/ are both entirely Nim |
19:20:49 | FromDiscord | <willyboar> In reply to @Encrypted Backpack "I don't think Nim": Karax disagrees |
19:20:49 | FromDiscord | <Encrypted Backpack> Wow you made me play an Agar.io clone. |
19:20:54 | FromDiscord | <Encrypted Backpack> 👏 👏 |
19:21:20 | Prestige | Who made stardust, dom? I don't remember |
19:21:24 | FromDiscord | <Encrypted Backpack> Bruh it's like a slideshow I can't play it. |
19:21:28 | FromDiscord | <zetashift> yea dom did |
19:21:39 | FromDiscord | <Encrypted Backpack> Who's dom |
19:21:48 | FromDiscord | <Encrypted Backpack> Cult leader? |
19:22:14 | Prestige | Game seems smooth on my computer |
19:22:35 | Prestige | cult leader? |
19:24:09 | FromDiscord | <zetashift> In reply to @Encrypted Backpack "Who's dom": a Nim core team member and a cool person all around. Game is a bit choppy on mine tho |
19:24:46 | FromDiscord | <Encrypted Backpack> Yeah every web game sucks at my computer. |
19:24:57 | Prestige | probably hasn't implemented any client side prediction I would guess |
19:25:00 | FromDiscord | <Encrypted Backpack> I'm running Fedora Linux with Nvidia 1650 Ti mobile |
19:25:34 | FromDiscord | <Encrypted Backpack> Although WebGL3D rendering isn't done by my GPU |
19:26:13 | FromDiscord | <exelotl> If you want to see more examples of where Nim is used you can check out some of the NimConf talks from last year :) |
19:26:22 | FromDiscord | <exelotl> Here's mine: https://youtu.be/sZUM7MhWr88 |
19:27:01 | FromDiscord | <Encrypted Backpack> What the fuck are .h files |
19:27:03 | * | SebastianM quit (Quit: -a- Bye Bye) |
19:27:05 | FromDiscord | <Encrypted Backpack> I see them all over the place |
19:27:12 | Prestige | Where? |
19:27:26 | FromDiscord | <Encrypted Backpack> It's like a curse. |
19:27:33 | FromDiscord | <haxscramper> header files for C |
19:27:40 | FromDiscord | <Encrypted Backpack> Oh |
19:27:47 | FromDiscord | <Encrypted Backpack> Oh yeh Nim is C |
19:27:49 | FromDiscord | <Encrypted Backpack> SO |
19:27:54 | FromDiscord | <Encrypted Backpack> (edit) "SO" => "So" |
19:27:58 | FromDiscord | <Encrypted Backpack> Makes sense. |
19:28:16 | FromDiscord | <haxscramper> Well, if you don't deal with C interop you don't need to worry about this in nim |
19:28:26 | FromDiscord | <haxscramper> Though C interop comes up pretty often so |
19:28:34 | FromDiscord | <Encrypted Backpack> Idk man maybe I'll learn Nim at one point I want to write a simple OS after all. |
19:29:41 | FromDiscord | <haxscramper> I think there are several OS implementations already. https://github.com/dom96/nimkernel is one |
19:30:06 | FromDiscord | <haxscramper> And also a Linux kernel module example |
19:32:59 | FromDiscord | <Encrypted Backpack> What |
19:33:01 | FromDiscord | <Encrypted Backpack> Is that |
19:33:07 | FromDiscord | <Encrypted Backpack> Colored output |
19:39:51 | FromDiscord | <zetashift> That color output is text being displayed from a kernel written in Nim(this is hard stuff to pull off) |
19:40:51 | FromDiscord | <Encrypted Backpack> Hard is in my name |
19:40:53 | FromDiscord | <Encrypted Backpack> and in my pants |
19:41:06 | FromDiscord | <Encrypted Backpack> I heff achieve komedy |
19:46:44 | FromDiscord | <kalekale> In reply to @zetashift "That color output is": its fairly simple |
19:46:57 | FromDiscord | <kalekale> ive done something like this in rust before |
19:49:25 | FromDiscord | <kalekale> In reply to @haxscramper "I think there are": rather than a os implementation, this is more a proof of concept that you can write a kernel in nim |
19:50:13 | FromDiscord | <zetashift> In reply to @kalekale "its fairly simple": Depends on the type of person sure, but just writing a small kernel isn't something anybody just does |
19:51:21 | FromDiscord | <kalekale> hate to break it to you but i dont think that counts as a small kernel, its more like a freestanding program that runs on baremetal |
19:51:44 | FromDiscord | <kalekale> even a "small" kernel has alot into it |
19:52:13 | FromDiscord | <kalekale> >It doesn't do much, but it doesn't need to. Its purpose is to provide a starting point for anyone wishing to write an OS in Nim. |
19:52:19 | FromDiscord | <Encrypted Backpack> Yeah |
19:57:40 | * | narimiran quit (Quit: leaving) |
19:59:51 | FromDiscord | <garett> Is it possible for a macro with untyped parameters to emit a call to a macro that takes typed parameters? |
20:04:57 | FromDiscord | <haxscramper> yes, just genereate call to that macro |
20:05:42 | FromDiscord | <haxscramper> `typed` macros are evaluated during semcheck, it will be evaluated when code from first macro is processed |
20:16:26 | * | willyboar quit (Quit: Konversation terminated!) |
20:20:02 | * | haxscramper quit (Remote host closed the connection) |
20:31:42 | FromDiscord | <Encrypted Backpack> Nim is made by a bunch of Russians |
20:32:23 | FromDiscord | <ElegantBeef> Pointless statements that arent exactly true 😄 |
20:33:31 | FromDiscord | <Encrypted Backpack> Russians, Ukrainians they're both the same to me |
20:33:49 | FromDiscord | <neow> you have insulted many people right now |
20:33:55 | FromDiscord | <Encrypted Backpack> Have I? |
20:34:05 | FromDiscord | <Encrypted Backpack> I mean it's good. |
20:34:29 | FromDiscord | <Encrypted Backpack> I'm glad that people around me have made something as difficult as a fucking programming language. |
20:34:39 | FromDiscord | <ElegantBeef> Well Araq is german so be sad 😛 |
20:34:44 | FromDiscord | <Encrypted Backpack> I think it's more complex than wrting an os by hand with a desktop environment. |
20:34:49 | FromDiscord | <Encrypted Backpack> ¯\_(ツ)_/¯ |
20:35:01 | FromDiscord | <Encrypted Backpack> A lot of Russian names popped up in the GitHub people page |
20:35:14 | FromDiscord | <neow> no, I meant the "russia, ukraine both same to me" |
20:35:19 | FromDiscord | <VinKer> sent a code paste, see https://play.nim-lang.org/#ix=3o3s |
20:35:38 | FromDiscord | <Encrypted Backpack> Oh |
20:35:39 | FromDiscord | <zetashift> In reply to @kalekale "hate to break it": I get what you're saying, but my point was more that nimkernel shows what can be done with Nim in what would otherwise be an intermediate task for a lot of people. |
20:35:43 | FromDiscord | <Encrypted Backpack> What's so offensive about it |
20:36:00 | FromDiscord | <ElegantBeef> Vinker that's not local type inference, so i dont think it's possible in Nim |
20:36:12 | FromDiscord | <Encrypted Backpack> They're literally the same to me in context that their languages are pretty similar and that they just remind me of each other. |
20:36:14 | FromDiscord | <ElegantBeef> (edit) "Vinker that's not local type inference, so i dont think it's possible in Nim ... " added "atm" |
20:36:29 | FromDiscord | <zetashift> Getting a bit offtopic here...🥲 |
20:36:53 | FromDiscord | <ElegantBeef> My rfc that talks about stronger type inference should eventually allow that type of inference, due to encouraging more passing of "what's desired" |
20:37:00 | FromDiscord | <neow> /last comment, maybe i'm wrong, but afaik many ukrainians want to distance themselves from russia |
20:37:10 | FromDiscord | <ElegantBeef> But it's poorly made RFC that's mostly just about enums 😄 |
20:37:18 | * | lritter quit (Ping timeout: 252 seconds) |
20:37:21 | FromDiscord | <kalekale> i refer to russians and Ukrainians as slavs |
20:37:40 | FromDiscord | <zetashift> In reply to @ElegantBeef "My rfc that talks": Shameless self advertising detected ( I like that RFC tho, I didn't know it was also about anonymous funcs) |
20:37:53 | FromDiscord | <ElegantBeef> It's not about anonymous funcs |
20:38:02 | FromDiscord | <ElegantBeef> It's about passing more information from the left hand 😄 |
20:38:18 | FromDiscord | <ElegantBeef> I mostly focused on enums, but there was also the array examples |
20:38:48 | FromDiscord | <VinKer> sent a code paste, see https://play.nim-lang.org/#ix=3o3w |
20:38:49 | FromDiscord | <ElegantBeef> Where `var a: array[4, byte] = @[10, 20, 30]` works |
20:39:15 | FromDiscord | <ElegantBeef> Well the issue is just that when you do `= (s, e) =>` it doesnt know the types that are desired |
20:39:43 | FromDiscord | <VinKer> It knows that onMouseDown is an EventHandler type |
20:39:43 | FromDiscord | <ElegantBeef> Since that information isnt passed or even a concern to the right hand of the assignment |
20:40:03 | FromDiscord | <ElegantBeef> Sure, but that information isnt used for any definition on the right side |
20:40:55 | FromDiscord | <VinKer> @ElegantBeef Oh I see |
20:41:45 | FromDiscord | <ElegantBeef> Increasing the strength of local type inference could help but doubtful due to the amount of specific logic that'd be needed there |
20:42:20 | FromDiscord | <ElegantBeef> you also have to remember that the lambda is a macro, so it's generating a proc body outside the scope of the left hand assignment |
20:42:27 | FromDiscord | <ElegantBeef> So there are many reasons why this isnt going to work |
20:42:40 | FromDiscord | <VinKer> sent a code paste, see https://play.nim-lang.org/#ix=3o3x |
20:42:43 | FromDiscord | <ElegantBeef> Sure, but D isnt Nim |
20:42:55 | FromDiscord | <VinKer> @ElegantBeef Yeah 🙂 |
20:42:55 | FromDiscord | <ElegantBeef> It's possible to do, but in D that lambda isnt a macro right? |
20:43:16 | FromDiscord | <VinKer> You mean log ? |
20:43:21 | FromDiscord | <ElegantBeef> No the `=>` |
20:43:27 | FromDiscord | <VinKer> Oh |
20:43:43 | FromDiscord | <ElegantBeef> In Nim the `=>` is a macro that is just shorthand for `proc(a: T1, b: T2) = body` |
20:44:02 | FromDiscord | <VinKer> In sugar module ? |
20:44:06 | FromDiscord | <ElegantBeef> Yes |
20:44:30 | FromDiscord | <VinKer> So that's a generic proc |
20:44:35 | FromDiscord | <ElegantBeef> It's like if you did `a = void Name() = discard` or w/e |
20:44:46 | FromDiscord | <ElegantBeef> No that's not what macros are in Nim, they're AST replacements |
20:45:03 | FromDiscord | <ElegantBeef> Which means they take what they're given and apply logic on it to create new AST |
20:45:20 | FromDiscord | <ElegantBeef> So you can always make a macro for this, but it wouldnt be very ergonomic |
20:45:35 | FromDiscord | <ElegantBeef> Actually it might be |
20:45:42 | FromDiscord | <VinKer> I am too weak in macros. |
20:46:10 | FromDiscord | <VinKer> So my best choice is to write down all type names |
20:46:12 | FromDiscord | <ElegantBeef> Well i'll quickly write an example of how you might do it |
20:46:29 | FromDiscord | <exelotl> The nim anonymous proc situation is a bit awkward. What with => being the nicest solution but it only works for single statement bodies :( |
20:46:32 | FromDiscord | <VinKer> @ElegantBeef That would be great. Thanks in advance |
20:46:42 | FromDiscord | <ElegantBeef> Eh i dislike lambdas so i'm a very terrible human |
20:47:02 | FromDiscord | <VinKer> @ElegantBeef 😆 |
20:48:17 | FromDiscord | <VinKer> @exelotl Oh, so you can't write multi line statements ? |
20:51:24 | FromDiscord | <exelotl> Its hard to type code on my phone, I'll find my forum post instead xF |
20:51:34 | FromDiscord | <exelotl> (edit) "xF" => "xD" |
20:54:19 | FromDiscord | <exelotl> Aha here @VinKer |
20:54:21 | FromDiscord | <exelotl> https://forum.nim-lang.org/t/6399#39491 |
20:57:47 | FromDiscord | <ElegantBeef> Like i said not overly ergonomic but a macro could be used https://play.nim-lang.org/#ix=3o3A |
20:57:52 | FromDiscord | <JSONBash> @ElegantBeef do you ever sleep or take a break? |
20:58:14 | FromDiscord | <ElegantBeef> Yes, but i'm chronically useless so i stay in here making macros apparently 😄 |
21:09:23 | FromDiscord | <VinKer> @ElegantBeef thanks. Let me check. |
21:46:14 | * | PMunch quit (Quit: leaving) |
21:58:39 | * | Vladar quit (Quit: Leaving) |
22:25:37 | FromGitter | <BracketMaster> Does it make sense to write drivers in Nim? |
22:26:10 | FromDiscord | <ElegantBeef> I personally dont see why not |
22:26:23 | FromGitter | <BracketMaster> cool |
22:26:27 | FromGitter | <BracketMaster> One nice thing about Rust is borrow checking which helps with memory safety for driving writing |
22:26:36 | FromGitter | <BracketMaster> It seems like Nim can also support this? |
22:27:16 | leorize[m] | yes |
22:27:34 | FromDiscord | <ElegantBeef> Nim has a few experimental featrures that can support things that rust has, not nil, views, strict funcs |
22:28:07 | FromGitter | <BracketMaster> OK |
22:28:16 | FromGitter | <BracketMaster> We're considering writing some production drivers in Nim |
22:28:34 | FromGitter | <BracketMaster> I hope it's not too early and that Nim is ready for this |
22:30:30 | leorize[m] | it is very likely that you will have to build your own libraries for this since this is not a very developed front of nim |
22:33:44 | FromGitter | <BracketMaster> gotcha |
22:33:59 | FromDiscord | <lamersc.com> Hey that’s the fun in it |
22:34:19 | FromDiscord | <lamersc.com> Get to experiment with implementing certain things |
22:34:55 | FromGitter | <BracketMaster> leorize: to be fair - drivers don't need a whole lot of libraries typically |
22:35:29 | leorize[m] | i'm more concerned about the lack of proper support for --os:standalone |
22:35:41 | FromGitter | <BracketMaster> hmm |
22:36:20 | FromDiscord | <ElegantBeef> Isnt standalone deprecated for `any` or am i a numpty as usualy? |
22:36:21 | FromDiscord | <ElegantBeef> (edit) "usualy?" => "usual?" |
22:41:15 | leorize[m] | i'm not really sure, they are very distinct options that do different things |
22:50:07 | FromDiscord | <exelotl> I hope not, I've yet to see how to install a custom panic handler for `any` |
22:51:06 | FromDiscord | <exelotl> I'm looking forward to Nim 1.6 in which the --os:standalone --gc:arc combo is fixed |
23:13:29 | FromDiscord | <Anonymous Poet> is there a reason why you cant await a `FutureVar`? |
23:36:14 | * | Gustavo6046 quit (Ping timeout: 252 seconds) |
23:53:19 | * | Gustavo6046 joined #nim |
23:57:58 | FromDiscord | <Anonymous Poet> turns out it's just a `distinct Future` so no reason to use it afaict |