HNHacker News
TopNewBestAskShowJobs

jballanc

9,437 karma · joined November 23, 2008

I'm just a guy with some ideas...programming lets me do something with them.

Get in touch! jballanc@gmail.com https://github.com/jballanc

[ my public key: https://keybase.io/jballanc; my proof: https://keybase.io/jballanc/sigs/pxb6FPsVF9hoQMyb2ap0euWoNG3YxwN2g4VY94RRxX8 ]

submissionscomments
jballanc··on A Game of Life on Penrose Tilings
Now combine this with the 4-color theorem to set up a competition of 4 species on the grid...
jballanc··on SanDisk crams 400GB into a microSD card
This raises the inevitable question: what's the bandwidth of a 747 full of these cards?
jballanc··on Tesla’s Push to Build a Self-Driving Car Sparks Dissent Among Its Engineers
Honestly, I don't understand why the automobile industry doesn't learn from the airline industry. Airplanes have worked out how to balance autopilot capabilities with the need for pilots to remain engaged and attentive for years. Simply implement a Drive-By-Wire, similar to Airbus' Fly-By-Wire systems. A driver's inputs to the controls would still be required, but the autonomous systems could prevent or limit certain actions (such as accelerating into a stopped vehicle or swerving off the road).
jballanc··on Hackers nab $500k as Enigma is compromised weeks before its ICO
First part is Hanlon's Razor, second part is Einstein:

> "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."

jballanc··on FemtoCleaner – A bot to automatically upgrade your Julia syntax
(For those not accustomed to checking usernames, I feel fairly certain this comment was made in jest ;-) )
jballanc··on Four Earth-sized planets detected orbiting the nearest sun-like star
Even at 50% the speed of light, adding in a fudge factor for acceleration/deceleration, you're still talking about a trip time of 50 yrs. Even if you go all Neon Genesis and send 15 year olds on the journey, they'll be at retirement age by the time they arrive.

In other words, you'd almost definitely have to send a generation ship. Which means you'd have to have already figured things like artificial gravity, giving birth and raising children in space, etc. It wouldn't be too hard to imagine taking earth values for day/night and gravity, and then gradually over 50 years adjusting them so that, by the time you arrive, you'd have acclimatized to those values on the new world.

Also, nuclear sub crews live 18 hour days, so it's definitely doable.

jballanc··on Turkish GSM networks currently play a message of the President on any phone call
If you think that it's "luck" that Turkey's location on the map is important in 2017, you should go back and look at the history of the region. Istanbul has been one of the major focal points of world history for literally 7000 years. Ottomans, Romans, Greeks, Persians, and even Celts (yes, those Celts) have ruled over or passed through the region. Hell, the place where "history" was invented is even in modern Turkey.

"Luck" has nothing to do with it.

jballanc··on Edge cases to keep in mind when working with text
I mean, I'm no fan of the British, but I wouldn't call them "scum".

Oh, or did you mean a different situation where a misunderstanding via text led to a murder? http://www.dailymail.co.uk/news/article-1356632/Man-killed-f...

jballanc··on Edge cases to keep in mind when working with text
I'm not sure I understand. Are you saying that, because a misunderstanding over text led to one person murdering another, that the culture in which these events occurred was primitive, backwards, and deserving of the epithet "scum"?
jballanc··on Sony plans to make vinyl records again
Not sure if this is still the case, but 10-15 years ago most vinyl albums were mastered separately from CDs. CDs were subject to the horrors of the loudness wars: https://en.wikipedia.org/wiki/Loudness_war . So, in many cases, the vinyl actually does sound better, but not (directly) because of any difference in technology, just a difference in how the medium was processed.
jballanc··on Curl author Daniel Stenberg‏ denied entry to U.S. by ESTA
For anyone unfamiliar, the reason the airline would've denied him boarding if they even thought there was an issue with ESTA is because airlines are responsible for bearing the cost of his return flight if he is denied entry in the US. Shame, really, since it seems like there's a decent possibility that had he actually made it to the US border he would have been allowed to enter.

The whole system is somewhat archaic and outdated.

jballanc··on Iowa insurance market collapse could ground young entrepreneurs' dreams
I'd actually be interested to see the numbers. Obviously, as you say, it's not just size but also the risk profile of the group...but add to that the fact that this pool is being split between as many companies as are selling on the marketplace, I wouldn't be surprised if size is part of it.

Regardless, if universal health coverage is a goal, the only way to truly amortize risk is to have everyone in one pool. Anything less pits some very perverse incentives against an inherently inefficient market. It's no wonder no one wants to participate!

jballanc··on Iowa insurance market collapse could ground young entrepreneurs' dreams
I always wonder why, in all the coverage about health care and insurance groups "pulling out" of the marketplace, no one seems to want to state the obvious:

* Insurers are not pulling out of the insurance market.

* Insurers are pulling out of selling to individuals.

* This is happening because selling to large groups (like entire companies) is easier/more profitable.

* It is easier to sell to larger groups because you have greater numbers across which to amortize risk.

* The largest group of Americans one could envision selling insurance to is...ALL Americans.

So, by pulling out of the unprofitable individual marketplace in order to focus on selling to larger groups, these insurance companies are practically shouting at us what anyone with half a head already knows: single payer is the only practical, efficient, and cost effective solution for universal coverage.

jballanc··on New Model of Evolution Reveals How Cooperation Evolves
All the factors you mention are accounted for by researchers that use game theory as the basis for evolutionary modeling (for a primer, check out "Evolutionary games on graphs" - https://arxiv.org/abs/cond-mat/0607344).
jballanc··on New Model of Evolution Reveals How Cooperation Evolves
That cooperation is eventually selected for has been known for decades, but we didn't know how. Yes, there have been many speculative models describing how cooperation might arise, kin selection being among the earliest of these. Each of these mechanisms has some applicability and some predictive power (for example, kin selection is pretty good at describing cooperation in everything up to and including eusocial insects), but we've been missing the general mechanism that has predictive power across all domains.

In other words, the field of evolutionary biology today has its Newton's laws and Maxwell equations, but we're missing anything like the Standard Model. The authors of this work have been at this for a number of years. A sophisticated analysis of the dynamics is a key and very important step in beginning to develop a "grand unified theory" of evolution.

jballanc··on New Model of Evolution Reveals How Cooperation Evolves
Unless big changes to the environment happen at least once every generation, then there is no way that diversity of offspring will be selected for. Say you have a population of 100,000 organisms and 1 randomly mutates to produce more diverse offspring. That gives the gene a 0.001% occurrence in the population. Hardy-Weinberg principle says that gene will remain at about that percent of the population unless it is selected for. So if a generation passes without selection for that trait, there is a very high probability that gene's occurrence drops back to 0%.

In other words, without a constant source of selection, there is no way for a trait to become fixed in a population.

jballanc··on New Model of Evolution Reveals How Cooperation Evolves
Almost all of the responses here putting this down as "not that big a deal" are completely missing the point. It's extremely easy to say that evolution should do a thing, but if you cannot provide a mechanism to explain how such a thing is passively selected for, then evolution doesn't care. Evolution has no intelligence. There is no designer. This is probably the most important aspect of evolution to understand and the one hardest to grasp intuitively.

For example: say you had a savannah with grass and tall trees populated by 4-legged horse-like animals that survive by grazing on the grass. We can look at such a scenario and say that it would be advantageous for some sub-population of those horse-like animals to grow longer and longer necks until they were capable of also grazing on the trees (doubling their available food supply, relative to their neighbors), but it will never happen! In each generation there will be a distribution of neck lengths, and as there is no advantage to those with slightly longer (but not long enough to reach the trees) necks, the distribution will remain unchanged. This is the basic Hardy-Weinberg principle.

The only way you get giraffes is if the trees start out much shorter, so that the horse-like animals are capable of grazing on them. Then the trees that are slightly taller will have an advantage, and the distribution of tree heights in the population will shift. This will give an advantage to the horse-like animals with longer necks, causing their distribution to shift, and on, and on. This is the basic Red Queen hypothesis.

So saying that an organism that has an inherent capacity for adaptation, or one that knows to cooperate with neighbors, would be better able to survive than the alternatives doesn't mean crap. If you cannot provide a mechanism (backed by a mathematical model) of how such traits arise, then evolution doesn't care.

That is what makes this work so particularly interesting. The authors are providing a model to explain how a mechanism for the selection of cooperation could occur.

jballanc··on The Wheels Come Off Uber
Gee, it's almost as if a municipality that valued the good provided by a shared-ride or car-for-hire service to their community would have an interest in creating an artificial monopoly for the sake of allowing such a service to operate in a profitable manner...
jballanc··on Debian 9 Stretch released
There's always NetBSD! ;-)
jballanc··on C.S. Lewis's Greatest Fiction: Telling Kids They’d Like Turkish Delight (2015)
Great additions! How could I forget Irmik Helvası?! Especially when my mother-in-law makes it so well (and it's relatively simple, as desserts go, to make).

I've only lived 5 years of my life in Turkey (I married into it!), but already I feel like I could write a book on Turkish food culture. One major aspect that I think is often overlooked is the seasonality. Whether it's food that is related to a holiday (Güllaç, Aşure) or food for a particular season (Salep, Boza), sometimes the anticipation makes the treats taste that much better! (...And now I'm sad because I can't have Boza.)

jballanc··on C.S. Lewis's Greatest Fiction: Telling Kids They’d Like Turkish Delight (2015)
And the strudel...oh, the strudel!
jballanc··on C.S. Lewis's Greatest Fiction: Telling Kids They’d Like Turkish Delight (2015)
The Turkish Delight in "The Lion, The Witch, and The Wardrobe" was, for me, one of the first and clearest examples of how literature can project, even if unintentionally, a skewed view of a culture that bears little to no resemblance to reality.

I remember a while back having a debate over dinner (and eventually dessert) with friends as to which European country has the best variety and overall quality of desserts. It struck me as funny, and a bit sad, that an American who relied only on popular culture and mainstream media would think the answer to that question was easy: French! Of course!

Having had the opportunity to travel, work, and even live outside the US, I realize now just how wrong that view is! The variety of dessert foods in France pales in comparison to, say, Italy or Austria. Biased as I am, I argued that Turkish dessert cuisine was far above the rest, but of course all most people think of when they think of Turkish desserts is...Turkish Delight! Thanks, C.S.!

...If you're interested, some items to Google to understand what I mean: Fıstıklı Dolama, Cevizli Baklava, Maraş Dondurma, Güllaç, Su Muhallebi (for the rose water lovers), Tavuk Göğsü (don't read the ingredients until you try it, it's great!), Kazandibi, and my personal favorite Kaymaklı Künefe!

jballanc··on How we can stop antibiotic resistance
Unfortunately I don't have the time to look into this specific approach, and I've been away from nanoparticle biology for about 5 years now, but...

In almost all cases where nanoparticles have shown promise to treat various conditions, there remains one huge hurdle: how do you get them into the patient? i.e. Swallow a pill full of nanoparticles, and later that day you'll end up taking a nanoparticle-filled dump. Oral bioavailability is almost nonexistent. The only practical delivery mechanism is IV. For treating cancer, that's fine. Most advanced chemotherapy drugs already are delivered via IV. For an antibiotic, which will see greatest demand in locations with poor health facilities, i.e. with no real means of safely delivering IV drugs to large numbers of people, that's pretty much a deal breaker.

jballanc··on How we can stop antibiotic resistance
The entire world minus the United States of America and Syria is on board with climate change. What's your point, again?
jballanc··on How we can stop antibiotic resistance
Two main reasons:

* Genetic drift vs fixation. As bacteria reproduce and die, the relative frequency of genes tends to remain fixed in the absence of selection. In layman's terms: if 0.0000001% of bacteria in a population have antibiotic resistance, they will likely all die before passing it on. If 10% have resistance, there's a much better chance of it sticking around. The more antibiotics prescribed, the more you enrich the population for resistance, the greater chance it sticks.

* Many antibiotic resistance genes put bacteria at a disadvantage relative to the same bacteria without resistance. If antibiotics are not present, then resistance will eventually be selected against and disappear. Overprescription of antibiotics ensures that this doesn't happen.

jballanc··on How we can stop antibiotic resistance
This article, like much of the debate about antibiotic resistance, is fatally flawed by its anthropocentric viewpoint.

The thing to understand about antibiotic resistance is that we humans are but foot soldiers in a global war that has been raging for literally billions of years! Plants killing bacteria, bacteria killing fungi, viruses killing bacteria, bacteria killing viruses, even bacteria killing other bacteria; this conflict rages on with or without our input constantly. Almost all of our current antibiotics are natural products or derivatives thereof, taken from the plants and fungi that have been fighting off bacteria much longer than we have. Increasingly, we're finding that the antibiotic resistance that arrises in human pathogenic bacteria is not the result of novel mutations (as this article suggests), but rather the adoption of a pre-existing resistance trait from one species that has nothing to do with humans into one that does. In a teaspoon of dirt there are more different species of bacteria than have ever caused diseases in humans, all of which are in a constant struggle for survival, many of which have developed highly specialized weapons and defenses with which to fight this war.

We've been fighting bacteria with antibiotics for just about 100 years, and we're already losing!

The idea that management of distribution or development of novel agents will be sufficient to prevent bacterial infections into the indefinite future is laughable on its face for any semi-serious student of evolution.

No, antibiotics have won us an important battle, but the war is far from over. New antibiotics will help, but each new one will hold off fewer infections, with more serious side-effects, lasting ever less time before resistance takes over. We'll never see the sort of success with antibiotics in the future that we have in the past. Interesting alternatives, like bacteriophage therapy, stool transplants, and other means of grooming our natural bacterial flora will go a bit further.

Ultimately, though, the incontrovertible truth of nature is this: the only lasting alternative to conflict is cooperation (a.k.a. symbiosis). Fortunately, for reasons we still don't fully understand, organisms in conflict naturally evolve to a cooperative state...given enough time. Unfortunately, evolution is very slow, and there is no rule stating that there won't be casualties (i.e. extinctions) along the way.

So, as uncomfortable as it may be to many, there really is only one long-term hope that humanity has for permanently stemming the tide of infectious agents in less than an average lifespan's time: genetic engineering. Luckily, we are developing new tools for this all the time. Yes, they pose great danger, but so did fire the first time humanity harnessed it to provide warmth and a way to cook food (coincidentally enough, yet another of our small victories in the war against disease).

jballanc··on Ask HN: Can you explain how a database index works in an interview?
Personally, when conducting technical interviews, I try to keep the interviewee right at the limits of their knowledge and ability. It's sort of like standing blindfolded in a room and walking in different directions until you hit a wall to get a sense of the size of the room (don't try this at home). So this often involves starting overly complex, then walking back until you find the interviewee's comfort zone. Let them demonstrate their knowledge for a while (and hopefully gain back some confidence), then push them out to the complexity zone again until they stop answering/start looking uncomfortable again.

To give a concrete example of what that would look like with this question (let's call "A" the interviewer and "B" the interviewee):

...(this post has been truncated for your scrolling enjoyment, full version at: https://gist.github.com/jballanc/82cbe551b2b667a1ab72acabc71...)...

jballanc··on Ask HN: Can you explain how a database index works in an interview?
Items from a sorted list can be retrieved by a binary search in O(log(n)) time, so a database index is merely a list, sorted by the column being indexed, that points back at the original record for each entry. Simple, right?

So simple, in fact, that if someone tells you they don't know how a DB index works, you could easily walk them through it and, in doing so, get a much better evaluation of how they think than merely how well they can recite a bit of memorized text-book knowledge.

In fact, the only time I ever ask "Can you explain how X works?" type questions in interviews is so that I can specifically exclude asking an interviewee how to walk through the derivation of a concept with which they are already familiar. By that metric, I think your "how a DB index works" question is a great interview question!

Your mistake is stopping when they say "no".

jballanc··on Before Silicon Valley, New Jersey Reigned As Nation's Center Of Innovation
Well, New Jersey is still the only state to have a programming language named for it (SML/NJ, in case you were curious)...
jballanc··on Apple Announces macOS High Sierra
It's in keeping with their "Tick-Tock" naming since Snow Leopard:

Leopard (Tick) -> SnowLeopard (Tock)

Lion -> Mountain Lion

Mavericks -> ...(uuhhh...whoops?)

Yosemite -> El Capitan

Sierra -> High Sierra

← PreviousPage 5 of 34Next →