HNHacker News
TopNewBestAskShowJobs

fear91

547 karma · joined April 30, 2012

submissionscomments
fear91··on “After 20 years coding I just realised, commit messages are pointless”
Yet another example that years of experience is a poor measure of skill.
fear91··on [dead]
This looks like spam? 12 points in 3 minutes and top of front page
fear91··on Elastic.co lays off 13% of team
Just use self hosted OpenSearch. It’ll save your company millions anually if you are large enough.
fear91··on How much does Rust's bounds checking cost?
I have removed signed-integer based values bounds checking in a compiler once and before I noticed, I got a nice 3.8% performance gain in a large diverse benchmarking suite. While not expensive, bounds checks are certainly not free.
fear91··on Inverting a binary tree using x64 assembly
Yes, it’s 1 cycle but it’s longer to decode and occupies more of l1i cache. It’s not all about execution cycles.
fear91··on Inverting a binary tree using x64 assembly
You can use the 32bit xor to reset the register. Also TEST REG,REG might be better for checking if it’s zero.
fear91··on Making a Go program faster with a one-character change
Can you show any examples of "go compiler being garbage"? In my experience, it often generates much smarter code than C# or Java.
fear91··on Compiler optimizations are hard because they forget
Please refrain from making those misleading statements. One can easily prove you wrong by disabling constant hoisting and CSE and showing it significantly slows down practical code(JSON parsing, gzip). I actually worked on CSE today and had benchmarks differ by +/- 30% just from that. All on a new Alder Lake. Your post is wrong and misleading.
fear91··on DRY is an over-rated programming principle?
The “branch” looks like an easy cmove target. Moreover, while it might not have a branch in the func itself, you will have to have one somewhere higher in the control flow anyway.

As for loop unrolling, I bet you a loop with unrolled calls to 2 different unDRY functions will be slower (and not only because of the most certainly present extra branches to select for them)

fear91··on DRY is an over-rated programming principle?
DRY is better for performance (cache efficiency). It’s also less work for the compiler. Those might not be concerns of someone writing pizza CRUD in python.
fear91··on Covid-19 is now officially a pandemic, WHO says
This should have been done way earlier. WHO's excuse of not declaring it before was that it didn't reach Antarctica yet... which is ridiculous.

Had they raised alarm early on, more countries would have enforced proper procedures (look at South Korea). Instead, the thing spread around and starts impacting economy.

To me, WHO lost all credibility.

fear91··on America’s Millennials Are Waking Up to a Grim Financial Future
I believe there are some solutions to help alleviate the situation.

Introduce land value tax.

In the countries using it, stop the mandatory Ponzi scheme retirement pyramid where young people are forced to pay a sizeable part of their paycheck while having no hope of receiving any in 30-40 years - that's straight up, time-delayed stealing.

Close the tax gaps used by corporations.

Provide free healthcare so people don't get ruined by medical emergencies.

Stop the student loan madness, provide free university education.

Restrict mortgage lending - it makes the property prices baloon in the long run and encourages housing bubbles.

Most importantly, start treating renewable energy and emissions seriously because we are destroying this planet with a speed with which we probably won't have to worry about economy after a few more generations.

Unfortunately, all of those would require enormous political changes and are impossible to implement.

fear91··on Is K8s Too Complicated? 
You need to hire people who are competent with a new, quickly evolving technology. That means it's hard to hire someone good and it's expensive.

The upside is that you can replace multiple "normal" ops people with just a few K8 folks but that also requires a bit of culture change of how you do development.

fear91··on Is K8s Too Complicated? 
OpenStack is used mostly for the layer beneath Kubernetes. We use it to provision the VM's/networking for the Kubernetes cluster itself.

Kubernetes might not make sense for your small scale projects but it's great when used for enterprise scale microservices. It makes deployments easier, faster and more secure (with things like network policies, namespacing and RBAC).

fear91··on Google is Crushing the Internet
I'm wondering when, if ever, the general public will start recognizing Google as one of the "big brothers". Somehow it's still perceived as this "cool" startup but they squash small businesses, avoid taxes, are in bed with intelligence agencies, etc.
fear91··on Mercedes-Benz shows off the first fully electric heavy urban transport truck
Unfortunately the range is becoming a problem on big electric trucks. The batteries cannot store as much energy per weight unit as the chemical fuel. This can be circumvented by using electric wiring overhead.

Sweden is prototyping an electric highway for trucks. It'll make transport cheaper and less damaging to the environment.

fear91··on Mercedes-Benz shows off the first fully electric heavy urban transport truck
It's actually done to make it harder to see anything:

http://www.autoguide.com/auto-news/2012/04/spy-photo-camera-...

It makes it harder to see any details when the company wants to stay secretive about their new car.

fear91··on Muhammad Ali has died
If you are relaxed and trained you can dodge the punches because it takes time for them to reach you.

You really have to be aware of what is happening though, it's hard to learn not to flinch/close your eyes when the hand is flying to you. But if you are completely relaxed and see it coming, with good footwork and balance you can dodge many of them. You don't actually have to move your head that much, it's just the tiniest distance that will take you away from the trajectory of the punch. The thing with punches is that once you throw a punch, you can't really change its direction or it will lose most of the momentum and speed... That's why it's possible to dodge them, because they fly into particular spot and you can just move away.

It's important because it lets you counter instantly. You can only really hit somebody when they are exposed, meaning not holding the guard - so when they are punching. If you were to block the punch with your hands, you couldn't react as quickly because your hands wouldn't be in the ready position. It's really good skill to have but takes years and years of practice to develop.

fear91··on Google should be broken up, say European MPs
Google's grip on search is absolutely enormous, especially in Europe.

They literally decide lives of thousands of people when they change their algorithms. With one update, they kill thousands of websites someone lives off and then they replace them with big brands or their own services.

This isn't healthy for anyone and I wish there was more competition. It would do a lot of good to everyone.

fear91··on “No-CAPTCHA” reCAPTCHA
There's an annual contest for spam community. It's organized by Botmaster, the producent of Xrumer software.

Basically, whoever answers most of these questions correctly, earns $15,000. People submit MILLIONS of answers.

This list is then incorporated into the Xrumer itself.

I can tell you that these things are easily broken: a) Answering questions and building global list of answers, as in this case. b) Reading image captcha - spammers send it to Pakistani manual solvers for dirt cheap. c) More complex puzzle captchas can also be broken in software if a lot of websites implement them.

What works the best is using non standard html form field names. Also, try to not use text labels for the fields ( no "password", "captcha" etc. ) - because the software will try to match the best field by text surrounding it. It is better to use image for labels.

This solution will stop spambots because they simply match form field names. Unless someone specifically targets your website, in which case there's not much you can do.

From the most common of captchas, Mollom seemed to be the biggest pain in the ass for spammers. Mainly because it banned suspicious IPs ( you could solve the picture correctly and it wouldn't authorize it. )

fear91··on Machine-Learning Maestro Michael Jordan on the Delusions of Big Data and Others
What makes you think human brain isn't just an ensemble of hundreds of different specialized algorithms?

Trying to emulate biological brains might not be the way forward. People tried to fly by constructing bird-like feathers and wings - it obviously didn't work. We had to understand the underlying principles governing flight. The same applies to creating neural networks.

There's some underlying principle the brain uses. It doesn't mean we have to crack brain structure to achieve strong intelligence.

We should look for inspiration in biological systems but we should not try to copy them.

fear91··on Machine learning is teaching us the secret to teaching
Have you ever trained an SVM? Because 10000 examples is a laughably small dataset. It's not a problem for modern implementations.
fear91··on Cloud images that are recognized as human faces by a face-detection algorithm
Read up on restricted boltzmann machines and their ability to dream.
fear91··on Yann LeCun on the IBM neural net chip
There are some great posts about machine learning and database technology on Facebook.com ( by their staff ).
fear91··on Alexander Shulgin has died
It's a great shame.

I recommend the "Dirty Pictures" - a documentary about his life:

https://www.youtube.com/watch?v=f5q1bBVzDpc

fear91··on The commando scientist billionaire who died fighting terrorists
Some of the passengers were in contact with the ground:

"According to flight attendants Amy Sweeney and Betty Ong, who contacted American Airlines during the hijacking, the hijackers had stabbed flight attendants Karen Martin and Barbara Arestegui and slashed the throat of passenger Daniel Lewin.Lewin, an American-Israeli Internet entrepreneur, had served as an officer in the elite Sayeret Matkal special operations unit of the Israel Defense Forces. Lewin was seated in 9B, and Suqami was directly behind him in 10B. The 9/11 Commission suggested that Suqami may have stabbed and killed Lewin after he attempted to stop the hijacking. Lewin was believed to be the first fatality in the 9/11 attacks."

fear91··on Hardware for deep learning
How does this compare to CUDA implementations?
fear91··on [dead]
What happened to the previous submission?
fear91··on Poll: Were you banned by AdSense? When in the cycle were you notified?
It's common knowledge among SEOs that AdSense tends to be disabled a few days before the supposed payout. I haven't lost any big sum - only $2000 but I know one person that lost $40,000. It was all legitimate traffic coming straight from Google themselves, no click fraud no bought traffic etc.

PS: I was using AdSense from 2008 to 2013 - over 5 years so it's not like only new users got banned.

fear91··on SEO: 4 things huge sites are allowed to do but you’re not.
The best thing is they punish you for "ads above the fold" and actively de-index "scraper websites". Matt Cutts preaches how bad it is constantly.

Ironically, what Google could be summed up as is a scraper website absolutely FULL of ads above the fold ( http://searchengineland.com/figz/wp-content/seloads/2012/01/... ). If you place ads like Google does, your website won't rank shit.

← PreviousPage 2 of 5Next →