4 ms·
TC Slows Hacker News - Start the Arc can't scale rants.
It was inevitable now it's time to start the blog posts about how Arc can't scale to the web. ;)
- mixmax 19y agoFor a language that was released a month ago I would be surprised if it did scale.
- pg 19y agoAt these moderate loads the problem is more likely to be in the design of the web server than the language itself.
- wehriam 19y agoI think your web server might be broken.
- Readmore 19y agoI would agree. I just wanted to tongue in cheekly get this post over with.
- deleted 19y ago[deleted]
- pg 19y agoIn fact it was a design flaw, though not in the server. The code for checking whether a username was taken was inefficient, so it was taking a huge amount of time to create a new account. The culprit was this line: (some [is dcuser (downcase _)] (keys hpasswords*)) The reason the TechCrunch post slowed the site down so much was not the traffic per se but the number of those visitors who were creating new accounts. I pasted a fix into the repl, so the site should be faster now. Thanks to Rtm for narrowing the problem down to account creation.
- deleted 19y ago[deleted]
- Flemlord 19y agoThe reason [the site was slow] was not the traffic... but the number of visitors who were creating new accounts. The only better startup problem than that is "the site was slow because so many people were trying to give us money that our credit card processor crashed".
- Excedrin 19y agoI wish my webserver had a repl.
- pg 19y agohttp://www.arclanguage.org/install http://www.arclanguage.org/install
- davidw 19y agoFWIW, you can log into Erlang's Yaws.
- musiciangames 19y agoor Seaside: http://www.seaside.st/documentation/tools http://www.seaside.st/documentation/tools
- nostrademons 19y agoDjango has a shell that automatically loads all model objects. If you've got a decent shared-nothing architecture and point your config to the live DB (bad idea, but for the sake of argument...) that's effectively a REPL for the webserver. For that matter, you can get the same effect with the MySQL prompt and a shared-nothing PHP architecture.
- immad 19y agoThe slowness is a self-defense mechanism. Slow down new signups and submissions. Its genius really
- wehriam 19y agoArc can heal.
- ibsulon 19y agoTime to write it in an enterprise language -- I suggest C++. (Seriously, though, this should give pg and company some valuable benchmarking data for later on.)
- ltbarcly 19y agoWhat about arc makes anyone think it can scale? Is there an example of a continuations based web server that can?
- mrevelle 19y agoSeaside (http://seaside.st http://seaside.st), which powers dabbledb (http://dabbledb.com/ http://dabbledb.com/).
- lyime 19y agoI was hoping a big blog would NOT post about news.YC I would rather have this community be small and focused rather then become something like Digg.
- iamdave 19y agoThis was bound to happen, I'm afraid. If TechCrunch didn't do it, some Digg kidd would have.
- thomas 19y agomaybe it was just the server?
- zetaprime 19y agoHacker news was a welcome relief from Reddit and Digg, Reddit is so political now that there are few articles anymore about "the craft". Aside from the the prerequisite preachings from the "GREAT!" Paul Graham (amen brothers), there was some very germaine content at times. I will be curious to see how they weather the coming storm, of course they do have have an ARC. Lol, I know ver ver bad pun.
- apathy 19y agoprogramming.reddit is not bad. But, yeah, if you're a hacker, hacker news is better yet.
- TheTarquin 19y agoThe TC front-paging: A clever Arc stress-test organized by Paul Graham? Investigative report at 11...