<< 29-11-2021 >>

00:05:12*tk quit (Quit: Well, this is unexpected.)
00:05:36*tk joined #nim
00:25:42FromDiscord<evoalg> In reply to @hmmm "oioi I want to": https://play.nim-lang.org/#ix=3Gqz ... I kinda like the first one maybe
00:29:29FromDiscord<Elegantbeef> Best is up to you
00:32:18FromDiscord<evoalg> I like hearing that!
00:42:54*adium joined #nim
00:46:30*krux02 quit (Remote host closed the connection)
01:04:12FromDiscord<TryAngle> sent a code paste, see https://play.nim-lang.org/#ix=3GqE
01:04:44FromDiscord<TryAngle> (edit) "https://play.nim-lang.org/#ix=3GqE" => "https://play.nim-lang.org/#ix=3GqF"
01:05:48FromDiscord<ynfle (ynfle)> It could be nimlsp is compiled with an older version of nim
01:15:18*arkurious quit (Quit: Leaving)
01:26:08FromDiscord<Marisol> What's `doAssert` is for? Is it for unit testing?
01:27:49FromDiscord<Elegantbeef> It's an assertion that can never be turned off
01:33:40FromDiscord<Marisol> Ok so if the condition fails it won't compile, right? No need to make a separate unit test anymore
01:34:25FromDiscord<Elegantbeef> Well if it's a compile time statement yes, otherwise it's a runtime check
01:35:03FromDiscord<Marisol> Can check runtime? What happens if it fails on runtime... Just crash?
01:35:24FromDiscord<Elegantbeef> It raises the defect and closes
01:35:42FromDiscord<Elegantbeef> Which is what you want when you use doAssert
01:36:08FromDiscord<Elegantbeef> And no you do not want to catch the defect
01:41:40FromDiscord<evoalg> Ah ok I just looked it up, `assert` is not checked if compiled with `-d:danger` or `--assertions:off` but `doAssert` is always checked ... but it's only checked at that line right and not all the time? ... but `var a: 2..5` for eg would be checked all the time?
01:42:09FromDiscord<Rika> "at the line"?
01:42:18FromDiscord<Rika> only on execution yes
01:42:19FromDiscord<Marisol> Hmm ok. I still don't understand what we're using it for
01:42:20FromDiscord<Elegantbeef> Nope subrange type is not checked all the time
01:42:23FromDiscord<Rika> same with var a
01:42:43FromDiscord<Elegantbeef> You pretty much never use `doAssert`
01:42:54FromDiscord<Rika> In reply to @Marisol "Hmm ok. I still": guaranteed assert `doassert` vs sanity check assert `assert` i guess
01:43:19FromDiscord<Rika> tho i guess you would want sanity checks on all the time as well so
01:43:34FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3GqM
01:43:34FromDiscord<Rika> i guess either use doassert or -d:danger --assertions:on
01:43:50FromDiscord<Rika> or never use -d:danger lmfao
01:44:52FromDiscord<Elegantbeef> Eh if you dont account for defects you deserve not having runnable code 😛
01:45:22FromDiscord<Rika> ok
01:45:36FromDiscord<Rika> ill make all my exceptions defects no matter what then
01:45:44FromDiscord<Rika> that way no errors ever!
01:45:52FromDiscord<Elegantbeef> !remindme never to use rika's code
01:46:04FromDiscord<Rika> `raise Defect(nil)`?
01:46:44FromDiscord<Elegantbeef> !ban Rika
01:47:01FromDiscord<Rika> haha u aint a mod
01:47:14FromDiscord<Elegantbeef> Of course not cause i'd clean this place up! 😛
01:47:15FromDiscord<Marisol> Need to dig more library source codes. I swear I saw doAssert all the time
01:47:32FromDiscord<Rika> yeah doassert and assert differences are vague id say
01:47:42FromDiscord<Elegantbeef> The issue with `doAssert` is it cannot be turned off so can be a detriment on performance
01:47:55FromDiscord<Rika> just like beef is
01:48:46FromDiscord<konsumlamm> In reply to @Marisol "Need to dig more": maybe you saw it in unit tests?
01:58:53FromDiscord<evoalg> what I mean is that `var a: 2..5` will be checked every time a is assigned to, but `assert a in 2..5` will only be checked on that line that the assertion in on (but if "a" get's assigned to later on in the program) ... have I got that right?
01:59:13FromDiscord<Rika> yes
01:59:19FromDiscord<evoalg> nice!
01:59:43FromDiscord<evoalg> that's only like the 2nd time I've got something right
01:59:58FromDiscord<Elegantbeef> You'll get 3 things eventually
02:01:24FromDiscord<evoalg> I appreciate your faith in me
02:01:27FromDiscord<Rika> unfortunate that you havent yet, beef
02:01:55FromDiscord<Elegantbeef> Eh 3 lefts make a right
02:06:08FromDiscord<ynfle (ynfle)> Nah
02:06:48FromDiscord<Rika> -3 != 1 though
02:08:36FromDiscord<Elegantbeef> Sure but turning is a relative operation so the resultant vector is perpendicular to my current direction, which means with three rotations i'll `dot(forward, originalRight) == 1`
02:09:14FromDiscord<Elegantbeef> Methinks the math checks out
02:09:32FromDiscord<evoalg> doAssert confirms it
02:09:44FromDiscord<Elegantbeef> Ah see evo is right 3 times now
02:10:13FromDiscord<evoalg> so you were right that I would be right 3 times?
02:10:29FromDiscord<Elegantbeef> No clue i dont have a degree in rightology
02:12:01FromDiscord<Rika> truth is absolute though xddd
02:14:42FromDiscord<Marisol> In reply to @konsumlamm "maybe you saw it": Here for example https://github.com/planety/prologue/blob/devel/src/prologue/validater/validater.nim
02:15:08FromDiscord<Elegantbeef> Those `doAsserts` are used in runnable tests
02:15:18FromDiscord<Elegantbeef> They're another line of testing in this case
02:15:28FromDiscord<Elegantbeef> runnable examples i mea
02:20:35FromDiscord<Marisol> So runnableExamples isn't part of the code... Read somewhere that it's only used for docs?
02:21:44FromDiscord<Rika> not really "only"
02:21:50FromDiscord<Rika> also for tests afaik
02:23:33FromDiscord<Marisol> Ok thanks. Will start writing tests
02:36:49*neurocyte0132889 quit (Ping timeout: 256 seconds)
02:40:35FromDiscord<Elegantbeef> runnable examples is for docs and another line of tests really
02:41:02FromDiscord<Elegantbeef> You have examples that you know compile and are correct
02:41:42*rockcavera joined #nim
02:41:42*rockcavera quit (Changing host)
02:41:42*rockcavera joined #nim
02:41:54FromDiscord<Elegantbeef> When you use nim doc gen the examples are shown in a code block
02:44:04FromDiscord<Marisol> We have built in doc generator? Cool
02:44:37FromDiscord<Elegantbeef> Yep the nim docs are generated using the docgen
03:44:20FromDiscord<evoalg> `"foo".toSeq` produces `@['f', 'o', 'o']` ... but if I want to split to a seq of strings characters instead of chars, I could do this `"foo".toSeq.join(",").split(',')` which produces `@["f", "o", "o"]` but is there an easier way?
03:46:00FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3Gr4
03:46:11FromDiscord<evoalg> ooooo thank!
04:06:02*supakeen quit (Quit: WeeChat 3.3)
04:06:31*supakeen joined #nim
04:14:46*rockcavera quit (Remote host closed the connection)
05:20:23NimEventerNew post on r/nim by miran1: Advent of Nim 2021, see https://reddit.com/r/nim/comments/r4objm/advent_of_nim_2021/
06:02:19*NimBot joined #nim
06:02:34*ehmry joined #nim
06:02:37*def-- is now known as def-
06:03:32*dom96 joined #nim
06:05:55*syl joined #nim
06:06:24*mjsir911 quit (*.net *.split)
06:06:41*mjsir911 joined #nim
06:06:44*mjsir911 quit (Changing host)
06:06:44*mjsir911 joined #nim
06:09:53*def- quit (Ping timeout: 256 seconds)
06:09:53*def-- joined #nim
06:10:17*def-- is now known as def-
07:50:11arkanoidWhat would be the difference from writing a python program and compile it with nuitka (https://nuitka.net/pages/overview.html), or write the same program in nim but using a lot of nimpy?
07:51:53arkanoidIf I got it correctly both ends up creating C code that call libpython directly
09:03:41FromDiscord<Slava0135> https://blog.jetbrains.com/blog/2021/11/29/welcome-to-fleet/ hope we will get Nim support as well
09:04:35*k0ta left #nim (#nim)
09:27:19arkanoidcool!
10:12:11FromDiscord<evoalg> In reply to @arkanoid "What would be the": Have you tried it? I tried it but it seems really slow compared to Nim
10:13:45arkanoidevoalg, it seems to me that should be quite 1:1. Once you start running python code via nimpy and passing PyObjects between functions, it's just python without a .py script. Nuitka should be doing exactly the same
10:15:29FromDiscord<evoalg> ahh sorry I was comparing standard python converted to binary via nuitka compared to nim ... I didn't use nimpy or anything in my test
10:16:27FromDiscord<enthus1ast> what do you need from the python world?
10:17:26arkanoidenthus1ast scientific stack, numpy, pandas, other. I know about arraymancer and datamancer, but I need to do string manipulation
10:19:36FromDiscord<hmmm> hey I was testing one of my apps on wsl linux and it crashes at cannot open: file.txt IOERROR. Do I need to disinfect windows files in some way to make linux digest them?
10:23:12FromDiscord<hmmm> yea linux hates windows stuff, if I nano file.txt it slaps a huge red banner [file.txt is unwritable]
10:26:47FromDiscord<enthus1ast> @hmmm\: have you cd'ed into the correct folder?
10:28:00FromDiscord<hmmm> yea, apparently it's something having to do with the line endings of windows and linux being different. I just slapped all the files needed by the app in windows on the linux filesystem. Apparently I need to convert them in some way
10:33:57FromDiscord<evoalg> So if you used dos2unix on those files in a linux terminal then it would work?
10:35:45FromDiscord<hmmm> I was doing just that and surprisingly doesn't work, it says "converting file.txt to Unix format... but it actually doesn't! lol. Anyway I confirmed the problem is about line endings because I deleted one of the log files, touched a new one and that part of the program works
10:36:28FromDiscord<hmmm> I think notepad++ has a nifty EOL utility but I don't want to install it just for that lol. Maybe I'll look into VScode or better sublimetext facilities
10:37:05FromDiscord<enthus1ast> all major editors etc can read both nowadays
10:37:14FromDiscord<hmmm> and can save both ways?
10:37:25FromDiscord<enthus1ast> idk
10:38:17FromDiscord<enthus1ast> the line handling procs in nim also should be able to handle both
10:38:39FromDiscord<hmmm> I think nim it's fine, it's just linux that hates that stuff
10:38:56FromDiscord<enthus1ast> can you try to open with vimß
10:38:58FromDiscord<enthus1ast> ?
10:39:22FromDiscord<hmmm> yea it opens normally
10:39:28FromDiscord<hmmm> nano slaps the warning tho
10:39:32FromDiscord<enthus1ast> then nano is just shit
10:39:35FromDiscord<hmmm> lol
10:39:49FromDiscord<hmmm> yea but the problem is that the program still crashes in the non log part
10:40:03FromDiscord<enthus1ast> which program?
10:40:05FromDiscord<evoalg> if you do `cat -A file.txt` can you see the line endings?
10:40:51FromDiscord<hmmm> no line endings I can see with cat -A
10:41:47FromDiscord<evoalg> you can't? ... do you have gnu cat?
10:42:01FromDiscord<hmmm> hmm
10:42:08FromDiscord<hmmm> I think I have the normal cat lol
10:42:11FromDiscord<hmmm> how do I check
10:43:21FromDiscord<evoalg> `cat --version`
10:43:43FromDiscord<hmmm> yea cat GNU coreutils 9.0
10:44:58*Colt quit (Quit: Leaving)
10:45:51FromDiscord<evoalg> does the text file contain ascii or unicode?
10:48:23FromDiscord<hmmm> nah it's very simple lol https://media.discordapp.net/attachments/371759389889003532/914830140993855518/test.PNG
10:51:06FromDiscord<hmmm> honestly dos2unix should work but doesn't, sublimetext and vscode have painful settings that don't toggle and I don't absolutely want to install notepad++. The situation is dire
10:52:31FromDiscord<hmmm> oh
10:52:32FromDiscord<evoalg> So file.txt contains just TEST but it's crashing your nim app?
10:52:37FromDiscord<hmmm> this one liner solved it: awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt
10:52:44FromDiscord<hmmm> don't know what it does but it works lol
10:53:16FromDiscord<enthus1ast> just testet, nano has no troubles read and write files created with notepad
10:53:22FromDiscord<enthus1ast> must be something else
10:53:43FromDiscord<hmmm> https://media.discordapp.net/attachments/371759389889003532/914831483330494464/tested.PNG
10:54:02FromDiscord<evoalg> \r$ is windows end of line, and $ is unix, so that awk one liner just get's rid on the \r
10:54:17FromDiscord<enthus1ast> maybe the path gives troubles
10:54:21FromDiscord<hmmm> that's cool
10:54:23FromDiscord<enthus1ast> can you send a\:↵pwd
10:54:47FromDiscord<hmmm> wait I'll first test the app with converted files
10:54:48FromDiscord<hmmm> should work
10:55:07FromDiscord<enthus1ast> bet you try to access win from linux side or other way around
10:56:52FromDiscord<hmmm> yea
10:56:54FromDiscord<hmmm> works perfectly
10:57:01FromDiscord<hmmm> it was the line endings
10:57:42FromDiscord<hmmm> so apparently the entire stuff it's one awk line....why dos2unix fails to apply a single awk line it's strange to me
10:58:28FromDiscord<enthus1ast> i think there's something else going on
10:58:42FromDiscord<enthus1ast> never had troubles with line endings since years
10:59:16FromDiscord<enthus1ast> and i use wsl extensively
10:59:21*Colt joined #nim
10:59:42FromDiscord<hmmm> don't know, if nim gives IOERROR trying to write to a file, nano says it's unwritable, after the awk nano stfus and nim stops erroring, I'd say it's the line endings
11:00:36FromDiscord<enthus1ast> maybe it was able to change ownership or access rights
11:00:37FromDiscord<enthus1ast> idk
11:00:43FromDiscord<enthus1ast> but good that it works for you
11:01:44FromDiscord<hmmm> well I'm happy except I need to find a way to mass convert files I want to test on windows
11:02:00FromDiscord<hmmm> maybe this is the time to actually learn some bash magicks
11:02:08arkanoidhow can I call a function that starts with "_" character in nimpy?
11:07:55FromDiscord<hmmm> oh nice found the sublimetext toggle, now we happy https://media.discordapp.net/attachments/371759389889003532/914835057380823100/sublimetext.png
11:08:04FromDiscord<hmmm> 🥳
11:21:41arkanoidsolved (getAttr)
11:31:58FromDiscord<pietroppeter> @dom96 any thoughts on plausible analytics for website and forum? see https://forum.nim-lang.org/t/7439#56338
12:05:29FromDiscord<Steffen> sent a code paste, see https://play.nim-lang.org/#ix=3GsN
12:06:02*supakeen quit (Quit: WeeChat 3.3)
12:06:11FromDiscord<Steffen> and I have no clue how to fix that
12:06:31*supakeen joined #nim
12:07:47arkanoidwhy nimlsp doesn't come with instruction for vscode, that is the most used nim ide according to stats? https://github.com/PMunch/nimlsp
12:08:35arkanoidoh, there's a PR https://github.com/PMunch/nimlsp/pull/81
12:11:27FromDiscord<Steffen> gah, ok, I got it
12:41:52FromDiscord<hmmm> is it possible that in calling osproc execProcessif if one of the args in the openarray has a space in it like"-option x" it can possibly lead to form the wrong command?
12:47:02FromDiscord<hmmm> hmm seems like it, I just switched to execCmd that takes args in freeform and it works. Still I'd like to use execProcess more since it's more comfy and has better options
13:02:07*kayabaNerve_ joined #nim
13:03:01*kayabaNerve quit (Killed (NickServ (GHOST command used by kayabaNerve_)))
13:03:04*kayabaNerve_ is now known as kayabaNerve
13:09:29*src joined #nim
13:10:46NimEventerNew thread by Kobi: Question: How to limit concurrent async futures?, see https://forum.nim-lang.org/t/8665
13:13:19*PMunch joined #nim
13:34:24arkanoidjust tried building python from source, static linking libpython.a, import nimpy and run some python code. It works! pldd shows no dynamically loaded libs and release + opt:size results in a 828KB executable size
13:51:30FromDiscord<hmmm> uh oh apparently there was an entire proc dedicated to my problems named quoteshell() in os
13:58:42FromDiscord<hmmm> good old timmy was fighting the good fight: https://github.com/nim-lang/Nim/pull/8272
14:05:14FromDiscord<dom96> In reply to @pietroppeter "<@132595483838251008> any thoughts on": happy to accept a PR to add support for them in NimForum 🙂
14:06:09FromDiscord<dom96> But I'd keep GAnalytics on the forum we have in prod, we can add Plausible as an additional one though
14:07:26*arkurious joined #nim
14:31:39*xet7 quit (Quit: Leaving)
14:32:46*xet7 joined #nim
14:37:19*rockcavera joined #nim
14:37:19*rockcavera quit (Changing host)
14:37:20*rockcavera joined #nim
15:40:34FromDiscord<UN533N_5PY> https://nimble.directory/search?query=test↵something is wrong with nimble.directory
15:43:02FromDiscord<UN533N_5PY> Getting a 502 Gateway error
15:49:25FromDiscord<pietroppeter> In reply to @dom96 "happy to accept a": ok that I can do (PR for plausible in nimForum)
15:51:03FromDiscord<pietroppeter> In reply to @dom96 "But I'd keep GAnalytics": adding plausible fot forum in prod: what are the total monthly views on the biggest recent month? with my plausible subscription we could go up to 100K. What about the website? what is an estimate top monthly view for website?
16:21:41FromDiscord<jetlennit> hey! does anyone know if there's already been a push towards a spotify api wrapper in nim? i was thinking about making one and wanted to see if it had been done already
16:49:29FromDiscord<dom96> oh, I forgot this isn't free. Are there any Google Analytics alternatives that are free (or at least free for open source?)
16:54:46nrds<Prestige99> https://nimble.directory/ is down eh?
16:54:54nrds<Prestige99> 502 bad gateway
16:56:40FromDiscord<dom96> ping federico3
17:13:02FromDiscord<Knightmare Legion> Hello, is there a way for me to add bounds on generic types on stable /I know that this is possible with `concept` but it's unstable/?
17:50:24FromDiscord<hmmm> oh so cute, micro the linux editor understands nim synthax :nimAngry:
17:51:39FromDiscord<hmmm> you can also set to build and run with F7 or Ctrl + r making it on par with our best tooling solutions 😆
18:03:19nrds<Prestige99> how about showing errors etc?
18:13:38*terminalpusher joined #nim
18:20:27FromDiscord<pietroppeter> In reply to @dom96 "oh, I forgot this": Plausible is open source though, so if one has a server it could install it there and use it for free. I guess it require additional effort though
18:21:46arkanoidmost idiomatic way to create an empty array of strings?
18:22:09*elph joined #nim
18:22:27FromDiscord<pietroppeter> Notes on how to self host plausible analytics: https://plausible.io/self-hosted-web-analytics
18:27:21nrds<Prestige99> arkanoid: array or sequence?
18:27:45*fputs quit (Quit: The Lounge - https://thelounge.chat)
18:27:54arkanoidActually I need both
18:28:09PMunch@pietroppeter, hmm maybe I should try plausible on my own website
18:28:21FromDiscord<pietroppeter> In reply to @dom96 "oh, I forgot this": It seems goat counter is free for non commercial use, interesting!
18:28:29FromDiscord<pietroppeter> https://www.goatcounter.com
18:28:38PMunch`var myStrArr: array[10, string]`?
18:28:50PMunchOr similar for seq?
18:30:27FromDiscord<pietroppeter> In reply to @PMunch "<@869267093110026320>, hmm maybe I": It is very easy to set up and they have a free trial. It also works very nicely from what I have seen so far. if you the want to be guest on my subscription you are welcome
18:30:58PMunchI was planning on self-hosting :P
18:31:48*fputs joined #nim
18:35:45*krux02 joined #nim
18:36:13FromDiscord<pietroppeter> Ah that’s better 🙂
18:37:48arkanoidPMunch, I was reinstalling vscodium and I wanted to try your nim lsp, with surprise I've found that vscode is not listen in the readme. Is there a reason for that?
18:38:05PMunchYes
18:38:12PMunchThe reason is that no-one have added it there
18:38:23FromDiscord<pietroppeter> GoatCounter and plausible are the only ones mentioned in this article (June 2020): https://lwn.net/Articles/822568/ what I am not able to find is if goatcounter allows public dashboard (visible to anyone). I like a lot that feature of plausible
18:39:03nrds<Prestige99> Do any of the vscode plugins use nimlsp?
18:39:31PMunchI haven't used VSCode/-ium myself, so I don't know what to write in such a section
18:40:18NimEventerNew post on r/nim by aduros: WASM-4 is a virtual game console for building simple retro games that now fully supports Nim, see https://reddit.com/r/nim/comments/r52faq/wasm4_is_a_virtual_game_console_for_building/
18:41:32arkanoidPMunch but vscode is the most used ide for nim according to stats, and you have a PR from ha guy who a has forked your lsp to make it async for the vscode-nim-lsp extension for vscode
18:42:40nrds<Prestige99> I don't see such PR on the nimlsp repo?
18:43:37nrds<Prestige99> unless you mean https://github.com/PMunch/nimlsp/pull/81/files
18:43:59arkanoidexactly
18:44:58PMunchThat PR isn't really related to the project it's made to at all
18:45:04PMunchIt just links to a different project..
18:45:29nrds<Prestige99> yeah that other repo isn't a fork
18:46:21arkanoidthis https://github.com/bung87/nimlsp
18:46:22PMunchThis apparently is a fork: https://github.com/bung87/nimlsp
18:46:58nrds<Prestige99> Weird, I wonder why
18:46:59arkanoidyeah, he wrote me that his fors is your made async for its vscode extension, that expects that
18:47:34PMunchVSCode in Microsofts infinite wisdom somehow managed to mess up the very concept of LSP (which was created by Microsoft for VSCode by the way). AFAIK every LSP server (the language) needs its own plug-in in VSCode
18:48:20arkanoidand he has one: https://github.com/bung87/vscode-nim-lsp
18:49:23arkanoidso basically I end up installing your lsp and his extension, found out that they don't work together, then contacted him for info and he said that he preferred to turn your lsp to async (not sure if there's a technical reason behind that)
18:49:24nrds<Prestige99> yeah that's the typescript one
18:50:25arkanoidquestion is: considering that vscode is the preferred ide among the community, isn't this a good start point to land lsp to the masses?
18:50:44arkanoidbetter tooling was on priority list, if I remember correctly
18:51:46PMunchThe reason why VSCode is the favourite editor is because it has great plug-ins already that build on nimsuggest directly instead of on NimLSP
18:53:17arkanoidok, but surely the future is lsp and splitting the community here seems not the best choice
18:53:36PMunchWould I prefer that everyone started helping out with NimLSP instead of developing individual plug-ins for all editors? Maybe, maybe not. After having implemented LSP I'm not too sure about the technical foundations of it, but at this point it's so popular that creating a better solution would probably never get you anywhere.
18:54:08PMunchI agree that LSP is nice and we should put more work into a proper LSP server though
18:54:16FromDiscord<Rika> im pretty sure many people also seem to have a revulsion of lsp over "standalone" as well
18:54:24PMunchWell, improve the current server
18:54:37nrds<Prestige99> Isn't the biggest issue with it atm, nimsuggest?
18:54:39PMunch@Rika, really? Never heard anyone say that
18:54:50nrds<Prestige99> Like it crashes constantly while I write code
18:54:52FromDiscord<Rika> not say it of course no one would
18:54:59FromDiscord<Rika> its just a gut feeling
18:55:20PMunch@Prestige, IMO yes, but all the plug-ins are built around nimsuggest and many of the other ones seems to work better than NimLSP sometimes does
18:55:27arkanoida good lsp for nim would fit all IDE. It's just vscode that wants ad-hoc extension for that and should be considered an exception.
18:55:47PMunchYes, as I said I'm all for improving NimLSP :)
18:56:11nrds<Prestige99> PMunch I'll continue contributing if we can target what needs fixing. My biggest issue is just the crashing, though
18:57:59PMunchYeah, and that's all down to nimsuggest
18:58:22nrds<Prestige99> I expect fixing _that_ would be quite painful
18:58:29arkanoidwell, I just wanted point out that a nim + vscode + (forked)lsp already exists. Maybe an integration of all the things could start from here
18:58:30PMunchI guess one thing to improve is logging of crash situations and possibly automatic reporting
18:58:59FromDiscord<Rika> it will "until its completely replaced by the solution enabled by IC"
18:59:31PMunchI don't think VSCode requires an async client though. But if my version doesn't work with the VSCode plug-in maybe I'm wrong
18:59:33nrds<Prestige99> Isn't IC supposed to improve nimsuggest, or are we expecting a replacement?
19:01:09FromDiscord<Rika> thats what i said yes
19:01:11FromDiscord<Rika> oh
19:01:14FromDiscord<Rika> wait no i misread
19:01:18FromDiscord<Rika> no afaik its supposed to replace
19:01:39FromDiscord<Rika> rather again, "enable a replacement"
19:02:10nrds<Prestige99> Hopefully that all comes sooner than later.. I feel like our IDE tooling is not great
19:02:44FromDiscord<Rika> "feel"? it really isnt
19:03:05arkanoidI have to keep restarting vscode every now and then to keep nim extension working
19:04:13nrds<Prestige99> maybe nim 2.0
19:04:16nrds<Prestige99> eh
19:08:50PMuncharkanoid, you aren't supposed to have to restart the editor.. The LSP client is supposed to manage the server and restart it if it crashes..
19:09:26arkanoidno, I'm not talking about the lsp world here. I'm still on vscode and it's extensions (based on nimsuggests)
19:10:32PMunchAh VSCode should probably restart those when they crash..
19:12:55PMunchBut I think they just run nimsuggest as a separate program so it might crash and the plug-in fails to restart it
19:13:57FromDiscord<Rika> pretty much
19:20:09FromDiscord<gdquest> In reply to @arkanoid "I have to keep": Ah! That's everyone? Good to hear that 🙂
19:20:51FromDiscord<gdquest> I was wondering why linting and completion stopped every now and then
19:31:59arkanoidall drills down to nimsuggest I think, but unsure. There are multiple levels of abstraction here. nimsuggest > vscode-extension, or nimsuggest > nimlsp > vscode-extension. All drills down to nimsuggest, that I think I've read that it's evolution is linked to partial compilation, that sould be on priority list
19:32:33FromDiscord<Rika> and afaik it is
19:48:23FromDiscord<Hex08> `/home/elia/code/nimbox/src/nimbox.nim(1, 8) Error: cannot open file: bigints`↵Am I doing something wrong? I created a project with `nimble init`, then `nimble install bigints` and I'm doing `import bigints` in my main file
19:49:17PMunchrequire "bigints" in your .nimble file
19:50:23PMunchYou don't need to `nimble install bigints`, simply add `require bigints` to your .nimble file and it will download and install it automatically if you don't already have it :)
19:53:09FromDiscord<Hex08> Got it! That's cool!
20:00:37PMunchYup! Nimble is a combined build system and package manager
20:02:57*happycorsair[m] quit (Ping timeout: 265 seconds)
20:06:52*terminalpusher quit (Remote host closed the connection)
20:07:09*terminalpusher joined #nim
20:16:11*happycorsair[m] joined #nim
20:38:48*stkrdknmibalz joined #nim
20:58:21Amun-Rais there a way to get derived class type? f.e.: StringStream inside foo(s: String)
20:58:59Amun-RaI mean foo(s: Stream)
21:08:29PMunchDon't think so
21:08:53PMunchWell, maybe you can do `s is StringStream` not sure tbh
21:12:04Amun-Rahmm
21:16:06FromDiscord<gibson> What's the reason in Tables why TableRef `[]` returns a mutable, while Table `[]` returns an immutable?
21:19:57FromDiscord<exelotl> @gibson if you have a `var Table` then `[]` returns a mutable too
21:20:05FromDiscord<exelotl> https://nim-lang.org/docs/tables.html#%5B%5D%2CTable%5BA%2CB%5D%2CA_2
21:20:37FromDiscord<huantian> In reply to @gdquest "I was wondering why": oh yeah I get the same thing 😔
21:21:34FromDiscord<gibson> Thanks - I completely misread that.
21:22:31FromDiscord<exelotl> yeah it took me a moment to find too 😅
21:24:39*tinystoat quit (Remote host closed the connection)
21:24:48*tinystoat joined #nim
21:40:13*tinystoat quit (*.net *.split)
21:40:14*krux02 quit (*.net *.split)
21:40:14*xet7 quit (*.net *.split)
21:40:14*arkurious quit (*.net *.split)
21:40:14*supakeen quit (*.net *.split)
21:40:14*Colt quit (*.net *.split)
21:40:14*stkrdknmibalz quit (*.net *.split)
21:40:15*fputs quit (*.net *.split)
21:40:15*PMunch quit (*.net *.split)
21:40:15*def- quit (*.net *.split)
21:40:16*anddam quit (*.net *.split)
21:40:16*perro quit (*.net *.split)
21:40:17*joshbaptiste quit (*.net *.split)
21:40:17*robertmeta quit (*.net *.split)
21:40:18*rp2 quit (*.net *.split)
21:40:18*MightyJoe quit (*.net *.split)
21:40:18*jkl1337 quit (*.net *.split)
21:40:18*flynn quit (*.net *.split)
21:40:18*blackbeard420 quit (*.net *.split)
21:40:19*GreaseMonkey quit (*.net *.split)
21:40:19*redj quit (*.net *.split)
21:40:19*dom96 quit (*.net *.split)
21:40:19*ehmry quit (*.net *.split)
21:40:20*adium quit (*.net *.split)
21:40:20*tk quit (*.net *.split)
21:40:20*Onionhammer quit (*.net *.split)
21:40:20*vicecea quit (*.net *.split)
21:40:20*pch quit (*.net *.split)
21:40:20*notchris quit (*.net *.split)
21:40:21*crem quit (*.net *.split)
21:40:21*koltrast quit (*.net *.split)
21:40:21*happycorsair[m] quit (*.net *.split)
21:40:21*dtomato quit (*.net *.split)
21:40:22*madprops quit (*.net *.split)
21:40:22*lain quit (*.net *.split)
21:40:22*qwr quit (*.net *.split)
21:40:22*_c quit (*.net *.split)
21:40:22*djanatyn quit (*.net *.split)
21:40:23*mjsir911 quit (*.net *.split)
21:40:23*syl quit (*.net *.split)
21:40:23*cheer[m] quit (*.net *.split)
21:40:23*ormiret quit (*.net *.split)
21:40:23*ozzz quit (*.net *.split)
21:40:23*cornfeedhobo quit (*.net *.split)
21:40:24*Yardanico quit (*.net *.split)
21:40:24*oddish quit (*.net *.split)
21:40:24*NimEventer quit (*.net *.split)
21:40:26*oprypin quit (*.net *.split)
21:40:27*LyndsySimon quit (*.net *.split)
21:40:27*sagax quit (*.net *.split)
21:40:27*nixfreaknim[m] quit (*.net *.split)
21:40:27*meowray quit (*.net *.split)
21:40:27*Zevv quit (*.net *.split)
21:40:27*[R] quit (*.net *.split)
21:40:29*|smlckz| quit (*.net *.split)
21:40:30*terminalpusher quit (*.net *.split)
21:44:14*Colt joined #nim
21:44:14*tinystoat joined #nim
21:44:14*stkrdknmibalz joined #nim
21:44:14*happycorsair[m] joined #nim
21:44:14*terminalpusher joined #nim
21:44:14*krux02 joined #nim
21:44:14*fputs joined #nim
21:44:14*xet7 joined #nim
21:44:14*arkurious joined #nim
21:44:14*PMunch joined #nim
21:44:14*supakeen joined #nim
21:44:14*def- joined #nim
21:44:14*mjsir911 joined #nim
21:44:14*syl joined #nim
21:44:14*dom96 joined #nim
21:44:14*ehmry joined #nim
21:44:14*adium joined #nim
21:44:14*tk joined #nim
21:44:14*anddam joined #nim
21:44:14*Onionhammer joined #nim
21:44:14*vicecea joined #nim
21:44:14*perro joined #nim
21:44:14*cheer[m] joined #nim
21:44:14*pch joined #nim
21:44:14*notchris joined #nim
21:44:14*ormiret joined #nim
21:44:14*dtomato joined #nim
21:44:14*madprops joined #nim
21:44:14*lain joined #nim
21:44:14*rp2 joined #nim
21:44:14*MightyJoe joined #nim
21:44:14*jkl1337 joined #nim
21:44:14*flynn joined #nim
21:44:14*qwr joined #nim
21:44:14*_c joined #nim
21:44:14*ozzz joined #nim
21:44:14*blackbeard420 joined #nim
21:44:14*joshbaptiste joined #nim
21:44:14*robertmeta joined #nim
21:44:14*LyndsySimon joined #nim
21:44:14*sagax joined #nim
21:44:14*GreaseMonkey joined #nim
21:44:14*Zevv joined #nim
21:44:14*crem joined #nim
21:44:14*nixfreaknim[m] joined #nim
21:44:14*cornfeedhobo joined #nim
21:44:14*redj joined #nim
21:44:14*|smlckz| joined #nim
21:44:14*[R] joined #nim
21:44:14*meowray joined #nim
21:44:14*oprypin joined #nim
21:44:14*NimEventer joined #nim
21:44:14*djanatyn joined #nim
21:44:14*koltrast joined #nim
21:44:14*oddish joined #nim
21:44:14*Yardanico joined #nim
21:44:29*lucerne quit (Max SendQ exceeded)
21:45:28*lucerne joined #nim
21:45:52*Colt quit (Remote host closed the connection)
21:46:16*Colt joined #nim
22:23:31*terminalpusher quit (Remote host closed the connection)
23:02:40*src quit (Quit: Leaving)
23:51:49*elph quit (Quit: Connection closed for inactivity)