2
submitted 3 months ago by fzz@programming.dev to c/rust@lemmy.ml

cross-posted from: https://programming.dev/post/15696807

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

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 4 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.

5
Lifetime of a game (mastodon.gamedev.place)
submitted 4 months ago* (last edited 4 months ago) by fzz@programming.dev to c/gamedev@programming.dev

Developer — “From start to the latest patch”
;

Publisher — “From deal to while the sales are at an acceptable level or the terms of the contract have not yet been fulfilled”;


Gamer — “Since I found out about the game and while I come back to it and play”.

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

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 I’m tired of looking at the dull 90⭐️. Seriously, could you please throw me into the trends of the github, please! ❤️‍🔥

Project repository, mastodon.

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? 🤦🏻‍♂️

241
23
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 11 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.

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 4 points 10 months ago* (last edited 10 months ago)

Kind of destiny 🤦🏻‍♂️

I started programming when I was in primary school. And I liked it very much, even though I didn't understand much even then. But it was impossible to stop and here I am writing this after about 30+ years.

What exactly attracted me - my father soldered a Russian clone of the Sinclair ZX Spectrum, showed me a couple of games loaded from a tape cassette, and I was curious how it works.

[-] 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 9 points 1 year ago

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

[-] 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