Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jcromartie
on Aug 31, 2011
|
parent
|
context
|
favorite
| on:
Now that people are considering NOSQL will more pe...
> Doing this in-memory in java via someAtomicLong.incrementAndGet() sounds appealing.
Just for fun, in Clojure:
(def current-id (atom (long 0))) (defn get-id [] (swap! current-id inc))
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Just for fun, in Clojure: