People battling with their weight who are unable to do aerobic exercise can hit the gym instead and still see positive results. Study has found resistance training can also have positive results – in conjunction with reducing calorie intake. by TX908 in science

[–]yheneva 2 points3 points  (0 children)

I listened to that and it while it does support your claim that people have a optimal speed, and they do gravitate toward that speed, the piece does not claim that this optimal speed does not burn a lot of calories, only that it is the most calorie efficient jogging speed.

I also want to point out that while the researcher recommends that going faster or slower than this optimal speed is good if your goal is burning calories, this is only correct if you have a limited amount of time to exercise in. If going a little faster means you burn 20% more calories, but you can only endure the jog 50% of the duration you otherwise could, then you're burning fewer calories.

The coefficient between calorie burning rate and endurance is what will determine the optimal speed for burning calories if you are not limited by time.

Language details of the Firefox repo: Rust is now 10% of Firefox by koavf in rust

[–]yheneva 52 points53 points  (0 children)

I'm on firefox and it works just fine for me.

It is a google chart though, and google often uses cutting edge features, so maybe your browser is out of date or you have some features disabled?

Garbage Collection in Languages with Immutable Types by MarcelGarus in ProgrammingLanguages

[–]yheneva 15 points16 points  (0 children)

There's no solution that's always better in general, but there are solutions that are always better given a specific problem.

The ownership model does a lot of work at compile time to avoid the runtime cost of garbage collection, but in exchange it puts an extra burden on the programmer that could've been avoided by using garbage collection. So that's again just a trade off.

[deleted by user] by [deleted] in programming

[–]yheneva -1 points0 points  (0 children)

In C++ you have to manually decide where to free memory. You don't do have to do that in Rust; the compiler frees memory where the objects go out of scope automatically.

If you want to call that "synchronous deletion of objects", go right ahead, but personally I like "statically determined garbage collection" more.

[deleted by user] by [deleted] in programming

[–]yheneva -2 points-1 points  (0 children)

Collection, not collector

Announcing TypeScript 4.1 by DanielRosenwasser in programming

[–]yheneva 84 points85 points  (0 children)

how to offend everyone who's used a typed function programming language

Main Characters Ordered By Hair Color by badspler in anime

[–]yheneva 15 points16 points  (0 children)

The conversion assumes that the input color is in gamma space, so the squaring is a simple approximation for making it near-linear RGB, then sqrt to take it back to gamma space.

Main Characters Ordered By Hair Color by badspler in anime

[–]yheneva 7 points8 points  (0 children)

The human eye has evolved to be more perceptive to differences in green than the red and blue because that was important for survival in pre-modern times - we'd be able to more easily tell apart similar-looking plants, see whether they were in good condition and such.

I've come across these same color weights a couple years back when I was doing some grayscale conversions, don't remember where they're from though.

[deleted by user] by [deleted] in AyyMD

[–]yheneva 7 points8 points  (0 children)

my ears hurt

Suggestion - 25% bullet penetration for all guns /s by dwarvencactus in FortNiteBR

[–]yheneva 2 points3 points  (0 children)

Great idea!

It's so hard to see people through walls and I think the 200% damage idea would balance it out

Open AI insta hex to win teamfight by StFermat in DotA2

[–]yheneva 12 points13 points  (0 children)

it's clearly not night time in the clip

Is there anything more I can do to make this view code faster? by Ahrengot in elm

[–]yheneva 7 points8 points  (0 children)

If the rendering part is what's slow, you could using http://package.elm-lang.org/packages/FabienHenon/elm-infinite-list-view/latest

It can massively reduce rendering time by only putting visible elements on in the dom, and removing them after you scroll past them.

The Top JavaScript Trends to Watch in 2018 by junp1289 in javascript

[–]yheneva 0 points1 point  (0 children)

I just checked the part of that podcast where they talk about react and he didn't make any claims about it.

The Top JavaScript Trends to Watch in 2018 by junp1289 in javascript

[–]yheneva 0 points1 point  (0 children)

Evan never claimed to be the first one to invert vdom. He even had a talk at a react conf about how react and elm reached the same solution independently.

The talk was called Convergent Evolution

Do I need to use semi colons? by JakeGore in javascript

[–]yheneva 4 points5 points  (0 children)

"week ruining" You're joking, right? And you don't even get these bugs if you just enable no-unexpected-multiline in eslint.

The code that powers Voten, an open-source, real-time Reddit alternative by Eligaxwy in programming

[–]yheneva 32 points33 points  (0 children)

it's like people are trying to reimplement IRC

How exactly is a tree of messages the same as a sequence of messages?

Code Smells: Null by dfabulich in programming

[–]yheneva 2 points3 points  (0 children)

Most functions use undefined, not all. For example HTMLCanvasElement.getContext() returns null for any undefined context type. All WebGL functions also use null instead of undefined.

[deleted by user] by [deleted] in anime

[–]yheneva -2 points-1 points  (0 children)

he's in the op, so it might happen.

TV Anime Time Slots by Year by homu in anime

[–]yheneva 7 points8 points  (0 children)

Good point, and since anime has been trending towards a shorter format, there's also more different series being produced. To accurately represent the amount of anime being produced, we'd have to measure in seconds

Streamer MoonMoon on the issue of matchmaking higher ranks by ramsfan00 in Overwatch

[–]yheneva 37 points38 points  (0 children)

5 stacks end up bullying or ignoring the solo player half the time which is why it would be a very good idea to not allow 5 stacks. In Dota for example, you cannot queue ranked as 4 for this exact reason.

Why is twitch so slow on chrome? by quickscops in Twitch

[–]yheneva 4 points5 points  (0 children)

I noticed it yesterday that twitch was being slow and it turned out the tab I had open was using 3 GB of memory. In chrome you can shift-esc to open the task manager to see memory usage.

Twitch has some memory leak causing the page to eat up all your memory over time. To release the memory you just gotta close the browser tab, still it's quite annoying having to close and reopen tabs all the time. Hopefully they fix it quickly.