HNHacker News
TopNewBestAskShowJobs

cerebellum42

295 karma · joined July 16, 2016

submissionscomments
cerebellum42··on Why some governments appear not to be acting on the Covid-19 threat
This is correct afaik, I'm pretty sure the decision to close schools is with the ministries of education of each German state, however if federal institutions put out strong recommendations, state and local administrators will likely follow very soon after. Federal ministries may not have absolute control here (unless they declare a state of emergency or something) but they do have plenty of influence.
cerebellum42··on Facebook sues Namecheap
I would agree, but I don't understand why Facebook would file a lawsuit against Namecheap. I would have thought they'd file a lawsuit against John Does (the owners of the domains) and obtain an order from the Judge to compel Namecheap to reveal the names of the John Does.

Then again I haven't seen the court filings so maybe that's exactly what they did and Namecheap is just mentioned as an additional defendant.

Either way, I would also expect Namecheap not to reveal anything unless they are compelled to by court order or another legal obligation.

cerebellum42··on Turkey buys Delphi licenses for an estimated one million students
The sibling comment mentioned Anatolia (almost the whole part of Turkey that is on the asian continent), not Antalya, the city.
cerebellum42··on Turkey buys Delphi licenses for an estimated one million students
Even though the Rust docs aren't built for this purpose first, in IntelliJ or CLion I can still press Ctrl + Q on a method and see the full method documentation with examples. I think what IntelliJ does is simply parse the doc comment for that method and then render the markdown contained in it in the little popup. The standard docs are built from those comments as well.
cerebellum42··on A Sad Day for Rust
Maybe that is what the developer intended, but afaik it is not what he communicated. What he communicated was a flat out dismissal of the issue along with the proposed fixes. Followed by deleting the whole issue from GitHub. To be fair, there were some very unpleasant things said in there, but he could have just deleted those and maybe locked the conversation telling people about his plans.

This whole thing was a feedback circle of increasing hostility between the community/contributors and this developer. At some points the developer was very unresponsive, leading to disappointment from the community, but then some very uncalled for personal attacks came from the community. I think the developer received some justified criticism, but I still understand his perspective, putting work in and getting abuse back sucks.

cerebellum42··on A Sad Day for Rust
In this case it meant people saying things like "you are bad and you should stop writing rust, forever" possibly with some more colorful words in there. Very hurtful things but at least not threats and actions...
cerebellum42··on Is parallel programming hard, and, if so, what can you do about it?
Sometimes it can be a nice way out to quickly lock the data, copy it and then unlock, if it's acceptable to have a task using outdated data occasionally. If that is not acceptable, there are Read-Write-Locks, which do guarantee that the data being used is current and allow for concurrent read access, but come with the drawback that write accesses might have to wait fairly long until the pointer can be fully locked.

What I'm saying is, don't limit yourself to Mutexes, there's a whole zoo of synchronization primitives and each of them has a specific use case that it's ideal for.

Recently I've dealt with a lot of synchronization in Rust, and I would say it's been as pleasant as it could be, considering the subject matter. Deadlocks are still possible, but at least the compiler stops you from accidentally unlocking a Mutex too early.

cerebellum42··on Is parallel programming hard, and, if so, what can you do about it?
>You really don't need to know all that to do parallel programming, and if you ever are using any significant number of those in one program, you're going to be in a world of pain.

I don't entirely disagree, but most environments (or "paradigms") simply hide all that away from the user. Which is generally a good thing. Chances are you _are_ using a lot of those primitives in any given parallel or concurrent program, but you're only aware of one or two of them. For example, a channel for message passing between threads (or tasks in a cooperative multitasking context) might contain a Semaphore and an atomic reference counted pointer which in turn contains atomic integers. See [0] for an example.

And while concurrency and parallelism are not the same thing, you often end up having to consider the same synchronization problems in your code whether it's concurrent or parallel. Cooperative multitasking does involve true parallelism when the scheduler uses multiple threads on a processor with multiple cores. Code is not just being executed concurrently there, it is (possibly, not guaranteed to be fair) executed in parallel.

[0] https://docs.rs/crate/tokio/0.2.9/source/src/sync/mpsc/chan....

cerebellum42··on How to Exit Vim
RTFM clearly does not apply because you can't read it if you're in vim and can't exit ;)
cerebellum42··on Why are people getting worse at “The Price Is Right”?
What do you mean by "it's smaller than the total"? Do they literally write the wrong price or do they choose any unit they happen to think makes for a good sounding price per unit?

In most of Europe (probably all the EU countries at least, unified regulations yay) shops need to put the price per 1kg/100g/1L/100mL on the tags, depending on which is most appropriate for the product.

cerebellum42··on Overview of Rust error handling libraries
I tried out a few of the error handling libraries, but these days I reverted to just defining a simple Enum with the types of errors that occur in my library, for most use cases that seems to be the simplest thing to do. I implement `std::error::Error` and `std::fmt::Display` for that enum and add `From` implementations as I need them to tidy up my code.

It's usually not much more code than I would have written with an error handling library and it's fully transparent, understandable for anyone with a rudimentary understanding of Rust. And I get to have one less dependency.

cerebellum42··on The 40% Keyboard
Split ergo keyboards like the Ergodox allow for that kind of positioning and more.
cerebellum42··on Berlin court used Windows 95, hit by virus, now uses typewriters & fax
It doesn't say in this article, but I read about this a while ago and in that article it said some judges or clerks had gone to typewriters. Wrong title for this article I suppose, but not incorrect.
cerebellum42··on Why async fn in traits are hard
Even in Rust, it only looks like that in this very specific use case and is usually completely hidden from the programmer. It's the desugared output of a library.

Usually it would look like this in Rust:

fn get_user(&self) -> impl Future<Output = User>;

This isn't exactly the same functionally, but for most use cases it works just fine. The difference is that this uses static dispatch instead of dynamic dispatch and therefore can't support dynamically returning two different structs that both implement Future, it has to be one type.

cerebellum42··on Amazon Workers May Be Watching Your Cloud Cam Home Footage
Pretty misleading title in my opinion, considering this is only a possibility if people submit a clip for troubleshooting.

While Amazon should have been more explicit in telling people that submitting a clip means someone will watch it, it's not exactly unexpected.

The title suggests something much bigger.

cerebellum42··on Forever 21, Which Helped Popularize Fast Fashion, to File for Bankruptcy
>Since then H&M has caught on like wildfire taking over the market Forever 21 once had. They do a lot of the same, but their clothes are even cheaper (why?) and in my current wardrobe my favorite clothes have come from H&M. I'm afraid the same fate will come to H&M that has come to Forever 21. Or maybe H&M will learn from F21's mistakes. Only time will tell.

That's a rather weird characterization in my opinion... H&M stores in roughly their current form have been around a lot longer than Forever 21. H&M is also 4-5 times the size of Forever 21 by revenue.

cerebellum42··on Microplastics found in 93% of bottled water tested in global study
I've lived in a few places in Berlin over the years, I've never seen anything but nice clear water come out of the tap (whether at my place or friend's flats). Granted, it's hard water (lots of calcium) but other than that it's perfectly fine. Pipes as bad as you're describing definitely exist but I'd say they're the exception, not the rule.
cerebellum42··on Microplastics found in 93% of bottled water tested in global study
I'd say all of Germany is culturally very much ok with drinking tap water, Berlin not much more or less than other regions. People who drink bottled water here don't usually do it because they think it's "better" than tap water, it's either because of convenience when you're not home or because they like carbonated water (which is very popular in Germany).
cerebellum42··on Mystery surrounds lost German sea data station
Yeah seems rather risky to be operating literally in the backyard of a major German submarine base. Six Type 212 subs are based in Eckernförde, one is actually on the marine tracker linked in the comments above [0] right now. If a submarine pops up there unannounced that's a diplomatic incident at least and with a naval base nearby the risk of discovery would be rather high.

[0] https://www.marinetraffic.com/en/ais/home/centerx:9.973/cent...

cerebellum42··on As crime dries up, Japan’s police hunt for things to do (2017)
I suspect you bought a ticket that can be made active any time, so you could buy it in advance if you wanted. To make the ticket "active" you have to stamp it using the pillar thing with the automatic date stamp at the station. Common mistake, but understandable you got an earful because you might as well be pretending you didn't know how things worked and are actually just riding again and again using the same pretend-ticket.

Similar with bringing a bottle of a brand that the store sells into the store - how are they supposed to know if you brought it in or if you just took it in the store and opened it there on the way to the cash register? (which, by the way, is not super uncommon either and generally tolerated)

German police are not allowed to collect fines on the spot, it's a corruption prevention measure.

cerebellum42··on A “bike platform” that temporarily swaps one car parking space for ten bicycles
Fair point, but arguably that's a bit short term thinking. What if at the same time(driven by increased ridership) public transport improved to the point where it's not an extra hour, but instead about the same time or only slightly longer than driving?

I don't think most US cities would ever get to a point where public transport and bicycles are much faster for a lot of regular routes (like in some European cities), but the gap can be closed if there is political and financial support to improve the infrastructure.

cerebellum42··on Stripe's API was down
It's a definition thing. In my opinion it's still a plug even if it's relevant (and that's how some other people seem to read the word too here). So just come right out with it instead of doing the "hey not to plug my website but let me just plug my website" thing
cerebellum42··on Anchorage Has Never Reached 90° F. That Could Change This Week
To cause "hysteria" in the way you're implying the general public would have to read the headline any other way than it is meant in the first place. But joe shmoe wasn't ever going to consider that 1000 years ago earth may have been in a different place climate wise so they're going to read the headline exactly the same whether it has the qualifier "in recorded history" or not.
cerebellum42··on CNLabelContactRelation&NegativeMediumSpace;YoungerCousin&NegativeMediumSpace;MothersSiblingsDaughter&NegativeMediumSpace;OrFathersSistersDaughter
You've got to love the "abbreviations" for these laws.

RflEttÜAÜG

cerebellum42··on Why is Stack Overflow trying to start audio?
Isn't every decent TV these days a smart TV? Not exactly practical advice
cerebellum42··on GFWaaS – Make Your Website Work in China
Google it. It's a meme about Xi Jinping, who, if you squint your eyes a little, looks like Winnie the Pooh.
cerebellum42··on Millions of Instagram influencers had their contact data scraped and exposed
The main differentiating factor is whether the "distributors" are the customers (as is the case with a lot of MLMs, around these days) and real sales to end customer only make up a small percentage of total sales. In those cases all the product ends up in garages and attics of the people who bought in and now can't sell because the product is overpriced shit and designed as such. That means the primary way to make sales is to recruit new "distributors" who then have to do the same (so, pyramid schemes).

However things like tupperware didn't seem to work that way, the product was actually mostly sold to end customers which makes it a legitimate business and not a pyramid scheme.

cerebellum42··on Use mmap with care
To disk is probably a bad idea but over the wire has some legitimate applications. Being reliant on same endian systems can be alright if for example you're building a distributed computing system where the same binary will be executed on a bunch of systems and all you're doing is sharing computation results between those instances. You do get unrivaled serialization speed that way. Timely Dataflow [1] works that way by default, but it also has an option for "real" serialization if that is required. Admittedly that's a fairly specific application but it's real and sometimes it's a good tradeoff.

[1] https://github.com/TimelyDataflow/timely-dataflow

cerebellum42··on Pilot Who Hitched a Ride Saved Lion Air 737 on the Day Before Deadly Crash
>But this isn't really "avionics and surface control" more than automatic lane keeping is a critical control system for the car.

Even if we suppose that is true and a fair comparison (which I wouldn't), the way failure modes are handled is key. If there is uncertainty about the sensors that control the feature which controls the avionics the system needs to halt. This is like keeping the lane control active when the computer vision algorithm used to detect the lanes is uncertain about where the lane is. Chances are it'll steer you into the next available tree and kill you.

cerebellum42··on Boeing 737 Max pilots complained to feds for months about suspected safety flaw
I would read it the same way, but personally I would want to attach an additional qualifier: It's likely that this is one of the causes.

There may or may not be something inherently problematic about the way the MCAS works, but more thorough training would likely have lowered the chance of these accidents happening - having the same type rating was one of the root causes for the lacking training

← PreviousPage 2 of 4Next →