Discussion
Loading...

Discussion

  • Log in
  • Sign up
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Asta [AMP]
Asta [AMP]
@aud@fire.asta.lgbt  ·  activity timestamp 5 months ago

that is some ugly rust I have written, but at least I can now create UUIDv4s from /dev/urandom without having serde anywhere in the dependency chain.

  • Copy link
  • Flag this post
  • Block
Federation Bot
Federation Bot
@Federation_Bot  ·  activity timestamp 5 months ago

@aud HEY FUCK YEAH

  • Copy link
  • Flag this comment
  • Block
Asta [AMP]
Asta [AMP]
@aud@fire.asta.lgbt  ·  activity timestamp 5 months ago

the bad part about being totally fine jumping between different programming languages is being like, ugh, I keep trying to write {language X} in {language Y} and it's just annoying.

anyway this is basically me just converting some Chapel code I wrote like 6 years ago into Rust. Read em and weep (at how bad and ugly it is): https://codeberg.org/Astatide/osiris/src/branch/main/crates/uuid/src/lib.rs

(do I need to make each terribly named field of the UUID struct a character array? Probably not, but they are fixed size and while I'm sure there's something else decently fast... also that fmt function is nasty)

  • Copy link
  • Flag this comment
  • Block
Instance logo
bonfire.cafe
Log in Create account
Banner for bonfire.cafe

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire bovenjan · 1.0.3-alpha.10 no JS en
Federation disabled
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct

Install bonfire.cafe

Get the full app experience

1 Tap Share 2 Add to Home Screen