00:02:16 | * | Mister_Magister joined #nim |
00:14:56 | FromDiscord | <Langosta> I'm not sure I understood your example there |
00:22:42 | * | Mister_Magister quit (Quit: bye) |
00:28:33 | FromDiscord | <Langosta> In reply to @ravinder387 "how to use .nims": where did you first hear about it? |
00:31:17 | FromDiscord | <Langosta> In reply to @ravinder387 "how to use .nims": you said nim c, when you're trying to do nim js |
00:31:28 | FromDiscord | <Langosta> if you nim js hello.nim, it works |
00:31:34 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4HMq |
00:40:14 | FromDiscord | <odexine> In reply to @alendrik "you said nim c,": nim c actually only means compile with the default backend IIRC. Forcing c would be nim cc |
00:53:43 | * | Mister_Magister joined #nim |
01:30:32 | FromDiscord | <Langosta> In reply to @odexine "nim c actually only": Oh, and default backend uses c? |
01:31:32 | FromDiscord | <_gumbercules> there really is no default compiler backend - `nim c` means invoke the Nim compielr and have it generate C code and then invoke the system's C compiler |
01:32:26 | FromDiscord | <_gumbercules> `nim cpp` or `nim js` do a similar thing but generate C++/JS respectively and then (in the case of C++ anyway) invoke the C++ compiler |
01:33:39 | FromDiscord | <odexine> The docs disagree with you though? |
01:33:45 | FromDiscord | <odexine> In reply to @alendrik "Oh, and default backend": Yes |
01:40:56 | FromDiscord | <_gumbercules> the docs disagree with a lot of shit |
02:07:17 | FromDiscord | <_gumbercules> the only time I've ever used `cc` is when I want to change what C compiler is invoked |
02:07:44 | FromDiscord | <_gumbercules> so maybe that's the confusion? that or I'm just wrong - but it would seem really weird to me that a default backend existed but we always have to specify the backend |
02:07:57 | FromDiscord | <_gumbercules> tmk you can't do something like - `nim my_source.nim` - maybe I am wrong though |
02:26:28 | FromDiscord | <odexine> C uses the default |
02:27:02 | FromDiscord | <odexine> I don’t know why exactly but it helps because other commands like r also use the default |
02:27:31 | FromDiscord | <odexine> Default backend can be changed with the backend flag |
03:07:36 | * | mako52 joined #nim |
03:10:48 | * | mako52 quit (Client Quit) |
04:09:43 | * | azimut quit (Ping timeout: 252 seconds) |
08:14:20 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
08:16:11 | * | xutaxkamay joined #nim |
09:01:01 | emery | odexine: what do you think about lockfiles? |
09:05:05 | emery | I'm considering converting the nix packaging to use nim package lockfiles, and only packaging the progams, like what is done with Go |
09:05:56 | FromDiscord | <odexine> i believe ive heard qualms about the lockfile format being used in nimble, but i dont remember if they are still valid |
09:06:47 | emery | well nimble is shit and I'm just going to create the lockfiles with a new utility |
09:07:31 | emery | everything about nimble is shit |
09:10:46 | emery | nimble makes me embarrassed to be using nim |
09:21:05 | FromDiscord | <odexine> i think that nix shouldnt really be packaging library code since currently the design does not really fit? if that makes sense; it feels like how nix is currently used works better with just binaries |
09:21:27 | FromDiscord | <odexine> i think that's mainly because of how versioning is handled |
09:24:25 | emery | odexine: that's good to hear, I've been talking to the dream2nix guy and he is telling me the same thing |
09:24:54 | FromDiscord | <odexine> ah dream2nix ive heard of that and i felt like i liked it a lot |
09:25:17 | emery | running library tests is nice, it'll be a bit of work but we can still do it if the libaries are only in lockfiles |
09:49:44 | FromDiscord | <jhonxz> In reply to @frobnicate "I'm trying to figure": https://github.com/kivy/python-for-android A sister project from Kivy does that. It builds APK with sizes around 18MB using Python 3.10 and the most supported backend is SDL2. In Kivy you can call native Android APIs like cameraX using Pyjnius again a sister project. |
09:57:02 | FromDiscord | <Phil> If anybody wants to read docs on how to wrap gtk widgets for owlkettle and provide some feedback it would be appreciated:↵https://github.com/can-lehmann/owlkettle/blob/a9650769fdb1ce3ed163a40dbc84cf62e57f39a9/book/internals/wrap_gtk_widget.nim↵↵The easier this makes it for folks to feel like adding a Gtk Widget themselves and contributing that to owlkettle the better. |
09:57:36 | FromDiscord | <Phil> (edit) "If anybody wants to read docs on how to wrap gtk widgets for owlkettle and provide some feedback it would be appreciated:↵https://github.com/can-lehmann/owlkettle/blob/a9650769fdb1ce3ed163a40dbc84cf62e57f39a9/book/internals/wrap_gtk_widget.nim↵↵The easier this makes it for folks to feel like adding" => "sent" | "Gtk Widget themselves and contributing that to owlkettle the better." => "long message, see http://ix.io/4HO4" |
09:58:43 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#ix=4HO5 |
09:59:23 | FromDiscord | <nnsee> as far as I can see, I'm using it correctly: https://nim-lang.org/docs/osproc.html#execProcess%2Cstring%2Cstring%2CopenArray%5Bstring%5D%2CStringTableRef%2Cset%5BProcessOption%5D |
10:01:17 | FromDiscord | <nnsee> oh, wait, it magically starts working once i specify `options={poUsePath}` - is `poEvalCommand` breaking it? |
10:12:20 | FromDiscord | <_nenc> yes, i think you need at least `options={}` to make args work |
10:16:30 | * | def- quit (Quit: -) |
10:16:45 | * | def- joined #nim |
10:16:52 | FromDiscord | <starkiller1493> I just put the args in the command string 🤷🏻 |
10:44:30 | * | Mister_Magister quit (Quit: bye) |
10:49:05 | * | Mister_Magister joined #nim |
11:58:48 | * | gooba_ joined #nim |
11:59:23 | * | gooba quit (Ping timeout: 258 seconds) |
12:24:15 | * | alphacen1 quit (Quit: WeeChat 4.0.5) |
12:26:57 | * | alphacentauri joined #nim |
12:28:24 | FromDiscord | <aintea> Do you guys know if it's possible to create a symbolic link in nim ?↵For example, I want to have a `some/directory/symbolic_link` pointing to `/tmp/test_folder`, how should I do ? |
12:30:52 | FromDiscord | <vindaar> https://nim-lang.github.io/Nim/symlinks.html#createSymlink,Path,Path↵is probably imported/exported by `os` |
13:16:43 | * | alphacentauri quit (Quit: WeeChat 4.0.5) |
13:58:16 | * | azimut joined #nim |
14:07:16 | FromDiscord | <ts_mezo> just a question, but for the `nimble build` command, is there a way to specify build output directory? |
14:34:11 | * | rez joined #nim |
14:34:59 | FromDiscord | <benrob0329> sent a code paste, see https://play.nim-lang.org/#ix=4HP4 |
14:35:23 | FromDiscord | <benrob0329> (edit) "https://play.nim-lang.org/#ix=4HP4" => "https://play.nim-lang.org/#ix=4HP5" |
14:35:56 | FromDiscord | <benrob0329> I'm new to Nim, but it looks like it's assigning the procedure to the variable, rather than the output of the proceedure? |
14:36:00 | FromDiscord | <benrob0329> (edit) "proceedure?" => "procedure?" |
15:23:51 | * | rez quit (Quit: much snoozes...) |
16:02:09 | * | azimut quit (Ping timeout: 252 seconds) |
16:58:20 | FromDiscord | <Chronos [She/Her]> Rn I'm debating on if I should use stream sockets tbh |
16:58:33 | FromDiscord | <Chronos [She/Her]> or well, `socketstreams` |
17:12:54 | * | azimut joined #nim |
17:26:18 | FromDiscord | <Chronos [She/Her]> Question: Does async + orc only leak with Nim's allocator, or it is just orc being faulty for now? And is `refc` suitable in that case? |
17:35:08 | FromDiscord | <Chronos [She/Her]> How do I add `runnableExamples` and such to my code? |
17:56:20 | FromDiscord | <aintea> In reply to @vindaar "https://nim-lang.github.io/Nim/symlinks.html#create": Looks like it doesn't work, no errors so I guess it isn't because it has no permissions, but then why doesn't it work ? |
17:56:38 | FromDiscord | <aintea> And when I try directly to type the command in my shell, it creates the symlink |
18:21:06 | FromDiscord | <.aingel.> Does anyone have some good examples of using hotreloading for a webserver in Nim? |
18:25:11 | FromDiscord | <jmgomez> In reply to @chronos.vitaqua "Question: Does async +": > async + orc only leak with Nim's allocator↵what? It shouldnt leak. Is there an issue to backup what you are affirming here? |
18:25:50 | FromDiscord | <jmgomez> In reply to @.aingel. "Does anyone have some": hotreloading to skip the start of the server? |
18:26:15 | FromDiscord | <demotomohiro> In reply to @aintea "Looks like it doesn't": Is there something wrong here?↵https://github.com/nim-lang/Nim/blob/devel/lib/std/private/ossymlinks.nim#L36↵https://man7.org/linux/man-pages/man2/symlink.2.html |
18:28:19 | FromDiscord | <jviega> I mean, it's right on Linux, no clue on Windows. |
18:28:34 | FromDiscord | <demotomohiro> In reply to @.aingel. "Does anyone have some": Maybe you can become first person who wrote good examoles of using hcl for webserver. |
18:29:10 | FromDiscord | <.aingel.> In reply to @jmgomez "hotreloading to skip the": Yeah and to only recompile like what was changed partially |
18:29:14 | FromDiscord | <.aingel.> In reply to @demotomohiro "Maybe you can become": Maybe! |
18:29:40 | FromDiscord | <.aingel.> In reply to @jmgomez "hotreloading to skip the": Nimja does this a bit, or there is an example of it, and it does work but I ran into some issues with it |
18:30:28 | FromDiscord | <.aingel.> https://github.com/enthus1ast/nimja/blob/master/examples/hcr/hcrex.nim↵https://github.com/enthus1ast/nimja/blob/master/src/nimja/hcrutils.nim |
18:30:32 | FromDiscord | <jmgomez> how? I mean, for a server I wouldnt bother. I would make it leaner |
18:31:09 | FromDiscord | <jmgomez> what they use, dlls? |
18:31:14 | FromDiscord | <.aingel.> Ya |
18:31:44 | FromDiscord | <jmgomez> yeah, what I said. I have a dll system in NUE that works pretty well but because I have a decent plugin system |
18:32:51 | FromDiscord | <jmgomez> not sure if it's worth it. How long it takes now? |
18:33:24 | FromDiscord | <.aingel.> How long does what take |
18:33:27 | FromDiscord | <.aingel.> (edit) "take" => "take?" |
18:33:34 | FromDiscord | <Chronos [She/Her]> I swear there was a known issue with orc and async? |
18:33:52 | FromDiscord | <Chronos [She/Her]> Unless I'm just not remembering it correctly now |
18:33:54 | FromDiscord | <jmgomez> In reply to @.aingel. "How long does what": what do you think? 😅 To recompile and restart the server from scratch.. |
18:34:34 | FromDiscord | <jmgomez> In reply to @chronos.vitaqua "I swear there was": maybe, but first time I heard about it that's why I asked if there is an issue |
18:35:44 | FromDiscord | <Chronos [She/Her]> Fair, I haven't experienced it personally so I'm just poking around about it |
18:36:23 | FromDiscord | <.aingel.> In reply to @jmgomez "what do you think?": Oh, well it's more than just that, it's about the automatic compile retrigger that happens to |
18:36:25 | FromDiscord | <.aingel.> (edit) "to" => "too" |
18:36:30 | FromDiscord | <.aingel.> That's quite convenient |
18:37:45 | FromDiscord | <jviega> I've been meaning to spend time trying to get some more testing in, enough to get to bug reports, but we waited forever to switch to nim 2 because depending on platform things never compiled or never ran far w/ orc. Same does still happen, so we still use refc, but never have diagnosed. |
18:39:13 | FromDiscord | <demotomohiro> In reply to @.aingel. "Oh, well it's more": Maybe, writig a program that monitor source and if file change was detected, automatically kill the sever, rebuild and run, might be easier. |
18:39:19 | FromDiscord | <jmgomez> In reply to @.aingel. "Oh, well it's more": > it's about the automatic compile retrigger that happens too ↵you can get away with it with a watcher. I mean, it is not difficult to do, but it takes time |
18:39:39 | FromDiscord | <jmgomez> lol you first demo 😛 |
18:40:15 | FromDiscord | <.aingel.> In reply to @demotomohiro "Maybe, writig a program": Yeah that is an idea |
18:40:35 | FromDiscord | <.aingel.> In reply to @jmgomez "> it's about": What exactly do you mean by a watcher in this case? |
18:40:43 | FromDiscord | <jmgomez> what demo said |
18:41:18 | FromDiscord | <demotomohiro> In reply to @.aingel. "Yeah that is an": Or shortcut key to your editor that do saving files, rebuild and restart server. |
18:41:25 | * | alphacentauri joined #nim |
18:41:48 | FromDiscord | <.aingel.> Right |
18:41:54 | FromDiscord | <demotomohiro> (edit) "In reply to @.aingel. "Yeah that is an": Or ... shortcut" added "add a" |
18:45:44 | FromDiscord | <demotomohiro> https://gist.github.com/demotomohiro/8cfe667d80a41de2dc6f4e8d1186c7b3↵I wrote an example code to use inotify before. That might helps you to detect file change.↵But it works only on Linux. |
18:50:48 | FromDiscord | <jmgomez> If it helps this here https://github.com/jmgomez/NimForUE/blob/8945c982953239c205d3e8dcf3287320fcc5ea93/src/hostnimforue/hostwatcher.nim#L53↵Looks for dlls (when the user produces a new one) and nimscript files (for hotreloading when the user changes a NimScript file) |
18:51:08 | FromDiscord | <.aingel.> Thank you! |
18:51:17 | FromDiscord | <.aingel.> And thanks @demotomohiro |
18:51:22 | FromDiscord | <.aingel.> Sorry discord wasn't loading for me for a second |
19:12:48 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQ6 |
19:16:30 | FromDiscord | <demotomohiro> In reply to @yetiwizard "I'm trying to bind": In your Nim code, you are passing a closure that is different from function pointer. |
19:18:22 | FromDiscord | <demotomohiro> In reply to @yetiwizard "I'm trying to bind": You probably need to right calling convension to the type of `fwe` parameter. |
19:18:49 | FromDiscord | <demotomohiro> (edit) "In reply to @yetiwizard "I'm trying to bind": You probably need to ... right" added "add" |
19:18:59 | FromDiscord | <jviega> Generally if you're passing to C, declare with `{.cdecl, exportc.}` at least. |
19:19:14 | FromDiscord | <aintea> In reply to @demotomohiro "Is there something wrong": I forgor to put the function outside an if statement 💀 |
19:19:32 | FromDiscord | <aintea> sorry for being stupid |
19:22:56 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQ9 |
19:24:08 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQc |
19:25:32 | FromDiscord | <demotomohiro> In reply to @yetiwizard "ok, so I changed": You also need to change importcpp part.↵And better to read the manual or header file to make sure that cdecl is right calling convension. |
19:26:31 | FromDiscord | <demotomohiro> `fwe: proc (text: cstring) {.cdecl.}` |
19:27:11 | FromDiscord | <jviega> My understanding is that cdecl is the default c calling convention on the platform |
19:29:53 | FromDiscord | <demotomohiro> There are many calling convension on 32bit windows. |
19:30:03 | FromDiscord | <yetiwizard> ok so now it does compile, but the compiled code simply says: lua827277od_u36.set_function("print", LuaPrint);↵the & is missing |
19:30:15 | FromDiscord | <yetiwizard> so if I call "print" in Lua the program crashes |
19:30:26 | FromDiscord | <demotomohiro> In C++, type of callback function can be: https://en.cppreference.com/w/cpp/utility/functional/function |
19:31:24 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQe |
19:32:08 | FromDiscord | <yetiwizard> In reply to @demotomohiro "In C++, type of": cdecl compiles while stdcall does not |
19:32:57 | FromDiscord | <jviega> I am decades away from windows programming, but I think fastcall is the windows default yes |
19:33:12 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4HQg |
19:35:21 | FromDiscord | <yetiwizard> that's all it says in the manual↵https://sol2.readthedocs.io/en/latest/tutorial/functions.html |
19:35:41 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQh |
19:40:16 | FromDiscord | <demotomohiro> It just forwarding arguments to set_fx, and real callback type is unknown. |
19:42:58 | FromDiscord | <yetiwizard> this sol2.hpp is so cryptic with all of this template metaprogramming stuff |
19:43:14 | FromDiscord | <demotomohiro> So it looks like template function and can take any fuction. So calling convension is not important? |
19:43:23 | FromDiscord | <yetiwizard> the version with cdecl compiles but crashes when I run the print function in lua |
19:43:47 | FromDiscord | <yetiwizard> stdcall or fastcall don't even compile |
19:45:59 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQn |
19:47:43 | FromDiscord | <yetiwizard> it does compile but there's still a problem somewhere in calling the passed callback, as that's when it crashes |
19:48:01 | FromDiscord | <demotomohiro> In reply to @yetiwizard "the version with cdecl": How about to use `noconv`. It doesnt specify calling convension in generated code. So it should define a function similator to the function on that tutorial page. |
19:49:13 | FromDiscord | <yetiwizard> with noconv it's the same as cdecl. It compiles but crashes on runtime |
19:50:16 | FromDiscord | <Elegantbeef> What's your entire Nim file? |
19:51:38 | FromDiscord | <demotomohiro> In reply to @yetiwizard "that's all it says": Ssmple code in that tutorial uses std::string. Does that library supports C string?↵Maybe try a function that takes only int. |
19:54:25 | FromDiscord | <yetiwizard> omg |
19:54:28 | FromDiscord | <yetiwizard> that was it! |
19:54:37 | FromDiscord | <yetiwizard> I used import cppstl/std_string |
19:54:49 | FromDiscord | <yetiwizard> and CppString instead of cstring for text |
19:55:30 | FromDiscord | <yetiwizard> Thank you so much! I was completely blind to that xD |
19:57:18 | FromDiscord | <yetiwizard> now I just have a few questions to clean my code up a bit |
19:58:08 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQr |
20:01:15 | FromDiscord | <demotomohiro> https://nim-lang.org/docs/manual.html#foreign-function-interface-varargs-pragma↵It looks like varargs for C, but I dont know if it works for C++ template things. |
20:02:52 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#ix=4HQy |
20:03:22 | FromDiscord | <Elegantbeef> `startProcess` |
20:03:24 | FromDiscord | <yetiwizard> In reply to @demotomohiro "https://nim-lang.org/docs/manual.html#foreign-funct": works, thanks! :D |
20:04:12 | FromDiscord | <yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQA |
20:05:10 | FromDiscord | <yetiwizard> I tried making a .nimble file with `backend = "cpp"` but the error is still there |
20:07:20 | FromDiscord | <leorize> create a `nim.cfg` and puts `backend = "cpp"` there |
20:09:28 | FromDiscord | <yetiwizard> it worked after restarting VSCode, thanks a lot! |
20:10:32 | FromDiscord | <demotomohiro> I dont think you need to add exportcpp pragma if that proc is callback fun tion.↵Nim generates functions with name in Nim code and hash value.↵With exportc or exportcpp pragma, Nim generate a function with same name to the proc in Nim code so that you can easily call them from C or C++ code. |
20:12:25 | FromDiscord | <yetiwizard> oh true, it works without it but the generated code has name mangling |
20:12:58 | FromDiscord | <yetiwizard> so basically adding {.cdecl.} made it compile and using std::string instead of cstring made it work |
20:13:41 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
20:14:22 | FromDiscord | <yetiwizard> Thanks a lot for the express help y'all! I was already beginning to lose hope 😂 |
20:15:56 | FromDiscord | <user2m> In reply to @Elegantbeef "`startProcess`": that worked thank you! |
20:22:59 | * | antranigv joined #nim |
20:36:03 | * | azimut quit (Ping timeout: 252 seconds) |
20:44:14 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
20:47:14 | * | azimut joined #nim |
20:49:13 | * | antranigv joined #nim |
21:19:55 | * | LuxuryMode joined #nim |
21:22:33 | FromDiscord | <akopx> sent a code paste, see https://play.nim-lang.org/#ix=4HQW |
21:22:42 | FromDiscord | <akopx> https://media.discordapp.net/attachments/371759389889003532/1157789642117107947/arraymancer-2.svg?ex=6519e321&is=651891a1&hm=ae2f35206fc85983efeef4fe5185722bebc2cf11785aa26ded8ff61851131135& |
21:28:19 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
21:29:09 | * | antranigv joined #nim |
21:32:06 | FromDiscord | <my.narco> is there a function to pop from the bottom of a seq? |
21:32:25 | FromDiscord | <huantian> is there not one called pop[ |
21:32:27 | FromDiscord | <huantian> (edit) "pop[" => "pop" |
21:32:34 | FromDiscord | <my.narco> yeah but that pops from the top |
21:32:38 | FromDiscord | <huantian> oh |
21:32:51 | FromDiscord | <huantian> if you're popping from the other end a lot you might want o use a deque instead of a seq |
21:33:10 | FromDiscord | <my.narco> In reply to @huantian "if you're popping from": can i convert a seq into a deque? |
21:33:42 | FromDiscord | <my.narco> i figured it out |
21:33:43 | FromDiscord | <my.narco> thanks |
21:33:46 | FromDiscord | <michaelb.eth> In reply to @my.narco "can i convert a": https://nim-lang.org/docs/deques.html |
21:51:02 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
21:57:08 | FromDiscord | <my.narco> how do you guys think i would implement this in nim? |
21:57:09 | FromDiscord | <my.narco> https://media.discordapp.net/attachments/371759389889003532/1157798316462063636/image.png?ex=6519eb35&is=651899b5&hm=03288aab1f9538182bb1e2f3c7e89c8199fdae72c549ddd1592ba072e49c07da& |
21:57:50 | FromDiscord | <Elegantbeef> Using an object variant |
21:59:07 | FromDiscord | <my.narco> In reply to @Elegantbeef "Using an object variant": how would i use those to implement this exactly? |
21:59:29 | * | antranigv joined #nim |
22:00:25 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4HR7 |
22:00:31 | FromDiscord | <my.narco> Oh alright |
22:00:35 | FromDiscord | <my.narco> thanks this helps ALOT |
22:00:43 | * | rez joined #nim |
22:02:55 | FromDiscord | <taperfade> need helpuh |
22:02:57 | FromDiscord | <taperfade> Error: unhandled exception: C:\Users\userlol\.nimble\pkgs2\unicodedb-0.12.0-4452416471e2fe8726eb6070ed6ea7368171cc09\unicodedb\types.nim(23, 3) `cp.int <= 0x0010FFFF` [AssertionDefect]↵Error: execution of an external program failed: 'c:\Users\literallyme\Desktop\Programming\goober\wawa\wee.exe' |
22:03:24 | FromDiscord | <taperfade> var t = findAll(f, re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}") this is the line that makes the error |
22:03:45 | FromDiscord | <taperfade> (edit) "var" => "´´´var" | "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")" => "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")´´" |
22:03:45 | FromDiscord | <my.narco> sent a code paste, see https://play.nim-lang.org/#ix=4HR8 |
22:03:49 | FromDiscord | <taperfade> (edit) "´´´var" => "´´var" |
22:03:53 | FromDiscord | <taperfade> (edit) "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")´´ " => "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")" |
22:03:57 | FromDiscord | <taperfade> (edit) "´´var" => "var" |
22:04:05 | FromDiscord | <taperfade> what is noli |
22:04:15 | FromDiscord | <my.narco> In reply to @taperfade "what is noli": my language |
22:04:16 | FromDiscord | <my.narco> im developing |
22:05:57 | * | def- quit (Quit: -) |
22:06:19 | * | def- joined #nim |
22:06:28 | FromDiscord | <Chronos [She/Her]> If only I could make a language 🥲 |
22:07:25 | FromDiscord | <leorize2> what's stopping you \:p |
22:07:34 | FromDiscord | <Chronos [She/Her]> In reply to @taperfade "Error: unhandled exception: C:\Users\userlol\.nimbl": An `AssertionDefect` means that a statement in your code isn't true, no idea about the full issue tho |
22:08:15 | FromDiscord | <my.narco> In reply to @my.narco "it seems this type": still about this, recursive object variants arent possible? this kinda ruins my idea completely |
22:08:18 | FromDiscord | <my.narco> not sure what to do about it |
22:08:20 | FromDiscord | <Chronos [She/Her]> In reply to @leorize2 "what's stopping you \:p": Myself :p↵↵I want to make a JVM language but actually doing so is just sapping energy and the parser is something I can't get to solely bc I want to do it right |
22:08:38 | FromDiscord | <taperfade> |
22:08:46 | FromDiscord | <Chronos [She/Her]> In reply to @my.narco "it seems this type": Try making `NoliNode` a ref object perhaps? |
22:08:46 | FromDiscord | <leorize> that looks like invalid unicode↵(@taperfade) |
22:08:49 | FromDiscord | <taperfade> idk why but i kinda wna try java again |
22:09:06 | FromDiscord | <taperfade> ngl |
22:09:06 | FromDiscord | <Chronos [She/Her]> I hate Java, hence the desire for my own JVM lang lol |
22:09:07 | FromDiscord | <my.narco> In reply to @chronos.vitaqua "Try making `NoliNode` a": oh this works, what exactly does ref object do? |
22:09:27 | FromDiscord | <my.narco> In reply to @chronos.vitaqua "I hate Java, hence": i made my own vm, and im writing a compiler to compile to my vms bytecode :D |
22:09:40 | FromDiscord | <leorize> makes it heap-allocated |
22:09:53 | FromDiscord | <Chronos [She/Her]> It means that by default, the object is stored as a reference to the underlying struct, think of it like a pointer but wrapped pretty |
22:09:58 | FromDiscord | <my.narco> ah ok |
22:10:02 | FromDiscord | <my.narco> thank you! |
22:10:11 | FromDiscord | <Chronos [She/Her]> In reply to @leorize "makes it heap-allocated": You have a way with words, my friend xD |
22:10:36 | FromDiscord | <leorize> it is a pretty pointer when you think about it |
22:11:04 | FromDiscord | <Chronos [She/Her]> Yeah, with a pink bow and all |
22:12:14 | FromDiscord | <leorize> you can always just cheat and borrow a language someone else already created↵(@Chronos [She/Her]) |
22:13:18 | FromDiscord | <Chronos [She/Her]> I already tried making Nim's AST generate JVM byte code :p |
22:13:34 | FromDiscord | <Chronos [She/Her]> I got to a certain point and stopped aha |
22:15:51 | FromDiscord | <ebahie> sent a code paste, see https://play.nim-lang.org/#ix=4HR9 |
22:20:25 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
22:22:12 | * | antranigv joined #nim |
22:22:15 | * | def- quit (Quit: -) |
22:22:57 | * | def- joined #nim |
22:27:43 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/httpclient.html#request%2CHttpClient%2C%2Cstring%2CHttpHeaders%2CMultipartData |
22:27:44 | FromDiscord | <Elegantbeef> is there a reason you don't use this? |
23:00:01 | * | marcus quit (Remote host closed the connection) |
23:00:44 | * | marcus joined #nim |
23:03:56 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
23:08:29 | FromDiscord | <taperfade> Error: unhandled exception: C:\Users\morbo\.nimble\pkgs2\regex-0.21.0-3e6b482026bcd9113b0e05026d641248e6c51709\regex\nfafindall.nim(235, 5) `i > i2` [AssertionDefect] |
23:08:38 | FromDiscord | <taperfade> im going insane |
23:19:24 | * | antranigv joined #nim |
23:36:56 | FromDiscord | <Tommy_plug> sent a long message, see http://ix.io/4HRt |
23:37:25 | FromDiscord | <Elegantbeef> Really gotta appreciate the drug spam |
23:37:48 | FromDiscord | <Elegantbeef> "These people won't know what Shrooms or weed are, but they will know what Carts, Molly are." |
23:41:49 | * | antranigv quit (Quit: ZNC 1.8.2 - https://znc.in) |
23:43:20 | * | rez quit (Quit: much snoozes...) |
23:45:22 | * | antranigv joined #nim |