<< 30-09-2023 >>

00:02:16*Mister_Magister joined #nim
00:14:56FromDiscord<Langosta> I'm not sure I understood your example there
00:22:42*Mister_Magister quit (Quit: bye)
00:28:33FromDiscord<Langosta> In reply to @ravinder387 "how to use .nims": where did you first hear about it?
00:31:17FromDiscord<Langosta> In reply to @ravinder387 "how to use .nims": you said nim c, when you're trying to do nim js
00:31:28FromDiscord<Langosta> if you nim js hello.nim, it works
00:31:34FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4HMq
00:40:14FromDiscord<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:32FromDiscord<Langosta> In reply to @odexine "nim c actually only": Oh, and default backend uses c?
01:31:32FromDiscord<_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:26FromDiscord<_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:39FromDiscord<odexine> The docs disagree with you though?
01:33:45FromDiscord<odexine> In reply to @alendrik "Oh, and default backend": Yes
01:40:56FromDiscord<_gumbercules> the docs disagree with a lot of shit
02:07:17FromDiscord<_gumbercules> the only time I've ever used `cc` is when I want to change what C compiler is invoked
02:07:44FromDiscord<_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:57FromDiscord<_gumbercules> tmk you can't do something like - `nim my_source.nim` - maybe I am wrong though
02:26:28FromDiscord<odexine> C uses the default
02:27:02FromDiscord<odexine> I don’t know why exactly but it helps because other commands like r also use the default
02:27:31FromDiscord<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:01emeryodexine: what do you think about lockfiles?
09:05:05emeryI'm considering converting the nix packaging to use nim package lockfiles, and only packaging the progams, like what is done with Go
09:05:56FromDiscord<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:47emerywell nimble is shit and I'm just going to create the lockfiles with a new utility
09:07:31emeryeverything about nimble is shit
09:10:46emerynimble makes me embarrassed to be using nim
09:21:05FromDiscord<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:27FromDiscord<odexine> i think that's mainly because of how versioning is handled
09:24:25emeryodexine: that's good to hear, I've been talking to the dream2nix guy and he is telling me the same thing
09:24:54FromDiscord<odexine> ah dream2nix ive heard of that and i felt like i liked it a lot
09:25:17emeryrunning 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:44FromDiscord<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:02FromDiscord<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:36FromDiscord<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:43FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#ix=4HO5
09:59:23FromDiscord<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:17FromDiscord<nnsee> oh, wait, it magically starts working once i specify `options={poUsePath}` - is `poEvalCommand` breaking it?
10:12:20FromDiscord<_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:52FromDiscord<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:24FromDiscord<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:52FromDiscord<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:16FromDiscord<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:59FromDiscord<benrob0329> sent a code paste, see https://play.nim-lang.org/#ix=4HP4
14:35:23FromDiscord<benrob0329> (edit) "https://play.nim-lang.org/#ix=4HP4" => "https://play.nim-lang.org/#ix=4HP5"
14:35:56FromDiscord<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:00FromDiscord<benrob0329> (edit) "proceedure?" => "procedure?"
15:23:51*rez quit (Quit: much snoozes...)
16:02:09*azimut quit (Ping timeout: 252 seconds)
16:58:20FromDiscord<Chronos [She/Her]> Rn I'm debating on if I should use stream sockets tbh
16:58:33FromDiscord<Chronos [She/Her]> or well, `socketstreams`
17:12:54*azimut joined #nim
17:26:18FromDiscord<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:08FromDiscord<Chronos [She/Her]> How do I add `runnableExamples` and such to my code?
17:56:20FromDiscord<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:38FromDiscord<aintea> And when I try directly to type the command in my shell, it creates the symlink
18:21:06FromDiscord<.aingel.> Does anyone have some good examples of using hotreloading for a webserver in Nim?
18:25:11FromDiscord<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:50FromDiscord<jmgomez> In reply to @.aingel. "Does anyone have some": hotreloading to skip the start of the server?
18:26:15FromDiscord<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:19FromDiscord<jviega> I mean, it's right on Linux, no clue on Windows.
18:28:34FromDiscord<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:10FromDiscord<.aingel.> In reply to @jmgomez "hotreloading to skip the": Yeah and to only recompile like what was changed partially
18:29:14FromDiscord<.aingel.> In reply to @demotomohiro "Maybe you can become": Maybe!
18:29:40FromDiscord<.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:28FromDiscord<.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:32FromDiscord<jmgomez> how? I mean, for a server I wouldnt bother. I would make it leaner
18:31:09FromDiscord<jmgomez> what they use, dlls?
18:31:14FromDiscord<.aingel.> Ya
18:31:44FromDiscord<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:51FromDiscord<jmgomez> not sure if it's worth it. How long it takes now?
18:33:24FromDiscord<.aingel.> How long does what take
18:33:27FromDiscord<.aingel.> (edit) "take" => "take?"
18:33:34FromDiscord<Chronos [She/Her]> I swear there was a known issue with orc and async?
18:33:52FromDiscord<Chronos [She/Her]> Unless I'm just not remembering it correctly now
18:33:54FromDiscord<jmgomez> In reply to @.aingel. "How long does what": what do you think? 😅 To recompile and restart the server from scratch..
18:34:34FromDiscord<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:44FromDiscord<Chronos [She/Her]> Fair, I haven't experienced it personally so I'm just poking around about it
18:36:23FromDiscord<.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:25FromDiscord<.aingel.> (edit) "to" => "too"
18:36:30FromDiscord<.aingel.> That's quite convenient
18:37:45FromDiscord<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:13FromDiscord<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:19FromDiscord<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:39FromDiscord<jmgomez> lol you first demo 😛
18:40:15FromDiscord<.aingel.> In reply to @demotomohiro "Maybe, writig a program": Yeah that is an idea
18:40:35FromDiscord<.aingel.> In reply to @jmgomez "> it's about": What exactly do you mean by a watcher in this case?
18:40:43FromDiscord<jmgomez> what demo said
18:41:18FromDiscord<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:48FromDiscord<.aingel.> Right
18:41:54FromDiscord<demotomohiro> (edit) "In reply to @.aingel. "Yeah that is an": Or ... shortcut" added "add a"
18:45:44FromDiscord<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:48FromDiscord<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:08FromDiscord<.aingel.> Thank you!
18:51:17FromDiscord<.aingel.> And thanks @demotomohiro
18:51:22FromDiscord<.aingel.> Sorry discord wasn't loading for me for a second
19:12:48FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQ6
19:16:30FromDiscord<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:22FromDiscord<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:49FromDiscord<demotomohiro> (edit) "In reply to @yetiwizard "I'm trying to bind": You probably need to ... right" added "add"
19:18:59FromDiscord<jviega> Generally if you're passing to C, declare with `{.cdecl, exportc.}` at least.
19:19:14FromDiscord<aintea> In reply to @demotomohiro "Is there something wrong": I forgor to put the function outside an if statement 💀
19:19:32FromDiscord<aintea> sorry for being stupid
19:22:56FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQ9
19:24:08FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQc
19:25:32FromDiscord<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:31FromDiscord<demotomohiro> `fwe: proc (text: cstring) {.cdecl.}`
19:27:11FromDiscord<jviega> My understanding is that cdecl is the default c calling convention on the platform
19:29:53FromDiscord<demotomohiro> There are many calling convension on 32bit windows.
19:30:03FromDiscord<yetiwizard> ok so now it does compile, but the compiled code simply says: lua827277od_u36.set_function("print", LuaPrint);↵the & is missing
19:30:15FromDiscord<yetiwizard> so if I call "print" in Lua the program crashes
19:30:26FromDiscord<demotomohiro> In C++, type of callback function can be: https://en.cppreference.com/w/cpp/utility/functional/function
19:31:24FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQe
19:32:08FromDiscord<yetiwizard> In reply to @demotomohiro "In C++, type of": cdecl compiles while stdcall does not
19:32:57FromDiscord<jviega> I am decades away from windows programming, but I think fastcall is the windows default yes
19:33:12FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4HQg
19:35:21FromDiscord<yetiwizard> that's all it says in the manual↵https://sol2.readthedocs.io/en/latest/tutorial/functions.html
19:35:41FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQh
19:40:16FromDiscord<demotomohiro> It just forwarding arguments to set_fx, and real callback type is unknown.
19:42:58FromDiscord<yetiwizard> this sol2.hpp is so cryptic with all of this template metaprogramming stuff
19:43:14FromDiscord<demotomohiro> So it looks like template function and can take any fuction. So calling convension is not important?
19:43:23FromDiscord<yetiwizard> the version with cdecl compiles but crashes when I run the print function in lua
19:43:47FromDiscord<yetiwizard> stdcall or fastcall don't even compile
19:45:59FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQn
19:47:43FromDiscord<yetiwizard> it does compile but there's still a problem somewhere in calling the passed callback, as that's when it crashes
19:48:01FromDiscord<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:13FromDiscord<yetiwizard> with noconv it's the same as cdecl. It compiles but crashes on runtime
19:50:16FromDiscord<Elegantbeef> What's your entire Nim file?
19:51:38FromDiscord<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:25FromDiscord<yetiwizard> omg
19:54:28FromDiscord<yetiwizard> that was it!
19:54:37FromDiscord<yetiwizard> I used import cppstl/std_string
19:54:49FromDiscord<yetiwizard> and CppString instead of cstring for text
19:55:30FromDiscord<yetiwizard> Thank you so much! I was completely blind to that xD
19:57:18FromDiscord<yetiwizard> now I just have a few questions to clean my code up a bit
19:58:08FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQr
20:01:15FromDiscord<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:52FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#ix=4HQy
20:03:22FromDiscord<Elegantbeef> `startProcess`
20:03:24FromDiscord<yetiwizard> In reply to @demotomohiro "https://nim-lang.org/docs/manual.html#foreign-funct": works, thanks! :D
20:04:12FromDiscord<yetiwizard> sent a code paste, see https://play.nim-lang.org/#ix=4HQA
20:05:10FromDiscord<yetiwizard> I tried making a .nimble file with `backend = "cpp"` but the error is still there
20:07:20FromDiscord<leorize> create a `nim.cfg` and puts `backend = "cpp"` there
20:09:28FromDiscord<yetiwizard> it worked after restarting VSCode, thanks a lot!
20:10:32FromDiscord<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:25FromDiscord<yetiwizard> oh true, it works without it but the generated code has name mangling
20:12:58FromDiscord<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:22FromDiscord<yetiwizard> Thanks a lot for the express help y'all! I was already beginning to lose hope 😂
20:15:56FromDiscord<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:33FromDiscord<akopx> sent a code paste, see https://play.nim-lang.org/#ix=4HQW
21:22:42FromDiscord<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:06FromDiscord<my.narco> is there a function to pop from the bottom of a seq?
21:32:25FromDiscord<huantian> is there not one called pop[
21:32:27FromDiscord<huantian> (edit) "pop[" => "pop"
21:32:34FromDiscord<my.narco> yeah but that pops from the top
21:32:38FromDiscord<huantian> oh
21:32:51FromDiscord<huantian> if you're popping from the other end a lot you might want o use a deque instead of a seq
21:33:10FromDiscord<my.narco> In reply to @huantian "if you're popping from": can i convert a seq into a deque?
21:33:42FromDiscord<my.narco> i figured it out
21:33:43FromDiscord<my.narco> thanks
21:33:46FromDiscord<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:08FromDiscord<my.narco> how do you guys think i would implement this in nim?
21:57:09FromDiscord<my.narco> https://media.discordapp.net/attachments/371759389889003532/1157798316462063636/image.png?ex=6519eb35&is=651899b5&hm=03288aab1f9538182bb1e2f3c7e89c8199fdae72c549ddd1592ba072e49c07da&
21:57:50FromDiscord<Elegantbeef> Using an object variant
21:59:07FromDiscord<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:25FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4HR7
22:00:31FromDiscord<my.narco> Oh alright
22:00:35FromDiscord<my.narco> thanks this helps ALOT
22:00:43*rez joined #nim
22:02:55FromDiscord<taperfade> need helpuh
22:02:57FromDiscord<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:24FromDiscord<taperfade> var t = findAll(f, re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}") this is the line that makes the error
22:03:45FromDiscord<taperfade> (edit) "var" => "´´´var" | "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")" => "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")´´"
22:03:45FromDiscord<my.narco> sent a code paste, see https://play.nim-lang.org/#ix=4HR8
22:03:49FromDiscord<taperfade> (edit) "´´´var" => "´´var"
22:03:53FromDiscord<taperfade> (edit) "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")´´ " => "re"[\w-]{24}\.[\w-]{6}\.[\w-]{27}")"
22:03:57FromDiscord<taperfade> (edit) "´´var" => "var"
22:04:05FromDiscord<taperfade> what is noli
22:04:15FromDiscord<my.narco> In reply to @taperfade "what is noli": my language
22:04:16FromDiscord<my.narco> im developing
22:05:57*def- quit (Quit: -)
22:06:19*def- joined #nim
22:06:28FromDiscord<Chronos [She/Her]> If only I could make a language 🥲
22:07:25FromDiscord<leorize2> what's stopping you \:p
22:07:34FromDiscord<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:15FromDiscord<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:18FromDiscord<my.narco> not sure what to do about it
22:08:20FromDiscord<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:38FromDiscord<taperfade>
22:08:46FromDiscord<Chronos [She/Her]> In reply to @my.narco "it seems this type": Try making `NoliNode` a ref object perhaps?
22:08:46FromDiscord<leorize> that looks like invalid unicode↵(@taperfade)
22:08:49FromDiscord<taperfade> idk why but i kinda wna try java again
22:09:06FromDiscord<taperfade> ngl
22:09:06FromDiscord<Chronos [She/Her]> I hate Java, hence the desire for my own JVM lang lol
22:09:07FromDiscord<my.narco> In reply to @chronos.vitaqua "Try making `NoliNode` a": oh this works, what exactly does ref object do?
22:09:27FromDiscord<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:40FromDiscord<leorize> makes it heap-allocated
22:09:53FromDiscord<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:58FromDiscord<my.narco> ah ok
22:10:02FromDiscord<my.narco> thank you!
22:10:11FromDiscord<Chronos [She/Her]> In reply to @leorize "makes it heap-allocated": You have a way with words, my friend xD
22:10:36FromDiscord<leorize> it is a pretty pointer when you think about it
22:11:04FromDiscord<Chronos [She/Her]> Yeah, with a pink bow and all
22:12:14FromDiscord<leorize> you can always just cheat and borrow a language someone else already created↵(@Chronos [She/Her])
22:13:18FromDiscord<Chronos [She/Her]> I already tried making Nim's AST generate JVM byte code :p
22:13:34FromDiscord<Chronos [She/Her]> I got to a certain point and stopped aha
22:15:51FromDiscord<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:43FromDiscord<Elegantbeef> https://nim-lang.org/docs/httpclient.html#request%2CHttpClient%2C%2Cstring%2CHttpHeaders%2CMultipartData
22:27:44FromDiscord<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:29FromDiscord<taperfade> Error: unhandled exception: C:\Users\morbo\.nimble\pkgs2\regex-0.21.0-3e6b482026bcd9113b0e05026d641248e6c51709\regex\nfafindall.nim(235, 5) `i > i2` [AssertionDefect]
23:08:38FromDiscord<taperfade> im going insane
23:19:24*antranigv joined #nim
23:36:56FromDiscord<Tommy_plug> sent a long message, see http://ix.io/4HRt
23:37:25FromDiscord<Elegantbeef> Really gotta appreciate the drug spam
23:37:48FromDiscord<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