Readit News logoReadit News
tryfinally commented on Technicalities of Homeworld 2 Backgrounds   simonschreibt.de/gat/home... · Posted by u/todsacerdoti
moritonal · 6 months ago
Okay, I actually found the presentation, if you want a laugh (/ be impressed at game that's >20 years old), here you go https://docs.google.com/presentation/d/e/2PACX-1vR18QhznFBRK....
tryfinally · 6 months ago
Thanks, this made my day! No wonder your pitch was a success.
tryfinally commented on Vaultwarden: Unofficial Bitwarden compatible server written in Rust   github.com/dani-garcia/va... · Posted by u/thunderbong
tryfinally · a year ago
I've been self-hosting this for years now, works flawlessly.
tryfinally commented on C# almost has implicit interfaces   clipperhouse.com/c-sharp-... · Posted by u/mwsherman
masklinn · a year ago
In my experience this really is not an issue. There’s an intentionality to using objects and you’re not a maddened fuzzer trying to plug random objects into arbitrary functions with no rhyme or reason.

It’s essentially a less likely version of using the wrong callback, something which has undoubtedly happened in the fullness of time but is of no real concern.

No in my opinion the issue is the opposite: implicit structural interfaces make it harder to discover what interfaces a type implements, and what you can do with it.

A secondary effect being that mismatches have worse reporting, whether you’re trying to implement an interface or the interface has changed from under you the compiler only reports use site so from there you have to did out what the type is and why it does not conform anymore, things get worse if side casts are involved. There’s actually a pattern for checking conformance:

    var _ Iface = (*Type)(nil)
Mmm yummy.

Oh yeah and if the interface removed a method and you didn’t realise you might be dragging that useless methods for a long while. Then again it’s not like your Java-style interface is any different.

tryfinally · a year ago
> Oh yeah and if the interface removed a method and you didn’t realise you might be dragging that useless methods for a long while. Then again it’s not like your Java-style interface is any different.

In C# I usually use explicit interface implementations. (They're inconvenient to type, but Rider has a macro for it.) When the interface changes or disappears, my code won't compile.

tryfinally commented on Microsoft suggests command line fiddling to get Windows 10 update installed   theregister.com/2024/01/1... · Posted by u/curiousObject
JeffSnazz · 2 years ago
TBF, I can't name more than a couple dozen sets of game software that I would consider "quality". That shit is generally developed on a deadline and it shows.
tryfinally · 2 years ago
Well, yes, deadlines are best practice.
tryfinally commented on Microsoft suggests command line fiddling to get Windows 10 update installed   theregister.com/2024/01/1... · Posted by u/curiousObject
JeffSnazz · 2 years ago
This attitude seems a little silly to me—being "extra vigilant, pedantic and strict" about happy-path code would necessarily imply the same about "exception and error paths". Generally speaking, bugs mostly appear in a binary fashion and not in varying degrees—ie your code either reflect expected behavior or doesn't.
tryfinally · 2 years ago
As a game developer, I definitely distinguish high-risk and low-risk parts of the code base.

There's code that can be allowed to fail, and furthermore, it will eventually fail due to the sheer amount of this code, the development time constraints, the number of possible game states, etc. I don't care that this code rarely fails under some arcane conditions, because this simply causes some button to stop working, some NPC to stop moving, but the game will remain playable. Even if the player notices the bug, they'll just shrug and keep playing. My aim is to make sure that the game recovers and returns to a healthy state after the level/save is reloaded. (Obviously, I'd like to fix/avoid every single possible bug, but it's impossible in practice. You'll have more luck continuously tracking in your head how dangerous the code you're working on is. Also, you rarely have the luxury of being the only programmer on the team. Bugs will happen.)

The other kind of code is the core game system stuff, the low level stuff, the error handling stuff, the memory stuff, the pointer stuff. You must pay special attention while working on this code, because failures will straight up crash the process or bring the game into an irrecoverably broken state (eg. all objects stop updating, stuck in some menu, the player never respawns...). Bugs like these are also highly prioritized by management. My update loop needs to be shiny.

Such is the reality of working on complex systems (or simple object-oriented programs ;))

tryfinally commented on The M2 is more advanced than it seemed   eclecticlight.co/2024/01/... · Posted by u/ingve
tomtom1337 · 2 years ago
Is it possible to "pretend" that one's float16 datatype is in fact bfloat16? Since they occupy the same about of memory?
tryfinally · 2 years ago
You can store it and move it around, but arithmetic operations are prohibitively expensive without hardware acceleration.

(Note that bfloat16 has a different range than float16, so you can't interpret one as the other)

tryfinally commented on Kagi.com is unstable for all regions   status.kagi.com/issues/20... · Posted by u/vldr
mortallywounded · 2 years ago
I suppose you're right-- the feeling was irreplaceable, but I guess the service itself not so much.
tryfinally · 2 years ago
I’ll probably give DDG another go, even though their result quality would always eventually prove too annoying in practice.

By the way, I have no idea what your point is.

tryfinally commented on Kagi.com is unstable for all regions   status.kagi.com/issues/20... · Posted by u/vldr
tryfinally · 2 years ago
Funny coincidence, my subscription ends today. I’m switching to self employment and won’t be able to afford the service for a while. I wish it were more affordable, because the freeing feeling of not having to rely on google is irreplaceable.

Deleted Comment

tryfinally commented on Framework Laptop prices go as low as $639 thanks to refurbs and factory seconds   arstechnica.com/gadgets/2... · Posted by u/gslin
saintfiends · 2 years ago
What's the best option to buy a framework laptop outside of US. I tried shipping them to a parcel forwarder but they didn't also accept non-US debit cards.
tryfinally · 2 years ago
I shipped mine to a friend who forwarded the package to me. They figured out what I'm doing, and I got an e-mail warning me that they'll ship the laptop, but I won't get warranty outside of the country they're shipping to, so not sure I'd recommend doing this.

Worth it, though. It's one hell of a laptop.

u/tryfinally

KarmaCake day149October 24, 2020View Original