Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mizah, to rust
@mizah@macrofurs.social avatar

Wait what.

fn main() {<br></br>    // Declare a variable binding<br></br>    let a_binding;<br></br><br></br>    {<br></br>        let x = 2;<br></br><br></br>        // Initialize the binding<br></br>        a_binding = x * x;<br></br>    }<br></br><br></br>    println!("a binding: {}", a_binding);<br></br><br></br>    let another_binding;<br></br><br></br>    // Error! Use of uninitialized binding<br></br>    println!("another binding: {}", another_binding);<br></br>    // FIXME ^ Comment out this line<br></br><br></br>    another_binding = 1;<br></br><br></br>    println!("another binding: {}", another_binding);<br></br>}<br></br>

Since when is this a thing?

https://doc.rust-lang.org/rust-by-example/variable_bindings/declare.html

algebraicterror,
@algebraicterror@witter.cz avatar

@mizah surprised me too
also works with dyn references btw: https://rust-unofficial.github.io/patterns/idioms/on-stack-dyn-dispatch.html

jplatte,
@jplatte@social.tchncs.de avatar

@mizah Pretty sure this is a pre-Rust 1.0 thing. You can even initialize the binding in all branches of a match / if-else and use it afterwards.

Also: you can initialize a binding only in one branch, the value can be used only in that branch, but will be dropped at the enclosing scope of the let.

mizah, to rust
@mizah@macrofurs.social avatar

It continues to surprise me how, with just kinda works once it compiles...

Yeah, not a 100% success rate, but... It's still surprisingly good at forcing you to put the square pegs into the square holes.

mizah, to rust
@mizah@macrofurs.social avatar

I legit am kinda blown away by how much functionality I'm getting from Rust-Analyser.

I always thought I needed a full-blown IDE to get autocompletion, code actions, adding import/use statements, function extraction, inlining, etc...

How long have I been missing out on this?

mizah, to rust
@mizah@macrofurs.social avatar

Been working on a little client!

https://codeberg.org/Mizah/Dergchat

Still very early-days, but I'm having fun making it!

XMPP chat about it: xmpp:dergchat@conference.mizah.xyz?join

mizah,
@mizah@macrofurs.social avatar

@badrihippo There's one in the Codeberg readme :3

badrihippo,
@badrihippo@fosstodon.org avatar

@mizah oops! I was so excited I scrolled down before the picture had time to load 😅

mizah, to rust
@mizah@macrofurs.social avatar

Hmm... I kinda wanna post about my XMPP project, but as much as I love Macrofurs, it just... doesn't quite seem entirely proper to post it from here?

Any instance recommendations?

Or just... "Post it from Macrofurs.social, you coward."

#rust #instancereccommendations #xmpp

lpwaterhouse,
@lpwaterhouse@ioc.exchange avatar

@mizah Given how many excellent tech posts I regularly see coming (tag-subscriptions are really helpful) from lgbtqia+, fur, hornyonmain, poly, and lewd (and a whole slew of other things I just forgot to mention) instances and accounts, I'd say: Go for it =^_^=

mizah, to Signal
@mizah@macrofurs.social avatar

How is signal-desktop over 400MiB? It's... a chat app?

arch,
@arch@floofy.tech avatar

@mizah Electron is a hell of a drug

mizah, to fediverse
@mizah@macrofurs.social avatar

Anyone see anything particularly objectionable about this record that'd make Mastodon deny this record's very existence? (it gives a 404 not found)

{<br></br>  "context": [<br></br>    "https://www.w3.org/ns/activitystreams",<br></br>    "https://w3id.org/security/v1"<br></br>  ],<br></br>  "id": "https://floatsocial.mizah.xyz/users/mizah",<br></br>  "inbox": "https://floatsocial.mizah.xyz/users/mizah/inbox/",<br></br>  "preferredUsername": "mizah",<br></br>  "publicKey": {<br></br>    "id": "https://floatsocial.mizah.xyz/users/mizah#main-key",<br></br>    "owner": "https://floatsocial.mizah.xyz/users/mizah/",<br></br>    "publicKeyPem": "-----BEGIN PUBLIC KEY-----nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyKR41N0v5zbLa2UT+8LunrgIzWdxzRato3AWsslD4+0cArpTLzGe9fyT3Bi820Ow+5DOTeYSv/E2tqJa8SaivnVKntwWhgWmqOtzvdkgv1c03kbqrH5ScGXnjV5Fzu5Dpf4Pjp//llZomxU/Nf4bKInBiuRiSeyGCvblREj6Z27se94K+6EmhkeXbk0364EJjlaDdq5Xd5NO+dz6+aeQiqdn+PpizIzYwHXBusbMzVExSGHlKi7bp2H6+IEo88/YwlBL6HLDhZO8N/yeVCwkjX3nnYbNduCp71qaJTN/yb8sa463RcsO1d32fk6pEukXmDvgJIqYfzY+OdIK2idfM4QBKnqQIDAQABn-----END PUBLIC KEY-----n"<br></br>  },<br></br>  "type": "Person"<br></br>}<br></br>

Trying to follow this blog post: https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/

#activitypub #mastodon #programming #mastodev #activitypubdev

mizah, to NixOS
@mizah@macrofurs.social avatar

Hey people, I'm trying to run but it's having an issue with the TLS certificates.

I see that the key.pem file is owned by acme nginx, and it's set to group-readable. (Yes, I'm running nginx as well on this server and would like to keep it.)

Obviously, Prosody can't read that file... What's the "right" way to do that? Set Prosody's group to nginx? Or set up an extra group? Or...?

sandro,
@sandro@c3d2.social avatar

@mizah Set prosodys extra group to the one that allows reading acme certs

mizah, to gamedev
@mizah@macrofurs.social avatar

Me: Wants to add sound to my game.
Also me: Knows not the first thing about sound design.

Like... I added a few menu button blip sounds, but the immediate first thing I notice is how it makes everything else sound so quiet...

Where the heck do I even start?

mizah, to gamedev
@mizah@macrofurs.social avatar
mizah, to NixOS
@mizah@macrofurs.social avatar

Anyone on got experience running Proton games?

I'm trying to get to run but it's just... sitting there. Says "Launching".

I'm not seeing any terribly obvious issues in the logs... It just... Sits there...

Anything I can poke at that might clear things up?

mizah,
@mizah@macrofurs.social avatar

@mattcarrier Well yeah... But it's so fucking weird.

I'm not even sure what I changed. Same with with Mashinky earlier this month...

Just a bunch of poking, doing the same thing over and over and over...

...then it suddenly works.

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@mizah @mattcarrier Also worth noting: As a rule of thumb I always reboot after Steam updates itself. I have found there's a very good chance of games not launching properly in the same session as an update.

mizah, to random
@mizah@macrofurs.social avatar

Looking to try out

Any server recommendations?

I'd self-host, but one thing at a time...

mizah, to opensource
@mizah@macrofurs.social avatar

Hey people, got anything fun that you could have some extra help with?

I'm kinda coding solo a lot of the time and I wanna learn how to function more in a cooperative environment, but I dunno where to start and the larger projects are a bit intimidating.

mizah,
@mizah@macrofurs.social avatar

@erlend

I can do "for leaning purposes", learning is exactly what I'm trying to do.

Building on top of Matrix? Do you mean it'll be interoperable, or use the same protocols?

I gotta say I'm not terribly thrilled with Matrix as a protocol; especially their idea of E2E encryption is a bit... meh, IMHO, since it pertains only to the message body (metadata and emoji reactions are in plaintext) and it's honestly way too technical for average users, though the latter should be fixable implementation-side since it's mainly a UX problem.

erlend,
@erlend@writing.exchange avatar

@mizah Playa isn’t doing anything with Matrix so that should suit you just fine :)

mizah, to gamedev
@mizah@macrofurs.social avatar

A game where you fly through an infinite tunnel at an increasingly fast speed and see how long you can avoid crashing into the walls.

Gimme name suggestions... Tunnelshot is a bit generic. Menu screen is a bit bland.

Gimme some ideas!

A screenshot of a first-person view of flying through a tunnel. The tunnel is syled using randomized, dark colors with white wireframe edge highlights.

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