00:03:15 | FromDiscord | <Elegantbeef> @elcritch\: sooo is ants on 2.0 now? 😄 |
00:29:20 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Elegantbeef "Of course they're pointer": and is that much slower than normal proc? |
00:29:58 | FromDiscord | <Elegantbeef> Well pointer procs can be slightly slower than normal proc calls |
00:30:22 | FromDiscord | <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:23 | FromDiscord | <System64 ~ Flandre Scarlet> Ah alright |
00:30:31 | FromDiscord | <Elegantbeef> The one thing that's not shown is the memory consumption |
00:30:39 | FromDiscord | <Elegantbeef> In theory the sequtils should eat the most memory |
00:31:58 | FromDiscord | <System64 ~ Flandre Scarlet> This is good to know↵but operations on sequences are usually quite demanding I think |
00:32:23 | FromDiscord | <Elegantbeef> They're not |
00:32:23 | FromDiscord | <Elegantbeef> The costly part is the copy |
00:32:24 | FromDiscord | <Elegantbeef> Iterating over a sequence is cheap |
00:32:25 | FromDiscord | <Elegantbeef> Copying a sequence is expensive |
00:55:07 | FromDiscord | <System64 ~ Flandre Scarlet> Makes sense |
01:03:22 | FromDiscord | <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:50 | FromDiscord | <Dudugz> In reply to @Elegantbeef "Copying a sequence is": Glad i'm not copying then |
01:09:52 | FromDiscord | <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:23 | FromDiscord | <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:07 | FromDiscord | <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:42 | FromDiscord | <Chronos [She/Her]> :p |
02:57:04 | FromDiscord | <demotomohiro> Are you asking about `--os:any` compiler option? |
02:57:11 | FromDiscord | <Chronos [She/Her]> Yeah |
02:57:24 | FromDiscord | <Chronos [She/Her]> I've seen that apparently it could in theory be used for OS dev? |
02:57:39 | FromDiscord | <demotomohiro> It seems that option is for platforms that doesn't have OS. |
02:58:21 | FromDiscord | <demotomohiro> I think it can be used for OS dev. |
02:58:36 | FromDiscord | <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:44 | FromDiscord | <demotomohiro> As far as I know, you dont need to write such functions on raspberry pi pico. |
03:00:10 | FromDiscord | <Chronos [She/Her]> Fair |
03:00:30 | FromDiscord | <Chronos [She/Her]> I was thinking of making an OS that focuses heavily on integrating WASM |
03:00:39 | FromDiscord | <Chronos [She/Her]> Mainly because I have the attention span of a fly |
03:00:44 | FromDiscord | <demotomohiro> Maybe if you use boot loader like U-Boot or Grub, these program load your OS. |
03:04:55 | FromDiscord | <Chronos [She/Her]> You'd still need an entry point I believe |
03:05:18 | FromDiscord | <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:23 | FromDiscord | <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:10 | FromDiscord | <Rika> It’s probably from within the all function |
03:14:16 | FromDiscord | <Chronos [She/Her]> In reply to @user2m "Do you have nay": JsonNode may be nil? |
03:14:19 | FromDiscord | <Rika> When you index the database variable maybe |
03:14:23 | FromDiscord | <Rika> Yes |
03:16:24 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#ix=4t5H |
03:16:51 | FromDiscord | <Rika> In reply to @user2m "It is I realized": Because if you don’t return anything, the default value is returned |
03:17:01 | FromDiscord | <Rika> And the default value of that type is nil |
03:17:53 | FromDiscord | <Chronos [She/Her]> @ElegantBeef you're gonna ~~loath~~ love this, imagine an OS that's main focus is everything in WASM |
03:17:58 | FromDiscord | <Chronos [She/Her]> I'm not gonna do this |
03:18:08 | FromDiscord | <Chronos [She/Her]> May tinker a bit, but I'm focusing on another project for once |
03:18:20 | FromDiscord | <Rika> Why though |
03:19:03 | FromDiscord | <user2m> In reply to @Rika "And the default value": got it |
03:19:24 | FromDiscord | <Elegantbeef> @ringabout\: so i'm going to need you to walk me through how to setup a nimble module for VM hooks |
03:20:03 | FromDiscord | <ringabout> Sure thing, what can I do for help? |
03:20:29 | FromDiscord | <Elegantbeef> I presently do `intr.implementRoutine("", scriptName, uProc.name, uProc.vmProc)` and this seems to no longer actually do anything |
03:20:50 | FromDiscord | <Elegantbeef> So how do I make this work now |
03:22:44 | FromDiscord | <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:49 | FromDiscord | <ringabout> Yeah, I assume that you might need to emit a nimble file for this file. |
03:23:10 | FromDiscord | <Elegantbeef> What does the nimble file need to contain and why do i need a nimble file? |
03:23:33 | FromDiscord | <Elegantbeef> Also where does it need to go |
03:25:46 | FromDiscord | <ringabout> The VM hooks need an explicit package name. A nimble file represents the package the single module belongs to. |
03:27:36 | FromDiscord | <Elegantbeef> Does the nimble file actually need any contents, where does it need to be? |
03:28:04 | FromDiscord | <Elegantbeef> The nimble file is a bit weird given i'm running scripts that are in memory |
03:32:23 | FromDiscord | <Elegantbeef> I do also wonder the implications of this nimble file on wasm |
03:36:36 | FromDiscord | <ringabout> Using `unknown` might work/ |
03:37:19 | FromDiscord | <ringabout> (edit) "`unknown`" => ""unknown"" | "work/" => "work as well. Let me give a try." |
03:37:32 | FromDiscord | <Elegantbeef> Doesnt seem to change it |
03:43:16 | FromDiscord | <ringabout> Btw, how can I reproduce the issue? The example works for me. |
03:45:14 | FromDiscord | <ringabout> Oh, tgeneral doesn't work. |
03:45:48 | NimEventer | New 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:17 | FromDiscord | <Elegantbeef> sent a code paste, see https://paste.rs/pPn |
03:47:18 | FromDiscord | <Elegantbeef> Does not work anymore |
03:49:49 | NimEventer | New 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:51 | FromDiscord | <ringabout> For this case, there is a solution |
04:06:01 | FromDiscord | <ringabout> sent a code paste, see https://play.nim-lang.org/#ix=4t5K |
04:06:41 | FromDiscord | <ringabout> Put it under the scriptDir and combine it with an empty nimble file. |
04:07:16 | FromDiscord | <ringabout> Prints 100 for me. |
04:09:49 | FromDiscord | <Elegantbeef> Ok thanks |
04:10:13 | FromDiscord | <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:16 | FromDiscord | <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:55 | FromDiscord | <Elegantbeef> Yep with guard pragma |
05:37:59 | FromDiscord | <ajusa> sent a code paste, see https://play.nim-lang.org/#ix=4t5R |
05:38:27 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t5S |
05:38:40 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/manual_experimental.html#guards-and-locks |
05:39:51 | FromDiscord | <ajusa> Knew I was probably missing something, thanks beef! |
05:44:19 | * | Notxor joined #nim |
06:03:14 | FromDiscord | <Elegantbeef> ringabout\: sorry to bother you again, but it doesnt work https://hatebin.com/zctpeuzjvv |
06:03:21 | FromDiscord | <Elegantbeef> Well atleast this doesnt work |
06:07:31 | * | kenran joined #nim |
06:22:36 | FromDiscord | <ringabout> Do you mean it doesn't work for the forementioned case? |
06:23:53 | FromDiscord | <Elegantbeef> It does not hook the procedure |
06:24:34 | FromDiscord | <ringabout> > intr.implementRoutine(scriptName, scriptName, uProc.name, uProc.vmProc) |
06:25:21 | * | nanxiao quit (Quit: Client closed) |
06:25:56 | FromDiscord | <Elegantbeef> Oh i see what you were trying to point at |
06:33:49 | FromDiscord | <ringabout> The owner is not correct for `doThing` =\> `doThing.script.nimscripter`. |
06:36:24 | FromDiscord | <ringabout> Creating the interpreter based on `scriptPath` works for me. `intr = createInterpreter(scriptPath, searchPaths`. |
06:36:25 | * | nanxiao joined #nim |
06:44:10 | FromDiscord | <Elegantbeef> There we go, thanks |
06:44:20 | FromDiscord | <Elegantbeef> Though I still do not see why a real file needs to exist |
06:45:12 | FromDiscord | <ringabout> The wild match is dropped for performance reasons. Perhaps we could somehow find a way supporting it. |
06:45:23 | FromDiscord | <Elegantbeef> I do not really need the wild match |
06:45:27 | FromDiscord | <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:34 | FromDiscord | <Elegantbeef> It's more a case of "why does the file really need to exist" |
06:45:50 | FromDiscord | <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:33 | NimEventer | New post on r/nim by Integralist: Newbie looking at nim, see https://reddit.com/r/nim/comments/12haj47/newbie_looking_at_nim/ |
07:34:45 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4t6c |
07:37:23 | FromDiscord | <Phil> sent a code paste, see https://paste.rs/3WS |
07:37:43 | FromDiscord | <huantian> You’re not using ref objects on purpose here right |
07:38:07 | FromDiscord | <Phil> Yeah, as I generally would want to avoid using ref objects even if I have to deal with inheritance |
07:39:42 | FromDiscord | <huantian> I didn’t even know methods worked with non ref inheritance |
07:40:04 | FromDiscord | <huantian> My hunch is that it just doesn’t lol |
07:41:10 | FromDiscord | <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:15 | FromDiscord | <Phil> No that also makes no sense |
07:41:27 | FromDiscord | <Phil> int gets default initialized to 0, where the heck is that 1 coming from |
07:41:30 | FromDiscord | <huantian> What happens if you echo x in the method |
07:41:49 | FromDiscord | <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:02 | FromDiscord | <huantian> (edit) "What happens if you echo x in the method ... " added "for B" |
07:42:06 | FromDiscord | <Phil> In reply to @huantian "What happens if you": It runs the method for B twice |
07:42:17 | FromDiscord | <Phil> the base method is never executed |
07:42:25 | FromDiscord | <huantian> That makes sense |
07:42:35 | FromDiscord | <huantian> Does the value of x change between them |
07:42:38 | FromDiscord | <Phil> Yeah, so far so good, still bad output |
07:43:08 | FromDiscord | <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:12 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4t6g |
07:43:25 | FromDiscord | <huantian> (edit) "info" => "data" |
07:43:27 | FromDiscord | <Phil> In reply to @huantian "The problem is when": And that I would qualify as a bug |
07:44:19 | FromDiscord | <huantian> Yeah I think methods shouldn’t be allowed on non ref inheritance at all? |
07:45:26 | FromDiscord | <Phil> ringabout ? Any opinion here?↵Is methods for value types undesired? |
07:46:02 | FromDiscord | <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:15 | FromDiscord | <Phil> Let me see |
07:46:30 | FromDiscord | <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:35 | FromDiscord | <ringabout> In reply to @Isofruit "ringabout ? Any opinion": It is not desired, use refs instead. |
07:47:01 | FromDiscord | <ringabout> You cannot convert value types. |
07:47:51 | FromDiscord | <ringabout> It is a known bug of ORC which accpets invalid code. refc gives the proper errors => `invalid object assignment [ObjectAssignmentDefect]` |
07:48:14 | FromDiscord | <Phil> In reply to @ringabout "It is a known": Ahhh check, so that is known, check! |
07:48:18 | FromDiscord | <Phil> (edit) "known, check!" => "known!" |
07:48:27 | FromDiscord | <Phil> Works for me |
07:48:37 | FromDiscord | <Phil> (edit) "Works for me" => "Alrighty, that's what I wanted to know there" |
07:48:58 | FromDiscord | <ringabout> In reply to @Isofruit "Ahhh check, so that": Yeah, see also https://github.com/nim-lang/Nim/issues/7002 |
07:49:09 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4t6i |
07:51:37 | FromDiscord | <huantian> That’s funny definitely not right lmao |
08:19:10 | FromDiscord | <Elegantbeef> Technically methods are fine as long as the data type is the same size as the base |
08:19:22 | FromDiscord | <Elegantbeef> But you get runtime errors on anything that doesnt use copy memory |
08:20:17 | FromDiscord | <Elegantbeef> Anywho @Phil you do not need dynamic dispatch so do not use methods |
08:20:19 | FromDiscord | <jmgomez> I think there were some issues with generics too, but cant recall exactly what they were |
08:20:55 | FromDiscord | <Elegantbeef> Methods do not work with generics |
08:20:58 | FromDiscord | <Elegantbeef> Period |
08:22:15 | FromDiscord | <jmgomez> they partially do though, in the form of: ↵`type Repository[T] = object` |
08:22:47 | FromDiscord | <Elegantbeef> They generate a single instance |
08:22:49 | FromDiscord | <Elegantbeef> They do not work |
08:22:58 | FromDiscord | <jmgomez> (edit) "object`" => "ref object of RootObj`" |
08:24:26 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t6p |
08:25:12 | FromDiscord | <Elegantbeef> I mean that falls apart if you specialise on T |
08:26:13 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t6r |
08:27:04 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4t6s |
08:27:43 | FromDiscord | <Elegantbeef> There is no reason for a method there unless you are using runtime polymorphism |
08:27:59 | FromDiscord | <jmgomez> In reply to @Elegantbeef "There is no reason": That's the point. The concrete implementation varies |
08:28:15 | FromDiscord | <Elegantbeef> I do not follow what you mean |
08:28:23 | FromDiscord | <Elegantbeef> You cannot even dispatch based off T |
08:29:00 | FromDiscord | <jmgomez> you can pass around IRepository without caring about the underlaying impl |
08:29:33 | FromDiscord | <jmgomez> and swap it at runtime |
08:29:40 | FromDiscord | <Elegantbeef> There you go |
08:29:44 | FromDiscord | <Elegantbeef> You're actually using polymorphism |
08:29:56 | FromDiscord | <Elegantbeef> But the point is you cannot use the generic parameter |
08:30:11 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t6v |
08:30:14 | FromDiscord | <Elegantbeef> This prints `Child[float]` twice |
08:30:43 | FromDiscord | <Elegantbeef> A single implementation generic method is quite pointless |
08:32:47 | FromDiscord | <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:57 | FromDiscord | <jmgomez> (edit) "if" => "is" |
08:33:07 | FromDiscord | <jmgomez> I guess you can close to it anyways |
08:34:27 | FromDiscord | <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:28 | FromDiscord | <faldor20> sent a long message, see http://ix.io/4t72 |
11:04:45 | FromDiscord | <faldor20> (edit) "http://ix.io/4t72" => "http://ix.io/4t73" |
11:04:54 | FromDiscord | <faldor20> (edit) "http://ix.io/4t73" => "http://ix.io/4t74" |
11:05:35 | FromDiscord | <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:49 | FromDiscord | <ringabout> In reply to @faldor20 "okay. What am": What's your account name? |
11:16:19 | FromDiscord | <faldor20> faldor20, same as here |
11:18:36 | FromDiscord | <ringabout> In reply to @faldor20 "faldor20, same as here": I have activated your account, does it work for you? |
11:25:20 | FromDiscord | <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:46 | FromDiscord | <aph> sent a code paste, see https://play.nim-lang.org/#ix=4t7s |
13:13:56 | FromDiscord | <aph> (edit) "https://play.nim-lang.org/#ix=4t7s" => "https://play.nim-lang.org/#ix=4t7t" |
13:14:12 | FromDiscord | <Phil> That sounds like you need a custom iterator |
13:15:17 | FromDiscord | <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:11 | FromDiscord | <aph> oh, thanks! i'll look into it. that was just a minimal sample, i actually have lots of to loop |
13:16:56 | FromDiscord | <Phil> Do you always need the same logic, aka take 2 at once? |
13:18:00 | FromDiscord | <aph> yes but not if the amount is odd |
13:19:41 | FromDiscord | <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:43 | FromDiscord | <Phil> (edit) "together," => "together." |
13:21:49 | FromDiscord | <aph> maybe i can add another empty seq to the main seq if the data is odd? |
13:22:17 | FromDiscord | <aph> a custom data type would also work |
13:23:33 | * | rockcavera joined #nim |
13:24:12 | FromDiscord | <Phil> I mean, that entirely depends on the business logic and that one only you can know |
13:24:28 | FromDiscord | <Phil> Or whoever asked you to write this |
13:25:33 | FromDiscord | <aph> yeah i think i've figured out a solution thanks for your help! |
13:34:46 | FromDiscord | <Rika> https://github.com/narimiran/itertools |
13:34:52 | FromDiscord | <Rika> Chunked could probably help here |
14:11:19 | * | luis_ joined #nim |
14:40:57 | * | azimut joined #nim |
14:54:11 | FromDiscord | <Raynei486> Is there a way to create an alias for a object but change the member names? |
14:54:55 | FromDiscord | <Rika> no not really? |
14:55:07 | FromDiscord | <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:02 | FromDiscord | <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:13 | FromDiscord | <Phil> Hm? I've used it before, What's in need of an abstraction? |
15:25:21 | FromDiscord | <Chronos [She/Her]> sent a code paste, see https://play.nim-lang.org/#ix=4t80 |
15:28:37 | FromDiscord | <Yardanico> isn't this exactly how you use it? |
15:28:41 | FromDiscord | <Yardanico> you just create a client, auth and then sendMail |
15:28:46 | FromDiscord | <Yardanico> I don't see the need for a simpler API at all |
15:28:57 | FromDiscord | <Phil> You also need to authenticate first |
15:29:13 | FromDiscord | <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:25 | FromDiscord | <Phil> Agreed |
15:31:06 | FromDiscord | <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:57 | FromDiscord | <Yardanico> In reply to @Hourglass, When the Hour Strikes "I thought there was": huh? |
15:32:09 | FromDiscord | <Yardanico> I mean, can you explain what's unclear in https://nim-lang.org/docs/smtp.html ? |
15:32:24 | FromDiscord | <Yardanico> it shows first two complete examples of how to send mail |
15:36:12 | FromDiscord | <Chronos [She/Her]> Ah alright then |
15:36:15 | FromDiscord | <Chronos [She/Her]> Thanks aha |
16:01:32 | FromDiscord | <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:03 | FromDiscord | <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:16 | FromDiscord | <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:43 | FromDiscord | <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:41 | FromDiscord | <guttural666> probably need to lock global state when multithreading |
18:23:37 | FromDiscord | <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:02 | FromDiscord | <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:55 | Amun-Ra | guttural666: one global var per thread |
18:37:19 | FromDiscord | <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:09 | FromDiscord | <GitGud> sent a code paste, see https://paste.rs/nel |
18:43:51 | FromDiscord | <huantian> You should do echo h[0].int8 |
18:44:24 | FromDiscord | <huantian> Strings are pointers under the hood so when you cast the entire string you’re viewing the pointer |
18:44:57 | FromDiscord | <GitGud> oh that makes sense |
18:45:03 | FromDiscord | <GitGud> actually made the app crash though |
18:46:32 | * | junaid_ joined #nim |
18:49:15 | FromDiscord | <GitGud> `echo cast[int8](h[0])`↵avoids a casting error (instead of `h[0].int8` |
18:49:20 | FromDiscord | <GitGud> (edit) "`h[0].int8`" => "`h[0].int8`)" |
18:49:35 | FromDiscord | <GitGud> but still doesnt seem to display the right values 🤔 |
18:52:34 | * | rockcavera joined #nim |
18:57:57 | FromDiscord | <GitGud> nvm last bit was mistake on my part |
18:58:08 | FromDiscord | <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:13 | FromDiscord | <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:17 | FromDiscord | <planetis> In reply to @Entikan "<@915614219364368394> With naylib I": Sorry seems like an issue let me try to fix it. |
19:30:04 | FromDiscord | <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:10 | FromDiscord | <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:59 | FromDiscord | <Prestige> Maybe it's decodeUrl from `uri` |
20:17:48 | FromDiscord | <treeform> In reply to @Avahe "I'm using Jester and": There is also webby: https://github.com/treeform/webby |
20:18:31 | FromDiscord | <michaelb.eth> In reply to @GitGud "is there any easy": what kind of data is being received through the socket? |
20:18:50 | FromDiscord | <michaelb.eth> I mean, what do the bytes represent? |
20:18:57 | FromDiscord | <Prestige> treeform always has the best stuff |
20:19:56 | FromDiscord | <GitGud> In reply to @michaelb.eth "I mean, what do": a byte buffer packet |
20:20:05 | FromDiscord | <GitGud> LE |
20:20:55 | FromDiscord | <GitGud> sent a code paste, see https://play.nim-lang.org/#ix=4t97 |
20:21:28 | FromDiscord | <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:51 | FromDiscord | <Entikan> sent a code paste, see https://play.nim-lang.org/#ix=4t9a |
20:44:14 | FromDiscord | <Entikan> if I comment out `shader.setShaderValue(shader.getShaderLocation("viewPos"), camera.position)` the error disapears |
20:45:13 | FromDiscord | <Entikan> but the error is otherwise triggered at `model.materials[0].shader = shader` |
20:45:27 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4t9d |
20:46:23 | FromDiscord | <michaelb.eth> (edit) "https://play.nim-lang.org/#ix=4t9d" => "https://play.nim-lang.org/#ix=4t9e" |
20:46:26 | FromDiscord | <GitGud> i will try this tomorrow, gotta sleep now, ty :Prayge: |
20:46:34 | FromDiscord | <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:40 | FromDiscord | <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:17 | FromDiscord | <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:09 | FromDiscord | <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:47 | FromDiscord | <Elegantbeef> `recvInto` is what you want↵(@GitGud) |
21:28:43 | * | ltriant quit (Ping timeout: 248 seconds) |
21:32:39 | FromDiscord | <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:50 | FromDiscord | <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:05 | FromDiscord | <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:23 | FromDiscord | <Chronos [She/Her]> But damn no Beef reply |
23:08:56 | FromDiscord | <Elegantbeef> What am i supposed to reply |
23:09:14 | FromDiscord | <Elegantbeef> A wasm based OS is no different to a basic based OS or any other bytecode VM 😄 |
23:10:38 | FromDiscord | <Elegantbeef> Except for the one benefit that a lot of tooling can already generate the bytecode for wasm |
23:11:03 | FromDiscord | <Elegantbeef> I do unironically want to make a fantasy computer that uses a basic like language and wasm |
23:15:31 | FromDiscord | <Chronos [She/Her]> Fantasy computer? |
23:16:04 | FromDiscord | <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:59 | FromDiscord | <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:21 | FromDiscord | <Chronos [She/Her]> Alas, the issues of soneone with an attention span smaller than the brightness of their future |
23:19:05 | FromDiscord | <sOkam!> are `hostCPU` and `hostOS` runtime or compiletime? |
23:34:58 | FromDiscord | <Elegantbeef> Compile time |
23:35:15 | FromDiscord | <Elegantbeef> Well it emulates the target |
23:51:06 | FromDiscord | <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:08 | FromDiscord | <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:10 | FromDiscord | <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:11 | FromDiscord | <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:13 | FromDiscord | <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:15 | FromDiscord | <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:18 | FromDiscord | <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:20 | FromDiscord | <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:21 | FromDiscord | <Elegantbeef> Everyone on TV is a transmission? |
23:51:22 | FromDiscord | <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:45 | FromDiscord | <ElegantBeef> <@&371760044473319454> |
23:51:54 | FromDiscord | <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:53 | FromDiscord | <Phil> Yepoleb it appears I can't ... ban for some reason? |
23:53:57 | FromDiscord | <Phil> Am I not a mod on this account? |
23:54:06 | FromDiscord | <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:06 | FromDiscord | <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:08 | FromDiscord | <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:12 | FromDiscord | <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:14 | FromDiscord | <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:16 | FromDiscord | <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:19 | FromDiscord | <elitegenderinversion> OK stop |
23:54:26 | FromDiscord | <elitegenderinversion> Watch the videos they are true |
23:54:32 | FromDiscord | <Phil> Well, I'll try to delete my way through the messages |
23:54:35 | FromDiscord | <elitegenderinversion> I'm spreading truth |
23:54:36 | FromDiscord | <Elegantbeef> Nope you're default |
23:54:53 | FromDiscord | <Phil> In reply to @elitegenderinversion "I'm spreading truth": You can very kindly go kick yourself in the nuts |
23:55:33 | FromDiscord | <Yepoleb> [Phil](https://matrix.to/#/%40isofruit%3Amatrix.org) i was able to ban |
23:55:38 | FromDiscord | <Phil> Thanks |
23:56:36 | FromDiscord | <Phil> Okay and with that out of the way I think I can delete my own post as well |
23:56:38 | FromDiscord | <Elegantbeef> Anywho phil now you're here did you replace your methods with procs? 😄 |
23:57:29 | FromDiscord | <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:39 | FromDiscord | <Yepoleb> that was a lot of work to clean up |
23:57:52 | FromDiscord | <Yepoleb> thanks for notifying us |
23:58:57 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
23:59:59 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4t9J |