HNHacker News
TopNewBestAskShowJobs

CoconutPilot

118 karma · joined January 13, 2014

submissionscomments
CoconutPilot··on Python Concurrency: Threads, Processes, and Asyncio Explained
> definition of concurrency quoted from the Python wiki [0] which is imprecise: "Concurrency in programming means that multiple computations happen at the same time."

Surprising to some, this is the literal definition. The word "concurrent" is a portmanteau from Latin, "con" translates as same and "current" translates as time. Concurrent literally means "same time". Comp Sci really needs to use a different word.

CoconutPilot··on Google Fit dev APIs shutdown set, fate of Android, Wear OS apps go unannounced
Free is only Free when it is disconnected.
CoconutPilot··on The crash of Air France flight 447 (2021)
One thing that stands out to me is the incorrect use of the word "law" when referring to flight modes. Is this just a bad translation? Are any native French speakers familiar with the Airbus documentation able to comment if the concepts make more sense in French?
CoconutPilot··on Ubuntu-minimal depends on Ubuntu-advantage-tools
LXD is only available via Ubuntu proprietary Snap packages and not native .deb packages. Native as in Ubuntu is a Debian derivative, and .deb packages are the native package for Debian.

Snap has some downsides for server/infrastructure packages. Automatic updating being the most visible, but they are generally all about lack of control. This is what Snap does, it moves the power from users to developers.

CoconutPilot··on Object 279 – The Tank Designed to Survive a Nuclear Blast
Here it is in real life https://youtu.be/hmkMTKZt9J4

Its interesting to see how much trouble it has making a simple turn. The doubled up tracks seem to be a mobility disadvantage.

CoconutPilot··on The distinction between free speech as a legal right and cultural value
Free speech doesn't mean you can say whatever you want. It means you can speak with whom you want.

Free speech as codified in Bills of Rights is there to stop the Government from censoring people, usually opponents of the current Government.

The idea that you can speak whatever you want is ridiculous. There are many laws in the way of this, Assault, Libel/Slander, Perjury, etc

CoconutPilot··on DevOps: An idea so good, no one admits they don’t do it
I always liked this early definition of DevOps:

"Giving developers operational responsibilities has greatly enhanced the quality of the services, both from a customer and a technology point of view. The traditional model is that you take your software to the wall that separates development and operations, and throw it over and then forget about it. Not at Amazon. You build it, you run it." - Werner Vogels, Amazon CTO (2006)

DevOps meant that Developers are also responsible for Operations. But that meaning is lost to time, just like hacking meaning programming.

CoconutPilot··on Apple has gone to extraordinary lengths to make scroll bars invisible
"If you can't make it good, at least make it look good."

I guess Apple has conceded!

https://www.brainyquote.com/quotes/bill_gates_382270

CoconutPilot··on Rocky Linux: A CentOS replacement by the CentOS founder
Whats missing is an analysis of why CentOS failed. I think Rocky Linux needs to put out a plan how they will make themselves financially viable as we've had 3 high profile RHEL respins go down in the last 10 years.

CentOS failed twice, it ran out of money in 2014 and was rescued back then by Redhat sponsership. Again in 2020. Another widely used RHEL respin was Scientific Linux which mothballed when RHEL 7 was released.

There seems to be lots of potential users but not lots of potential money for a RHEL respin.

CoconutPilot··on Apple Silicon M1 Disruption
For a counter argument, I don't think M1 is going to disrupt anything. Its a great performer for sure, but its locked to a proprietary and closed ecosystem controlled by a single entity.

Its a new direction for Apple in their laptop architecture, and a solid first step, but the raw performance is not up to the fastest from AMD and Intel, and it lacks the ability to upgrade any of its components. I get it, its a laptop, but if you want to talk about performance lets put it out there: its a fast laptop.

People already in the Apple ecosystem will love M1, but it lacks a compelling reason to switch to Apple. Apple already made the best laptops, the M1 keeps that crown. People that were satisfied buying Windows laptops and Chromebooks will continue to do so because the criteria they used when making a buying decision involved other factors than "I want the best".

I expect SoC designs to fracture the CPU market in the coming years and kill AMD and Intel, but unless M1 opens up to other designers and companies its a tangent in the great CPU race.

CoconutPilot··on Sweden’s Relaxed Approach to Covid-19 Isn’t Working
> don't really understand the problem

You can err on the side of caution, or err on the side of risk. Sweden has err'd on the side of risk and it is looking like that was a bad choice.

Every week that goes by Sweden imposes more restrictions. Soon they will have as many restrictions as the rest of Europe.

CoconutPilot··on Apple Hides Taiwan Flag in Hong Kong
Apple stood up to the US government's requests to decrypt devices but capitulated to China's request to remove an image of another country's flag.

This is scarey.

CoconutPilot··on Oregon Just Voted to Legalize Duplexes on Almost Every City Lot
Whats bothering me? I guess the inability of anyone to have a usable discussion on the lack of strategic planning in initiatives like this...

Holy cow I wish I had never "spoken up" in the first place.

CoconutPilot··on Oregon Just Voted to Legalize Duplexes on Almost Every City Lot
Cop out? Its the truth. Infrastructure can be upgraded but today it isn't. There is no plan to upgrade infra!
CoconutPilot··on Oregon Just Voted to Legalize Duplexes on Almost Every City Lot
The problem people don't want to address is these neighborhoods were not designed to handle this many people. They don't have the power, water, natural gas, sewerage, parking, etc to handle these many people. As a result everyone's quality of life is degraded.

The city loves the taxes though.

CoconutPilot··on Concurrency Is Not Parallelism (2013) [video]
The dictionary definition of concurrency contradicts this video. Concurrency is defined as "happening or existing at the same time".
CoconutPilot··on An error message, still found in Windows 10, is a mistake from 1974
There are bugs, there are design flaws, and there are limitations. Often people are confused how to classify an issue between these categories.

This is a 44 year old limitation.

CoconutPilot··on Ask HN: How much did you, as an employee, make when your startup exited?
I joined a startup in 2000. All employees starting before me were offered ~50k shares in the company as part of compensation while I was offered ~50k options. I was told options were the more correct way of doing way of doing things and other than the strike price they were essentially the same.

As a junior employee who didn't know any better (and no negotiation leverage anyway) I accepted the deal. Fast forward a couple of years and as a potential sale of the company approached it was announced that the stock was going to split 10 for 1. What this means is everyone with shares now had 10x, while option numbers were unaffected (ignoring that the stock price is now 10% of what it was).

When the company was bought the price per share was equal to the strike price of a second grant of options I had, making them worthless. I suspect most of the employee options were at this strike price.

A fellow employee with shares made 40x what I did for starting a month earlier. My payout was <$30k.

CoconutPilot··on In defence of swap: common misconceptions
Swap was a great idea, but its time is gone. Swap doesn't make sense anymore, hard drives have not scaled and kept up with the improvements in RAM.

In the Pentium 1 era EDO RAM maxed out at 256MB/s and hard disk xfer was 10MB/s. Common RAM size was 16MB.

In today's era DDR4 maxes out at 32GB/s and hard disk xfer is 500 MB/s. Common RAM size is 16GB.

RAM xfer rate has grown is 320x. RAM capacity has grown 100x. Disk xfer rate has grown 50x.

Swap is no longer a useful tool.

CoconutPilot··on Ice cycles: the northerly world cities leading the winter bicycle revolution
I never heard of Oulu before so I did a bit of research:

Avg temperature -14c in Jan to 19c in July.

Avg precipitation 19mm April to 65mm August.

Avg windspeed <10mph year round.

UV index +4 in July (50% cloud cover).

Terrain: small and flat.

Conclusion: a tiny, flat city with cool, yet mild weather is a good place to ride a bike year round.

https://www.worldweatheronline.com/v2/weather-averages.aspx?...

http://www.oulu.climatemps.com/

https://www.google.ca/maps/place/Oulu,+Finland/@64.995967,25...

CoconutPilot··on Judge: It's OK If Best Buy's Geek Squad Nerds Search Your PC for Illegal Content
The only image "found" was a thumbnail from a known anti child abuse video (and not pornographic in nature).
CoconutPilot··on Electric buses are now cheaper than diesel/CNG
I'm scared to think it, but I suspect we'll see battery powered buses and trucks banned from high security (ie airports) and valuable infrastructure (ie bridges, tunnels) over worries about the explosive potential of their lithium batteries.

The Proterra buses (company quoted in the original link) look to have 1000s of pounds of battery in a bus. Judging by the ferocity of a laptop/phone battery burning if the bus' batteries could be maliciously burned it would be an absolute inferno.

CoconutPilot··on Looks Can Kill: The Deadly Results of Flawed Design
Consider this scenario: you're shifting up from 1st gear and forget what gear you're in. If you're in 3rd gear its safe to shift up and to the right. If you're in 5th gear its not safe, up and to the right is reverse!

I don't agree with your analysis. Toyota's shifter is unsafe.

CoconutPilot··on Looks Can Kill: The Deadly Results of Flawed Design
You've somewhat proven how poor this shifter design is because you didn't realize it is for a 5 speed transmission!
CoconutPilot··on Looks Can Kill: The Deadly Results of Flawed Design
Another horrible shifter is Toyota's. Take a look here: http://imgur.com/a/9ShAC

First gear is all the way down and to the right. Then left for 2nd, up and left for 3rd, up for 4th, right (!!!) for 5th (aka drive). Now it gets dangerous, if you go up and right you get reverse.

Is there a method to this madness?

CoconutPilot··on Don't tug on that, you never know what it might be attached to
The problem with "newish" features like capabilities, file attributes, SElinux is they haven't been integrated into the traditional nix utilities and almost nobody knows what is going on with them. A few examples of the poor integration:

File attributes override the nix permissions such that you can set the immutable flag on a file and even root can't modify it. `chattr +i FILENAME && rm FILENAME`

On distros that use capabilities copying a file doesn't copy capabilities by default. ie copy the ping program and it wont work unless you're root.

When SElinux blocks an action the error message is almost always wrong. ie A program tries to make a TCP connection which it doesn't have permission for. Instead of an error message like "SElinux violation" you get an error like "No route to host". To debug you need to look at the SElinux audit.log and try to match up timestamps of violations to when your program died.

CoconutPilot··on Rewrite Tor in Rust
Is there an anti-pattern for this kind of thing? Its a two line bug report suggesting years of development effort. There is a huge multiplication factor between the time invested by the bug reporter and the time required to do what he asks.
CoconutPilot··on The design of Britain's wall sockets
> Uk is 240V 13A which is a bit more powerful that the 110 v Us system.

Actually UK is 230V and North America is 120V.

https://en.wikipedia.org/wiki/Mains_electricity_by_country

CoconutPilot··on Systemd mounted efivarfs read-write, allowing motherboard bricking via 'rm'
Unix has a long tradition of doing a `rm -rf /` before reinstalling a system. I don't agree with the people saying "don't do that". It worked safely before, it should still be safe to do.

(yes I know about --no-preserve-root)

CoconutPilot··on Introduction to Concurrency
> I think concurrency has nothing to do with doing things "at the same time".

Concurrent is a word that pre-dates computers, and for the English language to work we need to stay true to its definition. The dictionary definition is: "occurring or existing simultaneously".

http://dictionary.reference.com/browse/concurrent

Page 1 of 2Next →