Better HN
topnewbestaskshowjobs
Log inSign up

codexon

3,721 karma · joined Jun 10, 2009 (17y ago) · 1,423 submissions

Submissions

comment 16y ago · link · parent

And I would say that if you are looking at what CURRENT-employees are saying, you are looking at rose-colored glasses or people who are too afraid of reprisal.

comment 16y ago · link · parent

It doesn't matter if it isn't the least bit representative.

Being 43 times slower is going to make a noticeable impact on latency especially when the templates are likely to be larger than the example shown.

comment 16y ago · link · parent

It's a joke.

HPHP's 50% speed boost does not make up for a templating engine that 43 times slower.

comment 16y ago · link · parent

I have a Roomba. It simply doesn't work well. There are always spots that are missed in a medium sized room even when I leave it running for half an hour. I just end up vacuuming the place myself since it takes about a minute to get 95% coverage instead of 75% coverage in 30 minutes.

comment 16y ago · link · parent

1000:1 is a meaningful standard.

There is a point where it becomes unbelievable to say someone is 1000 times better than the top 100,000 people out of however many billion are on the planet right now. A look at any competitive sport or Olympics will show that top athletes are winning by a razor's edge in the milliseconds.

Would you believe it if someone claimed to be a million times better at a certain skill than the top people in the world? The magnitude of difference definitely matters, and let's not delude ourselves into inflating these ratios higher than they actually are.

comment 16y ago · link · parent

How many hours did you spend making them?

comment 16y ago · link · parent

Theoretically Riak should work well since it is modeled after Amazon Dynamo. However it is likely to have many bugs and corner cases since it is so new.

comment 16y ago · link · parent

Not when there are billions of people in the world in you are looking at the top 100,000 or so. The differences are quite small. This number is far larger and uncorrelated with the number of billionaires in the world.

And even when you cite coding studies, the magnitude is somewhere between 25:1 not 1000:1.

http://www.codinghorror.com/blog/archives/000072.html

comment 16y ago · link · parent

It is because of tournament theory that people are requesting billionaires to be taxed more.

http://ingrimayne.com/econ/resouceProblems/Tournament.html

The differences between individuals (say top 10,000) in certain skills becomes negligible due to the sheer amount of people in the world. However, due to winner take all systems, it is possible for someone that works 0.01% harder or luckier to take 100% of the reward. This is why it is possible for wage disparities to increase beyond ratios of 1000 to 1 without someone having to work 1000 times harder.

The reasoning behind increasing the tax rate on the super wealthy is for several reasons

1) It is easier to accumulate money the wealthier you are. This creates a negative incentive for the super rich to work as hard since it becomes easier to simply buy out competition and form monopoly status. Or crush everyone else due to economies of scale rather than true innovation.

2) This conundrum is well known in many companies where they try to pay their employees as much as they can, but not too much, or else they retire early. If you believe in the mantra that the richest people are the most productive, then it is obviously in society's best interest to keep them productive.

3) The more percentage of total wealth you have, the more US infrastructure you use and rely on. For example: Exxon heavily relies on the US military and government sponsored roads. Tech companies like Google and Microsoft heavily relies on the nationalized electric grid, subsidized education, the invention of the Internet, and subsidized telecoms that allowed people to use it. The average Joe does not have as much to lose if these tax subsidized services were to disappear tomorrow.

4) The tournament theory I mentioned above. The vast differences in wealth are due to situation or luck, and not because someone truly works 1000 times harder than you.

1120.

Reddit clone in 60 minutes and 4 lines of C(benreeves.co.uk ↗)

49 points · by codexon · 16y ago · 37 comments

comment 16y ago · link · parent

> Plus the story is about removing those with dissenting views from a social invitation only event in a private location.

Just because the event was hosted in a private location does not make it a private event. Just because a supermarket or restaurant is privately owned doesn't make it a private service. Saying that it does allows people to selectively discriminate based on race.

Yes I would maintain my view if they were merely attending the speech and not being a nuisance: which is the case in this article.

comment 16y ago · link · parent

You must be joking. People like Dons run or use a blog spidering program for anything that mentions Haskell.

In less than 10 minutes after posting anything remotely negative about Haskell, I have a horde of angry fanboys telling me how I am an idiot.

comment 16y ago · link · parent

Here's a quote from an alleged Facebook employee on Reddit regarding this matter.

This entire thread needs to go fall in a well and die. If they had just called it a compiler, you nerds would be arguing about the same thing and saying it was a source code transformer. They just called it that because it translates PHP to C++, and to most people who don't have Asperger's that's not the same as compiling.

How do I know this? I sit 20 feet from the guys who wrote it.

http://www.reddit.com/r/programming/comments/ax7k4/facebooks...

comment 16y ago · link · parent

If you want something for non-techies, you pick something like Applescript.

0-based indexing is noob friendly because most cs algorithms use it so you can do a straightforward translation. Would it be better to go with 1-based and make this harder for novice programmers? I don't think so.

comment 16y ago · link · parent

The first index is 0, the next is 1, and if you loop around backwards, it's -1.

Makes sense to me.

comment 16y ago · link · parent

> Perhaps other languages can be compiled down with HipHop.

There's already something like HipHop for Python called Cython. You can compile any pure python code into a static C shared library (with the exception of generators).

comment 16y ago · link · parent

I am quite unimpressed by these arguments. This blog post is a joke filled with inaccuracies.

- Encapsulation. Encapsulation in every language such as Java and Python is by convention. There are always ways to break it. Even in C++. Somehow the blogger missed out on learning "__" notation.

- Batteries. Nearly all the Python libraries are pure Python files which you can edit or debug. You can even debug the C modules with a C debugger if you like since they are just dynamic/shared libraries. You can delete libraries that you never use from your installation.

- This. This is probably the only legitimate complaint, but it all boils down to syntactical sugar.

- Members. Another blatant lack of knowledge. It is possible to enforce static members with the "__slots__" metamember. You can override the default object behavior by implementing the "__getattribute__" and "__setattribute__" members to suit this blogger's preferences.

- Lambda. Another syntactical sugar complaint. Python functions are first class variables.

Conclusion: The blogger's failed attempt to bash Python reveals his own lack of knowledge about the language.

comment 16y ago · link · parent

I wouldn't make a blanket assumption based on a graph like that. The number of PHP installations are higher for 2 useless reasons:

1. It is trivial to see if PHP is installed on a webserver. It is not so trivial to see if Python or Ruby is.

2. PHP has a strong presence in shared hosting, which is popular for hobbyist or low traffic websites.

When you take into account that big websites like Youtube, Reddit, and FriendFeed are written in Python, these graphs are downright useless.

comment 16y ago · link · parent

It's the same concept.You cannot use the excuse of "private property" to allow arbitrary discrimination when you are selectively serving the public.

This opens the flood gates for supermarkets, restaurants, and businesses that serve the public to discriminate based on race, religion etc. This is not a world you want to live in.

How would you feel if all the banks in your area refused to lend or deposit for you because your political views? How would you feel if you could not find a place to live or rent because the "private" housing and apartment communities decide that they don't like your race?

> I can't imagine a Muslim would be too happy about an atheist showing up at a Muslim retreat and yelling obscenities to Allah.

Why do you keep arguing about this when the people in the article weren't even picketing at the event? They were merely attending it. Please try to stay on topic.

comment 16y ago · link · parent

I am sad to see Facebook helping to perpetuate PHP.

On the bright side though, even if HipHop yields a 50% speedup, it is unlikely to be faster than Python, Javascript V8, or LuaJit.

http://shootout.alioth.debian.org/u32/chartbox.php?s=eNo9ktu...

edit

What's with the downvotes? I can't mention my opinions on php?

comment 16y ago · link · parent

Why not?

It is the dominant category in the US and has been often been used as a reason for discrimination in the past especially among supporters for segregation.

By using a concrete example, I hope I can help him or others realize absurdity of his views.

comment 16y ago · link · parent

Private property does not automatically make an event private.

In this case, this was a US government funded event (taxpayer money), with tickets handed out to the __public__. The only thing private about this was that the area was rented from a private owner.

http://www.ck10.uscourts.gov/opinions/09/09-1085.pdf

If you think this is private, I don't know what to tell you. I guess you support restaurants, supermarkets, and businesses being able to discriminate based on whether someone wasn't Christian or white.

comment 16y ago · link · parent

I am merely enlightening you to the fact that "private property" is not a catch-all excuse to discriminate and revoke "invitations" to people, which you seem to believe.

What's next? Maybe you'd like to include homosexuals and Muslims next because you can change your religion and sexual practices?

It's quite a dangerous precedent you are setting, and this has absolutely nothing to do with the 3rd amendment. The 3rd amendment deals with government troops and the right for troops to trespass on private property during war.

comment 16y ago · link · parent

You are wrong. It matters if you do something warranting eviction.

The supreme court ruled in Brown v. Board of Eduction of Topeka that racial segregation is a violation of the 14th amendment. This means you cannot evict people even from your privately owned businesses because of their race due to the commerce clause: http://en.wikipedia.org/wiki/Commerce_Clause

So if the people with the bumper stickers were black and asked to leave because they were black, it would be a slam dunk case against them.

Now we may see if this reaches the supreme court and whether they protect people from being discriminated for their political views.

comment 16y ago · link · parent

It is marginally related to the article, both being about Google. It isn't fair to say that he was trolling just because half of his comment wasn't discussed in the blog post.

comment 16y ago · link · parent

I think one of the biggest problems is the insane level of reliance Google now has for domain authority.

It feels like a cheap cop-out for controlling spam: the side effect is that you have heavy hitters like Maholo, Target, etc... all out spamming the more relevant websites.

A more general example of this algorithm problem is that it ranks the pages of Digg, HN, or similar to be higher than the actual website it links to, and most of the times those pages are devoid of any actual content, merely containing a couple of votes and no comments.

comment 16y ago · link · parent

And why would you think Google wouldn't do that? Advertisement money is their lifeblood. Not that I agree with this, but it wouldn't be illegal or against their TOS to do such a thing.

comment 16y ago · link · parent

Of course they aren't permanent. However, in this case, the people who had those bumper stickers weren't doing anything warranting eviction.

How would you feel if someone denied you an "invitation" to a privately owned supermarket because you were black and you "might" say something about all the white people shopping there?

comment 16y ago · link · parent

Your partner can't picket your bed because that would be trespassing.

The people in this article had the rights and invitation to be at the speech. There was no trespassing involved. They weren't even picketing before they were forced to leave.

comment 16y ago · link · parent

This is highly unsurprising considering the law and the attitude of the public (including HN). The first amendment has no bearing on "private" places, even if a public figure such as the President is involved.

However disagreeable this may be, it seems that most people on HN would agree with the ruling as evidenced by highly voted comments such as this: http://news.ycombinator.com/item?id=1068959

1
373839
48