| 00:00:41 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "You never returned true": Ooooh |
| 00:19:21 | * | lucasta quit (Quit: Leaving) |
| 01:04:30 | * | Mister_Magister quit (Quit: bye) |
| 01:06:27 | * | Mister_Magister joined #nim |
| 01:29:18 | FromDiscord | <janakali> In reply to @girvo "Can `testament` be asked": yes, with a `--print` or `--verbose` flag |
| 01:29:35 | FromDiscord | <janakali> (edit) "In reply to @girvo "Can `testament` be asked": yes, ... with" added "run it" |
| 01:32:01 | FromDiscord | <janakali> `testament --print run yourtest.nim` |
| 02:01:49 | FromDiscord | <sOkam! 🫐> In reply to @fosster "I mean like, do": `binary string` == `byte buffer` |
| 02:44:36 | FromDiscord | <girvo> In reply to @janakali "yes, run it with": Weirdly mine doesn’t show the echo’d output of the bin when I tried that earlier? I’ll try again |
| 02:48:21 | * | SchweinDeBurg joined #nim |
| 03:13:00 | * | disso-peach joined #nim |
| 04:33:37 | NimEventer | New thread by DMisener: Template default parameters question, see https://forum.nim-lang.org/t/10949 |
| 04:36:08 | * | fallback joined #nim |
| 05:11:58 | * | Goodbye_Vincent quit (Quit: ) |
| 05:13:47 | * | Goodbye_Vincent joined #nim |
| 05:29:23 | * | junaid_ joined #nim |
| 06:33:11 | * | disso-peach quit (Quit: Leaving) |
| 06:49:28 | * | advesperacit joined #nim |
| 07:20:18 | * | junaid_ quit (Remote host closed the connection) |
| 07:24:39 | * | derpydoo quit (Ping timeout: 260 seconds) |
| 08:02:26 | * | redj quit (Quit: No Ping reply in 180 seconds.) |
| 08:03:51 | * | redj joined #nim |
| 08:40:14 | * | azimut quit (Ping timeout: 255 seconds) |
| 08:52:22 | * | mronetwo quit (Ping timeout: 255 seconds) |
| 08:52:33 | * | noeontheend quit (Ping timeout: 256 seconds) |
| 08:55:46 | * | noeontheend joined #nim |
| 08:55:55 | * | mronetwo joined #nim |
| 09:28:00 | FromDiscord | <whisperecean> @Phil I msgd moigagoo as well but :D...it seems like I am msging for every little thing |
| 09:28:37 | FromDiscord | <whisperecean> But you have to admit I am running into issues because the libs in Nim are not that heavily used |
| 09:40:27 | * | xutaxkamay quit (Ping timeout: 268 seconds) |
| 09:40:54 | * | xutaxkamay joined #nim |
| 09:41:35 | FromDiscord | <nnsee> PMunch, what is this command supposed to do? https://github.com/PMunch/nim-playground/blob/master/docker/Dockerfile#L24 |
| 09:42:35 | FromDiscord | <nnsee> I ported this to my own dockerfile without really trying to grok it, but it's giving me an invalid ref spec error and I don't really understand what you're checking out here, since both the _v1 and _v2 csources repos don't really have anything besides master |
| 09:43:33 | FromDiscord | <nnsee> https://media.discordapp.net/attachments/371759389889003532/1203999340872339466/image.png?ex=65d322c4&is=65c0adc4&hm=3ddb942d10df72292165951460e640c41dd0297663c42a80d5a3813f52da3623& https://media.discordapp.net/attachments/371759389889003532/1203999341220728912/image.png?ex=65d322c4&is=65c0adc4&hm=fd5b363eefcc8d38e87809cad908cc0e1ac1909200155bdec092dbeede48eb66& |
| 09:52:57 | FromDiscord | <nnsee> I just removed that line and both nim 1.0.2 and 2.0.2 seem to build fine, so... /shrug |
| 09:55:53 | FromDiscord | <Robyn [She/Her]> Oh Ras, you may be pleased to know that I got the NBT decoder working :))) |
| 09:56:19 | FromDiscord | <Robyn [She/Her]> I just need to implement encoding, and then a `to`/`from` macro for packing and unpacking~ |
| 09:58:49 | FromDiscord | <nnsee> very nice! |
| 10:03:24 | FromDiscord | <Robyn [She/Her]> Yeah! It took a bit and I did steal Yard's code for NBT parsing and tweak it a bit but :P |
| 10:09:21 | FromDiscord | <Phil> In reply to @whisperecean "But you have to": For your usecase sure. Though mostly imo for postgres and that I'd just put on norm not being heavily used for postgres.↵I did suggest debby and friends 😛 |
| 10:10:19 | * | Zevv left #nim (#nim) |
| 10:29:27 | FromDiscord | <whisperecean> But I am now so far with Norm 😄 |
| 10:29:45 | NimEventer | New thread by arnetheduck: `nph` opinionated formatter v0.4, see https://forum.nim-lang.org/t/10950 |
| 10:31:17 | * | jmdaemon quit (Ping timeout: 240 seconds) |
| 10:44:10 | * | fallback quit (*.net *.split) |
| 10:47:38 | * | fallback joined #nim |
| 11:28:11 | * | Goodbye_Vincent quit (Ping timeout: 264 seconds) |
| 11:30:50 | * | Goodbye_Vincent joined #nim |
| 11:52:12 | * | junaid_ joined #nim |
| 12:11:04 | * | azimut joined #nim |
| 12:20:51 | * | xet7 joined #nim |
| 12:21:37 | FromDiscord | <norax.2> Is thwre a way to use git from android and push merge or commit? |
| 12:21:50 | FromDiscord | <zumi.dxy> Termux |
| 12:21:57 | FromDiscord | <zumi.dxy> :p |
| 12:22:27 | FromDiscord | <norax.2> K |
| 12:22:34 | FromDiscord | <demotomohiro> Nim and Neovim works on termux. |
| 12:22:47 | FromDiscord | <norax.2> How |
| 12:22:56 | FromDiscord | <norax.2> You need a keyboard |
| 12:23:06 | FromDiscord | <norax.2> I think atleast for neovim |
| 12:23:53 | FromDiscord | <nnsee> termux virtual keyboard works fine |
| 12:24:10 | FromDiscord | <zumi.dxy> I just use Hacker's Keyboard |
| 12:24:17 | FromDiscord | <zumi.dxy> it's got built in arrow keys |
| 12:24:19 | FromDiscord | <demotomohiro> You can use usb or bluetooth keyboards |
| 12:24:48 | FromDiscord | <norax.2> https://media.discordapp.net/attachments/371759389889003532/1204039920377663529/Screenshot_20240205-132409.png?ex=65d3488e&is=65c0d38e&hm=64caa63de556498fbaf4171d066df903e39c59112024bc0e4a483b6f373b919f& |
| 12:24:49 | FromDiscord | <norax.2> What |
| 12:25:24 | FromDiscord | <nnsee> In reply to @zumi.dxy "it's got built in": termux has native arrow keys |
| 12:25:41 | FromDiscord | <nnsee> In reply to @norax.2 "": use the -y flag |
| 12:27:04 | FromDiscord | <norax.2> In reply to @nnsee "use the -y flag": Thx |
| 12:31:42 | * | krux02 joined #nim |
| 12:42:34 | * | junaid_ quit (Remote host closed the connection) |
| 13:17:45 | * | Goodbye_Vincent quit (Quit: ) |
| 13:18:48 | * | Goodbye_Vincent joined #nim |
| 13:25:41 | * | Goodbye_Vincent quit (Ping timeout: 256 seconds) |
| 13:27:56 | * | Goodbye_Vincent joined #nim |
| 13:42:13 | FromDiscord | <fabric.input_output> how do I make nimble in the config file clone `github_url` instead of `github_url@any` |
| 13:46:02 | FromDiscord | <Robyn [She/Her]> `github_url#head` should do the trick?↵(@fabric.input_output) |
| 13:46:33 | FromDiscord | <fabric.input_output> In reply to @Robyn "`github_url#head` should do the": yes ok thanks |
| 13:46:45 | Amun-Ra | or github-url#id |
| 14:44:32 | * | Goodbye_Vincent quit (Ping timeout: 252 seconds) |
| 14:44:44 | FromDiscord | <jaar23> hi, i'm seeing `generics methods are deprecated` is this safe to use generics method still? |
| 14:46:40 | * | xet7 quit (Remote host closed the connection) |
| 14:57:49 | FromDiscord | <odexine> if its deprecated assume it is not safe |
| 14:59:03 | FromDiscord | <jaar23> i'm seeing this thread https://forum.nim-lang.org/t/4921 since 5 years back. and generic methods still there |
| 15:01:04 | FromDiscord | <odexine> that does not mean that it would work as expected, since its deprecated most likely no bugs are being fixed |
| 15:01:56 | FromDiscord | <jaar23> right, i'm not using generic method in this case |
| 15:02:22 | FromDiscord | <odexine> it seems like there are no new bugs, but there are no guarantees |
| 15:06:18 | * | Goodbye_Vincent joined #nim |
| 15:09:13 | FromDiscord | <jaar23> tested on some small program, it works really well. only the warning message is quite concerns. |
| 15:10:13 | FromDiscord | <odexine> well up to you, if it works then nice, but if it breaks or gets removed then you prolly wont get support |
| 15:10:28 | FromDiscord | <odexine> rather, youll get support for refactoring away |
| 15:21:55 | FromDiscord | <jaar23> i will wait for the new replacement before using generics method for anything serious |
| 15:39:04 | * | xutaxkamay quit (Read error: Connection reset by peer) |
| 15:39:21 | * | xutaxkamay joined #nim |
| 16:13:08 | * | xutaxkamay quit (Read error: Connection reset by peer) |
| 16:13:27 | * | xutaxkamay joined #nim |
| 16:13:40 | * | rockcavera joined #nim |
| 16:26:28 | * | junaid_ joined #nim |
| 16:56:52 | NimEventer | New thread by beckx: Xmlparser: read XML-File changes Attribute-Value, see https://forum.nim-lang.org/t/10953 |
| 17:03:39 | * | jmdaemon joined #nim |
| 17:18:21 | * | disso-peach joined #nim |
| 19:07:39 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
| 19:10:26 | * | Lord_Nightmare joined #nim |
| 19:16:58 | * | mal`` quit (Quit: Leaving) |
| 19:26:09 | FromDiscord | <sOkam! 🫐> is there an existing way to do `appendFile(path, content)`, instead of having to `readFile + writeFile`? |
| 19:26:47 | FromDiscord | <leorize> make your own |
| 19:27:08 | FromDiscord | <leorize> open the file with append flag then write into it |
| 19:27:11 | FromDiscord | <sOkam! 🫐> In reply to @leorize "make your own": > ... existing way ... |
| 19:27:38 | FromDiscord | <leorize> fmAppend exists |
| 19:28:03 | FromDiscord | <leorize> if you want a convenience proc then it's like 4 lines of code |
| 19:28:17 | FromDiscord | <sOkam! 🫐> but that's rolling my own append function, and I have found myself in the past writing functions that already exist just because I couldn't find them. so asking if this is the case, or if there is no append function premade on stdlib |
| 19:29:13 | FromDiscord | <nnsee> open the file using fmAppend and write to it |
| 19:29:15 | FromDiscord | <nnsee> done |
| 19:29:17 | FromDiscord | <leorize> if a search in the repo doesn't show anything up then I doubt it exists |
| 19:29:23 | FromDiscord | <odexine> no there is not, if there is it is not popular enough to warrant usage |
| 19:29:38 | FromDiscord | <sOkam! 🫐> kk |
| 19:29:44 | FromDiscord | <nnsee> probably no proc for it because it's very easy to do manually |
| 19:34:17 | * | mal`` joined #nim |
| 19:42:13 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=SiNwwoZJrSKi |
| 19:43:57 | FromDiscord | <sOkam! 🫐> (edit) "https://play.nim-lang.org/#pasty=rYEzKEojZIuu" => "https://play.nim-lang.org/#pasty=pmlxnAdlzgtr" |
| 19:50:39 | FromDiscord | <odexine> filename missing, otherwise pretty much yes |
| 19:53:05 | FromDiscord | <privsec> blah blah blah |
| 20:07:09 | FromDiscord | <Marcus> I'm trying to run testament for testing, but when I try to do it inside a nix build checkPhase, I only see `Error: unhandled exception: index 7 not in 0 .. 4 [IndexDefect]` when I try to run `testament all` - any suggestions for tracking down where things go bad? it runs the tests correctly when I run them directly. |
| 20:14:59 | FromDiscord | <privsec> gobbilty goop |
| 20:15:30 | FromDiscord | <privsec> how about you debug your own shit before posting vague |
| 20:15:38 | FromDiscord | <privsec> cries for help |
| 20:15:55 | FromDiscord | <leorize> i'd recommend not using testament for tests |
| 20:16:21 | FromDiscord | <leorize> testament is no where near ready for use outside of the compiler |
| 20:16:33 | FromDiscord | <leorize> you should open an issue with for what you had there |
| 20:16:41 | FromDiscord | <leorize> because a defect is a bug in the program itself |
| 20:19:27 | FromDiscord | <leorize> if you want a more competent test runner, see\: https://github.com/disruptek/balls |
| 20:19:42 | FromDiscord | <privsec> funny ass name |
| 20:19:49 | FromDiscord | <privsec> he must be a fucking fed |
| 20:19:50 | FromDiscord | <nnsee> In reply to @privsec "cries for help": the fuck is wrong with you? |
| 20:20:00 | FromDiscord | <Marcus> privsec\: You seem like a real standup guy |
| 20:20:05 | FromDiscord | <privsec> I am |
| 20:20:10 | FromDiscord | <privsec> I do standups all the time |
| 20:20:29 | FromDiscord | <Marcus> leorize\: Thanks for the tip. I'll look into balls 🙂 |
| 20:20:31 | FromDiscord | <privsec> I've been to several standup conferences |
| 20:21:03 | FromDiscord | <nnsee> you'd think you would've learned to be funny by now |
| 20:21:19 | FromDiscord | <privsec> who's trying to be funny? |
| 20:21:32 | FromDiscord | <privsec> put a little backbone behind what you sperg out |
| 20:21:54 | FromDiscord | <nnsee> are you literally 12? |
| 20:21:59 | FromDiscord | <leorize> you should use matrix, where you can ignore people easily without waiting for mods to kick them |
| 20:22:15 | FromDiscord | <privsec> if I was 12 I hope you would of reported me by now, but no |
| 20:22:23 | FromDiscord | <privsec> I'm 21 |
| 20:22:30 | FromDiscord | <nnsee> that's even sadder |
| 20:22:36 | FromDiscord | <privsec> how so? |
| 20:22:41 | FromDiscord | <Marcus> Sorry to hear that |
| 20:22:49 | FromDiscord | <nnsee> because you clearly haven't mentally developed past 12 |
| 20:22:50 | FromDiscord | <privsec> I do feel old |
| 20:23:12 | FromDiscord | <privsec> All I said was put some backbone behind what you sperg out |
| 20:23:38 | FromDiscord | <privsec> you're an assumptionist |
| 20:23:45 | FromDiscord | <privsec> you probably hate gays as well |
| 20:23:51 | FromDiscord | <privsec> and white people |
| 20:24:01 | FromDiscord | <privsec> you also probably do not have kids |
| 20:24:22 | FromDiscord | <Marcus> Seems like ignore is the only option |
| 20:24:36 | FromDiscord | <Phil> In reply to @privsec "I'm 21": I haven't even begun to read all the messages yet, but I can already tell I need to post a reminder here.↵Heyho cherrnobyte, please keep the #rules in mind |
| 20:24:47 | FromDiscord | <Phil> > Be respectful towards other people. No harassing or personally attacking others.↵↵Specifically this one |
| 20:24:59 | FromDiscord | <privsec> ah right, I got called 12 |
| 20:25:02 | FromDiscord | <privsec> by an assumptionist |
| 20:25:12 | FromDiscord | <privsec> who made a vague assumption off of a single sentence |
| 20:25:16 | FromDiscord | <privsec> nice |
| 20:25:23 | FromDiscord | <privsec> but I'm on the wrong |
| 20:25:51 | FromDiscord | <privsec> (edit) "on" => "in" |
| 20:25:53 | FromDiscord | <privsec> |
| 20:25:57 | FromDiscord | <Phil> Yeah I'm not particularly happy with Ras about that either but you're posting non nim-programming related things in the #main channel and began with it, so I'm starting there as well.↵If you want to respond to this, please do so in #offtopic |
| 20:26:15 | FromDiscord | <privsec> ah right, wont happen again then |
| 20:26:46 | FromDiscord | <Robyn [She/Her]> sent a long message, see https://pasty.ee/fGYgZIHCtrga |
| 20:26:47 | FromDiscord | <privsec> as long as @nnsee <- this little silly guy stop performing at the circus so often |
| 20:26:55 | FromDiscord | <privsec> because his jokes are making me crack up |
| 20:27:44 | FromDiscord | <leorize> why are you... vendoring endians2 |
| 20:27:44 | FromDiscord | <Robyn [She/Her]> Did I interrupt something? |
| 20:27:54 | FromDiscord | <privsec> yes |
| 20:27:55 | FromDiscord | <Phil> In reply to @privsec "as long as <@961485620075720734>": Given that I dished out a warning roughly 3 minutes ago, this marks my first warning.↵I do not like jibes either. |
| 20:28:19 | FromDiscord | <Phil> In reply to @chronos.vitaqua "Did I interrupt something?": Don't worry and just keep going, this is #offtopic |
| 20:28:19 | FromDiscord | <privsec> alright |
| 20:28:24 | FromDiscord | <privsec> bygones be bygones little bro |
| 20:28:26 | FromDiscord | <Phil> (edit) "In reply to @chronos.vitaqua "Did I interrupt something?": Don't worry and just keep going, this is ... #offtopicanyway." added "for" | "for#offtopic ... " added "anyway." |
| 20:29:19 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "why are you... vendoring": Because that's encouraged rather than pulling in the entire module? |
| 20:30:14 | FromDiscord | <Robyn [She/Her]> The actual endians2.nim is an actual file ofc, but my code needs endians2 to run currently :p |
| 20:30:41 | FromDiscord | <leorize> this is a bit big to debug |
| 20:30:58 | FromDiscord | <leorize> I guess start with trimming everything down to a single scalar dump/read and see if you're doing that correctly |
| 20:31:52 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=ZZCIavbtTjaI |
| 20:32:34 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "I guess start with": I can do that I think |
| 20:33:02 | FromDiscord | <privsec> sent a code paste, see https://play.nim-lang.org/#pasty=qSrAoHLnMkyR |
| 20:33:10 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=PxCkFAsSTJyq |
| 20:33:14 | FromDiscord | <Elegantbeef> Those procedures operate on `openArray[byte]` so just do `array[sizeof(T), byte]` |
| 20:33:16 | FromDiscord | <Robyn [She/Her]> In reply to @privsec "nobody cares about your": @Phil mature :p |
| 20:33:28 | FromDiscord | <Elegantbeef> Damn @privsec for a second I though someone was going to ask you your opinion |
| 20:33:38 | FromDiscord | <Phil> In reply to @privsec "nobody cares about your": I'm escalating this immediately to a 1 week timeout, feel free to come back once you've cooled down. |
| 20:33:47 | FromDiscord | <Elegantbeef> Shame you're just a insignificant troll that thinks he is the don rickles of discord |
| 20:34:20 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Those procedures operate on": Oh that's |
| 20:34:25 | FromDiscord | <Robyn [She/Her]> Yeah I didn't think of that :P |
| 20:34:33 | FromDiscord | <nnsee> damn it i missed the message |
| 20:34:42 | FromDiscord | <Robyn [She/Her]> In reply to @nnsee "damn it i missed": n-word was dropped |
| 20:34:49 | FromDiscord | <Robyn [She/Her]> IRC logs might have it |
| 20:34:51 | FromDiscord | <nnsee> go figure |
| 20:35:02 | FromDiscord | <leorize> btw `string` can be turned into `openArray[byte]` with `toOpenArrayByte` |
| 20:35:27 | FromDiscord | <Robyn [She/Her]> Wait it can? Huh, didn't know that! |
| 20:37:08 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Those procedures operate on": Wait I can't do that here, can I? Since I need to read the data from a stream, to `toOpenArrayByte` is what I want |
| 20:39:00 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=QWDXEubQedXI |
| 20:42:21 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "I guess start with": I'm realising this is a tad hard because nearly everything uses a string |
| 20:42:29 | FromDiscord | <Robyn [She/Her]> Though testing with raw numbers, seems to be fine |
| 20:42:56 | * | derpydoo joined #nim |
| 20:43:32 | FromDiscord | <Elegantbeef> you can do `s.readData(arr.addr, sizeof(T))` |
| 20:44:52 | FromDiscord | <Elegantbeef> Though you could also just do `var t = default(T); s.readData(t.addr, sizeof(T); t = fromBE(t)` |
| 20:45:02 | FromDiscord | <Elegantbeef> No need for any heap allocations here |
| 20:45:54 | FromDiscord | <Elegantbeef> Ideally there'd have been a `read[T: SomeOrdinal or enum or bool]` |
| 20:46:06 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Though you could also": Couldn't this cause issues with signed types? |
| 20:46:17 | FromDiscord | <Elegantbeef> How? |
| 20:46:50 | FromDiscord | <Elegantbeef> You're reading to an integer then reversing byte order, it's always a valid integer |
| 20:47:12 | FromDiscord | <Robyn [She/Her]> Endians2 disallows that because of this:↵> `## intX - over and underflow protection in nim might easily cause issues -` |
| 20:47:17 | FromDiscord | <leorize> minimize your problematic inputs first then↵(@Robyn [She/Her]) |
| 20:47:43 | FromDiscord | <Robyn [She/Her]> Anything to do with a string is where issues occur, already narrowed that down |
| 20:48:08 | FromDiscord | <Elegantbeef> Anyway use the array then |
| 20:48:24 | FromDiscord | <Robyn [She/Her]> I am so confused :p |
| 20:49:03 | FromDiscord | <leorize> what do you mean a string? |
| 20:49:23 | FromDiscord | <leorize> you mean your string dumper is wrong or what? |
| 20:52:30 | FromDiscord | <Robyn [She/Her]> Yeah, the string dumper is wrong, the issue occurs when I'm trying to read input that I've encoded to Modified UTF-8, despite all the tests for Modified UTF-8 passing, and the string parser also works correctly |
| 20:55:02 | FromDiscord | <leorize> then it sounds like your encoder is wrong |
| 20:58:03 | FromDiscord | <leorize> if you encode the problematic string, can you read it back correctly? |
| 20:59:46 | FromDiscord | <leorize> and I don't know why are you casting `seq[byte]` to `string` when you can just write the seq immediately |
| 21:00:12 | FromDiscord | <Robyn [She/Her]> That's the thing, I can, yeah |
| 21:00:26 | FromDiscord | <Robyn [She/Her]> Oh yeah that was me being a bit redundant ehe |
| 21:00:47 | FromDiscord | <leorize> right, then dump a single string node with that and read it back |
| 21:00:52 | FromDiscord | <leorize> is it an issue? |
| 21:01:04 | FromDiscord | <leorize> if so, analyze the bytes you write vs the bytes you should write |
| 21:01:50 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "right, then dump a": Alright! |
| 21:03:15 | * | junaid_ quit (Remote host closed the connection) |
| 21:04:28 | FromDiscord | <leorize> also, don't use hex for shifts |
| 21:04:29 | FromDiscord | <leorize> because they doesn't make much sense there |
| 21:05:03 | FromDiscord | <Robyn [She/Her]> I only use hex because the impls I was using used hex, but I'll change that later |
| 21:05:27 | FromDiscord | <Robyn [She/Her]> Okay so it streams like the `readString` and `writeString` functions work fine... I'll try the actual node now |
| 21:08:24 | FromDiscord | <Robyn [She/Her]> Also slightly unrelated but for some reason, the data written with `s.write(cast[string](data))` gives a different result than `s.write(data)` (the latter giving garbage bytes) |
| 21:08:39 | FromDiscord | <Elegantbeef> `s.write` writes the pointer |
| 21:08:54 | FromDiscord | <Elegantbeef> Atleast iirc there is no `write` override |
| 21:09:31 | FromDiscord | <Elegantbeef> Ah nvm there is a string override |
| 21:09:46 | FromDiscord | <Elegantbeef> But for any other type that's not a value type it'll write pointers which means garbage |
| 21:10:00 | FromDiscord | <Robyn [She/Her]> Ah |
| 21:10:22 | FromDiscord | <Robyn [She/Her]> ...hm, reading and writing the actual string node also works fine |
| 21:10:24 | FromDiscord | <Elegantbeef> In reality it should have something like https://github.com/beef331/traitor/blob/master/traitor/streams.nim#L55-L77 |
| 21:11:13 | FromDiscord | <Robyn [She/Her]> Okay so maybe the issue is unrelated to strings and is actually related to something a bit weirder |
| 21:13:10 | FromDiscord | <Robyn [She/Her]> Hm... Examining the binary data, there does seem to be slightly different outputs |
| 21:15:35 | FromDiscord | <Elegantbeef> It's very annoying that `s.write @[10, 20, 30]` works but in reality is just garbage |
| 21:16:52 | FromDiscord | <Robyn [She/Her]> Yeah fair :p |
| 21:21:03 | FromDiscord | <Elegantbeef> https://play.nim-lang.org/#pasty=ITRlrQXrysWA is just cursed |
| 21:21:54 | FromDiscord | <leorize> top 10 reasons not to use std/streams ig |
| 21:22:26 | FromDiscord | <Elegantbeef> Time to use traitor/streams and cry about there not being socket streams 😄 |
| 21:22:53 | FromDiscord | <leorize> streams shouldn't even think about serialization |
| 21:24:13 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "top 10 reasons not": I mean, I did write my own buffer type for the exact reason of disliking std/streams |
| 21:24:39 | FromDiscord | <Robyn [She/Her]> I wonder if rewriting this using my own buffer type would force me to think a bit more and solve this problem... Somehow |
| 21:26:10 | FromDiscord | <Elegantbeef> You think it should just allow you to pop primitives off? |
| 21:26:11 | FromDiscord | <Elegantbeef> Whenever Can.l decides to |
| 21:26:11 | FromDiscord | <adrian> does anybody know when owlkettle finally releases it's new version? |
| 21:26:11 | FromDiscord | <Elegantbeef> Until then for reproducible builds you can pin to the commit |
| 21:26:37 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Whenever Can.l decides to": Lol this was above adrian's message |
| 21:27:15 | FromDiscord | <Elegantbeef> It'd be nice if they just tagged a release with every few commits, but alas |
| 21:27:59 | FromDiscord | <Elegantbeef> Time for everyone to migrate to matrix |
| 21:28:10 | FromDiscord | <Elegantbeef> Solves 99.99% of our problems |
| 21:28:32 | FromDiscord | <Robyn [She/Her]> I think I might implement my custom buffer type instead of relying on streams, it's probably unrelated but yeaaah idk |
| 21:28:48 | FromDiscord | <Elegantbeef> Just go use traitor 😛 |
| 21:29:40 | FromDiscord | <Robyn [She/Her]> Naaah :P |
| 21:29:55 | FromDiscord | <Elegantbeef> Why not? |
| 21:30:47 | FromDiscord | <Robyn [She/Her]> I'm just a complicated persn :P |
| 21:38:59 | * | KhazAkar quit (Read error: Connection reset by peer) |
| 21:39:35 | * | KhazAkar joined #nim |
| 22:27:31 | FromDiscord | <Phil> In reply to @adrian "does anybody know when": From what I'm aware can.l is just massively busy atm |
| 22:27:45 | FromDiscord | <Phil> No clue when that'll end |
| 22:31:19 | * | advesperacit quit () |
| 22:56:13 | * | LuxuryMode_ joined #nim |
| 22:59:00 | FromDiscord | <Elegantbeef> Still feel like a git tag either major or minor is in order 😄 |
| 23:09:53 | * | jmdaemon quit (Quit: ZNC 1.8.2 - https://znc.in) |
| 23:10:30 | * | jmdaemon joined #nim |