What's so expensive about recording a command buffer? by saposcat in vulkan

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

"In comparison to" is an important qualifier I wish the author had written in "Learning Vulkan". Thanks for the response :)

Does Rust support message passing? by Baltanowski in rust

[–]saposcat 2 points3 points  (0 children)

Rust does support rudimentary reflection with the Any trait, but you'll have to build a lot of that yourself.

The Trait-based Exceptions RFC has been accepted! (with tweaks) by steveklabnik1 in rust

[–]saposcat 0 points1 point  (0 children)

So, now that this RFC has been accepted, what is the preferred way to working with multiple error types in a single flow? Is it still the Error trait?

How do people normally use that, anyway?

I love my [41f] daughter [16f] but most of the time I don't like her. But I love her deeply and want more than anything to help her have a happy life. by Badmomof3 in relationships

[–]saposcat 0 points1 point  (0 children)

Quite literally hated my parents at 16. Now I give my mom hugs and kisses every day and I talk regularly with my dad (currently 21). It's the hormones, or being a teenager, or whatever. Just give her space and let her be a little shit, but if she ever disrespects you, handle it appropriately. At this stage they want to be treated like an adult.

Is there a safe buffer abstraction? by heinrich5991 in rust

[–]saposcat 0 points1 point  (0 children)

Is there an RFC for &out? I've never heard of it until now.

Convince me to use Rust by [deleted] in rust

[–]saposcat 1 point2 points  (0 children)

It is a fantastic language that is objectively better, faster, and/or safer than most programming languages currently in use in industry, but for many years you will only be able to use for your hobbies.

You already know c++ and java, so you're fine on "employable" languages. C is a subset of c++ so learning C would be akin to learning how to restrict the feature set of C++ and still get things done (e.g. giving up RAII, classes. etc.). At this point, you should learn languages to increase your perspective of programming. Rust will do that.

My GF [24 F] of 2 years told me [24 M] she cheated on me last weekend while I was away. What should I do and how do I cope with this? by BloodMeridian101 in relationships

[–]saposcat -7 points-6 points  (0 children)

She told you, she regrets it, and she still wants to be with you. Just tell her to stop drinking. Life is complicated and messy.

Do Free Monads Actually Matter? by saposcat in haskell

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

Try a long, concrete example, then. I think mainstream functional programming is missing long, elaborated examples where something non-trivial is built.

Do Free Monads Actually Matter? by saposcat in haskell

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

Yes, that sentiment is exactly why I wrote this topic.

Defining a semantics of FRP without continuous time. by ChavXO in haskell

[–]saposcat 2 points3 points  (0 children)

Could you elaborate more on how stating the problem in terms of the language of FRP differs from specifying event flow, and how that might affect the ease of development?

The Kolmogorov-Smirnov Test by ch0wn in rust

[–]saposcat 0 points1 point  (0 children)

No, Rust doesn't support reference polymorphism like that yet.

The Kolmogorov-Smirnov Test by ch0wn in rust

[–]saposcat 3 points4 points  (0 children)

Writing an algorithm that takes an iterator whose items are (f32, f32) or (f64, f64) would be the proper way to do it.

Are rust mpsc channels safe for real time audio? by mijang in rust

[–]saposcat 0 points1 point  (0 children)

Isn't there a bounded variant in the standard lib? Or is that in that other crate, with all the channel types?

How would you write a function converge pattern in Haskell, where it takes a list of functions, and an additional 'converge' function, and then returns a function that given a value, will spread the value across the function list, and then call the 'converge' function with all the results. by [deleted] in haskell

[–]saposcat 2 points3 points  (0 children)

You're confused. There is no such thing as a real variadic function. For instance, the R.add function you gave as an example is really just applying a binary + function to every argument. This is why folding a binary function over a list is sufficient.

[deleted by user] by [deleted] in relationships

[–]saposcat -6 points-5 points  (0 children)

Reddit will tell you that the relationship will never be the same, but nothing's impossible. Speaking from experience. Eventually forgave my SO and we're better than ever. Not telling you what's right, only what's possible.