|
June 26
|
|
|
|
Rawwell
marked as to-read:
Programming Erlang: Software for a Concurrent World (Paperback)
by
Joe Armstrong
bookshelves:
to-read
|
my rating:
|
| |
|
|
Rawwell
read and liked
Dalebrayden's
review of Programming Erlang: Software for a Concurrent World:
"This is the definitive book on Erlang, written by Joe Armstrong, the creator of the Erlang language. The book is clearly written, with lots of small examples, and paced for the beginning Erlang programmer.
Erlang takes a little getting use...more
This is the definitive book on Erlang, written by Joe Armstrong, the creator of the Erlang language. The book is clearly written, with lots of small examples, and paced for the beginning Erlang programmer.
Erlang takes a little getting used to. It is a functional language, meaning that functions in general are unable to cause side-effects. For example, 'variables' are in one of 2 states: their initial state is 'unbound', their final state is 'has some value that can never change'. Attempting to place a value into a variable that already has a value causes an exception. This aspect of functional programming makes it possible to write multi-threaded/multi-process applications without the problems inherent in multi-threaded applications in non-functional languages.
The basic data types in Erlang are functions, atoms, numbers, lists, tuples, and strings (which are actually lists of integer numbers). List manipulation in Erlang is similar to that in Lisp: lists are generally treated as a head and tail. This is used by the Erlang way of defining functions: functions are defined as a set of pattern-matched expressions with code associated with each expression. For example, a simple accumulator in Erlang might look as follows:
total([H|T:]) -> H + total(T);
total([:]) -> 0;
total([1,10,20,5).
====> 36
This just says that to sum the values in a list, you add the value of the head of the list to the sum of the values in the tail, and that the sum of an empty list is zero.
Functions (lambdas, really, or 'funs' as they are called in Erlang) are first-class objects in Erlang, meaning that they can be members of tuples and lists, can be passed as parameters to functions, and can be returned as a value by functions. So, for example,
Double = fun(X) -> ( 2 * X ) end.
Double(5).
====> 10
Erlang was designed from the beginning to make it easy to write concurrent programs. Erlang process creation is very efficient, and there is no great difference between running such a program as many threads on one box or many processes on multiple boxes. A new process is created with the spawn function, which takes a fun (a lambda) as a paramter. The spawn function returns the process id (pid) of the new process, which may then be used to communicate with that process. The book shows a couple simple examples of distributed programming by way of illustration: a simple name server, and a stripped-down IRC server and client.
The book continues with details on how to interface C and Erlang software, how to communicate over TCP and UDP, the Erlang large-data storage mechanisms (ETS an DETS), and the Erlang database (mnesia).
There is a nice example of implementing map-reduce for disk indexing with Erlang on a multicore system.
Finally, there are a number of appendices including a large reference listing of the standard Erlang modules and functions.(less)
"
|
|
Rawwell
gave to:
Twisted Network Programming Essentials (Paperback)
by
Abe Fettig
|
my rating:
|
| |
Rawwell said:
"great overview of network programming in python
"
|
|
April 05
|
|
Rawwell
read and liked
Natalie's
review of Angels & Demons (Robert Langdon, #1):
"Definitely one of the worst books I've ever read, and most likely in the top 2 (or bottom 2, depending on how you look at it). The writing is atrocious and the characters obnoxious. The story line itself would be interesting, but it can't make up fo...more
Definitely one of the worst books I've ever read, and most likely in the top 2 (or bottom 2, depending on how you look at it). The writing is atrocious and the characters obnoxious. The story line itself would be interesting, but it can't make up for lack of plausibility (coming from a sci-fi fan!!) and uninteresting, unreal characters (including a nuclear physicist) with child-like dialogue. I made it to the end of the book by sheer will-power. Give it a miss. (less)
"
|
|
Rawwell
read and liked
James's
review of Angels & Demons (Robert Langdon, #1):
"What a piece of crap. Some of the worst writing I have ever encountered. Fortunately, most people can't form a sentence of their own these days and that renders pap like this a commercial viability. Which is great because we all get to share in Da...more
What a piece of crap. Some of the worst writing I have ever encountered. Fortunately, most people can't form a sentence of their own these days and that renders pap like this a commercial viability. Which is great because we all get to share in Dan Brown's genius. I'd give it 0 stars if I could. I am offended by how bad this book is. But I have to admit, actually, that I did not finish it. I threw it across the room in disgust. So, maybe, just maybe, it gets really good after the steaming pile of horseshit that is the first 50 pages.
The only thing that made sense about this book was the place that I encountered it: casually forgotten, sitting next to a toilet, gathering dust. If I had spent money to acquire this book I would have subsequently sued to get my money back--kind of like fans of Creed [sic] suing Creed for sucking. My three year old niece is more clever than this book and, I believe, she has a better grasp of sentence structure, as well.(less)
"
|
|
Rawwell
gave to:
Angels & Demons (Robert Langdon, #1)
by
Dan Brown
|
my rating:
|
| |
|
|
Rawwell
gave to:
The Holographic Universe (Paperback)
by
Michael Talbot
|
my rating:
|
| |
read in April, 2009, has a copy to sell/swap
Rawwell said:
This review has been hidden because it contains spoilers. To view it, click here.
"This book is not on science, but on the occult!
This book starts very promising, discussing the beginnings of the Holographic theory by Bohm and Pribram.
But then it turns to the dark side....dreams, precognition, auras, etc, etc, ad...more
This book is not on science, but on the occult!
This book starts very promising, discussing the beginnings of the Holographic theory by Bohm and Pribram.
But then it turns to the dark side....dreams, precognition, auras, etc, etc, ad nauseam, ad absurdum.
The book continues with poor scholarship and unproven, pseudoscientific ramblings.
This book is all about psychic experiences.
Not scientific, not worth buying.
(less)
"
|
|
March 12
|
|
Rawwell
gave to:
The Selfish Gene: 30th Anniversary Edition (Paperback)
by
Richard Dawkins (Goodreads author)
|
my rating:
|
| |
|
|
January 22
|
|
Rawwell
gave to:
sed & awk (2nd Edition)
by
Arnold Robbins
|
my rating:
|
| |
read in January, 2009
Rawwell said:
"concise, and written very clearly.
"
|