00:05:12 | * | tk quit (Quit: Well, this is unexpected.) |
00:05:36 | * | tk joined #nim |
00:25:42 | FromDiscord | <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:29 | FromDiscord | <Elegantbeef> Best is up to you |
00:32:18 | FromDiscord | <evoalg> I like hearing that! |
00:42:54 | * | adium joined #nim |
00:46:30 | * | krux02 quit (Remote host closed the connection) |
01:04:12 | FromDiscord | <TryAngle> sent a code paste, see https://play.nim-lang.org/#ix=3GqE |
01:04:44 | FromDiscord | <TryAngle> (edit) "https://play.nim-lang.org/#ix=3GqE" => "https://play.nim-lang.org/#ix=3GqF" |
01:05:48 | FromDiscord | <ynfle (ynfle)> It could be nimlsp is compiled with an older version of nim |
01:15:18 | * | arkurious quit (Quit: Leaving) |
01:26:08 | FromDiscord | <Marisol> What's `doAssert` is for? Is it for unit testing? |
01:27:49 | FromDiscord | <Elegantbeef> It's an assertion that can never be turned off |
01:33:40 | FromDiscord | <Marisol> Ok so if the condition fails it won't compile, right? No need to make a separate unit test anymore |
01:34:25 | FromDiscord | <Elegantbeef> Well if it's a compile time statement yes, otherwise it's a runtime check |
01:35:03 | FromDiscord | <Marisol> Can check runtime? What happens if it fails on runtime... Just crash? |
01:35:24 | FromDiscord | <Elegantbeef> It raises the defect and closes |
01:35:42 | FromDiscord | <Elegantbeef> Which is what you want when you use doAssert |
01:36:08 | FromDiscord | <Elegantbeef> And no you do not want to catch the defect |
01:41:40 | FromDiscord | <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:09 | FromDiscord | <Rika> "at the line"? |
01:42:18 | FromDiscord | <Rika> only on execution yes |
01:42:19 | FromDiscord | <Marisol> Hmm ok. I still don't understand what we're using it for |
01:42:20 | FromDiscord | <Elegantbeef> Nope subrange type is not checked all the time |
01:42:23 | FromDiscord | <Rika> same with var a |
01:42:43 | FromDiscord | <Elegantbeef> You pretty much never use `doAssert` |
01:42:54 | FromDiscord | <Rika> In reply to @Marisol "Hmm ok. I still": guaranteed assert `doassert` vs sanity check assert `assert` i guess |
01:43:19 | FromDiscord | <Rika> tho i guess you would want sanity checks on all the time as well so |
01:43:34 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3GqM |
01:43:34 | FromDiscord | <Rika> i guess either use doassert or -d:danger --assertions:on |
01:43:50 | FromDiscord | <Rika> or never use -d:danger lmfao |
01:44:52 | FromDiscord | <Elegantbeef> Eh if you dont account for defects you deserve not having runnable code 😛 |
01:45:22 | FromDiscord | <Rika> ok |
01:45:36 | FromDiscord | <Rika> ill make all my exceptions defects no matter what then |
01:45:44 | FromDiscord | <Rika> that way no errors ever! |
01:45:52 | FromDiscord | <Elegantbeef> !remindme never to use rika's code |
01:46:04 | FromDiscord | <Rika> `raise Defect(nil)`? |
01:46:44 | FromDiscord | <Elegantbeef> !ban Rika |
01:47:01 | FromDiscord | <Rika> haha u aint a mod |
01:47:14 | FromDiscord | <Elegantbeef> Of course not cause i'd clean this place up! 😛 |
01:47:15 | FromDiscord | <Marisol> Need to dig more library source codes. I swear I saw doAssert all the time |
01:47:32 | FromDiscord | <Rika> yeah doassert and assert differences are vague id say |
01:47:42 | FromDiscord | <Elegantbeef> The issue with `doAssert` is it cannot be turned off so can be a detriment on performance |
01:47:55 | FromDiscord | <Rika> just like beef is |
01:48:46 | FromDiscord | <konsumlamm> In reply to @Marisol "Need to dig more": maybe you saw it in unit tests? |
01:58:53 | FromDiscord | <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:13 | FromDiscord | <Rika> yes |
01:59:19 | FromDiscord | <evoalg> nice! |
01:59:43 | FromDiscord | <evoalg> that's only like the 2nd time I've got something right |
01:59:58 | FromDiscord | <Elegantbeef> You'll get 3 things eventually |
02:01:24 | FromDiscord | <evoalg> I appreciate your faith in me |
02:01:27 | FromDiscord | <Rika> unfortunate that you havent yet, beef |
02:01:55 | FromDiscord | <Elegantbeef> Eh 3 lefts make a right |
02:06:08 | FromDiscord | <ynfle (ynfle)> Nah |
02:06:48 | FromDiscord | <Rika> -3 != 1 though |
02:08:36 | FromDiscord | <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:14 | FromDiscord | <Elegantbeef> Methinks the math checks out |
02:09:32 | FromDiscord | <evoalg> doAssert confirms it |
02:09:44 | FromDiscord | <Elegantbeef> Ah see evo is right 3 times now |
02:10:13 | FromDiscord | <evoalg> so you were right that I would be right 3 times? |
02:10:29 | FromDiscord | <Elegantbeef> No clue i dont have a degree in rightology |
02:12:01 | FromDiscord | <Rika> truth is absolute though xddd |
02:14:42 | FromDiscord | <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:08 | FromDiscord | <Elegantbeef> Those `doAsserts` are used in runnable tests |
02:15:18 | FromDiscord | <Elegantbeef> They're another line of testing in this case |
02:15:28 | FromDiscord | <Elegantbeef> runnable examples i mea |
02:20:35 | FromDiscord | <Marisol> So runnableExamples isn't part of the code... Read somewhere that it's only used for docs? |
02:21:44 | FromDiscord | <Rika> not really "only" |
02:21:50 | FromDiscord | <Rika> also for tests afaik |
02:23:33 | FromDiscord | <Marisol> Ok thanks. Will start writing tests |
02:36:49 | * | neurocyte0132889 quit (Ping timeout: 256 seconds) |
02:40:35 | FromDiscord | <Elegantbeef> runnable examples is for docs and another line of tests really |
02:41:02 | FromDiscord | <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:54 | FromDiscord | <Elegantbeef> When you use nim doc gen the examples are shown in a code block |
02:44:04 | FromDiscord | <Marisol> We have built in doc generator? Cool |
02:44:37 | FromDiscord | <Elegantbeef> Yep the nim docs are generated using the docgen |
03:44:20 | FromDiscord | <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:00 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3Gr4 |
03:46:11 | FromDiscord | <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:23 | NimEventer | New 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:11 | arkanoid | What 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:53 | arkanoid | If I got it correctly both ends up creating C code that call libpython directly |
09:03:41 | FromDiscord | <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:19 | arkanoid | cool! |
10:12:11 | FromDiscord | <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:45 | arkanoid | evoalg, 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:29 | FromDiscord | <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:27 | FromDiscord | <enthus1ast> what do you need from the python world? |
10:17:26 | arkanoid | enthus1ast scientific stack, numpy, pandas, other. I know about arraymancer and datamancer, but I need to do string manipulation |
10:19:36 | FromDiscord | <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:12 | FromDiscord | <hmmm> yea linux hates windows stuff, if I nano file.txt it slaps a huge red banner [file.txt is unwritable] |
10:26:47 | FromDiscord | <enthus1ast> @hmmm\: have you cd'ed into the correct folder? |
10:28:00 | FromDiscord | <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:57 | FromDiscord | <evoalg> So if you used dos2unix on those files in a linux terminal then it would work? |
10:35:45 | FromDiscord | <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:28 | FromDiscord | <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:05 | FromDiscord | <enthus1ast> all major editors etc can read both nowadays |
10:37:14 | FromDiscord | <hmmm> and can save both ways? |
10:37:25 | FromDiscord | <enthus1ast> idk |
10:38:17 | FromDiscord | <enthus1ast> the line handling procs in nim also should be able to handle both |
10:38:39 | FromDiscord | <hmmm> I think nim it's fine, it's just linux that hates that stuff |
10:38:56 | FromDiscord | <enthus1ast> can you try to open with vimß |
10:38:58 | FromDiscord | <enthus1ast> ? |
10:39:22 | FromDiscord | <hmmm> yea it opens normally |
10:39:28 | FromDiscord | <hmmm> nano slaps the warning tho |
10:39:32 | FromDiscord | <enthus1ast> then nano is just shit |
10:39:35 | FromDiscord | <hmmm> lol |
10:39:49 | FromDiscord | <hmmm> yea but the problem is that the program still crashes in the non log part |
10:40:03 | FromDiscord | <enthus1ast> which program? |
10:40:05 | FromDiscord | <evoalg> if you do `cat -A file.txt` can you see the line endings? |
10:40:51 | FromDiscord | <hmmm> no line endings I can see with cat -A |
10:41:47 | FromDiscord | <evoalg> you can't? ... do you have gnu cat? |
10:42:01 | FromDiscord | <hmmm> hmm |
10:42:08 | FromDiscord | <hmmm> I think I have the normal cat lol |
10:42:11 | FromDiscord | <hmmm> how do I check |
10:43:21 | FromDiscord | <evoalg> `cat --version` |
10:43:43 | FromDiscord | <hmmm> yea cat GNU coreutils 9.0 |
10:44:58 | * | Colt quit (Quit: Leaving) |
10:45:51 | FromDiscord | <evoalg> does the text file contain ascii or unicode? |
10:48:23 | FromDiscord | <hmmm> nah it's very simple lol https://media.discordapp.net/attachments/371759389889003532/914830140993855518/test.PNG |
10:51:06 | FromDiscord | <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:31 | FromDiscord | <hmmm> oh |
10:52:32 | FromDiscord | <evoalg> So file.txt contains just TEST but it's crashing your nim app? |
10:52:37 | FromDiscord | <hmmm> this one liner solved it: awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt |
10:52:44 | FromDiscord | <hmmm> don't know what it does but it works lol |
10:53:16 | FromDiscord | <enthus1ast> just testet, nano has no troubles read and write files created with notepad |
10:53:22 | FromDiscord | <enthus1ast> must be something else |
10:53:43 | FromDiscord | <hmmm> https://media.discordapp.net/attachments/371759389889003532/914831483330494464/tested.PNG |
10:54:02 | FromDiscord | <evoalg> \r$ is windows end of line, and $ is unix, so that awk one liner just get's rid on the \r |
10:54:17 | FromDiscord | <enthus1ast> maybe the path gives troubles |
10:54:21 | FromDiscord | <hmmm> that's cool |
10:54:23 | FromDiscord | <enthus1ast> can you send a\:↵pwd |
10:54:47 | FromDiscord | <hmmm> wait I'll first test the app with converted files |
10:54:48 | FromDiscord | <hmmm> should work |
10:55:07 | FromDiscord | <enthus1ast> bet you try to access win from linux side or other way around |
10:56:52 | FromDiscord | <hmmm> yea |
10:56:54 | FromDiscord | <hmmm> works perfectly |
10:57:01 | FromDiscord | <hmmm> it was the line endings |
10:57:42 | FromDiscord | <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:28 | FromDiscord | <enthus1ast> i think there's something else going on |
10:58:42 | FromDiscord | <enthus1ast> never had troubles with line endings since years |
10:59:16 | FromDiscord | <enthus1ast> and i use wsl extensively |
10:59:21 | * | Colt joined #nim |
10:59:42 | FromDiscord | <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:36 | FromDiscord | <enthus1ast> maybe it was able to change ownership or access rights |
11:00:37 | FromDiscord | <enthus1ast> idk |
11:00:43 | FromDiscord | <enthus1ast> but good that it works for you |
11:01:44 | FromDiscord | <hmmm> well I'm happy except I need to find a way to mass convert files I want to test on windows |
11:02:00 | FromDiscord | <hmmm> maybe this is the time to actually learn some bash magicks |
11:02:08 | arkanoid | how can I call a function that starts with "_" character in nimpy? |
11:07:55 | FromDiscord | <hmmm> oh nice found the sublimetext toggle, now we happy https://media.discordapp.net/attachments/371759389889003532/914835057380823100/sublimetext.png |
11:08:04 | FromDiscord | <hmmm> 🥳 |
11:21:41 | arkanoid | solved (getAttr) |
11:31:58 | FromDiscord | <pietroppeter> @dom96 any thoughts on plausible analytics for website and forum? see https://forum.nim-lang.org/t/7439#56338 |
12:05:29 | FromDiscord | <Steffen> sent a code paste, see https://play.nim-lang.org/#ix=3GsN |
12:06:02 | * | supakeen quit (Quit: WeeChat 3.3) |
12:06:11 | FromDiscord | <Steffen> and I have no clue how to fix that |
12:06:31 | * | supakeen joined #nim |
12:07:47 | arkanoid | why 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:35 | arkanoid | oh, there's a PR https://github.com/PMunch/nimlsp/pull/81 |
12:11:27 | FromDiscord | <Steffen> gah, ok, I got it |
12:41:52 | FromDiscord | <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:02 | FromDiscord | <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:46 | NimEventer | New 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:24 | arkanoid | just 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:30 | FromDiscord | <hmmm> uh oh apparently there was an entire proc dedicated to my problems named quoteshell() in os |
13:58:42 | FromDiscord | <hmmm> good old timmy was fighting the good fight: https://github.com/nim-lang/Nim/pull/8272 |
14:05:14 | FromDiscord | <dom96> In reply to @pietroppeter "<@132595483838251008> any thoughts on": happy to accept a PR to add support for them in NimForum 🙂 |
14:06:09 | FromDiscord | <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:34 | FromDiscord | <UN533N_5PY> https://nimble.directory/search?query=test↵something is wrong with nimble.directory |
15:43:02 | FromDiscord | <UN533N_5PY> Getting a 502 Gateway error |
15:49:25 | FromDiscord | <pietroppeter> In reply to @dom96 "happy to accept a": ok that I can do (PR for plausible in nimForum) |
15:51:03 | FromDiscord | <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:41 | FromDiscord | <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:29 | FromDiscord | <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:46 | nrds | <Prestige99> https://nimble.directory/ is down eh? |
16:54:54 | nrds | <Prestige99> 502 bad gateway |
16:56:40 | FromDiscord | <dom96> ping federico3 |
17:13:02 | FromDiscord | <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:24 | FromDiscord | <hmmm> oh so cute, micro the linux editor understands nim synthax :nimAngry: |
17:51:39 | FromDiscord | <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:19 | nrds | <Prestige99> how about showing errors etc? |
18:13:38 | * | terminalpusher joined #nim |
18:20:27 | FromDiscord | <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:46 | arkanoid | most idiomatic way to create an empty array of strings? |
18:22:09 | * | elph joined #nim |
18:22:27 | FromDiscord | <pietroppeter> Notes on how to self host plausible analytics: https://plausible.io/self-hosted-web-analytics |
18:27:21 | nrds | <Prestige99> arkanoid: array or sequence? |
18:27:45 | * | fputs quit (Quit: The Lounge - https://thelounge.chat) |
18:27:54 | arkanoid | Actually I need both |
18:28:09 | PMunch | @pietroppeter, hmm maybe I should try plausible on my own website |
18:28:21 | FromDiscord | <pietroppeter> In reply to @dom96 "oh, I forgot this": It seems goat counter is free for non commercial use, interesting! |
18:28:29 | FromDiscord | <pietroppeter> https://www.goatcounter.com |
18:28:38 | PMunch | `var myStrArr: array[10, string]`? |
18:28:50 | PMunch | Or similar for seq? |
18:30:27 | FromDiscord | <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:58 | PMunch | I was planning on self-hosting :P |
18:31:48 | * | fputs joined #nim |
18:35:45 | * | krux02 joined #nim |
18:36:13 | FromDiscord | <pietroppeter> Ah that’s better 🙂 |
18:37:48 | arkanoid | PMunch, 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:05 | PMunch | Yes |
18:38:12 | PMunch | The reason is that no-one have added it there |
18:38:23 | FromDiscord | <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:03 | nrds | <Prestige99> Do any of the vscode plugins use nimlsp? |
18:39:31 | PMunch | I haven't used VSCode/-ium myself, so I don't know what to write in such a section |
18:40:18 | NimEventer | New 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:32 | arkanoid | PMunch 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:40 | nrds | <Prestige99> I don't see such PR on the nimlsp repo? |
18:43:37 | nrds | <Prestige99> unless you mean https://github.com/PMunch/nimlsp/pull/81/files |
18:43:59 | arkanoid | exactly |
18:44:58 | PMunch | That PR isn't really related to the project it's made to at all |
18:45:04 | PMunch | It just links to a different project.. |
18:45:29 | nrds | <Prestige99> yeah that other repo isn't a fork |
18:46:21 | arkanoid | this https://github.com/bung87/nimlsp |
18:46:22 | PMunch | This apparently is a fork: https://github.com/bung87/nimlsp |
18:46:58 | nrds | <Prestige99> Weird, I wonder why |
18:46:59 | arkanoid | yeah, he wrote me that his fors is your made async for its vscode extension, that expects that |
18:47:34 | PMunch | VSCode 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:20 | arkanoid | and he has one: https://github.com/bung87/vscode-nim-lsp |
18:49:23 | arkanoid | so 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:24 | nrds | <Prestige99> yeah that's the typescript one |
18:50:25 | arkanoid | question 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:44 | arkanoid | better tooling was on priority list, if I remember correctly |
18:51:46 | PMunch | The 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:17 | arkanoid | ok, but surely the future is lsp and splitting the community here seems not the best choice |
18:53:36 | PMunch | Would 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:08 | PMunch | I agree that LSP is nice and we should put more work into a proper LSP server though |
18:54:16 | FromDiscord | <Rika> im pretty sure many people also seem to have a revulsion of lsp over "standalone" as well |
18:54:24 | PMunch | Well, improve the current server |
18:54:37 | nrds | <Prestige99> Isn't the biggest issue with it atm, nimsuggest? |
18:54:39 | PMunch | @Rika, really? Never heard anyone say that |
18:54:50 | nrds | <Prestige99> Like it crashes constantly while I write code |
18:54:52 | FromDiscord | <Rika> not say it of course no one would |
18:54:59 | FromDiscord | <Rika> its just a gut feeling |
18:55:20 | PMunch | @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:27 | arkanoid | a 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:47 | PMunch | Yes, as I said I'm all for improving NimLSP :) |
18:56:11 | nrds | <Prestige99> PMunch I'll continue contributing if we can target what needs fixing. My biggest issue is just the crashing, though |
18:57:59 | PMunch | Yeah, and that's all down to nimsuggest |
18:58:22 | nrds | <Prestige99> I expect fixing _that_ would be quite painful |
18:58:29 | arkanoid | well, 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:30 | PMunch | I guess one thing to improve is logging of crash situations and possibly automatic reporting |
18:58:59 | FromDiscord | <Rika> it will "until its completely replaced by the solution enabled by IC" |
18:59:31 | PMunch | I 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:33 | nrds | <Prestige99> Isn't IC supposed to improve nimsuggest, or are we expecting a replacement? |
19:01:09 | FromDiscord | <Rika> thats what i said yes |
19:01:11 | FromDiscord | <Rika> oh |
19:01:14 | FromDiscord | <Rika> wait no i misread |
19:01:18 | FromDiscord | <Rika> no afaik its supposed to replace |
19:01:39 | FromDiscord | <Rika> rather again, "enable a replacement" |
19:02:10 | nrds | <Prestige99> Hopefully that all comes sooner than later.. I feel like our IDE tooling is not great |
19:02:44 | FromDiscord | <Rika> "feel"? it really isnt |
19:03:05 | arkanoid | I have to keep restarting vscode every now and then to keep nim extension working |
19:04:13 | nrds | <Prestige99> maybe nim 2.0 |
19:04:16 | nrds | <Prestige99> eh |
19:08:50 | PMunch | arkanoid, 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:26 | arkanoid | no, I'm not talking about the lsp world here. I'm still on vscode and it's extensions (based on nimsuggests) |
19:10:32 | PMunch | Ah VSCode should probably restart those when they crash.. |
19:12:55 | PMunch | But I think they just run nimsuggest as a separate program so it might crash and the plug-in fails to restart it |
19:13:57 | FromDiscord | <Rika> pretty much |
19:20:09 | FromDiscord | <gdquest> In reply to @arkanoid "I have to keep": Ah! That's everyone? Good to hear that 🙂 |
19:20:51 | FromDiscord | <gdquest> I was wondering why linting and completion stopped every now and then |
19:31:59 | arkanoid | all 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:33 | FromDiscord | <Rika> and afaik it is |
19:48:23 | FromDiscord | <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:17 | PMunch | require "bigints" in your .nimble file |
19:50:23 | PMunch | You 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:09 | FromDiscord | <Hex08> Got it! That's cool! |
20:00:37 | PMunch | Yup! 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:21 | Amun-Ra | is there a way to get derived class type? f.e.: StringStream inside foo(s: String) |
20:58:59 | Amun-Ra | I mean foo(s: Stream) |
21:08:29 | PMunch | Don't think so |
21:08:53 | PMunch | Well, maybe you can do `s is StringStream` not sure tbh |
21:12:04 | Amun-Ra | hmm |
21:16:06 | FromDiscord | <gibson> What's the reason in Tables why TableRef `[]` returns a mutable, while Table `[]` returns an immutable? |
21:19:57 | FromDiscord | <exelotl> @gibson if you have a `var Table` then `[]` returns a mutable too |
21:20:05 | FromDiscord | <exelotl> https://nim-lang.org/docs/tables.html#%5B%5D%2CTable%5BA%2CB%5D%2CA_2 |
21:20:37 | FromDiscord | <huantian> In reply to @gdquest "I was wondering why": oh yeah I get the same thing 😔 |
21:21:34 | FromDiscord | <gibson> Thanks - I completely misread that. |
21:22:31 | FromDiscord | <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) |