<< 06-11-2024 >>

03:02:18*lucasta quit (Quit: Leaving)
03:59:02*rockcavera quit (Remote host closed the connection)
06:30:45FromDiscord<.tokyovigilante> sent a long message, see https://pasty.ee/kNOhgVzL
06:45:13FromDiscord<djazz> In reply to @gogolxdong666 "Is it for native,can": Im making this with Naylib (Raylib) runs in browser, all rendered with opengl https://djazz.se/apps/jazzle/
06:50:11FromDiscord<mtriplet> I think I found a software to code and I am gonna settle
06:50:22FromDiscord<mtriplet> Does anyone know about helix?
07:00:53FromDiscord<.tokyovigilante> In reply to @mtriplet "Does anyone know about": I know it's an awesome editor written in a less awesome language 😉 but works well (well as well as the langserver works currently) with nim and LSP
07:03:13FromDiscord<mtriplet> yeah. well it is less confusing than neovim that's for sure
07:12:12FromDiscord<mtriplet> still i need to learn about helix workflow
07:14:17FromDiscord<mtriplet> In reply to @.tokyovigilante "I know it's an": Are you available for some tips about helix
07:16:38FromDiscord<.tokyovigilante> I am not but just ask in #offtopic or #tooling and I or someone who knows will help I'm sure.
07:20:25*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
07:20:51*SchweinDeBurg joined #nim
07:23:32FromDiscord<heysokam> sent a long message, see https://pasty.ee/zCWwOune
07:26:00FromDiscord<.tokyovigilante> In reply to @heysokam "heavy nvim user, tried": You have literally described me 😉
07:26:30FromDiscord<.tokyovigilante> Just wish it had proper file tree browser, otherwise I love it
07:30:44FromDiscord<mtriplet> In reply to @heysokam "heavy nvim user, tried": oof ok then
07:33:33FromDiscord<heysokam> In reply to @mtriplet "oof ok then": like, its good. you have to try it. just expect a minimalistic nvim experience and you will be good
07:33:57FromDiscord<mtriplet> In reply to @heysokam "like, its good. you": I don't even use nvim
07:34:06FromDiscord<mtriplet> tbh
07:34:11FromDiscord<heysokam> I expected a highly customizable experience and was disappointed because of that. but the app is good
07:34:46FromDiscord<mtriplet> but i have to learn linux for customizing
07:34:54FromDiscord<odexine> what
07:34:54FromDiscord<heysokam> In reply to @mtriplet "I don't even use": might be a good reason to learn helix then. its much easier to get into modal editors with it than nvim
07:34:59FromDiscord<mtriplet> the trade off is not good yet
07:35:14FromDiscord<mtriplet> In reply to @heysokam "might be a good": I am starting to test out helix
07:35:16FromDiscord<odexine> In reply to @mtriplet "but i have to": i dont understand this
07:35:33FromDiscord<mtriplet> In reply to @odexine "i dont understand this": i mean lua
07:35:37FromDiscord<mtriplet> not linux
07:35:48FromDiscord<mtriplet> my brain is multi tasking sorry
07:37:43FromDiscord<mtriplet> I still think i need to settle helix
07:37:51FromDiscord<mtriplet> and start doing coding tests
07:38:26FromDiscord<odexine> you should
07:38:43FromDiscord<odexine> any problems with it will surface while you use it
07:39:25FromDiscord<heysokam> pretty much
07:56:33FromDiscord<mtriplet> In reply to @odexine "any problems with it": not everything is perfect and flawless
07:56:47FromDiscord<odexine> i mean, problems you have with it
07:56:52FromDiscord<mtriplet> so i expect some issues here and there
07:57:05FromDiscord<mtriplet> In reply to @odexine "i mean, problems you": currently for me it is none
07:57:11FromDiscord<odexine> sure nothing is perfect but i mean that any problems (implied: that you think are too significant) will surface
07:57:17FromDiscord<mtriplet> other than learning curve that is
07:58:07FromDiscord<mtriplet> In reply to @odexine "sure nothing is perfect": Good to know
07:59:32Amun-Raperfect and flawless… someone called me?
08:09:10FromDiscord<mtriplet> no
08:11:12FromDiscord<odexine> oof lol
08:11:45*cnx quit (Remote host closed the connection)
08:12:35*cnx joined #nim
08:26:04*redj quit (Ping timeout: 260 seconds)
08:26:45*redj joined #nim
08:45:02FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "perfect and flawless… someone": i think you misheard, keep shining tho
11:47:43FromDiscord<solarvortex_ae> Building a.nim discord bot is a pain,i need to manually import everything which makes nim feel abit bad,i tried macros but got will.get the weirdest error i ever saw and even if it worked it woudlnt be fully automated
11:48:15FromDiscord<solarvortex_ae> Im trying nim to use on much stuff as possible.and.this is not one which i would recommend nim for
11:49:09FromDiscord<solarvortex_ae> my opinion is that dynamic.import (like javascript for example) on nim would give a big benefit at the language
11:50:59FromDiscord<zumi.dxy> what do you mean by dynamic imports?
11:51:16FromDiscord<solarvortex_ae> On nim you are forced to import anything at the top of the file
11:51:31FromDiscord<solarvortex_ae> if you want.to lets say import something in code using a variable
11:51:41FromDiscord<solarvortex_ae> Eg import {x}
11:51:45FromDiscord<solarvortex_ae> That wouldnt.work
11:52:30FromDiscord<zumi.dxy> like runtime imports?↵that probably wouldn't make sense here↵nim's about pushing things to compile time as much as possible
11:53:41FromDiscord<solarvortex_ae> But it would open a whole.new world for nim,most network based.things require some module to.be imported like this
11:53:56FromDiscord<solarvortex_ae> Or.lets say an optional dependenncy
11:54:03FromDiscord<solarvortex_ae> (edit) "dependenncy" => "dependency"
11:54:19FromDiscord<solarvortex_ae> That you want quickly swap in code
11:55:54FromDiscord<zumi.dxy> optional features like what python has would be nice, but the equivalent here that i know of is `when defined(someFeature): import ...` and then use `-d:someFeature` to enable it
11:56:06FromDiscord<zumi.dxy> that's a compile-time `if`
11:57:47FromDiscord<solarvortex_ae> Yeah having an optional feature like that sounds really nice,and the runtime if yes can be useful but its not flexible as a runtime import would be
11:59:08FromDiscord<nnsee> In reply to @solarvortex_ae "Yeah having an optional": nim is a compiled language, so runtime imports don't make sense. the code either _is_ compiled in, or isn't
11:59:32FromDiscord<solarvortex_ae> If it isnt then.let me import at runtime
11:59:44FromDiscord<nnsee> again, that doesn't make sense
11:59:59FromDiscord<zumi.dxy> hope you're okay with making seperate .dll / .so for everything 😛
12:00:12FromDiscord<zumi.dxy> that's what a "runtime import" is, loading separate libraries at runtime
12:00:27FromDiscord<nnsee> the code needs to be compiled into an executable before it can be used - or, yes, making separate library binaries but have fun with that lol
12:00:35FromDiscord<solarvortex_ae> I would.still prefer having dlls
12:00:49FromDiscord<k0ts> Try it and you'll change your mind
12:00:57FromDiscord<solarvortex_ae> I used c#
12:01:12FromDiscord<solarvortex_ae> With c++
12:01:19FromDiscord<solarvortex_ae> Which god
12:02:23FromDiscord<nnsee> In reply to @solarvortex_ae "I would.still prefer having": you can do that if you want, except instead of importing, you use `dlopen`
12:02:29FromDiscord<nnsee> but... why?
12:02:33FromDiscord<nnsee> what problem are you trying to solve?
12:03:55FromDiscord<solarvortex_ae> In reply to @solarvortex_ae "Building a.nim discord bot": Modular commands
12:04:20FromDiscord<solarvortex_ae> So i can just have a simple command file.that gets automatically imported sort of javascript does
12:04:32FromDiscord<ayex> they can still be modular when statically compiled
12:04:36FromDiscord<solarvortex_ae> And since i already know nim why would i switch over to js
12:05:51FromDiscord<nnsee> i'm not sure why you think you can't have this with nim?
12:06:16FromDiscord<solarvortex_ae> Because dynamic imports arent a thing
12:06:29FromDiscord<solarvortex_ae> At all
12:06:38FromDiscord<k0ts> dlopen
12:06:47FromDiscord<nnsee> yeah but i don't see how dynamic imports help you in python either?
12:06:55FromDiscord<nnsee> how is that related to modularity?
12:07:17FromDiscord<solarvortex_ae> Because i can trowh a command file in a folder and it gets loaded
12:07:28FromDiscord<k0ts> I've done exactly that before, modular commands in DLLs for a discord bot↵It sucked, made the thing a pain to maintain, locked me out of Nim's best features, and was completely pointless
12:07:45FromDiscord<nnsee> In reply to @solarvortex_ae "Because i can trowh": but _why_? what is the use case for that?
12:08:03FromDiscord<solarvortex_ae> In reply to @k0ts "I've done exactly that": Ril
12:08:06FromDiscord<nnsee> what problem does this solve?
12:08:07FromDiscord<solarvortex_ae> (edit) "Ril" => "Rip"
12:08:14FromDiscord<solarvortex_ae> Modularity
12:08:26FromDiscord<nnsee> you're just repeating the same words without really explaining what you mean
12:08:36FromDiscord<nnsee> it's hard to help you provide solutions if you're not describing your problem
12:09:17FromDiscord<nnsee> (edit) "it's hard to help you ... provide" added "and"
12:09:25FromDiscord<solarvortex_ae> modularity is all it does, it helps so you dont need to edit the main file over and over and you can have small singlecommand files
12:09:41FromDiscord<k0ts> That what modules are for
12:12:11FromDiscord<nnsee> you don't have to "edit the main file over and over" - if adding one import is too difficult for you, you can write a nimble task or macro that writes the main file for you before compiling. something like https://forum.nim-lang.org/t/1177#7276
12:12:53FromDiscord<solarvortex_ae> I already explained how macrps just make the thing even worse
12:13:19FromDiscord<nnsee> no, you didn't
12:13:35FromDiscord<nnsee> you just said "weirdest error ever" without describing the error or even what exactly you were trying to do
12:13:37FromDiscord<k0ts> They work when used correctly
12:16:04FromDiscord<solarvortex_ae> I used macro for creating a dynamic import and that was pain,in the ens you also needed to manually add an import statement because macros cant do that directly killing the whole purpose,if i were to edit the file i would just use a bash script at that point
12:16:32FromDiscord<nnsee> what?
12:16:39FromDiscord<nnsee> i don't understand what you mean
12:18:20FromDiscord<k0ts> macros can do it directly
12:20:14Amun-Raadd lua for macros
12:20:17Amun-Rascripts*
12:21:25FromDiscord<nnsee> @solarvortex_ae https://media.discordapp.net/attachments/371759389889003532/1303695735359016970/image.png?ex=672cb0c4&is=672b5f44&hm=2ec6b13b51383e6821e1b3c8efa44aa9c365b29a18c0263bcbbe851802bf5cd6&
12:21:32FromDiscord<nnsee> works just fine for me
12:23:34Amun-Rannsee: what's that lst command from?
12:23:44FromDiscord<zumi.dxy> exa?
12:24:14Amun-Raah, right, thanks
12:24:20FromDiscord<nnsee> it's aliased to `ls --tree`, and `ls` in turn is aliased to `eza -lh --icons`
12:24:40FromDiscord<zumi.dxy> ohh eza↵forgot it forked
12:24:57FromDiscord<zumi.dxy> 'nother reason to use ls↵/s
12:25:40FromDiscord<k0ts> os.walkDir works at compile time
12:26:43FromDiscord<nnsee> yeah there's probably a much saner way to do that, i just copied the example from the thread
12:27:01FromDiscord<k0ts> Yeah, just putting it out there if anyone wants to write their own version
12:27:26FromDiscord<zumi.dxy> I wish there was no distinction between copyFile and cpFile
12:28:07FromDiscord<zumi.dxy> I thought NimScript's strength was that you can run some code both compiled and through the compiletime VM
12:28:14FromDiscord<zumi.dxy> (edit) "I thought NimScript's strength was that you can run some code both compiled ... and" added "native"
12:29:50*redj quit (Ping timeout: 255 seconds)
12:29:50*fallback quit (Ping timeout: 255 seconds)
12:30:25*redj joined #nim
12:30:25FromDiscord<nnsee> @solarvortex_ae and if you really, _really_ want to do dynamic libraries, pmunch has written an article on how to do that here: https://peterme.net/dynamic-libraries-in-nim.html
12:38:40*xet7 quit (Remote host closed the connection)
12:42:44*fallback joined #nim
13:12:26*xet7 joined #nim
13:32:54*ntat joined #nim
14:07:24FromDiscord<tauruuuuuus> Is there a way to emit a case of statement via macro? I have a comp time table with enum as keys and data as values, and i want to transform it to a case statament with each key as the cases and the value to be put as arguments for a proc to be called
14:07:41FromDiscord<tauruuuuuus> At this point I need to know if it is possible
14:07:42FromDiscord<tauruuuuuus> lol
14:14:14strogon14programming is about trying out what is possible. it's quite normal not to know the answers beforehand.
14:15:09FromDiscord<tauruuuuuus> I'm trying to do it with `quote do` I think it's doable creating nnk nodes manually
14:16:02strogon14I'm not a macro expert, but if you show your code, even if it#s not working yet, others might look at it and help.
14:17:50FromDiscord<ayex> yes I think I did that (case statement on enum) at some point. but I did not use `quote do` but via the nnk construction route.↵(@tauruuuuuus)
14:18:51FromDiscord<tauruuuuuus> In reply to @ayex "yes I think I": I guessed so, guess I now have something to do ahaha
14:18:53FromDiscord<tauruuuuuus> Thanks!!
14:19:09FromDiscord<ayex> you are welcome 🙂
14:41:17*lucasta joined #nim
14:56:47*lucasta quit (Remote host closed the connection)
14:57:29*ntat_ joined #nim
14:57:53*ntat quit (Ping timeout: 255 seconds)
14:58:19*lucasta joined #nim
16:15:28*ntat_ quit (Quit: Leaving)
16:15:48*ntat joined #nim
18:55:23*lucasta quit (Quit: Leaving)
19:04:27FromDiscord<goerge_lsd> https://github.com/jaar23/tui_widget trying to compile some examples here I get the ` error: passing argument 1 of ‘clipboard_text’ from incompatible pointer type [-Wincompatible-pointer-types]` type of erros. All examples, all tests. I remember it had something to do with gcc14. Is this a nim problem or a project problem ?
19:04:36FromDiscord<goerge_lsd> (edit) "https://github.com/jaar23/tui_widget trying to compile some examples here I get the ` error: passing argument 1 of ‘clipboard_text’ from incompatible pointer type [-Wincompatible-pointer-types]` type of erros. All examples, all tests. I remember it had something to do with gcc14. Is this a nim problem or a project problem ? ... " added "compiles with clang"
19:27:26*coldfeet joined #nim
20:47:45*om3ga quit (Ping timeout: 248 seconds)
20:50:02*om3ga joined #nim
21:37:36*coldfeet quit (Remote host closed the connection)
21:42:11*rockcavera joined #nim
22:15:58*ntat quit (Quit: Leaving)
22:27:41*beholders_eye joined #nim
22:46:40*beholders_eye quit (Ping timeout: 272 seconds)
22:57:56*flynn9 joined #nim
22:58:58*flynn quit (Ping timeout: 248 seconds)
22:58:58*flynn9 is now known as flynn
23:05:26FromDiscord<k0ts> Could be either. What's the full error?
23:29:46FromDiscord<zumi.dxy> it was fixed in a newer version of nim
23:30:04*rockcavera quit (Remote host closed the connection)
23:31:42*rockcavera joined #nim