jueves, 10 de noviembre de 2016

The Hitchhiker’s Guide to the Galaxy



Hi everyone, in this new and last blog post I will talk about the book that I read during this semester in the Compiler Design course. The book is titled The Hitchhiker's Guide to the Galaxy and was written by Douglas Adams in 1979.

The book begins with the arrival of a workmen at Arthur Dent's house in order to warn him that they are going to demolish his house to build a bypass. After a long negotiation Arthur's friend, Ford Prefect takes him to the nearest pub to tell him that the end of the world has arrived. That Thursday at lunchtime, the Earth is demolished to build a new hyperspace highway. Arthur flees from the Earth along with his friend in a ship that passes by the Earth. Ford Prefect, is not a human, but an alien who stayed on the planet longer than he should... Along with Zaphod Beeblebrox - the President of the Galaxy and semi-cousin of Ford -, a depressive robot named Marvin and a human woman whose name is Trillian, they will travel the galaxy in search of the legendary planet Magrathea...

The book did not become one of my favorite, but I found it very interesting and quick to read. The story is unusual, however, the way the author combines the personalities of the characters becomes fun. Although there are certain parts a little confusing, you want to know the end of the story.

I already knew the book, but I had not had the opportunity to read it and the truth is that I enjoyed the reading very much. I think it is a book for those who like science fiction and comedy. I recommend it totally, with the warning to be open minded and be willing to continue with the chapters although some of these are not fully understood.

Finally, I consider it a good cultural reference, since many of the situations faced by the protagonists of the book happen in real life on Earth, despite the fact that they encounter with aliens and in other planets.

The Answer to the Great Question... Of Life, the Universe and Everything... Is... Forty-two,' said Deep Thought, with infinite majesty and calm.
― Douglas Adams, The Hitchhiker's Guide to the Galaxy

martes, 1 de noviembre de 2016

Technical Overview of the CLR

Today I will talk about article that I just recently read, which is titled Technical Overview of the Common Language Runtime and was written by Erik Meijer and Jim Miller. Both worked at Microsoft and form important part of developing the Common Language Runtime (CLR).

Basically, the text compares some of the things offered by the Common Language Infrastructure (CLI) with the Java Virtual Machine (JVM). The main difference is that the CLI is a platform that supports a wide range of languages. Microsoft developers work closely with the implementers of these languages so that programs compiled efficiently and smoothly.

The architecture that makes up the CLI are the instruction pointer, the evaluation stack, an array of the local variables, local memory pool, among other things. The CLI easily manages multiple concurrent threads, which can be seen as a list of stack frames. Also, the CLI handles different types of data, that is, has a set of primitives which in turn can be combined with different types of constructors allowing the size value be mapped. The natural size has more benefits on how the JVM defines the storage locations, because 64-bit formats occupy two locations.

Throughout the whole paper is shown as the CLI it is much more powerful than the JVM, and although I can not say for sure that it is true, I recommend reading the article so that each pose their own opinions and can see the benefits of using each one. Something that struck me is that the article was written in 2001, so today we are able to appreciate the advances that have been made in both the CLR and the Java Virtual Machine, each taking advantage of recent progress.

I consider important to take into account the functionality offered by both the JVM and the CLR of .NET when implementing a programming language, because if it is object oriented, obviously should the JVM is better and for imperatives paradigms the CLR.