00:02:50 | FromDiscord | <exelotl> oh yeah ofc, this was in response to a snippet someone posted but they deleted it |
00:10:24 | * | Zectbumo joined #nim |
00:13:27 | * | jmdaemon quit (Ping timeout: 260 seconds) |
00:17:05 | FromDiscord | <Bubblie> how do I remove something from nimble |
00:17:38 | FromDiscord | <Bubblie> nvm |
00:17:38 | FromDiscord | <Bubblie> got it |
00:19:21 | FromDiscord | <Bubblie> ok |
00:19:26 | FromDiscord | <Bubblie> for some reason futhark is failing |
00:19:51 | FromDiscord | <Bubblie> dont I have clang in my path wtf |
00:19:56 | FromDiscord | <Bubblie> let me check |
00:20:14 | FromDiscord | <Bubblie> oh wait yeah |
00:20:15 | FromDiscord | <Bubblie> I uh |
00:20:22 | FromDiscord | <Bubblie> un installed |
00:20:23 | FromDiscord | <Bubblie> LMAO |
00:20:45 | FromDiscord | <Bubblie> redownload ig |
00:23:01 | * | acidsys quit (Excess Flood) |
00:23:33 | * | acidsys joined #nim |
00:26:58 | FromDiscord | <Bubblie> there we go |
00:27:05 | FromDiscord | <Bubblie> clang should be useable now |
00:27:17 | FromDiscord | <Bubblie> gotta restart though cause windows is fucking garbage |
00:31:22 | FromDiscord | <Bubblie> @PMunch not sure if you will get this ping on IRC but do I need to have the user install clang on their machine as well to use my compiled application? |
00:32:48 | FromDiscord | <Bubblie> also im having problems with making nimble find the path I made for clang |
00:38:10 | FromDiscord | <Bubblie> I add the bin to the path right? |
00:38:27 | FromDiscord | <Bubblie> or lib |
01:02:49 | * | acidsys quit (Excess Flood) |
01:03:21 | * | acidsys joined #nim |
01:24:32 | NimEventer | New Nimble package! romanim - Converts Roman numerals to what you understand without a blink, see https://github.com/bichanna/romanim#romanim |
01:41:29 | FromDiscord | <Reptorian> that's very easy to code in, but better in a package anyway. less work to whoever wants that. |
01:42:28 | FromDiscord | <Elegantbeef> \But it uses my nemesis, regex!& |
01:49:51 | FromDiscord | <huantian> I need to make I-DUNNO in nim at some point |
01:50:09 | FromDiscord | <huantian> might need it for a future project |
01:51:19 | FromDiscord | <Reptorian> I-DUNNO? |
01:51:33 | FromDiscord | <Reptorian> googles it |
01:52:06 | FromDiscord | <Bubblie> LMAO |
01:52:51 | FromDiscord | <Elegantbeef> Is that your package reptor? |
01:54:29 | FromDiscord | <huantian> it's a joke RFC, #8771↵(@Reptorian) |
01:55:26 | FromDiscord | <Reptorian> yeah, i only googled as i was like "that's not a thing". couldn't hurt to check. |
01:55:44 | FromDiscord | <Reptorian> there are projects with strange name though |
02:35:47 | * | neurocyte0917090 quit (Ping timeout: 260 seconds) |
02:42:44 | FromDiscord | <Sabena Sema> static in C++ is even more cursed than C. The initializers can be non-static (and in that case are "run once", additionally YOU CAN USE THEM IN INLINE FUNCTIONS |
02:43:10 | FromDiscord | <Sabena Sema> you can use them in C inline functions too, I think, maybe, but C inline doesn't have the semantics that make it problematic in C++ |
02:43:31 | FromDiscord | <Sabena Sema> if you use a library that ever uses them in such an inline function as a DSO then it can _never_ be unloaded |
02:44:13 | FromDiscord | <Sabena Sema> and they don't respect RTLD_LOCAL afaik |
02:45:04 | FromDiscord | <huantian> [Elegantbeef](https://matrix.to/#/@elegantbeef:matrix.org)\: thoughts on using `compiles()` like I mentioned here https://github.com/nim-lang/Nim/pull/19622#issuecomment-1078591299 |
02:45:31 | FromDiscord | <Elegantbeef> If it works it seems fine |
02:45:38 | FromDiscord | <Elegantbeef> But i dont think it'll compile |
02:46:09 | FromDiscord | <Elegantbeef> `yield FutureBase()` is only ever valid inside an iterator and `compiles` doesnt know the scopee |
02:46:33 | FromDiscord | <huantian> https://play.nim-lang.org/#ix=3ToX↵this does seem to work though |
02:46:48 | FromDiscord | <Elegantbeef> Then there you go |
02:48:52 | FromDiscord | <Equinox> Is there are nim library for playing audio files? |
02:49:20 | FromDiscord | <Elegantbeef> there is an openal wrapper, you can use sdl2, you can use slappy |
02:52:58 | * | rockcavera quit (Remote host closed the connection) |
02:59:50 | FromDiscord | <Bubblie> openal is really good |
03:00:00 | FromDiscord | <Bubblie> never heard of slappy |
03:00:21 | FromDiscord | <Elegantbeef> slappy is treeforms abstraction on openal |
03:00:30 | FromDiscord | <Bubblie> thats cool |
03:00:42 | FromDiscord | <Elegantbeef> Do you just arbitrarily say that? 😛 |
03:01:08 | FromDiscord | <huantian> I mean it's a treeform library that ends in y it has to be cool |
03:01:29 | FromDiscord | <Bubblie> In reply to @Elegantbeef "Do you just arbitrarily": I mean. what else do you want me to say |
03:01:48 | FromDiscord | <Bubblie> In reply to @huantian "I mean it's a": LOL |
03:03:38 | FromDiscord | <Bubblie> well idk how to tell windows to stop being an annoying piece of shit |
03:03:50 | FromDiscord | <Bubblie> so I can use fucking futhark |
03:04:00 | FromDiscord | <Bubblie> pain in my fucking ass |
03:05:58 | * | Gustavo6046 joined #nim |
03:07:12 | FromDiscord | <huantian> hey beef do you know how to fix windows failing the text case because the nimout has \\ instead of / |
03:07:28 | FromDiscord | <Elegantbeef> Nope |
03:07:49 | FromDiscord | <Elegantbeef> Installing a better OS tends to tell windows that 😜↵(@Bubblie) |
03:09:39 | FromDiscord | <Bubblie> I need fedora linux 😭 |
03:13:55 | * | Zectbumo quit (Remote host closed the connection) |
03:16:00 | nrds | <Prestige99> Get it :P |
03:16:05 | nrds | <Prestige99> (it's free) |
03:21:37 | * | Zectbumo joined #nim |
03:30:32 | FromDiscord | <Elegantbeef> Wait redhat is free? |
03:31:24 | FromDiscord | <Elegantbeef> Shit i fucked that up |
03:31:40 | FromDiscord | <Elegantbeef> Prestige did you get pmunch to send you an example tour? |
03:37:23 | nrds | <Prestige99> nah I was busy all day |
03:50:56 | FromDiscord | <spoon> isnt the nim version on debian still a beta? personally i go for manjaro |
03:52:15 | FromDiscord | <Rika> Sorry what do you mean? |
03:52:24 | FromDiscord | <Rika> What’s the version number there |
03:53:06 | FromDiscord | <Elegantbeef> If you're using your package manager for a language you're going to have a bad time |
03:54:47 | nrds | <Prestige99> Yep - just use choosenim |
03:55:59 | FromDiscord | <huantian> I'd recommend using endeavor instead of manjaro, as a manjaro user↵(@spoon) |
03:57:11 | FromDiscord | <Elegantbeef> I love how picky people can be about distro, my bar is "does it work and does it not do overly stupid shit" |
03:59:01 | * | Zectbumo quit (Remote host closed the connection) |
03:59:57 | FromDiscord | <huantian> I mean I use manjaro and it's a fine distro and I'm too lazy to switch rn |
03:59:57 | FromDiscord | <Elegantbeef> Just use a distro that doesnt piss you off, and provides you with a good default in your view |
04:01:03 | FromDiscord | <Elegantbeef> Anywho yea use linux bubblie |
04:01:05 | * | ltriant joined #nim |
04:02:07 | * | ltriant_ quit (Ping timeout: 256 seconds) |
04:13:13 | FromDiscord | <Goat> Whats the best way of ensuring performace when acessing and replacing an item in a 2d array? |
04:13:31 | FromDiscord | <Elegantbeef> What do you mean? |
04:13:40 | FromDiscord | <Elegantbeef> `array[id][id] = myVal` |
04:13:54 | FromDiscord | <Goat> I mean, is there anything beyond that |
04:14:24 | FromDiscord | <Elegantbeef> Nope |
04:14:48 | FromDiscord | <Elegantbeef> What are you trying to avoid? |
04:17:44 | * | slowButPresent quit (Quit: leaving) |
04:19:36 | nrds | <Prestige99> That reminds me, I should make that 2D seq library... |
04:25:32 | FromDiscord | <Goat> In reply to @Elegantbeef "What are you trying": Theres not really anything but I just wanted to know |
04:25:53 | FromDiscord | <Goat> Also trying ot wrap my head around pararules |
04:25:59 | FromDiscord | <Elegantbeef> The seq library would just be `[a, b]` accessors for `seq[T]`? |
04:25:59 | FromDiscord | <Goat> (edit) "ot" => "to" |
04:27:34 | * | redj quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
04:28:26 | * | redj joined #nim |
04:29:16 | nrds | <Prestige99> Pretty much, beef |
04:29:33 | FromDiscord | <Elegantbeef> Guess you'd also have some iterators for row/cols |
04:29:51 | nrds | <Prestige99> https://github.com/avahe-kellenberger/maze_bench_nim/blob/master/src/seq2d.nim |
04:30:04 | nrds | <Prestige99> Yeah I'd extend it a bit |
04:30:31 | FromDiscord | <Elegantbeef> Well you'd doing stuff wrong there but anyway |
04:30:59 | nrds | <Prestige99> Hmm. |
04:31:01 | nrds | <Prestige99> ?* |
04:31:19 | FromDiscord | <Elegantbeef> Doing `when defined(danger)` |
04:31:40 | FromDiscord | <Elegantbeef> It should be if checks are on |
04:32:01 | nrds | <Prestige99> Can you elaborate? |
04:33:18 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3Tpg |
04:33:22 | FromDiscord | <Elegantbeef> I think that's right |
04:34:15 | nrds | <Prestige99> Hmm okay, I'll look into it |
04:34:50 | FromDiscord | <Elegantbeef> That's not right either, dammit gotta look at it more |
04:35:01 | FromDiscord | <Elegantbeef> Anyway the point being is `--checks:off` is what controls that not `-d:danger` |
04:36:20 | nrds | <Prestige99> I'll have to figure out how to get the value of that switch |
04:36:40 | FromDiscord | <Elegantbeef> Could also just use an assert |
04:37:07 | FromDiscord | <Elegantbeef> But i dont think that's "proper" |
04:37:39 | nrds | <Prestige99> That's true, assertions would be turned off in some cases yeah? |
04:38:18 | FromDiscord | <Elegantbeef> Yea |
04:39:20 | FromDiscord | <Elegantbeef> ah it's `when compilerOption"checks"` |
04:39:35 | FromDiscord | <Elegantbeef> `compileOption`\ |
04:40:09 | FromDiscord | <Elegantbeef> Though you probably want `--boundChecks` |
04:40:19 | nrds | <Prestige99> Does that presume it's on, or does that hold the value? |
04:40:38 | FromDiscord | <Elegantbeef> It returns the value |
04:40:50 | FromDiscord | <Elegantbeef> if it's `--checks:off` it's false if it's `--checks:on` it's true |
04:41:07 | nrds | <Prestige99> Awesome, thanks |
04:41:12 | nrds | <Prestige99> Where did you find this info? |
04:41:26 | FromDiscord | <Elegantbeef> `system.nim` code 😛 |
04:41:30 | nrds | <Prestige99> I'm on mobile atm so haven't been looking |
04:41:33 | nrds | <Prestige99> Nice |
04:41:46 | FromDiscord | <Elegantbeef> It's not well documented how to properly do that |
06:01:30 | * | Gustavo6046 quit (Remote host closed the connection) |
06:02:01 | * | Gustavo6046 joined #nim |
06:04:08 | * | Gustavo6046 quit (Remote host closed the connection) |
06:04:35 | * | Gustavo6046 joined #nim |
06:13:42 | * | acidsys quit (Excess Flood) |
06:14:14 | * | acidsys joined #nim |
06:29:06 | * | GreaseMonkey quit (Read error: Connection reset by peer) |
07:49:07 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
07:49:30 | * | Gustavo6046 joined #nim |
07:54:02 | * | PMunch joined #nim |
07:56:01 | PMunch | @Bubblie, yes I get your pings through the bridges |
07:56:24 | PMunch | And no, a user don't need clang installed to run an application compiled with Futhark |
07:57:08 | FromDiscord | <Elegantbeef> Pmunch got a link to one of the playground tours, i really need to bookmark it for whenever it comes up again 😛 |
07:57:37 | PMunch | And yes, it's a pain to get it working on Windows. I don't really have a Windows machine to test things on, but I might spin up a VM one of these days to see if I can make it work properly |
07:57:50 | PMunch | @Elegantbeef, I think those are broken unfortunately |
07:58:05 | PMunch | I tried to share a link to one a couple weeks back but it just kept erroring out |
07:58:08 | FromDiscord | <Elegantbeef> Ah |
07:58:30 | PMunch | And since no-one ever used the feature I think it will get removed in the redesign |
07:58:59 | FromDiscord | <Elegantbeef> So i guess nevermind prestige no more tour'd playground |
07:59:46 | PMunch | I mean if you see a usecase for it I guess I could bring it back |
08:00:35 | FromDiscord | <Elegantbeef> Prestige wanted to port the Nim tutorial RSTs to an interactive tutorial so i suggested playground |
08:05:33 | PMunch | Aaah right, that would definitely be one way of doing it |
08:10:17 | PMunch | To be honest I'm not entirely sure why it suddenly broke |
08:19:17 | FromDiscord | <hmmm> friendsies how to check if an HSlice is empty? |
08:19:38 | FromDiscord | <Elegantbeef> empty? |
08:19:46 | FromDiscord | <Elegantbeef> `myHslice.b < myHslice.a`? |
08:19:50 | FromDiscord | <hmmm> nu |
08:20:08 | FromDiscord | <hmmm> if I check an empty one with echoes it prints : Slice[system.int] |
08:20:12 | FromDiscord | <hmmm> I want to check for that |
08:20:26 | FromDiscord | <Elegantbeef> what's an empty hslice? |
08:20:38 | FromDiscord | <hmmm> I don't know lol but I want to check for it 😄 |
08:20:49 | FromDiscord | <Elegantbeef> Show your code so i dont have to pull teeth |
08:20:57 | FromDiscord | <enthus1ast> echo (0..0).len ? |
08:21:04 | FromDiscord | <hmmm> MAYBE |
08:21:06 | FromDiscord | <hmmm> wait |
08:22:13 | FromDiscord | <Elegantbeef> I guess len would work, it's just what my math shows anyway |
08:22:20 | FromDiscord | <Elegantbeef> my logic shows\ |
08:22:27 | FromDiscord | <hmmm> it werks! ty enthy and beefy |
08:23:33 | FromDiscord | <Elegantbeef> "The enthy and beefy show" |
08:23:53 | FromDiscord | <hmmm> the best in town |
08:23:55 | FromDiscord | <Elegantbeef> One gives the answer the other gives the answer in a different way |
08:34:20 | * | xet7 quit (Read error: Connection reset by peer) |
08:46:03 | * | Gustavo6046 quit (Remote host closed the connection) |
08:46:20 | * | Gustavo6046 joined #nim |
09:15:09 | * | acidsys quit (Excess Flood) |
09:15:44 | * | acidsys joined #nim |
09:15:46 | * | acidsys quit (Excess Flood) |
09:16:24 | * | acidsys joined #nim |
09:17:51 | FromDiscord | <enthus1ast> I finally found a /terrible/ solution to insert json into mariadb with db\_mysql.... |
09:18:28 | FromDiscord | <enthus1ast> https://play.nim-lang.org/#ix=3TpW |
09:18:50 | FromDiscord | <enthus1ast> if you have other solutions please share ... |
09:19:33 | FromDiscord | <enthus1ast> the last fff is not correct in db.exec |
09:19:55 | FromDiscord | <enthus1ast> imho its a bug, it should work like normal with ? |
09:20:02 | FromDiscord | <enthus1ast> with `?` |
09:20:17 | NimEventer | New thread by Stedi: Xml-rpc client lib?, see https://forum.nim-lang.org/t/9041 |
09:27:19 | FromDiscord | <Phil> You can only do boolean compiler flags right? As in, check with "defined(compilerFlagName)", not associate a value with it? |
09:27:54 | FromDiscord | <TryAngle> sent a code paste, see https://play.nim-lang.org/#ix=3TpZ |
09:29:58 | FromDiscord | <enthus1ast> imho you must do this on C creation, but others might know a way |
09:34:13 | PMunch | Yeah I don't think there's a way to have a variant object limited to a certain kind. Would be neat though, especially for things like NimNodes |
09:34:28 | PMunch | @Phil, no you can also assign string and number values to them |
09:36:54 | FromDiscord | <TryAngle> In reply to @PMunch "Yeah I don't think": yes, I'm using a node structure right now but not having the limitation is also fine↵Thanks for answering, would be cool if something this would be implemented in the future |
09:37:03 | FromDiscord | <TryAngle> (edit) "In reply to @PMunch "Yeah I don't think": yes, I'm using a node ... structure" added "data" |
09:47:49 | FromDiscord | <hmmm> hooy |
09:48:20 | FromDiscord | <hmmm> do we happen to have something like python maketrans() and translate() |
09:48:52 | FromDiscord | <hmmm> seems very comfy |
09:50:16 | PMunch | We have strutils.multireplace which does the work of translate() |
09:50:44 | PMunch | And writing a makereplacements procedure should be fairly trivial, although I don't believe one exists in the standard library |
09:50:46 | FromDiscord | <hmmm> pmunchie thanks I'll go check |
09:51:17 | FromDiscord | <hmmm> I'll make one no prob, we must have 1:1 feature parity with pythons amiright? |
09:52:36 | FromDiscord | <TryAngle> may somebody ELI5 why objects can't be self referential but reference objects can 🥺 |
09:54:57 | PMunch | @TryAngle, sure |
09:55:06 | PMunch | Objects are copied by value |
09:55:16 | FromDiscord | <demotomohiro> reference types are actually pointers |
09:55:40 | PMunch | Say object A has a single integer field, then its size would be 8 bytes (on a 64-bit machine) |
09:56:14 | PMunch | If object B has an int field and an object A field it would take 16 bytes, 8 for the int, and 8 for the A object |
09:57:02 | PMunch | Now if object C tries to have a object C field, that means that it is infinitely big, since its own size is recursively defined on itself |
09:57:24 | PMunch | However with references, as @demotomohiro pointed out, only a reference to that object is stored |
09:57:41 | PMunch | References are the same size as a pointer, and these are always fixed size |
09:58:03 | FromDiscord | <TryAngle> Ah I see that makes sense |
09:58:07 | PMunch | So If object C is a reference object, and it contains an object C field, it will also be 8 bytes big |
09:58:24 | PMunch | This is because pointers and references are 8 bytes on a 64-bit machine |
09:59:10 | FromDiscord | <TryAngle> sent a code paste, see https://paste.rs/GDC |
09:59:13 | PMunch | Now if object A had another int field and it was 16 bytes big, then object B would be 16+8=24 bytes large. But if object A was a reference object then object B would still be 16 bytes big, 8 for the reference to A, and 8 for the int |
09:59:38 | PMunch | @TryAngle, yes, or better yet a reference |
10:00:42 | FromDiscord | <TryAngle> ah ok, I understand now thanks a lot 🥺😊 |
10:00:59 | FromDiscord | <TryAngle> the size definition was what I lacked I think 🤔 |
10:01:02 | PMunch | https://play.nim-lang.org/#ix=3Tq7 |
10:01:48 | PMunch | Might be even clearer with a repr: https://play.nim-lang.org/#ix=3Tq8 |
10:02:26 | FromDiscord | <TryAngle> No reply from server: 502 💀💀 |
10:02:36 | PMunch | @TryAngle, just try again |
10:02:39 | FromDiscord | <TryAngle> (edit) "502" => "503" |
10:03:03 | PMunch | Note that in a way a ref A is the same as an option, since the reference can be nil |
10:04:24 | PMunch | Ah never mind, the server is down for some reason.. |
10:24:15 | FromDiscord | <fbpyr> sent a code paste, see https://paste.rs/fGX |
10:25:21 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3Tqc |
10:25:47 | FromDiscord | <fbpyr> aah ok! thanks!! |
10:27:59 | FromDiscord | <hmmm> wot |
10:28:27 | FromDiscord | <hmmm> sent a code paste, see https://paste.rs/jca |
10:28:51 | FromDiscord | <fbpyr> well then the string is empty |
10:28:57 | FromDiscord | <fbpyr> I tried that as well. |
10:29:05 | FromDiscord | <enthus1ast> yeah you can do it like this as well (i use both styles, where i see it fits |
10:29:06 | FromDiscord | <enthus1ast> ) |
10:29:16 | FromDiscord | <hmmm> I didn't know about your style |
10:29:23 | FromDiscord | <fbpyr> ah no mine is different |
10:31:52 | FromDiscord | <fbpyr> thank you for the different versions 😌 |
10:35:10 | PMunch | They have their pros and cons. The second way might feel more common from other languages, but it has a couple drawbacks. Mainly that the resulting variable has to be a var, it's easier to leave in uninitialised by accident, with let and a block assignment Nim will check all your branches and guarantee that it is actually set to something, and it can't ever be changed after the initial assignment. |
10:44:01 | FromDiscord | <fbpyr> if the whole purpose of the conditional is getting to the variable (as in my example) , ↵then I actually like version 1 better. ↵but it is great to have seen both possibilities and reasoning of their pros/cons. 🙂 |
10:46:21 | PMunch | I mean your initial problem is simply that the variable isn't declared in the scope you try to use it in |
11:00:48 | * | toulene3 joined #nim |
11:01:22 | * | toulene quit (Ping timeout: 272 seconds) |
11:01:23 | * | toulene3 is now known as toulene |
11:11:06 | FromDiscord | <enthus1ast> i get random SIGSEGV in my prologue app \:/ |
11:11:32 | FromDiscord | <enthus1ast> but i think the're gc issues |
11:11:59 | FromDiscord | <enthus1ast> https://play.nim-lang.org/#ix=3Tqn |
11:12:19 | FromDiscord | <enthus1ast> have you seen these @xflywind ? |
11:15:13 | FromDiscord | <enthus1ast> also crashes on stable ;\_; |
11:33:14 | FromDiscord | <Bubblie> Pmunch, do you know where I should put the path to clang in windows |
11:33:25 | FromDiscord | <Bubblie> For futhark |
11:33:39 | FromDiscord | <Bubblie> And should it be the path to the lib folder? |
11:36:53 | PMunch | Uhm, damn it, I should've written it down when I went through this with System64.. |
11:39:07 | FromDiscord | <Rika> discord has a search function, do you know what you said roughly? |
11:39:18 | FromDiscord | <Rika> or check irc logs if you know what time |
11:39:28 | PMunch | I can't remember exactly when it was |
11:40:02 | PMunch | It was a conversation over multiple days between me and System64 Flandre Scarlett about clang, futhark, and windows paths |
11:42:33 | PMunch | @Bubblie, they had major issues with spaces in the path, so put it in a path without spaces |
11:42:49 | PMunch | And not sure what you mean path to the lib folder |
11:42:55 | PMunch | What exactly doesn't work? |
11:43:08 | PMunch | Can you install Futhark? |
11:43:13 | PMunch | Does it build Opir? |
11:44:55 | FromDiscord | <xflywind> In reply to @enthus1ast "have you seen these": I have no idea, but it looks like a gc bug. |
11:46:48 | FromDiscord | <hmmm> hoy do we have a builtin utility to iterate over multiline strings line by line? |
11:47:50 | FromDiscord | <Solitude> splitLines |
11:47:55 | FromDiscord | <Solitude> in strutils or something |
11:48:00 | FromDiscord | <hmmm> muh bro |
11:48:12 | PMunch | Nothing that takes a bunch of strings and iterates over all their lines though |
11:48:16 | PMunch | As far as I'm aware |
11:48:34 | FromDiscord | <hmmm> bunch as multiple different strings? |
11:48:48 | FromDiscord | <Solitude> thats called two for loops |
11:49:42 | PMunch | Yeah multiple different strings |
11:49:56 | PMunch | And is splitLines an iterator? |
11:50:02 | PMunch | Or will that allocate all the new strings? |
11:52:16 | FromDiscord | <Solitude> its both |
11:52:20 | FromDiscord | <Solitude> power of overloading |
11:52:29 | PMunch | Nice |
11:52:35 | FromDiscord | <auxym> In reply to @Solitude "thats called two for": or something like chain from https://github.com/narimiran/itertools |
11:53:53 | FromDiscord | <Solitude> In reply to @auxym "or something like chain": that requires to allocate each subsequence of lines, losing the advantage of iterated form |
12:01:16 | FromDiscord | <hmmm> also do we have some fuzzy thing for measuring the string distance of 2 strings like Levenshtein or whatever |
12:02:28 | FromDiscord | <Rika> https://nim-lang.org/docs/editdistance.html |
12:02:57 | FromDiscord | <hmmm> unicode-rune distance? hmm? works for ascii too? |
12:03:09 | FromDiscord | <hmmm> oh there is one for ascii |
12:03:10 | FromDiscord | <Rika> look LITERALLY RIGHT BELOW THAT |
12:03:12 | FromDiscord | <Rika> lol |
12:03:13 | FromDiscord | <hmmm> haha |
12:03:24 | FromDiscord | <Rika> btw |
12:03:47 | FromDiscord | <Rika> ascii is a subset of utf-8 which is what nim means by unicode rune i believe |
12:07:24 | FromDiscord | <Solitude> zamn, another module allergic to openArray[char], amazing |
12:08:07 | FromDiscord | <Rika> well its not well known |
12:09:06 | FromDiscord | <konsumlamm> or rr |
12:09:30 | FromDiscord | <konsumlamm> or rather in the case of the stdlib, most of it was written before `openArray` was a thing |
12:16:42 | FromDiscord | <Bubblie> In reply to @PMunch "@Bubblie, they had major": So like |
12:16:53 | FromDiscord | <Bubblie> I have installed llvm and clang in a folder pmunch |
12:16:56 | FromDiscord | <Bubblie> And |
12:17:02 | FromDiscord | <Bubblie> This folder contains a lib folder |
12:17:04 | FromDiscord | <Bubblie> A bin folder |
12:17:07 | FromDiscord | <Bubblie> Etc. |
12:17:15 | FromDiscord | <Bubblie> I added the lib folder to the path |
12:17:21 | PMunch | Which path? |
12:17:26 | FromDiscord | <Bubblie> User |
12:17:33 | PMunch | Okay |
12:17:39 | FromDiscord | <Bubblie> Didnt work |
12:17:47 | FromDiscord | <Bubblie> So I tried the bin folder |
12:17:49 | FromDiscord | <Bubblie> Also didn’t work |
12:17:50 | PMunch | Again, what didn't work |
12:17:56 | FromDiscord | <Bubblie> Building futhark |
12:17:59 | PMunch | Right |
12:18:09 | FromDiscord | <Bubblie> Trying to remember |
12:18:09 | PMunch | The error being that it can't find libclang or something? |
12:18:12 | FromDiscord | <Bubblie> What exactly |
12:18:16 | FromDiscord | <Bubblie> Im not at my computer |
12:18:17 | FromDiscord | <Bubblie> OH WAIT |
12:18:20 | FromDiscord | <Bubblie> Yes -lclang |
12:18:30 | FromDiscord | <Bubblie> “Failed to find lclang” |
12:18:36 | FromDiscord | <Bubblie> And then it proceeds to print a bunch of paths |
12:18:48 | FromDiscord | <Bubblie> (edit) "lclang”" => "-lclang”" |
12:18:51 | PMunch | Yeah, for that libclang.dll or whatever needs to be in your library loading path |
12:19:13 | FromDiscord | <Bubblie> Ah okay, so im assuming that dll is somewhere in the install |
12:19:31 | PMunch | On linux this includes a system path (so you can just do `apt install libclang; nimble install futhark`) but on Windows I'm not sure how that works |
12:19:38 | PMunch | Yeah it should be in the lib folder of clang |
12:20:34 | FromDiscord | <Bubblie> God I hate windows |
12:20:44 | FromDiscord | <Bubblie> Ill try doing this again when I get home |
12:20:51 | FromDiscord | <Bubblie> Thanks for helping so far pmunch |
12:21:23 | FromDiscord | <Bubblie> Im installing fedora linux on a seperate external drive |
12:21:29 | FromDiscord | <Bubblie> I cant wait to just |
12:21:30 | FromDiscord | <Bubblie> Use it |
12:21:31 | FromDiscord | <Bubblie> God |
12:25:28 | PMunch | I mean part of the problem here is that I've developed it on a Linux machine, the fact that it works at all on Windows is almost coincidental :P |
12:41:49 | FromDiscord | <Bubblie> LOL |
12:44:25 | FromDiscord | <Phil> I can recommend arch, PMunch pretty much converted me, it works pretty well, with gnome as well |
12:44:43 | PMunch | I did? |
12:45:30 | FromDiscord | <Phil> I always had that morbid curiosity of wanting to try it out and apparently it works well, which I can confirm so far in the... 3 or 4 weeks or so since I've got my laptop |
12:45:59 | FromDiscord | <Phil> (edit) "well," => "well (which is what you stated which convinced me to give it a try)," |
12:46:02 | FromDiscord | <Rika> I can’t recommend anything that isn’t rolling release when it comes to a personal machine lol |
12:46:10 | FromDiscord | <Bubblie> I dont want arch lol |
12:46:14 | FromDiscord | <Bubblie> Im using fedora |
12:46:21 | FromDiscord | <Bubblie> With kde |
12:46:27 | FromDiscord | <Bubblie> I disliked gnome last time I used it |
12:46:48 | FromDiscord | <Phil> dumb question since I've actually not reinstalled a DE so far |
12:46:50 | FromDiscord | <Rika> DE is up to you |
12:47:05 | FromDiscord | <Bubblie> ^ |
12:47:12 | FromDiscord | <Bubblie> If you like gnome then use it |
12:47:17 | FromDiscord | <Bubblie> If you like kde then use that |
12:47:24 | FromDiscord | <Bubblie> Its really just preference |
12:47:25 | FromDiscord | <Phil> I've got stuff in gnome calendar. if I uninstall Gnome41from pacman and flatpac-install Gnome42, is my data gone? I'm reasonably sure the answer is yes |
12:47:39 | FromDiscord | <Rika> We don’t know ask in a GNOME discord |
12:47:45 | FromDiscord | <hmmm> sent a code paste, see https://play.nim-lang.org/#ix=3TqJ |
12:47:50 | FromDiscord | <Rika> In reply to @hmmm "oh noes I can't": Yes |
12:47:58 | FromDiscord | <hmmm> I see |
12:47:59 | FromDiscord | <Rika> Array is compile time size |
12:48:05 | FromDiscord | <Rika> Bob is a runtime size string |
12:52:47 | NimEventer | New thread by Jorjun_arch: The WASM Revolution, see https://forum.nim-lang.org/t/9042 |
13:10:27 | FromDiscord | <System64 ~ Flandre Scarlet> How can I link a .lib to a Nim program pleaase? |
13:14:11 | PMunch | `--passL:"-l<name of lib>"` |
13:14:14 | PMunch | Or something like that |
13:26:50 | * | rockcavera joined #nim |
13:26:51 | * | rockcavera quit (Changing host) |
13:26:51 | * | rockcavera joined #nim |
13:47:26 | FromDiscord | <System64 ~ Flandre Scarlet> ah alright, thanks |
13:59:05 | * | xet7 joined #nim |
14:02:58 | * | xet7 quit (Client Quit) |
14:04:02 | * | xet7 joined #nim |
14:09:20 | * | jmdaemon joined #nim |
14:11:55 | * | wyrd quit (Ping timeout: 240 seconds) |
14:13:57 | * | wyrd joined #nim |
14:30:55 | * | m5zs7k quit (Read error: Connection reset by peer) |
14:31:06 | * | m5zs7k_ joined #nim |
14:31:35 | * | m5zs7k_ is now known as m5zs7k |
14:36:15 | * | xet7 quit (Quit: Leaving) |
14:45:09 | FromDiscord | <thadeudepaula> Is there an updated offline documentation for nim and its stdlib? Maybe in markdown or rst...↵↵I searched through Nim github in the source code of the site but couldnt find it |
14:57:47 | * | PMunch quit (Ping timeout: 260 seconds) |
15:01:13 | * | Guest20 joined #nim |
15:01:29 | * | Guest20 quit (Client Quit) |
15:09:49 | * | PMunch joined #nim |
15:26:14 | FromDiscord | <untoreh> how do you initialize threadvars with weave? |
15:26:26 | FromDiscord | <untoreh> when using `spawn` |
15:27:11 | * | slowButPresent joined #nim |
15:52:26 | FromDiscord | <spoon> In reply to @Rika "What’s the version number": https://media.discordapp.net/attachments/371759389889003532/956943649718042644/unknown.png |
15:52:36 | FromDiscord | <spoon> through wsl |
15:56:29 | FromDiscord | <Rika> ubuntu moment |
15:56:47 | FromDiscord | <spoon> yea, this is why i can't use anything but rolling release |
15:56:49 | FromDiscord | <Rika> ubuntu/debian is notorious for old packages, i think thats their thing |
15:57:27 | nrds | <Prestige99> ^ |
15:57:31 | FromDiscord | <spoon> still using a version from september 2017 though |
15:57:34 | FromDiscord | <spoon> how |
15:57:34 | nrds | <Prestige99> But also, use choosenim |
15:58:12 | nrds | <Prestige99> Weren't you going to switch to fedora? |
15:58:13 | FromDiscord | <spoon> i use manjaro, i just prefer the package manager handling everything |
15:58:18 | FromDiscord | <spoon> me? no |
15:58:19 | nrds | <Prestige99> oic |
15:58:28 | nrds | <Prestige99> Guess that was someone else |
15:59:21 | PMunch | @spoon, the Manjaro Nim package should be more up to date than that.. |
15:59:35 | PMunch | Could you do `pacman -Qo nim` for us? |
15:59:40 | FromDiscord | <spoon> In reply to @PMunch "<@161097102288486400>, the Manjaro Nim": sent a photo from ubuntu on wsl |
15:59:46 | FromDiscord | <spoon> manjaro is more up to date ofc |
15:59:50 | PMunch | Oooh |
15:59:56 | PMunch | That makes more sense :P |
16:00:56 | nrds | <Prestige99> looks like the aur is up to 1.4.6 |
16:01:01 | FromDiscord | <huantian> I still like to use choosenim on rolling distros like arch↵↵And with python i still do use pyenv |
16:01:31 | FromDiscord | <huantian> Isn’t Nim in official repos? |
16:02:01 | nrds | <Prestige99> oh it is. Up to 1.4.8 on arch |
16:03:51 | FromDiscord | <huantian> Yeah I wonder why it still hasn’t been updated |
16:04:31 | nrds | <Prestige99> I think the TUs/devs have a lot of stuff to maintain so there are some out of date packages in the official repos |
16:05:05 | FromDiscord | <huantian> Yeah ig |
16:07:05 | FromDiscord | <spoon> huh. |
16:08:15 | FromDiscord | <spoon> is there an up-to-date nim-git version on the aur? |
16:08:27 | nrds | <Prestige99> it's also out of date on the aur |
16:10:30 | nrds | <Prestige99> You can try bugging the aur maintainer at least |
16:10:30 | * | xaltsc joined #nim |
16:10:50 | FromDiscord | <spoon> isnt there a way to flag out of date packages? |
16:11:06 | nrds | <Prestige99> Yeah they are flagged out of date |
16:11:07 | FromDiscord | <Rika> there is |
16:11:20 | nrds | <Prestige99> https://archlinux.org/packages/community/x86_64/nim/ for instance |
16:11:36 | nrds | <Prestige99> https://aur.archlinux.org/packages/nim-git also has been flagged |
16:12:46 | FromDiscord | <spoon> ah so theyre already there |
16:24:13 | * | acidsys quit (Excess Flood) |
16:24:47 | * | acidsys joined #nim |
16:24:50 | * | acidsys quit (Excess Flood) |
16:25:28 | * | acidsys joined #nim |
16:32:57 | FromDiscord | <Kiwids> hey guys. a werid problem I got. when I compile with `-d:release`, the process just run once and terminate instantly... but when compile without it. the process seems stable |
16:35:18 | FromDiscord | <Solitude> damn, that sucks, can we look at the code? |
17:00:23 | PMunch | I've got a similar issue with one of the Nim crypto libraries |
17:00:43 | PMunch | Works in -d:debug but with -d:release it fails to decrypt |
17:14:01 | FromDiscord | <Kiwids> In reply to @Solitude "damn, that sucks, can": ahh yeah I am trying <https://github.com/MythicAgents/Nimplant/tree/v2.3> |
17:14:36 | FromDiscord | <hotdog> `when defined(release): silentlyFail()` |
17:14:36 | * | pro joined #nim |
17:15:01 | FromDiscord | <Kiwids> https://media.discordapp.net/attachments/371759389889003532/956964437611393105/unknown.png |
17:15:23 | FromDiscord | <Kiwids> I see it execute once and immediately exit |
17:15:42 | FromDiscord | <Kiwids> but when not in release. it will echo a lot of stuff. hence it will run stable |
17:15:45 | FromDiscord | <Kiwids> kinda werid |
17:18:03 | FromDiscord | <Kiwids> oh I think i found the issue... |
17:18:37 | FromDiscord | <Kiwids> when i comment out these line in checkin |
17:18:38 | FromDiscord | <Kiwids> https://media.discordapp.net/attachments/371759389889003532/956965343128092762/unknown.png |
17:19:54 | FromDiscord | <Kiwids> the program exit regardless. I think its because I messed up on the while loop there. if it returns false. would it just exit |
17:28:26 | FromDiscord | <Phil> ... I think I fucked up a package release of tinypool and I'm not entirely sure where |
17:28:40 | FromDiscord | <Phil> not fubar by any means, but a version number is absolutely not what it should be |
17:29:42 | FromDiscord | <Phil> I did a minor update where it essentially allows you to compile out the log statements (or rather it compiles in log statements if you activate a specific flag).↵I then went to the nimble github page to once more check out what I should be doing because I keep forgetting that one.↵The steps apparently just were: Make a git tag, push the git tag, done |
17:30:53 | FromDiscord | <Phil> sent a long message, see http://ix.io/3Ts6 |
17:31:22 | FromDiscord | <Phil> The code that I have is definitely the latest version of 0.3.0, but it's stored as if it were 0.2.1 |
17:39:49 | FromDiscord | <hotdog> In reply to @Isofruit "The code that I": https://github.com/PhilippMDoerner/TinyPool/blob/1f7bc1e02c9f3cefb434b4626dda89d909cc462c/tinypool.nimble#L3 |
17:39:54 | FromDiscord | <hotdog> Probably this? |
17:40:13 | FromDiscord | <hotdog> The tag is correct, the .nimble version isn't |
17:40:36 | FromDiscord | <Phil> Man, would be cool to be born smart yknow |
17:41:09 | FromDiscord | <Kiwids> 👍 |
17:42:35 | FromDiscord | <Phil> There you go, now 0.3.1 |
17:43:24 | FromDiscord | <Phil> You can now disable/enable Tinypool's logging essentially.↵It also no longer exports db_sqlite as I found that to be a really stupid decision of mine |
17:43:57 | FromDiscord | <Phil> (edit) "essentially.↵It" => "essentially with a compiler flag.↵It" |
17:45:44 | NimEventer | New thread by Solomonthewise: How to make a enum with wrapped ordinals, see https://forum.nim-lang.org/t/9044 |
17:47:50 | * | acidsys quit (Excess Flood) |
17:48:22 | * | acidsys joined #nim |
17:48:57 | * | acidsys quit (Client Quit) |
17:49:12 | * | acidsys joined #nim |
18:08:26 | FromDiscord | <Require Support> might be a stupid question but is there a way to release a huge array var from memory after im done with it in nim ? |
18:08:44 | FromDiscord | <Rika> exit the scope |
18:08:47 | FromDiscord | <Require Support> (edit) "might be a stupid question but is there a way to release a huge array var from memory after im done with it in nim ? ... " added "or maybe this is done automatically" |
18:11:19 | FromDiscord | <demotomohiro> You can create a large seq inside proc. It will be freed when returning the proc automatically. |
18:12:30 | FromDiscord | <Require Support> yeah probably better, thanks |
18:13:20 | FromDiscord | <spoon> nim is garbage collected, but if you need manual memory management, there are destructors and manual memory management options i believe |
18:25:35 | NimEventer | New Nimble package! pronimgress - Simple text progress bars in Nim!, see https://github.com/bichanna/pronimgress#pronimgress |
18:25:53 | nrds | <Prestige99> oh nice |
18:26:37 | FromDiscord | <Rika> no ;; mine better smh ;; |
18:29:34 | FromDiscord | <spoon> i got a smraza microcontroller (ATmega328P), how would i set this thing up for working with nim? |
18:29:35 | nrds | <Prestige99> Link? |
18:30:19 | FromDiscord | <Rika> to mine? https://github.com/de-odex/suru |
18:30:34 | FromDiscord | <Rika> though tbh it needs more love |
18:30:40 | FromDiscord | <Rika> i have some half-impl features |
18:32:20 | nrds | <Prestige99> oh I like that |
18:34:16 | FromDiscord | <Rika> yeah maybe ill work on this tomorrow |
18:35:40 | nrds | <Prestige99> I need to work on some smaller nim utils I've been copy-pasting between projects |
18:36:27 | FromDiscord | <auxym> In reply to @spoon "i got a smraza": That's the same MCU as arduino uno right? Check this out: https://ratel.peterme.net/gettingstarted.html |
18:38:12 | nrds | <Prestige99> e.g. https://github.com/avahe-kellenberger/safeset and a Seq2D thing I made... |
18:39:18 | FromDiscord | <auxym> In reply to @auxym "That's the same MCU": But in general, the idea is to figure out how to compile a C program "from scratch" for the MCU, then just adapt that to nim. tell Nim to use the right compiler (avr-gcc for avr), link the vendor-provided startup file, use the vendor linker script if applicable, importc some register mappings from C headers, etc |
18:39:33 | PMunch | @spoon, @auxym, yup it's the same one, so Ratel should work on it :) |
18:40:05 | FromDiscord | <spoon> oh cool, thanks |
18:59:52 | * | rockcavera quit (Read error: Connection reset by peer) |
19:00:17 | * | rockcavera joined #nim |
19:00:17 | * | rockcavera quit (Changing host) |
19:00:17 | * | rockcavera joined #nim |
19:00:34 | * | xet7 joined #nim |
19:03:31 | * | vicfred joined #nim |
19:55:29 | * | jmd_ joined #nim |
19:56:09 | * | jmdaemon quit (Ping timeout: 268 seconds) |
20:01:27 | FromDiscord | <huantian> In reply to @Rika "to mine? https://github.com/de-odex/suru": Oh that’s yours? Looks sick might use it for a project |
20:16:15 | NimEventer | New thread by Stefan_Salewski: CSV file parsing, see https://forum.nim-lang.org/t/9045 |
20:50:54 | * | greaser|q joined #nim |
20:51:59 | * | greaser|q quit (Changing host) |
20:51:59 | * | greaser|q joined #nim |
20:52:03 | * | greaser|q is now known as GreaseMonkey |
21:42:35 | * | wyrd quit (Ping timeout: 240 seconds) |
21:49:46 | * | wyrd joined #nim |
21:50:59 | FromDiscord | <Bubblie> Yeah clang is being annoying on windows atm |
21:51:47 | FromDiscord | <Bubblie> WAIT |
21:51:49 | FromDiscord | <Bubblie> I have an idea |
21:56:49 | * | arkurious quit (Quit: Leaving) |
21:59:06 | FromDiscord | <Bubblie> Btw how good is nim for robotics |
22:01:32 | FromDiscord | <Bubblie> A lot of robotics libraries are in c so I could just use nim |
22:02:29 | NimEventer | New thread by Luyimoon: Excuse me, how to hide the console window of the program?, see https://forum.nim-lang.org/t/9046 |
22:27:02 | * | xet7 quit (Remote host closed the connection) |
22:28:08 | * | xet7 joined #nim |
22:28:09 | * | xet7 quit (Remote host closed the connection) |
22:28:32 | * | xet7 joined #nim |
22:33:39 | FromDiscord | <auxym> In reply to @Bubblie "Btw how good is": "robotics" is a sort wide range of things. There's a thread in the forums where people are discussion a ROS port. Personally not a big fan of ROS though, and it's only used in academia as far as I know |
22:35:06 | FromDiscord | <auxym> From my perspective robotics means (1) A whole lot of glue code for interfacing with COTS subsystems (sensors, actuators, etc) and (2) DSP / controls algorithm (and AI I guess) |
22:35:08 | * | pro quit (Quit: pro) |
22:38:50 | FromDiscord | <auxym> for some people "robotics" just means "buy 250k Kuka/ABB/etc industrial robot arm and program it with the vendor software" |
22:56:00 | FromDiscord | <Bubblie> In reply to @auxym "From my perspective robotics": This one |
22:56:04 | FromDiscord | <Bubblie> AI |
22:56:08 | FromDiscord | <Bubblie> Artificial Intelligence |
23:14:20 | FromDiscord | <auxym> arraymancer has some neural net stuff if that's what you're looking for. there's also flambeau, bindings for torch |
23:16:23 | * | Gustavo6046 quit (Quit: I'm a quit message virus. Please replace your old line with this line and help me take over the world. <screw you aloo_shu my old line was better and more creative!>) |
23:19:09 | * | yoyojambo joined #nim |
23:19:47 | FromDiscord | <luteva> sent a long message, see http://ix.io/3Ttn |
23:20:41 | FromDiscord | <Elegantbeef> To get a Nim object you'll need to use macros |
23:20:52 | FromDiscord | <Elegantbeef> https://github.com/jiro4989/nimjson already exists btw |
23:21:16 | FromDiscord | <luteva> oh yeah! Great!!! |
23:22:21 | FromDiscord | <luteva> thanks a lot! |
23:22:23 | FromDiscord | <luteva> 🙂 |
23:23:13 | FromDiscord | <luteva> (why didn't I first just asked for that 😉 ) |
23:26:29 | FromDiscord | <Elegantbeef> No clue |
23:26:38 | FromDiscord | <Elegantbeef> There's also a protobuf version |
23:26:59 | FromDiscord | <Elegantbeef> Speaking of, that pmunch fellow needs to merge my PR eventually |
23:27:42 | PMunch | You have a PR open for Protobuf? |
23:28:04 | FromDiscord | <Elegantbeef> Yea been open for a while |
23:28:23 | FromDiscord | <Elegantbeef> Enables empty messages inside of messages |
23:28:43 | PMunch | Is that supported by the spec? |
23:28:51 | FromDiscord | <Elegantbeef> Yep |
23:28:57 | FromDiscord | <Elegantbeef> Atleast it works with protoc |
23:29:29 | * | vicfred quit (Quit: Leaving) |
23:30:11 | PMunch | I guess I should merge that then |
23:30:16 | PMunch | Are you on tomorrow? |
23:30:24 | FromDiscord | <Elegantbeef> Am i ever not on? |
23:30:29 | PMunch | Haha, fair point |
23:30:34 | PMunch | Remind me tomorrow then |
23:30:45 | PMunch | It's late and I'm playing Elden Ring right now :P |
23:31:00 | FromDiscord | <Elegantbeef> Presently looking at trying to get nimlsp to work with kate apparently the present issue is with a `didChange` |
23:31:17 | FromDiscord | <Elegantbeef> Ah life is better with a controller 😛 |
23:31:27 | PMunch | Oh most definitely |
23:31:34 | PMunch | I've actually been able to get some progress now :P |
23:32:06 | PMunch | If you want to help out with NimLSP I believe one thing that would really help debug stuff is a record/playback feature |
23:32:15 | FromDiscord | <Alea> how do you compile with the options set in your project's nimble file? |
23:32:22 | FromDiscord | <Alea> like binDir and such |
23:32:24 | FromDiscord | <Elegantbeef> Well right now i just want diagnostics |
23:32:34 | FromDiscord | <Elegantbeef> `nimble build` |
23:32:36 | PMunch | Essentially a way for nimlsp to store each command that goes through in a format that can then be replayed by a test |
23:33:25 | FromDiscord | <Elegantbeef> https://play.nim-lang.org/#ix=3Ttr could i bother you for a moment to explain why the json doesnt match the `requestMessage` herre? |
23:33:46 | FromDiscord | <Elegantbeef> Is it the lack of `id`? |
23:36:47 | FromDiscord | <Bubblie> In reply to @Elegantbeef "There's also a protobuf": planning to use that actually |
23:36:49 | FromDiscord | <Bubblie> I love protobuf |
23:41:45 | FromDiscord | <luteva> In reply to @Alea "how do you compile": i think you can just use nimble as a command instead of nim |
23:43:06 | FromDiscord | <luteva> params are added fromn the nimble config and c (compile) r (run) etc. are just "forwarded" to the nim command |
23:47:45 | FromDiscord | <Alea> Hmm, now its throwing an error that it can't find my installed nimble packages despite the nimble dir being in my path |
23:49:40 | PMunch | @Elegantbeef, me? |
23:50:10 | FromDiscord | <Elegantbeef> Yea disregard i just changed the code a bit and it then accepted it even though it's not adhering to the spec |
23:50:21 | PMunch | All the message definitions are taken from the LSP spec |
23:50:33 | PMunch | But some clients are dum-dums and don't adhere to the spec |
23:50:43 | FromDiscord | <Elegantbeef> Yea i got that |
23:50:46 | PMunch | The way NimLSP currently works requires the use of strict parsing |
23:50:55 | FromDiscord | <Elegantbeef> Pmunch quit typing |
23:51:18 | PMunch | Otherwise the initial parsing will succeed when it's meant to fail and fall through to the next message type |
23:51:32 | PMunch | What change did you make to make it work? |
23:51:48 | FromDiscord | <Elegantbeef> I understand, and making it accept that message just got further to making it crash with badly formed cancel request |
23:52:03 | FromDiscord | <Elegantbeef> I changed id to be optional to see what would happen, but it just got to a cancel request and cried |
23:52:14 | FromDiscord | <Elegantbeef> Kate's LSP implementation seems to disregard the spec quite hard |
23:53:08 | FromDiscord | <luteva> In reply to @Alea "Hmm, now its throwing": can you list your installed packages? |
23:53:12 | FromDiscord | <luteva> which OS? |
23:53:41 | FromDiscord | <luteva> nimble list -i |
23:53:56 | FromDiscord | <Alea> Windows 10 https://media.discordapp.net/attachments/371759389889003532/957064824318222407/unknown.png |
23:54:08 | PMunch | Yeah the way you distinguish a request from a notification is by the existence of an ID IIRC |
23:54:51 | FromDiscord | <Elegantbeef> So then perhaps it's a you issue. hmm i dont know much need to look at the spec more |
23:55:46 | PMunch | Sounds like a Kate issue TBH |
23:56:21 | FromDiscord | <Elegantbeef> I mean it's probably not even the issue |
23:56:29 | FromDiscord | <Elegantbeef> We're not getting any request for diagnostics it seems |
23:57:25 | PMunch | Wait, didChange isn't a request |
23:57:27 | PMunch | It's a notification |
23:57:30 | PMunch | So that's correct |
23:57:36 | FromDiscord | <Elegantbeef> Yea it is |
23:57:37 | PMunch | diagnostics are sent on save |
23:57:40 | FromDiscord | <luteva> ok so maybe your are just not in the folder of the project you want to compile/run? if all went well, you should be able to just use the nimble command instead of nim (for compiling, running, debugging, cross-compiling etc.). But I have absolutely no idea about how that works on windows. |
23:58:59 | FromDiscord | <Alea> I think I originally installed nim without choosenim, so I'm thinking of nuking my installation and starting over clean with the new version↵that a good idea? |