Better HN
topnewbestaskshowjobs
Log inSign up

icky

1,032 karma · joined Mar 28, 2007 (19y ago) · 539 submissions

(I am __NOT__ user 'icky' from reddit.)

I love to code. :D

Submissions

comment 18y ago · link · parent

I'll break your 5 hero limit, as did pg, our local demihero. ;-)

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

> Reading The Nude is like a ride in a Ferrari. Just as you're getting settled, you're slammed back in your seat by the acceleration. Before you can adjust, you're thrown sideways as the car screeches into the first turn. His brain throws off ideas almost too fast to grasp them.

Apparently it reads just like Snow Crash. ;-)

comment 18y ago · link · parent

"Actually, their lungs."

comment 18y ago · link · parent

> What about the things you pass into the function? You can't know their properties in advance, in general, or can you?

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

> For static pages, there no reason to stick Apache in front.

Are you suggesting that static pages should hit the app server?

comment 18y ago · link · parent

In the Distant Future, the Year Two-Thousand, robotic beings rule the world:

http://www.youtube.com/watch?v=WGoi1MSGu64&fmt=16

comment 18y ago · link · parent

> the marginal costs of digital products are essentially zero

Assuming you can scale. ;-)

comment 18y ago · link · parent

> If the symbols are "hard linked", it is not dynamic anymore.

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

> icky -- don't know if you know it or not, but Paul's writing his own application language, Arc, and testing it out on this board.

"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

1. Stash key-value pairs in signed cookies (salt + text + sha1 should be fine; HMAC is even better-- I prefer a variant of HMAC where I concatenate the client's IP address onto the first hash before hashing again with the second key).

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

> Unfortunately, there is a performance penalty with dynamic langues, which wont go away.

You'd be amazed at the sorts of aggressive optimizations that can be done at compile-time.

comment 18y ago · link · parent

> I don't read the statements are a contradiction.

Perhaps I was reading too much malice into it, but I came away with the distinct impression that had Demo been muscling in on TC50's weekend, her arguments would have been reversed.

comment 18y ago · link · parent

> "I think that certainly...TechCrunch 50 is a great venue for young companies," Shipley said by phone from Madrid, Spain. "But to put it up against Demo means those companies are now going to be competing for attention, and I just don't see how that's good for entrepreneurs."

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

Recursion is implicit in the rule, "For every rule, there is an exception."

Unfortunately, the recursion never terminates.

comment 18y ago · link · parent

> Linux: two weeks, gave up when I got Clisp to run in the command line interface.

Are we talking Lisp noob, or Linux noob?

As the other posts indicate, use an apt-based distribution (Debian, Ubuntu), and do

    sudo apt-get install clisp slime

comment 18y ago · link · parent

Craigslist! ;-D

comment 18y ago · link · parent

> Don't fund with credit cards unless you absolutely have to.

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

> while others would tell me to low-fat milk when mixing their caramel machiattos with whipped cream because they want to lose weight.

Magic milk! :)

comment 18y ago · link · parent

Incidentally, in python 2.5 and later (probably not available in Dapper's repo), you should use the standard hashlib module for generating hash digests.

comment 18y ago · link · parent

I was tempted to downmod this, just so it would be a lower number and run faster...

comment 18y ago · link · parent

That's only available on Super vim Fighter II Turbo Championship Edition.

comment 18y ago · link · parent

> about the longest 'combos' you make are action-move combos,

And then you use :wq as your finishing move!

comment 18y ago · link · parent

Assimilation.

comment 18y ago · link · parent

No, you fool!

Reroute auxiliary power through the plasma conduits!

comment 18y ago · link · parent

Bullshit legislation, but take solace in the fact that government-produced GIS data is usually crap. :-)

comment 18y ago · link · parent

> C++ here reminds me of Perl

I agree with you at least that far! ;)

comment 18y ago · link · parent

Apparently it's higher than the percent of people trying to squint at that image in 1680x1050. :-(

comment 18y ago · link · parent

I think you're grasping at straws, here.

Got a better, more relevant example?

comment 18y ago · link · parent

No, I'm married, and my wife won't let me have one. ;-)

comment 18y ago · link · parent

DH-3.5: Disagreeing with the author's Disagreement Hierarchy.

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.

1
678
18