@decathorpe@mastodon.social titelbild
@decathorpe@mastodon.social avatar

decathorpe

@decathorpe@mastodon.social

Blue Hat Rustacean 🦀 with a Computer Science degree 🎓

I write Rust and Python, and maintain lots of RPM packages for Fedora Linux. Fedora Packaging Committee (FPC) member. Previously also Engineering Steering Committee (FESCo) member.

Fluent in English and German. He/Him. 🏳️‍🌈🇦🇹🇪🇺

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.

decathorpe ,
@decathorpe@mastodon.social avatar

@karolherbst if you don't need to be generic over different data types, writing your own derive macro might be the solution that produces the most efficient code ... /me hides

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

uhh, so a few days ago I found out, that passing structs by value in through OpenCL C or SPIR-V in fact doesn't pass the argument by value.

Turns out we don't handle the SPIR-V "ByVal" Function Parameter Attribute...

this might explain a few bugs I've seen in the past...

decathorpe ,
@decathorpe@mastodon.social avatar

@karolherbst it's awesome to see rusticl improve so quickly. basically in real-time :) thank you for the work you do!

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

rustc 1.78 is great, it already found one bug in #rusticl :)

decathorpe ,
@decathorpe@mastodon.social avatar

@karolherbst and there you were, having fun dereferencing unaligned pointers? 😄

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