<< 05-10-2020 >>

00:24:58*arecacea1 quit (Read error: Connection reset by peer)
00:26:31*cyraxjoe quit (Quit: No Ping reply in 180 seconds.)
00:26:47*arecacea1 joined #nim
00:27:49*cyraxjoe joined #nim
00:47:10FromDiscord<Eleven> do i need to use spaces to indent?
00:47:53disruptekyou can use a source code filter to write tabs, but i wouldn't recommend it.
00:48:28FromDiscord<Eleven> why not?
00:48:55disruptekbecause you'll be a member of a shrinking minority and have trouble with the rest of the ecosystem.
00:49:24disruptekput this at the top of your file: #? replace(sub = "\t", by = " ")
00:49:42disruptekthen in a couple months, remove it and retab to spaces.
00:50:06FromDiscord<Eleven> calm, is only necessary a space?
00:50:19FromDiscord<Eleven> a unic space, lol
00:50:26disruptekwhat?
00:50:51disruptekyou can use any number of spaces. i recommend two.
00:50:57FromDiscord<Eleven> nothing, I'm praising
00:54:18FromDiscord<Eleven> how do I make a character lowercase?
00:54:56disruptekyour machine didn't come with upper and lower?
00:55:23FromDiscord<Eleven> no
00:56:03FromDiscord<exelotl> @Eleven see the strutils module: https://nim-lang.org/docs/strutils.html
00:57:58FromDiscord<iWonderAboutTuatara> @Elegant Beef I'm just writing competitive programming utility
00:58:21FromDiscord<iWonderAboutTuatara> when they give ints, they give whitespace seperated ints
00:58:30FromDiscord<iWonderAboutTuatara> w/ different lines containing different sets
00:58:57FromDiscord<iWonderAboutTuatara> I'd always know the input here
01:12:41FromDiscord<iWonderAboutTuatara> but is `mapIt(proc it) or map(x => proc x)` more idiom?
01:12:56FromDiscord<iWonderAboutTuatara> I personally prefer it for simplicity reasons
01:16:31FromDiscord<exelotl> I'd lean towards `it` for efficiency reasons (you avoid the overhead of calling a procedure)
01:19:30FromDiscord<exelotl> Though I haven't checked the generated code for closures, maybe it's such that the C compiler could easily inline it
01:43:55*apahl quit (Ping timeout: 240 seconds)
01:45:38FromDiscord<juan_carlos> arrow func is very efficient, been re written recently
01:45:51*apahl joined #nim
01:46:24FromDiscord<juan_carlos> mapit is just template to map, if I remember correctly
02:16:48*Tanger joined #nim
02:23:08FromDiscord<exelotl> Oh cool, that's good to know!
02:27:36*arecacea1 quit (Remote host closed the connection)
02:28:18*arecacea1 joined #nim
02:32:50FromDiscord<exelotl> Looks like mapit usually generates a loop, only falls back to map if you're working with closures https://github.com/nim-lang/Nim/blob/devel/lib/pure/collections/sequtils.nim#L958
02:50:05FromDiscord<iWonderAboutTuatara> is that faster or slower?
02:50:15disruptekyep.
02:50:21FromDiscord<iWonderAboutTuatara> thanks buddy
02:50:32disruptekain't no thang, dawg.
02:50:51FromDiscord<iWonderAboutTuatara> πŸ‘
02:53:18*rockcavera quit (Remote host closed the connection)
02:53:19*muffindrake quit (Ping timeout: 272 seconds)
02:55:06*muffindrake joined #nim
03:03:13FromDiscord<Avatarfighter> how often do you guys update your devel nim
03:03:35disrupteki update gitnim every 3 days or so.
03:03:44disruptek~gitnim
03:03:44disbotgitnim: 11https://gitnim.com/ -- choosenim for choosey nimions -- disruptek
03:04:42FromDiscord<Avatarfighter> i do not know why I am surprised that gitnim was made by you
03:04:50*fredrikhr quit (Ping timeout: 272 seconds)
03:05:16FromDiscord<Avatarfighter> disruptek how do you have so much time on your hands to make all this cool stuff?
03:05:26disruptekno job.
03:05:41FromDiscord<Avatarfighter> ah
03:05:44FromDiscord<Avatarfighter> that would indeed help
03:05:57disruptekgitnim isn't special; it's 100 lines.
03:06:03disruptekvery simple.
03:06:23FromDiscord<Rika> inb4 super dense lines
03:06:40disrupteknah.
03:06:44*fredrikhr joined #nim
03:07:04disruptekit's only 3 procs.
03:07:22FromDiscord<Rika> was joking
03:07:45disrupteksomeone should PR some enhancements.
03:09:27FromDiscord<flywind> What's the content of this? I'm curious. https://forum.nim-lang.org/t/6891#43115
03:10:33disruptekhonestly, leorize did all the work behind gitnim.
03:11:13disruptekflywind: dunno; a moderator has to reveal it i guess.
03:11:20*rockcavera joined #nim
03:11:57FromDiscord<flywind> Yea, we need more moderators I think.
03:12:20disruptekyard was made mod recently.
03:28:27FromDiscord<Avatarfighter> I'm excited to see this !!
03:28:44FromDiscord<Avatarfighter> I wonder where this funding is coming from
03:28:54FromDiscord<Rika> inb4 google
03:29:06FromDiscord<Rika> imagine that tho ngl that would be kinda funny
03:29:45FromDiscord<Avatarfighter> welp
03:29:50FromDiscord<Avatarfighter> I have found a bug with the forum
03:29:55FromDiscord<Rika> :ThonkDumb: which is
03:29:58FromDiscord<Avatarfighter> I just revealed the contents of the post
03:31:29FromDiscord<Avatarfighter> well that's fun
03:32:05FromDiscord<Avatarfighter> @flywind still interested in knowing the content of the post?
03:32:36FromDiscord<flywind> Yea, I hope it is not troll
03:32:43FromDiscord<Avatarfighter> not troll
03:32:45FromDiscord<Avatarfighter> well
03:32:50FromDiscord<Avatarfighter> <#371759607934353448>
03:36:38FromDiscord<Rika> the dude's dreaming
03:37:29FromDiscord<Avatarfighter> Its still exciting to see someone so passionate about nim
03:41:34disruptekif only passion paid the bills.
03:44:24FromDiscord<iWonderAboutTuatara> @disruptek what is gitnim?
03:44:36FromDiscord<iWonderAboutTuatara> As opposed to choosenim
03:45:19disruptekit's a tiny program that allows you to run `git nim` and see this:
03:45:23disruptekgit-nim on https://github.com/disruptek/gitnim for Nim 1.0.9
03:45:24disruptekspecify a branch; eg. `git nim 1.2.2` or `git nim origin/1.0.7`:
03:45:24disruptek 1.0.8  4ad5293d rm cruft
03:45:24disruptek 1.0.9  bcd6b419 update
03:45:25disruptek 1.2.6  43207c35 update
03:45:27disruptek 1.2.7  1fea8202 nightly 2020-09-29
03:45:29disruptek* 1.3.7  a3ce16d7 nightly 2020-10-03
03:45:31disruptek lambda  860a11ba add musl gcc
03:45:34disruptek master  83e8a4b2 remove from master
03:45:36disruptek tcc  1e3b2367 wip
03:45:39disruptek zig  962dae36 more hax
03:45:41disruptek remotes/origin/1.0.8  4ad5293d rm cruft
03:45:44disruptek remotes/origin/1.0.9  bcd6b419 update
03:45:46disruptek remotes/origin/1.2.6  43207c35 update
03:45:49disruptek remotes/origin/1.2.7  1fea8202 nightly 2020-09-29
03:45:51disruptek remotes/origin/1.3.5  984b6e22 nightly 2020-09-13
03:45:54disruptek remotes/origin/1.3.7  a3ce16d7 nightly 2020-10-03
03:45:56disruptek remotes/origin/lambda 860a11ba add musl gcc
03:45:59disruptek remotes/origin/master 6c5c1bf8 simplify
03:46:01disruptek
03:46:04disruptekor you can specify one of these tags; eg. `git nim latest`:
03:46:06disruptekdevel nightly development build
03:46:08*vicfred quit (Quit: Leaving)
03:46:09disrupteklatest latest development release
03:46:11disruptekstable stable production release
03:46:14disruptek
03:46:16disruptekbranches and tags correspond to binary distributions of nim.
03:46:40disruptekit exists because choosenim is retarded.
03:47:25disruptekgitnim is decentralized; anyone can create their own instance by simply forking the repo.
03:47:51FromDiscord<Rika> lol nice
03:48:42disruptekthe tool is loosely coupled to the version you build it with, so there are no portability issues; you built it, and it runs on your machine.
03:48:55disruptekif you have git, you have nim.
03:51:27*FromDiscord quit (Remote host closed the connection)
03:51:41*FromDiscord joined #nim
04:04:53*vicfred joined #nim
04:05:53*vicfred quit (Max SendQ exceeded)
04:06:01*supakeen quit (Quit: WeeChat 2.9)
04:06:22*vicfred joined #nim
04:06:40*supakeen joined #nim
04:13:03*thomasross quit (Ping timeout: 260 seconds)
04:14:49*lritter joined #nim
04:22:41disruptekactually, choosenim has been fairly stable in the last couple months. i think.
04:23:18FromDiscord<hobbledehoy> just wish choosenim would support arm
04:23:34disrupteki think it's on the way.
04:23:35FromDiscord<flywind> Really? It causes problems in windows.
04:23:50disruptekchoosenim? or arm?
04:23:55FromDiscord<Avatarfighter> does choosenim not support arm?
04:24:12FromDiscord<flywind> https://github.com/dom96/choosenim/issues/212
04:24:13disbotβž₯ Error: Unable to extract. Cannot create a file when that file already exists.
04:24:27disruptekhobbledehoy: you should create an arm fork of gitnim.
04:25:03disruptekguess i was wrong about choosenim.
04:25:04FromDiscord<hobbledehoy> If I can find the time I probably will
04:25:04FromDiscord<flywind> I rely on `choosenim` to switch Nim versions to test my program in windows. Now I have to delete all dlls when I want to switch Nim version.
04:25:10disruptekor, right, depending on how you look at it.
04:25:33disruptekflywind: you should create a windows fork of gitnim. πŸ˜‰
04:25:52disruptekthe other benefit of gitnim is that you can confirm the authenticity of the binaries before you run anything.
04:25:53FromDiscord<flywind> Yea, I will try.
04:25:58disruptekso you don't have to trust me.
04:26:17FromDiscord<Avatarfighter> does gitnim allow you to switch versions on the fly?
04:26:28disruptekyou can read the source of gitnim before you build it and you can match the compiler binary to the official releases.
04:26:41disruptekyes, you switch versions with `git nim <some version or sha>`.
04:26:53FromDiscord<Avatarfighter> ok that's cool
04:26:54disruptekor any ref, really.
04:27:31disruptek"it's just gitβ„’"
04:27:53FromDiscord<Avatarfighter> ahaha
04:28:04FromDiscord<Avatarfighter> the nim forum has a repo right?
04:28:33FromDiscord<flywind> !repo nimforum
04:28:34disbothttps://github.com/nim-lang/nimforum -- 9nimforum: 11Lightweight alternative to Discourse written in Nim 15 494⭐ 46🍴 7& 2 more...
04:29:16FromDiscord<Avatarfighter> I guess I'll fix the issue that lets you see moderated posts
04:29:25FromDiscord<flywind> lol
04:29:33FromDiscord<Avatarfighter> ahah
04:29:58disrupteki think it's more important to not see unmoderated posts.
04:30:36*sz0 joined #nim
04:30:55disruptekbut, you do you, buddy.
04:32:40FromDiscord<flywind> We won't see the moderated posts unless we click the profile of moderated users.
04:33:14FromDiscord<Avatarfighter> wait are unmoderated posts the ones that dont let you view it?
04:33:44FromDiscord<flywind> No,
04:34:45FromDiscord<flywind> When user first post something, the posts needs to be verified.
04:35:09FromDiscord<Avatarfighter> ohhh
04:35:12FromDiscord<Avatarfighter> that's interesting
04:35:37FromDiscord<flywind> Or some posts from troll
04:36:05FromDiscord<Avatarfighter> That's neat rn
04:36:08FromDiscord<Avatarfighter> af*
04:38:12FromDiscord<flywind> This user join at Jun 2019, but none of posts are displayed.
04:39:07FromDiscord<flywind> I guess this user may be forgotten by moderators.
04:39:35FromDiscord<flywind> or is troll
04:40:41FromDiscord<Avatarfighter> which user?
04:40:49FromDiscord<flywind> I mention before.
04:40:59FromDiscord<Avatarfighter> The one linked above right?
04:41:05FromDiscord<flywind> Yea
04:41:16FromDiscord<Avatarfighter> oh yeah the one I got that post from
04:41:31FromDiscord<Avatarfighter> yeah i think the mods just thought that the post was not serious
04:42:05FromDiscord<flywind> No I mean the posts before
04:42:32FromDiscord<flywind> The user has posted something since Jun 2019
04:42:55FromDiscord<flywind> But these comments are not displayed.
04:43:06FromDiscord<Avatarfighter> i will not lie i have no idea who we're talking about
04:43:34FromDiscord<flywind> https://media.discordapp.net/attachments/371759389889003532/762535424849608714/unknown.png
04:43:46FromDiscord<flywind> https://forum.nim-lang.org/profile/xendi
04:44:36FromDiscord<Avatarfighter> OHHH
04:44:45FromDiscord<Avatarfighter> I understand my bad
04:47:17FromDiscord<flywind> The user is forgotten by moderators or is troll or nimforum bug.
04:48:29FromDiscord<flywind> I guess
05:05:31*solitudesf joined #nim
05:17:01*waleee-cl quit (Quit: Connection closed for inactivity)
05:21:37*Q-Master joined #nim
05:26:44*hyiltiz quit (Ping timeout: 258 seconds)
05:35:55*nixfreak quit (Ping timeout: 240 seconds)
05:39:59*hyiltiz joined #nim
05:39:59*hyiltiz quit (Changing host)
05:39:59*hyiltiz joined #nim
05:43:04*nixfreak joined #nim
05:43:22*Vladar joined #nim
05:46:50*narimiran joined #nim
05:54:38FromDiscord<flywind> Now I think when you first post something, your ranking will become moderated and the comments before too.
05:54:50FromDiscord<flywind> (edit) 'something,' => 'something in Nim forum,'
05:57:12FromDiscord<Yardanico> yes, and also when you change your email
05:57:15FromDiscord<Yardanico> or not
05:57:35FromDiscord<Yardanico> I approved him now, but that post was a bit strange, so I didn't do it before
06:53:24*nature joined #nim
06:55:41*jjido joined #nim
06:56:29*jjido quit (Client Quit)
07:00:04*nature quit (Ping timeout: 256 seconds)
07:10:42*JustASlacker joined #nim
07:51:34*muffindrake quit (Quit: muffindrake)
08:09:18*sz0 quit (Quit: Connection closed for inactivity)
08:25:23*opal quit (Ping timeout: 240 seconds)
08:26:46*hnOsmium0001 quit (Quit: Connection closed for inactivity)
08:28:28*opal joined #nim
08:32:02*PMunch joined #nim
08:32:18*abm joined #nim
08:40:11*rockcavera is now known as Guest36140
08:40:12*Guest36140 quit (Killed (barjavel.freenode.net (Nickname regained by services)))
08:40:19*rockcavera joined #nim
08:40:48*Tanger quit (Quit: Leaving)
08:42:08*NimBot joined #nim
08:42:20*Vladar joined #nim
08:42:23*letto_ joined #nim
08:43:56*letto quit (Ping timeout: 240 seconds)
08:48:25*casaca quit (Ping timeout: 240 seconds)
08:48:43*casaca joined #nim
08:58:30narimiranhello?
08:58:37narimiranis there anybody out there?
08:59:23FromDiscord<Vindaar> _no, they're all gone..._
09:00:11PMunchYes?
09:02:09narimiranok, i was worried because for 3 hours nobody has written anything
09:02:16FromDiscord<Yardanico> yeah creepy
09:02:53PMunchTo be fair I just got here
09:04:19PMunchHmm, is it possible to set up an async pool on one thread?
09:05:25PMunchThis is the kind of stuff that would be super simple in my coroutine library..
09:05:56PMunchIt might be simple with async as well, but it's kinda hard to tell from the documentation
09:09:05Araqwhat kind of "pool"?
09:09:59PMunchWell I have one thread that I want to manage a cache. This thread will update entries in the cache behind the scenes and reply to requests over a channel
09:10:21PMunchBut I don't want to block the entire cache whenever it needs to update something
09:11:42PMunchSo I want to fetch the entries asynchronously
09:15:03PMunchHmm, I see the global dispatcher is a threadvar
09:34:22Araqso ... I need a new laptop, any recommendations?
09:34:46FromDiscord<Rika> do you have a specific requirement of specs and sizes and stuff
09:34:48PMunchI got the Thinkpad T480, pretty happy with that one
09:34:53Oddmongeri'm happy with dell latitude, but they are expensive
09:34:53FromDiscord<Rika> brand, os, etc
09:34:53Araqit needs to be good at compiling...
09:34:59FromDiscord<Yardanico> amd
09:35:10FromDiscord<Rika> amd is hard to come by still at this point of time
09:35:26Araqyeah should be an amd
09:35:29FromDiscord<Rika> if you really want to go amd you should still wait a few weeks or so and it should be ever so slightly better
09:35:30FromDiscord<Yardanico> I've seen some amd laptops already
09:35:38Oddmongerfor amd, you can forget dell
09:35:52FromDiscord<Yardanico> thread count go brr
09:36:11FromDiscord<Rika> i guess it depends on the user; i got an intel laptop because any amd laptop i saw had some missing feature i wasnt really willing to give up
09:36:30PMunchThere really aren't a lot of new Ryzen laptops though..
09:36:38euantoranoLenovo have a few Thinkpads with the new mobile Ryzens in the US, but they don't seem to be available in the UK yet - not sure about the rest of the EU
09:36:50PMunchAt least not without a beefy GPU added for that gaming performance
09:37:01FromDiscord<Rika> tfw not a gamer
09:37:21FromDiscord<Rika> laptop has integrated and some random quadro because there wasnt a config w/o it
09:37:57Araqhmm gaming is nice too
09:38:07Araqstill enjoy gaming
09:38:57PMunchYeah, but do you need like a Nvidia 2080Ti in your laptop?
09:39:26Araqno, I want some AMD specific GPU that integrates well with the CPU
09:39:32PMunchI mean I also enjoy gaming but I just recently updated from my ancient graphics card because it didn't support newer versions of OpenGL..
09:40:02FromDiscord<Yardanico> well mobile amd CPUs have an iGPU enough for light gaming
09:40:17PMunchHmm, seems like the thinkpads have AMD options as well now
09:40:35AraqI simply don't like the thinkpad's design, dunno why
09:40:40Araqlooks clumsy
09:40:45PMunchIt is a bit polarizing
09:40:48PMunchI really like it
09:40:55FromDiscord<Rika> not all thinkpads
09:41:30FromDiscord<Rika> the e series ("lower more budget tier" vs t series) is the only one i recall seeing with a current amd version? i dont remember
09:44:43Araqwhat about Acer, Asus, Dell, HP, Honor, Huwai, Lenovo, Razer...?
09:44:47Araqso many options
09:47:04FromDiscord<Rika> half or maybe 70% of those are gaming laptops, maybe you dont like their aesthetic
09:47:27FromDiscord<Rika> unless you do, then you got that goin for ya
09:53:12Araqhmm I need to go to some shop and try out the different laptop keyboards
09:53:37Araqcan't stand it when the keyboard doesn't feel good on my fingers...
09:54:52idfsame
09:55:39idfi have this cheap keyboard i got a while back for testing my raspberry pi, typing on it feels like typing on Moses' stone tablets
10:06:47FromDiscord<iWonderAboutTuatara> when I run Nim c -r filename.nim, it creates these annoying extension less files that showup in vscode
10:06:53FromDiscord<iWonderAboutTuatara> Wsl2 Ubuntu
10:06:58FromDiscord<iWonderAboutTuatara> No idea when or why this started
10:07:04FromDiscord<iWonderAboutTuatara> Or if it's always happened
10:08:45Araq'nim r filename.nim' helps but is currently wrong as it doesn't set the current directory properly
10:09:22FromDiscord<iWonderAboutTuatara> Wrong enough to affect anything?
10:10:30Araqwrong enough that I stopped using 'nim r'
10:10:40Araqfix should be one line though
10:10:55FromDiscord<Yardanico> @iWonderAboutTuatara they're not "annoying", these are the actual binaries which are executed
10:11:01FromDiscord<Yardanico> your code is being compiled into a binary
10:11:14FromDiscord<Yardanico> and on Linux binaries don't need to have an extension
10:11:25FromDiscord<iWonderAboutTuatara> That is extremely weird
10:11:31FromDiscord<Yardanico> You can always change the name of the binary with --out
10:11:41FromDiscord<iWonderAboutTuatara> Can I get them to delete after the code is run?
10:11:49FromDiscord<haxscramper> `nim c -r -o:file.bin file.nim` to generate `nim.bin` when compiling instead of extensionless
10:11:52FromDiscord<iWonderAboutTuatara> Not a fan of them on native windows either
10:11:56AraqYardanico: extensionless files are a design bug, can't git-ignore them easily
10:12:21FromDiscord<iWonderAboutTuatara> Good point
10:12:26FromDiscord<Yardanico> Well, why not make Nim add a ".bin" extension to binaries on Linux? :)
10:12:35FromDiscord<iWonderAboutTuatara> Can I get them to be deleted after the code is run though?
10:12:49FromDiscord<Yardanico> Write some script I guess
10:13:01FromDiscord<Yardanico> or a vscode build task or something
10:13:04FromDiscord<iWonderAboutTuatara> *never used a shell language in my life*
10:13:12FromDiscord<iWonderAboutTuatara> Vscode thing might be more doable
10:13:24FromDiscord<iWonderAboutTuatara> I use fish and not bash by the way
10:13:32FromDiscord<Yardanico> that doesn't change much
10:13:37FromDiscord<Vindaar> sent a code paste, see https://play.nim-lang.org/#ix=2zMS
10:13:45FromDiscord<Yardanico> yes but that's ugly :P
10:13:51FromDiscord<Yardanico> Although I've used that too
10:13:57FromDiscord<Vindaar> why is it ugly?
10:14:02FromDiscord<Yardanico> but with nim r you wouldn't need to do it anymore
10:14:02FromDiscord<Vindaar> pretty neat if you ask me
10:14:26FromDiscord<haxscramper> @Vindaar Yeah, until you get `Makefile` or some other file that also has no extensions
10:14:55FromDiscord<iWonderAboutTuatara> Is Nim r usable right now?
10:14:58FromDiscord<haxscramper> And then you start patching all your gitignores because now you started using `Dockerfile` and oh, no it has no extension so I need to fix that one tii
10:15:01FromDiscord<Yardanico> It's in devel
10:15:06FromDiscord<Yardanico> Will be in 1.4
10:15:14FromDiscord<iWonderAboutTuatara> Oh so I literally can't use it atm
10:15:23FromDiscord<Yardanico> You can install a devel version
10:15:35FromDiscord<iWonderAboutTuatara> Building from source is hard
10:15:43FromDiscord<Yardanico> You don't have to do it manually
10:15:46FromDiscord<haxscramper> Just `choosenim devel`
10:15:47FromDiscord<iWonderAboutTuatara> Oh that's good
10:15:49FromDiscord<iWonderAboutTuatara> Choosenim?
10:15:51FromDiscord<iWonderAboutTuatara> Oh excellent
10:16:03FromDiscord<iWonderAboutTuatara> What's in devel that's not in latest?
10:16:03FromDiscord<Yardanico> aren't you using wsl2 for Nim
10:16:06FromDiscord<iWonderAboutTuatara> Yes
10:16:15FromDiscord<Yardanico> devel is the current development version
10:16:18FromDiscord<iWonderAboutTuatara> Building is still not great even though it's a lot better
10:16:19FromDiscord<Vindaar> @haxscramper that's a decent point. But it's not much different from saying "oh, I don't want PDFs tracked by git. Except those papers and my manual". In reality things of course become more ugly
10:16:20FromDiscord<Yardanico> Not the latest stable release
10:16:42FromDiscord<iWonderAboutTuatara> Right, but what are the key changes?
10:16:49FromDiscord<Yardanico> for 1.4?
10:16:49Araqnope, it's totally different from .pdf files
10:16:52FromDiscord<iWonderAboutTuatara> Yeah
10:17:01FromDiscord<Yardanico> https://github.com/nim-lang/Nim/blob/devel/changelog.md
10:17:05Araqbecause both scripts that you want to be checked in as well binaries which you don't
10:17:10Araqare extensionless
10:19:00FromDiscord<iWonderAboutTuatara> That's pretty good
10:19:19FromDiscord<iWonderAboutTuatara> Loving the changes to the Nim script (never heard of it) and node/js backends
10:19:36FromDiscord<iWonderAboutTuatara> I'd really like to figure out how to get standalone c from Nim though
10:19:51FromDiscord<Vindaar> but I'm saying it's not _inherent_ to something being a binary or an extensionless script that by itself defines whether one wants it git tracked or not. Ambiguities are a thing and thus there will always be exceptions. It's just a question of choosing the easiest path to make those exceptions seem clear. But I'm going to be quiet about this now πŸ™‚
10:19:52FromDiscord<iWonderAboutTuatara> I tried doing what elegant beef said, it gave some error with gcc on their website
10:20:22FromDiscord<Yardanico> @iWonderAboutTuatara you don't need a lot, just nimbase and all of your C files made by Nim
10:20:36FromDiscord<iWonderAboutTuatara> The site let's you upload only 1 file
10:20:53Araqyou can use 'niminst' to produce platform specific C code
10:20:54FromDiscord<Yardanico> Yes, and you can merge them into one
10:21:08FromDiscord<mratsim> I just use a build/ folder and put all executables to build
10:21:14FromDiscord<Yardanico> @Araq @iWonderAboutTuatara is trying to submit code to Codeforces which doesn't support Nim
10:21:24FromDiscord<iWonderAboutTuatara> Yeah
10:21:29FromDiscord<Yardanico> So they are trying to use Nim's C or JS output
10:22:03FromDiscord<iWonderAboutTuatara> I thought c would be easy, given Nim compiles to c, but it is proving to be much harder
10:22:16FromDiscord<iWonderAboutTuatara> How do I merge nimbase w/ the Nim c output?
10:22:26FromDiscord<Yardanico> Just put them into one file, nimbase at the top
10:22:47FromDiscord<Yardanico> also you'll have to remove include nimbase from all of Nim C files
10:25:13FromDiscord<Yardanico> There also seem to be some different mergers for C/C++ for same purpose
10:27:03*opal quit (Ping timeout: 240 seconds)
10:29:01*opal joined #nim
10:29:51Araqmeh, so don't use "Codeforces"
10:29:59Araqsilly
10:30:32Araqand ask them kindly to support Nim
10:33:55FromDiscord<Yardanico> http://codeforces.com/blog/entry/78932 πŸ˜„
10:39:29*hogoe joined #nim
10:40:57hogoenim JS compiles so fast, it's really good for writing quick programs. if there was more scripting support for the JS backend like files etc it would be godlike
10:41:40hogoeyeah you could just use JS but its not as satisfying for some reason
10:42:07Araqmaybe because its syntax sucks and it lacks static typing, just a guess
10:42:14AraqXD
10:42:35hogoelol yeah
10:43:32FromDiscord<Yardanico> so, did anyone try https://plugins.jetbrains.com/plugin/15128-nim out yet?
10:43:38FromDiscord<Yardanico> asking for the second time πŸ˜›
10:43:43FromDiscord<Yardanico> maybe I should try it myself today
10:43:55hogoei did actually, its not very good, it cant parse very basic syntax
10:44:09hogoeoh thats a new one
10:44:28FromDiscord<Yardanico> yeah, it's made by a jetbrains employee so it's kinda official
10:44:37hogoethe more popular one called "Nim language support" is terrible
10:45:06FromDiscord<flywind> It can't auto complete keyword.
10:45:10FromDiscord<hobbledehoy> only thing that works for me is jumping to definition↡autotyping, documentation just doesn't work
10:45:19FromDiscord<hobbledehoy> hopefully it gets better
10:45:31FromDiscord<Yardanico> there's https://youtrack.jetbrains.com/issues/NIM
10:45:34hogoeim gonna try it now
10:45:37FromDiscord<Yardanico> for tracking issues with it
10:45:50FromDiscord<Yardanico> maybe they made it so that when Nim gets popular they'll release a full Nim IDE πŸ™‚
10:46:29hogoethey still havent made a rust one so idk
10:47:01FromDiscord<Yardanico> https://www.jetbrains.com/rust/
10:47:11FromDiscord<Yardanico> it's not a completely different IDE, but still
10:48:16FromDiscord<Yardanico> nim plugin doesn't seem to be open source though, lol
10:49:26Araqoh, had no idea it's official
10:49:38FromDiscord<Yardanico> yeah
10:49:39AraqI should contact them and help out with the grammar and stuff
10:49:43FromDiscord<Yardanico> it seems to be official
10:50:13*Trustable joined #nim
10:50:58FromDiscord<Yardanico> some context is in https://youtrack.jetbrains.com/issue/NIM-2
10:51:06FromDiscord<Yardanico> sent a long message, see http://ix.io/2zMZ
10:51:43FromGitter<StefanSalewski> Can some admin change the forum thread title please: "Massive Funding Coming To Nim". I feel fooled, and others may feel same.
10:53:20hogoelooks like only keywords are highlighted, not even true or false. it does recognize local references though, but not if using UFCS
10:53:44Araqhogoe, 'true' and 'false' are not keywords so that's correct
10:53:57FromDiscord<Yardanico> wonder if they'll use nimsuggest or not
10:54:55AraqStefanSalewski: our lovely forum software doesn't support title changes...
10:55:16FromGitter<StefanSalewski> OK, thanks. Bye.
10:56:19hogoereferences even work for object fields etc, thoguh if you give the same symbol 2 definitions in something like a when/else statement it breaks that entire symbol
10:57:04FromDiscord<Yardanico> well yeah, if they're not using nimsuggest they'll have to do A LOT of work
10:57:16FromDiscord<Yardanico> for example macros
10:57:42FromDiscord<Yardanico> how can you autocomplete definitions made by macros if you don't evaluate them πŸ˜›
10:59:16*hogoe quit (Remote host closed the connection)
11:06:55idfbruteforce it
11:08:11FromDiscord<Yardanico> how
11:09:35idfefficiently
11:33:24*D_ quit (Ping timeout: 272 seconds)
11:35:09PMunchHmm, I have a set of futures from getContent on an AsyncHttpClient, is there a way to evaluate whether any of them are done already?
11:35:26PMunchI can't do runForever as I also need to listen to a channel for any more data
11:35:31FromDiscord<Yardanico> finished proc
11:35:38FromDiscord<Yardanico> https://nim-lang.org/docs/asyncfutures.html#finished
11:35:59PMunchOh that actually does the rechecking?
11:36:06FromDiscord<Yardanico> wdym?
11:36:23FromDiscord<Yardanico> it just checks if the future was completed (either successfully or with failed) or not
11:36:30PMunchAh
11:36:36PMunchYeah that won't work
11:36:52PMunchI guess a poll and then a check might work..
11:36:54FromDiscord<Yardanico> well, then I didn't understand what you mean πŸ˜›
11:38:36PMunchWell a Future is an object with an iterator
11:38:44PMunchWhoops, didn't mean to send that
11:39:35PMunchAh, I see now that waitFor is basically just `while not fut.finished: poll()`
11:39:56PMunchSo I just need to check all my futures if any of them are finished
11:45:20*a_b_m joined #nim
11:48:26*abm quit (Ping timeout: 256 seconds)
11:50:46jkenI have this pattern in my application, where I have an `ApplicationLayer` types that has a number of procs that get passed to it on creation. `ApplicationLayer(init: initProc, destroy: destroyProc)) etc..
11:50:59jkenright now I declare all the procs, and then create an ApplicationLayer passing them in.
11:51:29jkenI know macros can help me write a better pattern around creating these layers, but I don't know where to begin.
11:51:31jkenAny tips?
11:54:22PMunchHmm, do you have an example of what you want it to look like, and what it looks like now?
11:55:21PMunchThis might be useful: https://peterme.net/metaprogramming-and-read-and-maintainability-in-nim.html it's how I write my macros at least
11:56:04jkenI don't know what I want it to look like.. I just feel there is a cleaner end result I can't get to without a macro of some kind, I don't know how to use macros really
11:56:17jkenI'll checkout that post.
11:58:34FromDiscord<Vindaar> jken: the general way of thinking about where macros can help you really boils down to: Identify the pattern in the code you keep writing over and over, figure out what information is the essential input and what can be deduced. Then try to unify all those code snippets that seem to repeat itself in exactly the same fashion. If you can, you should be able to generate the same with a macro
11:59:20PMunchOr often simply just a template
11:59:30FromDiscord<Vindaar> oh, definitely yes!
12:06:01*supakeen quit (Quit: WeeChat 2.9)
12:06:33*supakeen joined #nim
12:20:22FromDiscord<Clyybber> Araq: I recently got a new laptop that fits your criteria, dell g5 15 se
12:24:04*Kaivo joined #nim
12:31:36FromDiscord<Yardanico> wow amd gou
12:31:38FromDiscord<Yardanico> GPU*
12:31:44FromDiscord<Yardanico> full amd laptop
12:47:33*Vladar quit (Remote host closed the connection)
12:52:19ForumUpdaterBotNew thread by Slonik_az: -d:danger versus -d:release --checks:off, see https://forum.nim-lang.org/t/6892
12:53:14*Vladar joined #nim
13:02:26FromDiscord<slonik_az> > StefanSalewski: our lovely forum software doesn't support title changes...↡Araq: But at least there should be a mechanism to pull a thread down. It is clearly a click-bate and the context of the post does not correspond to the title. (It left foul taste in my mouth)
13:03:23*JustASlacker quit (Ping timeout: 240 seconds)
13:04:28*FromDiscord quit (Remote host closed the connection)
13:04:45*FromDiscord joined #nim
13:14:37*lritter quit (Ping timeout: 264 seconds)
13:14:45*D_ joined #nim
13:15:35*JustASlacker joined #nim
13:17:53FromDiscord<mratsim> agree, I want to update my Arraymancer v0.4 post :/
13:17:59FromDiscord<mratsim> I used to be able to do that
13:41:07*waleee-cl joined #nim
13:45:00*Mortir joined #nim
14:05:22FromDiscord<lqdev> is it possible to wrap a C destructor so that it's invoked automatically (`=destroy`)?
14:05:33FromDiscord<lqdev> do i just .importc it as a proc called `=destroy`?
14:05:51FromDiscord<Yardanico> idk if importc will work, but you can just call that destructor in your =destroy
14:05:53FromDiscord<Yardanico> that's how it's usually done
14:06:20FromDiscord<lqdev> that's what i thought but i was wondering if there's a shorter way of doing this :)
14:21:43FromDiscord<mratsim> proc `=destroy`(ctx: var MyLibContext){.importc:"foo_delete", header:"header.h".}
14:22:09FromDiscord<mratsim> but often that's on ptr object and you can't destroy ptr object so you need to wrap anyway
14:23:43FromDiscord<lqdev> hm. does `=destroy` work on ref objects without --gc:destructors-based memory management schemes?
14:23:47FromDiscord<lqdev> eg. on the default GC
14:26:49FromDiscord<mratsim> mmmh not sure, AFAIK finalizers were supposed to use destructors in the backend after a while
14:27:05FromDiscord<mratsim> I recommend you keep using the "new foo, finalizerFoo" syntax for now
14:30:56*nixfreak quit (Ping timeout: 240 seconds)
14:33:05*nixfreak joined #nim
14:45:08disrupteklqdev: no, it doesn't.
14:45:52*disruptek opens a vein.
14:46:38*arecacea1 quit (Remote host closed the connection)
14:47:02*arecacea1 joined #nim
14:54:53FromDiscord<lqdev> okay
14:55:06FromDiscord<lqdev> gonna use new(x, finalizer) then
14:56:00disrupteki would wrap it.
14:58:16*hnOsmium0001 joined #nim
15:00:42*Kaivo quit (Ping timeout: 265 seconds)
15:00:47*rockcavera is now known as Guest67612
15:00:47*Guest67612 quit (Killed (rajaniemi.freenode.net (Nickname regained by services)))
15:00:48*rockcavera joined #nim
15:01:47*apahl quit (Ping timeout: 240 seconds)
15:01:48disruptekAraq: how often do you find that a bug is demonstrated by a single package and none of the compiler test suite?
15:02:23*a_b_m quit (Quit: Leaving)
15:02:52*Kaivo joined #nim
15:02:57*apahl joined #nim
15:08:49FromDiscord<Yardanico> @disruptek it totally does work for ref objects with refc
15:09:53FromDiscord<Yardanico> https://play.nim-lang.org/#ix=2zOg
15:10:48FromDiscord<Yardanico> GC_fullCollect() is here because refc wouldn't collect it instantly πŸ™‚
15:10:55FromDiscord<lqdev> nice
15:11:28disruptekwho cares about refc?
15:11:41FromDiscord<Yardanico> lqdev was asking "without --gc:destructors-based memory management schemes?"
15:11:49FromDiscord<Yardanico> and I corrected you
15:11:55disruptekyeah, don't do that.
15:12:05FromDiscord<Yardanico> but yeah, no one cares about refc except status I guess πŸ˜›
15:12:10disruptekfuck 'em.
15:12:18disruptekarc is the future. stop using stupid mm.
15:12:49FromDiscord<lqdev> look mate. aglet didn't use to work with arc on 1.2.6 because of sink inference and i couldn't be arsed to fix it because refc is still the default
15:12:50disruptekthey have the resources to develop their own language. the rest of us need nim.
15:13:33Araqdisruptek, it still happens too often but got significantly better
15:14:07disrupteki would pull this bug into a test but it's annoyingly convoluted.
15:16:31disruptekbentley really doesn't like michael jackson.
15:17:13Araqwhy is https://github.com/nim-lang/Nim/pull/15488 red?
15:17:14disbotβž₯ const view types; WIP
15:17:21Araqit's green for me both on Linux and Windows
15:17:39disruptekprobably jsonutils.
15:18:09disruptekyou know i'm going to make you fix it, right?
15:20:06Araq Error: Cannot develop packages that are binaries only.
15:20:12*Araq sighs
15:20:15disrupteklol
15:20:41Araqwhat is a "binary only" package in Nimble's mind? I thought Nimble is for building Nim code
15:20:53disruptekanything that isn't a hybrid.
15:21:00disrupteki'm not sure what a hybrid is.
15:21:13disruptekcomment out the bin definition from the .nimble.
15:22:00Araqshashlick, please look at this
15:22:12disrupteky'know there's a package manager at version 1.0 now. been around for almost a year.
15:22:30Araqwhat is its name?
15:22:39disruptekthey call it nimph.
15:23:05disruptek!repo nimp
15:23:07disbothttps://github.com/yglukhov/nimpy -- 9nimpy: 11Nim - Python bridge 15 663⭐ 37🍴 7& 29 more...
15:23:17disrupteki guess c-blake's pm isn't out yet.
15:27:41*a_chou joined #nim
15:28:11*leorize joined #nim
15:31:48FromDiscord<shashlick> Araq - nimble develop does nothing for pure binary packages today
15:32:19Araqwhat is a "Pure binary package"?
15:33:05Araqor more to the point: why is there even a check for this in Nimble at all? "nimble develop", what do you think it should do, for every package, no matter the package's kind?
15:33:15FromDiscord<shashlick> A library needs to be added into the nimble index for others to import
15:33:27FromDiscord<shashlick> Same with a hybrid package
15:33:48disruptekwhat is a hybrid package?
15:34:06disruptekwhat is the nimble index?
15:34:17FromDiscord<shashlick> Nimble develop wasn't completed per dom96 - we can install it and link the binary
15:34:40FromDiscord<shashlick> Like if you nimble install a binary package
15:34:57FromDiscord<shashlick> Nimterop is a hybrid cause it provides a binary and nim files to import
15:35:20AraqI do remember now what a binary package is
15:35:28*tane joined #nim
15:35:32disrupteknimph has this problem, too. are you saying you can't `nimble develop nimph`?
15:35:34AraqI still don't see the connection to "nimble develop"
15:35:45FromDiscord<shashlick> Index is simply ~/.nimble/pkgs when typing on a phone
15:35:58FromDiscord<shashlick> There's no technical reason, just incomplete
15:37:07FromDiscord<shashlick> The only thought I have is whether develop should compile the binary and link it per usual - it's not in nimble pkgs but somewhere in the file system and can be moved
15:37:15FromDiscord<shashlick> But shouldn't be a problem really
15:38:03disruptekjesus.
15:39:30Araqhere is what I just did:
15:39:37Araqpackage X fails on my brach.
15:39:41Araqgit clone X
15:39:43Araqcd X
15:39:56Araqnimble develop # want it to have its dependencies ready
15:40:44Araqmaybe I should have used 'nimble install' but I don't want to install the package, I know it doesn't build with my Nim
15:41:36FromDiscord<shashlick> nimble install -d should work
15:41:44FromDiscord<shashlick> that only installs deps
15:41:57FromDiscord<shashlick> but i'll get develop working
15:42:17Araqah nice
15:42:33supakeenmrm
15:42:41Araq'nimble install -d', will remember, no need to rush
15:43:23supakeen(i think that's cleaner than separate develop command?)
15:43:37FromDiscord<shashlick> well, developing a binary package is a valid use case
15:43:57disruptekany use case is valid.
15:44:18disruptekwhen fascist package managers attack!
15:44:24FromDiscord<shashlick> or even a hybrid package for that matter - nimble develop links a hybrid package for imports but not the binary so it is not added to ~/.nimble/bin
15:44:33supakeendisruptek will make the package manager for the people?
15:44:49FromDiscord<shashlick> disruptek: is your hair long enough to be our stallman?
15:44:49disrupteki tried. no one files bugs on it.
15:44:57supakeenthat means its done
15:44:59disruptekshashlick: it's getting there.
15:45:28disrupteki don't think many people use nimph.
15:45:31FromDiscord<shashlick> i've been working on it as well but the better half is finally vetoing it
15:49:48Prestigedisruptek: I'll start using it.
15:51:00disruptekcool, lemme know what sucks.
15:52:30disruptekalso note https://github.com/disruptek/nimph/pull/140
15:52:31disbotβž₯ nimph 2.0
15:52:53ForumUpdaterBotNew thread by ElAfalw: Defects vs Exceptions, see https://forum.nim-lang.org/t/6893
15:57:35Prestigedisruptek: 2.0 seems cool. It mentions using git submodules, does that mean directly in the working project?
15:57:55disruptekyeah.
15:58:23PrestigeJust curious if there's a need to prevent multiple projects from cloning the same dep and version
15:58:27*haxscramper joined #nim
15:59:08disruptekwell, we can clone from the local repo or we can simply not clone it a second time at all.
15:59:50disrupteksymbolic links are right out for BDFL reasons. 🀣
16:00:06haxscramperI removed all dependencies on hmisc from pattern matching - you can try out standalone example here: https://wandbox.org/permlink/M9rxF6gDbW9qazt6
16:00:27haxscramperEven works with nim 0.20
16:06:05*thomasross joined #nim
16:12:32FromDiscord<JSGRANT> Don't know if it's been posted yet, but there's now an OFFICIAL Jetbrains extension for Intellij https://plugins.jetbrains.com/plugin/15128-nim
16:13:10FromDiscord<JSGRANT> preeeeeetty cool
16:13:58FromDiscord<shashlick> i'm planning on moving all compile time code in nimterop into a standalone executable so it can be used directly as well
16:14:19FromDiscord<shashlick> considering the wrapper tool is called toast, i'm thinking of some related name for this tool - any suggestions?
16:14:49FromDiscord<shashlick> i was thinking bake - build, make, bread related, but feel it might clash
16:14:57disruptekyeast
16:15:15FromDiscord<Clyybber> what would it do by itself?
16:15:40FromDiscord<shashlick> for starters, cross-platform file search - eventually downloading binaries from conan, git, jbb, etc.
16:15:52FromDiscord<shashlick> everything getheader does
16:16:42FromDiscord<Clyybber> is it worth extracting out?
16:16:51*leorize quit (Remote host closed the connection)
16:17:07leorize[m]1yes
16:17:23FromDiscord<Clyybber> +1 for yeast then
16:17:33FromDiscord<shashlick> you won't be forced to write nim code to use the functionality - plus compile time is very limited and slow in comparison
16:17:38*leorize joined #nim
16:18:04FromDiscord<shashlick> just see https://github.com/nimterop/nimterop/blob/master/nimterop/build/shell.nim for starters
16:18:50FromDiscord<shashlick> but anyway, that's longer term - right now, i need to get nimterop working on musl systems
16:19:07FromDiscord<shashlick> and they tend to use busybox find, wget, etc. which don't work like the standard versions
16:19:22FromDiscord<shashlick> i'd just use nimgrep but then i lose 1.0.x support since it doesn't have --follow
16:19:40disruptekdo you need me to write you a find?
16:19:52FromDiscord<shashlick> i wrote it after all - 20 lines
16:19:55*waleee-cl quit (Quit: Connection closed for inactivity)
16:20:04disruptekthank $deity πŸ˜„
16:20:09FromDiscord<shashlick> am going to make it a cligen tool with sub-commands
16:20:29disruptekso, 200 lines.
16:20:34FromDiscord<shashlick> so `tool find ...`, `tool jbb ...`, `tool conan ...`
16:20:54leorize[m]1what is missing from busybox find that you need?
16:21:01FromDiscord<shashlick> -regextype egrep
16:21:22FromDiscord<shashlick> https://github.com/nimterop/nimterop/blob/master/nimterop/build/shell.nim#L421
16:21:30FromDiscord<shashlick> i'd rather not do anything
16:21:54FromDiscord<shashlick> alpine does have `apk add find wget` but ya
16:22:03leorizewhy do you need regex?
16:22:14FromDiscord<Clyybber> echo $deity
16:22:20FromDiscord<shashlick> i'm searching for dll/so/header files
16:22:31FromDiscord<Clyybber> alehander92: bet that returns "" even for you :p
16:22:36leorize`-name` have basic glob pattern support
16:23:03leorize`-name *.h` and you get all .h files
16:23:20disruptekit's just not worth supporting n*find when you can just impl it yourself trivially.
16:23:25leorize`-name *.h -o -name *.hpp` and get .h/hpp
16:23:32leorizethis is POSIX
16:23:34FromDiscord<shashlick> https://github.com/nimterop/nimterop/blob/master/nimterop/build/getheader.nim#L390
16:23:43FromDiscord<shashlick> see lre further down
16:24:01disruptekagree, but nim isn't limited to posix.
16:24:13disruptekand further, it's more consistent.
16:24:27FromDiscord<shashlick> this has got to work across win/lin/osx/bsd/musl...
16:24:34leorizethe more you can reuse the better, less code means less maintainance
16:24:40disruptekleorize: why don't you use nimph?
16:24:53leorizebut for your use case I guess a custom tool si fine
16:25:03leorizedisruptek: I don't have projects that need it?
16:25:15disruptekWHY NOT
16:25:27FromDiscord<Clyybber> i don't even have projects that need nimble :p
16:25:58leorizesame lol
16:26:12disrupteksame. but it was not always thus.
16:28:21FromDiscord<Clyybber> disruptek: I forgot, did you do the cps alloc optimization?
16:28:30disruptekafaik, yes.
16:28:49disruptekit's been waiting on you, buddy.
16:28:53FromDiscord<Clyybber> oh shit
16:28:59FromDiscord<Clyybber> tell me what I need to fix
16:29:03FromDiscord<shashlick> anyway, what a waste of time - no new functionality for all this
16:29:27leorizeonce I got math figured out I can get back to working on my projects
16:29:53disruptekclyybber: i just assigned the ticket(s) to you.
16:30:36FromDiscord<shashlick> not a fan of yeast - any other ideas
16:30:41disruptekone simple description of a problem: when i turn symbol x into y.z it breaks stuff.
16:31:09FromDiscord<Clyybber> looks like a nfSem case
16:31:26FromDiscord<Clyybber> hmm actually no
16:31:30disrupteki don't know if this is fixed, either: https://github.com/disruptek/cps/issues/33
16:31:30disbotβž₯ arc crashes compiler or results in move(result, result)
16:33:01leorize@shashlick "loaf"
16:33:52FromDiscord<Clyybber> teig
16:34:11leorizeis this some german?
16:34:24disruptekbread
16:34:29FromDiscord<shashlick> loafer
16:34:34FromDiscord<Clyybber> its german for dough
16:34:35FromDiscord<shashlick> for the lazy
16:34:56FromDiscord<shashlick> get the lazy to dowork
16:35:02FromDiscord<shashlick> loafer find ...
16:35:17FromDiscord<Rika> why not pain xddddd
16:35:27FromDiscord<Clyybber> lol this
16:35:40leorizeyou can call it "cupboard" lol :P
16:36:11disruptekwhat don't you like about yeast? it has ast in it like toast...
16:36:21disrupteki thought it was rather clever.
16:36:33FromDiscord<shashlick> but this has nothing to do with wrapping, more about the pre-toasting process
16:36:57*disruptek yawns.
16:37:26FromDiscord<shashlick> having studious fun here
16:37:27FromDiscord<Rika> so is that a no to pain
16:37:30disruptekshashlick: i gotta know tonight,
16:37:35disruptekif you're alone tonight.
16:39:13FromDiscord<shashlick> pain could conflict with other tools, i'm more inclined towards loafer
16:40:58FromDiscord<shashlick> maybe just loaf - short and unlikely to conflict
16:41:06FromDiscord<shashlick> and precursor reasonable for toast
16:41:33FromDiscord<shashlick> you all can see how productive i've been off late
16:42:21*rockcavera quit (Ping timeout: 244 seconds)
16:51:27*abm joined #nim
16:54:07FromDiscord<Avatarfighter> I've been so unproductive recently
16:54:15FromDiscord<Avatarfighter> I just put on my programming t-shirt to inspire me
16:54:45FromDiscord<Yardanico> How dare you forget to wear programming gloves!
16:55:15idfwhat about the programming socks
16:55:18FromDiscord<Avatarfighter> Darn it I really did forget the programming gloves, too bad my Nim socks are still shipping smh
17:01:04FromDiscord<Yardanico> @idf they're outdated
17:01:17FromDiscord<Yardanico> You should also wear a programming crown when you write Nim
17:01:46FromDiscord<Yardanico> Or have a feew snakes near you with python
17:02:49FromDiscord<Rika> does that mean i have to get tetanus when i want to program in rust
17:03:50FromDiscord<Yardanico> you have to oxidize all of the metal in your house
17:04:27FromDiscord<Vindaar> and a lot of Julias next to you when you write Julia 🧐 🀨 better not write brainfuck then especially
17:04:54FromDiscord<Rika> do you have to be traveling to program in go
17:05:12FromDiscord<Yardanico> Go!
17:05:19FromDiscord<Vindaar> and lisp all the code you type when lisping πŸ™ƒ
17:05:33FromDiscord<Yardanico> I'll lispleep soon
17:07:23Oddmongeri'd rather like lips of Julia
17:08:15FromDiscord<Rika> i guess a lot of people are fucked out of programming in C#
17:09:40FromDiscord<juan_carlos> Stiff upper lip
17:14:17FromDiscord<Avatarfighter> darn it guess I can't write in python anymore
17:14:22FromDiscord<Avatarfighter> I'm lacking in the snake department
17:17:00*oculux quit (Ping timeout: 265 seconds)
17:22:03*oculux joined #nim
17:22:14*waleee-cl joined #nim
17:24:11*Mortir quit (Quit: leaving)
17:28:28disrupteki'm told i have too much snake.
17:29:31FromDiscord<Avatarfighter> 😳
17:31:56FromDiscord<Vindaar> I agree we need more camel than snake
17:32:57*nature joined #nim
17:37:17FromDiscord<juan_carlos> We need more ocaml ?.
17:38:34FromDiscord<Vindaar> nah, that replaced an e for an o. can't have that in our parts
17:38:56idfwe need more forthran
17:40:36*PMunch quit (Quit: leaving)
17:48:24*vicfred quit (Quit: Leaving)
17:48:39FromDiscord<Clyybber> forth or fortran; pick one
17:48:44idfboth
17:49:54FromDiscord<slonik_az> and rusty nails
17:57:20*Trustable quit (Remote host closed the connection)
17:58:12*Trustable joined #nim
17:59:04*abm quit (Quit: Leaving)
18:00:00*rockcavera joined #nim
18:00:18*rockcavera quit (Remote host closed the connection)
18:00:45*rockcavera joined #nim
18:10:41*abm joined #nim
18:11:51*vicfred joined #nim
18:15:21FromDiscord<juan_carlos> No Rust, it gives Tetanus.
18:33:11FromDiscord<Rika> > does that mean i have to get tetanus when i want to program in rust↡@Rika tfw
18:35:39idfyes
18:35:51idfngl getting tetanus suck
18:49:28*maxi81 joined #nim
18:50:26*JustASlacker quit (Ping timeout: 240 seconds)
18:50:32*maxi81 left #nim (#nim)
18:55:09FromDiscord<juan_carlos> Some of those who work Nodes, are the same that burn CPU cycles.
18:58:59*Jesin quit (Quit: Leaving)
19:07:04*Jesin joined #nim
19:09:41*arecacea1 quit (Remote host closed the connection)
19:10:29*arecacea1 joined #nim
19:10:35*JustASlacker joined #nim
19:27:56*apahl quit (Ping timeout: 240 seconds)
19:28:10*noonien quit (Quit: Connection closed for inactivity)
19:29:09*apahl joined #nim
19:29:40*a_chou quit (Ping timeout: 272 seconds)
19:33:43*leorize quit (Ping timeout: 240 seconds)
19:36:23*leorize joined #nim
19:43:23*JustASlacker quit (Ping timeout: 240 seconds)
19:49:06*a_chou joined #nim
19:49:43*luis joined #nim
19:52:37*luis quit (Remote host closed the connection)
19:52:50*luis joined #nim
19:55:38*luis quit (Remote host closed the connection)
19:57:43*leorize quit (Ping timeout: 240 seconds)
20:05:22*leorize joined #nim
20:08:25*a_chou quit (Ping timeout: 240 seconds)
20:11:11FromDiscord<shashlick> @leorize @dom96 - I think nimterop is finally ready to work on musl - all tests are passing
20:14:08*JustASlacker joined #nim
20:20:32FromDiscord<juan_carlos> Documentation links are grouped now, cool cool.
20:20:43*rusua_ joined #nim
20:22:59*literal_ joined #nim
20:23:43*leorize quit (Ping timeout: 240 seconds)
20:25:01*leorize joined #nim
20:25:52*JStoker quit (Ping timeout: 244 seconds)
20:25:52*rusua quit (Ping timeout: 244 seconds)
20:25:52*Jjp137 quit (Ping timeout: 244 seconds)
20:25:52*hpyc9 quit (Ping timeout: 244 seconds)
20:25:53*vqrs quit (Ping timeout: 244 seconds)
20:25:53*ee7[m] quit (Ping timeout: 244 seconds)
20:25:54*unclechu quit (Ping timeout: 244 seconds)
20:25:54*literal quit (Ping timeout: 244 seconds)
20:25:55*xet7 quit (Ping timeout: 244 seconds)
20:26:25*JustASlacker quit (Ping timeout: 240 seconds)
20:26:36*vqrs joined #nim
20:26:55*xet7 joined #nim
20:27:28*hipoint-yc9 joined #nim
20:27:28*JStoker joined #nim
20:27:30*JStoker quit (Changing host)
20:27:30*JStoker joined #nim
20:28:02FromDiscord<Avatarfighter> @shashlick curious to know but why are you targeting musl for nimterop?
20:28:21*unclechu joined #nim
20:29:33*ee7[m] joined #nim
20:31:50FromDiscord<Avatarfighter> or rather looking for compatibility
20:31:59FromDiscord<shashlick> For any user of nimterop who wants to target musl
20:32:07FromDiscord<Avatarfighter> that makes sense ahah
20:32:25FromDiscord<Avatarfighter> has there been growing interest for musl?
20:32:32FromDiscord<Avatarfighter> using musl with nim*
20:32:38FromDiscord<shashlick> If you used Julia binary builder, it was downloading the glibc binaries instead
20:33:10*narimiran quit (Ping timeout: 256 seconds)
20:33:25FromDiscord<shashlick> @dom96 wanted to ship a musl version of choosenim and it uses nimterop for nimarchive
20:33:39FromDiscord<Avatarfighter> ohhh
20:33:42FromDiscord<Avatarfighter> That's neat
20:34:20FromDiscord<shashlick> Changes were minimal but I ran into other issues in the alpine env
20:35:08*rockcavera quit (Killed (hitchcock.freenode.net (Nickname regained by services)))
20:35:09*rockcavera joined #nim
20:37:20*hipoint-yc9 quit (Quit: 420)
20:37:44*hpyc9 joined #nim
20:39:50*rockcavera quit (Ping timeout: 258 seconds)
20:40:31*rockcavera joined #nim
20:59:01*a_chou joined #nim
21:07:01*arecacea1 quit (Remote host closed the connection)
21:07:45*arecacea1 joined #nim
21:10:10*Vladar quit (Quit: Leaving)
21:15:52*solitudesf quit (Ping timeout: 258 seconds)
21:20:02FromDiscord<lakmatiol> I get a warning about NimSym and NimIdent being depracated
21:20:06FromDiscord<lakmatiol> what should I use instead?
21:21:41PrestigeRust
21:21:44*Prestige runs away
21:21:53FromDiscord<dom96> cool, can we get a PR for choosenim?
21:25:01FromDiscord<Rebel> How does the Jetbrains extension compare the to Nim extension for VSCode? If anyone has used it yet.
21:25:59PrestigeIt is available yet?
21:27:11FromDiscord<Rebel> Yes, scroll up a bit and you will see.
21:27:11FromDiscord<Rebel> Guess I will try it later and just compare
21:28:43FromDiscord<reilly> I'm 200% sure I asked pretty much exactly this before, but I can't remember what the answer was and can't find it. I'm using `nimble test` on a library I'm making that requires `-d:ssl`. How can I add the flag in this particular case?
21:31:36*haxscramper quit (Remote host closed the connection)
21:32:54FromDiscord<Rebel> If only Discord had a really good search function to easily search chat history....
21:33:12FromDiscord<reilly> Trust me, I tried.
21:33:43disruptekreilly: add it to someprojectname.nim.cfg
21:34:18disrupteksomeprojectname.nim.cfg is the name of the program you are compiling.
21:34:37disruptekalternatively, add it to nim.cfg, but don't check in nim.cfg.
21:35:42FromDiscord<reilly> I've tried that already, and I'm *sure* that's what the answer was last time too, but clearly I'm doing something wrong because it's not working.
21:36:16FromDiscord<reilly> First guess is maybe I need to put it in a particular place in the file structure?
21:36:16disruptekis the cfg adjacent to or above the program, in terms of directory?
21:36:33disruptekthe compiler looks in the project directory and any parents.
21:37:45FromDiscord<reilly> I've tried it in root (same place as the .nimble), `./tests`, and `./src`.
21:38:19Zevvwow what happened to the docs
21:38:21Zevv\o/
21:38:24disruptekwhat's the name of the filename for your program?
21:38:32*Trustable quit (Remote host closed the connection)
21:38:48disruptekif you lie to me, i will know. so don't lie.
21:39:08FromDiscord<reilly> Well, since I'm doing `nimble test`, I guess that would make it the default `test1.nim`.
21:39:30disruptekecho "--define:ssl" > test1.nim.cfg
21:39:42FromDiscord<reilly> And I should clarify, since I tried it in 3 directories, I just used `nim.cfg` as opposed to a prefixed one.
21:39:54disruptekdoesn't matter.
21:40:10disruptekso why do you think it's not working?
21:40:22FromDiscord<dom96> ``nimble test --debug`` and see if it shows you what commands its executing
21:42:18FromDiscord<reilly> I've tried `test1.nim.cfg`, containing either `--define:ssl` or just `-d:ssl` , in both root and `./tests` to no avail.
21:42:24disruptekthese docs are not easier to read, unfortunately.
21:42:39FromDiscord<reilly> I'm not sure I'm mentally prepared for the realization that I'm just a moron and forgetting some obvious thing.
21:42:53disruptekare you certain that ssl is not defined in your code?
21:43:26FromDiscord<reilly> Yes? I'm assuming you mean through pragmas, right? I don't even know how to use those.
21:43:43disruptekwhen defined(ssl): echo "ssl is definitely defined"
21:44:32disruptek~paste
21:44:32disbotpaste: 11a frowned-upon behavior in chat; please use a service such as https://play.nim-lang.org/ or http://ix.io/ or https://gist.github.com/ and supply us a URL instead. -- disruptek
21:44:38disruptekpaste us an error message, please.
21:45:54FromDiscord<reilly> Okay, I swear to you, I got distracted for a second and when I came back to get you that error message, it just worked.
21:46:25disruptekgood enough.
21:46:56disruptekprobably dom's fault.
21:49:30FromDiscord<reilly> So, I moved `test1.nim.cfg` into root, ran `nimble test` again, and received the expected `Compile with -d:ssl to enable` error, but I moved it right back into `./tests` and it's still not working, so uh... I guess you just have to let it cool before serving or something.
21:49:44*JustASlacker joined #nim
21:49:54disruptekadd -f to the compiler options.
21:50:18disruptekif it's not adjacent to the program filename, then it needs to be named nim.cfg.
21:51:20FromDiscord<reilly> Repeating the same experiment as before, but this time with `-f` added to `test1.nim.cfg`, it worked first try. Good to know, so hopefully this time I won't forget.
21:55:05*JustASlacker quit (Ping timeout: 240 seconds)
21:56:07FromDiscord<Avatarfighter> I'm kind of impressed by the jetbrains Nim plugin
21:57:31*nature quit (Ping timeout: 244 seconds)
21:59:44*tane quit (Quit: Leaving)
22:04:16PrestigeBetter than vscode's plugin?
22:04:49FromDiscord<Elegant Beef> I'm going to say no, it doesnt highlight pretty much anything as far as i can see
22:05:00FromDiscord<Elegant Beef> https://media.discordapp.net/attachments/371759389889003532/762797512091631667/unknown.png
22:05:04Prestigehm that's not good
22:05:33PrestigeI hope treesitter becomes a big thing for syntax highlighting
22:05:43FromDiscord<Elegant Beef> vs https://media.discordapp.net/attachments/371759389889003532/762797694698913812/unknown.png
22:05:46Prestige:wqa
22:05:49Prestigewoops
22:05:56FromDiscord<Elegant Beef> This isnt vim
22:06:13Prestigeaccidentally hit a macro key :P
22:06:14FromDiscord<Avatarfighter> oh yeah sorry i forgot to say for the state its in its good lol
22:06:25FromDiscord<Avatarfighter> it can't reference shit outside of the project files
22:06:32FromDiscord<Avatarfighter> but im excited
22:09:23FromDiscord<Vindaar> it starts with 'e', ends with 's' and has a Mac in between… πŸ˜‰
22:09:39FromDiscord<Avatarfighter> Epic Macintoshes ?
22:09:43FromDiscord<Elegant Beef> Emaculates?
22:10:15FromDiscord<Vindaar> 🀣
22:14:13*hoek quit (Ping timeout: 272 seconds)
22:17:01*hoek joined #nim
22:17:29*a_chou quit (Ping timeout: 260 seconds)
22:19:28*Jjp137 joined #nim
22:21:49*matlock quit (Ping timeout: 272 seconds)
22:23:38*matlock joined #nim
22:28:58*arecacea1 quit (Remote host closed the connection)
22:29:33*arecacea1 joined #nim
22:29:50FromDiscord<Clyybber> @Elegant Beef your background looks like mildly folded bedsheet
22:29:58FromDiscord<Clyybber> how can you
22:30:08FromDiscord<Elegant Beef> Hey it's regoliith's stock background
22:30:55FromDiscord<Elegant Beef> Look at it! It's glorious https://media.discordapp.net/attachments/371759389889003532/762804032762413076/screenshot-remontoire.png
22:34:02Zevvit is, it is!
22:34:09ZevvI can see my house!
22:34:32FromDiscord<Avatarfighter> lmao
22:34:39FromDiscord<Avatarfighter> i can see my bedsheets from here!
22:39:56ZevvTodays update: http://zevv.nl/div/2020-10-06%2000-38-49.mp4
22:41:22disruptekdoes this help someone?
22:41:22PrestigeNice
22:41:58Zevvit helps my ego, is that enough?
22:42:49Zevvlook man, at all those numbers
22:42:53Zevvsoo many numbers there
22:43:26Zevvyou're looking in time spent in individual OpenGL call of HBO max running in android
22:43:29FromDiscord<Clyybber> Zevv thats cool
22:43:45Zevvit is, right!
22:43:49FromDiscord<Elegant Beef> I was going to ask what device, cause i seen that 500mhz and went "Huh"
22:44:12FromDiscord<Elegant Beef> Now label each block with the appropriate information when zoomed πŸ˜„
22:44:41Zevvyeah the real thing has the opengl call names on the left, but here it's still identifiers
22:44:58Zevvoh the individual blocks. Yeah I had that but took it out
22:45:00Zevvtoo much noise
22:45:55FromDiscord<Elegant Beef> I mean only when zoomed in
22:46:16FromDiscord<Clyybber> Zevv did u nuke the repo again? or hide it somewhere?
22:46:22Zevvhid it.
22:46:32ZevvI'm making this in my free time but use it at $customer
22:46:37FromDiscord<Clyybber> just wanted to go star it :}
22:46:42ZevvI'm going to show them how useful it is
22:46:49Zevvand if they want it, they pay me
22:46:52FromDiscord<Clyybber> ohoo
22:47:05Zevvfor a special hourly fee
22:47:49Zevvthis kind of beats manually going over 2M line log files
22:48:34FromDiscord<Avatarfighter> psh
22:48:43FromDiscord<Avatarfighter> who wouldn't want to manually read a 2M line file??
22:49:36Zevvme! me!
22:50:12voidpiZevv: nice
22:54:35FromDiscord<Vindaar> pretty neat, Zevv. I can relate to "let me hack something together for _my_ needs", hehe
22:58:27FromDiscord<Avatarfighter> Zevv: not to be that guy but what was the thing that you showed in the video?
23:04:58*abm quit (Read error: Connection reset by peer)
23:07:33FromDiscord<Elegant Beef> It's a profiler
23:08:18FromDiscord<Elegant Beef> Each block is a function call and the x size is the time spent on that operation
23:08:24FromDiscord<Elegant Beef> or atleast how it should be πŸ˜„
23:29:47*a_chou joined #nim
23:48:38*vicfred quit (Quit: Leaving)
23:54:46*dannyhpy joined #nim
23:55:07*dannyhpy left #nim (#nim)