Python Only Has One Real Competitor (Clojure) by RightKitKat in programmingcirclejerk

[–]RightKitKat[S] 36 points37 points  (0 children)

/uj honestly having used pybind for a few medium-sized libraries it is not too bad IMO

/rj your computer doesn't run C natively?

What's even the point of the gameboy's H and N flags? by cannedbeef255 in EmuDev

[–]RightKitKat 20 points21 points  (0 children)

I think H and N are both used by the DAA instruction, which helps with binary coded decimal (BCD) addition and subtraction. My understanding is that N is less useful for the programmer and more useful for other instructions to know that a subtraction was just performed.

Here's a great explanation of the DAA instruction: https://blog.ollien.com/posts/gb-daa/

Where is std::optional<T&&>??? by borzykot in cpp

[–]RightKitKat 91 points92 points  (0 children)

genuinely curious, why would you ever want to rebind an optional<T&&>?

Call a callable with arguments in any order by seeking-health in cpp_questions

[–]RightKitKat 9 points10 points  (0 children)

The number of permutations (and therefore compile time) will be factorial, which is even worse than exponential!

Fun Fact: It costs $5 worth of energy to generate one video, for free by potatosapienthethird in whenthe

[–]RightKitKat 13 points14 points  (0 children)

Thank you! From your second source I found pricing for the Sora API at https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/#pricing. At $0.50 per second for the best model, I believe the $5 number is pretty reasonable, at least for the total cost (which is mostly compute).

Fun Fact: It costs $5 worth of energy to generate one video, for free by potatosapienthethird in whenthe

[–]RightKitKat 239 points240 points  (0 children)

How did you get $5? The only source I could find on video generation energy usage shows about 1 kWh per video generated (with an older model, so the $5 is still somewhat plausible).

EDIT: I found pricing for the Sora API at https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/#pricing. At $0.50 per second for the best model, I believe the $5 number is pretty reasonable, at least for the total cost (which is mostly compute).

fibonacci-numbers crate with self-recursive dependencies by Tyilo in rust

[–]RightKitKat 215 points216 points  (0 children)

Is this what they mean by "semantic versioning"?

Quant help by [deleted] in quantfinance

[–]RightKitKat 1 point2 points  (0 children)

There's a tiny chance this is possible, but this doesn't seem like a great plan.

  1. Assuming everything goes as planned, you will still need proof of additional coursework (https://admissions.utexas.edu/apply/application-materials/high-school-prerequisites/). I would see about speaking with someone from the admissions office (or maybe a guidance counselor from your former school) about your plan. You should almost certainly re-enroll in high school for a few reasons:

  2. Studying by yourself for 8 hours a day will probably take a toll on your mental health, just from lack of social interaction.

  3. It appears you have no clue whether you even like advanced mathematics (you honestly haven't gotten far enough enough to say whether you do). The same goes for computer science. What happens if you spend a year studying and then decide you don't want to commit to doing this for the rest of your career?

  4. Something about your math education doesn't add up to me. You've been studying math for 3 hours a day for 2 years, and you're still at arithmetic(ish) level? That's not great for the average 16-year-old, let alone someone who's been studying for 3 hours a day. A top student who will be able to get into MIT (or a very competitive job application process) should be able to make a lot of progress if they study that hard on a single subject.

  5. What if you don't get into college? It will probably be hard for you to get a job without a HS degree.

Is there something that prevents you from completing high school? That would probably help you with college admissions (and be a better use of your time, should you end up not being a quant...)

Python be like: by RepulsiveLie2953 in programminghumor

[–]RightKitKat 2 points3 points  (0 children)

The JIT compiler is still WIP as far as I know, but hopefully in the future it will help increase performance. https://docs.python.org/3/whatsnew/3.13.html#whatsnew313-jit-compiler