7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 15y ago · link · parent
Uh, OK. So, you're happy with single-core boxes then, I take it?
Actually, you're regressing to even before that, when there was no pre-emptive multitasking. When the program is done doing something, it yields control to some other task.
Also, I'd like to point out that just because you aren't explicitly doing I/O doesn't mean that you aren't doing I/O. The OS might have paged out some stale data (quite likely, since you aren't managing I/O yourself), and you might be holding the giant lock while it's paging it in.
"I can't speak to all systems like this, but the Prevayler approach is pretty straightforward."
I just want to clarify: so when you encounter a problem, you do some rollback, which automatically moves the state to the last snapshot and rolls forward to the previous transaction, right? No manual steps?
I hope you have a recent snapshot or that will be a long wait (while holding the big lock, I might add).
comment 15y ago · link · parent
What do you think the DBMS should do for a table with two tuples?
Regardless, it should be easier for the DBMS to use alternate plans if simple expressions aren't hidden behind a bunch of useless CASE statements.
comment 15y ago · link · parent
Buying things for the future (whether housing or cattle futures) does offer price stability and insulation from market fluctuations. It doesn't automatically make it a good investment; but stability is good, and it's perfectly rational to assign some positive value to it.
I was just trying to put things in perspective. There are perfectly rational reasons to buy a house. When the rents are higher than what a mortgage payment would be, it's a pretty reasonable thing to do for a lot of people, based on some pretty reasonable projections.
You can still disagree, of course. You can say that 1.5% growth per year in home value is too much to ask. You can say that rents will fall, therefore making your mortgage payment higher than rent. Or you can say that a 7% return is not good enough for you. Or maybe my analysis was wrong, in which case you can point that out.
comment 15y ago · link · parent
My analysis still holds: if your mortgage is less than rent, then you can do calculations based on the price from the down payment rather than total appreciation on the home.
How the mortgage payment ends up lower is irrelevant. All I meant by the mortgage interest thing is that you have to remember to adjust downward a little to account for that.
comment 15y ago · link · parent
If your mortgage payment is below the going rents (not too difficult to achieve if you factor in the tax write-off), then one way you can look at that is you give an $X down payment now for a free house in 30 years. If you look at it that way, slow growth doesn't look quite so bad -- the house only needs to be worth about $8X the down payment in constant dollars 30 years from now. Assuming 20% down, that's only appreciating 60% in 30 years, which is only assuming about 1.5% growth in home value per year.
Inflation should probably also factor into your analysis, for those who believe that inflation is likely in the long term.
Buying a home also offers a lot of stability on your long-term housing costs. Even if you buy and sell every few years anyway[1], the fact that you are both buying and selling at the same time leads to a fairly even end result. With renting, you are always purchasing on the spot market[2]. Avoiding risk and having control over when you move both have a value.
[1] Of course, buying and selling every few years is very costly, but it doesn't affect the stability argument.
[2] And it's not just luck when you happen to be moving around. If you are buying into an area because of a new employer, there's a good chance that the employer is hiring, and that a lot of people want that same apartment.
comment 15y ago · link · parent
If it's just an inefficiency of the compiler, you can dismiss it. But if it's an inefficiency in the resulting code, then perhaps the many-pass design isn't adequate for teaching optimization.
comment 15y ago · link · parent
In haskell, I don't think tail recursion is nearly as important because of laziness. While one computation is adding more to the "stack", another is consuming.
foldr, for instance, is not tail-recursive. It can return (partial) results given infinite input with constant memory.
Of course, tail recursion is still important in the places that strictness is important. It's just not quite as fundamental in a language where laziness is the default.
I think there are ways to tell if the TCO has been used, regardless. That's not a property of the type system, or even the language, but the implementation. If nothing else, the profiler should tell you quickly.
comment 15y ago · link · parent
Let's apply the same logic to GroupOn's business customers: once they acquire a customer through a GroupOn, that customer will remain loyal and they don't need to market to them again. In other words, that business doesn't have to offer sharp discounts for quite a long time, and therefore ceases to become a GroupOn customer. So, GroupOn needs to spend more on marketing to get new businesses to offer deals.
Sure, it's plausible that if they stop marketing, they still have a business. That's certainly the story they are trying to tell. But accounting is not about plausible-sounding stories. It's about cold, hard numbers in black and white.
comment 15y ago · link · parent
In fact, we've calculated that it takes $5 to bring in a new customer, and we have a $5M marketing budget, so let's book those million customers now, too. That's $38M in profits the first year! Not bad.
But hey, why don't you give us $5 billion? Then, we could get a billion customers, and bank $38B in profits the first year. Minus a few billion to cash out the early investors, of course -- but hey, we can still give you a 30X return on your money.
[END SARCASM]
Yes, we understand the story. We're not stupid. It's not that complicated of a story. But we want to see how often the story intersects with reality, and how much is fiction. Accounting is the tool that allows us to measure the story against reality. If we start weaving stories into the accounting, then it's no longer a-counting, it's a-wishing.
None of that means Groupon is a bad business, it just means that they are trying to insert marketing material into their accounting statements.
comment 15y ago · link · parent
Obviously: competition and alternatives. Just like the equilibrium price of a computer is way lower than what you are willing to pay for it.
Often, markets lead to
lower* prices on many things as technology and processes improve in pursuit of profits.*: If you define the value of a degree as the extra value above and beyond the next best alternative, than of course alternatives don't really factor in. But with most goods and services, there is some kind of alternative in addition to competition.
comment 15y ago · link · parent
Have a law forcing people to put the money into a conservative retirement plan of their choosing.
"I don't think the Social Security program is at all broken; what's broken is that we've used the Social Security surplus over the last 20+ years to help fund a general fund spending deficit."
Absolutely true. But we've also used that surplus to spend much more on current retirees than they ever put in.
comment 15y ago · link · parent
A thousand times, yes!
Investors need baseline, objective, bottom-line numbers to work with. These numbers help potential investors evaluate where the business is at today, and (perhaps more importantly) help current investors evaluate whether the past projections met with reality.
There are plenty of places that companies are able to spin the numbers to tell their story of fabulous fortunes and world conquest. But there are certain places where you have to let the tried-and-true numbers speak for themselves without someone standing in front waving their arms.
It's like going to vegas. It's easy to say: "Hey, I about broke even. Even if I did lose a little money on the tables, I got some free drinks and I had fun this weekend." Sometimes that story is true, and sometimes they are some pretty-darned expensive free drinks. Your bank account will tell the story, and you wouldn't let a casino owner jump in front to "help you interpret" the numbers.
comment 15y ago · link · parent
Interesting point, although I'm not sure it's 100% true.
For instance, we learn mathematical skills that are readily applicable to life at an early age. Solving a word problem might be the mathematical equivalent of writing a working program that actually does something. And we memorize "formulas", like the simple one to multiply large numbers, at an early age, but don't learn why it works for quite a while.
Induction and abstract algebras might be considered more fundamental, but are introduced much later.
comment 15y ago · link · parent
I also think that bottom-up learning might lead to a false sense of completeness, a sort of "now I know everything". But in reality, there is always some other perspective that will really improve understanding.
That being said, I think learning fundamentals is very valuable, of course.
comment 15y ago · link · parent
Even that one grain of truth doesn't hold up if you read his original prediction. He was talking about pretty XML-specific stuff like XPath and XQuery, and even things like DTDs and Schemas; so schema-less document stores just don't fit Yegge's story.
I don't have anything against Yegge for making such a prediction, and I'm sure he's not all that concerned that he was wrong. However, I don't think the author is being intellectually honest when he tries to twist it into a "partially right", and I do have something against that.
comment 15y ago · link · parent
WRONG.
Aren't we capable of calling "false" statements "false" anymore? I can't believe that the author defended this prediction.
I'm sure you can twist the words "popular", "database", and "XML" around enough to try to make some argument that he was almost right. But if you read the full original prediction it's even more clear that he was as wrong as it is possible to be in a prediction.
comment 15y ago · link · parent
Perhaps it's the opposite. If they turn founders into mythical characters, then it's much easier to disregard the idea of ever starting a business. They don't have to take responsibility for their own lives or accomplishments.
comment 15y ago · link · parent
Accounting is supposed to be about measuring things that are more tangible to act as a reality check against projections and optimism. It's supposed to be about where the company is at now and where it's been in the past -- not just for potential investors, but for current investors who might want to compare against their previous projections. Predicting the future is left as an exercise for the reader.
Marketing expenditures, particularly for new companies in new markets, are based on projections. If Groupon is trying to attract investors based on its current profits, then slashing the marketing budget might be a reasonable course of action. But I doubt it is; they are trying to attract investors based on its potential for profits in the future, and part of that growth story involves spending a lot on marketing. With that in mind, slashing their marketing budget (or for that matter, pretty much any other part of their budget) would not make any sense, and would likely turn off investors (even if unsophisticated).
comment 15y ago · link · parent
I think there's a lack of clarity on what's being reinvented here, why, and where this is all headed. And when we get there, is it really something fundamentally new, or is it something that existing SQL products can absorb along the way?
comment 15y ago · link · parent
http://stackoverflow.com/questions/773371/what-is-a-good-too...
comment 15y ago · link · parent
That would mean that AirBNB doesn't have a viable business model, or that it's a much smaller market than previously thought.
Saying "insurance will handle it" isn't an answer. AirBnb needs to come up with some creative and effective policies to solve the real underlying problems first. A good start would be better identity verification of renters.
Once they've turned it from a bad risk into a good risk for a large market of people, then they can outsource the details to an insurance company.