ETS is handy
Dev Corner - Ernie Makris - February 21, 2006The other day I wanted to create a counter that is shared amongst many clients that were connecting to a server. I wanted to assign a unique id to each, so I quickly listed how I would do this in erlang.
These are:
Create a gen_server process that has private state that contains the counter variableUse ETSMake the accepting gen_server keep track of and assign incremental ids….
There are
Categories: Blogs Dev Corner
Erlang on Twitter
» agisanast (Agis Anastasopoulos): ok, it’s actually an IRC bot I’ve been writing in #erlang.. https://t.co/Yo5Dbc18PV
» silentbicycle (Scott Vokes): @sw17ch Do look at the Erlang “bit syntax” (http://t.co/2xRq3IRZIR) closely, lots of good ideas there
» danpalmer (Dan Palmer): @mertdumenci try Erlang, even a slow full web framework will be twice the speed of Node :P
» NeoTeNu (NeoTeNu): Menudo cambio de paradigna tras más de medio día dándole a Erlang. Acojona y fascina al mismo tiempo. #aCabezaNonPara
» ErlangInfo (Erlang!): RT @ericmoritz: one does not simply open a port in Erlang…
» immobilo_erlang (Wohnung Erlangen): Attraktive 4-Zi-Wohnung direkt am Röthelheimpark: 1050,00 € / Miete
4 Zimmer, 106 m²
91052 Erlangen4 Zimmer-Wo… http://t.co/0HID6JxCl9
» macintux (John Daily): RT @coreyhaines: In Chicago on Monday? Want to see me give a book report on neural networks and erlang? http://t.co/ZvJUfuTfpH
» tnachen (tnachen): @hoopsomuah erlang’s supervisor model is sth I don’t see many systems have, Akka has sth similar I believe
» Erlang_07 (Erlang ): @Gracenatashaaa hmmm
» OchaaKusuma (OchaaK): @mbilungg_ serah aku dong mau erlang sapa :p kan cowo aku :p
Statistics
Number of aggregated posts: 10648
Most recent article: May 14, 2013
Latest comments
» Moraru on This is Why You Spent All that Time Learning to Program: It is true that computer science was a pain in the back at time that i’ve had to learn it…
» Commercial hand dryers on Couchbase Meetup at new HQ: Buy online from here where you will get so much of variety in Commercial hand dryers for people. If you…
» Fort McMurray Homes on Motivated Reasoning and Erlang vs Python vs Node: I don’t really understand why this post is motivational? I don’t even see a post, just a title. Fort McMurray…