@refi64@refi64.social titelbild
@refi64@refi64.social avatar

refi64

@refi64@refi64.social

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

karolherbst , an Random Englisch
@karolherbst@chaos.social avatar

anyway, some 🦀 content today:

I'm considering using serde in rusticl, however my use case is not to parse arbitrary data, but always structs with no custom data allowed. In short: the struct defines the data layout.

And we have some helpers in mesa dealing with reading/writing data to a blob.

So I'm wondering if a custom serde serialize/deserializer is what I want, or if I want something more special/focused as serde seems to be too generic for my use case here.

refi64 ,
@refi64@refi64.social avatar

@karolherbst @matt
Depending on the exact constraints & whether or not you're tied to existing data formats, this almost sounds like a use case for something more like bytemuck's Pod types or rkyv?

fasterthanlime , an Random Englisch
@fasterthanlime@hachyderm.io avatar

Nix friends!

How do I have:

  • flake.nix
  • subdir/flake.nix

And use subdir's flake from the top-level flake? path: used to accept relative paths but now complains with "cannot fetch input"

refi64 ,
@refi64@refi64.social avatar

@fasterthanlime
I actually use this in my home-manager setup!

But I have absolutely zero idea how I did it. Whenever I set it up on a new system I run some random flake update commands with some random protocols and at some point it starts working?

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine