101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

517
active users

#serde

0 posts0 participants0 posts today
Ype Kingma<p><span class="h-card" translate="no"><a href="https://meow.social/@mimir" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mimir</span></a></span> </p><p>This may not fit the 90% same machine situation but:</p><p>A few years ago, I looked around for IPC that would reliably scale to more than 1000 connections doing about 1 message/second with a few hundred bytes/message, and with forward secrecy. </p><p>The only thing that still fits that is <a href="https://mastodon.green/tags/UDP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UDP</span></a> (not TCP) over <a href="https://mastodon.green/tags/wireguard" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wireguard</span></a>. </p><p>For <a href="https://mastodon.green/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> udp means: do it yourself, no existing crates, allow for missing data, and <a href="https://mastodon.green/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> for the udp packet contents.</p>
Tomáš Slíž<p><span class="h-card" translate="no"><a href="https://mastodon.social/@davedelong" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>davedelong</span></a></span>, they mention <span class="h-card" translate="no"><a href="https://social.rust-lang.org/@rust" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>rust</span></a></span> <a href="https://iosdev.space/tags/Serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serde</span></a> framework, so they are not too far from your idea.</p><p>“The Serde ecosystem consists of data structures that know how to serialize and deserialize themselves along with data formats that know how to serialize and deserialize other things.”</p>
Jons Mostovojs<p>If you're in King's Hall at <a href="https://social.doma.dev/tags/RustNationUK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustNationUK</span></a>, I found the crate Adam Harvey told us not to post on the social media about!</p><p><a href="https://deps.dev/cargo/serde" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">deps.dev/cargo/serde</span><span class="invisible"></span></a></p><p><a href="https://social.doma.dev/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> <a href="https://social.doma.dev/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://social.doma.dev/tags/rustnation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustnation</span></a></p>
argv minus one<p><span class="h-card"><a href="https://hachyderm.io/@fasterthanlime" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>fasterthanlime</span></a></span> </p><p>I see I'm not the only one who pronounces <a href="https://mastodon.sdf.org/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> in a way that rhymes with “merde”.</p>
Kat Marchán 🐈<p><a href="https://github.com/kdl-org/kdl-rs/pull/83" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/kdl-org/kdl-rs/pull</span><span class="invisible">/83</span></a></p><p>the work has begun to add <a href="https://toot.cat/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> support to <a href="https://toot.cat/tags/kdl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kdl</span></a> rs!</p><p>It'll take me a bit, but the parser refactor that'll let me do this is going well.</p><p>anyway this is all very exciting because I think not being able to use serde has tbh been a huge blocker for folks adopting kdl in Rust</p>
balletproof vest<p>Coding question: is there something for <a href="https://beach.city/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> like <a href="https://beach.city/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> where the serialized version of the data can be a format you define, not Just Fucking JSON</p><p>Before you ask: no I can't change the format to JSON, it's hardcoded into this DVD player I have. Yes, you read that right.</p>
Larry Garfield<p>I've just tagged a new release of Crell/Serde, version 1.2.</p><p>This release includes support for Unix timestamps, makes TypeFields more flexible and customizable, and fixes an issue with handling null values. Note that the latter fix has a very small BC break that only impacts a select number of custom Importers, so odds are you won't notice.</p><p>Get it while it's hot!</p><p><a href="https://github.com/Crell/Serde" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Crell/Serde</span><span class="invisible"></span></a></p><p><a href="https://phpc.social/tags/Serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serde</span></a> <a href="https://phpc.social/tags/Serialization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serialization</span></a> <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a></p>
Yellow Flag<p>And I’ve thrown out that solution again. Instead of messing with <code>serde::Deserialize</code> which never quite works as it should, I’ve decided to extend the API and support flattened structs properly. I’ve added my solution to <a href="https://github.com/serde-rs/serde/issues/2186#issuecomment-2143387697" rel="nofollow noopener" target="_blank">this already much too long thread</a> where lots of people spent lots of time trying to make things somehow work with Serde’s APIs.</p><p><a href="https://infosec.exchange/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> <a href="https://infosec.exchange/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a></p>
Yellow Flag<p>I finally managed to create a <code>serde::Deserialize</code> implementation that would support <code>flatten</code> and <code>deny_unknown_fields</code> at the same time. The issue was mostly how the Serde API makes this task difficult for no good reason from what I can tell.</p><p>I sort of see why it has to be static strings everywhere, but why static slices as well? That’s an implementation detail of the default implementation and IMHO not actually required anywhere. And why is it so hard to get to the list of fields supported by an implementation?</p><p>I guess this use case was never a priority, but configuration files where a typo in a field name won’t be recognized are a major PITA…</p><p><a href="https://infosec.exchange/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> <a href="https://infosec.exchange/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a></p>
Mo Bitar :ferris:<p>🚩 SAVE THE DATE</p><p>My online talk about how to speed up <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> serialization with <a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> by up to 2.25x 🚀</p><p>What to expect:<br>🙂 A simple example with JSON<br>🧐 How serialization in serde works<br>🛠️ Manually implementing the Serialize trait<br>🌟 Serialization with the newtype pattern<br>⏱️ Benchmarking with divan<br>🤔 Discussing the overhead of allocations</p><p>On Tuesday, 20 February at 13:00 CET</p><p><a href="https://lunch.rs/meetups/2024-02-20" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lunch.rs/meetups/2024-02-20</span><span class="invisible"></span></a></p><p>Boost? 🥰</p><p><a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <span class="h-card" translate="no"><a href="https://hachyderm.io/@hds" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>hds</span></a></span></p>
Larry Garfield<p>I've just tagged the 1.1 release of <a href="https://phpc.social/tags/Serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serde</span></a> for <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a>. Now with improved value object support, so you can deserialize properties directly into their own validated value object!</p><p><a href="https://github.com/Crell/Serde" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Crell/Serde</span><span class="invisible"></span></a></p><p><a href="https://phpc.social/tags/Serialization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serialization</span></a> <a href="https://phpc.social/tags/OSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OSS</span></a></p>
Mo Bitar :ferris:<p>Faster Rust Serialization 🚀 </p><p><a href="https://mo8it.com/blog/faster-rust-serialization" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mo8it.com/blog/faster-rust-ser</span><span class="invisible">ialization</span></a></p><p>A blog post about avoiding allocations and improving the performance of serialization in <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a>!</p><p>It doesn't only apply to JSON, but to any <a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> serializer.</p><p>The example in the blog post shows a speedup of up to 2.25x 🤯</p><p>Feedback welcome :blobcatheart:</p><p><a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a></p>
Chris Gioran 💔<p>Can anyone shed some light on why serde_json doesn't have a Serialize::to_slice() that accepts an externally provided buffer? </p><p>serde_json_core has it and that's what I'll use. I guess my question is why serde_json_core would have this method but serde_json wouldn't.</p><p><a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> <a href="https://fosstodon.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Chris Gioran 💔<p>Today's <a href="https://fosstodon.org/tags/glowdust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>glowdust</span></a> development livethread - finish the function serialization/deserialization code. </p><p>Yesterday I left things halfway done with the deseralization of the function definitions and value storage. I couldn't figure out how to take a json map and pass it down the <a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> chain. That's the first thing I'll need to figure out. The rest should be easy.</p>
Mo Bitar :ferris:<p>Now that the <a href="https://fosstodon.org/tags/Serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serde</span></a> issue is resolved by removing the binary, I want to thank <span class="h-card"><a href="https://mastodon.social/@decathorpe" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>decathorpe</span></a></span> again, not only for reporting the issue, but also for all his efforts in the <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> and <a href="https://fosstodon.org/tags/Fedora" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fedora</span></a> communities ❤</p><p>For others: Please don't call things like this "drama" again. This is pushing back against mistakes that would affect the whole community. I love how much the community cares and that such problems are not ignored 🥰</p><p>We are not here to only get things done, we are building a future ❤</p><p><a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a></p>
Michael van Niekerk 🦀 ☕️ ⚛<p>After the big <a href="https://techhub.social/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a> ruckus, @dtolnay made this Pre-RFC, which is frankly brilliant if it were to be implemented as such.</p><p>Basically 1) compile macros to WASM 2) WASM runtime keeps WASM script to only make source tokens (no network calls, etc).</p><p><a href="https://internals.rust-lang.org/t/pre-rfc-sandboxed-deterministic-reproducible-efficient-wasm-compilation-of-proc-macros/19359" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">internals.rust-lang.org/t/pre-</span><span class="invisible">rfc-sandboxed-deterministic-reproducible-efficient-wasm-compilation-of-proc-macros/19359</span></a></p><p><a href="https://techhub.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Ivan Enderlin 🦀<p>Rust devs push back as Serde project ships precompiled binaries, <a href="https://www.bleepingcomputer.com/news/security/rust-devs-push-back-as-serde-project-ships-precompiled-binaries/" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">bleepingcomputer.com/news/secu</span><span class="invisible">rity/rust-devs-push-back-as-serde-project-ships-precompiled-binaries/</span></a>.</p><p>A short summary of what’s happening around serde right now in Rust.</p><p><a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>serde</span></a></p>
Mo Bitar :ferris:<p>dtolany's dictatorship…</p><p><a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://fosstodon.org/tags/Serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serde</span></a></p>
Larry Garfield<p>Based on the discussion here and in the PR, I've gone ahead and completed the PR to support null values in <a href="https://phpc.social/tags/Serde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Serde</span></a>. If you use it currently, please review and make sure it doesn't break more than I already know it does. 🙂 <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> I'll probably merge in a week or so, baring any contrary reviews.</p><p><a href="https://github.com/Crell/Serde/pull/25" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">github.com/Crell/Serde/pull/25</span><span class="invisible"></span></a></p>
Matt CampbellRust drama