00:16:26 | * | stkrdknmibalz joined #nim |
01:23:41 | * | neurocyte01323 joined #nim |
01:23:41 | * | neurocyte01323 quit (Changing host) |
01:23:41 | * | neurocyte01323 joined #nim |
01:25:46 | * | neurocyte0132 quit (Ping timeout: 252 seconds) |
01:25:46 | * | neurocyte01323 is now known as neurocyte0132 |
02:38:02 | * | kayabaNerve_ joined #nim |
02:47:17 | * | arkurious quit (Quit: Leaving) |
03:14:53 | FromDiscord | <Gumber> In reply to @garett "Anyone know of a": What are you working on? I mean obviously it's some Vulcan but you have sparked my curiosity... |
03:15:04 | FromDiscord | <Gumber> And why are you trying to do that |
03:15:13 | FromDiscord | <Gumber> Also asking out of curiosity |
03:15:27 | FromDiscord | <Gumber> (edit) "Vulcan" => "Vulkan" |
03:51:35 | * | kayabaNerve_ quit (Ping timeout: 252 seconds) |
04:06:02 | * | supakeen quit (Quit: WeeChat 3.3) |
04:06:31 | * | supakeen joined #nim |
04:15:00 | * | kayabaNerve joined #nim |
04:42:23 | FromDiscord | <garett> I’m writing a Nim script to convert vk.xml into Nim. |
04:43:25 | FromDiscord | <garett> Similar to what nimgl/vulkan does, but formatted differently |
04:45:12 | FromDiscord | <garett> I produce one Nim module per API version, v1_0.nim, v1_1.nim, v1_2.nim, and one module per extension |
04:46:09 | FromDiscord | <garett> At the time I was writing the generator for struct initializer procs that autofill sType |
04:51:38 | FromDiscord | <garett> I’ve also written some macros that rewrite Nim to GLSL, so the goal is to write shader code and imperative pipeline configuration in a Nim DSL, somewhat like Unity shaderlab, so I can write the CPU/GPU code for render passes in a single Nim module. Cool thing about generating GLSL/HLSL from Nim is that the shader code can directly reference types that are also exposed to the surrounding CPU-side Nim code |
04:53:06 | FromDiscord | <garett> Reducing redundancy between shader and CPU code, simplifying binding |
04:53:42 | FromDiscord | <garett> 🤓 |
04:54:19 | FromDiscord | <Yardanico> did you see https://github.com/treeform/shady for some inspiration? |
04:54:21 | nrds | <R2D299> itHub: 7"Nim to GPU shader language compiler and supporting utilities." |
04:54:33 | FromDiscord | <Yardanico> also https://github.com/yglukhov/nimsl |
04:54:35 | nrds | <R2D299> itHub: 7"Shaders in Nim language" |
04:54:51 | FromDiscord | <garett> Cool, thanks for the links |
04:55:58 | FromDiscord | <Stuffe> How come the assert triggers in this example: https://play.nim-lang.org/#ix=3zTv |
04:56:40 | FromDiscord | <Stuffe> I am trying to use a sequence of references, but it doesn't seem to work the way you (or I at least) would expect |
04:59:04 | FromDiscord | <Yardanico> In reply to @Stuffe "How come the assert": because "result[] = x" copies x into result[] |
04:59:33 | FromDiscord | <Yardanico> you can't really do what you want here as it'll be unsafe because stack-allocated objects (typical `object`) are, well, on stack, so if you go out of scope they'll get deallocated |
04:59:59 | FromDiscord | <garett> I thought a ref T had to be initialized from a new T |
05:00:09 | FromDiscord | <Yardanico> there are multiple ways of initializing ref T |
05:00:58 | FromDiscord | <Elegantbeef> This is a bug afaict |
05:01:10 | FromDiscord | <Stuffe> In reply to @Yardanico "you can't really do": Would there be any way to do this if I just wanted a seq of refs allocated on the heap? |
05:01:11 | FromDiscord | <Yardanico> @ElegantBeef is it? |
05:01:28 | FromDiscord | <Elegantbeef> Oh wait nvm |
05:01:28 | FromDiscord | <Yardanico> In reply to @Stuffe "Would there be any": then my_chair should be a ref too |
05:01:28 | FromDiscord | <Elegantbeef> that's a `var chair` |
05:01:31 | FromDiscord | <Rika> lol |
05:01:47 | FromDiscord | <Elegantbeef> Well i mean i think it's still a bug |
05:02:00 | FromDiscord | <Stuffe> I am really iterating over a tree and I want a list of the nodes in the path to the current location |
05:02:01 | FromDiscord | <Elegantbeef> Cause you're assigning the struct of a ref to a struct |
05:02:03 | FromDiscord | <Stuffe> speed is not an issue |
05:02:12 | FromDiscord | <Stuffe> So I don't mind how its done |
05:02:13 | FromDiscord | <Elegantbeef> input shouldnt mutate when assigning the width of that ref's struct |
05:02:14 | FromDiscord | <Yardanico> @ElegantBeef look into the code |
05:02:16 | FromDiscord | <Yardanico> new(result); result[] = x |
05:02:21 | FromDiscord | <Yardanico> result[] = x does a copy of x |
05:02:33 | FromDiscord | <Yardanico> so the assert fails obviously |
05:02:40 | FromDiscord | <Elegantbeef> Oh fuck yea |
05:02:46 | FromDiscord | <Elegantbeef> The assert fails 😛 |
05:02:47 | FromDiscord | <Yardanico> because the chair object in block_stack[^1] is not the same as `input` passed into the proc |
05:02:48 | FromDiscord | <Rika> bruh |
05:02:51 | FromDiscord | <Elegantbeef> This is expected |
05:03:01 | FromDiscord | <Elegantbeef> Sorry i looked up from compiler code |
05:03:05 | FromDiscord | <Yardanico> lol |
05:03:05 | FromDiscord | <Elegantbeef> I'll shush |
05:03:06 | FromDiscord | <Rika> you should store input.box and check against that, input never gets mutated |
05:03:42 | FromDiscord | <Elegantbeef> I was so confused how the the `input.width` got set to 10 and i was like 99% certain it was a bug, but my brain was being dumb |
05:03:43 | FromDiscord | <Stuffe> What I want is a mutable list of parent nodes |
05:03:52 | FromDiscord | <Rika> which you do get |
05:04:03 | FromDiscord | <Rika> you just have to take the `ref T` and not the `T` to see the changes |
05:04:34 | FromDiscord | <Yardanico> @Stuffe |
05:04:35 | FromDiscord | <Stuffe> In reply to @Rika "you just have to": I am not sure what you mean, could you make a quick example? |
05:04:41 | FromDiscord | <Yardanico> sent a code paste, see https://paste.rs/pXV |
05:04:47 | FromDiscord | <Rika> thios passes https://media.discordapp.net/attachments/371759389889003532/891188460877140028/unknown.png |
05:05:11 | FromDiscord | <Stuffe> Perfect! |
05:05:13 | FromDiscord | <Stuffe> thank you |
05:05:14 | FromDiscord | <Yardanico> and yeah, you don't need "box" in this case as it doesn't work the way you want anyway |
05:05:28 | FromDiscord | <Stuffe> ok, got it |
05:05:44 | FromDiscord | <Yardanico> there are also view types, but they're still in an experimental phase https://nim-lang.org/docs/manual_experimental.html#view-types |
05:05:49 | FromDiscord | <garett> https://play.nim-lang.org/#ix=3zTB |
05:05:51 | FromDiscord | <Rika> yeah you need the ref type outside the proc so you can still see the changes... |
05:06:26 | FromDiscord | <Stuffe> Ok I understand it now. Thanks guys 🙂 |
05:06:49 | FromDiscord | <garett> ref T in Nim is not like T& in C++ |
05:06:54 | FromDiscord | <Rika> do you come from rust? just asking this feels like it |
05:07:24 | FromDiscord | <garett> ref T is more like shared_ptr<T> |
05:07:30 | FromDiscord | <Elegantbeef> Ref is just a gc managed pointer |
05:07:42 | FromDiscord | <Yardanico> In reply to @garett "ref T in Nim": well obviously, ref T is a managed reference, but T& is taking a raw pointer |
05:07:58 | FromDiscord | <Rika> its not so obvious to otehr people |
05:08:07 | FromDiscord | <Yardanico> nim has `addr` (that is unsafe) if you need to take a raw pointer of something |
05:10:02 | FromDiscord | <garett> Not to surprising that someone coming from C++ might think a Nim ref is like a C++ “reference” |
05:10:13 | FromDiscord | <garett> (edit) "to" => "too" |
05:10:35 | FromDiscord | <Rika> yeah |
05:11:36 | FromDiscord | <garett> I had some fun figuring out how to safely manage raw pointer life cycle in Nim when getting started |
05:12:00 | FromDiscord | <garett> Especially if you want the pointer to be owned by a closure |
05:13:34 | FromDiscord | <garett> The ‘reset‘ keyword and `=destroy` together can make it work |
05:16:18 | FromDiscord | <garett> Closures are super nice to work with, but they are managed memory |
05:17:11 | FromDiscord | <garett> Nim has a few syntactic bits that are a bit ugly, but mostly I really enjoy reading and writing it |
05:49:00 | FromDiscord | <wizardlink> :tooruThinking: |
05:49:08 | FromDiscord | <wizardlink> is it possible to do multiline conditions? |
05:49:48 | FromDiscord | <wizardlink> I've been trying to figure out how I'd do `if ... and ...` with multiline but couldn't find an answer |
05:49:57 | FromDiscord | <Elegantbeef> new line after `and` or `or` |
05:50:16 | FromDiscord | <Elegantbeef> Operators can new line fine |
05:50:51 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3zTL |
05:51:21 | FromDiscord | <wizardlink> I... Didn't think about that. What is the technical reason for that? Just curious really. |
05:51:59 | FromDiscord | <wizardlink> sent a code paste, see https://play.nim-lang.org/#ix=3zTM |
05:52:03 | FromDiscord | <Elegantbeef> I imagine just how operators work |
05:52:04 | FromDiscord | <wizardlink> (edit) "https://play.nim-lang.org/#ix=3zTM" => "https://paste.rs/beb" |
05:52:31 | FromDiscord | <Elegantbeef> when you hit an operator you know the next thing needs to be a statement |
05:53:12 | FromDiscord | <Elegantbeef> And that applies to all operators except postfix ones |
05:53:24 | FromDiscord | <Elegantbeef> But there is only a few postfix operators |
05:55:18 | FromDiscord | <wizardlink> Yes, that makes sense actually. |
05:55:39 | FromDiscord | <wizardlink> Thanks beef! Have a good one. :Daijobu: |
05:56:12 | FromDiscord | <Elegantbeef> No problem, surprised those emojis make it across the bridge |
05:56:55 | FromDiscord | <Gumber> In reply to @garett "I had some fun": I haven't seen you around the community much but it's good to have another C++ dev using Nim 🙂 |
05:57:11 | FromDiscord | <Gumber> and if you've been around for a while - I apologize, I just have been very like busy with life |
05:57:14 | FromDiscord | <Gumber> going through some shit atm |
05:57:32 | FromDiscord | <garett> Thanks, I’ve grown tired of all the curly braces |
05:57:34 | FromDiscord | <Elegantbeef> And he never says it's good to see me using nim so you best take that happiness 😛 |
05:57:45 | FromDiscord | <Gumber> but glad you're using Nim and glad you are using Vulkan because I'm writing my renderer right now using https://github.com/martty/vuk + vkbootsrap atm |
05:57:47 | nrds | <R2D299> itHub: 7"vuk - A rendergraph-based abstraction for Vulkan" |
05:57:52 | FromDiscord | <Gumber> lol I love beef |
05:58:18 | FromDiscord | <Gumber> and yeah I had to go through the whole deep drive into Nim's memory model and compare it to my knowledge of C and C++ as well |
05:58:25 | FromDiscord | <Gumber> and then like figure out the whole concurrency story |
05:58:38 | FromDiscord | <Gumber> and how to write multithreaded code without running into deadlocks and sigsve |
05:58:42 | FromDiscord | <Gumber> (edit) "sigsve" => "sigsevs" |
05:58:50 | FromDiscord | <garett> In reply to @Gumber "but glad you're using": Very cool |
05:58:52 | FromDiscord | <Gumber> dealt with the Nim runtime pre arc/orc and move semantics and raii semantics |
05:59:07 | FromDiscord | <Gumber> so I had to like figure out in my own head why I couldn't run two nim runtimes |
05:59:10 | FromDiscord | <Gumber> and build like a plugin system |
05:59:18 | FromDiscord | <Gumber> figured out eventually it was all because like each runtime as a gc |
05:59:20 | FromDiscord | <Gumber> and they stop on one another |
05:59:31 | FromDiscord | <Gumber> and there''s a flag to not include the gc in the nim runtime if you're building a shared lib |
05:59:32 | FromDiscord | <Rika> In reply to @Elegantbeef "But there is only": a few? only one you mean? |
05:59:34 | FromDiscord | <Gumber> but then half the std lib doesn't work |
05:59:47 | FromDiscord | <Gumber> so like I went through all the plains of trying to parallelize work across cores |
05:59:54 | FromDiscord | <Gumber> and just like stumbled for years with it and Nim |
06:00:02 | FromDiscord | <Gumber> and then arc / orc arrived and EVERYTHING changed |
06:00:11 | FromDiscord | <Gumber> I just didn't grok everything about low level stuff back then and now I do |
06:00:20 | FromDiscord | <Gumber> autodidact so top down |
06:00:27 | FromDiscord | <Gumber> and really bad adult ADHD that I just figured out a few weeks ago |
06:00:34 | FromDiscord | <Gumber> so like learning it for me took a LONG time and was hell |
06:00:39 | FromDiscord | <Gumber> but now I love using Nim with C and C++ |
06:00:50 | FromDiscord | <Gumber> game and game engine is finally coming along after like six years of rewrites and R&D |
06:01:01 | FromDiscord | <Gumber> and Nim is fitting the bill VERY nicely |
06:01:03 | FromDiscord | <garett> I like orc, don’t use much ref types yet other than closures |
06:01:06 | FromDiscord | <Elegantbeef> Oh right i was going to abuse myself to try and fix your C++ bug |
06:01:20 | FromDiscord | <Elegantbeef> Look at these people using closures |
06:01:23 | FromDiscord | <Gumber> I basically use manually memory allocation for everything that I think might cross a thread boundary |
06:01:33 | FromDiscord | <Gumber> and before I really understood closure iterators |
06:01:47 | FromDiscord | <Gumber> I wrote myself a multithreaded job system in Nim using fibers implemented in boost context lib with assembly |
06:01:57 | FromDiscord | <Gumber> and I just would get a version of it without all the bost crap in it |
06:01:59 | FromDiscord | <Elegantbeef> I pretty much never use closures, though do use a CPS iterator for my window manager layout engine |
06:02:08 | FromDiscord | <Gumber> so it was just the assembly for each cpu arch / instruction set |
06:02:12 | FromDiscord | <Rika> closures are very useful |
06:02:15 | FromDiscord | <Gumber> and I could wrap that with nim |
06:02:18 | FromDiscord | <Gumber> compile it to object files |
06:02:19 | FromDiscord | <Gumber> interop with it |
06:02:26 | FromDiscord | <Gumber> and I had fibers on like linux and mac and windows now |
06:02:29 | FromDiscord | <garett> I’m a Luddite using VirtualAlloc/map for any allocation 😛 |
06:02:33 | FromDiscord | <Elegantbeef> Uh oh rika going to lose their mind about my limited closure usage |
06:02:38 | FromDiscord | <Gumber> heh hey I feel you |
06:02:50 | FromDiscord | <Gumber> I mean manual memory allocation is nice because then you can do sstuff like track leaks |
06:02:54 | FromDiscord | <Rika> In reply to @Elegantbeef "Uh oh rika going": i already lose my mind from you existing |
06:02:56 | FromDiscord | <Gumber> and analyze memory usage by subsystem etc |
06:03:04 | FromDiscord | <Gumber> but when you start mixing managed and manual memory |
06:03:18 | FromDiscord | <Gumber> you just like have to do it right and make sure you think about what you're doing more closely - I feel like anyway |
06:03:27 | FromDiscord | <Elegantbeef> Fuck yea never knew my existence brought so much displeasure, i now have a reason to live! |
06:03:31 | FromDiscord | <Gumber> this is my first time working in this type of hybrid approach so I'm still figuring things out |
06:04:00 | FromDiscord | <Gumber> but I def lean very heavliy on malloc and pointers |
06:04:06 | FromDiscord | <garett> Sounds like you’ve written some cool stuff |
06:04:23 | FromDiscord | <Gumber> and less on the Nim runtime unless it's in userland or I know it just will stay on a single thread and doesn't require any shared memory |
06:04:33 | FromDiscord | <Gumber> https://github.com/zacharycarter is my github |
06:04:39 | FromDiscord | <Gumber> lots of dead projects on there but it's just like all prototype R&D stuff |
06:04:47 | FromDiscord | <Gumber> trying out different techniques and building differnt subsystems |
06:04:57 | FromDiscord | <Gumber> last piece is the renderer and I'm getting to the point where I"m drawing things now |
06:05:03 | FromDiscord | <Gumber> and have a render graph implementation under the hood |
06:05:09 | FromDiscord | <Gumber> so a very nice abstraction to sit on top of vulkan |
06:05:26 | FromDiscord | <Gumber> and once that is done, the actual game dev begins - so alpha should be sometime next year I think |
06:05:58 | FromDiscord | <Gumber> and https://zacattack.io/ is my website that hasn't been updated in like 4 years or so haha |
06:06:00 | FromDiscord | <garett> https://github.com/garettbass is where my projects go to die |
06:06:03 | FromDiscord | <Gumber> but it has some of my llke really early gamedev work on it |
06:06:07 | FromDiscord | <Gumber> 😄 |
06:06:32 | FromDiscord | <Gumber> oh wow |
06:06:35 | FromDiscord | <Gumber> you just worked on bloodlines haha okay |
06:06:57 | FromDiscord | <Gumber> was just looking at that on steam like a day or two ago |
06:07:01 | FromDiscord | <Gumber> nice |
06:07:04 | FromDiscord | <Gumber> game looks very cool! |
06:07:10 | FromDiscord | <garett> https://garettbass.com is not as slick as your site |
06:07:18 | FromDiscord | <Gumber> eh I did web dev for years |
06:07:24 | FromDiscord | <Gumber> and while I"m like terrible at aesthetics and design |
06:07:30 | FromDiscord | <Gumber> I can cobble something together that looks okay |
06:07:38 | FromDiscord | <Gumber> plus like a lot of nimmers helped me with feedback and design tips and shit so it wasn't all me for sure |
06:07:44 | FromDiscord | <Gumber> and it still looks like barf but whatever |
06:07:50 | FromDiscord | <Gumber> I stopped paying the bills on it |
06:08:05 | FromDiscord | <garett> Working on Rec Room these days. Bloodlines 2 was a sinking ship |
06:08:07 | FromDiscord | <Gumber> I'm out of gamedev and happy about it (profesionally) and I don't feel like I need to advertise myself anymore, I'm old now and I like my job |
06:08:22 | FromDiscord | <Gumber> I saw a lot of negative feedback around bloodlines and like perf optimizatoina nd stuff |
06:08:25 | FromDiscord | <Gumber> (edit) "optimizatoina nd" => "optimizatoin and" |
06:08:30 | FromDiscord | <Gumber> but I didn't want to say anything xD |
06:08:42 | FromDiscord | <Elegantbeef> shit devs |
06:09:01 | FromDiscord | <Gumber> rec room looks cool |
06:09:16 | FromDiscord | <Gumber> in 2019 / 2020 I was working for - |
06:09:18 | FromDiscord | <Gumber> https://frogmind.com/ |
06:09:20 | FromDiscord | <garett> Game was beautiful, art and level design were solid, but the engineering was very junior |
06:09:29 | FromDiscord | <Gumber> and they had just started that hypehype early access project |
06:09:43 | FromDiscord | <Gumber> like when i had to leave, we had just finished cooking up an alpha for it |
06:09:47 | FromDiscord | <garett> (edit) "Game" => "Bloodlines 2" |
06:09:52 | FromDiscord | <Gumber> and were like starting to make plans for an eventual soft launch |
06:10:10 | FromDiscord | <Gumber> In reply to @garett "Bloodlines 2 was beautiful,": that was kind of the impression I was left with from reading steam reviews but I didn't want to jump to conclusions |
06:10:27 | FromDiscord | <Gumber> I was thinking about giving it a shot eventually, I just haven't had any time lately to game |
06:10:34 | FromDiscord | <Gumber> but now that you've said that I guess I probably will pass |
06:11:39 | FromDiscord | <garett> Still, I got to do some fun stuff. Made an IMGUI for Unreal that made some really complex tools super easy to write |
06:13:25 | FromDiscord | <garett> The timeline in that animation tool is all custom IMGUI, which let me live recompile the GUI while the Unreal editor was running |
06:13:49 | FromDiscord | <garett> Super fast iteration 😊 |
06:14:55 | FromDiscord | <garett> Games I’ve enjoyed this year are Valheim, Jupiter Hell, and Deathloop |
06:16:23 | FromDiscord | <garett> @Gumber what is your Twitter handle? |
06:16:51 | FromDiscord | <Gumber> Nice that does sound fun and like an interesting project |
06:16:54 | FromDiscord | <Gumber> I haven't really played many games |
06:16:57 | FromDiscord | <Gumber> I got super deep into COH2 |
06:17:03 | FromDiscord | <Gumber> and Crowfall for a minute but that game was terible |
06:17:11 | FromDiscord | <Gumber> I'm very weird with games because of my ADHD |
06:17:14 | FromDiscord | <cabboose> Aw zach you have a cockatoo |
06:17:14 | FromDiscord | <cabboose> what a bro |
06:17:20 | FromDiscord | <cabboose> I have a wiero and a sun conure |
06:17:23 | FromDiscord | <Gumber> I have a real rough time sitting thorugh a single player game |
06:17:26 | FromDiscord | <Gumber> nice!!! |
06:17:29 | FromDiscord | <Gumber> https://twitter.com/hahaitsfunny |
06:17:34 | FromDiscord | <Gumber> it was my parents bird - I loved it it was my bff |
06:17:48 | FromDiscord | <Gumber> but like it had issues - and honestly like armed with the knowledge I have now |
06:17:54 | FromDiscord | <Gumber> I think like all my pets have had major issues because of me lol |
06:18:05 | FromDiscord | <Gumber> and potentially the other half of my family that I supsect has ADHD |
06:18:09 | FromDiscord | <cabboose> Awww shit dawg it was even named pearl |
06:18:10 | FromDiscord | <Gumber> because like now I can see that shit in my dogs lol |
06:18:13 | FromDiscord | <cabboose> my wiero is pearl hahahaha |
06:18:15 | FromDiscord | <Gumber> it was named pearl yuup |
06:18:16 | FromDiscord | <Gumber> hahahaha |
06:18:18 | FromDiscord | <cabboose> Oh lord |
06:18:19 | FromDiscord | <Gumber> crazy shit man |
06:18:26 | FromDiscord | <Gumber> but yeah the bird had issues |
06:18:30 | FromDiscord | <Gumber> and when my parents got older |
06:18:41 | FromDiscord | <garett> G’night folks |
06:18:46 | FromDiscord | <Gumber> they like couldn't go into the other room to watch tv because it would just squack loud af constantly when it was alone by itself in a room |
06:18:55 | FromDiscord | <Gumber> In reply to @garett "G’night folks": Night! I"m about to hit the hay too |
06:19:00 | FromDiscord | <cabboose> ima\_0a09814.jpeg https://media.discordapp.net/attachments/371759389889003532/891207139870277682/ima_0a09814.jpeg |
06:19:02 | FromDiscord | <Gumber> but it loved me and I loved it |
06:19:12 | FromDiscord | <Gumber> lol awwww what a cuite! |
06:19:21 | FromDiscord | <Gumber> yeah I might have to get another one once I get my ADHD under control |
06:19:25 | FromDiscord | <Gumber> and if my wife will let me |
06:19:28 | FromDiscord | <Gumber> we'll see |
06:19:41 | FromDiscord | <Gumber> I feel like now I have the capacity to like work with my dogs |
06:19:44 | FromDiscord | <cabboose> I think birds always hate being alone though |
06:19:51 | FromDiscord | <Gumber> whereas before I would just like get furstrated bey ond ability to work with them aftert like 2 minutes |
06:19:57 | FromDiscord | <Gumber> and no routine whatsoever |
06:20:02 | FromDiscord | <Gumber> yeah but this was like |
06:20:04 | FromDiscord | <Gumber> it's in the kitchen |
06:20:07 | FromDiscord | <Rika> #offtopic |
06:20:08 | FromDiscord | <Gumber> and we're in a room over |
06:20:08 | FromDiscord | <Gumber> that's open |
06:20:14 | FromDiscord | <Gumber> no one's talking about Nim anymore lol |
06:20:22 | FromDiscord | <cabboose> I can’t go into offtopic on matrix |
06:20:23 | FromDiscord | <cabboose> sucked in |
06:20:23 | FromDiscord | <Yardanico> huh https://news.ycombinator.com/item?id=28626947 |
06:20:25 | FromDiscord | <cabboose> I do have to go though |
06:20:26 | FromDiscord | <Rika> that doesnt change the fact that this is offtopic? |
06:20:28 | FromDiscord | <Yardanico> (don't upvote from the direct link) |
06:20:34 | FromDiscord | <Yardanico> In reply to @cabboose "I can’t go into": you can though |
06:20:35 | FromDiscord | <Gumber> yeah but its like late no one is on |
06:20:42 | FromDiscord | <Gumber> generally in this setting |
06:20:43 | FromDiscord | <Gumber> we've allowed this stuff |
06:20:46 | FromDiscord | <Yardanico> In reply to @Gumber "yeah but its like": it's morning in EU |
06:20:53 | FromDiscord | <Gumber> yeah I mean if discussion starts up |
06:20:54 | FromDiscord | <Gumber> I'lls top but |
06:20:58 | FromDiscord | <Gumber> like traditionally this stuff is okay |
06:21:06 | FromDiscord | <Yardanico> i mean sure there's not a lot of people here, but IMO it's not a good idea to use main for offtopic so much when there's no one around here |
06:21:07 | FromDiscord | <Gumber> fine if we want to change or start enforcing stuff but like |
06:21:14 | FromDiscord | <Gumber> okay that's fine |
06:21:19 | FromDiscord | <Gumber> let's just like communicate that |
06:21:23 | FromDiscord | <Gumber> and not just like #offtopoic people |
06:21:29 | FromDiscord | <Gumber> (edit) "#offtopoic" => "#offtopic" |
06:21:37 | FromDiscord | <Gumber> because that's not the way it's been for a long time |
06:22:20 | FromDiscord | <Gumber> anyway I gotta go to sleep - not trying to be a dick or anything it's just inconsistent rules confuse me |
06:22:47 | FromDiscord | <Gumber> will stick to ot from now on |
06:22:51 | FromDiscord | <Gumber> and actively ask people to do the same |
06:23:00 | FromDiscord | <Gumber> or do my best to anyway - not perfect |
06:23:32 | FromDiscord | <xflywind> I saw the article, isn't the two example a bit different? |
06:24:05 | FromDiscord | <Gumber> nightr |
06:24:07 | FromDiscord | <Gumber> (edit) "nightr" => "night" |
06:24:16 | FromDiscord | <cabboose> gnight! |
06:24:23 | FromDiscord | <Yardanico> In reply to @flywind "I saw the article,": are they? |
06:24:44 | FromDiscord | <Yardanico> they both iterate over lines of the file |
06:24:45 | FromDiscord | <xflywind> `line.rstrip():` ? |
06:24:45 | FromDiscord | <cabboose> Seems like we should make a super optimised bioinformetrics module |
06:25:05 | FromDiscord | <Yardanico> In reply to @flywind "`line.rstrip():` ?": oh yeah, true |
06:25:27 | FromDiscord | <Yardanico> guess Python also includes the newline character when iterating over a file like that? |
06:25:34 | FromDiscord | <Rika> idts |
06:26:06 | FromDiscord | <Rika> i dont remember seeing newlines on my python programs when iterating over lines |
06:26:06 | FromDiscord | <cabboose> looks lets stop talking about python and start talking about whatever the hell this scikit is and wheres our damn scikit! |
06:26:20 | FromDiscord | <cabboose> GiVe Me JuIcY sCiEnCe PeOpLe |
06:26:25 | FromDiscord | <Yardanico> we have #science |
06:26:35 | FromDiscord | <Yardanico> and it's bridged to matrix |
06:26:36 | FromDiscord | <Rika> juicy science people or juicy science, people |
06:26:53 | FromDiscord | <cabboose> either or |
06:26:54 | FromDiscord | <Rika> are you hungry for juicy science people aka scientists |
06:26:55 | FromDiscord | <cabboose> I’m famished |
06:26:59 | FromDiscord | <Rika> god damn |
06:27:01 | FromDiscord | <cabboose> indeed |
06:28:09 | FromDiscord | <Rika> what is still missing in nim thats in scikit |
06:28:18 | FromDiscord | <Rika> nim['s third party packages] |
06:28:27 | FromDiscord | <Elegantbeef> Zach isnt this your issue minimized? https://play.nim-lang.org/#ix=3zTT |
06:32:38 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3zTZ |
06:32:45 | FromDiscord | <Elegantbeef> @Gumber\: ^ |
06:34:24 | FromDiscord | <Elegantbeef> I do imagine that an imported pointer should be a unique type, but i dont know |
06:36:26 | FromDiscord | <xflywind> How about this one? I'm not sure. |
06:36:36 | FromDiscord | <xflywind> sent a code paste, see https://play.nim-lang.org/#ix=3zU0 |
06:36:54 | FromDiscord | <xflywind> (edit) "https://play.nim-lang.org/#ix=3zU0" => "https://play.nim-lang.org/#ix=3zU1" |
06:37:39 | FromDiscord | <Elegantbeef> I just wonder if an imported pointer should be a distinct type |
06:37:49 | FromDiscord | <Elegantbeef> Implicitly it makes sense |
06:38:41 | FromDiscord | <xflywind> That directly using `distinct xxx` doesn't work for importc types is a known issue though. So `AliasImpl` must be used. |
06:39:12 | FromDiscord | <Elegantbeef> It's not a tagged issue on github! |
06:39:26 | FromDiscord | <Elegantbeef> So this adds a new issue to my internal issue tracker |
06:40:48 | FromDiscord | <xflywind> Yeah, maybe it is not severe because no users complained it 😜 |
06:40:50 | FromDiscord | <xflywind> https://github.com/nim-lang/Nim/pull/18851#discussion_r708830152 |
06:41:41 | * | Gustavo6046 quit (Quit: ZNC 1.8.2 - https://znc.in) |
06:42:23 | * | mal``` quit (Quit: Leaving) |
06:42:33 | FromDiscord | <Elegantbeef> Eh it's an issue, would be nice to be documented somewhere |
06:42:48 | FromDiscord | <xflywind> I agree |
06:42:49 | FromDiscord | <xflywind> jk |
06:46:19 | FromDiscord | <Rika> You don’t agree? |
06:47:05 | FromDiscord | <Elegantbeef> Think they meant they were kidding about the users complaining |
06:47:51 | FromDiscord | <xflywind> lol, I think the problem is severe and should be docuemented. |
06:48:25 | * | mal`` joined #nim |
06:50:07 | FromDiscord | <xflywind> filed an issue https://github.com/nim-lang/Nim/issues/18896 |
06:50:37 | FromDiscord | <Elegantbeef> Thanks 😛 |
06:51:03 | FromDiscord | <xflywind> no problem |
06:56:00 | * | Gustavo6046 joined #nim |
07:04:20 | * | neurocyte01322 joined #nim |
07:04:20 | * | neurocyte01322 quit (Changing host) |
07:04:20 | * | neurocyte01322 joined #nim |
07:06:14 | FromDiscord | <xflywind> > This rather unorthodox way to do identifier comparisons is called↵> `partial case-insensitivity`:idx: and has some advantages over the conventional↵> case sensitivity: |
07:06:32 | FromDiscord | <Rika> Posted where? |
07:06:48 | FromDiscord | <xflywind> case insensitivity seemed only to be mentioned in manual |
07:06:50 | * | neurocyte0132 quit (Ping timeout: 252 seconds) |
07:06:51 | * | neurocyte01322 is now known as neurocyte0132 |
07:06:55 | FromDiscord | <xflywind> (edit) "case insensitivity seemed only to be mentioned in ... manual" added "Nim" |
07:07:02 | * | max22- joined #nim |
07:07:08 | FromDiscord | <Rika> Where else should it be mentioned? |
07:07:28 | FromDiscord | <Rika> Most people should be directed to the manual first anyway right? |
07:07:33 | FromDiscord | <xflywind> In reply to @Yardanico "huh https://news.ycombinator.com/item?id=28626947": The article |
07:08:02 | FromDiscord | <xflywind> And is criticized by a user |
07:08:45 | FromDiscord | <xflywind> So I think we should mention |
07:08:54 | FromDiscord | <xflywind> sent a code paste, see https://play.nim-lang.org/#ix=3zUa |
07:09:07 | FromDiscord | <Yardanico> In reply to @flywind "And is criticized by": where? |
07:09:08 | FromDiscord | <xflywind> (edit) "mention" => "add this command line to Nim manual" |
07:09:14 | FromDiscord | <Rika> There will always be criticism of unorthodox features as long as it exists… |
07:09:16 | FromDiscord | <Yardanico> ah I see |
07:09:18 | FromDiscord | <Yardanico> In reply to @Rika "There will always be": yeah |
07:09:34 | FromDiscord | <Yardanico> sent a long message, see http://ix.io/3zUb |
07:10:01 | FromDiscord | <xflywind> It can be overcome by using `--styleCheck:usages` |
07:10:20 | FromDiscord | <Rika> A better argument would be showing why that argument is not strong |
07:10:33 | FromDiscord | <Rika> (edit) "argument" => "counter-argument" |
07:10:38 | FromDiscord | <Elegantbeef> Well there is an issue with tooling presently you cannot have the LSP/suggest give you results in your style |
07:11:26 | FromDiscord | <xflywind> Nim compiler code enforces `--styleCheck:nep1`, so the style is consistent. |
07:11:26 | FromDiscord | <haxscramper> Someone link treeform genny and pynin |
07:11:33 | FromDiscord | <Elegantbeef> Having the ability to force style only really makes sense if you can force it to match your preferred |
07:11:36 | FromDiscord | <haxscramper> (edit) "pynin" => "pynim" |
07:12:13 | FromDiscord | <Rika> https://news.ycombinator.com/item?id=28651136 |
07:12:25 | FromDiscord | <Rika> “How is that a basic mistake? I think having two distinct identifiers that differ only by case sounds like a mistake!” |
08:18:07 | FromDiscord | <haxscramper> Added some "opinion" to this style-insensetivity-will-destroy-the-world |
08:18:11 | FromDiscord | <Goel> Nim `>>` Python |
08:20:24 | FromDiscord | <Rika> You should mention that his solution (making it illegal) is subject to the same pitfalls |
08:20:38 | FromDiscord | <Rika> Which is why most languages don’t make it illegal… |
08:21:03 | FromDiscord | <Rika> Man I don’t get it |
08:21:10 | FromDiscord | <Rika> Neither sensitivity or insensitivity are perfect |
08:22:04 | FromDiscord | <Rika> His second point is wrong |
08:22:39 | FromDiscord | <Rika> His fourth one is invalid as well |
08:22:54 | FromDiscord | <Rika> So the only actual issues is the “style debate” and the searching |
08:23:24 | FromDiscord | <Rika> The style debate exists in sensitive languages as well |
08:23:36 | FromDiscord | <Rika> Searching is the only real good point there |
08:26:00 | FromDiscord | <dom96> Oh cool. Nim on HN |
08:26:14 | FromDiscord | <haxscramper> And I also linked nimpy/nimpylib/genny |
08:26:18 | FromDiscord | <haxscramper> In another comment |
08:26:20 | FromDiscord | <Rika> Naturally with the dude arguing about insensitivity |
08:26:22 | FromDiscord | <dom96> And yeah, I think you guys were right to suggest #offtopic above |
08:31:59 | FromDiscord | <dom96> Honestly. I wish the insensitivity was removed just so we could stop wasting our life arguing about it. |
08:34:57 | FromDiscord | <haxscramper> Someone just make a copy-pasteable template on github wiki |
08:35:49 | FromDiscord | <haxscramper> "nim troll bingo" |
08:36:08 | FromDiscord | <haxscramper> ● style insensetivity↵● imports↵● tabs/spaces |
08:36:36 | FromDiscord | <haxscramper> Hmm, for some reason I think that most of those are from python people who just come here trying to defent their poor-ass language choices |
08:36:36 | FromDiscord | <Rika> Needs more |
08:36:48 | FromDiscord | <xflywind> there is a criticism section https://github.com/nim-lang/Nim/wiki/Common-Criticisms |
08:36:49 | FromDiscord | <Rika> Hey let’s not assume |
08:36:51 | FromDiscord | <haxscramper> But it is probably just my imagination |
08:37:41 | FromDiscord | <NullCode> In reply to @haxscramper "● style insensetivity ●": imports lmao |
08:37:50 | FromDiscord | <NullCode> why are people even complaining about it |
08:37:59 | FromDiscord | <Rika> Because it is not qualified by default |
08:38:02 | FromDiscord | <haxscramper> Because this is just hardwired to them at the point |
08:38:11 | FromDiscord | <Rika> Aka you don’t need to pretend the module name before the function |
08:38:18 | FromDiscord | <Kermithos> whats the problem with the import system? |
08:38:18 | FromDiscord | <NullCode> even i switched from python and i love the current import system |
08:38:25 | FromDiscord | <NullCode> (edit) "current" => "nim" |
08:38:26 | FromDiscord | <Rika> Which Python people think is weird because it’s not what they’re used to |
08:38:38 | FromDiscord | <NullCode> can't you do module.proc() too? |
08:38:41 | FromDiscord | <haxscramper> If you don't write `os.paths` everywhere it will destroy the world↵(@Kermithos) |
08:38:42 | FromDiscord | <Rika> Whatever me too I came from Python and would prefer Nim much much much more |
08:38:45 | FromDiscord | <haxscramper> nobody can read your code |
08:38:47 | FromDiscord | <NullCode> (edit) "can't you do module.proc() ... too?" added "in nim" |
08:38:49 | FromDiscord | <Rika> In reply to @NullCode "can't you do module.proc()": You CAN |
08:38:55 | FromDiscord | <Rika> But they don’t want it to be a can |
08:38:55 | FromDiscord | <NullCode> what the fuck |
08:38:58 | FromDiscord | <Rika> They want it to be a must |
08:39:00 | FromDiscord | <Rika> I don’t know |
08:39:00 | FromDiscord | <NullCode> whats the problem then |
08:39:01 | FromDiscord | <Rika> Don’t ask me |
08:39:03 | FromDiscord | <Rika> Ask them |
08:39:27 | FromDiscord | <Rika> Apparently it’s because it’s easier to find the function but then that is a tooling issue |
08:39:29 | FromDiscord | <NullCode> In reply to @haxscramper "nobody can read your": end of humanity |
08:39:31 | FromDiscord | <haxscramper> It is "confusing" and "unclear" where proc comes from |
08:39:53 | FromDiscord | <haxscramper> Though to be fair, nimsuggest being kind of bad does not really make what I said convincing |
08:40:06 | FromDiscord | <haxscramper> becase ffs, with our tooling it might really be a problem |
08:40:11 | FromDiscord | <Rika> In reply to @haxscramper "It is "confusing" and": There have been times where this bit me in the ass honestly |
08:40:19 | FromDiscord | <Rika> But it wasn’t hard to find it |
08:40:20 | FromDiscord | <dom96> Well when the first Python programmers learn “it’s bad to do unqualified imports” of course they get stressed with Nim |
08:40:22 | FromDiscord | <Rika> It’s just a search… |
08:40:32 | FromDiscord | <dom96> (edit) "Well when the first ... Pythonis" added "thing" | "thingPython programmers learn ... “it’s" added "is" |
08:40:37 | FromDiscord | <haxscramper> yeah, `rg` is my friend when working with nim code |
08:40:45 | FromDiscord | <NullCode> rg? |
08:41:00 | FromDiscord | <haxscramper> https://github.com/BurntSushi/ripgrep |
08:41:02 | nrds | <R2D299> itHub: 7"ripgrep recursively searches directories for a regex pattern while respecting your gitignore" |
08:41:52 | FromDiscord | <Rika> Rust tools are nice to use |
08:41:55 | FromDiscord | <NullCode> thats nice |
08:42:01 | FromDiscord | <Rika> Not nice to debug but that’s their job |
08:42:05 | FromDiscord | <NullCode> what editors do yall use for nim tho |
08:42:09 | FromDiscord | <haxscramper> emacs |
08:42:09 | FromDiscord | <Rika> Neovim |
08:42:17 | ehmry | acme |
08:42:17 | FromDiscord | <haxscramper> 80s gang |
08:42:26 | FromDiscord | <haxscramper> most popular is vscode |
08:42:27 | FromDiscord | <Rika> Inb4 “ex” |
08:42:35 | FromDiscord | <haxscramper> second most popular is vim |
08:42:37 | FromDiscord | <NullCode> i was procrastinating on installing vim on win |
08:42:40 | FromDiscord | <NullCode> In reply to @haxscramper "most popular is vscode": garbage 20gb ide |
08:42:41 | FromDiscord | <Rika> I’m gonna freak out if someone actually uses ex here |
08:42:48 | FromDiscord | <haxscramper> In reply to @NullCode "garbage 20gb ide": second best editor |
08:42:54 | FromDiscord | <haxscramper> where does 20gb comes from |
08:43:03 | FromDiscord | <Rika> In reply to @NullCode "garbage 20gb ide": Visual studio isn’t Vacode |
08:43:03 | FromDiscord | <haxscramper> vscode is not visual studio |
08:43:06 | FromDiscord | <Rika> Vscode |
08:43:19 | FromDiscord | <NullCode> In reply to @haxscramper "vscode is not visual": doesn't vs mean visual studio... |
08:43:29 | FromDiscord | <Rika> Yeah you only need 20GB if you’re developing C# xd |
08:43:29 | FromDiscord | <NullCode> or did i get this wrong |
08:43:38 | FromDiscord | <Rika> Yes but vscode is separate |
08:43:42 | FromDiscord | <Rika> From vs |
08:43:49 | FromDiscord | <Rika> Yeah it’s confusing |
08:43:52 | FromDiscord | <NullCode> how big is vscode then |
08:43:52 | FromDiscord | <haxscramper> I also use qtcreator for nim |
08:43:53 | FromDiscord | <haxscramper> stometimes |
08:43:59 | FromDiscord | <NullCode> In reply to @Rika "Yeah it’s confusing": yeah big time |
08:44:11 | FromDiscord | <Rika> But vscode is a lighter code editor |
08:45:32 | FromDiscord | <NullCode> 75mb hm |
08:45:42 | FromDiscord | <NullCode> well thats an improvement from what I've been thinking |
08:45:49 | FromDiscord | <Rika> Well it still is based on electron so it’s not really that light |
08:46:00 | FromDiscord | <NullCode> of course |
08:46:06 | FromDiscord | <NullCode> man i really hate electron |
08:47:06 | FromDiscord | <Rika> Half the hate against electron is IMO unjustified but still |
09:05:09 | ehmry | nixpkgs has a nim builder function now https://nixos.org/manual/nixpkgs/unstable/#nim |
09:08:52 | FromDiscord | <Rika> Nice |
10:05:28 | FromDiscord | <tomck> sent a long message, see http://ix.io/3zUY |
10:06:16 | FromDiscord | <tomck> Doesn't even seem to care if i pass it through a pipe, e.g. `nimble run | less` still just prints colours in the compiler output↵↵It's the `--passNim` flag which is failing here, nimble colours are properly disabled |
10:09:29 | ehmry | works fine in acme |
10:10:11 | FromDiscord | <tomck> what's acme |
10:11:47 | ehmry | nevermind. the best solution to nimble problems that I've found is to not use nimble |
10:12:22 | FromDiscord | <tomck> ah↵is there an alternative? is nimble not very good? |
10:13:44 | FromDiscord | <dain> In reply to @Rika "i dont remember seeing": they're there, try printing with `repr` and you'll see them |
10:13:58 | FromDiscord | <Rika> Okay |
10:13:58 | ehmry | tomck: try to use the compiler directly |
10:14:18 | FromDiscord | <Rika> ~~speaking of repr that’s one thing I wish Nim distinguished~~ |
10:14:54 | FromDiscord | <Rika> Wish there were more “standards” on how certain string builders should be named or so |
10:15:31 | FromDiscord | <dain> sent a code paste, see https://play.nim-lang.org/#ix=3zV1 |
10:18:36 | FromDiscord | <dain> speaking of ripgrep, is there an existing tool that takes nim code and does all the case-reduction on identifiers |
10:18:44 | FromDiscord | <dain> which could be used as a preprocessor for ripgrep |
10:18:52 | FromDiscord | <Rika> Yes |
10:18:54 | FromDiscord | <Rika> Oh wait |
10:18:59 | FromDiscord | <Yardanico> nimgrep exists :) |
10:19:00 | FromDiscord | <Rika> That normalises? |
10:19:05 | FromDiscord | <dain> yeah |
10:19:07 | FromDiscord | <Rika> Yeah I was going to say that |
10:19:12 | FromDiscord | <Rika> But that doesn’t normalise output |
10:19:12 | FromDiscord | <dain> leaves everything unchanged except for names |
10:19:43 | FromDiscord | <Rika> Don’t think so |
10:20:24 | FromDiscord | <dain> you can tell ripgrep "if you run into a .nim file, run this script on the file first and then do the search on whatever that script sends to stdout" |
10:20:36 | FromDiscord | <Rika> The thing is |
10:20:47 | FromDiscord | <Rika> Every identifier in Nim is subject to the case insensitivity |
10:20:57 | FromDiscord | <Rika> (Namely keywords) |
10:21:14 | FromDiscord | <Rika> So if you want to troll you can prolly write “tYPE” |
10:21:16 | FromDiscord | <Rika> Or so |
10:21:40 | FromDiscord | <dain> lol i didnt know that |
10:22:11 | FromDiscord | <Rika> So yeah pretty much everything would need to be normalised (of course not in the common case but still lol) |
10:47:34 | FromDiscord | <tandy> hmm maybe idk wat im doing here, but im trying to store data to a SQLite db with norm, and ive tried jsony, marshal, frosty for serialisation but they all have compilation erors.. |
10:47:51 | FromDiscord | <tandy> im serialising complex custom types |
10:52:30 | FromDiscord | <haxscramper> well, what are the errors? |
10:52:39 | FromDiscord | <haxscramper> I can try to help with jsony |
10:55:16 | FromDiscord | <tandy> sent a code paste, see https://play.nim-lang.org/#ix=3zVc |
10:55:44 | FromDiscord | <enthus1ast> try to export "service" with \ |
10:55:46 | FromDiscord | <Rika> Means a field is not exported |
10:56:09 | FromDiscord | <tandy> already exported |
10:56:11 | FromDiscord | <tandy> sent a code paste, see https://play.nim-lang.org/#ix=3zVd |
10:56:24 | FromDiscord | <enthus1ast> the field in the object must also be exported |
10:57:09 | FromDiscord | <NullCode> i wanted to ask something |
10:57:22 | FromDiscord | <NullCode> i want to statically link libstdcpp and libgcc |
10:57:29 | FromDiscord | <NullCode> in a nim prog |
10:57:34 | FromDiscord | <NullCode> so that it works on all computers |
10:57:44 | FromDiscord | <Yardanico> uh, but why do you need to link those? |
10:57:56 | FromDiscord | <NullCode> so that it works on other computers too |
10:58:31 | FromDiscord | <NullCode> i was trying this↵`nim c -d:release -d:ssl --passL:"-static -static-libgcc -static-libstdc++" onefile.nim` |
10:58:34 | FromDiscord | <NullCode> but it's not working |
10:58:39 | FromDiscord | <NullCode> exe remains the same |
10:59:37 | FromDiscord | <tandy> this causes errors |
10:59:39 | FromDiscord | <tandy> sent a code paste, see https://play.nim-lang.org/#ix=3zVe |
10:59:57 | FromDiscord | <tandy> i dont think u can export those |
11:00:01 | FromDiscord | <haxscramper> field in the object |
11:00:02 | FromDiscord | <enthus1ast> [tandy](https://matrix.to/#/@tandy1000:matrix.org)\: no this is not what i meant, |
11:00:06 | FromDiscord | <haxscramper> in the object |
11:00:12 | FromDiscord | <enthus1ast> the object you want to serialize |
11:00:14 | FromDiscord | <haxscramper> what you have here is `enum` |
11:00:24 | FromDiscord | <tandy> ohhhh |
11:00:26 | FromDiscord | <tandy> mbmb |
11:00:29 | FromDiscord | <tandy> i think i spoted it |
11:00:38 | FromDiscord | <tandy> ` case service: Service` |
11:00:43 | FromDiscord | <tandy> confused me cos it was in a case |
11:11:12 | FromDiscord | <dain> what is the difference between `quote:` and `quote do:` ? |
11:12:36 | FromDiscord | <haxscramper> `quote do` works better |
11:12:48 | FromDiscord | <haxscramper> And this is not a joke |
11:13:31 | FromDiscord | <haxscramper> also, `quote` and `do` are two separate entries, there is no "quote do" construct, they just almost always used togeter |
11:14:03 | NimEventer | New thread by Ggibson: Block-level change default type of int literals?, see https://forum.nim-lang.org/t/8458 |
11:21:40 | FromDiscord | <dain> oh so what does `do` do |
11:22:39 | FromDiscord | <Rika> block parameter |
11:22:41 | FromDiscord | <haxscramper> https://forum.nim-lang.org/t/8279 |
11:22:47 | FromDiscord | <haxscramper> makes quote work better |
11:22:56 | FromDiscord | <haxscramper> And this shit is literally how it goes |
11:23:04 | FromDiscord | <haxscramper> > ↵> The do here binds the body to the quote whereas otherwise it's bound to the add operation which is clearly not what we want.↵> |
11:23:16 | FromDiscord | <Rika> Ah binding |
11:23:18 | FromDiscord | <Rika> That’s so iffy |
11:23:22 | FromDiscord | <haxscramper> It affects binding precedence of the parsing |
11:23:23 | FromDiscord | <haxscramper> yeah |
11:23:43 | FromDiscord | <haxscramper> explaining it basically gives no understanding, so there is just "magic" and it works better with do |
11:23:58 | FromDiscord | <haxscramper> otherwise you just into parsing rules etc. |
11:24:19 | FromDiscord | <Rika> Needs a rework but oh well Nim 2 it is |
11:25:24 | FromDiscord | <haxscramper> I'm like 80% convinced we won't be getting it in nim 2.0 or anywhere |
11:25:44 | FromDiscord | <haxscramper> The same reason for the handling of `:` and post expression blocks |
11:26:03 | FromDiscord | <haxscramper> That is currenly only held together by someone else's code being in the "important packages" |
11:27:28 | FromDiscord | <Rika> And a 2 would just fragment the language like Python… |
11:45:15 | FromDiscord | <impbox [ftsf]> In reply to @NullCode "so that it works": That's not going to work on all computers, maybe use the js backend if you want that. |
11:47:22 | FromDiscord | <Yardanico> :blobcatSweatSmile: |
12:00:42 | FromDiscord | <NullCode> In reply to @impbox "That's not going to": sigh how can i make a portable win executable then |
12:02:25 | FromDiscord | <Yardanico> In reply to @NullCode "sigh how can i": he was joking about how you said "all computers" |
12:02:36 | FromDiscord | <NullCode> oh |
12:02:59 | FromDiscord | <NullCode> yeah he had the right to make a joke out of it |
12:03:07 | FromDiscord | <NullCode> shouldve explicitly said "win computers" |
12:03:16 | FromDiscord | <Yardanico> windows 1.0 too? :P |
12:03:24 | FromDiscord | <NullCode> does anybody even use that |
12:03:26 | FromDiscord | <NullCode> lmao |
12:03:34 | FromDiscord | <Yardanico> people still use winxp, yes |
12:03:43 | FromDiscord | <NullCode> yes ofc they use xp |
12:03:56 | FromDiscord | <NullCode> but i have a hard time believing they use any of the dos versions of windows/dos itself |
12:06:01 | * | supakeen quit (Quit: WeeChat 3.3) |
12:06:30 | * | supakeen joined #nim |
12:08:49 | FromDiscord | <enthus1ast> a lot of POS (Point of Sales systems) where still DOS (with added/hacked in network stack etc...)↵(@NullCode) |
12:30:39 | FromDiscord | <haxscramper> sent a long message, see http://ix.io/3zVw |
12:31:20 | FromDiscord | <haxscramper> I mean sure, even considering they are like SSS-tier troll that specializes in language syntax holywars |
12:31:38 | FromDiscord | <haxscramper> Have anyone regretted style insensitivity? |
12:31:46 | FromDiscord | <haxscramper> Just curious |
12:36:21 | FromDiscord | <Rika> i have not |
12:36:24 | FromDiscord | <auxym> I mostly don't notice it (ie don't make use of it), so pretty indifferent |
12:36:45 | FromDiscord | <auxym> It never fails to come up in HN comments when something about Nim makes the front page, though |
12:37:01 | FromDiscord | <Rika> yes |
12:37:06 | FromDiscord | <Rika> theory vs practice |
12:37:08 | FromDiscord | <Rika> classic |
12:37:14 | FromDiscord | <Rika> also you should mention how old nim is |
12:37:26 | FromDiscord | <Rika> "decision they will regret" should have happened years ago |
12:38:22 | * | kayabaNerve quit (Ping timeout: 252 seconds) |
12:40:02 | FromDiscord | <dain> it is weird that nim still has a recommended casing style |
12:40:08 | FromDiscord | <dain> despite the style insensitivity |
12:42:51 | FromDiscord | <haxscramper> It is not weird to have conventions |
12:43:17 | FromDiscord | <haxscramper> The fact you can write code differently does not mean you should |
12:43:27 | FromDiscord | <haxscramper> We just don't beat you into it |
12:43:33 | FromDiscord | <haxscramper> Like other languages do |
12:44:00 | FromDiscord | <Rika> exceptwhenitcomestotabsorspacesbutwhatever |
12:44:17 | FromDiscord | <Rika> THAT is the one issue i have with this formatting war w/e |
12:44:26 | FromDiscord | <Rika> what's up with the tabs ban? |
12:44:36 | FromDiscord | <haxscramper> You want tabs? |
12:45:02 | FromDiscord | <haxscramper> I mean I don't give a damn about this, they all look similar to me |
12:45:05 | FromDiscord | <Rika> personally i use spaces but if you already allow for style insensitivity why is there a tabs ban? |
12:45:11 | FromDiscord | <Rika> its like |
12:45:13 | FromDiscord | <Rika> ass backwards |
12:45:16 | FromDiscord | <Rika> if you know what i mean |
12:46:15 | FromDiscord | <haxscramper> No. Tabs are visually identical, but behave differently. Style thing is visually different but works identically |
12:46:26 | FromDiscord | <haxscramper> I'm generalizing of course |
12:46:55 | FromDiscord | <haxscramper> I don't understand how python does their nesting while allowing both tabs and spaces |
12:47:13 | FromDiscord | <haxscramper> Is there some config that tells python how much ident levels is a single tab? |
12:47:49 | FromDiscord | <Rika> In reply to @haxscramper "No. Tabs are visually": idgi↵would be nice to elaborate |
12:47:51 | FromDiscord | <haxscramper> Because \tfor... followed by for might mean anything |
12:48:50 | FromDiscord | <Rika> i mean cant there be a "no mixing" w/o bannign tabs wholly |
12:50:42 | * | xet7 quit (Remote host closed the connection) |
12:51:38 | * | xet7 joined #nim |
12:51:52 | FromDiscord | <haxscramper> sent a long message, see http://ix.io/3zVG |
12:52:04 | FromDiscord | <haxscramper> How this "no mixing but no banning" even supposed to work? |
12:52:20 | FromDiscord | <xflywind> https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces |
12:52:22 | FromDiscord | <haxscramper> All lines in file must either start with space or tav |
12:52:39 | FromDiscord | <haxscramper> > Python disallows mixing tabs and spaces for indentation. |
12:52:46 | FromDiscord | <haxscramper> Still not clear enough |
12:53:26 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3zVH |
12:53:53 | FromDiscord | <haxscramper> https://bugs.python.org/issue38496 |
12:54:46 | FromDiscord | <haxscramper> https://stackoverflow.com/questions/36063679/python-3-allows-mixing-spaces-and-tabs#:~:text=spaces%2C%20but%20it%20appears%20that,allowed%20in%20the%20same%20file. |
12:55:14 | FromDiscord | <haxscramper> Okay, so they disallow mixing in a single top-level construct because it would be unclear where things start and end |
12:56:35 | FromDiscord | <haxscramper> In python 2 this seems to be a complete randomizer https://stackoverflow.com/questions/2034517/pythons-interpretation-of-tabs-and-spaces-to-indent#:~:text=Never%20mix%20tabs%20and%20spaces,converted%20to%20using%20spaces%20exclusively. |
12:57:18 | FromDiscord | <Rika> sent a code paste, see https://play.nim-lang.org/#ix=3zVJ |
12:58:14 | FromDiscord | <haxscramper> > Tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight (t |
12:58:38 | FromDiscord | <Rika> hh this is a difficult issue to fix huh |
13:02:00 | FromDiscord | <Rika> https://news.ycombinator.com/item?id=28651951 |
13:02:06 | FromDiscord | <Rika> i'm confused to this person's arguments |
13:02:09 | FromDiscord | <Rika> by |
13:02:14 | FromDiscord | <Rika> by this person's arguments |
13:06:49 | * | arkurious joined #nim |
13:15:33 | FromDiscord | <NullCode> I've got something clearer this time |
13:15:37 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891311978029678612/unknown.png |
13:15:46 | FromDiscord | <NullCode> had to wait so long to get my hands on 2nd pc |
13:16:33 | FromDiscord | <haxscramper> In reply to @Rika "i'm confused to this": You should ship a special tool that would clean up your mess, and it is better than making your mess a non-issue |
13:16:35 | FromDiscord | <enthus1ast> must put the dlls next to your file i guess |
13:16:39 | FromDiscord | <haxscramper> This is obvious |
13:16:49 | FromDiscord | <haxscramper> Who would not want a topl |
13:16:52 | FromDiscord | <haxscramper> Tool |
13:17:09 | FromDiscord | <haxscramper> Look at go, they just took it to extreme, and who complains? |
13:17:13 | FromDiscord | <haxscramper> I haven't heard any |
13:17:18 | FromDiscord | <NullCode> In reply to @enthus1ast "must put the dlls": can i not static link it ;-; |
13:17:51 | FromDiscord | <haxscramper> This might have something to do with their agressive evangelism that simply beats everyone into following "One True Style" but hey |
13:18:08 | FromDiscord | <haxscramper> I don't have any issues with that as long as this style is the way I likr |
13:18:13 | FromDiscord | <haxscramper> Except it is never the case |
13:18:17 | FromDiscord | <enthus1ast> yes might work, but ssl is a little yeaaah↵(@NullCode) |
13:18:36 | FromDiscord | <NullCode> i see that I'm in some trouble |
13:18:42 | FromDiscord | <Rika> In reply to @haxscramper "You should ship a": so hes bothered by code that he doesnt look at or needs to care about being the wrong style he wants? |
13:18:42 | FromDiscord | <NullCode> alright then ill do some digging around |
13:18:44 | FromDiscord | <NullCode> thanks tho |
13:18:54 | FromDiscord | <Rika> ehhhh |
13:19:04 | FromDiscord | <enthus1ast> the best way imho is to create an installer↵(@NullCode) |
13:19:14 | FromDiscord | <enthus1ast> or distribute with an zip file |
13:19:31 | FromDiscord | <haxscramper> In reply to @Rika "so hes bothered by": Yes they want everyone to use the same style, regardless of whether they are affected directly or not |
13:19:33 | FromDiscord | <NullCode> zip file's not a bad idea |
13:19:37 | FromDiscord | <NullCode> what if i just create a sed |
13:19:44 | FromDiscord | <enthus1ast> ? |
13:19:49 | FromDiscord | <Rika> a sed? |
13:19:56 | FromDiscord | <NullCode> self extracting directory |
13:19:59 | FromDiscord | <haxscramper> /bin/sed |
13:20:07 | FromDiscord | <Rika> In reply to @haxscramper "Yes they want everyone": eh w/e not worth arguing with further... |
13:20:11 | FromDiscord | <NullCode> In reply to @haxscramper "/bin/sed": no lmao |
13:20:23 | FromDiscord | <Rika> oh most ppl prolly would say self extracting archive |
13:20:26 | FromDiscord | <enthus1ast> i guess its for hacker stuff right? |
13:20:39 | FromDiscord | <NullCode> why would it be |
13:20:47 | FromDiscord | <NullCode> I'm not learning nim to be a epic haxor |
13:20:48 | FromDiscord | <Rika> In reply to @enthus1ast "i guess its for": i can see the legitimate use cases for this |
13:20:52 | FromDiscord | <Rika> painless installation... |
13:21:00 | FromDiscord | <NullCode> (edit) "a" => "an" |
13:21:01 | FromDiscord | <Rika> apple-style |
13:21:08 | FromDiscord | <Rika> "just drag and drop and you good" |
13:21:18 | FromDiscord | <NullCode> In reply to @Rika "oh most ppl prolly": i heard they were called sed but aight then |
13:21:30 | FromDiscord | <NullCode> In reply to @Rika ""just drag and drop": yeah |
13:21:38 | FromDiscord | <Rika> yeah sed is gonna be confusing because its also a unix (or was it gnu?) tool |
13:21:45 | FromDiscord | <enthus1ast> sent a long message, see http://ix.io/3zVP |
13:22:09 | FromDiscord | <Rika> > staticRead then write before execution↵bruh... |
13:22:11 | FromDiscord | <Rika> crazy |
13:22:17 | FromDiscord | <Rika> might be flagged in AV lol |
13:22:20 | FromDiscord | <enthus1ast> or use a library from treeform |
13:22:25 | FromDiscord | <enthus1ast> ;) |
13:22:37 | FromDiscord | <NullCode> oh yeah i didn't want to do sfx because of av detection |
13:22:38 | FromDiscord | <NullCode> now i remember |
13:22:41 | FromDiscord | <enthus1ast> https://github.com/treeform/puppy |
13:22:43 | nrds | <R2D299> itHub: 7"Puppy fetches HTML pages for Nim." |
13:22:51 | FromDiscord | <NullCode> In reply to @enthus1ast "https://github.com/treeform/puppy": whats this |
13:22:58 | FromDiscord | <NullCode> well html fetcher |
13:23:01 | FromDiscord | <enthus1ast> http download but with os libraries |
13:23:12 | FromDiscord | <enthus1ast> no need to ship openssl |
13:23:20 | FromDiscord | <NullCode> can i do post requests with this |
13:23:28 | FromDiscord | <enthus1ast> yes |
13:23:31 | FromDiscord | <NullCode> awesome |
13:23:34 | FromDiscord | <NullCode> going with this then |
13:24:03 | FromDiscord | <NullCode> thanks a lot |
13:25:40 | FromDiscord | <Rika> anything in nim i could use to replace my use of Processing (i'm just generating cool graphics easily) |
13:25:49 | FromDiscord | <Rika> no i do not want to deal with the low stuff |
13:25:52 | FromDiscord | <Rika> no i dont care if its better |
13:27:16 | FromDiscord | <enthus1ast> is this sarcasm? \:D |
13:28:10 | FromDiscord | <Rika> no, i'm just here to look for an alternative to Processing in which i dont need to deal with a lot of the low shit because i dont have time to do so |
13:28:21 | FromDiscord | <Rika> if you must insist that its the only way then whatever |
13:28:28 | FromDiscord | <Rika> still suggest it |
13:43:27 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zVY |
13:43:30 | FromDiscord | <NullCode> well the program works correctly |
13:43:34 | FromDiscord | <NullCode> but will this be a problem |
13:44:21 | FromDiscord | <Rika> what would that mean? |
13:44:36 | FromDiscord | <NullCode> what would what mean |
13:44:45 | FromDiscord | <Rika> `Unexpected response body variant type` |
13:44:48 | FromDiscord | <cabboose> Unexpected response body variant type |
13:45:00 | FromDiscord | <cabboose> i’m guessing its something like the headers didnt specify if it was json or what |
13:45:29 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zVZ |
13:45:30 | FromDiscord | <Rika> In reply to @Rika "no, i'm just here": w/e, i think what i want to do still needs me to go down to opengl level |
13:45:34 | FromDiscord | <cabboose> uh |
13:45:38 | FromDiscord | <cabboose> you see the problem there right |
13:45:41 | FromDiscord | <cabboose> \:) |
13:45:56 | FromDiscord | <NullCode> uhhhhhhhhh |
13:45:56 | FromDiscord | <Rika> uh did you send json |
13:46:01 | FromDiscord | <NullCode> yeah i sent json |
13:46:15 | FromDiscord | <cabboose> the issue is that string |
13:46:16 | FromDiscord | <cabboose> with a slash |
13:46:16 | FromDiscord | <cabboose> put an r before the string |
13:46:18 | FromDiscord | <cabboose> raw string |
13:46:20 | FromDiscord | <cabboose> or double slash |
13:46:21 | FromDiscord | <Rika> no? |
13:46:26 | FromDiscord | <cabboose> no? |
13:46:29 | FromDiscord | <Rika> / does not need escaping |
13:46:34 | FromDiscord | <Rika> \\ does |
13:46:41 | FromDiscord | <cabboose> oh |
13:46:43 | FromDiscord | <cabboose> huh |
13:46:44 | FromDiscord | <Rika> xd |
13:46:45 | FromDiscord | <cabboose> my bad then |
13:46:47 | FromDiscord | <NullCode> yeah lmao |
13:46:48 | FromDiscord | <cabboose> \<3 |
13:46:54 | FromDiscord | <Rika> dw |
13:46:57 | FromDiscord | <Rika> happens |
13:46:57 | FromDiscord | <NullCode> thats why i was wondering whats wrong |
13:46:58 | FromDiscord | <cabboose> smart ass cabboose |
13:47:08 | FromDiscord | <cabboose> hold on what library is this |
13:47:12 | FromDiscord | <NullCode> puppy |
13:47:13 | FromDiscord | <Rika> https://github.com/treeform/puppy |
13:47:15 | nrds | <R2D299> itHub: 7"Puppy fetches HTML pages for Nim." |
13:47:18 | FromDiscord | <NullCode> enthusiast recommended |
13:47:24 | FromDiscord | <cabboose> alright lemme check it |
13:47:43 | * | Gustavo6046 quit (Ping timeout: 252 seconds) |
13:50:14 | FromDiscord | <cabboose> have to fix my laptop path directory first; pita |
13:50:17 | FromDiscord | <cabboose> still has 1.4.2 |
13:51:13 | FromDiscord | <Rika> good luck |
13:51:24 | FromDiscord | <NullCode> +1 |
13:51:40 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zW2 |
13:51:40 | FromDiscord | <NullCode> found this in src |
13:51:45 | FromDiscord | <NullCode> and i don't understand anything |
13:51:56 | FromDiscord | <NullCode> wait what happens if i discard it |
13:53:12 | FromDiscord | <NullCode> nope same thing |
13:54:11 | FromDiscord | <Rika> i will take a look |
13:54:40 | FromDiscord | <NullCode> here take a look↵https://github.com/treeform/puppy/blob/master/src/puppy/winhttp.nim#L168 |
13:56:49 | FromDiscord | <Rika> probably a windows api thing |
13:57:01 | FromDiscord | <Rika> the api returned something puppy didnt expect |
13:57:06 | FromDiscord | <Rika> wrt. the response body |
13:57:34 | FromDiscord | <NullCode> hm |
13:57:37 | FromDiscord | <NullCode> i can roll with this |
13:57:54 | FromDiscord | <NullCode> as `discard fetch(post)` is the last line of the program |
13:57:59 | FromDiscord | <Rika> dont know anything about windows APIs sorry |
13:58:03 | FromDiscord | <NullCode> but having an error untreated sounds bad |
13:58:07 | FromDiscord | <NullCode> In reply to @Rika "dont know anything about": nah np |
13:58:18 | FromDiscord | <Rika> since its windows theres prolly docs on it |
13:58:21 | FromDiscord | <Rika> lmfao |
13:58:28 | FromDiscord | <Rika> inb4 30 years old docs |
13:58:31 | FromDiscord | <Rika> xd im joking |
13:58:33 | FromDiscord | <Rika> hopefully not |
13:58:39 | FromDiscord | <NullCode> from the win9x era |
13:58:45 | FromDiscord | <NullCode> if we're lucky |
13:59:01 | FromDiscord | <NullCode> In reply to @Rika "hopefully not": that does happen with some of the docs |
13:59:07 | FromDiscord | <NullCode> left unmaintained for years |
13:59:13 | FromDiscord | <Rika> https://docs.microsoft.com/en-us/windows/win32/winhttp/winhttp-c-c---api-reference |
13:59:42 | FromDiscord | <enthus1ast> i would also create an issue in the repo |
13:59:53 | FromDiscord | <cabboose> Yeah I hate macosx |
14:00:01 | FromDiscord | <cabboose> This path shit |
14:00:02 | FromDiscord | <NullCode> I've won |
14:00:05 | FromDiscord | <Rika> https://docs.microsoft.com/en-us/windows/win32/winhttp/iwinhttprequest-responsebody |
14:00:05 | FromDiscord | <cabboose> How do people use this os |
14:00:12 | FromDiscord | <NullCode> done |
14:00:12 | FromDiscord | <cabboose> Noice |
14:00:22 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zW4 |
14:00:29 | FromDiscord | <NullCode> In reply to @cabboose "Yeah I hate macosx": same |
14:00:31 | FromDiscord | <Rika> that's just a bandage patch |
14:00:45 | FromDiscord | <Rika> my head hurts again ill go for now |
14:00:46 | FromDiscord | <cabboose> Yeah |
14:00:46 | FromDiscord | <enthus1ast> maybe there is no response body?↵(@NullCode) |
14:00:54 | FromDiscord | <Rika> good point |
14:01:00 | FromDiscord | <NullCode> never thought about that actually |
14:01:03 | FromDiscord | <Rika> check via some app like insomnia |
14:01:15 | FromDiscord | <enthus1ast> or burp |
14:01:26 | FromDiscord | <Rika> or just like plain curl or w/e idk |
14:02:03 | FromDiscord | <NullCode> using curl yeah |
14:02:08 | FromDiscord | <NullCode> sounds the laziest |
14:02:13 | FromDiscord | <Rika> man windows is such a fuck with its api |
14:02:22 | FromDiscord | <NullCode> (edit) "sounds ... theway" added "like" | "likethe laziest ... " added "way" |
14:02:28 | FromDiscord | <cabboose> Hey don’t hate on windows |
14:02:31 | FromDiscord | <cabboose> I like windows |
14:02:32 | FromDiscord | <Rika> im gonna get stressed again looking at this |
14:02:36 | FromDiscord | <cabboose> Better than macosx |
14:02:40 | FromDiscord | <cabboose> Gives me cancer |
14:02:50 | FromDiscord | <cabboose> Finally fixed the path |
14:02:56 | FromDiscord | <Rika> congratrs |
14:02:58 | FromDiscord | <enthus1ast> every system is $hit in its own ways |
14:03:15 | FromDiscord | <Rika> im gonna go do not programming |
14:03:19 | FromDiscord | <Rika> might go mad if i dont |
14:03:21 | FromDiscord | <auxym> I used to like windows. These day I don't like any OS D: |
14:03:30 | FromDiscord | <auxym> In reply to @enthus1ast "every system is $hit": Yeah this |
14:06:21 | FromDiscord | <enthus1ast> i could write a multi site long rant about every system\: linux, windows, macox (i have already), freebsd |
14:06:31 | FromDiscord | <enthus1ast> but i will not do it \:) |
14:07:09 | * | agander_m joined #nim |
14:07:48 | FromDiscord | <Rika> In reply to @enthus1ast "i could write a": Oh totally |
14:08:03 | FromDiscord | <Rika> All of them are fucked and there’s no way to fix them even if you were to make a new system |
14:08:10 | FromDiscord | <NullCode> doesnt look like there are response headers |
14:08:15 | FromDiscord | <enthus1ast> TempleOs? |
14:08:24 | FromDiscord | <NullCode> In reply to @Rika "All of them are": what if you took every flaw and fixed them |
14:08:33 | FromDiscord | <NullCode> (edit) "In reply to @Rika "All of them are": what if you took every flaw ... and" added "with each os" |
14:08:34 | FromDiscord | <enthus1ast> in the body?↵(@NullCode) |
14:08:35 | FromDiscord | <Rika> You risk including other flaws |
14:08:44 | FromDiscord | <tandy> im interested in this too..↵(@Rika) |
14:08:44 | FromDiscord | <cabboose> No headers? |
14:08:48 | FromDiscord | <cabboose> where are you getting this from |
14:08:59 | FromDiscord | <Rika> In reply to @tandy "im interested in this": I ended up just using OpenGL directly |
14:09:04 | FromDiscord | <NullCode> ok no wait a bit |
14:09:07 | FromDiscord | <NullCode> I'm gonna eat my head |
14:09:14 | FromDiscord | <NullCode> curl is a mess to use |
14:09:31 | FromDiscord | <Rika> I’d like to know how you would eat your own head |
14:09:31 | FromDiscord | <NullCode> downloading insomnia and burp |
14:09:53 | FromDiscord | <NullCode> In reply to @Rika "I’d like to know": solid question |
14:11:31 | FromDiscord | <enthus1ast> curl --head url |
14:11:47 | FromDiscord | <auxym> In reply to @enthus1ast "TempleOs?": That forum thread did get a good chuckle out of me. Had following forgotten about the whole thing |
14:11:47 | FromDiscord | <NullCode> not unless it's a post request |
14:14:18 | FromDiscord | <NullCode> damn ill just stick with the bandage for now |
14:14:20 | FromDiscord | <NullCode> and work on this 2mor |
14:14:22 | FromDiscord | <NullCode> hella tired |
14:14:27 | FromDiscord | <tandy> madman↵(@Rika) |
14:14:30 | FromDiscord | <enthus1ast> curl -D - -d '{"your"\: "data"}' https://google.de |
14:14:32 | FromDiscord | <NullCode> thanks for all the help tho |
14:14:40 | FromDiscord | <tandy> is there a nim lib for that |
14:17:01 | FromDiscord | <tandy> can you do `INSERT IF NOT EXISTS` with norm? |
14:17:41 | FromDiscord | <NullCode> In reply to @enthus1ast "curl -D - -d": yes it has headers |
14:17:56 | FromDiscord | <NullCode> windows curl was being a bitch |
14:18:03 | FromDiscord | <NullCode> downloaded real curl from interwebs |
14:18:30 | FromDiscord | <enthus1ast> wsl ftw |
14:18:40 | FromDiscord | <enthus1ast> one of the best features of windows 10 imho |
14:18:45 | FromDiscord | <NullCode> i agree |
14:18:46 | NimEventer | New Nimble package! matrixsdk - A Matrix (https://matrix.org) client and appservice API wrapper for Nim!, see https://github.com/dylhack/matrix-nim-sdk |
14:18:49 | nrds | <R2D299> itHub: 7"[WIP] Matrix client-server and appservice API wrapper" |
14:19:03 | FromDiscord | <NullCode> In reply to @NimEventer "New Nimble package! matrixsdk": that is very cool |
14:19:39 | FromDiscord | <enthus1ast> ahh yes then i soon can trash my matrix client hacks |
14:20:52 | FromDiscord | <enthus1ast> lets see if it wraps libolm, though |
14:20:53 | FromDiscord | <tandy> woooo↵(<@709044657232936960_nrds=5b=49=52=43=5d>) |
14:21:08 | FromDiscord | <tandy> i can write a chat client for my webapp now \:)↵(<@709044657232936960_=4eim=45venter=5b=49=52=43=5d>) |
14:21:16 | FromDiscord | <tandy> dont have to embed hydrogen |
14:22:02 | FromDiscord | <NullCode> does this eventer bot send if a normal nim proj is uploaded too? |
14:22:10 | FromDiscord | <enthus1ast> withouth libolm no encrypted rooms |
14:22:25 | FromDiscord | <joshgoebel> are there tests for async http server? |
14:24:31 | FromDiscord | <xflywind> https://github.com/nim-lang/Nim/blob/devel/tests/stdlib/tasynchttpserver.nim |
14:24:33 | FromDiscord | <xflywind> ^ |
14:27:29 | FromDiscord | <Yardanico> In reply to @NullCode "does this eventer bot": no, that would be too spammy |
14:27:38 | FromDiscord | <Yardanico> it only sends new packages that are added to nimble |
14:27:56 | FromDiscord | <NullCode> i see |
14:28:39 | FromDiscord | <Yardanico> the source is in https://github.com/Yardanico/nimeventer/ |
14:28:42 | nrds | <R2D299> itHub: 7"Posts updates from various Nim communities to various Nim communities :)" |
14:30:12 | FromDiscord | <NullCode> ooh you made it |
14:30:17 | FromDiscord | <NullCode> nice :D |
14:30:17 | FromDiscord | <Yardanico> well it's pretty simple |
14:30:56 | FromDiscord | <Dylan> 😳↵(<@709044657232936960_=4eim=45venter=5b=49=52=43=5d>) |
14:30:59 | FromDiscord | <Dylan> That was quick |
14:31:17 | FromDiscord | <Yardanico> @Dylan do you really want to license that package under GPLv3 or that was just a mistake? |
14:31:25 | FromDiscord | <Yardanico> you seem to have GPLv3 specified in the nimble package but there's no LICENSE file |
14:32:08 | FromDiscord | <Dylan> yeah I know, I care less about a license right now and more about the code itself. All my projects have a license file under GPL 3 |
14:32:42 | FromDiscord | <enthus1ast> [Dylan](https://matrix.to/#/@dylhack:newcircuit.io)\: plan to support olm/megolm? |
14:32:45 | FromDiscord | <Yardanico> oh ok, it's just that most Nim packages tend to have licenses like MIT or Apache 2 so it might be worth to specify that it's GPLv3 in the readme also :) |
14:33:12 | FromDiscord | <cabboose> Yeah I would always assume MIT unless I see otherwise 👀 |
14:35:11 | FromDiscord | <Dylan> Not yet |
14:35:51 | FromDiscord | <Dylan> That will be... fun |
14:40:24 | * | stkrdknmibalz quit (Quit: WeeChat 3.0.1) |
14:43:29 | FromDiscord | <Dylan> I mean GitHub, nimble.directory, the nimble package, and the package.json attributes all say GPL 3.0↵(@Yardanico) |
14:44:14 | FromDiscord | <Dylan> What's wrong with GPL 3 in the Nim community? |
14:45:09 | federico3 | huh? |
14:45:10 | FromDiscord | <cabboose> Nothing wrong with it |
14:45:56 | FromDiscord | <Yardanico> @Dylan I didn't say there was anything wrong with it, I just said that most packages were MIT or Apache 2-licensed :) |
14:46:42 | FromDiscord | <Rika> Well so what if they are? Why would that warrant a readme change |
14:47:18 | FromDiscord | <Dylan> Yeah I mean I don't see the Apache 2 or MIT licensed packages in most of the README's. |
14:47:40 | FromDiscord | <enthus1ast> MIT is more freedom i think |
14:47:50 | federico3 | Dylan: nimble.directory is not making assumptions or usind defaults |
14:47:55 | FromDiscord | <Rika> Actually I guess most packages have a “license” header, Apache or not |
14:48:12 | FromDiscord | <Rika> Header as in on the readme |
14:49:42 | FromDiscord | <cabboose> or a license file |
14:50:19 | FromDiscord | <Rika> There is a license file right |
14:50:20 | federico3 | also the .nimble file usually has the license in it |
14:50:22 | FromDiscord | <cabboose> he does have a license file though |
14:50:34 | FromDiscord | <cabboose> so no issue |
14:50:47 | federico3 | Dylan: what are your repos? |
14:50:48 | FromDiscord | <cabboose> yeah nah he doesnt have to do anything extra AFAICT |
14:51:02 | FromDiscord | <cabboose> he’s gucci |
14:51:10 | FromDiscord | <Dylan> I just added it, yeah that makes sense for missing a LICENSE file. Sometimes GPL 3 gets a lot of hate and just making sure it didn't rub anyone the wrong way |
14:51:10 | FromDiscord | <Yardanico> yeah, that I said was only a suggestion, nothing more |
14:51:35 | FromDiscord | <Dylan> what do you mean?↵(<@709044657232936960_federico3=5b=49=52=43=5d>) |
14:52:31 | FromDiscord | <Dylan> Hopefully everyone is fine with it being GPL 3. I mean if a company really wanted to do damage to the protections there's really nothing I could do about it. |
14:53:20 | federico3 | I certainly am |
14:54:52 | FromDiscord | <Rika> Indifferent in my case since I don’t really code as much as others |
14:55:29 | FromDiscord | <haxscramper> There is a guy who uses 'private' license |
14:55:58 | federico3 | what's a "private" license? |
14:56:06 | FromDiscord | <Rika> Proprietary? |
14:56:12 | FromDiscord | <Dylan> Sorry just had to make sure GPL 3 wasn't going to be the reason the project dies in attractiveness, some people really hate GPL 3 |
14:56:16 | FromDiscord | <Rika> “Look but no use”? |
14:56:26 | FromDiscord | <Dylan> I love GPL 3 because it makes large companies like Discord disclose that they're using open-source software. |
14:56:29 | FromDiscord | <Rika> In reply to @Dylan "Sorry just had to": Inevitably it could really |
14:56:54 | federico3 | a lot of stuff on github is proprietary simply because authors don't put any FLOSS license in the repo |
14:57:05 | FromDiscord | <haxscramper> https://github.com/al6x/pl0t/blob/main/license |
14:58:02 | FromDiscord | <Rika> Is that legally sound? |
14:58:03 | FromDiscord | <haxscramper> Ah yes, proprietary |
14:58:21 | FromDiscord | <haxscramper> https://github.com/al6x/pl0t/blob/c0d9ffa7bab6a8f83eaa5ff1340f79b379bb4a99/api/nim/pl0t.nimble#L4 |
14:58:29 | federico3 | Rika: hardly |
14:58:45 | FromDiscord | <haxscramper> In reply to @Rika "Is that legally sound?": I'm pretty sure it is not "sound" legally, and it is certainly not what we need in the ecosystem |
14:58:50 | FromDiscord | <haxscramper> He published the package |
14:58:53 | FromDiscord | <Rika> Yeah always scary using licenses no one has checked |
14:59:03 | FromDiscord | <Rika> Well his choice |
14:59:08 | FromDiscord | <haxscramper> I wouldn't say anything if he didn't put it on nimble |
14:59:49 | federico3 | unfortunately there's still no review process around the nimble list |
14:59:57 | FromDiscord | <haxscramper> > You can't use this product or any of its parts to build similar service and compete with me. |
15:00:07 | FromDiscord | <Dylan> lol |
15:00:38 | FromDiscord | <Dylan> > ↵> my competitors are trash, don't even try.↵> |
15:00:54 | FromDiscord | <Rika> In reply to @haxscramper "> You can't use": That CANNOT be legally sound |
15:01:18 | federico3 | Rika: unpopular licenses can be more tricky, but also short licenses usually do not define the terms they use |
15:01:58 | FromDiscord | <haxscramper> Also uses snake_case |
15:02:03 | FromDiscord | <Rika> Hey |
15:02:16 | FromDiscord | <Rika> Not an issue |
15:02:27 | FromDiscord | <Rika> I thought we talked about this |
15:02:52 | FromDiscord | <Yardanico> @Rika |
15:02:53 | FromDiscord | <Yardanico> https://media.discordapp.net/attachments/371759389889003532/891338975585902622/unknown.png |
15:02:56 | FromDiscord | <Dylan> doWe-Have\_a-problemSir?↵(@haxscramper) |
15:03:07 | FromDiscord | <Yardanico> nim doesn't support hyphens in identifiers |
15:03:16 | FromDiscord | <Yardanico> it did in the past, but only for some short amount of time |
15:03:28 | FromDiscord | <haxscramper> sent a code paste, see https://paste.rs/M7D |
15:03:49 | FromDiscord | <Rika> In reply to @Yardanico "": I mean sure whatever |
15:04:02 | FromDiscord | <Rika> Don’t know whatever the fuck e means in that case |
15:04:09 | FromDiscord | <haxscramper> Enum |
15:04:32 | FromDiscord | <Yardanico> it's fine when someone uses the SAME style in their whole package |
15:04:34 | FromDiscord | <Yardanico> not this https://media.discordapp.net/attachments/371759389889003532/891339401009987665/unknown.png |
15:04:38 | FromDiscord | <Yardanico> newJObject yet to_json |
15:04:50 | FromDiscord | <Dylan> sent a code paste, see https://paste.rs/RZm |
15:04:51 | FromDiscord | <Yardanico> yes |
15:05:10 | federico3 | I'll leave this here http://www.cs.kent.edu/~jmaletic/papers/ICPC2010-CamelCaseUnderScoreClouds.pdf |
15:05:11 | FromDiscord | <Yardanico> if you're not joking, "const" in nim actually means "computed at compile time" |
15:05:41 | FromDiscord | <Yardanico> "let" is computed at runtime but the variable itself is immutable |
15:05:45 | FromDiscord | <Yardanico> "var" is computed at runtime and mutable |
15:05:57 | FromDiscord | <Rika> In reply to @Yardanico "not this": Sorry what’s the stylistic issue here |
15:05:59 | FromDiscord | <Yardanico> const/let/var have nothing to do with scoping, it's always the same regardless of whatever you're using |
15:06:14 | FromDiscord | <Yardanico> In reply to @Rika "Sorry what’s the stylistic": usage of void↵newJObject yet to_json |
15:06:21 | FromDiscord | <Rika> I see lmao |
15:06:24 | FromDiscord | <Rika> Didn’t realise |
15:06:30 | FromDiscord | <Dylan> yea that's what I ran into lol, I forgot about const evaluated at compile time and I also forgot time can't necessarily be used at compile time.↵(@Yardanico) |
15:06:44 | FromDiscord | <Rika> Void usage is okay I would say |
15:06:47 | FromDiscord | <Yardanico> well, you can access the time the code was compiled at |
15:07:03 | FromDiscord | <Yardanico> with CompileTime and CompileDate constants (defined in the system module which is always imported implicitly) |
15:07:21 | FromDiscord | <Yardanico> it's in string format, but yeah |
15:10:59 | FromDiscord | <Dylan> I do have a legit question though. Is there any pure library for the HttpClient that supports SSL as well? Currently it relies on native sockets which isn't very pure of you to do (doesn't work in JS). |
15:11:23 | FromDiscord | <Dylan> I saw a few PR's that were implementing backend JS HTTP and fetch on the nim-lang repo. They got merged, but where are they now? |
15:11:49 | FromDiscord | <cabboose> didnt people link puppy before |
15:11:58 | FromDiscord | <xflywind> https://nim-lang.github.io/Nim/jsfetch.html |
15:12:20 | FromDiscord | <xflywind> `jshttpclient` is not merged. |
15:13:02 | FromDiscord | <Dylan> Oh yeah there it is jsFetch. I saw the PR for that |
15:13:43 | FromDiscord | <cabboose> Why does tsan have an issue with threads? |
15:13:51 | FromDiscord | <cabboose> I can’t test any multithreading with tsan? |
15:13:55 | FromDiscord | <cabboose> thats crazy \:/ |
15:14:13 | FromDiscord | <cabboose> Do we have alternatives for thread safety analysis? |
15:14:14 | FromDiscord | <xflywind> In reply to @flywind "`jshttpclient` is not merged.": https://github.com/nim-lang/Nim/pull/17373 |
15:15:06 | FromDiscord | <cabboose> I feel like I just spent a week researching cache coherency to get shot in the foot 🤣 |
15:15:18 | FromDiscord | <cabboose> Make an implementation and I can’t test it rip |
15:15:44 | FromDiscord | <cabboose> just creating the Thread and getting it to run makes it die |
15:16:09 | FromDiscord | <cabboose> oh actually I wonder if its the var thats passed to it |
15:16:12 | FromDiscord | <cabboose> that might do it… |
15:16:13 | FromDiscord | <federico3> err... this room is not mirrored with the IRC channel? |
15:16:25 | FromDiscord | <cabboose> Hmm? |
15:16:26 | FromDiscord | <Rika> It is |
15:16:37 | FromDiscord | <cabboose> It should be. |
15:16:40 | FromDiscord | <Rika> Did the bot die |
15:16:54 | FromDiscord | <cabboose> nooo not the bot |
15:17:49 | FromDiscord | <federico3> ah, looks like it is but... through Discord? |
15:17:54 | FromDiscord | <Rika> Yes |
15:17:58 | FromDiscord | <Rika> Why |
15:18:07 | FromDiscord | <Dylan> My first plan after this Matrix library is done is to make Discord bridge. |
15:18:16 | FromDiscord | <federico3> that its so weird. Matrix is natively integrated with Libera.chat |
15:18:25 | FromDiscord | <Rika> Yardanico already made one |
15:18:36 | FromDiscord | <Rika> In reply to @federico3 "that its so weird.": Afaik there were some issues with that |
15:18:39 | FromDiscord | <Rika> I don’t know what |
15:18:43 | FromDiscord | <federico3> so right now on Matrix there are 2 rooms instead of one |
15:18:50 | FromDiscord | <Rika> But there were so that’s why it’s not using that |
15:19:26 | FromDiscord | <federico3> #nim-lang\:matrix.org and #nim\:libera.chat (and the latter does not redirect the joins the first one) |
15:19:33 | * | federico3 left #nim (#nim) |
15:22:20 | FromDiscord | <cabboose> I can confirm that thread analyzers will prove non safety of any nim program on arc that just creates a thread even if it doesnt access global variables and just closes straight away |
15:22:29 | FromDiscord | <cabboose> That makes a very unhappy cabboose |
15:22:57 | FromDiscord | <cabboose> No one likes an unhappy cabboose |
15:25:46 | FromDiscord | <dom96> federico3: https://nim-lang.org/blog/2021/06/19/new-community-home.html |
15:26:26 | FromDiscord | <dom96> (Although we've disabled the Telegram<->Matrix bridge) |
15:28:45 | * | beshr quit (Remote host closed the connection) |
16:08:40 | FromDiscord | <tandy> are you making a library for matrix-js-sdk btw? |
16:09:25 | FromDiscord | <tandy> checkout juan carlos's nodejs repo |
16:09:43 | FromDiscord | <tandy> he moved his PR that got pushed away by araq to that repo |
16:09:53 | FromDiscord | <tandy> i did an indexeddb support pr there too |
16:10:22 | FromDiscord | <tandy> i also implemented browser js support for my listenbrainz.org nim library with nim's experimental JS fetch support |
16:10:35 | FromDiscord | <tandy> https://github.com/juancarlospaco/nodejs/blob/main/src/nodejs/jsasynchttpclient.nim |
16:10:38 | FromDiscord | <Dylan> I could. I was making a TypeScript based Matrix SDK, but there's already one that exists. The current one that exists by turt2live is .... messy. Maybe I might get back to producing one but for now I want to focus on Nim and hopefully keep it 100% pure |
16:11:00 | FromDiscord | <tandy> https://gitlab.com/tandy1000/listenbrainz-nim |
16:11:25 | FromDiscord | <tandy> i see, i mean will your library compile to the JS backend tho |
16:11:27 | FromDiscord | <tandy> for browser support |
16:11:48 | FromDiscord | <Dylan> True, I was originally going to do that with Kotlin but Kotlin to JS compiler is really unstable right now which brought me to Nim |
16:11:52 | FromDiscord | <Dylan> So I hope to make it 100% pure just for that cause |
16:12:25 | FromDiscord | <tandy> pls ping me if you need a hand with JS support, im interested in making it work |
16:12:47 | FromDiscord | <enthus1ast> in wnim are multiple "Panels" are supposed to be in one "Frame"? |
16:13:41 | FromDiscord | <enthus1ast> is a Panel just a "region" where i can put stuff in and move the whole panel to reposition? |
16:13:55 | FromDiscord | <enthus1ast> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/891356572855468122): in wnim are multiple "Panels" supposed to be in one "Frame"? |
16:13:56 | FromDiscord | <Dylan> Yeah right now two things\:↵a. Is nim ready for producing javascript libraries?↵b. thanks for linking that library the only thing preventing me from making it 100% pure is the httpclient |
16:14:32 | FromDiscord | <tandy> i believe it is, at the moment my listenbrainz-nim compiles to js and works in the browser |
16:16:09 | * | Gustavo6046 joined #nim |
16:20:18 | * | beshr joined #nim |
16:38:38 | * | rockcavera quit (Remote host closed the connection) |
16:59:19 | FromDiscord | <treeform> sent a code paste, see https://play.nim-lang.org/#ix=3zXi |
17:01:00 | FromDiscord | <NullCode> oh sure |
17:01:06 | FromDiscord | <NullCode> but I'm sorry it will take a while |
17:01:11 | FromDiscord | <NullCode> I'm having some regex problems now |
17:01:39 | FromDiscord | <NullCode> god why did the `re` stdlib have to be impure |
17:05:33 | FromDiscord | <Rika> you can use 3rd party `regex` |
17:05:36 | FromDiscord | <Rika> is pure |
17:07:25 | FromDiscord | <NullCode> yeah I'm having the time of my life (sarcastic) with regex |
17:07:30 | FromDiscord | <NullCode> re was so much better |
17:10:45 | FromDiscord | <Rika> ? |
17:10:50 | FromDiscord | <Rika> what issues are you having now |
17:11:00 | FromDiscord | <NullCode> well first up |
17:11:11 | FromDiscord | <NullCode> idu how to use the regex findAll proc |
17:11:19 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891371296024330320/unknown.png |
17:11:54 | FromDiscord | <enthus1ast> if one use regex to solve a problem, you now has two problems \:) |
17:12:11 | FromDiscord | <Rika> `s/has/have` |
17:12:12 | FromDiscord | <NullCode> (wrong image) |
17:12:17 | FromDiscord | <NullCode> In reply to @enthus1ast "if one use regex": indeed i do |
17:12:20 | FromDiscord | <Rika> i was staring at the image wondering what you mean |
17:12:26 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891371577902526494/unknown.png |
17:12:32 | FromDiscord | <NullCode> here's findAll proc |
17:12:36 | FromDiscord | <NullCode> In reply to @Rika "i was staring at": I'm sorry |
17:13:06 | FromDiscord | <Rika> findall is an iterator (or something returning a seq) of objects containing prolly matches and captures |
17:13:26 | FromDiscord | <NullCode> lets see what it is then |
17:13:37 | FromDiscord | <enthus1ast> what do you wanna parse? |
17:13:41 | FromDiscord | <Rika> m.boundaries -> the mathc boundary i assume |
17:13:51 | FromDiscord | <Rika> where you can then use [] on the string to get the substring |
17:13:54 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891371946598596638/unknown.png |
17:14:07 | FromDiscord | <NullCode> (edit) "" => "returns a "regexmatch" sequence" |
17:14:11 | FromDiscord | <Rika> now look at regexmatch |
17:14:36 | FromDiscord | <NullCode> In reply to @enthus1ast "what do you wanna": I'm just practicing using nim, i have some bullshit on a file and I'm trying to parse that for valid emails |
17:15:28 | FromDiscord | <enthus1ast> why not just loop through the file and do it by hand? 😊 |
17:16:06 | FromDiscord | <NullCode> "by hand"? |
17:16:10 | FromDiscord | <NullCode> In reply to @Rika "now look at regexmatch": nothing |
17:16:16 | FromDiscord | <Rika> nothing?? |
17:16:48 | FromDiscord | <Rika> does this look like nothing to you https://media.discordapp.net/attachments/371759389889003532/891372675774177300/unknown.png |
17:16:53 | FromDiscord | <NullCode> what |
17:16:56 | FromDiscord | <NullCode> where did you find this |
17:17:02 | FromDiscord | <NullCode> I'm sure i scoured the doc twice |
17:17:06 | FromDiscord | <Rika> literally click the type |
17:17:14 | FromDiscord | <Rika> you can click the types |
17:17:19 | FromDiscord | <NullCode> didn't know lmfao |
17:17:38 | FromDiscord | <NullCode> ok so theres captures, orderedtable and a slice |
17:18:21 | FromDiscord | <Rika> namedGroups is probably a LUT for captures (seq[seq[Slice[int]]]) |
17:19:08 | FromDiscord | <NullCode> actually hol'up |
17:19:10 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891373270346109009/unknown.png |
17:19:13 | FromDiscord | <NullCode> i think this proc is better |
17:19:27 | FromDiscord | <NullCode> returns a seq with everything |
17:19:36 | FromDiscord | <Rika> sent a code paste, see https://play.nim-lang.org/#ix=3zXj |
17:19:47 | FromDiscord | <Rika> sure that could be better for you |
17:20:16 | FromDiscord | <NullCode> it's fine |
17:20:17 | FromDiscord | <Rika> sent a code paste, see https://paste.rs/iuj |
17:20:23 | FromDiscord | <enthus1ast> sent a code paste, see https://paste.rs/s6b |
17:20:39 | FromDiscord | <NullCode> i see |
17:20:53 | FromDiscord | <NullCode> but what if theres a string "yougotbam@boozled" |
17:20:56 | FromDiscord | <NullCode> life ruined |
17:21:09 | FromDiscord | <enthus1ast> which is a valid email? |
17:21:23 | FromDiscord | <Rika> not very |
17:21:24 | FromDiscord | <NullCode> .suffix when |
17:21:28 | FromDiscord | <enthus1ast> it is |
17:21:33 | FromDiscord | <Rika> the best way to validate emails is not to use regex |
17:21:41 | FromDiscord | <Rika> but to actually check the network... |
17:21:41 | FromDiscord | <enthus1ast> boozled is the server, no tld though |
17:21:51 | FromDiscord | <NullCode> yeah thats it |
17:22:41 | FromDiscord | <enthus1ast> i can send to root@localhost and get a mail \:)↵(@Rika) |
17:22:45 | FromDiscord | <dom96> spending effort creating an email validation regex is a waste of time |
17:22:50 | FromDiscord | <dom96> just checking for `@` is enough |
17:22:51 | FromDiscord | <Rika> true i guess |
17:22:58 | FromDiscord | <Rika> In reply to @dom96 "spending effort creating an": yeeeeee |
17:23:01 | FromDiscord | <enthus1ast> then, if super fancy |
17:23:08 | FromDiscord | <enthus1ast> test for all valid tlds |
17:23:12 | FromDiscord | <leorize> you should write an email validation peg instead |
17:23:14 | FromDiscord | <enthus1ast> which is a long list these days |
17:23:18 | FromDiscord | <Rika> so just dont bother |
17:23:40 | FromDiscord | <dom96> why would you bother testing for tlds? |
17:23:58 | FromDiscord | <dom96> it will just lead to issues, impossible to have a complete list |
17:24:27 | FromDiscord | <enthus1ast> i would (and have somewhere) also replace (at) at etc with @ |
17:25:04 | FromDiscord | <NullCode> btw findandcaptureall worked |
17:25:09 | FromDiscord | <NullCode> sorry for bothering yall |
17:25:09 | FromDiscord | <enthus1ast> i was collecting emails from impressums though |
17:25:32 | * | naquad joined #nim |
17:25:46 | FromDiscord | <enthus1ast> i was collecting emails from impressums though, we where building a database of all big companies, not for spamming, for research mainly |
17:26:14 | naquad | hi. how do i create a sequence of named tuples? type Xyz = tuple[...] and then var xyz : seq[Xyz] = @[...] doesn't work as it says that my elements are of wrong type :( what am i doing wrong? |
17:26:37 | FromDiscord | <enthus1ast> we've done this the easy way first, then started full blown chrome and talked to it through its debugger interface |
17:27:11 | FromDiscord | <Rika> naquad how do you write the elements? |
17:27:20 | FromDiscord | <Rika> and what are the types in the tuple |
17:27:25 | naquad | @[(version: ..., query: ...)] |
17:28:42 | naquad | the tuple itself: type Migration = tuple[version: int, query: SqlQuery] |
17:29:23 | FromDiscord | <Rika> can you give the full error |
17:30:30 | naquad | tinkering/nim/db.nim(6, 35) Error: type mismatch: got seq[tuple[version: int, query: SqlQuery]]> but expected 'seq[Migration]' |
17:30:44 | naquad | nim is 1.4.8 |
17:31:28 | FromDiscord | <Rika> is Xyz Migration? |
17:32:00 | naquad | yes |
17:32:12 | naquad | i thought its something simple and just wrote a dummy name |
17:32:27 | naquad | https://gist.github.com/1c7425779a93f6a4d3f410402b48ff51 full source if needed |
17:32:48 | FromDiscord | <Rika> i will look |
17:32:56 | FromDiscord | <Rika> ah |
17:33:00 | FromDiscord | <Rika> uint vs int |
17:33:14 | FromDiscord | <Rika> you must explicitly put `version: 1.uint` |
17:34:27 | naquad | doh! what a miss. thank you for help, Rika |
17:35:23 | FromDiscord | <Rika> np |
17:35:40 | FromDiscord | <NullCode> Error: unhandled exception: C:\Users\NullCode\.nimble\pkgs\unicodedb-0.9.0\unicodedb\types.nim(23, 10) `cp.int <= 0x0010FFFF` [AssertionDefect]↵now what is this LMFAO |
17:35:49 | FromDiscord | <NullCode> i hate this so much |
17:36:20 | FromDiscord | <NullCode> why is unicode interfering when i didn't even import it |
17:37:00 | FromDiscord | <NullCode> you know what |
17:37:07 | FromDiscord | <NullCode> ignore what i just said/deleted |
17:37:21 | FromDiscord | <NullCode> I'm gonna find a way to link pcre32.dll to make `re` work |
17:38:08 | FromDiscord | <Rika> have fun |
17:38:21 | FromDiscord | <Rika> i have not experienced annoying issues like you are with `regex` |
17:38:41 | FromDiscord | <NullCode> either I'm a total moron |
17:38:42 | naquad | is there a way to create an array whos length will be determined by Nim based on the initializer rather than specified manually? |
17:38:48 | FromDiscord | <NullCode> (edit) "moron" => "moron↵or regex is bad" |
17:38:58 | FromDiscord | <NullCode> (edit) "regex" => "`regex`" |
17:39:30 | FromDiscord | <Rika> mind elaborating with dummy code |
17:39:55 | FromDiscord | <Rika> write what you think should be instead of what compiles, might be easier for me to understand |
17:40:28 | FromDiscord | <Rika> In reply to @Rika "i have not experienced": as i say this i realise regex has no backreferencing so 😄 |
17:40:29 | FromDiscord | <Rika> lmfao |
17:41:02 | FromDiscord | <NullCode> https://forum.nim-lang.org/t/495 |
17:41:12 | FromDiscord | <NullCode> i found guy who had 100% same problem as me |
17:41:17 | FromDiscord | <NullCode> and theres no solution DAMN IT |
17:41:26 | FromDiscord | <NullCode> (edit) "100%" => "90%" | "90%same problem as me ... " added "(openssl instead of re)" |
17:42:22 | FromDiscord | <Rika> i would have suggested static linking but that is hard on windows i believe |
17:42:46 | FromDiscord | <NullCode> yeah I'm trying to static link rn |
17:42:54 | FromDiscord | <NullCode> (edit) "to" => "to/searching for" |
17:44:57 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891379762046570556/unknown.png |
17:44:59 | FromDiscord | <NullCode> "so damn ez" |
17:45:13 | FromDiscord | <NullCode> only if they demonstrated how "ez" it was i wouldnt have to suffer |
17:51:38 | FromDiscord | <NullCode> ok no i seem to have found something |
17:53:32 | * | stkrdknmibalz joined #nim |
18:03:18 | FromDiscord | <Rika> https://gist.github.com/k-takata/5124445 |
18:03:21 | FromDiscord | <Rika> relevant |
18:06:07 | * | max22- quit (Ping timeout: 240 seconds) |
18:06:55 | FromDiscord | <Dylan> I've created a room for the Matrix Nim SDK [#matrix-nim-sdk\:newcircuit.io](https://matrix.to/#/#matrix-nim-sdk:newcircuit.io) |
18:13:09 | FromDiscord | <NullCode> In reply to @Rika "https://gist.github.com/k-takata/5124445": i can almost understand this, and almost not |
18:13:27 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891386933522079774/unknown.png |
18:13:32 | FromDiscord | <NullCode> i get confused right around here |
18:14:41 | FromDiscord | <Rika> --passc:"-DPCRE_STATIC -" --passl:"-static -lpcre" probably |
18:14:58 | FromDiscord | <NullCode> mmhmm mmhmm imma try that |
18:15:51 | FromDiscord | <NullCode> nope |
18:16:44 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zXG |
18:16:58 | FromDiscord | <NullCode> cannot find lpcre what can i do about this |
18:18:25 | FromDiscord | <Gumber> you need lpcre.dll |
18:18:53 | FromDiscord | <Gumber> on your linker's path |
18:19:05 | FromDiscord | <Gumber> How'd you install Nim @NullCode ? |
18:20:20 | FromDiscord | <NullCode> https://nim-lang.org/install_windows.html |
18:20:25 | FromDiscord | <NullCode> downloaded the mingw |
18:20:28 | FromDiscord | <NullCode> downloaded nim compiler |
18:20:37 | FromDiscord | <NullCode> unzipped and added the directories to path |
18:20:39 | FromDiscord | <NullCode> thats about it |
18:23:20 | FromDiscord | <NullCode> In reply to @Gumber "on your linker's path": whats the linker's path exactly |
18:23:31 | FromDiscord | <NullCode> %MINGW_FOLDER%\bin? |
18:24:16 | FromDiscord | <Gumber> I dunno |
18:24:18 | FromDiscord | <Gumber> yeah |
18:24:26 | FromDiscord | <Gumber> I guess whatever that crazy path is you see in your terminal ol |
18:24:28 | FromDiscord | <Gumber> (edit) "ol" => "lol" |
18:24:32 | FromDiscord | <Gumber> but I mean you're on windows |
18:24:37 | FromDiscord | <Gumber> so you could drop it in a number of places |
18:24:53 | FromDiscord | <Gumber> there's also a way to instruct the linker where to find dynamic libraries |
18:25:00 | FromDiscord | <Gumber> that's what I meant when I said the linker path @NullCode |
18:25:06 | FromDiscord | <NullCode> oh. |
18:25:08 | FromDiscord | <Gumber> I didn't mean like, in the same dir |
18:25:13 | FromDiscord | <Gumber> also sorry for pinging you when you had dnd on |
18:25:21 | FromDiscord | <NullCode> i see I'm gonna go hit the compiler docs then |
18:25:26 | FromDiscord | <Gumber> well |
18:25:28 | FromDiscord | <Gumber> don't look at the nim compiler docs |
18:25:29 | FromDiscord | <NullCode> In reply to @Gumber "also sorry for pinging": dude it's not a problem at all |
18:25:39 | FromDiscord | <NullCode> i put in dnd cuz the ping noise is annoying |
18:25:40 | FromDiscord | <Gumber> gotta look at ld.exe mingw's docs |
18:25:44 | FromDiscord | <Gumber> yeah I feel you |
18:25:45 | FromDiscord | <NullCode> In reply to @Gumber "gotta look at ld.exe": oh |
18:25:46 | FromDiscord | <Gumber> it helps me |
18:25:49 | FromDiscord | <Gumber> cause I have bad ADHD xD |
18:26:05 | FromDiscord | <NullCode> (edit) "all" => "all↵i put in dnd cuz the ping noise is annoying" |
18:26:11 | FromDiscord | <NullCode> I'm sorry to hear that |
18:26:15 | FromDiscord | <Gumber> haha it's all god |
18:26:17 | FromDiscord | <Gumber> (edit) "god" => "good" |
18:26:35 | FromDiscord | <Gumber> I just found out like a few months ago that that's what was actually wrong iwth me (at 36) and life is way better now |
18:26:40 | FromDiscord | <Gumber> even like only a few months after i figured it out |
18:26:43 | FromDiscord | <Gumber> or a couple rather |
18:26:49 | FromDiscord | <Gumber> but yeah don't be sorry lol be happy if anything 🙂 |
18:27:04 | FromDiscord | <NullCode> In reply to @Gumber "I just found out": good to know mate |
18:27:27 | FromDiscord | <Gumber> yeah really good to know haha, esp for me xD |
18:27:36 | FromDiscord | <Gumber> anyway um |
18:27:42 | FromDiscord | <Gumber> let me try to help point you in the right direction, one sec... |
18:28:12 | FromDiscord | <Gumber> are you using cygwin? or just mingw? |
18:28:19 | FromDiscord | <Gumber> like how'd you install Nim I guess is my question? |
18:28:45 | FromDiscord | <NullCode> In reply to @Gumber "are you using cygwin?": mingw |
18:28:52 | FromDiscord | <Gumber> okay one sec then |
18:28:54 | FromDiscord | <NullCode> In reply to @Gumber "like how'd you install": https://media.discordapp.net/attachments/371759389889003532/891390822581432320/unknown.png |
18:29:10 | FromDiscord | <Gumber> gotcha |
18:29:19 | FromDiscord | <Gumber> what I would recommend is this |
18:29:24 | FromDiscord | <Gumber> delete that mingw installation |
18:29:30 | FromDiscord | <Gumber> and remove any reference to it in your system path |
18:29:36 | FromDiscord | <Gumber> open up the Nim folder you downloaded |
18:29:44 | FromDiscord | <Gumber> from the website, right? |
18:29:45 | FromDiscord | <Gumber> this one? |
18:30:03 | FromDiscord | <Gumber> https://nim-lang.org/install_windows.html |
18:30:06 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891391120922259466/unknown.png |
18:30:06 | FromDiscord | <NullCode> this one yea |
18:30:08 | FromDiscord | <Gumber> for whichever cpu arch you want |
18:30:12 | FromDiscord | <Gumber> you want 32 bit or 64? |
18:30:14 | FromDiscord | <NullCode> 32 |
18:30:17 | FromDiscord | <Gumber> okay |
18:30:27 | FromDiscord | <Gumber> what are you writing btw with Nim? |
18:30:34 | FromDiscord | <NullCode> im just starting out lmao |
18:30:37 | FromDiscord | <Gumber> okay |
18:30:41 | FromDiscord | <Gumber> so you prob want x64 to be honest |
18:30:47 | FromDiscord | <Gumber> unless you're trying to target a 32 bit cpu |
18:30:56 | FromDiscord | <Gumber> which you're most likely not on |
18:30:57 | FromDiscord | <NullCode> but i kinda want all my programs to work on everything |
18:31:00 | FromDiscord | <Gumber> okay |
18:31:05 | FromDiscord | <NullCode> many of my friends have x86 systems |
18:31:09 | FromDiscord | <Gumber> well you can still use the 64 bit compiler |
18:31:10 | FromDiscord | <NullCode> In reply to @Gumber "which you're most likely": yep I'm on 64 |
18:31:13 | FromDiscord | <Gumber> and target 32 bit architectures |
18:31:21 | FromDiscord | <Gumber> you just need to use the right compile toolchain |
18:31:21 | FromDiscord | <NullCode> i see idk how thats done |
18:31:29 | FromDiscord | <Gumber> I can help you with that when you need help with that |
18:31:30 | FromDiscord | <Gumber> just ask me |
18:31:36 | FromDiscord | <Gumber> this is my github btw |
18:31:44 | FromDiscord | <NullCode> In reply to @Gumber "I can help you": thanks a lot man |
18:31:44 | FromDiscord | <Gumber> https://github.com/zacharycarter |
18:31:50 | FromDiscord | <NullCode> but for now lets just do x86 |
18:31:51 | FromDiscord | <Gumber> so you know who I am |
18:31:57 | FromDiscord | <Gumber> okay sure - but what you need to remember is this |
18:32:09 | FromDiscord | <NullCode> In reply to @Gumber "so you know who": i see yeah |
18:32:27 | FromDiscord | <Gumber> if you're using a 32 bit nim compiler and not a 64 bit one you will need to make sure any other compiler or whatever you might use if you interop etc will have to be 32 bit too |
18:32:50 | FromDiscord | <Gumber> actually nevermind |
18:32:53 | FromDiscord | <Gumber> I'm conflating things |
18:33:02 | FromDiscord | <Gumber> it's just what architecture the Nim compiler was targeted for |
18:33:17 | FromDiscord | <NullCode> In reply to @Gumber "if you're using a": yes i will do that |
18:33:18 | FromDiscord | <Gumber> okay so yeah download that as you already have 🙂 |
18:33:28 | FromDiscord | <Gumber> yeah well disregard that lol |
18:33:35 | FromDiscord | <NullCode> like i was already done setting up everything |
18:33:37 | FromDiscord | <Gumber> it was a mistatement |
18:33:40 | FromDiscord | <NullCode> so i delete mingw yes? |
18:33:41 | FromDiscord | <Gumber> yeah but here listen real quick |
18:33:43 | FromDiscord | <Gumber> yeah |
18:33:49 | FromDiscord | <Gumber> you manually installed mingw |
18:33:53 | FromDiscord | <NullCode> yeah |
18:33:54 | FromDiscord | <Gumber> but Nim can do it for you and set up everything correctly |
18:33:58 | FromDiscord | <Gumber> and put it on your system path |
18:34:03 | FromDiscord | <Gumber> run finish.exe |
18:34:06 | FromDiscord | <Gumber> might have to be in admin mode I dunno |
18:34:15 | FromDiscord | <NullCode> In reply to @Gumber "but Nim can do": oh thats nice |
18:34:20 | FromDiscord | <Gumber> yeah |
18:35:05 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891392378357837924/unknown.png |
18:35:08 | FromDiscord | <NullCode> i see whats happening |
18:37:03 | * | max22- joined #nim |
18:38:33 | FromDiscord | <NullCode> @Gumber https://media.discordapp.net/attachments/371759389889003532/891393249330221087/unknown.png |
18:39:07 | FromDiscord | <Gumber> this is the stdout from `finish.exe`? |
18:39:11 | FromDiscord | <NullCode> yes |
18:39:50 | FromDiscord | <Gumber> can you share all of the output with me? or is that it? |
18:40:19 | FromDiscord | <NullCode> https://media.discordapp.net/attachments/371759389889003532/891393694362664970/unknown.png |
18:40:33 | FromDiscord | <NullCode> should i send in txt form |
18:40:53 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zXM |
18:40:54 | FromDiscord | <Gumber> so |
18:41:04 | FromDiscord | <Gumber> that's the problem |
18:41:06 | FromDiscord | <Gumber> it failed to download mingw |
18:41:08 | FromDiscord | <Gumber> sent a code paste, see https://play.nim-lang.org/#ix=3zXN |
18:41:13 | FromDiscord | <NullCode> yeah it told me to manually download |
18:41:17 | FromDiscord | <NullCode> and put it in dist folder |
18:41:23 | FromDiscord | <Gumber> okay sec I didn't read that far yet |
18:41:27 | FromDiscord | <NullCode> oh |
18:41:30 | FromDiscord | <Gumber> sorry |
18:41:32 | FromDiscord | <Gumber> lol |
18:41:37 | FromDiscord | <NullCode> nah np |
18:41:55 | FromDiscord | <Gumber> one sec let me look at my install folder |
18:43:05 | FromDiscord | <Gumber> I think the problem might be that you put `Nim` in `Program Files` |
18:43:16 | FromDiscord | <Gumber> well I'm just positing |
18:43:30 | FromDiscord | <Gumber> but knowing windows and its shell |
18:43:41 | FromDiscord | <Gumber> it has a big problem sometimes with spaces in filepaths |
18:43:42 | FromDiscord | <NullCode> In reply to @Gumber "I think the problem": hmm yeah that could be it too |
18:43:44 | FromDiscord | <Gumber> and requires them to be quoted |
18:43:49 | FromDiscord | <Gumber> maybe try moving it and trying again? |
18:44:02 | FromDiscord | <Gumber> sorry to make you go through all these steps but I honestly don't know what's wrong |
18:44:05 | FromDiscord | <Gumber> if that's the case we can file a bug |
18:44:17 | FromDiscord | <Gumber> and if not I have a couple of other ideas |
18:45:44 | FromDiscord | <NullCode> In reply to @Gumber "sorry to make you": it's all good lmao |
18:45:57 | FromDiscord | <NullCode> I'm gonna create C:\nim and move everything there |
18:53:03 | * | Pyautogui joined #nim |
18:53:09 | NimEventer | New post on r/nim by ryati: Good web framework for Nim?, see https://reddit.com/r/nim/comments/pvd3ba/good_web_framework_for_nim/ |
19:06:55 | FromDiscord | <NullCode> all done |
19:09:49 | naquad | is there some small project that i can read through to get the grasp of what is the "nym way"? |
19:10:47 | FromDiscord | <NullCode> just create your own stuff for now |
19:11:03 | FromDiscord | <NullCode> then improve on them by taking one of the "nym way" as an example |
19:11:18 | FromDiscord | <NullCode> thats what i did when i started python |
19:11:42 | naquad | well, i'm looking exactly for an example |
19:15:19 | FromDiscord | <NullCode> well |
19:15:39 | FromDiscord | <NullCode> theres nothing small afail |
19:15:42 | FromDiscord | <NullCode> (edit) "afail" => "afaik" |
19:15:49 | FromDiscord | <Rika> Just look at any package |
19:15:49 | FromDiscord | <NullCode> you can look at puppy sources |
19:15:55 | FromDiscord | <NullCode> he mentioned small proj |
19:15:58 | FromDiscord | <Rika> There isn’t really a “Nim way” |
19:16:28 | FromDiscord | <NullCode> btw |
19:16:41 | FromDiscord | <NullCode> after fully reinstalling nim and everything |
19:16:49 | FromDiscord | <NullCode> i still get the thingy lmao |
19:17:08 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3zXT |
19:17:13 | FromDiscord | <NullCode> I'm just gonna go fetch nimc docs |
19:17:42 | naquad | Rika, NullCode, i'll try to find one, maybe in stdlib, maybe in the "puppy" project. thanks |
19:17:58 | FromDiscord | <enthus1ast> https://nim-lang.org/docs/tut1.html |
19:18:46 | FromDiscord | <enthus1ast> https://narimiran.github.io/nim-basics/ |
19:19:01 | FromDiscord | <NullCode> In reply to @enthus1ast "https://narimiran.github.io/nim-basics/": this |
19:19:11 | FromDiscord | <NullCode> this is the first guide i read for nim |
19:19:12 | FromDiscord | <NullCode> it's epic |
19:19:31 | FromDiscord | <NullCode> you should download the pdf for reading offline tho |
19:20:09 | FromDiscord | <Gumber> ugh |
19:20:13 | FromDiscord | <Gumber> okay well |
19:20:17 | FromDiscord | <Gumber> I was hoping that would fix it |
19:20:19 | FromDiscord | <Gumber> and I'm sorry it didn't |
19:20:24 | naquad | i've skimmed through it, i'm now more interested in async stuff and heavy oop (it looks like this is not being used much in Nim) |
19:20:57 | naquad | and multithreading |
19:21:36 | FromDiscord | <NullCode> In reply to @Gumber "and I'm sorry it": it's fine |
19:21:54 | FromDiscord | <Gumber> okay @NullCode I forgot that mingw is basically just gcc/g++ |
19:22:01 | FromDiscord | <NullCode> yes |
19:22:07 | FromDiscord | <Gumber> I use vcc on windows |
19:22:36 | FromDiscord | <Gumber> anywho with gcc/g++ you can add folder's to the linker's search path using the `-L` flag when you call `mingw.exe` |
19:22:43 | FromDiscord | <Gumber> to do this you have a couple of options |
19:23:02 | FromDiscord | <Gumber> but probably the best for you is going to be either drop `pcre.dll` in the same folder as `mingw.exe` |
19:23:06 | FromDiscord | <NullCode> also for clarification↵this is the cmd I'm using↵`nim c --passc:"-DPCRE_STATIC" --passl:"-static -lpcre" onefile.nim` |
19:23:10 | FromDiscord | <NullCode> In reply to @Gumber "but probably the best": i see |
19:23:12 | FromDiscord | <Gumber> or `ld.exe` rather |
19:23:19 | FromDiscord | <Gumber> and you should have the path to that |
19:23:22 | FromDiscord | <Gumber> in the terminal |
19:23:28 | FromDiscord | <Gumber> oh |
19:23:33 | FromDiscord | <Gumber> I see |
19:23:46 | FromDiscord | <Gumber> so you're trying to statically link pcre okay |
19:23:59 | FromDiscord | <Gumber> then you also need `pcre.lib` |
19:24:01 | FromDiscord | <Gumber> on Windows |
19:24:06 | FromDiscord | <Gumber> and the linker has to be able to find that |
19:24:18 | FromDiscord | <Gumber> do you understand the difference between static and dynamic linking? |
19:25:13 | FromDiscord | <NullCode> In reply to @Gumber "so you're trying to": yep yep |
19:25:26 | FromDiscord | <NullCode> thats what I've been trying to achieve for the past couple hours lma |
19:25:37 | FromDiscord | <Gumber> I'm sorry I didn't realize that |
19:25:38 | FromDiscord | <Gumber> okay so |
19:25:42 | FromDiscord | <Rika> I thought you also did the PCRE part of what I sent you |
19:25:51 | FromDiscord | <Gumber> yeah find `pcre.lib` and make sure your linker can find it |
19:25:59 | FromDiscord | <Gumber> put `pcre.dll` in your linkers path - it prob already is |
19:26:00 | FromDiscord | <Rika> Find or make it |
19:26:13 | FromDiscord | <Gumber> well you can probably just download a prebuilt binary of pcre |
19:26:19 | FromDiscord | <Gumber> that will include the `.lib` and `.dll` folders |
19:26:28 | FromDiscord | <Gumber> but you need to get the same version and cpu arch that nim was compiled with |
19:26:31 | FromDiscord | <Gumber> as well as the same compiler |
19:26:34 | FromDiscord | <Gumber> so it might be a bit tricky |
19:26:45 | FromDiscord | <Gumber> I'm sure we distriibute it somewhere..... |
19:26:49 | FromDiscord | <NullCode> In reply to @Gumber "I'm sorry I didn't": i shouldve told you first ;-; |
19:26:50 | FromDiscord | <Gumber> but I've never tried to link `pcre.lib` before |
19:26:52 | FromDiscord | <Rika> So better built then |
19:26:52 | FromDiscord | <Gumber> it's all good haha |
19:26:55 | FromDiscord | <Gumber> wekk |
19:26:56 | FromDiscord | <Gumber> well |
19:27:01 | FromDiscord | <NullCode> In reply to @Rika "I thought you also": yeah no |
19:27:03 | FromDiscord | <Gumber> you'd still have to use the same compiler you build Nim with I imagine |
19:27:12 | FromDiscord | <Gumber> and they didn't build their nim install |
19:27:14 | FromDiscord | <Gumber> soooooo |
19:27:19 | FromDiscord | <Gumber> you either will have to build Nim too |
19:27:25 | FromDiscord | <Rika> Well yeah but if you used finish bat then it’s his computer’s compiler |
19:27:34 | FromDiscord | <Gumber> is it? |
19:27:37 | FromDiscord | <Gumber> okay |
19:27:43 | FromDiscord | <Gumber> I thought Nim was already built at that point |
19:27:46 | FromDiscord | <Rika> Is it not or what I don’t know for sure |
19:27:49 | FromDiscord | <Gumber> and `finish.exe` just downloaded and built tooling |
19:27:53 | FromDiscord | <Gumber> yeah I don't think it is Rika |
19:27:57 | FromDiscord | <Gumber> I think it just installs like mingw |
19:28:03 | FromDiscord | <Gumber> and then some tooling |
19:28:12 | FromDiscord | <Gumber> I don't think it builds anything related to the Nim runtime / compiler |
19:28:16 | FromDiscord | <Rika> Okay |
19:28:21 | FromDiscord | <Rika> Do you have patience |
19:28:25 | FromDiscord | <Gumber> not much |
19:28:27 | FromDiscord | <Rika> Because it takes a while to build Nim |
19:28:28 | FromDiscord | <Rika> Not you |
19:28:31 | FromDiscord | <Gumber> lol I know I was jk |
19:28:32 | FromDiscord | <Rika> I mean uh |
19:28:38 | FromDiscord | <Rika> What was his name |
19:28:39 | FromDiscord | <Gumber> it's not bad at all on windows |
19:28:43 | FromDiscord | <Rika> Bull |
19:28:47 | FromDiscord | <Gumber> it's like running a `.bat` file |
19:28:49 | FromDiscord | <Rika> Null |
19:28:51 | FromDiscord | <Gumber> and then messing with some system paths |
19:28:55 | FromDiscord | <Gumber> that's it |
19:29:00 | FromDiscord | <Rika> I mistresses |
19:29:04 | FromDiscord | <Rika> Uh |
19:29:06 | FromDiscord | <Rika> Whatever |
19:29:10 | FromDiscord | <Rika> It’s four am |
19:29:13 | FromDiscord | <Gumber> xD |
19:29:19 | FromDiscord | <Gumber> go to sleep! |
19:29:31 | FromDiscord | <Gumber> it's good for you 🙂 |
19:33:49 | FromDiscord | <NullCode> In reply to @Rika "It’s four am": 1:30 here |
19:41:33 | FromDiscord | <NullCode> In reply to @Gumber "but you need to": yikes that won't be fun at all |
19:41:35 | FromDiscord | <NullCode> ill still try |
19:43:32 | FromDiscord | <Gumber> yeah :/ |
19:43:53 | FromDiscord | <Rika> Welcome to static linking |
19:44:03 | FromDiscord | <Rika> Easier on Linux from my experience |
19:44:23 | Pyautogui | I dislike the re module's API. Are there any alternatives? |
19:44:51 | FromDiscord | <Rika> nre |
19:45:08 | Pyautogui | Thanks. |
20:13:16 | FromDiscord | <treeform> I did not like re's API till i discovered =~ i like that part |
20:13:26 | FromDiscord | <deech> Is there a way to pass a string to a C++ template using the `importcpp` syntax, eg. I'd like to bind to something like : `foo<"blah">()` and I'm trying: `proc p... {.importcpp: "foo<what-goes-here?>" .}` and call it with something like `p["blah"]()`. I could make this a template but I thought I'd ask if there was some other way. |
20:13:47 | FromDiscord | <deech> (edit) ""foo<what-goes-here?>"" => ""foo<what-goes-here?>()"" |
20:17:38 | FromDiscord | <haxscramper> You can try `proc[S: static[string]](): {.importcpp: "foo<\"" & S & "\">(@)".}` |
20:18:11 | FromDiscord | <haxscramper> Otherwise you need to roll your own template, I don't think there is an alternative to that |
20:22:05 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3zY7 |
20:22:39 | FromDiscord | <haxscramper> importcpp does not work because "cannot generate expression for 'S'", which I don't know how to fix |
20:24:16 | FromDiscord | <dom96> `proc p(s: static[string]) {.importcpp: "foo<@>()".}` tried something like this? |
20:24:43 | FromDiscord | <dom96> `@` might be wrong, can't remember which symbol is replaced with the first parameter |
20:27:05 | * | Pyautogui quit (Ping timeout: 252 seconds) |
20:29:18 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3zYc |
20:30:09 | FromDiscord | <haxscramper> `proc print1(s: static[string]) {.importcpp: "print1<#>()".}` is not valid as well |
20:33:49 | FromDiscord | <dom96> https://nim-lang.org/docs/manual.html#importcpp-pragma-importcpp-for-procs |
20:34:10 | FromDiscord | <dom96> works but it doesn't |
20:34:12 | FromDiscord | <dom96> sent a code paste, see https://play.nim-lang.org/#ix=3zYd |
20:34:18 | FromDiscord | <dom96> (edit) |
20:34:36 | FromDiscord | <haxscramper> `'N` works for types, but we need values |
20:34:48 | FromDiscord | <haxscramper> The only way to get type-as-value is to use `S: static[string]` |
20:35:00 | FromDiscord | <haxscramper> `arg: static[string]` is still just a parameter value |
20:35:30 | * | Pyautogui joined #nim |
20:36:03 | FromDiscord | <haxscramper> This would only work for procedures, since it is not possible to `{.emit.}` in type declaration |
22:13:03 | * | Pyautogui quit (Ping timeout: 265 seconds) |
22:20:47 | FromDiscord | <RC> Hello, I wanted to wrap a CPP object, more specifically a `ifstream` object. How do I generate the constructor so that it can be accessed from Nim? |
22:41:34 | * | kayabaNerve joined #nim |
23:13:50 | * | max22- quit (Remote host closed the connection) |
23:46:44 | * | kayabaNerve quit (Ping timeout: 252 seconds) |