HNHacker News
TopNewBestAskShowJobs

electrograv

2,952 karma · joined May 3, 2012

submissionscomments
electrograv··on Apple CEO Tim Cook Calling for Bloomberg to Retract Its Chinese Spy Chip Story
I'm definitely with you when we're talking about journalists acting as a check-and-balance against information or operations that are ultimately harming or betraying the public.

It's just that I've just seen no such evidence that there's any Snowden-style 'betrayals of the public' happening in this particular instance. Maybe I'm wrong, and maybe I'm overly trusting, but I like to default to innocence until evidence of guilt is on the table.

electrograv··on Apple CEO Tim Cook Calling for Bloomberg to Retract Its Chinese Spy Chip Story
> Private people can have secrets, the government shouldn't.

That's a rather extreme claim, isn't it?

Are you saying that governments should widely publish all defense research? Are you saying governments should widely publish and distribute military plans before putting them into action? Are you saying governments should publish the locations of all defensive and offensive weaponry, as well as constant position updates of all military submarines?

That kind of openness would be suicidal. I agree that governments should encourage transparency, but not when that transparency would endanger lives etc.

electrograv··on Apple CEO Tim Cook Calling for Bloomberg to Retract Its Chinese Spy Chip Story
It's not that the information is irrelevant, it's that knee-jerk responses to leaked information may be worse than coordinated and planned responses to national security threats.

Shining a light on this too early (assuming this wasn't an intentional "leak") could be akin to applying antibiotics to an infection prior to actually knowing what exactly the infection consists of, and discontinuing the treatment too soon (we all know how short the attention span of our news cycles are).

It doesn't seem unreasonable to analogize fighting spy networks to fighting an evasive infection: If you attack the infection with a half-baked or inconsistent treatment, you risk just breeding stronger infections that are even better at evading you.

Maybe I trust the US intelligence agencies too much, but it seems likely that they know what they're doing here. And so far, I've seen no evidence contrary to my default assumption that they're operating in best faith for the interests of the US and its citizens in this case.

electrograv··on Apple CEO Tim Cook Calling for Bloomberg to Retract Its Chinese Spy Chip Story
I'm not trying to argue that Bloomberg did anything illegal, so lets stay away from that red herring. I'm talking about whether their action was morally right; granted, morality and civic duty is a much more ambiguous topic, and I'm open to the possibility that my position is incorrect here.

To make an analogy: What if a newspaper was given sensitive personal information about someone that was legal to publish, but could have damaging effects to that person and the population as a whole if published too soon? Do newspapers have a civic responsibility to hold off on publishing information that would only be damaging to everyone (at least until it's safe to do so)?

electrograv··on Apple CEO Tim Cook Calling for Bloomberg to Retract Its Chinese Spy Chip Story
Fixed!
electrograv··on Apple CEO Tim Cook Calling for Bloomberg to Retract Its Chinese Spy Chip Story
I think Bloomberg was probably irresponsible to publish the Chinese spy chip story, whether it was true or false! Here's why:

* If the story is false, it's irresponsible because it causes severe monetary and reputational damage to companies that do not deserve it (e.g. Supermicro's stock is still down ~ 40%).

* If the story is true, it's a MAJOR breach of classified information from US intelligence operations; operations which I assume (without evidence to the contrary) are operating in good faith -- in the interest of the US and its citizens. Breaching classified information of such ongoing investigations to trace supply chains of spy chips could very well compromise those investigations (which would be irresponsible to risk).

So either way, it's irresponsible IMO.

P.S. IMO you cannot justify leaking this kind of info by comparing to Snowden, for example, because Snowden was a whistle-blower revealing information about operations that compromised citizens rights, which even congress was lied to about.

electrograv··on Messenger systems compared by security, privacy, compatibility, and features
I was primarily talking about UI lag, not network speed. Network speed was slow at times, but the worst above all was how laggy every keystroke is, every UI click, etc. and how much CPU it burns (heating up my laptop whenever it's open).

Native IRC clients for example have no such problem, and consume ~0% CPU at all times.

electrograv··on Messenger systems compared by security, privacy, compatibility, and features
For me, the problem is how incredibly slow Riot is (and every other client I've tried has almost unusable bad UI, sometimes in combination with being slow).

IMO: Text chat with a few emojis and images here and there should not ever be among the things that slows your computer to a crawl.

EDIT: I'm speaking of the UI, not the network connection; the latter is sometimes slow too, but that's understandable

electrograv··on Mathematicians confirm the possibility of data transfer via gravitational waves
Do you have fingers forged from the core of a neutron star? :D
electrograv··on Jason Fung explains why intermittent fasting diets work
Case in point: I’ve not met a single person who (in addition to measuring calorie intake) captures all the content deposited in their toilet, and measures it all every day in a bomb calorimeter :)
electrograv··on Jason Fung explains why intermittent fasting diets work
> If I eat 500 calories surplus a day, i'll gain ~1 pound a week.

Not if you expel an excess 500 calories per day on the toilet. This is what would happen if you chug a glass of olive oil, for example -- your body won't digest it all, and the vast majority of it will pass straight through.

This is an extreme example, but I make it to demonstrate a point 'calorie couters' always seem to forget: You keep assuming that you retain 100% of the calories you ingest, minus what you burn. This is demonstrably incorrect.

electrograv··on Jason Fung explains why intermittent fasting diets work
I think we're misunderstanding each other. What I don't get is where you're getting the evidence for this claim:

> If he were to eat that well calculated amount of olive oil everyday his weight would stay constant.

A source for this is needed. The study you provided, as far as I can see, says nothing of this. You're just assuming it's true, and I don't understand how/why.

electrograv··on Jason Fung explains why intermittent fasting diets work
I'm so confused why people are posting this. I agree fasting is viable until you run out of fat reserves (that's what this study is showing).

My point was that the type of food your calories consist of does matter. If you do nothing but drink olive oil and multivitamins, you will lose a lot of weight and eventually starve to death, no matter how many calories you consume. The point is that the type of food you eat does matter to weight gain/loss (not only the calorie count), because the type of food affects how many of those calories you actually retain.

As far as I can see, this study provides no evidence (nor attempts to) that a diet consisting of nothing but olive oil can sustain your weight. I think it's quite well accepted that different kinds of food will be retained to differing degrees in your body (or put another way, different types of food will end up being passed through your system in differing percentages -- as well as with differing degrees of nutritional satisfaction per calorie ingested).

electrograv··on Jason Fung explains why intermittent fasting diets work
The subject in that study lost 276 pounds over the year! If anything, doesn't that confirm what I'm claiming?

I'm not sure how you think this corroborates your claim that you can sustain your weight by drinking olive oil and water (+ multivitamin). In fact, I don't see anything remotely relevant to this in the study.

electrograv··on Jason Fung explains why intermittent fasting diets work
> No you wouldn't starve to death. If you didn't take a decent multivitamin you might develop life-threatening nutrient deficiencies, yes.

You're claiming that a human can viably survive their whole life by consuming a daily diet of:

    1. Olive Oil
    2. Multi-Vitimin
    3. Water
This seems extremely far-fetched. Do you have a source for this claim?
electrograv··on Jason Fung explains why intermittent fasting diets work
The human body as a machine is actually quite a lot more complex than any current human invention. We're not even close to fully understanding everything. So, the analogy to space flight serves to show that it's as naive to imply there's no subtlety beyond "it doesn't matter what you eat, just the calorie count" as it would be to imply "it doesn't matter what rocket fuel you use".

> People had stable weight without any special knowledge for most of human history.

A lot of food products highly available today would be rather foreign to most of human history: artificially high sugar, high cab, low fat, snacks everywhere, etc.

These trick our taste and hunger systems into eating more of less quality foods than we would "naturally" if exposed only to less "engineered" foods, like pure meat and vegetables.

> It's something we generally should know how to do automatically.

Maybe we should, but clearly we do not. At least with modern processed foods that are optimized and designed to maximally stimulate our flavor response while compromising nutrition/health (generally).

electrograv··on Jason Fung explains why intermittent fasting diets work
> There are no secrets to weight loss. Eat fewer calories than you burn. It doesn't matter if that involves keto, or vegan, or one meal a day. Thyroid problems also don't change physics.

That's like saying "There are no secrets to space flight: For every action, there is an equal and opposite reaction. It doesn't matter if that involves Hydrogen, Hydrazine, or just big tubs of water -- throw them one way, and you'll move the opposite. Your choice of fuel doesn't change physics."

Of course fundamental physics laws hold. But some fuels and systems of using those fuels are more effective than others.

When it comes to diet, different foods and eating patterns do have different effects on our endocrine system, and that does affect how viably we can sustain ourselves on less calories. Different foods will also have different proportions that are retained vs passed the same day.

Unless you also capture ALL your own human waste, and measure it in a 'bomb calorimeter', counting calories (intake only) is not nearly as useful as you seem to think. If you disagree, drink 2000 calories of olive oil every day and eat nothing else, then come back after a year and tell me that calories are all that matter :) Disclaimer: Don't actually do that, because you would starve to death.

electrograv··on Amazon scraps secret AI recruiting tool that showed bias against women
I’m not saying that all candidates should be interviewed without ever meeting or interviewing the candidate face-to-face; rather, I was speaking specifically of the coding interview portions. In these segments, face-to-face doesn’t really matter IMO, since it’s all about the candidate’s problem-solving ability.

Yes there’s a lot of “bias hysteria” out there, as you put it, but I would dispute that advocating “author-blind meritocracy” falls into that category.

Quite the contrary: An author-blind review process would actually make any bias impossible — either for or against any particular identity group. It seems to me most people should be able to get behind that, but maybe I’m wrong.

In fact, the main opposition to author-blind meritocracy is the “post-meritocracy” movement which is slowly making its way into open-source projects codes of conduct.

electrograv··on Amazon scraps secret AI recruiting tool that showed bias against women
Good point! I didn’t mean to propose it as a solution, but rather as an enumeration or one possibility I’ve considered, and ruled out because it doesn’t work for everyone.
electrograv··on Amazon scraps secret AI recruiting tool that showed bias against women
I wish we could move away from resumes for tech role screening anyway, since they convey very little real reliable information. I’ve seen too many great hires from candidates with relatively weak resumes, and failed interviews from candidates with great resumes (and obviously vice versa).

I’m not sure what the best alternative should be, though. I am a fan of open source work as a sort of code portfolio, but it doesn’t work for every kind of engineering/science (edit: and also would introduce bias against professionals too busy for open source.)

Regarding bias — it seems the only way to truly eliminate it (including unconscious bias) is author-blind reviews, i.e. reviewing code written by a candidate without knowing anything about that candidate’s identity. (And the nice thing about code is it usually doesn’t signal any identity traits of the author via side channels.)

electrograv··on Rust RAII is better than the Haskell bracket pattern
> the only alternative to dropping close errors would be panicking, and that would be significantly worse.

There are plenty of cases where you'd prefer an application to crash upon an unhanded write error, rather than silently losing data that could be highly important and irrecoverable.

(Of course, actually handling the errors is preferred above both.)

> Destructors aren't supposed to fail.

But isn't the whole point of this discussion is that the destructor of fs::File (and probably any other buffered IO writer) can and does fail in some cases?

electrograv··on Rust RAII is better than the Haskell bracket pattern
As I mentioned in my other reply to Steve Klabnik, documenting this edge case would have been a sufficient “resolution” to the bug at hand.

I may call it a bug, and you may call it undocumented silent data loss behavior; either way, we’re talking about the same thing. Silent data loss from undocumented behavior is not good, wouldn’t you agree?

I certainly was not aware that drops in Rust could throw away potentially serious error codes. Now I have to go re-audit the correctness of all my Rust code that uses the file system (at the very least).

If the behavior was documented I would not consider this a bug. That said, perhaps I’m missing something in the documentarion — my apologies if thats the case — but I did just re-read the fs::File docs and see no mentions or precautions about potential data loss when a File is dropped.

electrograv··on Rust RAII is better than the Haskell bracket pattern
Apologies if it sounded like I demanded a “cool new language enhancement” solution to this issue. On the contrary; if it were just documented that either fs::File [1] or the io::Write trait [2] could silently lose data with no error codes when dropped, that would be one such sufficient solution.

Perhaps I misread this documentation; if so, I don’t think I’d be alone here. I don’t see any particular mention that dropping an fs::File could lead to data loss, and I had generally assumed major edge cases like ‘data loss from a file system library’ would be documented.

[1] https://doc.rust-lang.org/std/fs/struct.File.html

[2] https://doc.rust-lang.org/std/io/trait.Write.html

electrograv··on Rust RAII is better than the Haskell bracket pattern
The fact that this is not resolved after over a year is concerning to me. At some point you have to make a decision and implement a solution, even if not everyone agrees 100% on which solution to chose.

Letting this slide for this long is a very bad sign. I’ve been a big Rust fan for my hobby projects, but the whole point of Rust is effortless correctness and safety. The more I encounter bugs and issues that have no near term solution planned, the more confidence I must admit I’m losing in their bug vs feature work prioritization scheme.

For example, it seems sometimes that Rust management would rather focus on cool new language enhancements / rewrite projects, than fix major bugs (sometimes even major borrow checker bugs, or random segfaults created in correct programs).

electrograv··on Quantum observers with knowledge of quantum mechanics break reality
Usually when there's a paradox like this, it means we've chosen bad axioms somewhere. Even things that seem intuitively self-evident can prove untrue.

For example, what if time does not necessarily flow in a single direction at the quantum scale; what if instead, the ground level of physical reality is a timeless information graph / equation that is 'solved by the universe'?

I'm no physicist and no nearly nothing about the real math of QM, but every time I read these lay-explanations of "quantum weirdness" and "wave function collapse", I get this strange feeling that we're thinking about time all wrong: What if unidirectional time is an illusion? What if causality (and inference) is an illusion (thus explaining how hard it is to capture it mathematically)?

electrograv··on Why Rust closures are somewhat hard
I actually find that Rust is far more productive overall, when accounting for debugging time (or lack thereof) vs other languages!

It is precisely because Rust makes it difficult to implement a lot of bad ideas, that I find myself spending a tiny fraction of my time debugging Rust applications vs C/C++/others (including even high level GC languages).

I love that Rust encourages inherently reliable code, while also not stopping you from writing "unsafe" blocks in the (rare) cases where they're necessary. In fact, in every case so far where I thought 'maybe I should try an unsafe block', I started to realize that implementing this idea or data structure was actually riddled with hard memory management problems, or race conditions, etc. that Rust was preventing from even being possible at all.

P.S. Of course there's a steep learning curve to Rust at first, but it's not fair to count that against Rust -- unless you also weigh against C++ all the years it takes to really master it. IMO, Rust's learning curve is far less steep and painful than C++, it's just that many of us are biased and comfortable having already climbed the C++ learning cliff (so we tend to forget it is there, and how bad it is).

electrograv··on Why Rust closures are somewhat hard
Additionally: Due to this, Rust will encourage you to gravitate towards pattern like immutable collections, or other 'functional-esque' coding styles. As a result, you usually end up writing code that's far more inherently reliable at runtime than something like a mutable doubly linked list. Just learning to code in 'idiomatic Rust' has made me a better coder overall, IMO, as has learning to write in pure functional languages.

I think most people definitely underestimate the amount of caution / design care required to implement even something as simple as a linked list with zero bugs, memory leaks, potential infinite loops in member functions, etc.

The Rust compiler prevents entire classes of bugs at compile time, and just requires that you to write an 'unsafe' block if you really want to go ahead with this sort of code without the compiler complaining. This emphasizes that you really do have to be careful and think through the logic and memory ownership semantics of the code you just wrote. People used to GC'ed languages will find this annoying to have to worry about at all, but that is inherently the price you must pay to eliminate GC pauses/overhead.

I'm not saying you should never use data structures that Rust makes hard to write, but that going into Rust thinking it's just going to be 're-skinned C++', or 'as easy as a GC language' is going to be a recipe for disappointment. If you allow yourself to learn a new way of thinking about low/systems-level coding, you may be pleasantly surprised. But if you're too "set in your ways" (whether it be of C/C++ or JS/Python/etc.), you're not going to see Rust's benefits.

Rust is a deeply different language than C/C++. I think people forget this, primarily because Rust is so powerful and efficient (with no inherent language overhead, allowing it to be used even in embedded environments and other systems programming tasks).

electrograv··on Intel Publishes Microcode Patches, No Benchmarking or Comparison Allowed
The problem is now it will depend on which patch(es) your CPU may have. Many online benchmarks and reviews of Intel CPUs vs AMD may be old, or run without patches applied / security modes enabled. If I order an Intel CPU now, I am not sure what microcode version I'll be getting to be honest. As a result, those benchmarks that show Intel edge out AMD a bit on some games may actually be inverted depending on these factors.

Going with AMD at this point is simpler, better for security, and if you care about this sort of thing -- rewards more honest and less consumer-predatory behavior. I've always gone with Intel my whole life, but given these many incidents with Intel, combined with their really poor public responses to it, I will now be switching to an AMD user for all future PC builds.

electrograv··on Home Assistant: Open-source home automation platform running on Python 3
My problem with Caseta is all of Lutron’s smart switches have INDREDIBLY flimsy physical buttons. A $35 General Electric ZWave switch is actually pretty sturdy, yet paying 2x as much for Caseta gets a device that feels far cheaper. Lutron is generally considered a lower quality brand for their non-smart switches and outlets, and that does seem to apply to the physical build quality of their smart switches as well.

And if you use them a lot, I can only imagine they’ll be like the display models at Home Depot / Lowe’s: Lutron Caseta buttons wobbling loosely as if they’re about to fall off, while GE rocker style switch is just fine.

electrograv··on Netflix Has Deleted Every User Review Ever Posted to Its Website
> Netflix said in a statement that “the reviews and our redesigned ratings system (thumbs up/down) never contributed to how we approach personalizing recommendations for members and writing a ‘bad’ review never had any bearing to whether a title was recommended to another viewer or not.”

THAT explains why Netflix keeps recommending me garbage quality content! I had a suspicion this was true, but couldn’t imagine anyone would make such a terrible design choice: 95% of content Netflix recommends me now is unwatchably bad in content quality (including Netflix originals too, of course).

IMO abolishing user ratings is quite probably the worst possible solution to losing user engagement due to low quality content.

← PreviousPage 7 of 13Next →