Crell, to php
@Crell@phpc.social avatar

I've just tagged a new release of Crell/Serde, version 1.2.

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.

Get it while it's hot!

https://github.com/Crell/Serde

chrisphan, to rust
@chrisphan@hachyderm.io avatar

Question for #RustLang programmers out there: Now that serde-yaml is no longer maintained, what package should I be using to parse #yaml?

https://github.com/dtolnay/serde-yaml/commit/3ba8462f7d3b603d832e0daeb6cfc7168a673d7a

(NOTE: This post is neither a complaint nor an invitation to complain about an individual's decision to stop providing volunteer labor in the form of maintaining his package.)

#Rust #Serde #SerdeYaml

Crell, to php
@Crell@phpc.social avatar

The interview I did on Crell/ is now available in German!

https://entwickler.de/php/serde-php-8-bibliothek

hds, to rust
@hds@hachyderm.io avatar

Join us next week at Rust for Lunch! The virtual #rust meet-up that fits into your lunch-break.

https://lunch.rs/meetups/2024-02-20/

We’ll have a talk from @mo8it on Faster Rust Serialization.

See you there?

#rustlang #rustMeetup #RustForLunch

mo8it,
@mo8it@fosstodon.org avatar

🚩 SAVE THE DATE

My online talk about how to speed up #Rust serialization with #serde by up to 2.25x 🚀

What to expect:
🙂 A simple example with JSON
🧐 How serialization in serde works
🛠️ Manually implementing the Serialize trait
🌟 Serialization with the newtype pattern
⏱️ Benchmarking with divan
🤔 Discussing the overhead of allocations

On Tuesday, 20 February at 13:00 CET

https://lunch.rs/meetups/2024-02-20

Boost? 🥰

#RustLang @hds

Crell, to php
@Crell@phpc.social avatar

I've just tagged the 1.1 release of for . Now with improved value object support, so you can deserialize properties directly into their own validated value object!

https://github.com/Crell/Serde

Crell, (edited ) to php
@Crell@phpc.social avatar

devm.io interviewed me about Crell/ , my serialization library.

https://devm.io/php/php8-library-serde-interview-larry-garfield-001

stchris, to rust

I am quite proud of myself for having implemented a custom #serde Deserializer because the toml one wasn’t doing what I wanted. It cleans up my other code quite a bit. #rust #rustlang

sgued, to rust
@sgued@pouet.chapril.org avatar

Glad to see my 2 years old PR being merged into serde-bytes.

Now it supports [u8; N] !

As an added bonus the latest release also fixes an issue I raised a while ago. [serde(with = "serde_bytes")] now works even when the alloc feature is disabled.

https://github.com/serde-rs/bytes/pull/28

#rust #rustlang #serde

Crell, to php
@Crell@phpc.social avatar

Nice shout-out to #Serde in this dev.to article on value objects:

https://dev.to/cnastasi/value-objects-in-php-8-building-a-better-code-38k8

#PHP

happyborg, to rust
@happyborg@fosstodon.org avatar

New #vdash feature ✅ 🥳

This was a challenge and first time using #serde, so expected to take weeks (elapsed).

Thanks to the #Rust ecosystem, its awesome macros and serde's comprehensive type support it took a few days. 😱

More testing and tidying to do, but the really complex tricky stuff works.

To do this in the past would have been a large, complex, error prone task. I know because I've done it, save/load of a tree of complex structs including vectors, hashmaps and other library types.

happyborg, to rust
@happyborg@fosstodon.org avatar

I've done all the non #serde infrastructure needed to add save and restore checkpoints to #vdash which leaves... the core serialisation and de-serialisation of my safenode metrics structures, some of which are quite complex.

I'm hoping, and fairly confident that almost all of it will be able to use serde's built in type support. 🤞

Programming in #Rust is pretty awesome like that, but we'll see.

happyborg, to rust
@happyborg@fosstodon.org avatar

I'm about to venture into the wilds of for the next enhancement to and stumbled on an excellent article from @mo8it about improving serialization performance.

It happens to be a great introduction to using as well as how to speed the whole process up considerably.

https://mo8it.com/blog/faster-rust

mo8it, to rust
@mo8it@fosstodon.org avatar

Faster Rust Serialization 🚀

https://mo8it.com/blog/faster-rust-serialization

A blog post about avoiding allocations and improving the performance of serialization in #Rust!

It doesn't only apply to JSON, but to any #serde serializer.

The example in the blog post shows a speedup of up to 2.25x 🤯

Feedback welcome :blobcatheart:

#RustLang

Crell, (edited ) to php
@Crell@phpc.social avatar

I've just tagged the 0.7.0 release of #Serde for #PHP, with a big set of bug fixes and new features. This is the last release before 1.0.0 comes out sometime in the next week.

Come see its official release presentation at @longhorn PHP! Tickets are still available.

https://github.com/Crell/Serde

https://www.longhornphp.com/

chrisg, to rust
@chrisg@fosstodon.org avatar

Can anyone shed some light on why serde_json doesn't have a Serialize::to_slice() that accepts an externally provided buffer?

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.

#serde #rust #rustlang

sgued, to rust
@sgued@pouet.chapril.org avatar
janriemer, to rust
mo8it, to rust
@mo8it@fosstodon.org avatar

Now that the issue is resolved by removing the binary, I want to thank @decathorpe again, not only for reporting the issue, but also for all his efforts in the and communities ❤

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 🥰

We are not here to only get things done, we are building a future ❤

beandev, to rust German
@beandev@social.tchncs.de avatar

#fefe amüsiert sich, dass #Rust kein Bootstrap from Sources hat und OCaml das ja schon seit jeher vormacht.

Das in der #serde Diskussion.

  1. Das eine hat mMn mit dem anderen überhaupt nichts zu tun.

  2. rustc ist in #Rust geschrieben und erfordert also einen rustc Compiler zum Compilieren.

  3. OCaml benötigt ebenfalls Binaries zum Bootstrappen

  4. OCaml bietet, wie Rust eine normale Binary Installation

  5. Rust hat Bootstrap Crates

Das mit serde ist Mist, blöde Polemik auch.

mvniekerk, to rust
@mvniekerk@techhub.social avatar

Seems like the #serde #rustlang situation turned back to sanity.

The mystery meat binary has been removed.

https://github.com/serde-rs/serde/releases/tag/v1.0.184

hywan, to rust
@hywan@fosstodon.org avatar

Rust devs push back as Serde project ships precompiled binaries, https://www.bleepingcomputer.com/news/security/rust-devs-push-back-as-serde-project-ships-precompiled-binaries/.

A short summary of what’s happening around serde right now in Rust.

#RustLang #serde

janriemer, (edited ) to rust

Well, this didn't take long 😬

serde-deblobbed: Fork of serde-rs without binary blobs
https://github.com/commons-rs/serde-deblobbed

Can someone design a logo for this please that shows a blob emoji that is crossed out.😄

Edit: I've made a logo and opened an issue:
https://github.com/commons-rs/serde-deblobbed/issues/1

🤓

#Rust #RustLang #Fork #Serde

berkes, to python
@berkes@mastodon.nl avatar

I've been doing #python these last days. And I hate it.

Runtime and env management is just as bad as Ruby. Dependency management is even worse than Ruby's.

No brackets, but indentation, means all the bracket pair features in vim, hardwired in my brain, don't work. Auto indentation isn't possible, bc brackets to derive the indentation from isn't there.

Aligning chained methods, large argument or param lists a pain, bc the indentation changes the meaning.
foo.bar() <> foo
.bar()

1/2

Stark9837,
@Stark9837@techhub.social avatar
zenforyen,

@Stark9837 @berkes @radon @Python yeah I saw that too, did not get why it's so hard to make it optional. Security or not, what about cross-platform support for non-mainstream architectures? Do they build for every supported target? I like , but that's at the very least a weird move.

Crell, to php
@Crell@phpc.social avatar

Should a serializer differentiate between null and uninitialized? Right now does not, and... I am not convinced that it should.

Discussion: https://github.com/Crell/Serde/pull/25

Crell,
@Crell@phpc.social avatar

Based on the discussion here and in the PR, I've gone ahead and completed the PR to support null values in #Serde. If you use it currently, please review and make sure it doesn't break more than I already know it does. 🙂 #PHP I'll probably merge in a week or so, baring any contrary reviews.

https://github.com/Crell/Serde/pull/25

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines