HNHacker News
TopNewBestAskShowJobs

throw149102

342 karma · joined March 31, 2020

submissionscomments
throw149102··on Strong quantum computational advantage using a superconducting quantum processor
From my understanding, the quantum threshold theorem states that if you have a low base error rate (1-3%) you can apply multiple levels of a single quantum error correcting code to get arbitrarily low levels of errors on a logical qubit ("remove errors faster than you introduce them"). Right now that means that you need approximately 1000x physical qubits for 1 logical qubit, but to me that's a solid mathematical/theoretical demonstration that you can scale QC.
throw149102··on Strong quantum computational advantage using a superconducting quantum processor
My understanding is that this simulation of random quantum circuits is already known to be hard in a theoretical sense[1], and there is no argument that a classical computer could compete with a quantum computer much bigger than 50-60ish qubits. And that arguments against those previous papers has more to do with classical optimizations such as using disk w/ RAM rather than just RAM alone.

For example, take this line from IBM's refutation of Google's Quantum Supremacy experiment: "64 PiB of disk space are required for 53-qubit circuits, and 128 PiB for 54-qubit circuits. Both fit within the 250 PiB available on Summit."[2] If you have to use over 50% of the total disk space on one of the world's strongest supercomputers, you're probably going to run into some major issues once we start hitting the 55, 56, 57, 58, etc. qubit territory. And although this is a moving goalpost, the supercomputers clearly aren't going to get better faster than adding single qubits onto the current chips. Already Rigetti is announcing an 80-qubit quantum computer, and IBM is making an 127-qubit computer.[3]

So, IMHO we are far past the point where quantum computers have to prove themselves superior to classical ones, at least on designed tasks. I don't think we should compare failed P vs NP proofs (which, IMHO is a problem we're anywhere from 5 to 10000 years out from solving).

All this being said, I do have to agree with IBM on the value of the term "Quantum Advantage" versus "Quantum Supremacy". Quantum computers have not yet demonstrated a significant advantage in terms of cost on any problem, but I'm optimistic they will in about a decade. Probably in problems that are already naturally fit to quantum computers, like studying interactions between particles in quantum physics. Also for the record I'm a layperson with just an unusual interest in this field, so it's easily possible I've missed some incredibly important central problem that everyone is being quiet about.

[1] https://arxiv.org/abs/2007.07872 [2] https://arxiv.org/pdf/1910.09534.pdf [3] https://arstechnica.com/science/2021/06/quantum-computing-st...

throw149102··on Ask HN: How aware are you about building decentralised software on blockchain?
My biggest concern is security - that smart contract lives forever on the blockchain, secure or not. It's a pretty huge downside for very minimal gain.
throw149102··on [dead]
Well, if you accept using an arbitrary model with very little basis in reality, then yes, math proves it. But if you don't accept the premises, then I don't think math has much to do with it.
throw149102··on The Limits of Optimization
I would counter that these off-the-wall approaches have become more common with more advanced chess AIs, i.e. AlphaGo Zero and Leela Chess Zero. They frequently play gambits and other aggressive lines that previous chess engines didn't. I think these limits may just be the growing pains of applying rationality to a game, and in the long term statistics and optimization can lead us to better games in general.
throw149102··on Software Developer Shortage Is Coming
Another point is that software engineering (currently) has a situation where the higher the supply goes the higher the demand is. Once an organization starts digitizing their processes, there is a higher additional benefit to hiring another software engineer, because that second one has access to data that previously not accessible programmatically. Previously information that was kept in excel spreadsheets or on paper is now on servers.

You would think that it would eventually lead to some stopping point, but there are additional funnels and issues. For example, finding professors in university to teach software engineering is hard, because all of the people graduating from their universities in software engineering know they can make much more money in the industry than in education. Places like Stanford or MIT (who are already trying to be selective on purpose) can afford it, but community colleges or even high schools can't give them 1/3 of what they would make otherwise.

throw149102··on You might as well timestamp it
This makes me worry about clock skew and asynchronous code in general. For example, a timestamp might lead you to believe things happened in a different order than they did because the timestamping process isn't atomic.
throw149102··on Rise of the 10x Class (2020)
I don't agree with the conclusion of the article. This article borrows a lot from Joel Spolsky's "Hitting the High Notes" https://www.joelonsoftware.com/2005/07/25/hitting-the-high-n... , and for a rebuttal I would look at https://ericsink.com/articles/Choir.html

IMHO building teams that work together well is far more indicative of success than individual high performers, and as a result the economic impacts will not happen to individual "10X" performers but rather teams, organizations, and companies that can harness the network effects (i.e. what we see right now, where companies like Facebook, Google, Amazon, Apple, etc. are more dominant than individual people).

throw149102··on Software designers, not engineers: An interview from alternative universe
The universe posed in this blog post is absolutely horrifying.

Starting off from the beginning: The last thing the world needs is more hero-worship. The idea of a "softwarenova" is somehow even more self-absorbed than "rockstar" or "ninja". It is completely antithetical to open source principles of collaboration, meritocracy, and community. We should strive to include as many people, and as many differing viewpoints, to the creation of software as possible. This is both in the name of diversity and inclusion as well as correctness and reliability. Creating people who are "above the common masses" can only hurt this goal. To the (hypothetical) interviewee's credit, she doesn't like the term.

Secondly, this idea that things in our universe are somehow prematurely over constrained, while in the design universe you work with design briefs and things are looser. The problem in the real world is that things are too often underspecified - Either in terms of latency, or availability, or security, or correctness, or even in what problem you're trying to solve. I find this extremely confusing to be coming from someone who has worked on F# and functional programming. Functional programming has such a strong emphasis on types, and eliminating classes of errors via types. I think if the author went to work in a software shop using C# or Java or any non-functional language he would instantly recognize how this loosey-goosey approach leads to software that is utterly unmaintainable.

Thirdly, while I do agree that a great number of problems are ill-defined, that is not because they are wicked. Wicked problems imply novelty and uniqueness, but the vast majority of software is simply executing some CRUD operation on a set of data. It isn't unique or novel, there are clearly correct and incorrect answers, there are alternative solutions available, etc.

My imagined universe is almost the complete opposite of this one, that is, instead of thinking of software engineers as designers, we should think of them as mathematicians. (Or at least, that is the mental model that would help the world the most). Software should be formally verified, and be proven to be correct rather than aesthetically divined to be correct. We should seek to maximally specify software, much further beyond the way the industry is currently working. We should overwhelmingly reject the notion that certain people have a gift to work on this, and others do not, and instead seek to bring everyone we can up to a level of technological literacy. We should standardize as much as possible to make software easier to use, rather than having this boutique approach. We should avoid thinking that age has anything to do with how well someone can program, young or old. In other words, the field of software development needs to grow up, badly. If the field could live up to the title of "Engineer" things would improve dramatically.

throw149102··on Background: how we got the generics we have (2020)
Nothing - unless you also take a function that allows you to transform from one type to another. For example, you can write a function like:

  S<U> map(S<B> b, (B -> U) func) { //stuff}
Which allows you to do things like:

  Optional<Integer> i = 4;
  (Integer -> Float) func = (i \* 2.5);
  Optional<Float> f = map(i, func);
This ability becomes much more powerful when you're parsing some file. Imagine you're parsing some JSON of people, and you're using https://schema.org/Person as the type. So the JSON contains things like additionalName, affiliation, birthPlace, email, gender, image, etc. and each of those are typed respectively - a Name class, Affiliation Class, Location class, Email class, Gender class, Image class, etc. Now imagine that the service you're calling may fail to return certain values.

In java, it's idiomatic for libraries like Gson to return null on the fields that aren't returned - so if you try to get a person who doesn't have an additionalName, the additionalName field in the Person object will be null. It would be nice if it could be an Optional<AdditionalName> instead of just an AdditionalName to force the null check, but then the library becomes extremely painful to use. You would end up having to call additionalName.get() whenever you just want the name. If you have HKTs, then you can operate on the fields and ignore the fact that they're technically Optionals.

It's also generally recommended in Java to not use Optionals in fields in classes, or to express the optionality of a value in a constructor. If you do, you have to wrap values in Optionals to make the object, which harms readability.

HKTs can become even more powerful with types other than Optional/Maybe. Either, Monad, Future, Comonad, IO, Functor, Applicative, Task, etc. You would be surprised how many design patterns in Java end up being just a simple combination of these types that are much more ergonomic with HKTs.

throw149102··on Stop Nitpicking in Code Reviews
I'm not sure how much I agree. The author says there are 2 big benefits:

1. Vastly improved signal-to-noise ratio 2. Better relationship with code reviews

For 1, in most CR systems you can mark the comments as resolved once their fixed. They don't even have to show up once they're fixed. That should improve the signal-to-noise ratio. In addition, nobody should really just be glossing over any comment, regardless if it's a nit or if it's a serious change.

For 2, I still think that you should try to not take code reviews personally. Perhaps it's more a sign of the environment or the company these CRs are happening in? That "zen-like acceptance" isn't something that just pops out of nowhere, it's something that has to be developed and built. Strangely, when I get a bunch of nits on my CR, it actually generally makes me happy. It's proof that the other developers on my team couldn't really find anything wrong with the code I wrote.

Of course, I'd still love to have 0 comments instead of a bunch of nit comments, so I 1000% agree with using automated tools to lint code, ideally in multiple places (before build, before commit, after commit, before merge, after merge, ...). I think it also helps focus reviewers on giving more meaningful feedback.

throw149102··on Tips for a Better Life
I've heard before that the smarter you are, the more naive you are. The way I think about it, the smarter you are the more often you are correct about something that no one else is, which causes you to rationally place your judgement above others, which causes you to believe a bunch of nonsense. When presented with counter-evidence, you are more likely to trust your own reasoning than to trust the evidence.
throw149102··on Be prolific
I realize this is a silly criticism, but it's strange that the author would write about how it's valuable to make a lot of stuff but then to only write 11 sentences about the topic. It seems like it would be much better way to demonstrate the point if the author wrote 100 pages about producing more work/art/code, without any rhyme or reason or editing. After all, the thesis is "Quantity leads to quality", why not just do that?

Of course, I appreciate concise writing and if it were 100 unedited rambling pages it would never be posted on HN or read by anyone. But admitting that seems to be antithetical to the entire point of the blogpost. It just seems like the article doesn't even believe in the idea. It also feels like there wasn't a whole lot of thought put into the post, and I guess that's evidenced by the fact that the art class anecdote doesn't have a source.

The blogpost also ignores all of the issues related to being prolific. Imagine a would-be-weightlifter who has awful form, but does a ton of reps. Not only is their exercise near worthless, it could be potentially dangerous. Or in music, where you could accidentally continually practice a bad habit instead of taking the time to find a mentor and learn how to practice correctly. In software, you could potentially produce something that is buggy and insecure by default. If the code were then included as a dependency in larger projects it could be a cause for a security disaster. I think there's more to high-quality work/practice than just doing it more often, even if that ends up being the most important part of getting good at something.

throw149102··on Stop Asking Me to “Sign Up” (2014)
I was hoping this article was going in the direction of "Making it clearer what startups are providing for free and what they're providing for a cost" but unfortunately it's just about the wording of your sign up button.

I was trying to download Postman to test something out earlier this week, and not only is there no button on the webpage to go to downloads, but even when you download the app it still prompts you to sign up/log in with a tiny greyed out link at the bottom saying "Skip signing in".

If you want to really drive sales, stop with this user-hostile adversarial bullshit and start putting my needs first. For me, this article is still putting the companies needs first.

throw149102··on He Invented the Rubik’s Cube. He’s Still Learning From It
My favorite class in college was a class on Motion Planning, and I remember using the Rubik's cube as an analogy for discrete motion planning problems. It was a fun way to talk about some of the less common graph search techniques, like iterative deepening. It's also interesting how the graph produced by the transitions of a Rubik's cube is so large, yet so uniform. There are 43 quintillion states, yet each state has the exact same number of transitions: 3 for each face, so 18 in total. And the fact that we actually can reliably search that space even using a relatively dumb graph search algorithm is astounding.
throw149102··on Security by obscurity is underrated
One point I haven't seen brought up yet is that anywhere from 25% to 35% of data breaches are related to an internal actor. Your obscurity will do nothing in those cases, because the internal actor will actually know about the obscurity. That being said there is a place for obscurity in security, it just has to be traded off with the usability issues.
throw149102··on What killed Haskell, could kill Rust, too
It seems strange to consider Haskell as dead when its motto was "Avoid success at all costs". Haskell wasn't popular in enterprise settings because it didn't want to sacrifice being a good language for being a popular one. Haskell was/is very successful if you base it on it's own terms. Now, that goal can be debated, it could be argued that an unpopular language is never that good because it is unpopular, but that's a different argument.
throw149102··on The Evolution of Psychiatry
My understanding of the research is that, compared to a placebo, antidepressants help as much as 20% more of the population (20% -> 40%), and the broader scope of drugs can help around 30% to 40%[1] of people. People routinely feel suicidal, take SSRIs, and later stop feeling suicidal.

[1] https://youtu.be/NOAgplgTxfc?t=2294

throw149102··on The Social Fabric of the U.S. Is Fraying Severely, If Not Unravelling
To be honest, I'm not particularly familiar with how a deconstructionist approach to education works, so I won't vouch for or against it.

I do see the rise in single-parent households being an issue, but there's something confusing about that. I would expect kids to "act out" more if there was more psychological pressure on them, but the rates of things like teenage pregnancy and underage drinking is down over the past decade. This is in contrast to rates of depression increasing dramatically, even by 50% (around 8% to 13% in about a decade) in that exact age group (12-17).

Finally, as a young person myself, my (relatively recent) experience of highschool and being a teenager was quite the opposite - it's not that adults aren't holding them accountable, it's that they are holding themselves hyper-accountable. Both in the fact that they are comparing themselves to world-class performers on social media, and that there is now a permanent record of their social interactions online which can lead to politically correct woke mobs going after them. Being young in the US feels like walking on a tightrope while there's an earthquake going on.

throw149102··on The Social Fabric of the U.S. Is Fraying Severely, If Not Unravelling
I think the problem denoted in the article is far larger than losing a trust in news media because of what people are seeing on a video. Thinking that CNN is full of crap doesn't make young and healthy people want to kill themselves, and that's where we are. Like the article said, we have a generation of people who are so lonely and depressed that 25% of them have thought seriously about suicide in the past 30 days. We're living in a death cult.

That's not to say that the loss of faith in institutions, especially the news, isn't a big deal, but personally I think this problem is 10 to 100 times bigger than that. It's an economic collapse, a pandemic, growing income inequality, climate change, the effect of technology on our minds, what we put into our bodies, and a thousand other things I can't even begin to name.

The more I read and think about the world today, the more I think that mental health is the problem of the 21st century, and that the previous list of issues is actually all secondary to the problem of mental health. There are enough resources and enough intelligence to solve all of those problems and more if we had the will.

throw149102··on Attraction Inequality and the Dating Economy
Couple of points:

1. Not clear how likes proxy to "success" in terms of dating. Some people are just looking for one night stands, while another might be looking for something more long term. If women are consistently looking for something long term, and have to get to at least the third/fourth/x-th date to have a "success", then it makes sense for them to be pickier than men who only are looking for the first date.

2. Not clear how this extends out into the general "Dating Economy", it's quite possible that there is a certain pathological case of people who get stuck in the dating sphere for an extended period of time who end up distorting the statistics. Compare this to the fact that 50% of marriages end in divorce, but that's mostly driven by people who get divorced multiple times, and first marriages have a much higher success rate. Among people who actually do settle, it may be that women have more inequality in their dating market then men do.

3. We're not mentioning that women aren't swiping as much because for them there is a serious fear of being assaulted when going on a date, while for a man that is greatly diminished.

throw149102··on Over three billion people worldwide now play video games, study reports
Adding onto this, imagine how you would feel if someone said

"There are 3 billion Spanish speakers worldwide"

But then you learned that only 500 million were really fluent, and the rest ranged from broken Spanish that was enough to get by in a Spanish speaking country to people who were forced to take a Spanish class in highschool and never used it again.

I think this concept of "fluency" in games is probably a more useful metric. The question is, if I dump you in front of a game that you've never played before, but it conforms to the language of video game design, how quickly can you beat it? I would imagine that someone who only played Candy Crush would not understand how to move their camera around in a 3D environment, for example.[1]

You could extend the metaphor further, for example Spanish is spoken in many different ways around the globe, and therefore some people who speak one dialect of Spanish can't understand another dialect of Spanish. The same could be true for games, and we would need to classify and understand these dialects.

[1] https://www.youtube.com/watch?v=ax7f3JZJHSw Interesting video talking about what games are like for a non-gamer, shows an example of not understanding how to move the camera and the player at the same time.

throw149102··on Millions of U.S. Jobs to Be Lost for Years, IRS Projections Show
What's going to happen when these 37.2 million jobs are lost? Are these people just going to starve on the streets? Do they have financial resources that they didn't know they had? I find myself frustrated whenever reading about the job losses because things are always phrased in the abstract, like "The agency expects that $METRIC will be down 40% in the next decade." I don't know what that means for the people who are actually going through this catastrophe.

I also seriously question these sorts of projections, especially out as far as a decade. There's so many variables and unknowns, and I'm not certain how the IRS arrives at this conclusion, and it's not clear what assumptions they're making in their projections.

What I really need is a recent comprehensive source on how COVID is affecting the economy. Right now all the information is coming in piece-meal and I have no idea what to make of it all.

throw149102··on The Case of the Top Secret iPod
Instead of being in the possession of a spy itself, it could be a trojan horse for spyware. You give the iPod (or several iPods) to important people around the world, and when they plug it in to a computer it executes some sort of Zero-day exploit, potentially even a backdoor embedded into iTunes developed simultaneously with this project.

Or maybe these iPods were used for multiple purposes at the same time. Anywhere where you needed a non-suspicious device to do something extra, you could get one of these custom iPods.

throw149102··on Open Problems in Robotics
Deaths are often measured in deaths per 100,000,000 miles driven, with a current measurement of 1.18 deaths per 100 million miles[1]. If a car is driving 60 mph 24/7, it takes 190 years for it to drive 100,000,000 miles. Let's assume that, in a decade, 1% of cars are on autopilot. There are 37,000 deaths per year in the USA due to car accidents[1]. Therefore, in order for Tesla/Google/GM to claim that it is equivalent to normal cars, it has to drive 370 * (100 million/1.18) ~= 31,300,000,000 miles, with only 370 accidents. If $COMPANY really had, say, 400 accidents, then it would have to make up the additional miles. In specific, it would have to make up 30 * (100 million/1.18) ~= 2,500,000,000. That means a fleet of (190 * 25) = 4,750 cars driving 24/7 for an entire year. That's not impossible for $COMPANY to do, but it is starting to become unreasonable. What's more likely is that $COMPANY just straight up lies about its incidence rate to regulators. But that's hard to do, considering it's going to be public if someone gets hit by a car.

I don't think its possible to fool the regulators, but even if it was possible there are dramatic consequences for lying. Volkswagon tricked regulators into thinking their car didn't emit as much as it really did in 2007-2015, and ended up having to pay 33.3 billion dollars in fines and returns[2]. Volkswagon stock went from a high of around 27 to 12. 5 years later, it's only recovered to around 16. The massive lawsuit that would be formed if Tesla's (or other automated car maker) car was found to be unsafe would likely be even larger. Furthermore, it would crush the self-driving car business semi-permanently. VW at least still gets to make environmentally safe cars, Tesla and Waymo's main value proposition is dead in the water.

Basically, even though there are incentives to lie and cheat, I think the incentives to try to make something that is safe is far, far greater. And while I'm sure there are Google cars driving the same route every day, I'm sure there are also tests being done in all sorts of conditions all over the planet. I think that practically, socially, and politically speaking, we can use billions of miles driven. The stakes are way too high to lie.

[1] https://en.wikipedia.org/wiki/List_of_self-driving_car_fatal... [2] https://en.wikipedia.org/wiki/Volkswagen_emissions_scandal

throw149102··on Fastest star ever seen is moving at 8% the speed of light
I don't know enough physics to give a proper answer, but I think this example is wrong. I don't think you can measure your speed relative to something moving at the speed of light, because there is no reference frame for the photon to be 'at rest'. Even in the photons own reference frame, it's still moving at c.
throw149102··on Child sexual abuse material could be going undetected because of ‘false reports’
I have no idea how a researcher is supposed to show that CP induces demand in pedophiles without running into some pretty massive fundamental issues. There are already troubles getting people to admit who they're going to vote for anonymously, so getting people to admit that they are using child pornography anonymously seems like an extremely tall task.

I've also seen studies trying to show the opposite, or trying to show that there is no causation either way, so I don't think there is anything resembling a consensus on this issue at all.

throw149102··on The World's Simplest Interesting Algorithm (2019)
I find the 7/8-approximate algorithm for 3SAT to be simpler.

Given a set of clauses C_1 ^ C_2 ^ ... ^ C_n where each clause is an OR of 3 logical variables, find assignments to each variable to maximize the number of clauses satisfied.

The algorithm is to just assign each variable randomly. For each clause, there are 8 possible assignments, and 7 out of 8 make the clause true. Therefore, randomly assigning them gives you a 7/8-approximation.

What makes this so fascinating to me is that the difference between a (polynomial) algorithm that gets 7/8 right and one that gets 8/8 right is the difference between a child randomly guessing and solving all of the world's most important problems in a single algorithm. It could be worth trillions of dollars. Of course, it's probably impossible and therefore P != NP.

throw149102··on Twitch Is Developing Talk Shows and Dating Programs for Gamers
I've been thinking about this recently, and personally, I find some weird sense of empowerment in identifying as a gamer. All my life I've been thinking of gaming as some sort of defective personality trait, like overeating in reaction to stress or being lazy. And as far as gaming has made it in the public sphere, I still don't think it's really respected as a hobby. If anything, it's much worse than it used to be, because now people will also assume that you're a racist/sexist/xenophobe.

I imagine there's a similar parallel in being a "hacker". When a hacker is a kid, they're rebellious because they're intelligent and bored in their schoolwork[1]. And they like to take things apart and figure out how they work, and they're not totally understood by the rest of society that just wants them to settle down and conform to a set of social rules. I imagine that that kid would find the identity as a hacker to be empowering. And I think that is empowering because it's finally saying to this kid that his behavior is actually useful and good for the world, if he can harness it in the right way.

One final small point: I don't think that people necessarily always "consume" video games. Building games, like Minecraft/Factorio/Terraria/Starbound/Oxygen_Not_Included/Satisfactory/Stardew_Valley don't seem particularly consumptive to me. I struggle to identify competitive games as consumptive either. If I play a game of soccer with friends, I don't say that I'm "consuming" the game of soccer. So why shouldn't the same apply to Fortnite? Then there are single player games that don't fit the builder profile. But a lot of single player games aren't necessarily consumptive either. Recently I've been playing Dark Souls 1, and while some of my experience in that game could be called consumptive, I don't think all of it does. A lot of that game is figuring out how it works, building a strategy to combat a boss, and what I'm doing there is not exactly consumptive.

[1] Just like gamers: https://youtu.be/fJOm1zXvVcs?t=277

throw149102··on The History of Loneliness Can Help Us Through This Pandemic
Potentially, I've never seen a study relating personality to ATP.

The usage of "energy" here is a metaphor for how the dopamine system is invoked in the brain. Introverts have less dopamine released in a social interaction than extroverts do, and that gives the impression of "tiredness" or "having less energy".

← PreviousPage 3 of 4Next →