| 00:58:47 | FromDiscord | <a_guy_a> i've never run tests like this before lol https://media.discordapp.net/attachments/371759389889003532/1521319054302777494/image.png?ex=6a446647&is=6a4314c7&hm=67d42cecfbcdd44b3bbe0760a8c22db12da4e76e16aa5bf952678ca10f58e95f& |
| 01:24:34 | * | savannt quit (Quit: Client closed) |
| 03:07:36 | FromDiscord | <Aceroph> is there any documentation on documenting code? |
| 03:10:03 | FromDiscord | <a_guy_a> In reply to @Aceroph "is there any documentation": https://nim-lang.org/docs/docgen.html?utm_source=chatgpt.com |
| 03:10:23 | FromDiscord | <a_guy_a> In reply to @Aceroph "is there any documentation": https://nim-lang.github.io/Nim/markdown_rst.html?utm_source=chatgpt.com |
| 03:11:22 | FromDiscord | <a_guy_a> a hard emphasise on the '?utm_source=chatgpt.com |
| 03:11:23 | FromDiscord | <a_guy_a> (edit) "'?utm_source=chatgpt.com" => "'?utm_source=chatgpt.com'" |
| 03:11:29 | FromDiscord | <DetermiedNim1> `?utm_source=chatgpt.com` |
| 03:11:46 | FromDiscord | <a_guy_a> we are missing a lmgtfy.com for chatgpt |
| 03:12:29 | FromDiscord | <DetermiedNim1> In reply to @Aceroph "is there any documentation": # regular comment (like python)↵#[ ]# open/close block comment (like / / in java)↵## doc comment (use this for library documentation) |
| 03:12:38 | FromDiscord | <DetermiedNim1> (edit) "#" => "\#" | "java)↵##" => "java)↵\##" |
| 03:12:50 | FromDiscord | <DetermiedNim1> basic rundown |
| 03:13:23 | FromDiscord | <a_guy_a> https://letmegooglethat.com/?q=nim+official+documentation+for+documenting+code |
| 03:13:32 | FromDiscord | <a_guy_a> ## try that |
| 03:14:15 | FromDiscord | <a_guy_a> does nim have a random library ? |
| 03:14:45 | FromDiscord | <DetermiedNim1> https://nim-lang.org/docs/tut1.html#lexical-elements-comments↵https://nim-lang.org/docs/manual.html#comment-pieces_1↵https://nim-lang.org/docs/manual.html#documentation-comments_1 |
| 03:14:51 | FromDiscord | <DetermiedNim1> In reply to @a_guy_a "does nim have a": yes |
| 03:14:56 | FromDiscord | <DetermiedNim1> `import random` |
| 03:14:59 | FromDiscord | <a_guy_a> yes it was satire |
| 03:15:00 | FromDiscord | <a_guy_a> excuse me |
| 03:15:03 | FromDiscord | <a_guy_a> (edit) "excuse" => "pardon" |
| 03:15:05 | FromDiscord | <DetermiedNim1> oh 😭 mb |
| 03:15:13 | FromDiscord | <a_guy_a> this jackass cant fucking google |
| 03:15:45 | FromDiscord | <DetermiedNim1> 🤷♂️ might as well answer if we've got the answers |
| 03:16:05 | FromDiscord | <a_guy_a> that seems a bit wrong |
| 03:16:38 | FromDiscord | <DetermiedNim1> In reply to @Aceroph "is there any documentation": btw, for future stuff, try searching in the doc website (https://nim-lang.org/docs) |
| 03:16:43 | FromDiscord | <DetermiedNim1> or nim by example |
| 03:17:00 | FromDiscord | <a_guy_a> or ChatGGPT works VERY well |
| 03:17:00 | FromDiscord | <a_guy_a> bro |
| 03:17:10 | FromDiscord | <a_guy_a> (edit) "ChatGGPT" => "ChatGPT" |
| 03:17:15 | FromDiscord | <a_guy_a> like super duper well |
| 03:17:15 | FromDiscord | <DetermiedNim1> (edit) "(https://nim-lang.org/docs)" => "(https://nim-lang.org/docs)↵↵theres a search bar on the left" |
| 03:17:51 | FromDiscord | <a_guy_a> like the new google |
| 03:18:03 | FromDiscord | <DetermiedNim1> knowing how to use the "old" google is important too 😁 |
| 03:18:37 | FromDiscord | <a_guy_a> idk google is shit |
| 03:18:42 | FromDiscord | <a_guy_a> ever notice you cant search for anything |
| 03:18:55 | FromDiscord | <a_guy_a> my email exists on tons of sites, yet google shows none for the exact search |
| 03:20:24 | FromDiscord | <a_guy_a> but is there anything better though ? |
| 03:20:34 | FromDiscord | <a_guy_a> (edit) "though" => "" |
| 03:20:49 | FromDiscord | <a_guy_a> google seems shit intentionally and thats a scumbag move |
| 03:21:39 | FromDiscord | <a_guy_a> 🤷♂️ to each their own |
| 03:23:33 | FromDiscord | <a_guy_a> there was a big trend people "google dorking" |
| 03:23:33 | FromDiscord | <a_guy_a> https://en.wikipedia.org/wiki/Google_hacking |
| 03:23:59 | FromDiscord | <a_guy_a> but now a days it feels this is patched |
| 03:25:23 | FromDiscord | <a_guy_a> 💯 |
| 03:25:57 | FromDiscord | <a_guy_a> has anyone tired nimony yet |
| 03:54:40 | FromDiscord | <Aceroph> ew↵(@a_guy_a) |
| 03:54:58 | FromDiscord | <Aceroph> thanks↵(@DetermiedNim1) |
| 03:55:25 | * | rockcavera quit (Remote host closed the connection) |
| 03:56:53 | FromDiscord | <Aceroph> did look into that (yes i can google, no i dont use chatgpt), but i wondered if there was any more to it than multi lines, basic docs and comments (like argument annotation, returns.. like @param and @returns in java)↵(@DetermiedNim1) |
| 03:57:15 | FromDiscord | <Laylie> a simple "it's in the manual" would have been better than all that, sheesh |
| 03:57:27 | FromDiscord | <Aceroph> fr |
| 03:57:45 | FromDiscord | <DetermiedNim1> In reply to @Laylie "a simple "it's in": i like being thorough 😅 |
| 03:58:10 | FromDiscord | <Laylie> yeah you're good |
| 07:15:17 | * | alexdaguy joined #nim |
| 07:27:35 | * | Skippy8 joined #nim |
| 07:32:23 | * | Skippy8 quit (Ping timeout: 265 seconds) |
| 07:59:13 | * | Skippy8 joined #nim |
| 08:35:57 | * | beholders_eye joined #nim |
| 09:02:15 | * | Skippy8 quit (Ping timeout: 246 seconds) |
| 09:06:54 | FromDiscord | <[Next-System] systemblue> I'm making↵↵cross platform SIMD library with Nim |
| 09:07:10 | FromDiscord | <[Next-System] systemblue> this is main language logic https://media.discordapp.net/attachments/371759389889003532/1521441958248317008/message.txt?ex=6a44d8bd&is=6a43873d&hm=0e6e6efe3997cd2f4a4424c1575dfcb0ecf58c358fac014a3e1b64cc2218ba84& |
| 09:07:14 | FromDiscord | <[Next-System] systemblue> it's name is SIMDLang |
| 09:48:26 | * | Skippy8 joined #nim |
| 10:22:59 | FromDiscord | <karolyi> being able to use simd with nim in an easy way would be a huge step ahead |
| 10:44:43 | * | beholders_eye quit (Ping timeout: 264 seconds) |
| 10:58:21 | * | Skippy8 quit (Ping timeout: 268 seconds) |
| 11:41:28 | * | Skippy8 joined #nim |
| 11:58:33 | * | beholders_eye joined #nim |
| 12:04:54 | * | beholders_eye quit (Ping timeout: 245 seconds) |
| 12:06:46 | * | beholders_eye joined #nim |
| 12:16:49 | * | tokyovigilante quit (Ping timeout: 272 seconds) |
| 12:21:05 | FromDiscord | <abdulrahman.103> In reply to @a_guy_a "my email exists on": You want google to scrape every bit of information on the internet and map every keyword to every website |
| 12:26:37 | FromDiscord | <nervecenter> https://verdagon.dev/blog/ante-blending-borrowing-rc |
| 12:27:08 | FromDiscord | <nervecenter> In which the creator of Vale, making a new language, rediscovers Nim's default memory model while managing to blast it with a billion required annotations. |
| 12:35:48 | * | Skippy8 quit (Ping timeout: 256 seconds) |
| 12:39:48 | FromDiscord | <DetermiedNim1> In reply to @nervecenter "In which the creator": trying to appeal to the java crowd, i see |
| 12:42:46 | FromDiscord | <abdulrahman.103> Learn using docs or youtube? |
| 12:43:07 | FromDiscord | <abdulrahman.103> Probably docs |
| 12:45:15 | FromDiscord | <nervecenter> In reply to @abdulrahman.103 "Probably docs": Docs plus X in Y Minutes. Best way I personally learn is to have a small but somewhat robust example project you can convert to any language and try to make it as idiomatic as possible. |
| 12:45:25 | FromDiscord | <nervecenter> (edit) "you" => "I" |
| 12:45:39 | FromDiscord | <nervecenter> Mine's a Monte Carlo simulation. |
| 12:50:47 | FromDiscord | <gesee37> In reply to @nervecenter "https://verdagon.dev/blog/ante-blending-borrowing-r": Well I see a lot of things here that simply aren't a problem with value semantics |
| 12:50:59 | FromDiscord | <gesee37> And a good ORC |
| 12:51:23 | FromDiscord | <gesee37> But I wanted myself to try borrow type for Nimony |
| 12:51:51 | FromDiscord | <gesee37> Which would be be type on which rust's borrow checking apply |
| 13:26:51 | FromDiscord | <0ffh> In reply to @nervecenter "In which the creator": But how could that be, we all though that was impossible! |
| 13:47:24 | FromDiscord | <zumi.dxy> In reply to @gesee37 "Well I see a": yeah i think there's even a talk at nimconf about this |
| 13:51:30 | FromDiscord | <zumi.dxy> In reply to @nervecenter "In which the creator": i can see the "this is for the programmer (and the LLM) to reason about" argument already |
| 13:53:37 | FromDiscord | <nervecenter> In reply to @zumi.dxy "yeah i think there's": rofl that was mine |
| 14:00:14 | FromDiscord | <zumi.dxy> In reply to @nervecenter "rofl that was mine": oh hello forgot that was you lmao |
| 14:00:29 | FromDiscord | <zumi.dxy> so many people i've yet to meet |
| 14:02:01 | * | Skippy8 joined #nim |
| 14:06:25 | * | Skippy8 quit (Ping timeout: 245 seconds) |
| 14:27:34 | FromDiscord | <tvoyglaza> Bro, this language is so flexible. Looks like im cheating lol https://media.discordapp.net/attachments/371759389889003532/1521522586045907105/image.png?ex=6a4523d5&is=6a43d255&hm=de3bf4dc3a86d1f7aed2c35e9433588df64247f3a1c103aacef50cbdfcd472c6& |
| 14:28:23 | FromDiscord | <zumi.dxy> stropping is a beautifully cursed thing↵you can have a function name with spaces |
| 14:29:01 | FromDiscord | <tvoyglaza> yeahh |
| 14:29:15 | FromDiscord | <tvoyglaza> you can literally use lorem ipsum as a function |
| 14:29:26 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=VitGcEgh |
| 14:29:53 | FromDiscord | <zumi.dxy> (edit) "https://play.nim-lang.org/#pasty=AfbicnCl" => "https://play.nim-lang.org/#pasty=RGKBaHgt" |
| 14:30:19 | FromDiscord | <zumi.dxy> (to nim the name is just `Iterateoverallfooandoutputsomething`) |
| 14:30:23 | FromDiscord | <zumi.dxy> (iirc) |
| 14:30:27 | FromDiscord | <DetermiedNim1> In reply to @zumi.dxy "I think most syntax": ultimate descriptive naming |
| 14:30:58 | FromDiscord | <zumi.dxy> built-in literate programming support 😏 |
| 14:32:18 | * | Skippy8 joined #nim |
| 14:33:35 | FromDiscord | <tvoyglaza> https://media.discordapp.net/attachments/371759389889003532/1521524102785929337/image.png?ex=6a45253e&is=6a43d3be&hm=01ad5a9b2f292442de9205338614cae4390fdfcc534f45cf93c770a9d6a8d462& |
| 14:33:48 | FromDiscord | <tvoyglaza> so nice! |
| 14:34:43 | FromDiscord | <tvoyglaza> Bro, now you can even teach Nim for a little child |
| 14:35:04 | FromDiscord | <tvoyglaza> (edit) "for" => "to" |
| 14:42:44 | FromDiscord | <zumi.dxy> In reply to @zumi.dxy "(to nim the name": I do have to warn you that on an error this is the name you'll see |
| 14:46:21 | FromDiscord | <tvoyglaza> Yeah |
| 14:54:14 | FromDiscord | <0ffh> In reply to @tvoyglaza "Bro, this language is": Little problem, you won't get short circuit semantics that way. |
| 14:59:47 | FromDiscord | <tvoyglaza> In reply to @0ffh "Little problem, you won't": umm.. so it's better using templates? |
| 15:29:04 | * | beholders_eye quit (Ping timeout: 245 seconds) |
| 15:31:44 | FromDiscord | <abdulrahman.103> is there a benefit to using let instead of var when possible |
| 15:35:02 | Amun-Ra | yes, it prevents accidental modifications |
| 15:35:20 | Amun-Ra | and let's the reader know the value doesn't change |
| 15:35:29 | Amun-Ra | lets* |
| 15:36:04 | Amun-Ra | always use const if it's possible, then let, then var |
| 15:36:21 | * | Skippy8 quit (Ping timeout: 246 seconds) |
| 15:37:07 | FromDiscord | <abdulrahman.103> rust and nim are similar in a lot of ways |
| 15:37:32 | Amun-Ra | rust has special mut keyword for that |
| 15:37:55 | * | beholders_eye joined #nim |
| 15:38:15 | Amun-Ra | nim has is much more powerful in compile-time; the thing I (over)use |
| 15:38:24 | Amun-Ra | s/is// |
| 15:38:34 | FromDiscord | <abdulrahman.103> is nimony much better? |
| 15:38:56 | FromDiscord | <abdulrahman.103> i looked at the repo |
| 15:39:04 | FromDiscord | <abdulrahman.103> it seems the biggest upgrade is compile time |
| 15:39:06 | Amun-Ra | I've never used it |
| 15:39:15 | FromDiscord | <pevici> sent a long message, see https://pasty.ee/LOqCbQZF |
| 15:39:20 | FromDiscord | <abdulrahman.103> In reply to @Amun-Ra "I've never used it": its not complete yet |
| 15:39:31 | FromDiscord | <_timurski> In reply to @Amun-Ra "nim has is much": I don't use rust at all but isn't it also extremely powerful for metaprogramming? |
| 15:39:32 | FromDiscord | <abdulrahman.103> its gonna complete this year though |
| 15:39:39 | FromDiscord | <abdulrahman.103> In reply to @_timurski "I don't use rust": whats that |
| 15:39:43 | FromDiscord | <abdulrahman.103> metaprogramming |
| 15:40:04 | FromDiscord | <_timurski> In reply to @abdulrahman.103 "its gonna complete this": seems like there's a long way to go |
| 15:40:12 | Amun-Ra | _timurski: I used it 2+ years ago; can't remember the details |
| 15:40:20 | FromDiscord | <_timurski> hmm |
| 15:40:35 | FromDiscord | <_timurski> In reply to @abdulrahman.103 "metaprogramming": compile time code generation / execution |
| 15:40:45 | FromDiscord | <abdulrahman.103> uses? |
| 15:40:49 | FromDiscord | <_timurski> meta programming means programming the program |
| 15:42:08 | FromDiscord | <_timurski> In reply to @abdulrahman.103 "uses?": plethora of them; simple generation of SoA types, vastly superior code optimization in certain cases, easier debugging, profiling, invariant checking, cleaner APIs |
| 15:42:39 | FromDiscord | <_timurski> and much more that I'm too lazy to list out right now |
| 15:43:11 | * | beholders_eye quit (Ping timeout: 247 seconds) |
| 15:43:21 | FromDiscord | <nervecenter> In reply to @abdulrahman.103 "is there a benefit": Everywhere possible, yes |
| 15:43:35 | FromDiscord | <abdulrahman.103> how low level can nim be? |
| 15:43:36 | FromDiscord | <nervecenter> Immutable data has many many benefits |
| 15:43:46 | FromDiscord | <abdulrahman.103> im very interested in it but im currently making a python project |
| 15:43:50 | FromDiscord | <_timurski> i used Nim's code generation recently to automatically generate maximally optimal functions to evaluate specifical mathematical functions |
| 15:43:52 | FromDiscord | <abdulrahman.103> id like to learn it after |
| 15:44:03 | FromDiscord | <_timurski> In reply to @abdulrahman.103 "how low level can": you can write inline ASM and use pointers and can easily import C |
| 15:44:11 | FromDiscord | <nervecenter> In reply to @abdulrahman.103 "im very interested in": If Python is your standard, Nim can be vastly lower level, you can map directly to C sys calls |
| 15:44:22 | FromDiscord | <nervecenter> They're barely comparable |
| 15:44:29 | FromDiscord | <nervecenter> Except the obvious syntactic inspiration |
| 15:44:34 | FromDiscord | <abdulrahman.103> it compiles to c so coding in c is definitely an option |
| 15:44:39 | FromDiscord | <_timurski> you can also never touch any of that if you don't want to |
| 15:44:45 | FromDiscord | <nervecenter> Python also has pervasive OO and reference semantics, Nim does not |
| 15:44:47 | FromDiscord | <_timurski> (edit) "you can also never touch any of that if you don't want ... to" added "/ need" |
| 15:44:57 | FromDiscord | <abdulrahman.103> but nim seems to not have classes right? |
| 15:45:02 | FromDiscord | <nervecenter> Right |
| 15:45:07 | * | beholders_eye joined #nim |
| 15:45:09 | FromDiscord | <abdulrahman.103> whats the alternative |
| 15:45:25 | FromDiscord | <_timurski> In reply to @_timurski "i used Nim's code": 600 million spline evaluation per second on my Mac M1 single threaded, genuinely was shocked when I got this number |
| 15:45:27 | FromDiscord | <nervecenter> You can emulate classes with var/ref objects and procs/methods that take that object as a first parameter |
| 15:45:46 | FromDiscord | <nervecenter> Which is how it's done in C anyways |
| 15:46:13 | FromDiscord | <abdulrahman.103> how come such a language is not famous |
| 15:46:23 | FromDiscord | <abdulrahman.103> nobody is behind it is a reason |
| 15:46:25 | Amun-Ra | give it time |
| 15:46:36 | FromDiscord | <nervecenter> But OO is strongly discouraged unless absolutely necessary, I recommend learning the default idioms |
| 15:46:54 | FromDiscord | <nervecenter> OO is a tool, not everything |
| 15:47:09 | FromDiscord | <nervecenter> (edit) "a" => "one" | "onetool, not ... everything" added "a solution to" |
| 15:47:09 | FromDiscord | <abdulrahman.103> well in python its everything |
| 15:47:12 | FromDiscord | <abdulrahman.103> literally |
| 15:47:23 | FromDiscord | <abdulrahman.103> thats why i almost always use classes |
| 15:47:24 | FromDiscord | <_timurski> for many purposes OO is an objectively poor way to structure your program |
| 15:47:36 | FromDiscord | <abdulrahman.103> even variables are objects |
| 15:48:16 | FromDiscord | <nervecenter> In reply to @abdulrahman.103 "even variables are objects": That's partly because it's dynamically typed, so that object contains lots of type metadata which has to be checked at runtime |
| 15:48:31 | FromDiscord | <nervecenter> Which is why Python is 100x slower than a statically typed native compiled binary like Nim |
| 15:49:40 | FromDiscord | <abdulrahman.103> it really is a glue language |
| 15:49:53 | FromDiscord | <abdulrahman.103> you cant code something usefull without using c libraries |
| 15:50:15 | FromDiscord | <abdulrahman.103> im using pyside which is a qt wrapper |
| 15:50:57 | FromDiscord | <abdulrahman.103> but that mostly eliminates the performance issues |
| 15:51:02 | FromDiscord | <abdulrahman.103> because youre gluing c |
| 15:51:17 | FromDiscord | <abdulrahman.103> the second biggest issue is packaging |
| 15:51:26 | FromDiscord | <abdulrahman.103> there isnt a standard way to package python |
| 15:51:44 | FromDiscord | <abdulrahman.103> there is pyinstaller which is buggy and nuitka which is recent and works well |
| 15:51:55 | FromDiscord | <abdulrahman.103> nuitka compiles python to c (mostly) |
| 15:58:35 | FromDiscord | <DetermiedNim1> In reply to @_timurski "for many purposes OO": objectively |
| 16:11:22 | FromDiscord | <nervecenter> In reply to @abdulrahman.103 "there is pyinstaller which": The reason I chose Nim at my job was specifically I had been prototyping my analysis engine with Python and bashing my head against PyInstaller and Nuitka |
| 16:11:41 | FromDiscord | <nervecenter> They don't even come close to just writing your program in a native-compiled statically typed language |
| 16:11:59 | FromDiscord | <nervecenter> Python incurs enormous costs and you can't get around them without much ado |
| 16:12:02 | FromDiscord | <abdulrahman.103> sometimes you package it and then windows defender thinks its a virus |
| 16:12:07 | FromDiscord | <abdulrahman.103> or so i heard |
| 16:12:12 | FromDiscord | <abdulrahman.103> havent happened to me |
| 16:12:56 | FromDiscord | <abdulrahman.103> In reply to @nervecenter "They don't even come": the thing with compiled languages is most of them have bad syntax |
| 16:13:03 | FromDiscord | <abdulrahman.103> and interpreted ones tend to be easy |
| 16:13:20 | FromDiscord | <abdulrahman.103> idk why |
| 16:13:26 | FromDiscord | <abdulrahman.103> no correlation |
| 16:13:42 | FromDiscord | <abdulrahman.103> like js can be learned by a child in 3 days |
| 16:13:43 | FromDiscord | <nervecenter> Syntax is one thing, I'm more worried about semantics. C++ has textbooks' worth of hidden semantics that have to be learned, otherwise you stumble over them |
| 16:14:02 | FromDiscord | <nervecenter> Different types and passing rules for references, initialization rules, standard library inconsistencies, the works |
| 16:14:15 | FromDiscord | <abdulrahman.103> c++ is decades worth of code that has to be compatible with newer versions |
| 16:14:31 | FromDiscord | <nervecenter> Which in my view is not a strength |
| 16:14:38 | FromDiscord | <abdulrahman.103> i agree |
| 16:14:42 | FromDiscord | <abdulrahman.103> i dont want to learn all of that |
| 16:14:52 | FromDiscord | <abdulrahman.103> 1 standardized way is alot better |
| 16:15:16 | FromDiscord | <nervecenter> Systems that are critically important should not be built with brittle tools |
| 16:15:29 | FromDiscord | <abdulrahman.103> sometimes languages have to die and new ones replace them but c++ is not dying anywhere soon with that much c++ code flying around |
| 16:15:50 | FromDiscord | <abdulrahman.103> most tech is built with c/c++ |
| 16:15:57 | FromDiscord | <abdulrahman.103> heck even python |
| 16:16:12 | FromDiscord | <abdulrahman.103> and nim depends on it |
| 16:16:13 | FromDiscord | <abdulrahman.103> too |
| 16:16:29 | FromDiscord | <abdulrahman.103> c is nice |
| 16:16:35 | FromDiscord | <abdulrahman.103> didnt change much |
| 16:16:47 | FromDiscord | <abdulrahman.103> a step above assembly |
| 16:17:01 | FromDiscord | <nervecenter> C has its problems but it has a stable standard in the form of C99, which made it a great compile target for Nim. |
| 16:17:11 | FromDiscord | <nervecenter> C++ is just too damn brittle |
| 16:17:54 | FromDiscord | <abdulrahman.103> In reply to @nervecenter "C has its problems": why did nim use c99 instead of newer standards |
| 16:18:06 | FromDiscord | <abdulrahman.103> compatibility? |
| 16:18:14 | FromDiscord | <abdulrahman.103> for old hardware |
| 16:18:17 | FromDiscord | <nervecenter> Stability and platform compatibility, yeah. You can find a C99 compiler basically anywhere |
| 16:18:41 | FromDiscord | <abdulrahman.103> and it will abstract features on it anyway |
| 16:19:36 | FromDiscord | <nervecenter> Right, I mentioned in my talk that Nim's compiler smooths out C's inconsistencies (all the platform checks done with the preprocessor, etc) within the compiler, so it's nicely under wraps. |
| 16:20:05 | FromDiscord | <abdulrahman.103> what are the uses of nim outputing js |
| 16:20:09 | FromDiscord | <abdulrahman.103> i dont see a use |
| 16:20:18 | FromDiscord | <abdulrahman.103> oh |
| 16:20:19 | FromDiscord | <abdulrahman.103> webapps |
| 16:20:25 | FromDiscord | <abdulrahman.103> yeah |
| 16:20:33 | FromDiscord | <abdulrahman.103> nevermind |
| 16:20:38 | FromDiscord | <nervecenter> I found a small use with a local-first single-page application, worked decently but wasn't the solution we needed |
| 16:20:54 | FromDiscord | <nervecenter> Distributing browser applications as a single html file is underrated |
| 16:20:58 | FromDiscord | <nervecenter> No actual server |
| 16:21:08 | FromDiscord | <abdulrahman.103> In reply to @nervecenter "Distributing browser applications as": never thought of that |
| 16:21:10 | FromDiscord | <gesee37> In reply to @_timurski "I don't use rust": It's far from nim's level. In rust metaprogramming is local and can't access informations about types and implementations like nim |
| 16:22:44 | FromDiscord | <_timurski> ah I see |
| 16:22:52 | FromDiscord | <gesee37> sent a code paste, see https://play.nim-lang.org/#pasty=JginxrTd |
| 16:23:11 | FromDiscord | <gesee37> Without annotations |
| 16:23:33 | FromDiscord | <_timurski> In reply to @determiedmech1 "*object*ively": yes, some types of software are not naturally modeled as being focused around individual objects |
| 16:23:52 | FromDiscord | <DetermiedNim1> object-ively |
| 16:23:55 | FromDiscord | <DetermiedNim1> object |
| 16:23:58 | FromDiscord | <_timurski> oh |
| 16:24:00 | FromDiscord | <DetermiedNim1> lol |
| 16:24:02 | FromDiscord | <_timurski> funjy |
| 16:24:15 | FromDiscord | <_timurski> In reply to @gesee37 "So you see things": inch resting |
| 16:27:02 | * | benson joined #nim |
| 16:27:19 | FromDiscord | <abdulrahman.103> In reply to @_timurski "inch resting": your bio doesnt have a timezone |
| 16:27:43 | FromDiscord | <_timurski> In reply to @abdulrahman.103 "your bio doesnt have": it uses discord time format so it automatically displays correctly for every time zone |
| 16:27:56 | FromDiscord | <_timurski> the times you see are the correct for your timezone |
| 16:28:01 | FromDiscord | <abdulrahman.103> 5:30 to 11:00 |
| 16:28:07 | FromDiscord | <abdulrahman.103> pm, am |
| 16:28:12 | FromDiscord | <abdulrahman.103> 👍 |
| 16:28:39 | FromDiscord | <_timurski> I'm actually abroad rn so it's not accurate |
| 16:28:56 | FromDiscord | <_timurski> but whatever |
| 16:29:36 | FromDiscord | <abdulrahman.103> ive never abroad but one time i was near the borders and the timezone got moved by a few minutes idk how is that even possible |
| 16:29:46 | FromDiscord | <_timurski> interesting |
| 16:29:48 | FromDiscord | <_timurski> very specific |
| 16:55:33 | FromDiscord | <tempestro> wait, what does Nim use to compile C/C++ code on Windows? |
| 16:56:09 | FromDiscord | <tempestro> I haven't touched Windows in a long while, can you just call MSVC in shell like you can GCC? |
| 16:59:24 | FromDiscord | <DetermiedNim1> it just uses msvc afaik |
| 17:01:25 | FromDiscord | <tempestro> I'm trying to figure out if there is some fool-proof way to detect what libraries are installed at compile-time |
| 17:02:17 | FromDiscord | <tempestro> Unless you can do some nasty trickery with FFI imports, I think the only option is to shell out and try to compile some C code that #includes the library |
| 17:04:49 | FromDiscord | <demotomohiro> iirc, Nim uses gcc on Windows in default.↵You can choose other C compiler with `--cc:clang` or `--cc:vcc` compiler option. |
| 17:09:15 | Amun-Ra | tempestro: technically doable via "compiles" |
| 17:09:40 | Amun-Ra | or just use pkg-config |
| 17:12:19 | FromDiscord | <0ffh> In reply to @tvoyglaza "umm.. so it's better": Yes. |
| 17:12:20 | Amun-Ra | I mean via staticexec |
| 17:18:37 | FromDiscord | <a_guy_a> In reply to @abdulrahman.103 "You want google to": yup... isn't that the premise? lol |
| 17:19:15 | FromDiscord | <a_guy_a> even I stated it's not that... |
| 17:19:24 | FromDiscord | <a_guy_a> haha |
| 17:21:29 | * | alexdaguy quit (Quit: WeeChat 4.9.2) |
| 17:22:45 | * | ephapticpulse joined #nim |
| 17:24:20 | Amun-Ra | tempestro: the problem with this approach is the library that exists during the build may not exist during the run |
| 17:24:26 | * | termer quit (Remote host closed the connection) |
| 17:24:41 | * | termer joined #nim |
| 17:24:53 | FromDiscord | <tempestro> this is for running tests only |
| 17:30:47 | FromDiscord | <gesee37> In reply to @demotomohiro "iirc, Nim uses gcc": GCC is a bit buggy on windows so I wouldn't recommend it |
| 17:31:27 | FromDiscord | <gesee37> As windows allows unicode characters in folder/file name |
| 17:32:22 | FromDiscord | <gesee37> GCC's linker fail to understand and interpret them as 2 UTF-8 caracter |
| 17:32:42 | FromDiscord | <gesee37> And then tells you there is no such files |
| 17:33:14 | * | ephapticpulse left #nim (ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)) |
| 17:48:36 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 18:03:11 | FromDiscord | <ronaldinyooo> https://media.discordapp.net/attachments/371759389889003532/1521576849430413473/image.jpg?ex=6a45565e&is=6a4404de&hm=27b5c195c79428fc732e0027389af81dd7359059362e74aac1c50e2215c90542& https://media.discordapp.net/attachments/371759389889003532/1521576849912631386/image.jpg?ex=6a45565e&is=6a4404de&hm=15330aafe4256c6604fd06898735a42d3617bc0322abe9ad76afb61327c7cc4e& |
| 18:10:05 | FromDiscord | <nervecenter> In reply to @gesee37 "GCC is a bit": MinGW's GCC works fine |
| 18:10:22 | FromDiscord | <nervecenter> I've built Nim projects and entire Godot engine templates with it |
| 18:11:03 | FromDiscord | <gesee37> In reply to @gesee37 "GCC's linker fail to": Just buggy in this sense afaik |
| 18:11:53 | FromDiscord | <gesee37> And I can't solve it because there is an unicode character in my root folder -_- |
| 18:30:17 | FromDiscord | <abdulrahman.103> In reply to @demotomohiro "iirc, Nim uses gcc": if i already use visual studio do you recommend switching to gnu or clang? |
| 18:32:12 | FromDiscord | <abdulrahman.103> i have wsl fedora with gcc |
| 18:32:26 | FromDiscord | <abdulrahman.103> i just remembered that |
| 18:33:28 | FromDiscord | <abdulrahman.103> why are realtek wifi cards so bad on linux |
| 18:33:37 | FromDiscord | <abdulrahman.103> i want to use linux but im forced to use microslop windows |
| 18:51:58 | * | Jhonny2x4 quit (Quit: Jhonny2x4) |
| 18:52:14 | * | Jhonny2x4 joined #nim |
| 18:56:50 | FromDiscord | <emiliajssl> In reply to @abdulrahman.103 "if i already use": Clang |
| 19:24:26 | Amun-Ra | I never used msvc/gcc on windows; I always cross compile on linux |
| 19:26:05 | FromDiscord | <a_guy_a> @noynamess what is `=` you mentioned |
| 19:26:13 | FromDiscord | <a_guy_a> you can also use a tool that will make nim use tabs / 4 idents |
| 19:26:25 | FromDiscord | <a_guy_a> the same goes famously for curly brackets `{}` instead of `:` like python that nim has now |
| 19:27:16 | FromDiscord | <a_guy_a> if u r looking for a cool fun project, that might be one for you ! |
| 19:27:26 | FromDiscord | <noynamess> In reply to @a_guy_a "<@1515220361078374432> what is `=`": Regarding functions—it seems Nim is a bit particular; for instance, it doesn't support LSP out of the box in Pacman (at least in my experience), so you have to download it via curl and install the LSP separately. |
| 19:27:48 | FromDiscord | <a_guy_a> yea but that's basic dev stuff |
| 19:27:52 | FromDiscord | <a_guy_a> im not sure why that puts you off |
| 19:28:06 | FromDiscord | <a_guy_a> its like 2 commands to setup the LSP |
| 19:28:39 | FromDiscord | <a_guy_a> n if it does setup claude code or more preferabley chatgpt codex |
| 19:28:46 | FromDiscord | <a_guy_a> and jsut tell it what u want it to setup and itll run the commands ! |
| 19:29:07 | FromDiscord | <noynamess> Okay, I'll think about it and take a look at Nim—I'll let you know if anything comes up. The language itself seems decent; I tried learning Zig and Rust, but they just didn't click with me at all. |
| 19:29:30 | FromDiscord | <a_guy_a> im no low level programmer |
| 19:29:35 | FromDiscord | <a_guy_a> i find working wiht nim very easy |
| 19:29:53 | FromDiscord | <noynamess> In reply to @a_guy_a "im no low level": I am multi programmer ) |
| 19:30:06 | FromDiscord | <noynamess> I usually write about various things. |
| 19:30:08 | FromDiscord | <a_guy_a> except when i found out the js backend code gen is outdated and forces you to write performance ref based code, damnit 👿 |
| 19:30:14 | FromDiscord | <a_guy_a> (edit) "performance" => "performant" |
| 19:30:41 | FromDiscord | <a_guy_a> it wasnt using an ORC/ARC performance boost as far as i understand it |
| 19:30:53 | FromDiscord | <a_guy_a> (edit) "ORC/ARC" => ""ORC/ARC"" |
| 19:31:21 | FromDiscord | <noynamess> I'm actually 15—turning 16 soon—and I've been into IT for about a year; I know Python and a bit of C/C++, but I'm sick of the nonsense that "speed equals suffering." |
| 19:32:00 | FromDiscord | <a_guy_a> why are u using chatgpt to type |
| 19:32:32 | FromDiscord | <a_guy_a> lol |
| 19:32:47 | FromDiscord | <noynamess> In reply to @a_guy_a "why are u using": Sometimes AI, but usually I write it myself. |
| 19:32:58 | FromDiscord | <a_guy_a> — is a dead gpt giveaway... |
| 19:33:09 | FromDiscord | <a_guy_a> ive almost never seen these used on the internet until the past few years when GPT uses them explicilt |
| 19:33:11 | FromDiscord | <a_guy_a> (edit) "explicilt" => "explicilty" |
| 19:33:15 | FromDiscord | <a_guy_a> (edit) "explicilty" => "explicitly" |
| 19:33:22 | FromDiscord | <noynamess> No, I usually use Gemini. |
| 19:33:29 | FromDiscord | <a_guy_a> oh my bad smart ass |
| 19:33:42 | FromDiscord | <a_guy_a> 🖕 |
| 19:33:52 | FromDiscord | <noynamess> ( |
| 19:34:54 | FromDiscord | <DetermiedNim1> sent a code paste, see https://play.nim-lang.org/#pasty=EIaQKpWl |
| 19:34:59 | FromDiscord | <a_guy_a> ah there ya go |
| 19:35:03 | FromDiscord | <noynamess> sent a code paste, see https://play.nim-lang.org/#pasty=UOzgVtHf |
| 19:35:08 | FromDiscord | <a_guy_a> gemini could've helped you with that though |
| 19:35:11 | FromDiscord | <a_guy_a> maybe take the output it tells you |
| 19:35:13 | FromDiscord | <a_guy_a> and feed it back into gemini |
| 19:35:14 | FromDiscord | <DetermiedNim1> what are you using for the lsp plugin |
| 19:35:20 | FromDiscord | <DetermiedNim1> and what editor |
| 19:35:29 | FromDiscord | <noynamess> It kept saying the LSP couldn't be found, so I had to use curl. |
| 19:35:34 | FromDiscord | <noynamess> In reply to @determiedmech1 "and what editor": Zed |
| 19:35:37 | FromDiscord | <DetermiedNim1> what is "it" |
| 19:35:53 | FromDiscord | <DetermiedNim1> In reply to @noynamess "Zed": ah |
| 19:36:23 | FromDiscord | <DetermiedNim1> https://zed.dev/extensions/nim? |
| 19:36:27 | FromDiscord | <DetermiedNim1> (edit) "https://zed.dev/extensions/nim?" => "https://zed.dev/extensions/nim ?" |
| 19:36:55 | FromDiscord | <noynamess> Well, it was reporting that it couldn't find the LSP. |
| 19:37:08 | FromDiscord | <DetermiedNim1> looks like you need nimlangserver |
| 19:37:17 | FromDiscord | <DetermiedNim1> In reply to @noynamess "Well, it was reporting": did it have any other outout? |
| 19:37:21 | FromDiscord | <DetermiedNim1> (edit) "outout?" => "output?" |
| 19:37:22 | FromDiscord | <noynamess> In reply to @determiedmech1 "looks like you need": I know |
| 19:38:26 | FromDiscord | <noynamess> In reply to @determiedmech1 "did it have any": I downloaded Nim a month ago; I've already forgotten what it said. |
| 19:39:18 | FromDiscord | <DetermiedNim1> In reply to @noynamess "I downloaded Nim a": im talking about the extension |
| 19:39:43 | FromDiscord | <noynamess> Like, "nimlangserver not found" or something like that. |
| 19:40:53 | FromDiscord | <DetermiedNim1> and if you run `nimble list --installed | grep server` what happens |
| 19:41:18 | FromDiscord | <DetermiedNim1> well actually thats assuming you use linux cause i have no idea if macos comes with grep |
| 19:41:24 | FromDiscord | <DetermiedNim1> id imagine it does |
| 19:41:35 | FromDiscord | <DetermiedNim1> i dont think windows does 🤔 0 |
| 19:41:35 | FromDiscord | <noynamess> In reply to @determiedmech1 "and if you run": I don't know, I'm not at my PC right now. |
| 19:41:38 | FromDiscord | <DetermiedNim1> ah ok |
| 19:41:41 | FromDiscord | <DetermiedNim1> (edit) removed "0" |
| 19:49:15 | * | termer quit (Remote host closed the connection) |
| 19:50:45 | * | termer joined #nim |
| 20:03:47 | FromDiscord | <abdulrahman.103> In reply to @determiedmech1 "i dont think windows": windows doesnt have gnu tools |
| 20:03:52 | FromDiscord | <abdulrahman.103> you can install them though |
| 20:04:16 | FromDiscord | <abdulrahman.103> instead of powershell |
| 20:04:35 | FromDiscord | <DetermiedNim1> ah |
| 20:04:48 | FromDiscord | <DetermiedNim1> yeah im a linux user so 🤷♂️ |
| 20:04:52 | FromDiscord | <DetermiedNim1> cachyos |
| 20:05:25 | FromDiscord | <abdulrahman.103> In reply to @determiedmech1 "yeah im a linux": i used to be |
| 20:05:39 | FromDiscord | <a_guy_a> WSL rocks |
| 20:05:46 | FromDiscord | <a_guy_a> best of both worlds ! |
| 20:05:48 | FromDiscord | <abdulrahman.103> but then the realtek driver decided to not work anymore |
| 20:05:58 | FromDiscord | <abdulrahman.103> and wifi cards arent available in iraq |
| 20:06:12 | * | benson quit (Quit: Konversation terminated!) |
| 20:06:25 | FromDiscord | <abdulrahman.103> no i wont use ethernet on a laptop just for linux |
| 20:06:30 | FromDiscord | <DetermiedNim1> Lol fair |
| 20:06:36 | FromDiscord | <DetermiedNim1> that sucks |
| 20:06:47 | FromDiscord | <Emmanuel M. Smith 🔸> I used them quite a bit before LLMs, I had to stop because people use them as LLM markers↵(@a_guy_a) |
| 20:07:07 | FromDiscord | <a_guy_a> no shit? |
| 20:07:13 | FromDiscord | <abdulrahman.103> i filed 1 bug report to redhat and 1 to the kernel redhat ignored my and the kernel dev told me to bisect and that didnt work for some reason |
| 20:07:15 | FromDiscord | <abdulrahman.103> git bisect |
| 20:07:18 | FromDiscord | <DetermiedNim1> In reply to @a_guy_a "WSL rocks": I used wsl but i found myself wanting a linuxy experience every time i interacted with windows |
| 20:07:28 | FromDiscord | <a_guy_a> In reply to @Emmanuel M. Smith 🔸 "I used them quite": i always reckoned its not a keyboard button... you gotta go looking right ? |
| 20:07:30 | FromDiscord | <abdulrahman.103> (edit) "i filed 1 bug report to redhat and 1 to the kernel redhat ignored my ... and" added "report" |
| 20:07:42 | FromDiscord | <a_guy_a> or be one of those keyboard nerds with some hotkey ay ? |
| 20:07:50 | FromDiscord | <abdulrahman.103> In reply to @determiedmech1 "I used wsl but": windows isnt bad if you customize it |
| 20:07:57 | FromDiscord | <abdulrahman.103> i disabled automatic updates |
| 20:08:08 | FromDiscord | <abdulrahman.103> and removed as much telemetry as i can |
| 20:08:10 | FromDiscord | <abdulrahman.103> removed edge |
| 20:08:15 | FromDiscord | <abdulrahman.103> removed ads |
| 20:08:19 | FromDiscord | <abdulrahman.103> and now its clean |
| 20:08:29 | FromDiscord | <abdulrahman.103> terminal is now wsl |
| 20:08:36 | FromDiscord | <a_guy_a> as per fireship i did the same with that utility those kids make now |
| 20:08:57 | FromDiscord | <DetermiedNim1> In reply to @abdulrahman.103 "windows isnt bad if": im sure it is |
| 20:09:11 | FromDiscord | <DetermiedNim1> but linux is just easier for what i want to do with it 🤷♂️ |
| 20:09:12 | FromDiscord | <abdulrahman.103> its the most compatible operating system ever |
| 20:09:19 | FromDiscord | <abdulrahman.103> and stable |
| 20:09:22 | FromDiscord | <abdulrahman.103> kinda |
| 20:09:23 | FromDiscord | <abdulrahman.103> kinda |
| 20:09:27 | FromDiscord | <DetermiedNim1> hmm is your name arabic |
| 20:09:31 | FromDiscord | <abdulrahman.103> yeah |
| 20:09:47 | FromDiscord | <a_guy_a> Aenglaeisch |
| 20:09:57 | FromDiscord | <a_guy_a> (edit) |
| 20:10:05 | FromDiscord | <DetermiedNim1> the RTL font makes the name is typing... backwards lol |
| 20:10:14 | FromDiscord | <DetermiedNim1> (edit) "name" => ""name" | "typing..." => "typing..."" |
| 20:11:25 | FromDiscord | <abdulrahman.103> Rtl on internet is not as bad as it was before |
| 20:11:31 | FromDiscord | <DetermiedNim1> https://media.discordapp.net/attachments/371759389889003532/1521609144967368896/Screenshot_20260630_151125_Discord.jpg?ex=6a457472&is=6a4422f2&hm=e9a69102e68e83cb34b63bee35f299ec2f68dd4fbb8c287b8d74010eba0ac8c0& |
| 20:11:39 | FromDiscord | <abdulrahman.103> Arabic was unusable at the start |
| 20:12:09 | FromDiscord | <abdulrahman.103> Now its supported on almost all known websites |
| 20:12:20 | FromDiscord | <abdulrahman.103> There is a bug instagram that bothers me |
| 20:13:02 | FromDiscord | <abdulrahman.103> In |
| 20:13:06 | FromDiscord | <abdulrahman.103> Instagram |
| 20:13:29 | FromDiscord | <abdulrahman.103> Idk why i forget to write words in the middle of my sentences in english |
| 20:15:18 | FromDiscord | <abdulrahman.103> In videogames arabic is usually not supported |
| 20:15:36 | FromDiscord | <abdulrahman.103> Because it needs a different ui |
| 20:16:04 | FromDiscord | <abdulrahman.103> Not neccesarily they can just keep it left aligned or if its centered keep it centered |
| 20:17:07 | FromDiscord | <abdulrahman.103> Japan was smart and made their typing system ltr |
| 20:17:20 | FromDiscord | <abdulrahman.103> But we have too much arabic history to do that |
| 20:18:11 | FromDiscord | <abdulrahman.103> And the letters are connected reversing them isnt possible |
| 20:18:16 | FromDiscord | <abdulrahman.103> ميمينيمبمبمبمبتبزبكيكثتلخلحىجىجقدثزةستؤهرهىحصكص |
| 20:26:35 | Amun-Ra | japan has two writing directions, but only ltr is used for non-paper related stuff |