cx40

joined 4 months ago
[–] cx40@programming.dev 2 points 1 day ago

That's also to make programming easier. Different programmers have different needs.

[–] cx40@programming.dev 1 points 1 day ago (2 children)

But the main benefits of static typing is in making the programming part easier. What do you gain from translating dynamically typed languages into a statically typed language?

[–] cx40@programming.dev 4 points 2 days ago

asked questions that made educators interpret that I enjoyed bending the logic of what they were teaching.

I had this problem too but mainly for math. I'd do well in classes and tests, but the material just didn't make sense to me. It wasn't until I studied real analysis that everything started to click.

[–] cx40@programming.dev 7 points 2 days ago (1 children)

A trick I've employed is to pretend to believe in something completely different. If it says "no, you're wrong" and goes on to tell me what I actually believe, then it's a good indicator that I might be on the right path.

[–] cx40@programming.dev 1 points 4 days ago

Tabs get in the way and force you to actually address them instead of ignoring them. In theory.

[–] cx40@programming.dev 1 points 4 days ago (1 children)

Do you know if there's a similar extension that allows you to export/import the tabs in some text format rather than saving to bookmarks? I'm currently using Tab Season Manager, but it takes way too many steps to accomplish this.

[–] cx40@programming.dev 3 points 1 week ago* (last edited 1 week ago) (1 children)
  • Specific heat capacity of water: 4.184J/(gC)
  • Average shower temperature: 37C
  • Cold tap water temperature: T
  • Shower head output: 2gallon/min = 7.57L/60s = 126ml/s = 126g/s

1s * (126g/s) * (4.184J/(gC)) * (37C - T) = 524J/C * (37C - T)

120Wh = 432000J

T = -787C

So I guess the math checks out if your city's water supply temperature is way below absolute zero.


Scratch that, let's assume the water actually flows, so T=0C. What water throughout do we need to achieve this level of power consumption?

1s * (X g/s) * (4.184J/(gC)) * (37C) = 432000J

X = 2791g/s = 44gpm

You would have to be showering with 17 showerheads simultaneously using showerheads that are rated at the highest legal flow rates in the US (2.5gpm).

[–] cx40@programming.dev 8 points 1 week ago (1 children)

Believe it or not, you can make fried rice with fresh rice. It's not exactly the same experience, but it's equally tasty imo. If you haven't tried it yet, give it a go. You might find that you like it too.

I doubt there would be enough of a market for precooked rice to make it worth selling. In households that do a lot of fried rice, this dish is usually more of a use-up-our-leftovers kind of meal than the sort of thing you go out of your way to make. The typical meal consists of white rice and sides of protein and vegetables. You make extra rice to make sure everyone has enough to eat in that meal, and whatever's left over goes in the fridge. You collect 2-3 days of rice this way and when you have enough, it becomes fried rice.

 

SnapRAID doesn't compute the parity in real time, so there's this window between making a change to the data and syncing where your data isn't protected. The docs say

Here’s an example, you acquire a file and save it to disk called ‘BestMovieEver.mkv’. This file sits on disk and is immediately available as usual but until you run the parity sync the file is unprotected. This means if in between your download and a parity sync and you were to experience a drive failure, that file would be unrecoverable.

Which implies that the only data at risk is the data that's been changed, but that doesn't line up with my understanding of how parity works.

Say we have three disks that store 1 bit of information and a parity drive: 101 parity 0. If we modify the data in the first disk (data 001 parity 0), then the data is out of sync. Say we now lose disk 2 (data 0?1 parity 0). How does it then recover that data? We're in an inconsistent state where the remaining data tells us that drive 2 used to hold 0^1^0=1 when it actually held a 0. So doesn't that mean that between any modifications and a sync operation, all your data in that disk region is now at risk? Does SnapRAID do anything special to handle this?

[–] cx40@programming.dev 4 points 2 weeks ago (1 children)

Men in Black 1997

He's the worm guy.

[–] cx40@programming.dev 1 points 3 weeks ago

They did give us OpenAI gym (now Gymnasium) and PPO. It's sad that they completely pivoted away from this line of work though.

[–] cx40@programming.dev 1 points 3 weeks ago

We've seen similar effects in the context of reinforcement learning (see the "primacy bias" works of Evgenii Nikishin). It makes sense that it would also apply to LLMs, and any other ML model.

[–] cx40@programming.dev 1 points 4 weeks ago

Early 30s now. I've been on this path since I was 18, so I guess I'd be happy to hear that I stuck with it. I'd probably also be disappointed to hear that I'm actually kind of bad at it.

view more: next ›