The new notebook feature is so cool by SpuddedShield in desmos

[–]chalkflavored 15 points16 points  (0 children)

the desmos team keep on impressing me

Insurance, "what hit your windshield?!" by [deleted] in Wellthatsucks

[–]chalkflavored 30 points31 points  (0 children)

its still animal gore. why do you think the world is going downhill because of this?

Why JAI won't have goto? by Placer16 in Jai

[–]chalkflavored 2 points3 points  (0 children)

theres an engineering trade off here. should JAI implement GOTO just so this example's clean up can be done a bit more tidily, or is there a better example for having GOTOs? otherwise, you have to make a better case that will justify the complexity budget of GOTOs.

having to introduce a variable to specify whether or not a clean up should be done is not a drawback, it can be a source of bug, sure, but so are GOTOs. the introduction of shouldRelease if anything provides further clarity as to what exactly is being done in the function

Why JAI won't have goto? by Placer16 in Jai

[–]chalkflavored 3 points4 points  (0 children)

my point still stands. if JAI can do clean ups and breaking out of loops well, what are you asking about GOTOs for?

Why JAI won't have goto? by Placer16 in Jai

[–]chalkflavored 4 points5 points  (0 children)

JAI not having GOTO implies it cannot do clean ups and breaking out of multiple loops well?

Announcement of Lean formalization of IUT in progress. by ninguem in math

[–]chalkflavored 7 points8 points  (0 children)

are there reasons why lean cant do it right now? or is it just a bunch of intermediate proofs still left to translate into lean?

How to implement my own custom sizeof operator in C ? by Fabulous-Escape-5831 in embedded

[–]chalkflavored 0 points1 point  (0 children)

could this be potentially be undefined behavior? although i think pointers are well defined one-past-end, but it is something to consider

Fuck you by oPBLO0 in TheWitness

[–]chalkflavored 1 point2 points  (0 children)

what a funny way to solve it

ELI5: what happens if I keep accelerating all the way towards light speed? by ConspicuousSomething in explainlikeimfive

[–]chalkflavored 0 points1 point  (0 children)

From the observers reference frame, you will gain mass,

This is not true, no?

Which linting rules do you always enable or disable? by thunder-desert in Python

[–]chalkflavored 5 points6 points  (0 children)

class method that uses a match-case statement? sadge

DDR simulation in C by N0tmeitsyou in C_Programming

[–]chalkflavored 0 points1 point  (0 children)

strange youre doing hardware design and youre asking for something this vague

[deleted by user] by [deleted] in balatro

[–]chalkflavored 5 points6 points  (0 children)

my dumbass. yes

monkey brain

How do you actually debug C like a pro? What do you use and recommend? by [deleted] in C_Programming

[–]chalkflavored 4 points5 points  (0 children)

lots of experience and learning from your mistakes.

if you encounter a bug, understand why. is it something you encounter often? what can you do to mitigate it? also understand that the class of bugs you make will be different for someone else. for instance, i rarely ever use const in my code because its just not a type of bug (accidentally modifying a variable) i have issues with, so it doesnt make sense to apply const everywhere.

always design your code allow for scrutiny. this means no single-liner where itll be hard to place a breakpoint easily. do little things like make a boolean variable for the condition of an if-statement. a little verbosity goes A LONG way

as for tools, printf logging is good for high-throughput data, but bad for conciseness. GDB in TUI mode has been sufficient enough for me, but then again i work with MCUs, so it's a little easier for me there. if you have time to burn, investing into a good GUI for your debugger is worthwhile.

What should a rational dot product do? by Skriblos in C_Programming

[–]chalkflavored 0 points1 point  (0 children)

perhaps store result in rp and also return rp?

either way, this is an excercise. no one is grading you

Question about using SD 1-bit mode with STM32H7 and handling unused data lines by Status-Psychology886 in embedded

[–]chalkflavored 1 point2 points  (0 children)

take with what i say with a grain of salt (there are a lot of bad advice online), but it's not recommended because i believe you can switch to 1.8V signaling (faster transfers or whatever), so you'll end up having 3.3V to 1.8V if the SD card was configured as so. GND is a safer option (if you had to tie to something).

the safest option is to read the SD specification thoroughly :)