11,378 karma · joined Apr 22, 2013 (13y ago) · 5,853 submissions
comment 10y ago · link · parent
The basic idea is that type inference would shift the sweet spot for the right amount of typing upwards.
comment 10y ago · link · parent
final int chosenByFairDiceRoll = 4; // a constant
final long millis = System.currentTimeMillis(); // not a constant
When you say "values are something else", is it that you would consider chosenByFairDiceRoll a value, but not millis? I guess that you might have had more exposure to languages that use "const" instead of "final" than me...comment 10y ago · link · parent
But i see where you come from, it feels a bit sloppy to not document the intention that the variable _could_ be any kind of list, even though it happens to be an ArrayList. Not "this may lead to nasty bugs"-sloppy, but a slight case of "this won't win any beauty contests"-sloppy.
comment 10y ago · link · parent
Some truth in that, it should be safe enough to assume that the lightweight editor crowd has long self-selected out of java. I often do write-time type inference by declaring anything as an int and then, at the end of the line, pressing whatever magic key that makes the IDE rewrite it to the actual type so that it compiles.
One of the syntax options in the JEP is "final name = RHS;". When i first saw that i could not understand why anybody in their right mind would even consider a partial solution like that. But now that i wrote about write-time type inference, it starts getting more and more attractive:
A tiny nudge towards immutability, natural "write-time type inference" that is correct until the first nonfinal access is written (IDEs already offer a "make nonfinal?" fix in that case) and nonfinal identifiers will often be a broader type than the RHS assignment anyway.
comment 10y ago · link · parent
With the massed deployment model of dropping a whole container of these things, the nominal cost woult probably be measured in money per tonne, not money per airframe...
comment 10y ago · link · parent
What might still move uber from a fluent market into a winner takes all position some day would be a shift to their own fleet, either driverless or with employees. That would then be real investment and as such would be much harder to match by a newcomer than the day to day underselling they are currently doing to artificially to balloon themselves up.
comment 10y ago · link · parent
They are much closer to the hypothetical market of suborbital joyrides than CopSub, but so far, that hypothetical market does not sustain anything.
comment 10y ago · link · parent
Or it might be seen as a signal that said industry might be full of undervalued stock, because a certain fraction of potential buyers opts out without even considering potential revenue and so on, lowering demand in the stock. If enough investors are following this heuristic (instead of actually analyzing the true potential of the companies in question), then high-visibility ethical divestment might even lead to a twisted amorality bubble.
For the tobacco example, I think it's the other way around: if (and only if) there is policy against an industry, then divestment will make that policy appear a lot more serious. But this signal would be even stronger when the divestment is done by "pure market rational" actors, that are not influenced by ethics (or that at least give the outside appearance thereof).
comment 10y ago · link · parent
Seen this way, the slow transformation from lock-in to charm-in that we observe today is more a return to the roots than a dissolution of identity for Microsoft.
comment 10y ago · link · parent
Sufficiently well-organized places to not have robbery bands internally or raiding parties externally would, in absence of wars, often be big exporters of mercenaries.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Everybody else pays a small "maintenance tax" when working on the codebase or relying on work being done on that codebase.
Being by no means a compiler expert I do suspect however, that this "tax" is tiny and likely to be dwarfed by other contributions from Google, so letting them solve distribution of their private backend by piggybacking on the public release is most likely the right course of action.
comment 10y ago · link · parent
But we are very bad at judging absolute speed without technical assistance, while being quite sensitive to acceleration. Therefore, a slight increase in acceleration for a given effort (or decrease in effort for a desired acceleration) is very noticeable, while an increase in absolute speed would not. So a lighter bike will feel noticeably faster (even though it isn't), while different aerodynamics (e.g. "faster" clothes that give a lot more improvement in absolute speed than a weight difference, even for weak riders) might give a clear advantage on the clock, but you won't be able to notice it while riding.
Light bikes just feel fast, very much so actually. It's a powerful illusion that only gets stronger because it is supported by those few specific situations (stop and go, races with tight corners, all that climbing road cyclists love) where the weight also matters objectively.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
People on HN may ridicule them for being stuck in an optimization for a terribly low local maximum, but the danger of feeling "rich" on a fat loan is real: "if it's ok to burn through a decade worth of low wages to get to where I can easily pay it pack, what difference does it make if I burn through a few years more?" Valuing debtlessness is the established safeguard against that and going deep to exit high would be perceived as close to amoral by their peers.
comment 10y ago · link · parent
But SpaceX seem to be exceptionally good at control systems, fast and precise automated planning. Maybe they will just skip the level of passive rocket catcher structures and intend to move directly to a three-axis actuated landing table? A system like that that could take responsibility for a tiny little amount of deceleration (think extra suspension) and a fair bit of balancing completely outside of the mass budget of the rocket.
comment 10y ago · link · parent
As I see it, the basic problem is that our "animal brain" food autopilot, which serves us incredibly well with natural food, is easily fooled by state of the art food preparation tricks. If we lack some random nutrient, let's call it foomium, then the autopilot will make foomium-rich food taste good. And food that is engineered to be very tasty to people who are in "acquire foomium" mode (amongst many others), despite not containing any of it. If we have a candy bar completely devoid of foomium, but that successfully tricks the foomium-deprived body to trigger the "this gives me foomium" heuristic, then we will eat quite a lot of it before giving in to overeating. Repeat this a few times and you will see that industrially processed food is unhealthy. Not because of what it contains, but because of what is missing (but what is cleverly pretended to be there, as a side effect of successful engineering for tastyness)