21
submitted 3 months ago by fzz@programming.dev to c/rust@programming.dev

That was a hard long adventure, massive refactoring with bug-fixing 🥵

[-] fzz@programming.dev 7 points 3 months ago

Trying to reduce compilation time, reconfiguring underlying cargo’ build-ctx or just riding off the context and using only build-plan and metadata by host cargo & rustc in the cargo-playdate tool.

66
submitted 4 months ago by fzz@programming.dev to c/rust@programming.dev

#rust #rustlang

18
submitted 4 months ago by fzz@programming.dev to c/apple@lemmy.ml

I really love and regularly use a split keyboard.

I’ve been hoping to fix these bugs for many years, for a very long time. The bug has been reported many times by me and other suffering users. No changes in all these years.

1
submitted 4 months ago* (last edited 4 months ago) by fzz@programming.dev to c/rust@programming.dev

I’m working on a big project in #Rust, there is toolset and API for #Playdate.

All going great, moving to stabilization step by step, but so tired of looking at the dull amount ⭐️.

Project repository, mastodon.

[-] fzz@programming.dev 11 points 5 months ago

Did author knows about difference between static and dynamic dispatch? 🤦🏻‍♂️

24
submitted 8 months ago by fzz@programming.dev to c/rust@programming.dev

Just discovered a f*-incredibly useful thing!

Lib.rs Maintainer Dashboard is like brew doctor but for your crates on crates.io & docs.rs ❤️‍🔥

It shows outdated deps, docs build errors and a lot of other various things - for all of your crates.

I'm thrilled with the find!

[-] fzz@programming.dev 13 points 9 months ago

Unison stores code in a database.

🫣🤨

[-] fzz@programming.dev 12 points 10 months ago* (last edited 10 months ago)

Not Electron but yes unfortunately. It uses Ionic that isn’t native, but as declared “native-quality”, that means “mostly looks like native” but that’s not so 🤷🏻‍♂️. But anyway Voyager is cool. It could be really better with real native UI onboard of course.

[-] fzz@programming.dev 11 points 10 months ago

I love ligatures and Fira Code (retina) is the best and absolutely comfortable for me.

[-] fzz@programming.dev 5 points 10 months ago

Ah! 😣 Why not nest or self-hosted pijul!?

10
submitted 10 months ago* (last edited 10 months ago) by fzz@programming.dev to c/voyagerapp@lemmy.world

Could be awesome to support app invocation from browser (or any) with url of a post/community/etc.., if host in the url is lemmy instance.

In details, there’s two options:

  1. Isolated app-only url schema, like “lemmy://lemmy.ml/a/some”
  2. Universal, same as implemented in other apps like YouTube, Twitter, GitHub. It should catch urls starting with any-of host of list of lemmy hosts.

Second option is better.

Actual list of hosts can be determined from https://fedidb.org/ or https://www.fediversesearch.com/ and also, I suppose, can be hardcoded to app/bundle manifest at compile-time.

[-] fzz@programming.dev 8 points 10 months ago* (last edited 10 months ago)

More langs for the God of Langs!

[-] fzz@programming.dev 33 points 10 months ago

More than ten years ago, I was a team-lead in a game development company and during another crunch I was very overloaded with tasks, including a code review. And of course, I missed some things. We optimized the game, which in general did not do 30 fps on the target machine with minimum requirements, and the target was at least 40 fps. During the month, we jointly optimized everything so that we were able to achieve almost stable 40 frames, but this was not enough and periodically there were drawdowns up to 15-20 fps. Everyone is in panic, there are no ideas, we’re optimized everything.

No, I understand that there is no optimization limit apriori, but I mean an adequate opts without rewriting everything to assembler specifically for all supported architectures.

So, one night I looked into the event loop initialization and found that the initialization happens twice. Twice. Two parallel event loops. That is, two parallel cycles of logic and state updates. That night, by deleting one line, I optimized the performance of the game by more than 100%. 🤦🏻‍♂️

I investigated and found out that this line of secondary initialization was left by junior "for debugging" and forgotten in the crunch. And I missed it on the review.

I’ve keep this story a secret all these years. And now I'm not revealing names. Otherwise, it can have a dramatic impact on the careers of many.

[-] fzz@programming.dev 6 points 10 months ago

❤️‍🔥

14
Spoiler syntax in post (programming.dev)
submitted 10 months ago by fzz@programming.dev to c/voyagerapp@lemmy.world

There’s link to the post with spoiler that doesn’t supported by Voyager.

It could be great for the app to show a normal spoiler.

8
submitted 10 months ago* (last edited 10 months ago) by fzz@programming.dev to c/python@programming.dev

I've just create a little script to install pip in the latest Pythonista with comfort configuration, as I suppose.

This could probably be useful to someone other than me.

screenshotsIMG_0572 1 2 3


❤️‍🔥

[-] fzz@programming.dev 6 points 10 months ago

I’m sure we need a bot for lemmy or entire fediverse that will search posts like this 👆 and do comment with “normal” link. That will be great. I saw something like that in the Masto for YouTube.

[-] fzz@programming.dev 10 points 1 year ago

Hmm 🤔 something new for me. I’m in love with exa. What’s wrong with that?

20

I just published futures-concurrency v7.4.1 which adds support for lending iteration on the newly added Group types!

https://github.com/yoshuawuyts/futures-concurrency/releases/tag/v7.4.1

This should replace the final remaining use there was for select!, meaning we now have structured alternatives for all kinds of concurrency operations you could possibly want to express.

[-] fzz@programming.dev 15 points 1 year ago* (last edited 1 year ago)

Testing interface is not about exactly interface as language’s feature. It’s about testing outer public interface (public API) of you things, looking at it as a black-box and doesn’t matter what happens inside. That's all it means.

view more: next ›

fzz

joined 1 year ago