Better HN
topnewbestaskshowjobs
Log inSign up

ericmoritz

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

Submissions

comment 14y ago · link · parent

not as ridiculous as this. https://gist.github.com/969788

comment 14y ago · link · parent

oh man, this one is and its "clear host cache" will come in handing in the future. chrome://net-internals/#dns

comment 14y ago · link · parent

You sound like every contractor being hired everyday in the DC Metro area.

comment 14y ago · link · parent

This is exactly what I do. I don't even have to look at the connector

comment 14y ago · link · parent

This is handy if you every find yourself hacking together a parallel map for a escript:

https://github.com/rprimus/plists

comment 14y ago · link · parent

It is basically a pre-paid credit card without the plastic and fees

comment 14y ago · link · parent

Akka does have supervisors. If you find Scala to be a happier syntax than Erlang (eye of the beholder), than Akka is worth looking into. It appears to be directly inspired by OTP and Erlang's "let it crash" ideology.

comment 14y ago · link · parent

Libraries like Akka <http://akka.io/>; or the Celluloid stack <http://celluloid.io/>; are nice and bring the good parts of OTP to more "friendlier" languages but you're still missing some fundamentals the Erlang VM which bring predictable performance such as distributed garbage collection.

comment 14y ago · link · parent

Great slides. I've been toying casually with a FP project for Python. It's an attempt to bring common FP abstractions and lazy evaluation of sequences using generators.

It's a work in progress, and I often think to myself, "Is this a good idea".

Here's the latest iteration: I'm in the middle of documenting things for an alpha release: https://github.com/ericmoritz/fp/blob/feature/documentation/...

comment 14y ago · link · parent

Why does it need to be a disposable missile? Can't they fit a drone with this?

Of course I'm assuming it is disposable.

comment 14y ago · link · parent

This basically describes my use of Dropbox. Anything important to me that's not code is stored in Dropbox. Every computer I have dropbox on and which has 100GB free, has a copy of those files so if Dropbox vanished, I still have a replicated copy of my files on one of my machines.

I never have to backup those files because they're replicated to any running machine with Dropbox installed. One of those machines has my dropbox share on a Drobo, so I'd need a catastrophic failure of my Drobo disks, Dropbox and my laptop in order to lose those files.

comment 14y ago · link · parent

I don't know how you can say that knowing functional programming inherently makes you a better programmer than another. A bad programmer is a bad programmer regardless of domain.

I have seen some ninja FP artists that have written some really terse solutions in a FP style which are completely unreadable to the uninitiated.

Also, I do not think that there is anything intrinsically difficult about FP. Knowing it proves that you are ambitious and that you have mental plasticity but not necessarily that you are a good developer.

You're just as likely to become that weird dude that writes code no one understands as you are to become Mr Wizard.

comment 14y ago · link · parent

Aw, I know the benefits. I hoped this would help me find a way to fit it in.

comment 14y ago · link · parent

How about they expel those who used the solutions as well?

comment 14y ago · link · parent

Tent should take a page from Jabber and create gateways which will post for you on other social networks much like Jabber had for non-Jabber IM services.

That way you could have a backup of all your social data, stored on your server if you wanted but broadcasted to the other servers.

comment 14y ago · link · parent

I would think ISPs would love to host folk's social network servers. Just think of all the social data they'd have at their disposal for whatever they could use it for.

comment 14y ago · link · parent

dang and all this time I've been doing this all this time:

   echo '{"hello": "there"}' | python -c "import json, sys; print json.dumps(json.load(sys.stdin), indent=4)"
Thanks for the tip!

comment 14y ago · link · parent

Erlang's error handling is very well thought out. In fact, error handling is the main reason Erlang is shaped the way it is.

It is a combination of Go's technique but with panics for exceptional errors.

Like Go, functions should return error values for known errors. For instance, `file:open/2` returns `{error, enoent | eacces | eisdir | enotdir | enospc}` for known error conditions that can be handled. Unknown, exceptional conditions, like a NAS going down, can't be compensated for because the set of unknown errors is unbounded. There could literally be an infinite number of things that can go wrong that you don't know how to handle. For try/catch style error handling, the only safe way to handle the unknown errors is to do a Pokemon catch clause globally or around every single potentially error causing function call.

Because of the fact that you can't stop errors from happening is why Erlang has processes. When an unknown error occurs, the individual process dies and anyone monitoring that process is notified. OTP has supervisors whose sole job is to watch over processes and restart them if they crash.

Any state that needs to be preserved between restarts is stored somewhere safe (Erlangers calls this the "error kernel") so that when the process comes back it'll resume where it left off.

Once you structure your code to "Let it Crash", your code gets much simpler and safer. #1, the error return values forces you to compensate for known errors that can happen with a function, #2 you have to think about data durability in order to "Let it Crash". #3 Supervisors take care of the rest.

Data durability is made much easier with the fact that individual processes are single threaded and data is immutable, this makes them transactional by nature.

comment 14y ago · link · parent

Hmm, someone is reinventing Emacs.

comment 14y ago · link · parent

I implemented something like this to notify interested parties in realtime of changes to a shared data element for synchronization. It is basically eventual consistency using op-based CRDTs.

comment 14y ago · link · parent

The Nexus 7 out shines the Kindle Fire, not because the N7 is more powerful, the N7 beats out the Kindle Fire because it isn't crippled.

A Kindle Fire with CM9 on it is only worse than the N7 because CM9 is buggier and ICS is uglier than stock Jelly Bean.

EDIT: I ditched my Kindle Fire for a N7 before Jellybean was available for the Fire.

comment 14y ago · link · parent

It would be awesome if they're keeping stats on each language so that we can find out which language is the easiest to type.

comment 14y ago · link · parent

I would really love to know what he did to tune that Rackspace VM. I had a terrible time trying to get node.js and others to get past 5,000 concurrent websocket connections on a m1.large EC2 instance or on Rackspace.

comment 14y ago · link · parent

A week with the Erlang language, which will enable to write projects that would be on par or better than anything written in node.js as far as resilient and scalability.

Probably another week to get up to speed with OTP for all the promises of resilient Erlang applications.

What is often missed about Erlang is that it's not really about highly concurrent applications. That property is actually a means to accomplish its primary goal: fault-tolerant applications.

See: http://www.erlang.org/download/armstrong_thesis_2003.pdf to understand the motives of the Erlang designers.

comment 14y ago · link · parent

So your argument is that web developers are too stupid to remember Erlang. Tell that to all those Django developers that have to juggle Python, HTML, CSS and Javascript! They must be superheros! Ruby on Rails developers must be as well!

comment 14y ago · link · parent

Is it possible to send raw bytes as WebSocket messages or are we forced to use MessagePack. I can see the benefit of sending structured data but for images or sound, what's the benefit of a intermediary serialization format vs chunked binary?

comment 14y ago · link · parent

Python isn't a hard language to learn. It's probably easier to learn Python than to port this to PHP.

comment 14y ago · link · parent

Not only is prohibition pointless; the actual harm caused by guns is relatively low compared to other causes. More people are harmed by cars than handguns.

comment 14y ago · link · parent

A decentralized twitter clone wouldn't be that hard; just mimic Email with subscriptions. The hard part is getting adoption.

comment 14y ago · link · parent

I used jsfiddle in the past only because I knew its name. jsbin is a lot less clunky. I'm sure I'll use it a lot more.
12345
8