1,032 karma · joined Mar 28, 2007 (19y ago) · 539 submissions
I love to code. :D
comment 18y ago · link · parent
My list is heavy on scientists and philosophers, since I especially admire the ones who changed the way we think (for the better, IMHO).
Socrates
Epicurus
Diogenes the Cynic
Sun Tzu
Shen Kuo
Machiavelli
Leonardo da Vinci (the Shen Kuo of the West! ;-)
Galileo
Kepler
Hume
Darwin
Swift
Franklin
Jefferson
Nietzsche
Sun Yat-sen
Wittgenstein
Feynman
Sagan
comment 18y ago · link · parent
Apparently it reads just like Snow Crash. ;-)
comment 18y ago · link · parent
You can know that, e.g. a function passed in as an argument can be dereferenced as a pointer stored in a specific offset on the stack.
If your typechecks are compiler-generated statements inserted before a function call, then if you know at compile-time (via declarations or type inference, or type propagation) that a certain variable (to be passed as an argument) will always be of the correct type T, then you can omit the typecheck, as well as boxing/tagging.
You can get really close to the metal this way, and still have your language be as dynamic as can be.
comment 18y ago · link · parent
Lies, slander! ;-)
Anything that happens within a function can be treated as a black box, and compiled down to the metal, if you like.
The language can be as dynamic as you like; that doesn't preclude the output format from being tightly optimized machine code.
comment 18y ago · link · parent
"Whoa, you mean this isn't wood shop class?" ;-)
> To my knowledge he is not using an Apache stack.
For static pages, there's no reason he can't stick an Apache in front.
> In addition, he's doing a keyed-continuations deal across loads/posts, so he's effectively keeping the stack around for each user.
That part might be tricky to optimize, but there ought to be a way, even then, to avoid hitting the app server for static page loads.
Edit: Looking at the login cookie across page loads, it's just a session-id. There is absolutely no reason that the app server ever need know about these cached static page loads.
> Really cool stuff, but I can see where memory can become an issue. He's probably running into paging issues and trying this out as a fix.
He's also running into state issues, since he's keeping all session state as in-memory continuations, which is probably forcing him to keep news.yc on one box.
One thing that might work is to come up with a way to serialize those continuations, and store the key-value pairs in a memcached box. Then the app server can become stateless again, and he can add more boxes.
comment 18y ago · link · parent
1a. Note that this only goes for key-value pairs you don't mind the user seeing, but want to keep tamper-proof. Real secret stuff still needs to be handled server-side.
2. Display them javascriptically, and only verify/change things server-side on login or POST. This lets you serve most pages as cached, static HTML!
2a. So if my username cookie is "[some 40-byte salted sha1hash]icky", then, client-side, I could change the username or the hash, and the page's javascript would display the new username for me (blindly chopping off the first 40 bytes that form the hash), but if I tried to post, then the server would detect the tampered cookie, and log me out. [Tampering with the display-name client-side is something you can already do with the Firebug or Web Developer plugins, so this really doesn't pose a problem].
3. When a POST happens, just regenerate the cached page that it dirtied, and dynamically serve it back to the poster.
4. That's it! You now have turned nearly all of your read-only requests into a static, cached page GET, which you can let Apache take care of without even hitting your application server.
comment 18y ago · link · parent
Actually it gives entrepreneurs value by letting them choose between spending $0 for, say, half the attention formerly held at Demo, or by paying Demo's fees for half the attention formerly held at Demo.
Sounds great for entrepreneurs, terrible for Demo. ;-)
> Still, she suggested Arrington's assertion that Demo needs to die is unfortunate.
> "I'm not certain why it must die," Shipley said. "I think that there is a lot of room in the market for products and services that support entrepreneurs. And I don't see how it's a benefit to (the entrepreneurial ecosystem) to kill off a platform that's all about supporting entrepreneurs."
Hey, that's exactly the opposite of her previous argument! What is the word for when a hypocrite hypocritically uses different standards for different people in similar situations, in a hypocritical manner? Oh, yes: hypocrisy.
comment 18y ago · link · parent
Funding with personal debt should not be considered 'bootstrapping', if only because it's so damn stupid, and should not have a positively-connoted word associated with it.
It's more like buying ownership in your own company with money you don't have.
Would you borrow money to buy stock in someone else's company?
Would you borrow thousands of dollars to gamble in a game that has about a 1/10 chance of winning?
comment 18y ago · link · parent
This category is particularly troublesome, as even when both parties agree, in principle, to disagree, they may still disagree on how to disagree.
One particular nuisance is the disagreer who seeks to impose a disagreement meta-hierarchy on the problem of agreeing on a disagreement hierarchy. That way is turtles, all the way down.