<< 10-04-2023 >>

00:03:15FromDiscord<Elegantbeef> @elcritch\: sooo is ants on 2.0 now? 😄
00:29:20FromDiscord<System64 ~ Flandre Scarlet> In reply to @Elegantbeef "Of course they're pointer": and is that much slower than normal proc?
00:29:58FromDiscord<Elegantbeef> Well pointer procs can be slightly slower than normal proc calls
00:30:22FromDiscord<Elegantbeef> Closures also have the environment that needs to be handled, but one generally only needs to care about performance of this stuff if it's a hotpath
00:30:23FromDiscord<System64 ~ Flandre Scarlet> Ah alright
00:30:31FromDiscord<Elegantbeef> The one thing that's not shown is the memory consumption
00:30:39FromDiscord<Elegantbeef> In theory the sequtils should eat the most memory
00:31:58FromDiscord<System64 ~ Flandre Scarlet> This is good to know↵but operations on sequences are usually quite demanding I think
00:32:23FromDiscord<Elegantbeef> They're not
00:32:23FromDiscord<Elegantbeef> The costly part is the copy
00:32:24FromDiscord<Elegantbeef> Iterating over a sequence is cheap
00:32:25FromDiscord<Elegantbeef> Copying a sequence is expensive
00:55:07FromDiscord<System64 ~ Flandre Scarlet> Makes sense
01:03:22FromDiscord<elcritch> In reply to @Elegantbeef "<@703717429230174229>\: sooo is ants": haha, I think so? I ended up buying myself a 4k TV for a monitor rather than starring at a tiny laptop screen and so didn't play too much with it. But it seems to be good!
01:05:50FromDiscord<Dudugz> In reply to @Elegantbeef "Copying a sequence is": Glad i'm not copying then
01:09:52FromDiscord<Chronos [She/Her]> Hm I should work on making a game for the wasm4 console in Nim as a small fun project to kill time
01:10:23FromDiscord<Chronos [She/Her]> (Chat platform has hit a roadblock because shitty python code and needing a port to Nim which I'm doing slowly)
01:13:58*nanxiao joined #nim
01:25:33*ltriant quit (Ping timeout: 255 seconds)
02:06:07FromDiscord<Chronos [She/Her]> How does compiling to the 'any' platform work?
02:26:00*nanxiao quit (Quit: Client closed)
02:46:49*nanxiao joined #nim
02:48:42FromDiscord<Chronos [She/Her]> :p
02:57:04FromDiscord<demotomohiro> Are you asking about `--os:any` compiler option?
02:57:11FromDiscord<Chronos [She/Her]> Yeah
02:57:24FromDiscord<Chronos [She/Her]> I've seen that apparently it could in theory be used for OS dev?
02:57:39FromDiscord<demotomohiro> It seems that option is for platforms that doesn't have OS.
02:58:21FromDiscord<demotomohiro> I think it can be used for OS dev.
02:58:36FromDiscord<Chronos [She/Her]> In reply to @demotomohiro "It seems that option": And that'd mean I'd have to write functions that could load the code myself?
02:59:44FromDiscord<demotomohiro> As far as I know, you dont need to write such functions on raspberry pi pico.
03:00:10FromDiscord<Chronos [She/Her]> Fair
03:00:30FromDiscord<Chronos [She/Her]> I was thinking of making an OS that focuses heavily on integrating WASM
03:00:39FromDiscord<Chronos [She/Her]> Mainly because I have the attention span of a fly
03:00:44FromDiscord<demotomohiro> Maybe if you use boot loader like U-Boot or Grub, these program load your OS.
03:04:55FromDiscord<Chronos [She/Her]> You'd still need an entry point I believe
03:05:18FromDiscord<user2m> In reply to @demotomohiro "You dont. You cannot": Do you have nay hints as to why I could be getting a segfault?
03:13:23FromDiscord<demotomohiro> In reply to @user2m "Do you have nay": It seems SIGSEGV Error happened in `$`(JsonNode) but I don't know what causing that error.↵How about to try latest stable version Nim (1.6.12)?
03:14:10FromDiscord<Rika> It’s probably from within the all function
03:14:16FromDiscord<Chronos [She/Her]> In reply to @user2m "Do you have nay": JsonNode may be nil?
03:14:19FromDiscord<Rika> When you index the database variable maybe
03:14:23FromDiscord<Rika> Yes
03:16:24FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#ix=4t5H
03:16:51FromDiscord<Rika> In reply to @user2m "It is I realized": Because if you don’t return anything, the default value is returned
03:17:01FromDiscord<Rika> And the default value of that type is nil
03:17:53FromDiscord<Chronos [She/Her]> @ElegantBeef you're gonna ~~loath~~ love this, imagine an OS that's main focus is everything in WASM
03:17:58FromDiscord<Chronos [She/Her]> I'm not gonna do this
03:18:08FromDiscord<Chronos [She/Her]> May tinker a bit, but I'm focusing on another project for once
03:18:20FromDiscord<Rika> Why though
03:19:03FromDiscord<user2m> In reply to @Rika "And the default value": got it
03:19:24FromDiscord<Elegantbeef> @ringabout\: so i'm going to need you to walk me through how to setup a nimble module for VM hooks
03:20:03FromDiscord<ringabout> Sure thing, what can I do for help?
03:20:29FromDiscord<Elegantbeef> I presently do `intr.implementRoutine("", scriptName, uProc.name, uProc.vmProc)` and this seems to no longer actually do anything
03:20:50FromDiscord<Elegantbeef> So how do I make this work now
03:22:44FromDiscord<Elegantbeef> For reference https://github.com/beef331/nimscripter/blob/master/src/nimscripter.nim#L55-L104 is how i'm presently loading a nimscript module
03:22:49FromDiscord<ringabout> Yeah, I assume that you might need to emit a nimble file for this file.
03:23:10FromDiscord<Elegantbeef> What does the nimble file need to contain and why do i need a nimble file?
03:23:33FromDiscord<Elegantbeef> Also where does it need to go
03:25:46FromDiscord<ringabout> The VM hooks need an explicit package name. A nimble file represents the package the single module belongs to.
03:27:36FromDiscord<Elegantbeef> Does the nimble file actually need any contents, where does it need to be?
03:28:04FromDiscord<Elegantbeef> The nimble file is a bit weird given i'm running scripts that are in memory
03:32:23FromDiscord<Elegantbeef> I do also wonder the implications of this nimble file on wasm
03:36:36FromDiscord<ringabout> Using `unknown` might work/
03:37:19FromDiscord<ringabout> (edit) "`unknown`" => ""unknown"" | "work/" => "work as well. Let me give a try."
03:37:32FromDiscord<Elegantbeef> Doesnt seem to change it
03:43:16FromDiscord<ringabout> Btw, how can I reproduce the issue? The example works for me.
03:45:14FromDiscord<ringabout> Oh, tgeneral doesn't work.
03:45:48NimEventerNew post on r/nim by barash-616: Where do I find job openings?, see https://reddit.com/r/nim/comments/12h61fm/where_do_i_find_job_openings/
03:47:17FromDiscord<Elegantbeef> sent a code paste, see https://paste.rs/pPn
03:47:18FromDiscord<Elegantbeef> Does not work anymore
03:49:49NimEventerNew post on r/nim by barash-616: What projects are you developing with Nim?, see https://reddit.com/r/nim/comments/12h64oi/what_projects_are_you_developing_with_nim/
04:05:51FromDiscord<ringabout> For this case, there is a solution
04:06:01FromDiscord<ringabout> sent a code paste, see https://play.nim-lang.org/#ix=4t5K
04:06:41FromDiscord<ringabout> Put it under the scriptDir and combine it with an empty nimble file.
04:07:16FromDiscord<ringabout> Prints 100 for me.
04:09:49FromDiscord<Elegantbeef> Ok thanks
04:10:13FromDiscord<ringabout> No problem
04:24:42*hochata joined #nim
04:26:58*nanxiao quit (Quit: Client closed)
04:31:07*arkurious quit (Quit: Leaving)
04:56:50*hochata quit (Remote host closed the connection)
05:01:34*nanxiao joined #nim
05:07:08*rockcavera quit (Remote host closed the connection)
05:37:16FromDiscord<ajusa> is there a way to access a string across multiple threads in Nim? I assume that locks are the best option here
05:37:55FromDiscord<Elegantbeef> Yep with guard pragma
05:37:59FromDiscord<ajusa> sent a code paste, see https://play.nim-lang.org/#ix=4t5R
05:38:27FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t5S
05:38:40FromDiscord<Elegantbeef> https://nim-lang.org/docs/manual_experimental.html#guards-and-locks
05:39:51FromDiscord<ajusa> Knew I was probably missing something, thanks beef!
05:44:19*Notxor joined #nim
06:03:14FromDiscord<Elegantbeef> ringabout\: sorry to bother you again, but it doesnt work https://hatebin.com/zctpeuzjvv
06:03:21FromDiscord<Elegantbeef> Well atleast this doesnt work
06:07:31*kenran joined #nim
06:22:36FromDiscord<ringabout> Do you mean it doesn't work for the forementioned case?
06:23:53FromDiscord<Elegantbeef> It does not hook the procedure
06:24:34FromDiscord<ringabout> > intr.implementRoutine(scriptName, scriptName, uProc.name, uProc.vmProc)
06:25:21*nanxiao quit (Quit: Client closed)
06:25:56FromDiscord<Elegantbeef> Oh i see what you were trying to point at
06:33:49FromDiscord<ringabout> The owner is not correct for `doThing` =\> `doThing.script.nimscripter`.
06:36:24FromDiscord<ringabout> Creating the interpreter based on `scriptPath` works for me. `intr = createInterpreter(scriptPath, searchPaths`.
06:36:25*nanxiao joined #nim
06:44:10FromDiscord<Elegantbeef> There we go, thanks
06:44:20FromDiscord<Elegantbeef> Though I still do not see why a real file needs to exist
06:45:12FromDiscord<ringabout> The wild match is dropped for performance reasons. Perhaps we could somehow find a way supporting it.
06:45:23FromDiscord<Elegantbeef> I do not really need the wild match
06:45:27FromDiscord<ringabout> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/1094875713217249290): The wild match is dropped for performance reasons. Perhaps we could somehow find a way to support it.
06:45:34FromDiscord<Elegantbeef> It's more a case of "why does the file really need to exist"
06:45:50FromDiscord<Elegantbeef> like how does an empty `script.nimble` solve any problem
06:46:50*azimut quit (Ping timeout: 255 seconds)
07:02:49*kenran quit (Quit: ERC 5.5 (IRC client for GNU Emacs 30.0.50))
07:03:06*kenran joined #nim
07:10:13*xet7 joined #nim
07:16:33NimEventerNew post on r/nim by Integralist: Newbie looking at nim, see https://reddit.com/r/nim/comments/12haj47/newbie_looking_at_nim/
07:34:45FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=4t6c
07:37:23FromDiscord<Phil> sent a code paste, see https://paste.rs/3WS
07:37:43FromDiscord<huantian> You’re not using ref objects on purpose here right
07:38:07FromDiscord<Phil> Yeah, as I generally would want to avoid using ref objects even if I have to deal with inheritance
07:39:42FromDiscord<huantian> I didn’t even know methods worked with non ref inheritance
07:40:04FromDiscord<huantian> My hunch is that it just doesn’t lol
07:41:10FromDiscord<Phil> Ohhh now I get it, y is a copy of x. ↵But due to the type being "A" there it does not copy over the int.↵But somehow it still recognizes itself as type "B", so it still tries to run "x.id".↵However with "id" being not copied over, id only has its default initialized value, which is 1... maybe ?
07:41:15FromDiscord<Phil> No that also makes no sense
07:41:27FromDiscord<Phil> int gets default initialized to 0, where the heck is that 1 coming from
07:41:30FromDiscord<huantian> What happens if you echo x in the method
07:41:49FromDiscord<huantian> In reply to @Isofruit "int gets default initialized": Might be reading garbage memory or maybe reading into the type info or smthn
07:42:02FromDiscord<huantian> (edit) "What happens if you echo x in the method ... " added "for B"
07:42:06FromDiscord<Phil> In reply to @huantian "What happens if you": It runs the method for B twice
07:42:17FromDiscord<Phil> the base method is never executed
07:42:25FromDiscord<huantian> That makes sense
07:42:35FromDiscord<huantian> Does the value of x change between them
07:42:38FromDiscord<Phil> Yeah, so far so good, still bad output
07:43:08FromDiscord<huantian> The problem is when you set your B value to a A variable you lost your id info but kept your type info
07:43:12FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=4t6g
07:43:25FromDiscord<huantian> (edit) "info" => "data"
07:43:27FromDiscord<Phil> In reply to @huantian "The problem is when": And that I would qualify as a bug
07:44:19FromDiscord<huantian> Yeah I think methods shouldn’t be allowed on non ref inheritance at all?
07:45:26FromDiscord<Phil> ringabout ? Any opinion here?↵Is methods for value types undesired?
07:46:02FromDiscord<huantian> I’m curious what if you add a bunch more fields to B, is it going to read random memory if you echo x in the method?
07:46:15FromDiscord<Phil> Let me see
07:46:30FromDiscord<Phil> Hmm should be ints or the like since I want it to read from stack rather than heap which it would for string
07:46:35FromDiscord<ringabout> In reply to @Isofruit "ringabout ? Any opinion": It is not desired, use refs instead.
07:47:01FromDiscord<ringabout> You cannot convert value types.
07:47:51FromDiscord<ringabout> It is a known bug of ORC which accpets invalid code. refc gives the proper errors => `invalid object assignment [ObjectAssignmentDefect]`
07:48:14FromDiscord<Phil> In reply to @ringabout "It is a known": Ahhh check, so that is known, check!
07:48:18FromDiscord<Phil> (edit) "known, check!" => "known!"
07:48:27FromDiscord<Phil> Works for me
07:48:37FromDiscord<Phil> (edit) "Works for me" => "Alrighty, that's what I wanted to know there"
07:48:58FromDiscord<ringabout> In reply to @Isofruit "Ahhh check, so that": Yeah, see also https://github.com/nim-lang/Nim/issues/7002
07:49:09FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=4t6i
07:51:37FromDiscord<huantian> That’s funny definitely not right lmao
08:19:10FromDiscord<Elegantbeef> Technically methods are fine as long as the data type is the same size as the base
08:19:22FromDiscord<Elegantbeef> But you get runtime errors on anything that doesnt use copy memory
08:20:17FromDiscord<Elegantbeef> Anywho @Phil you do not need dynamic dispatch so do not use methods
08:20:19FromDiscord<jmgomez> I think there were some issues with generics too, but cant recall exactly what they were
08:20:55FromDiscord<Elegantbeef> Methods do not work with generics
08:20:58FromDiscord<Elegantbeef> Period
08:22:15FromDiscord<jmgomez> they partially do though, in the form of: ↵`type Repository[T] = object`
08:22:47FromDiscord<Elegantbeef> They generate a single instance
08:22:49FromDiscord<Elegantbeef> They do not work
08:22:58FromDiscord<jmgomez> (edit) "object`" => "ref object of RootObj`"
08:24:26FromDiscord<jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t6p
08:25:12FromDiscord<Elegantbeef> I mean that falls apart if you specialise on T
08:26:13FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t6r
08:27:04FromDiscord<jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t6s
08:27:43FromDiscord<Elegantbeef> There is no reason for a method there unless you are using runtime polymorphism
08:27:59FromDiscord<jmgomez> In reply to @Elegantbeef "There is no reason": That's the point. The concrete implementation varies
08:28:15FromDiscord<Elegantbeef> I do not follow what you mean
08:28:23FromDiscord<Elegantbeef> You cannot even dispatch based off T
08:29:00FromDiscord<jmgomez> you can pass around IRepository without caring about the underlaying impl
08:29:33FromDiscord<jmgomez> and swap it at runtime
08:29:40FromDiscord<Elegantbeef> There you go
08:29:44FromDiscord<Elegantbeef> You're actually using polymorphism
08:29:56FromDiscord<Elegantbeef> But the point is you cannot use the generic parameter
08:30:11FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t6v
08:30:14FromDiscord<Elegantbeef> This prints `Child[float]` twice
08:30:43FromDiscord<Elegantbeef> A single implementation generic method is quite pointless
08:32:47FromDiscord<jmgomez> yeah but you still need to dont have a concrete type, I mean the underlaying type if a Entity concept like type
08:32:57FromDiscord<jmgomez> (edit) "if" => "is"
08:33:07FromDiscord<jmgomez> I guess you can close to it anyways
08:34:27FromDiscord<Elegantbeef> I mean in phil's case stack inheritance using procs is the goto
08:44:52*xet7 quit (Quit: Leaving)
08:51:44*nanxiao quit (Quit: Client closed)
09:09:09*ltriant joined #nim
09:21:21*nanxiao joined #nim
09:26:56*ltriant quit (Ping timeout: 265 seconds)
09:39:08*kenran quit (Quit: ERC 5.5 (IRC client for GNU Emacs 30.0.50))
09:39:34*kenran joined #nim
09:58:17*nanxiao quit (Quit: Client closed)
10:05:12*kenran quit (Remote host closed the connection)
10:19:44*kenran joined #nim
10:38:04*nanxiao joined #nim
10:42:39*ismustachio quit (Ping timeout: 255 seconds)
10:43:56*nanxiao quit (Quit: Client closed)
11:04:28FromDiscord<faldor20> sent a long message, see http://ix.io/4t72
11:04:45FromDiscord<faldor20> (edit) "http://ix.io/4t72" => "http://ix.io/4t73"
11:04:54FromDiscord<faldor20> (edit) "http://ix.io/4t73" => "http://ix.io/4t74"
11:05:35FromDiscord<faldor20> I don't appear to be able to resend the email... https://media.discordapp.net/attachments/371759389889003532/1094941239939440720/image.png
11:10:26*kenran quit (Remote host closed the connection)
11:15:49FromDiscord<ringabout> In reply to @faldor20 "okay. What am": What's your account name?
11:16:19FromDiscord<faldor20> faldor20, same as here
11:18:36FromDiscord<ringabout> In reply to @faldor20 "faldor20, same as here": I have activated your account, does it work for you?
11:25:20FromDiscord<faldor20> In reply to @ringabout "I have activated your": Thankyou 🙏
12:12:35*ismustachio joined #nim
12:28:06*PMunch joined #nim
12:48:07*luis_ quit (Ping timeout: 250 seconds)
13:12:00*jmdaemon quit (Ping timeout: 248 seconds)
13:13:46FromDiscord<aph> sent a code paste, see https://play.nim-lang.org/#ix=4t7s
13:13:56FromDiscord<aph> (edit) "https://play.nim-lang.org/#ix=4t7s" => "https://play.nim-lang.org/#ix=4t7t"
13:14:12FromDiscord<Phil> That sounds like you need a custom iterator
13:15:17FromDiscord<Phil> Though I'd only do that if you need that multiple times.↵In this particular case I'd honestly just iterate over indices.
13:16:11FromDiscord<aph> oh, thanks! i'll look into it. that was just a minimal sample, i actually have lots of to loop
13:16:56FromDiscord<Phil> Do you always need the same logic, aka take 2 at once?
13:18:00FromDiscord<aph> yes but not if the amount is odd
13:19:41FromDiscord<Phil> Because strictly speaking, your current solution should also check if a given seq contains an even number of sequences as you're in constant risk of a RangeDefect.↵I'd personally massively prefer if I could somehow solve this via introducing a data-type if e.g. two entries that follow one another in a seq somehow actually belong together,
13:19:43FromDiscord<Phil> (edit) "together," => "together."
13:21:49FromDiscord<aph> maybe i can add another empty seq to the main seq if the data is odd?
13:22:17FromDiscord<aph> a custom data type would also work
13:23:33*rockcavera joined #nim
13:24:12FromDiscord<Phil> I mean, that entirely depends on the business logic and that one only you can know
13:24:28FromDiscord<Phil> Or whoever asked you to write this
13:25:33FromDiscord<aph> yeah i think i've figured out a solution thanks for your help!
13:34:46FromDiscord<Rika> https://github.com/narimiran/itertools
13:34:52FromDiscord<Rika> Chunked could probably help here
14:11:19*luis_ joined #nim
14:40:57*azimut joined #nim
14:54:11FromDiscord<Raynei486> Is there a way to create an alias for a object but change the member names?
14:54:55FromDiscord<Rika> no not really?
14:55:07FromDiscord<Raynei486> maybe I'm designing something wrong then
15:01:20*luis_ quit (Ping timeout: 248 seconds)
15:01:42*luis_ joined #nim
15:05:55*arkurious joined #nim
15:06:01*arkurious quit (Remote host closed the connection)
15:12:08*LyndsySimon quit (Quit: Connection closed for inactivity)
15:16:02FromDiscord<Chronos [She/Her]> Is there a library that provides some simple abstraction over the smtp library?
15:16:21*luis_ quit (Quit: Leaving)
15:18:13FromDiscord<Phil> Hm? I've used it before, What's in need of an abstraction?
15:25:21FromDiscord<Chronos [She/Her]> sent a code paste, see https://play.nim-lang.org/#ix=4t80
15:28:37FromDiscord<Yardanico> isn't this exactly how you use it?
15:28:41FromDiscord<Yardanico> you just create a client, auth and then sendMail
15:28:46FromDiscord<Yardanico> I don't see the need for a simpler API at all
15:28:57FromDiscord<Phil> You also need to authenticate first
15:29:13FromDiscord<Yardanico> yeah, but it's like 5 lines to send an email top, I don't see that as excessive, you can wrap it away in a proc if you feel like it
15:29:25FromDiscord<Phil> Agreed
15:31:06FromDiscord<Chronos [She/Her]> In reply to @Yardanico "isn't this exactly how": I thought there was a certain format you have to follow when sending emails?
15:31:57FromDiscord<Yardanico> In reply to @Hourglass, When the Hour Strikes "I thought there was": huh?
15:32:09FromDiscord<Yardanico> I mean, can you explain what's unclear in https://nim-lang.org/docs/smtp.html ?
15:32:24FromDiscord<Yardanico> it shows first two complete examples of how to send mail
15:36:12FromDiscord<Chronos [She/Her]> Ah alright then
15:36:15FromDiscord<Chronos [She/Her]> Thanks aha
16:01:32FromDiscord<HitBlast> Does anybody here have experience with nimwave for developing terminal UIs? I'd like to render some stuff for my own project but can't really figure out how to start off. The starter project seems a bit overwhelming.
16:02:31*lucasta joined #nim
16:25:03FromDiscord<that_dude> In reply to @Hourglass, When the Hour Strikes "Is there a library": I've used templates to rename variables and shorten object field paths before. Not sure if that's what you're asking for
16:26:16FromDiscord<that_dude> In reply to @Raynei486 "Is there a way": I've used templates to rename variables and shorten object field paths before. Not sure if that's what you're asking for
17:35:19*PMunch quit (Quit: leaving)
17:46:43*rockcavera quit (Remote host closed the connection)
17:47:43*lucasta quit (Quit: Leaving)
17:58:19*antranigv joined #nim
18:21:43FromDiscord<guttural666> there is only ever one memory location for a global variable in Nim right? even if I include a module in many different places? in C++ I would need inline for that
18:22:02*xaltsc joined #nim
18:22:41FromDiscord<guttural666> probably need to lock global state when multithreading
18:23:37FromDiscord<Entikan> @planetis With naylib I get `Error: '=copy' is not available for type <Shader>; requires a copy because it's not the last read of 'shader'; another read is done here:` when assigning the shader to a material and calling `setShaderValue` in my main loop. Do you perhaps know why?
18:32:02FromDiscord<demotomohiro> Yes, there is only global variable even if the module is imported from multiple modules.↵You can test it by writing procs in multple module that echo the address of same global variable.
18:32:40*xet7 joined #nim
18:35:55Amun-Raguttural666: one global var per thread
18:37:19FromDiscord<guttural666> In reply to @Amun-Ra "<@375727321958580228>: one global var": what does that mean? wouldn't a thread be able to access a global through a lock?
18:41:09FromDiscord<GitGud> sent a code paste, see https://paste.rs/nel
18:43:51FromDiscord<huantian> You should do echo h[0].int8
18:44:24FromDiscord<huantian> Strings are pointers under the hood so when you cast the entire string you’re viewing the pointer
18:44:57FromDiscord<GitGud> oh that makes sense
18:45:03FromDiscord<GitGud> actually made the app crash though
18:46:32*junaid_ joined #nim
18:49:15FromDiscord<GitGud> `echo cast[int8](h[0])`↵avoids a casting error (instead of `h[0].int8`
18:49:20FromDiscord<GitGud> (edit) "`h[0].int8`" => "`h[0].int8`)"
18:49:35FromDiscord<GitGud> but still doesnt seem to display the right values 🤔
18:52:34*rockcavera joined #nim
18:57:57FromDiscord<GitGud> nvm last bit was mistake on my part
18:58:08FromDiscord<GitGud> tysm @huantian <:pepe_love:711079546446807060>
19:03:32*lucasta joined #nim
19:06:45*redj quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
19:07:17*redj_ joined #nim
19:10:08*junaid_ quit (Remote host closed the connection)
19:13:39*redj_ is now known as redj
19:14:18*redj quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
19:14:48*redj joined #nim
19:16:13FromDiscord<GitGud> is there any easy way to convert `let h = await socket.recv(4)` to an int directly instead of having to read 4 bytes separately?
19:23:17FromDiscord<planetis> In reply to @Entikan "<@915614219364368394> With naylib I": Sorry seems like an issue let me try to fix it.
19:30:04FromDiscord<planetis> ehm that makes no sense, setShaderValue isn't suppose to copy. Please share more code
19:41:35*jmdaemon joined #nim
19:43:22*azimut_ joined #nim
19:46:41*azimut quit (Ping timeout: 255 seconds)
19:52:35*derpydoo joined #nim
19:59:52*progranner joined #nim
20:14:10FromDiscord<Prestige> I'm using Jester and want to "normalize" the query params coming through. Like if there's a space, it comes through at `%20` instead of ` ` - what's this called, and do we have a tool to handle these transformations?
20:15:59FromDiscord<Prestige> Maybe it's decodeUrl from `uri`
20:17:48FromDiscord<treeform> In reply to @Avahe "I'm using Jester and": There is also webby: https://github.com/treeform/webby
20:18:31FromDiscord<michaelb.eth> In reply to @GitGud "is there any easy": what kind of data is being received through the socket?
20:18:50FromDiscord<michaelb.eth> I mean, what do the bytes represent?
20:18:57FromDiscord<Prestige> treeform always has the best stuff
20:19:56FromDiscord<GitGud> In reply to @michaelb.eth "I mean, what do": a byte buffer packet
20:20:05FromDiscord<GitGud> LE
20:20:55FromDiscord<GitGud> sent a code paste, see https://play.nim-lang.org/#ix=4t97
20:21:28FromDiscord<GitGud> (edit) "https://play.nim-lang.org/#ix=4t97" => "https://play.nim-lang.org/#ix=4t98"
20:42:38*lucasta quit (Remote host closed the connection)
20:43:51FromDiscord<Entikan> sent a code paste, see https://play.nim-lang.org/#ix=4t9a
20:44:14FromDiscord<Entikan> if I comment out `shader.setShaderValue(shader.getShaderLocation("viewPos"), camera.position)` the error disapears
20:45:13FromDiscord<Entikan> but the error is otherwise triggered at `model.materials[0].shader = shader`
20:45:27FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4t9d
20:46:23FromDiscord<michaelb.eth> (edit) "https://play.nim-lang.org/#ix=4t9d" => "https://play.nim-lang.org/#ix=4t9e"
20:46:26FromDiscord<GitGud> i will try this tomorrow, gotta sleep now, ty :Prayge:
20:46:34FromDiscord<michaelb.eth> have a good rest!
20:53:53*progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…)
20:56:15*progranner joined #nim
21:09:10*rockcavera quit (Read error: Connection reset by peer)
21:10:36*rockcavera joined #nim
21:10:36*rockcavera quit (Changing host)
21:10:36*rockcavera joined #nim
21:15:40FromDiscord<ajusa> In reply to @treeform "There is also webby:": Related question, will webby support cookie parsing/serialization? I think the standard library has procs for it fwiw
21:20:17FromDiscord<treeform> In reply to @ajusa "Related question, will webby": Thats probably a good thing to add to webby. I don't generally use cookies (I prefer LocalStorage) so it might be a while.
21:24:09FromDiscord<planetis> In reply to @Entikan "but the error is": I know a fix, will push it tomorrow.
21:24:14*ltriant joined #nim
21:25:47FromDiscord<Elegantbeef> `recvInto` is what you want↵(@GitGud)
21:28:43*ltriant quit (Ping timeout: 248 seconds)
21:32:39FromDiscord<Entikan> In reply to @planetis "I know a fix,": nice. thanks a lot!
21:37:21*Notxor quit (Quit: Leaving)
21:44:35*derpydoo quit (Ping timeout: 260 seconds)
22:03:50FromDiscord<MrOkram> Hi, i can't seem to figure out how to use asyncpty from asynctool Github project, what i want is to do a simple `ls` on the remote PTY interface, but the given example inside the library doesn't provide me with a lot of information on how to do that.
22:12:04*progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23:05:05FromDiscord<Chronos [She/Her]> In reply to @Rika "Why though": Just realised this now, but: Cross-platform binaries since WASM runtimes are plentiful and WASI can most definitely satisfy some things :)
23:05:23FromDiscord<Chronos [She/Her]> But damn no Beef reply
23:08:56FromDiscord<Elegantbeef> What am i supposed to reply
23:09:14FromDiscord<Elegantbeef> A wasm based OS is no different to a basic based OS or any other bytecode VM 😄
23:10:38FromDiscord<Elegantbeef> Except for the one benefit that a lot of tooling can already generate the bytecode for wasm
23:11:03FromDiscord<Elegantbeef> I do unironically want to make a fantasy computer that uses a basic like language and wasm
23:15:31FromDiscord<Chronos [She/Her]> Fantasy computer?
23:16:04FromDiscord<Chronos [She/Her]> In reply to @Elegantbeef "Except for the one": And that it can be ran across multiple platforms, meaning profit for portability as long as the APIs exist :)
23:17:59FromDiscord<Chronos [She/Her]> I know I'm trying to not jump from project to project but damn if it isn't hard :p
23:18:21FromDiscord<Chronos [She/Her]> Alas, the issues of soneone with an attention span smaller than the brightness of their future
23:19:05FromDiscord<sOkam!> are `hostCPU` and `hostOS` runtime or compiletime?
23:34:58FromDiscord<Elegantbeef> Compile time
23:35:15FromDiscord<Elegantbeef> Well it emulates the target
23:51:06FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:08FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:10FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:11FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:13FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:15FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:18FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:20FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:21FromDiscord<Elegantbeef> Everyone on TV is a transmission?
23:51:22FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:51:45FromDiscord<ElegantBeef> <@&371760044473319454>
23:51:54FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:52:57*lucasta joined #nim
23:53:53FromDiscord<Phil> Yepoleb it appears I can't ... ban for some reason?
23:53:57FromDiscord<Phil> Am I not a mod on this account?
23:54:06FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:54:06FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:54:08FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:54:12FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:54:14FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:54:16FromDiscord<elitegenderinversion> Everyone on TV is a tranny.. Resources-- ↵https://m.youtube.com/playlist?list=PLA7tOWuB4wa1u2Y_Hxdq9BmFjPF7L9AhI ↵Our xmpp chat --↵xmpp\://[email protected]?join
23:54:19FromDiscord<elitegenderinversion> OK stop
23:54:26FromDiscord<elitegenderinversion> Watch the videos they are true
23:54:32FromDiscord<Phil> Well, I'll try to delete my way through the messages
23:54:35FromDiscord<elitegenderinversion> I'm spreading truth
23:54:36FromDiscord<Elegantbeef> Nope you're default
23:54:53FromDiscord<Phil> In reply to @elitegenderinversion "I'm spreading truth": You can very kindly go kick yourself in the nuts
23:55:33FromDiscord<Yepoleb> [Phil](https://matrix.to/#/%40isofruit%3Amatrix.org) i was able to ban
23:55:38FromDiscord<Phil> Thanks
23:56:36FromDiscord<Phil> Okay and with that out of the way I think I can delete my own post as well
23:56:38FromDiscord<Elegantbeef> Anywho phil now you're here did you replace your methods with procs? 😄
23:57:29FromDiscord<Phil> Oh that was mostly just me messing around with an idea I had, I didn't have practical applications for that code
23:57:39FromDiscord<Yepoleb> that was a lot of work to clean up
23:57:52FromDiscord<Yepoleb> thanks for notifying us
23:58:57*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
23:59:59FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t9J