Readit News logoReadit News
funcDropShadow commented on Norway reviews cybersecurity after remote-access feature found in Chinese buses   scandasia.com/norway-revi... · Posted by u/dredmorbius
adrianN · 2 months ago
The European champion would still be ten times smaller than the Chinese but would have factual monopoly in Europe. I don’t think blocking the merger was entirely unreasonable.
funcDropShadow · 2 months ago
So, in order to avoid the negative consequences of a European monopoly, we make sure that a Chinese monopoly prevails? That doesn't seem like a wining strategy for Europe.
funcDropShadow commented on JMAP for Calendars, Contacts and Files Now in Stalwart   stalw.art/blog/jmap-colla... · Posted by u/StalwartLabs
dotancohen · 2 months ago

  > JSON does not have a proper integer type
What are the drawbacks to using the JavaScript Number (really a double float I think) datatype as an integer in an object representation language such as JSON? I've never seen a use case where e.g. 42 (int) could be confused with 42.0 (float). If your application needs specifically an int or a float, then the ingesting application knows that.

If the answer is monetary values, then those should never be floats, and should not be represented in JSON as such. E.g. a dollar and a half should be represented as 150 cents. This follows even for sub-cent precision.

funcDropShadow · 2 months ago
Even if we assume that JSON numbers are JavaScript numbers. There is the problem that some large natural numbers cannot be represented in double or float although some even larger numbers can be represented. This is very bad if you use these numbers as IDs.

    scala> (Long.MaxValue-1)
    val res4: Long = 9223372036854775806
                                                                                
    scala> (Long.MaxValue-1).toDouble.toLong
    val res5: Long = 9223372036854775807
The fact that I used Scala is irrelevant here. That is true for many programming languages that 64 bit long and double types.

funcDropShadow commented on Writing Memory Safe JIT Compilers   medium.com/graalvm/writin... · Posted by u/sgammon
Leszek · 3 months ago
I said it "protects" against bugs, not that it "removes" them. The Truffle architecture removes mismatches between JIT and interpreted code (when it doesn't have bugs itself, which is not guaranteed either), but it doesn't remove runtime or object model logic errors that affect both.
funcDropShadow · 3 months ago
Because, Truffle is reused in multiple language VMs their overall attack surface is smaller than it would be with classical language VM architectures.
funcDropShadow commented on Rules for creating good-looking user interfaces   weberdominik.com/blog/rul... · Posted by u/domysee
eviks · 3 months ago
Oh, sure, those are indeed major fails in all of the OSes - no guides and no easy way to find anything about fundamental operations (it should be easier than googling).

But these are separate issues. For example, even with the scrollbars there can be a change between two behaviors: click on the empty bar jumps to that % or jumps by 1 page. And one can be a click and another a Shift-Click - where in the OS would you discover that??? And the scrollbar width - can only find a registry hack to restore that from some tech article/blog post/ etc, nothing in that waste of the Win 11 Settings app.

funcDropShadow · 3 months ago
But with a visible scrollbar you would have a visible indication which behavior you triggered. If the scrollbar is invisible you get a changed viewport in both cases but you have to infer which gesture triggers which behavior.
funcDropShadow commented on Go is still not good   blog.habets.se/2025/07/Go... · Posted by u/ustad
gf000 · 4 months ago
> I would criticize Go from the point of view of more modern languages that have powerful type systems like the ML

Go release date: 2012

ML: 1997

funcDropShadow · 4 months ago
And still there are more modern idioms and language features that ML had in the 70s but are missing from Go. But, these have the fatal flaw of Not being Invented Here.
funcDropShadow commented on Let's properly analyze an AI article for once   nibblestew.blogspot.com/2... · Posted by u/pabs3
charcircuit · 4 months ago
>not your ability to invert a binary tree on a whiteboard.

Knowing how to swap 2 variables and traverse data structures are fundamentals.

funcDropShadow · 4 months ago
The goal of teaching binary trees is not that you can write binary trees in your sleep, the goal is that you train your ability to derive algorithms and data structures. If you look at what a world class soccer player does during training, most of it will never be applied identically during games. The same is true for university studies, if they focus on fundamentals.
funcDropShadow commented on Intermittent fasting strategies and their effects on body weight   bmj.com/content/389/bmj-2... · Posted by u/lxm
Someone1234 · 4 months ago
Weight loss is linked with some loss of lean body mass, regardless of the method used. Intermittent fasting has been shown to match any other calorie deficit in terms of lean body mass loss, rather than more as you're implying.

Regardless of how you lose weight the advice is and remains:

> Eat a minimum of 0.36 grams of protein per day, per pound of LEAN* body weight. Increasing to 0.5-0.7 grams of protein per day, per pound of LEAN* body weight for older adults or when undergoing weight loss.

*LEAN is a vital detail for overweight people, they commonly miscalculate protein requirements due to this. The easiest way for overweight people to determine their requirement, is just find an "ideal body weight calculator" online, enter height and gender, and then multiply THAT figure by 0.5-0.7.

For example a man who is 6' tall and 400 lbs should eat 62 grams of protein per day MINIMUM, but during weight loss 86-120 grams of protein per day. It is common, unfortunately, to read online people in this situation miscalculate this to 280(!) grams of protein per day which is incorrect and harms their weight-loss goals.

funcDropShadow · 4 months ago
Do you have source for this? Because as you write I've always read to derive protein intake from the overall weight. That would indeed be a very important distance.
funcDropShadow commented on Ask HN: What trick of the trade took you too long to learn?    · Posted by u/unsupp0rted
sharkbird2 · 5 months ago
I like to think of it as that; you should have principles, such as trying to write DRY code, but any principle taken too far will end up being a bad thing. Don't be an extremist. Practice a sensible balance in everything you do.

This goes beyond programming as well, I think it goes for most things in life.

funcDropShadow · 5 months ago
In every trade or art you start as an apprentice. That is the time when you learn the basics, the rules, the best-practices. When you have mastered the state of the art, you are a master. You know when to apply which rule and tactic to create masterful artifacts. The next step is to learn when you should break the rules and general wisdom. That is where true wisdom starts.
funcDropShadow commented on How to Firefox   kau.sh/blog/how-to-firefo... · Posted by u/Vinnl
moffkalast · 5 months ago
What I've found recently is that Linux is surprisingly Firefox's achilles' heel. Canvas and WebGL run easily an order of magnitude slower than Chromium.

Check with https://webglsamples.org if you don't believe it. All of it runs capped at 60 fps on Chrome for me, Firefox struggles to break 30 on mid tier settings in aquarium and stutters horribly throughout most of them. I'm sure it's fast at loading static sites, but I wouldn't ever use it to run any web app. On Windows they're both the same though, which is weird to me.

funcDropShadow · 5 months ago
I've tried perhaps one third of the samples. All of them ran in 120 fps in 3840x2160 px in Firefox on Linux on my machine. Perhaps it is a configuration problem. My screen has a 120 fps refresh rate, so it probably is capped there.
funcDropShadow commented on GTK Krell Monitors   gkrellm.srcbox.net/... · Posted by u/Deeg9rie9usi
switchbak · 7 months ago
I think perhaps I’m old school, but I’ve been using xosview with a patch that shows ccx utilization (on AMD) instead of per core. Treats me pretty well, but it’s a very unloved project.
funcDropShadow · 7 months ago
Do you have a link to that patched version?

u/funcDropShadow

KarmaCake day1249March 27, 2019View Original