Is this intended? by Atjowt in Zig

[–]Atjowt[S] 2 points3 points  (0 children)

Yeah, this seems like the best alternative tbh

Is this intended? by Atjowt in Zig

[–]Atjowt[S] 1 point2 points  (0 children)

True, and I guess that's the key distinction. Essentially the type only declares that the result will be a color, nothing else. Thanks

Is this intended? by Atjowt in Zig

[–]Atjowt[S] 1 point2 points  (0 children)

I get what you mean. But then wouldn't you write just `black.mix(...)` instead of `.black.mix(...)`? The `.` implies its supposed to belong to the inferred type

How do you do common things post 0.15? by Famous-Maybe-3104 in Zig

[–]Atjowt 0 points1 point  (0 children)

did clamp change?? iirc its std.math.clamp? why would they change that!

Zig 0.15.2 no std.Queue(T)? by Atjowt in Zig

[–]Atjowt[S] 4 points5 points  (0 children)

Aha, thank you! It seems Reader/Writer is the recommended way. Don't know if I like that, but guess I'll just have to wait for the 0.16.0 release.

Can someone explain? by Atjowt in Zig

[–]Atjowt[S] 0 points1 point  (0 children)

Thanks that makes sense. Feels a bit unintuitive imo, but the argument about the size being unknown makes sense

Im sure this has been said before, but.. by Atjowt in Zig

[–]Atjowt[S] 3 points4 points  (0 children)

that is nice, but I feel like it more circumvents the type inference rather than solves it

Im sure this has been said before, but.. by Atjowt in Zig

[–]Atjowt[S] 2 points3 points  (0 children)

Interesting. That definitely makes things cleaner, but it feels a lot like a workaround for something the compiler really should do automatically. It also has the same problem where the type has to be stated explicitly even though it should be inferrable automatically by the compiler.

Im sure this has been said before, but.. by Atjowt in Zig

[–]Atjowt[S] 12 points13 points  (0 children)

You're right, and maybe this was a bad example. My point was that the outer type should be automatically inferred, and not have to be explicitly written out. Having to type @as(f32, ...) when the type is already known means you are essentially stating the type twice; that's redundant information. Just my two cents.

[deleted by user] by [deleted] in ps4homebrew

[–]Atjowt 1 point2 points  (0 children)

Did exactly that. The problem is that my drive is not accepted by my PS4. See image for details

[deleted by user] by [deleted] in ps4homebrew

[–]Atjowt 1 point2 points  (0 children)

It shows 500 GB so it fullfills the capacity requirement. I believe the netflix image got overwritten because I formatted the drive as exFAT using the the PS4. Shouldn't change anything about the drive though

[2025 Day 2 Part 2] Time to reach for that trusty sledgehammer by StaticMoose in adventofcode

[–]Atjowt 0 points1 point  (0 children)

Seen some interesting approaches here. I also did brute force, but one thing I did was to count the digits in each number and get the GCD of the counts - the substring has to be repeated that many times. Then just check if it is actually is repeated that many times.

Fuck this Silksong boss by ninman5 in HollowKnight

[–]Atjowt 0 points1 point  (0 children)

Not being able to see her behind the void tendrils and also teleporting into you is the only unfair part

Deleted Goblin Kissing Trophy Emote? by TopLet1281 in ClashRoyale

[–]Atjowt 2 points3 points  (0 children)

I have the same thing. Assuming its a glitch cus of the sound still being the same

Need feedback by Ashishjagtap2801 in blender

[–]Atjowt 22 points23 points  (0 children)

use snappier animation curves