00:41:46 | * | Jjp137 quit (Quit: Leaving) |
00:45:32 | * | Jjp137 joined #nim |
01:05:37 | * | pch quit (Remote host closed the connection) |
01:06:15 | * | pch joined #nim |
01:08:20 | * | pch quit (Remote host closed the connection) |
01:10:32 | * | pch joined #nim |
01:12:54 | * | pch quit (Remote host closed the connection) |
01:13:49 | * | pch joined #nim |
01:26:12 | Mister_Magister | im checking one tihng, if it fixes issue i'll make PR tomorrow |
02:01:56 | NimEventer | New post on r/nim by Ether-naut: Generic issues, see https://reddit.com/r/nim/comments/qeinci/generic_issues/ |
02:37:20 | FromDiscord | <evoalg> sent a long message, see http://ix.io/3CDi |
02:39:00 | FromDiscord | <Elegantbeef> It's to easily support Nim \<-\> Python, there is no reason to use it unless you want to use some python code |
02:42:55 | FromDiscord | <evoalg> and it's better than just calling it as a command line os thingy? |
02:44:45 | FromDiscord | <Rika> Yes when you have to expose many functions and need to also use objects |
02:50:35 | FromDiscord | <Elegantbeef> If you want to make a library for python you'd probably want to use genny to make a nice nim dynamic lib |
02:52:31 | FromDiscord | <evoalg> I was just wondering at this stage (and something for me to possibly try later on) ... thank you both! |
02:58:28 | * | arkurious quit (Quit: Leaving) |
03:25:37 | FromDiscord | <evoalg> "import std/os" vs "import os" ... is the first way better because there might be other os's out there? |
03:25:59 | FromDiscord | <Rika> yes |
03:26:26 | FromDiscord | <Elegantbeef> Also cause all new std libraries are forced `std/` |
03:27:26 | FromDiscord | <evoalg> so some new std libraries wont be able to be imported unless I use "std/" ? |
03:27:33 | FromDiscord | <Elegantbeef> Indeed |
03:27:41 | FromDiscord | <evoalg> ok thank you! |
03:31:54 | FromDiscord | <rainbowasteroids> that change is going to be enforced with nim 2, right? |
03:32:09 | FromDiscord | <Rika> dunno |
03:32:21 | FromDiscord | <Rika> know that the version after 1.8 is not 2 |
03:32:48 | FromDiscord | <Rika> nim 2 might be a decade away or w/e |
03:34:29 | FromDiscord | <rainbowasteroids> I thought nim 2 was going to be when the compiler can compile under ORC |
03:36:31 | FromDiscord | <Rika> no? |
03:36:38 | FromDiscord | <Rika> i dont remember anyone saying that |
03:37:14 | FromDiscord | <Elegantbeef> there's the 2.0 forum post which araq seems to elude to that |
03:37:16 | FromDiscord | <rainbowasteroids> > ↵> Once Nim can bootstrap via --gc\:orc we should make this the default GC as it works best with destructor based custom memory management. Since this is all based on the "new runtime" which isn't ABI compatible this deserves the 2.0 version.↵> |
03:37:25 | FromDiscord | <rainbowasteroids> https://forum.nim-lang.org/t/7983 |
03:42:28 | FromDiscord | <Rika> so here |
03:42:46 | FromDiscord | <Rika> once nim compiles under orc -> orc will be default gc↵which will only happen on nim 2 |
03:43:19 | FromDiscord | <Rika> nim compiling on orc doesnt imply nim 2 will release, just another step closer to it |
04:06:01 | * | supakeen quit (Quit: WeeChat 3.3) |
04:06:31 | * | supakeen joined #nim |
04:12:58 | FromDiscord | <evoalg> I like this: https://benjamindlee.com/posts/2021/why-i-use-nim-instead-of-python-for-data-processing/ |
04:21:38 | nrds | <Prestige99> oh neat |
04:24:01 | FromDiscord | <rainbowasteroids> why is all of his code blocks in all caps |
04:24:03 | FromDiscord | <rainbowasteroids> it bothers me |
04:24:18 | FromDiscord | <rainbowasteroids> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/901687449288318997): why are all of his code blocks in all caps |
04:30:23 | FromDiscord | <Rika> ?? |
04:30:24 | FromDiscord | <Rika> whose |
04:30:25 | FromDiscord | <Rika> they arent |
04:31:33 | FromDiscord | <rainbowasteroids> in the article |
04:32:14 | FromDiscord | <Rika> they arent yeah |
04:32:58 | FromDiscord | <rainbowasteroids> 2021-10-24-00\:32\:24.png https://media.discordapp.net/attachments/371759389889003532/901689700765532170/2021-10-24-003224.png |
04:33:06 | FromDiscord | <rainbowasteroids> am i going crazy or smth |
04:35:38 | FromDiscord | <Rika> yes your pc is cursed |
04:43:11 | FromDiscord | <logo4poop> can confirm they are correct https://media.discordapp.net/attachments/371759389889003532/901692271773220864/unknown.png |
04:43:31 | nrds | <Prestige99> hm what font is that |
04:45:16 | FromDiscord | <logo4poop> https://media.discordapp.net/attachments/371759389889003532/901692792957460500/unknown.png |
04:45:24 | FromDiscord | <logo4poop> Looks like Monaco I guess? |
04:46:40 | FromDiscord | <rainbowasteroids> devtools is saying it's using ubuntu mono |
04:47:05 | nrds | <Prestige99> man it looks nice |
04:48:11 | FromDiscord | <logo4poop> @Rika Looks like it uses whatever is setup on your system, I have Monaco installed on my computer. |
04:48:14 | FromDiscord | <logo4poop> Oops wrong person |
04:48:15 | FromDiscord | <logo4poop> Sorry |
04:48:24 | FromDiscord | <Rika> i see |
04:48:44 | FromDiscord | <logo4poop> Prestige: I heavily recommend Fira Code |
04:48:48 | FromDiscord | <rainbowasteroids> why does gnome-font-viewer hate me 😭 |
04:48:55 | FromDiscord | <rainbowasteroids> i like fantasque sans |
04:49:02 | FromDiscord | <rainbowasteroids> 2021-10-24-00\:48\:28.png https://media.discordapp.net/attachments/371759389889003532/901693746461151302/2021-10-24-004828.png |
04:49:14 | nrds | <Prestige99> I think fira looks nice but I really hate ligatures |
04:49:24 | FromDiscord | <Rika> wtf are childproof caps |
04:49:35 | FromDiscord | <logo4poop> For pill bottles |
04:49:40 | FromDiscord | <rainbowasteroids> that top you push in to twist |
04:49:43 | nrds | <Prestige99> oh |
04:49:45 | FromDiscord | <rainbowasteroids> for pills |
04:49:51 | nrds | <Prestige99> I was thinking of text, lol |
04:50:02 | FromDiscord | <Rika> i see |
04:50:07 | FromDiscord | <Rika> never really needed to open one |
04:50:17 | FromDiscord | <Rika> maybe that just proves im a child xd |
04:50:21 | FromDiscord | <rainbowasteroids> youve never opened a pill bottle |
04:50:47 | FromDiscord | <Rika> not a childproof one |
04:50:55 | FromDiscord | <logo4poop> Aren't they all adultproof? |
04:51:32 | FromDiscord | <rainbowasteroids> 2021-10-24-00\:51\:16.png https://media.discordapp.net/attachments/371759389889003532/901694372863692841/2021-10-24-005116.png |
04:52:11 | FromDiscord | <logo4poop> Fira Code https://media.discordapp.net/attachments/371759389889003532/901694536768696370/unknown.png |
04:52:49 | FromDiscord | <logo4poop> Screenshots on my laptop are kinda messed up with colors, sorry. |
05:26:11 | nrds | <Prestige99> I've been using JetBrains Mono for quite a while |
05:52:36 | FromDiscord | <codic> In reply to @nrds "<Prestige> I think fira": Fira Code is Fira Mono + Ligatures, just use original Fira Mono if you don't want the ligatures |
05:53:37 | nrds | <Prestige99> ah, good |
05:53:48 | nrds | <Prestige99> Also hey codic, how's your project going? |
06:10:20 | * | Jjp137 quit (Quit: Leaving) |
06:10:27 | * | Jjp137 joined #nim |
06:32:56 | * | Jjp137 quit (Quit: Leaving) |
06:50:18 | * | Jjp137 joined #nim |
07:21:13 | * | meowray quit (Quit: ZNC 1.8.2 - https://znc.in) |
07:24:02 | * | meowray joined #nim |
07:33:08 | * | meowray quit (Changing host) |
07:33:08 | * | meowray joined #nim |
08:44:52 | FromDiscord | <Goel> Nim 1.6.0 added 15 new stdlib modules, where can I find a list of those new added modules? |
08:46:16 | FromDiscord | <Elegantbeef> https://github.com/nim-lang/Nim/blob/version-1-6/changelogs/changelog_1_6_0.md |
08:50:54 | FromDiscord | <Elegantbeef> The best is setutils and i'm totally not biased |
08:51:57 | FromDiscord | <Rika> ElegantBias |
09:14:33 | NimEventer | New thread by V3ss0n: How to add defaults on nim types?, see https://forum.nim-lang.org/t/8535 |
09:38:37 | FromDiscord | <Goel> I was hoping for an Image std module, similar to what nimPNG does but multiformat and officially supported |
09:40:07 | FromDiscord | <haxscramper> It is very rarely needed and more work to maintain. Also code dies in stdlib, and libraries like this need to have at least some API freedom |
10:22:30 | FromDiscord | <hotdog> In reply to @rainbowasteroids "why is all of": I get the same https://media.discordapp.net/attachments/371759389889003532/901777664703082566/unknown.png |
10:23:01 | FromDiscord | <hotdog> It's because there is "case" inside "font-feature-settings" https://media.discordapp.net/attachments/371759389889003532/901777793166245888/unknown.png |
10:23:11 | FromDiscord | <hotdog> I guess some fonts don't handle it well |
10:54:56 | * | casionaut joined #nim |
11:16:19 | FromDiscord | <enthus1ast> in 1.6 my testament tests fail, because it cannot import nimble modules (eg jester and prologue) |
11:16:50 | FromDiscord | <enthus1ast> in 1.4.8 they work, any idea? |
11:17:08 | FromDiscord | <enthus1ast> could it be "--clearNimblePath" ? |
11:20:13 | FromDiscord | <enthus1ast> ah https://github.com/nim-lang/Nim/issues/19017 |
11:20:17 | FromDiscord | <enthus1ast> regression |
11:32:58 | * | elph joined #nim |
12:06:02 | * | supakeen quit (Quit: WeeChat 3.3) |
12:06:31 | * | supakeen joined #nim |
12:14:34 | * | Vladar joined #nim |
12:35:30 | FromDiscord | <logo> In reply to @codic "Fira Code is Fira": Fira Code has a few minor changes iirc, but the terminal emulator I am using allows me to turn off ligatures too. |
12:47:27 | FromDiscord | <el__maco> ||ligatures are nice, tho|| |
12:48:04 | Mister_Magister | i tried checking if the client socket is closed before responding but that didn't help either :/ |
12:48:35 | Mister_Magister | i don't think i will be able to use nim for this purpose, its too unstable |
13:18:38 | * | arkurious joined #nim |
13:29:45 | FromDiscord | <logo> In reply to @el__maco "||ligatures are nice, tho||": I like them too, although I prefer when they are more subtle. |
13:41:37 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
13:54:13 | * | al1ranger joined #nim |
14:00:31 | * | al1rngr joined #nim |
14:02:22 | * | al1ranger quit (Ping timeout: 244 seconds) |
14:06:59 | * | al1rngr quit (Quit: Leaving) |
14:26:12 | NimEventer | New thread by Ggibson: Const loop unrolling, or const to static?, see https://forum.nim-lang.org/t/8536 |
14:56:46 | * | neurocyte0132889 joined #nim |
14:56:46 | * | neurocyte0132889 quit (Changing host) |
14:56:46 | * | neurocyte0132889 joined #nim |
15:24:36 | FromDiscord | <haxscramper> https://nim-lang.org/docs/system.html#NimVersion |
15:24:39 | FromDiscord | <haxscramper> Illusive#9229\: ^ |
15:25:02 | FromDiscord | <Illusive> yeah i see |
15:25:06 | FromDiscord | <Illusive> `echo "Nim version is" + NimVersion` |
15:25:11 | FromDiscord | <Rika> & to concat strings |
15:25:17 | FromDiscord | <Illusive> unfortunately the code above is invalid tho |
15:25:17 | FromDiscord | <haxscramper> `+` is not used to concat strings, yes |
15:25:21 | FromDiscord | <Rika> + is strictly for addition |
15:25:31 | FromDiscord | <Rika> !eval echo "Nim version is" & NimVersion |
15:25:33 | NimBot | Nim version is1.6.0 |
15:25:43 | FromDiscord | <Illusive> bruh |
15:25:52 | FromDiscord | <Illusive> and this is how it was so easy? |
15:25:55 | FromDiscord | <Illusive> damn it |
15:25:55 | FromDiscord | <haxscramper> and don't forget `echo` does not add spaces |
15:26:05 | FromDiscord | <Illusive> !eval echo "Nim version is" & NimVersion |
15:26:07 | FromDiscord | <Rika> unlike print in python |
15:26:08 | NimBot | Nim version is1.6.0 |
15:26:15 | FromDiscord | <Rika> !eval echo "Nim version is ", NimVersion |
15:26:18 | NimBot | Nim version is 1.6.0 |
15:26:18 | FromDiscord | <Illusive> oh well :/ |
15:26:42 | FromDiscord | <Illusive> got it |
15:26:45 | FromDiscord | <Illusive> thanks |
15:26:58 | FromDiscord | <haxscramper> and there are also `NimMinor`, `NimMajor` etc., if you don't want to unparse the string |
15:28:19 | FromDiscord | <Illusive> i just mainly need nimversion |
15:28:21 | FromDiscord | <Illusive> that's all |
15:28:31 | FromDiscord | <Illusive> it is enough at least for me |
16:12:27 | * | Vladar quit (Quit: Leaving) |
16:48:43 | FromDiscord | <geekrelief> is there a way to do partial array initialization? |
16:49:33 | FromDiscord | <geekrelief> sent a code paste, see https://play.nim-lang.org/#ix=3CGo |
17:01:11 | FromDiscord | <Rika> no |
17:01:33 | FromDiscord | <Rika> not cleanly |
17:01:48 | FromDiscord | <geekrelief> so I need a macro for this? |
17:01:49 | FromDiscord | <jmgomez> Hey guys, can nimhcr be compiled (and used) against cpp? |
17:02:01 | FromDiscord | <Gumber> nimhcr doesn't really work tmk |
17:02:18 | FromDiscord | <Gumber> better off just writing your own plugin system |
17:02:36 | FromDiscord | <Gumber> or using something like - https://github.com/fungos/cr |
17:02:59 | FromDiscord | <Gumber> or - https://github.com/RuntimeCompiledCPlusPlus/RuntimeCompiledCPlusPlus |
17:04:29 | FromDiscord | <jmgomez> oh, it kinda worked with the C target |
17:04:38 | FromDiscord | <Gumber> yeah it kind of works |
17:04:45 | FromDiscord | <Gumber> for toy examples |
17:04:57 | FromDiscord | <Gumber> but feel free to try and get it working for your purposes |
17:05:21 | FromDiscord | <Gumber> I haven't touched it in years which I'm pretty sure is the last time anyone worked on it |
17:05:31 | FromDiscord | <Gumber> before I tried using it |
17:06:45 | FromDiscord | <jmgomez> Okay, Im just playing around with the possibilities/workflows of nim. Thanks for the heads up |
17:07:08 | FromDiscord | <geekrelief> hmm I guess I'll just create a proc to initialize things |
17:13:43 | * | Gustavo6046 joined #nim |
17:21:58 | * | casionaut quit (Remote host closed the connection) |
17:30:13 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=3CGE |
17:30:17 | FromDiscord | <demotomohiro> How about to use func like this? |
17:31:59 | FromDiscord | <geekrelief> In reply to @demotomohiro "https://play.nim-lang.org/#ix=3CGD": Yeah, that works nicely. Thanks! |
17:35:37 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=3CGJ |
18:21:48 | * | Pyautogui joined #nim |
18:31:55 | Pyautogui | Any recommendations: https://nim.quora.com/The-Nim-Science-organization-https-github-com-SciNim-If-you-are-in-the-data-analyses-field-you-might-be-interested |
18:45:28 | * | PMunch joined #nim |
19:05:06 | * | Pyautogui quit (Ping timeout: 260 seconds) |
19:12:41 | * | Pyautogui joined #nim |
19:16:04 | FromDiscord | <haxscramper> Pyautogui[IRC]#0000\: about which C interop to choose? |
19:17:09 | FromDiscord | <haxscramper> probably futhark first, it just happen to be "just working" from what I've seen |
19:17:22 | FromDiscord | <haxscramper> c2nim is mostly a DIY solution in the end |
19:17:29 | Pyautogui | Really just listing them for anyone who would like to make a choice, to spare people the trouble of finding them. No real recommendation. |
19:21:46 | FromDiscord | <tandy> i use SF Mono |
19:22:05 | FromDiscord | <tandy> forgot to reply lol↵(<@709044657232936960_nrds=5b=49=52=43=5d>) |
19:41:11 | * | Pyautogui quit (Ping timeout: 264 seconds) |
20:28:50 | * | [R] quit (Ping timeout: 244 seconds) |
20:30:28 | PMunch | Pyautogui, they all have slightly different purposes. But if you just need to use a small C library I can highly reccomend Futhark, then again I'm a bit biased :P |
20:32:46 | * | [R] joined #nim |
20:34:02 | * | PMunch quit (Quit: Leaving) |
20:46:26 | * | Jjp137 quit (Quit: Leaving) |
20:47:55 | * | Jjp137 joined #nim |
21:05:36 | FromDiscord | <exelotl> I can't stand ligatures lol |
21:07:17 | FromDiscord | <exelotl> even joining "fi" is just really distracting to me |
21:28:38 | FromDiscord | <evoalg> I'm googling what a static variable is, static and means "eval at compile-time" ... why is that a good idea vs using non-static? Is there a simple example? |
21:30:56 | FromDiscord | <bsdooby> when should I use `echo` vs. `stdout.write`? |
21:31:16 | FromDiscord | <ynfle (ynfle)> echo adds a newline and flushs the output for you |
21:31:46 | FromDiscord | <ynfle (ynfle)> So for printing things to the terminal where you are going to use a newline at the end anyway, may as well use echo |
21:32:05 | FromDiscord | <ynfle (ynfle)> @evoalg what's the context? |
21:32:05 | FromDiscord | <bsdooby> so it is better in every regards (because flushing is most of the time wanted anyways)... |
21:32:39 | FromDiscord | <ynfle (ynfle)> Ya, unless you don't want a newline |
21:33:04 | FromDiscord | <bsdooby> thx |
21:33:54 | FromDiscord | <ynfle (ynfle)> \:thumbsup\: |
21:34:56 | FromDiscord | <evoalg> In reply to @ynfle (ynfle) "@evoalg what's the context?": I guess I only know what a local and global variable is (I don't know much) and I'm trying to figure about what it means when I see a type of "static int" instead of just "int" in nim code |
21:35:21 | FromDiscord | <tandy> how can i find where code is in nim? nimsuggest obviously doesnt work |
21:35:29 | FromDiscord | <tandy> i wanna know where cstrings are converted to strings using `$` |
21:38:01 | FromDiscord | <Elegantbeef> Nimsuggest should work, but it'll bring you to the dollars header |
21:38:04 | FromDiscord | <Elegantbeef> https://github.com/nim-lang/Nim/blob/version-1-6/lib/system/dollars.nim#L45 |
21:38:15 | FromDiscord | <Elegantbeef> You now need to look in the compilers CstrToStr impl |
21:38:23 | FromDiscord | <ynfle (ynfle)> @evoalg static means known at compile time |
21:38:50 | FromDiscord | <ynfle (ynfle)> @tandy, vscode has a nim extension that really works |
21:39:07 | FromDiscord | <Elegantbeef> Saem's nim extension is best ime |
21:39:08 | FromDiscord | <tandy> huh really |
21:39:23 | FromDiscord | <tandy> yeah im using nimsaems extension |
21:39:25 | FromDiscord | <tandy> it doesnt work tho lol |
21:39:38 | FromDiscord | <evoalg> eg in the example demotomohiro posted above, what is "static int" used? What does it do? https://play.nim-lang.org/#ix=3CGD ... why is it good that it's known at compile time? |
21:39:43 | FromDiscord | <ynfle (ynfle)> Do you have nim configured correctly? |
21:40:07 | FromDiscord | <tandy> i believe so |
21:40:19 | FromDiscord | <Elegantbeef> Well in this case it needs to be known at compiler time since it's initing an array |
21:40:26 | FromDiscord | <ynfle (ynfle)> @evoalg Main reason is for array length which has to be at compile time and for macros which only operate at compile time |
21:40:29 | FromDiscord | <Elegantbeef> compile time\ 😛 |
21:40:45 | FromDiscord | <Elegantbeef> Generics cannot be instantiated at runtime, and arrays are generics in Nim |
21:40:49 | FromDiscord | <ynfle (ynfle)> Compiler standard time |
21:41:05 | FromDiscord | <Elegantbeef> So you need to tell the compiler it's a static so it knows the value at CT and generates the code accordingly |
21:41:26 | FromDiscord | <evoalg> oh ok thank you all! |
21:43:27 | FromDiscord | <tandy> thank you beefe |
21:47:04 | FromDiscord | <tandy> huh |
21:47:24 | FromDiscord | <tandy> cstrtostr yields no results when search the compiler folder |
21:47:35 | FromDiscord | <tandy> its only in here |
21:48:31 | FromDiscord | <tandy> https://github.com/nim-lang/Nim/blob/devel/compiler/magicsys.nim |
21:48:33 | FromDiscord | <tandy> i found this |
21:59:40 | FromDiscord | <evoalg> Is it reasonable to want std/strformat part of nim system (or whatever) so we can use it without having to import it? ... or is the idea not to make nim too bulky? I'm only asking because in python I'm used to f"" without having to import anything. I understand nim isn't trying to be python and there's probably good reasons for not having it available by default. |
22:00:19 | FromDiscord | <ynfle (ynfle)> What's wrong with importing it? |
22:21:59 | FromDiscord | <evoalg> I guess I have the the mindset that if I'm writing a quick simple script (that does nothing fancy) then I shouldn't have to import anything. That's not really the case with nim, but I guess that makes nim nice & lean (which is good) |
22:24:50 | FromDiscord | <Elegantbeef> The core team want to make the system module even smaller so imports are good |
22:26:07 | FromDiscord | <evoalg> oh ok! ... nice ... I'll stop trying to make nim the same as python in my brain hehe |
22:26:32 | FromDiscord | <Elegantbeef> They're very different aside from some syntax overlap |
23:25:56 | * | Gustavo6046 quit (Ping timeout: 245 seconds) |
23:32:04 | * | Gustavo6046 joined #nim |
23:33:58 | * | Pyautogui joined #nim |
23:45:59 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
23:49:05 | * | Gustavo6046 joined #nim |