Better HN
topnewbestaskshowjobs
Log inSign up

codewright

1,191 karma · joined Oct 14, 2012 (14y ago) · 425 submissions

Hacker in SV.
Submissions

comment 14y ago · link · parent

People often use Erlang primarily for the memory model. Pure in-memory didn't work for our use-case.

You can implement a queue that works better for batch work in Erlang, it's just that it'd be closer to a data store.

comment 14y ago · link · parent

Not really, no. Depends on what how narrow you are about the definition of "queue".

comment 14y ago · link · parent

Just don't use it for big, long-lived work queues and you'll be fine.

If the queue gets badly backed up, you're probably fucked.

Larger, longer-lived work queues are really more of a Hadoop thing, not an in-memory queue thing.

comment 14y ago · link · parent

Going back to the OP, does Akka provide that depth or not? Akka is a LOT more than just Actor-based concurrency.

comment 14y ago · link · parent

RabbitMQ has some pretty serious limitations related to it being implemented on Erlang that keep it pretty strictly in the realm of being a message queue rather than a generic queue.

CouchDB is more C++ than Erlang these days, bad example. It hasn't been mostly Erlang for a really long time. Erlang basically only does the clustering behavior, which is something Zookeeper et al. do already.

Riak is the only solid example out of those you listed, and its known for having poor raw performance, excellent availability, easy clustering, and awful usability.

comment 14y ago · link · parent

gaffe

comment 14y ago · link · parent

Non-sequitur.

comment 14y ago · link · parent

Zero calories/carbs is why I drink Redbull instead of the Starbucks stuff.

Japan has plain cold coffee, it's harder to find that here, otherwise I'd be happy to drink it.

comment 14y ago · link · parent

The same tick-tock-tick pattern occurs in programming. There was a hacker koan about this I believe.

The apprentice is lax, undisciplined, and writes buggy code.

The journeyman sees all that he has wrought upon the poor world with his awful code, and immediately takes to applying every precept he can to produce rigorously engineered and stable code.

I leave it to the imaginations of others to perceive what might lay in the third step.

comment 14y ago · link · parent

We're using Node.js as an example of something good?

Did we collectively forget everything known about concurrency once web apps got big or something?

This is embarrassing. I should switch to embedded or something.

comment 14y ago · link · parent

You should code more! It's fun. :)

comment 14y ago · link · parent

This is a pretty interesting post, but I'm seeing a common thread in most "experience reports" regarding making a webapp in Clojure.

They're all built with with the presumption that the person doing the frontend work (HTML, CSS, JS) will also be doing the backend (Clojure, database) coding.

This is almost never the case in my line of work.

Hiccup violates this principle by embedding the html in my Clojure and Enlive couples markup with data tightly in ways that horrify me.

The only approach I've seen that could work for more serious projects is using stencil because then the map of data you pass to the template-side is a 'contract' of sorts, but they can work with the data you pass however it works for them.

That's somewhat regrettable as I prefer Jinja-style templating to mustache, but Stencil (mustache) is the only viable alternative I've found.

I cannot possibly be the only person with a keen interest in Clojure who hasn't abandoned division of labor.

comment 14y ago · link · parent

Agreed, although I use Redbull as my "I'm not in the mood for something hot" coffee/tea alternative.

comment 14y ago · link · parent

> quorum-based approach...wonder if antirez considered that approach.

I'm sure he's aware of it, but I doubt he took it incredibly seriously unless he has a very specific strategy in mind. He's explicitly avoiding the Dynamo model for a lot of reasons.

The mixture of composite types and mutation-centric semantics have boxed Redis in a bit, although I love using it.

Hickey was probably right. Pity Datomic is commercial.

comment 14y ago · link · parent

I'm hoping this'll be a viable replacement for MongoDB. (Sparse/Schema-free is incredibly useful for me, as is JSON-centric modeling)

jedberg already asked for a compare/contrast, but let me provide some specifics I care about that you might be able to answer.

1. Is it fair to say that thanks to MVCC, running an aggregation or map-reduce job isn't going to lock the whole damn thing up like it does on MongoDB?

2. You've got a distributed system that is seemingly CP, do the availability/consistency semantics compare with HBase? Master-slave? Replication? Sharding?

3. Latency is a big one for us and is a large part of why we use ElasticSearch. How does the read-latency on RethinkDB compare with Mongo/MySQL/Redis/et al ?

comment 14y ago · link · parent

>Well, given that nothing else became a standard and their are a tad bit of people unhappy with Gnome 3,

Nah, that flag has flown. The time has passed where I would've moved to E17. I've since gone past that on to XMonad.

comment 14y ago · link · parent

It's 11:14 pm my time, and I just got done with work. Legitimate, not-procrastinating, i-work-in-the-startup-salt-mines, since I began this morning...work.

I'm now faced with either getting a little more sleep, getting to read a book series I started recently, trying to get some of my russian studies done, or maybe actually learning something about programming today.

I think I developed more as a person when I was working a 9-5. I never even got to experience the freedom of academics, because I couldn't afford to go to college.

Fuck it, I'll read another article about monad transformers and then pass out.

comment 14y ago · link · parent

It doesn't get emphasized in the FreeBSD community at all, maybe it's different for OpenBSD.

comment 14y ago · link · parent

I'm a little skeptical of using an OS as a work machine that I can't/won't deploy to for my work. (I write network services and web apps that run on Linux servers.)

I also have a long and storied history of despising ports. I'm convinced that people that actually like ports have nothing better to do with their time than compile/tweak packages.

comment 14y ago · link · parent

>and may be what you're looking for in "a more powerful OCaml"

Scala is neat, but the time I couldn't get sbt to run because it kept running out of memory, after having had no trouble with it for months, I decided it was time to rm -rf my scala install.

I have a lot more background with Clojure (Lisps, really) anyway. I'd enjoy something with a more informative/helpful type system but Scala and Haskell are too broken, irritating, and unproductive for me.

For people like KirinDave who've crested that mountain with Haskell, more power to them.

I have to ship product ASAP and don't have time to wrangle with parser combinators just to read some XML though.

comment 14y ago · link · parent

>It Gets Easier

Yes, except for Haskell. I did a fair amount of CL back in the day and I'm relatively comfortable with Clojure now...but Haskell is pain incarnate.

BSDM, pain, discipline, whips, and chains programming language of the century. That crown was stolen from Ada and covered in thorns and lambdas.

GHC: BWAHAHAHA! Infinite Types? YOU FOOL! THAT IS VERBOTEN!

On a more serious note, Haskell is fantastic until the moment you exceed its sweet spot. Once you leave that realm you have entered the world of pain, functional reactive programming, monad transformers, and true horror. The slope for "affordances" compares poorly with Lisp's knack for letting you spin a DSL or solution to a problem that reduces pain and improves expression. The laziness and space leaks are an unnecessary horror too. I'd rather something like a more powerful OCaml, given the choice.

comment 14y ago · link · parent

It's probably not a clear win in most use-cases.

comment 14y ago · link · parent

>Most of the distribution provided packages (well, ubuntu / debian) were horribly out of date last time I used them.

Oh, they still are. I use the 10gen apt source.

comment 14y ago · link · parent

I'm one of the people that like to make fun of MongoDB from time to time, but that's mostly from proximity producing contempt.

Nevertheless, a rundown of the gotchas and how to avoid them based on experience beyond simply running apt-get install mongodb is one of the most useful pieces on MongoDB I've seen of late.

The only new-news for me was that SSL support isn't compiled in by default. That's pretty irritating. I wonder if that applies just to 10gen's packages or also to distribution provided mongodb packages.

comment 14y ago · link · parent

Not everybody wants to build a Google, Facebook, or SpaceX.

There many paths to building a startup or achieving fulfillment. You only noted the most exceedingly rare form of them all.

Why not spend more time talking about the more common, more viable paths?

comment 14y ago · link · parent

Help me with the non-sequitur from buckets to front-end code.

Let me take a guess though:

Things you enjoy: [backend-code]

Things had to do at the startup: [buckets, frontend-code, backend-code]

Things you have to do at a big company: [backend-code]

Thus making the big-company more pleasant because you didn't enjoy frontend or bucket filling?

comment 14y ago · link · parent

563km for any wondering.

comment 14y ago · link · parent

OTOH, if you're in a mode of operation where you're interacting with data directly with any regularity, SQL syntax is a massive improvement over MongoDB's JS DSL.
1
101112
15