<< 24-10-2021 >>

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:12Mister_Magisterim checking one tihng, if it fixes issue i'll make PR tomorrow
02:01:56NimEventerNew post on r/nim by Ether-naut: Generic issues, see https://reddit.com/r/nim/comments/qeinci/generic_issues/
02:37:20FromDiscord<evoalg> sent a long message, see http://ix.io/3CDi
02:39:00FromDiscord<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:55FromDiscord<evoalg> and it's better than just calling it as a command line os thingy?
02:44:45FromDiscord<Rika> Yes when you have to expose many functions and need to also use objects
02:50:35FromDiscord<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:31FromDiscord<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:37FromDiscord<evoalg> "import std/os" vs "import os" ... is the first way better because there might be other os's out there?
03:25:59FromDiscord<Rika> yes
03:26:26FromDiscord<Elegantbeef> Also cause all new std libraries are forced `std/`
03:27:26FromDiscord<evoalg> so some new std libraries wont be able to be imported unless I use "std/" ?
03:27:33FromDiscord<Elegantbeef> Indeed
03:27:41FromDiscord<evoalg> ok thank you!
03:31:54FromDiscord<rainbowasteroids> that change is going to be enforced with nim 2, right?
03:32:09FromDiscord<Rika> dunno
03:32:21FromDiscord<Rika> know that the version after 1.8 is not 2
03:32:48FromDiscord<Rika> nim 2 might be a decade away or w/e
03:34:29FromDiscord<rainbowasteroids> I thought nim 2 was going to be when the compiler can compile under ORC
03:36:31FromDiscord<Rika> no?
03:36:38FromDiscord<Rika> i dont remember anyone saying that
03:37:14FromDiscord<Elegantbeef> there's the 2.0 forum post which araq seems to elude to that
03:37:16FromDiscord<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:25FromDiscord<rainbowasteroids> https://forum.nim-lang.org/t/7983
03:42:28FromDiscord<Rika> so here
03:42:46FromDiscord<Rika> once nim compiles under orc -> orc will be default gc↵which will only happen on nim 2
03:43:19FromDiscord<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:58FromDiscord<evoalg> I like this: https://benjamindlee.com/posts/2021/why-i-use-nim-instead-of-python-for-data-processing/
04:21:38nrds<Prestige99> oh neat
04:24:01FromDiscord<rainbowasteroids> why is all of his code blocks in all caps
04:24:03FromDiscord<rainbowasteroids> it bothers me
04:24:18FromDiscord<rainbowasteroids> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/901687449288318997): why are all of his code blocks in all caps
04:30:23FromDiscord<Rika> ??
04:30:24FromDiscord<Rika> whose
04:30:25FromDiscord<Rika> they arent
04:31:33FromDiscord<rainbowasteroids> in the article
04:32:14FromDiscord<Rika> they arent yeah
04:32:58FromDiscord<rainbowasteroids> 2021-10-24-00\:32\:24.png https://media.discordapp.net/attachments/371759389889003532/901689700765532170/2021-10-24-003224.png
04:33:06FromDiscord<rainbowasteroids> am i going crazy or smth
04:35:38FromDiscord<Rika> yes your pc is cursed
04:43:11FromDiscord<logo4poop> can confirm they are correct https://media.discordapp.net/attachments/371759389889003532/901692271773220864/unknown.png
04:43:31nrds<Prestige99> hm what font is that
04:45:16FromDiscord<logo4poop> https://media.discordapp.net/attachments/371759389889003532/901692792957460500/unknown.png
04:45:24FromDiscord<logo4poop> Looks like Monaco I guess?
04:46:40FromDiscord<rainbowasteroids> devtools is saying it's using ubuntu mono
04:47:05nrds<Prestige99> man it looks nice
04:48:11FromDiscord<logo4poop> @Rika Looks like it uses whatever is setup on your system, I have Monaco installed on my computer.
04:48:14FromDiscord<logo4poop> Oops wrong person
04:48:15FromDiscord<logo4poop> Sorry
04:48:24FromDiscord<Rika> i see
04:48:44FromDiscord<logo4poop> Prestige: I heavily recommend Fira Code
04:48:48FromDiscord<rainbowasteroids> why does gnome-font-viewer hate me 😭
04:48:55FromDiscord<rainbowasteroids> i like fantasque sans
04:49:02FromDiscord<rainbowasteroids> 2021-10-24-00\:48\:28.png https://media.discordapp.net/attachments/371759389889003532/901693746461151302/2021-10-24-004828.png
04:49:14nrds<Prestige99> I think fira looks nice but I really hate ligatures
04:49:24FromDiscord<Rika> wtf are childproof caps
04:49:35FromDiscord<logo4poop> For pill bottles
04:49:40FromDiscord<rainbowasteroids> that top you push in to twist
04:49:43nrds<Prestige99> oh
04:49:45FromDiscord<rainbowasteroids> for pills
04:49:51nrds<Prestige99> I was thinking of text, lol
04:50:02FromDiscord<Rika> i see
04:50:07FromDiscord<Rika> never really needed to open one
04:50:17FromDiscord<Rika> maybe that just proves im a child xd
04:50:21FromDiscord<rainbowasteroids> youve never opened a pill bottle
04:50:47FromDiscord<Rika> not a childproof one
04:50:55FromDiscord<logo4poop> Aren't they all adultproof?
04:51:32FromDiscord<rainbowasteroids> 2021-10-24-00\:51\:16.png https://media.discordapp.net/attachments/371759389889003532/901694372863692841/2021-10-24-005116.png
04:52:11FromDiscord<logo4poop> Fira Code https://media.discordapp.net/attachments/371759389889003532/901694536768696370/unknown.png
04:52:49FromDiscord<logo4poop> Screenshots on my laptop are kinda messed up with colors, sorry.
05:26:11nrds<Prestige99> I've been using JetBrains Mono for quite a while
05:52:36FromDiscord<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:37nrds<Prestige99> ah, good
05:53:48nrds<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:52FromDiscord<Goel> Nim 1.6.0 added 15 new stdlib modules, where can I find a list of those new added modules?
08:46:16FromDiscord<Elegantbeef> https://github.com/nim-lang/Nim/blob/version-1-6/changelogs/changelog_1_6_0.md
08:50:54FromDiscord<Elegantbeef> The best is setutils and i'm totally not biased
08:51:57FromDiscord<Rika> ElegantBias
09:14:33NimEventerNew thread by V3ss0n: How to add defaults on nim types?, see https://forum.nim-lang.org/t/8535
09:38:37FromDiscord<Goel> I was hoping for an Image std module, similar to what nimPNG does but multiformat and officially supported
09:40:07FromDiscord<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:30FromDiscord<hotdog> In reply to @rainbowasteroids "why is all of": I get the same https://media.discordapp.net/attachments/371759389889003532/901777664703082566/unknown.png
10:23:01FromDiscord<hotdog> It's because there is "case" inside "font-feature-settings" https://media.discordapp.net/attachments/371759389889003532/901777793166245888/unknown.png
10:23:11FromDiscord<hotdog> I guess some fonts don't handle it well
10:54:56*casionaut joined #nim
11:16:19FromDiscord<enthus1ast> in 1.6 my testament tests fail, because it cannot import nimble modules (eg jester and prologue)
11:16:50FromDiscord<enthus1ast> in 1.4.8 they work, any idea?
11:17:08FromDiscord<enthus1ast> could it be "--clearNimblePath" ?
11:20:13FromDiscord<enthus1ast> ah https://github.com/nim-lang/Nim/issues/19017
11:20:17FromDiscord<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:30FromDiscord<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:27FromDiscord<el__maco> ||ligatures are nice, tho||
12:48:04Mister_Magisteri tried checking if the client socket is closed before responding but that didn't help either :/
12:48:35Mister_Magisteri don't think i will be able to use nim for this purpose, its too unstable
13:18:38*arkurious joined #nim
13:29:45FromDiscord<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:12NimEventerNew 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:36FromDiscord<haxscramper> https://nim-lang.org/docs/system.html#NimVersion
15:24:39FromDiscord<haxscramper> Illusive#9229\: ^
15:25:02FromDiscord<Illusive> yeah i see
15:25:06FromDiscord<Illusive> `echo "Nim version is" + NimVersion`
15:25:11FromDiscord<Rika> & to concat strings
15:25:17FromDiscord<Illusive> unfortunately the code above is invalid tho
15:25:17FromDiscord<haxscramper> `+` is not used to concat strings, yes
15:25:21FromDiscord<Rika> + is strictly for addition
15:25:31FromDiscord<Rika> !eval echo "Nim version is" & NimVersion
15:25:33NimBotNim version is1.6.0
15:25:43FromDiscord<Illusive> bruh
15:25:52FromDiscord<Illusive> and this is how it was so easy?
15:25:55FromDiscord<Illusive> damn it
15:25:55FromDiscord<haxscramper> and don't forget `echo` does not add spaces
15:26:05FromDiscord<Illusive> !eval echo "Nim version is" & NimVersion
15:26:07FromDiscord<Rika> unlike print in python
15:26:08NimBotNim version is1.6.0
15:26:15FromDiscord<Rika> !eval echo "Nim version is ", NimVersion
15:26:18NimBotNim version is 1.6.0
15:26:18FromDiscord<Illusive> oh well :/
15:26:42FromDiscord<Illusive> got it
15:26:45FromDiscord<Illusive> thanks
15:26:58FromDiscord<haxscramper> and there are also `NimMinor`, `NimMajor` etc., if you don't want to unparse the string
15:28:19FromDiscord<Illusive> i just mainly need nimversion
15:28:21FromDiscord<Illusive> that's all
15:28:31FromDiscord<Illusive> it is enough at least for me
16:12:27*Vladar quit (Quit: Leaving)
16:48:43FromDiscord<geekrelief> is there a way to do partial array initialization?
16:49:33FromDiscord<geekrelief> sent a code paste, see https://play.nim-lang.org/#ix=3CGo
17:01:11FromDiscord<Rika> no
17:01:33FromDiscord<Rika> not cleanly
17:01:48FromDiscord<geekrelief> so I need a macro for this?
17:01:49FromDiscord<jmgomez> Hey guys, can nimhcr be compiled (and used) against cpp?
17:02:01FromDiscord<Gumber> nimhcr doesn't really work tmk
17:02:18FromDiscord<Gumber> better off just writing your own plugin system
17:02:36FromDiscord<Gumber> or using something like - https://github.com/fungos/cr
17:02:59FromDiscord<Gumber> or - https://github.com/RuntimeCompiledCPlusPlus/RuntimeCompiledCPlusPlus
17:04:29FromDiscord<jmgomez> oh, it kinda worked with the C target
17:04:38FromDiscord<Gumber> yeah it kind of works
17:04:45FromDiscord<Gumber> for toy examples
17:04:57FromDiscord<Gumber> but feel free to try and get it working for your purposes
17:05:21FromDiscord<Gumber> I haven't touched it in years which I'm pretty sure is the last time anyone worked on it
17:05:31FromDiscord<Gumber> before I tried using it
17:06:45FromDiscord<jmgomez> Okay, Im just playing around with the possibilities/workflows of nim. Thanks for the heads up
17:07:08FromDiscord<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:13FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=3CGE
17:30:17FromDiscord<demotomohiro> How about to use func like this?
17:31:59FromDiscord<geekrelief> In reply to @demotomohiro "https://play.nim-lang.org/#ix=3CGD": Yeah, that works nicely. Thanks!
17:35:37FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=3CGJ
18:21:48*Pyautogui joined #nim
18:31:55PyautoguiAny 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:04FromDiscord<haxscramper> Pyautogui[IRC]#0000\: about which C interop to choose?
19:17:09FromDiscord<haxscramper> probably futhark first, it just happen to be "just working" from what I've seen
19:17:22FromDiscord<haxscramper> c2nim is mostly a DIY solution in the end
19:17:29PyautoguiReally 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:46FromDiscord<tandy> i use SF Mono
19:22:05FromDiscord<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:28PMunchPyautogui, 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:36FromDiscord<exelotl> I can't stand ligatures lol
21:07:17FromDiscord<exelotl> even joining "fi" is just really distracting to me
21:28:38FromDiscord<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:56FromDiscord<bsdooby> when should I use `echo` vs. `stdout.write`?
21:31:16FromDiscord<ynfle (ynfle)> echo adds a newline and flushs the output for you
21:31:46FromDiscord<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:05FromDiscord<ynfle (ynfle)> @evoalg what's the context?
21:32:05FromDiscord<bsdooby> so it is better in every regards (because flushing is most of the time wanted anyways)...
21:32:39FromDiscord<ynfle (ynfle)> Ya, unless you don't want a newline
21:33:04FromDiscord<bsdooby> thx
21:33:54FromDiscord<ynfle (ynfle)> \:thumbsup\:
21:34:56FromDiscord<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:21FromDiscord<tandy> how can i find where code is in nim? nimsuggest obviously doesnt work
21:35:29FromDiscord<tandy> i wanna know where cstrings are converted to strings using `$`
21:38:01FromDiscord<Elegantbeef> Nimsuggest should work, but it'll bring you to the dollars header
21:38:04FromDiscord<Elegantbeef> https://github.com/nim-lang/Nim/blob/version-1-6/lib/system/dollars.nim#L45
21:38:15FromDiscord<Elegantbeef> You now need to look in the compilers CstrToStr impl
21:38:23FromDiscord<ynfle (ynfle)> @evoalg static means known at compile time
21:38:50FromDiscord<ynfle (ynfle)> @tandy, vscode has a nim extension that really works
21:39:07FromDiscord<Elegantbeef> Saem's nim extension is best ime
21:39:08FromDiscord<tandy> huh really
21:39:23FromDiscord<tandy> yeah im using nimsaems extension
21:39:25FromDiscord<tandy> it doesnt work tho lol
21:39:38FromDiscord<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:43FromDiscord<ynfle (ynfle)> Do you have nim configured correctly?
21:40:07FromDiscord<tandy> i believe so
21:40:19FromDiscord<Elegantbeef> Well in this case it needs to be known at compiler time since it's initing an array
21:40:26FromDiscord<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:29FromDiscord<Elegantbeef> compile time\ 😛
21:40:45FromDiscord<Elegantbeef> Generics cannot be instantiated at runtime, and arrays are generics in Nim
21:40:49FromDiscord<ynfle (ynfle)> Compiler standard time
21:41:05FromDiscord<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:26FromDiscord<evoalg> oh ok thank you all!
21:43:27FromDiscord<tandy> thank you beefe
21:47:04FromDiscord<tandy> huh
21:47:24FromDiscord<tandy> cstrtostr yields no results when search the compiler folder
21:47:35FromDiscord<tandy> its only in here
21:48:31FromDiscord<tandy> https://github.com/nim-lang/Nim/blob/devel/compiler/magicsys.nim
21:48:33FromDiscord<tandy> i found this
21:59:40FromDiscord<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:19FromDiscord<ynfle (ynfle)> What's wrong with importing it?
22:21:59FromDiscord<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:50FromDiscord<Elegantbeef> The core team want to make the system module even smaller so imports are good
22:26:07FromDiscord<evoalg> oh ok! ... nice ... I'll stop trying to make nim the same as python in my brain hehe
22:26:32FromDiscord<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