About Me

My photo
PhD Candidate at Purdue University, Computer Science.
Showing posts with label Erlang. Show all posts
Showing posts with label Erlang. Show all posts

Friday, March 20, 2009

Erlang propaganda

It's weird when I first noticed the propaganda around Erlang specially in 2007..Everyone was going crazy talking about Erlang.
You can see it is not the case the last year.
I was thinking that maybe this was due to the launching of other languages built on Java. the new languages like Scala, Clojure made many enhancements to the concurrency problems in the Java model while preserving the knowledge and the libraries of this famous language.

Wednesday, October 08, 2008

Will we say Goodbye to RDBMS?

Through my work in the last 2 web projects I made a different architecture different that the usual ones.
The projects depend basically on a powerful multilingual search engine.
Using the Lucene technology for both projects created a big bunch of index files.

All I did, that I made all the navigation in the site be done through the search engine. So, I don't need to retrieve data from DB anymore.
Of course the site is dynamic, I think that I can just rebuild the index file from time to time(from scratch)..and if the site you work on has huge index files that will take months to be rebuild then you can rely on the (add/delete) command in the Lucene.

But in all cases, I expect this will future of Data storage. later, I figured out that Google App Engine provides way to connect directly to the BigTable.
Also, many Document based storage were released such as CouchDB build in Erlang (my beloved language) and thrudb.

I expect to release technical details about the architecture and the tradeoffs.

Friday, May 23, 2008

An introduction to Ruby language

My second technical session at Bibliotheca Alexandrina emphasized on the Ruby language..
I posted the presentation on my scribd here. I hope you find it useful.

Feel free to post your comments.
Read this doc on Scribd: ruby intro

Thursday, June 07, 2007

Erlang Vs Object Oriented

I think that in the future the functional programming community will be at peak. currently I think that the functional communities are too small to beat the Java community.

the functional is easier to any person. any one can write a functional code. Erlang for example has a light VM that can make profit of multiprocessors availability. this doesn't depend on certain compiler that enables parallelism in Java or C.
if you don't care about performance, think about parallelism as simpler way to structure software in a domain where there is a lot of natural concurrency.

I read a paper "Structured Programming Using Processes" in which the author tried to prove that the Erlang was capable to support a personal accounting software application. Maybe you can take a look to it later.

also, I like to point to Yaws, Yaws is a HTTP high performance 1.1 webserver particularly well suited for dynamic-content webapplications. I ma really amazed by its performance.

well, but why Erlang is not widely used till now?
Well the world likes Java. the type safe language. Security in distributed Erlang is “all or nothing,” so when a node is authenticated to another, it can perform any operation.
process isolation is not complete, a process can flood another process with messages, or it can steal all the CPU cycles by entering into an infinite loop.

Saturday, March 17, 2007

Erlang Review

After I got a quick look to Erlang, I started to feel a little more curios to this language, and I decided to give it a portion of my readings.
The resources of this language are limited, it is very clear that it is still in the "Early Adopter" phase. I already believe that this language can realize a very good hype very soon. Furthermore, I see it has as many advantages as the Ruby.
I won't talk about the ordinary features which anybody can figure out by himself. What I see the most important point is "Concurrent Programming" in Erlang.
Now, I think of this blog entry as a checkpoint of my digging results in the Erlang World, and not an Erlang Quick Start. this is just an entry to point to the "Erlang Status".

Erlang is a programming language designed for building highly parallel, distributed, fault-tolerant systems. It has been used commercially for many years to build massive fault-tolerant systems which run for years with minimal failures. Erlang combines ideas from the world of functional programming with techniques for building fault-tolerant systems to make a powerful language for building the massively parallel networked applications of the future.
This means that your Erlang program should run X times faster on a X core processor than on a single core processor, without changing a single line in your code. I really appreciate this flexibility. You can use this feature in a very effective way in your application.
I didn't test the Erlang by myself and test its performance, but actually I am very optimistic towards the results, given that the Erlang is heavily used on embedded systems. so, I expect that it has a good performance comparing with other technologies such as Java, Ruby..etc
frankly speaking, I didn't test the Ruby on my PDA. But I expected that the performance won't be pleasant at all. so I decided to save my time for something else. About Java, yes well, I tested it and I am not ready to do it again.
I wondered if anybody used Erlang in web applications!!! The good news I found is that there is a plan to produce a web platform for Erlang. well, there is already a web platform for Erlang but it is not open source and information about it is very limited because it was developed outside of Ericsson
I think the Erlang consulting and Training Ltd has used an Erlang web platform. which I think a quite impressive start for the Erlang. When I think about Erlang Platform, I think of powerful concurrency handling of heavy loads (It is the Erlang nature, nothing to do with it), and I certainly remember the fault-tolerance embedded with Erlang (built-in ability to upgrade software during runtime without restarting or failure time) which is something missed in most of frameworks dominating the marketplace nowadays. This paper talks in some more details about the status of the Erlang Platform.

I hope you enjoy your Erlang programming.

Friday, March 09, 2007

Quick look to Erlang

I started to be interested to the Erlang language. I read a little about it, and I think I may dedicate some time to it.
There is a short movie giving a quick introduction about ERLANG features.
Erlang has reached a high level of maturity in the telecoms market!!!!