Better HN
topnewbestaskshowjobs
Log inSign up

ericmoritz

734 karma · joined Jan 6, 2011 (15y ago) · 236 submissions

Submissions

comment 14y ago · link · parent

I think this is apt. When I learned Clojure, I had the same thought that it is a better Python.

Once you gain paren blindness, Clojure code starts to look a lot like Python. Macros, immutability, real concurrency, destructuring all make for a much nicer experience.

That being said, Clojure just feels like a nicer Python and for me and others, Python is just fine, so why change? Concurrency is one of the promised gains in CLJ but beyond software STM, Clojure doesn't gain you much. You're still using cumbersome threads so why bother. In fact I've moved on from Clojure and started writing Erlang for highly concurrent applications. It is much more appropriate for building concurrent, robust applications. I still write a fair amount of Python for web development.

comment 14y ago · link · parent

I'm not an iPad user and I really love my N7 but I notice this lag occur a few times yesterday. I suspected that it was due to high CPU load but didn't have the time to investigate it.

It actually occurred while I was showing off the N7 on the DC Metro to an interested rider. I feared that this out-of-love iOS user may have been deterred by the momentary lag even though the tablet is otherwise awesome.

I hope that this gets fixed in 4.1.2; Project Butter has made Android significantly smoother and I think this is just a rogue element in Google's aforementioned "War on laginess".

comment 14y ago · link · parent

I freaked out at first. I couldn't believe that they were criticizing developers for poor grammar. As I read on, I realized that they make a living on the written word and it all made sense.

comment 14y ago · link · parent

Perhaps I'm just nieve but if someone has access to the DOM via XSS; isn't CSRF nonces like Django uses pointless?

comment 14y ago · link · parent

See Resty https://github.com/micha/resty

comment 14y ago · link · parent

Do you know if CTRL and ALT work on bluetooth keyboards? My perfect IDE is only a SSH session away but I've heard that CTRL and ALT are not supported in Android and without those EMACS is pretty useless.

comment 14y ago · link · parent

this is basically the Rube Goldberg machine of robotics; which is cool in its own right.

comment 14y ago · link · parent

I've been using my Kindle Fire with ICS on it nearly every day. It's a really nice size for reading and browsing.

I'm sure it is a personal preference. Some people prefer 10" and some people prefer 7".

comment 14y ago · link · parent

Sorry some commenters on HN are harsh

comment 14y ago · link · parent

Wow, HN is harsh. This is probably a really solid product that solves a specific problem and you all nit-pick at it's trade-offs and poo-poo it.

comment 14y ago · link · parent

Wow, I didn't know there was a name for this. On my list of things to make someday is a "Slow Web" social network.

comment 14y ago · link · parent

I can implement the server. Is there anything I should know about tuning Twisted for this kind of benchmark?

comment 14y ago · link · parent

Excellent. I wanted to write a twisted implementation. care to take a crack at it and submitting a pull request?

comment 14y ago · link · parent

Feel free to fix the go version and submit a pull request. My implementation is just copy pasta from the net.

comment 14y ago · link · parent

I used the m1.medium instance on 64bit Ubuntu 12.04. I will update the results.md to note that.

I will also rerun all the tests on 2 core 64bit instances tonight.

comment 14y ago · link · parent

This initial release is not meant to be definitive. I welcome pull requests for better implementations in your language/platform of choice and any suggestion to better tune Linux for these tests.

comment 14y ago · link · parent

Am I wrong to feel disappointed when boxes like these are more than $200?

comment 14y ago · link · parent

Think of it as WINE project for iOS. He's building the libraries that iOS code depends on just like WINE recreated all the Windows DLLs so that Windows programs could run on Linux/OSX

comment 14y ago · link · parent

yeah this 12 core cluster costs about $2,000 for 12 Panda boards.

comment 14y ago · link · parent

In my experience, a single node web socket server has trouble with 5,000 concurrent connections nonetheless 100,000 connections.

comment 14y ago · link · parent

That's pretty cool. It's been a fantasy of mine to control the mouse cursor with my eyes.

comment 14y ago · link · parent

Relevant: http://vimeo.com/13667174

comment 14y ago · link · parent

gunicorn is nice for starting up a quick WSGI webserver. I prefer uwsgi when integrating with nginx. uwsgi's performance is pretty incredible.

comment 14y ago · link · parent

What didn't you like about it? I remember hating the syntax when I first start but forgot why.

After I worked through the initial aversion, the syntax no longer feels worse than say, Python, it is just different. In fact, I wouldn't give up Erlang's pattern matching functionality for anything and I miss that feature in any other language I use.

comment 14y ago · link · parent

Everything is a fad.

comment 14y ago · link · parent

A really neat project is the Erlang Embedded and a parallel project, Nerves.

I imagine a little cluster of these things in my house :)

http://www.erlang-solutions.com/news/1/entry/1307 http://nerves-project.org/

comment 14y ago · link · parent

I wish he would add TCE for the sole fact that parsing tree like structures feels much more natural using recursion than it does with a for loop. I am always paranoid that a really deep structure will cause an stack depth exceeded exception.

There's a quote from Guido about private attribute access where he said, "We're all adults", and that leaving the open is beneficial.

Recursion is another tool that he should let us adults use if it solves a problem better and TCE is lovely feature to have. Frankly, if you're using recursion, you either just learned it in a CompSci class or you know what you're doing. Either way, daddy Guido shouldn't tell us no :).

comment 14y ago · link · parent

/v1/people/john and /v2/people/john are different representations of the same internal state.

REST = Representational state transfer. While a URI is a unique identifier, it uniquely identifies a representation of internal state. The structure of the representation under a version should stay constant or else you void your social contract with consumers of your service.

comment 14y ago · link · parent

Whoops. Perhaps I am due two more sittings then.

comment 14y ago · link · parent

Kestrel: https://github.com/robey/kestrel
12345
8