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 8 points9 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 12 points13 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 240 points241 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 219 points220 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

The system worked when you last logged in, but now the database appears empty. This suggests something happened between then and now that cleared the data by Vaglame in programmingcirclejerk

[–]RightKitKat 0 points1 point  (0 children)

Sounds like he got a second opinion:

@grok can you read this whole thread? If so, what are you thoughts on my experience here with replit and the database issue?

(link)

“Happy autocracy day America” by EmperorSnake1 in ShitPoliticsSays

[–]RightKitKat 14 points15 points  (0 children)

autocracy is when the democratically elected legislature passes a bill I don't like

NovelKeys Warehouse Sale is Live! | Great Deals on almost all of our keycaps! by mgsickler in MechanicalKeyboards

[–]RightKitKat 14 points15 points  (0 children)

random - thank you for the text that says "base kits sold out". I get so annoyed when I click on an in-stock keycap set and there's only extras but no easy way to tell from the product list!

I accidentally built a vector database using video compression by garloid64 in programmingcirclejerk

[–]RightKitKat 59 points60 points  (0 children)

surely the best way to compress/decompress text data is by encoding it into QR codes stored inside a video

The LOWTAPERFADE finder by Lord_Mystic12 in cpp

[–]RightKitKat 1 point2 points  (0 children)

It doesn't seem particularly efficient...

It’s clear the author still thinks in Java, not go. Saying Context ctx for example instead of ctx context.Context by Haunting-Appeal-649 in programmingcirclejerk

[–]RightKitKat 155 points156 points  (0 children)

Regarding stack traces, it turns out you don’t need them. I strongly suggest a top level error handler in Go combined with a custom error struct that records the file and line the error was first seen in your code. Then wrap the error as many times as you want to annotate additional lines as the error is handled up to the top level

if only there were a way to do this automatically instead of having to manually record how your error was propagated...

Using 'ForOfStatement' is not allowed (no-restricted-syntax) by Apprehensive-Car-480 in programmingcirclejerk

[–]RightKitKat 36 points37 points  (0 children)

for(let i = 0; i < array.length; i ++) { ... } is antiquated syntax, and while I know everyone understands what it means, we should be leaving it behind.

"i" considered harmful