domingo, 7 de abril de 2019

The Hitchhiker´s Guide to the Galaxy


The Hitchhiker´s Guide to the Galaxy is a story of the two human beings who survive the Earth’s senseless destruction, and their adventures in space and time while attempting to discover the meaning of life

This book written by Douglas Adams begins with Arthur Dent facing the destruction of his house to replace it for a new highway. While this is happening, Arthur's friend of many years, Ford Prefect, tells Arthur that Earth itself is about to end, as an alien race wishes to make an intergalactic highway and Earth is in its way.

The novel takes us with Arthur and Ford to their adventures in the galaxy onto the Heart Of Gold, the most advanced ship in the galaxy, which itself was hijacked by Zaphod Beeblebrox, the two-headed, three-armed, way trippy ex-hippie president of the galaxy and an old "friend" of Ford.

At the ship they meet Trillian which is Zaphod´s girlfriend, whom Arthur once tried to mack on, and also they meet a paranoid, chronically depressed robot called Marvin. Arthur and Ford travel through the galaxy, searching for the question to the Ultimate Answer Of Life, the Universe, and Everything.
The author describes to specifically how the technology of this novel works, we can read about technology never heard like the telepathic Babel Fish which can translate all known languages, and the Infinite Improbability Drive which powers the spaceship Heart of Gold.

This book is also famous because of its satire on philosophy and religion fields. The meaning of life written in this book is actually “42”.

To be honest I like the book but only in the funniest parts, I believe that in some chapters the story is a little bit boring and I lost the thread of the plot, which makes it even more boring for me to re-read those parts and continue with the plot

viernes, 22 de marzo de 2019

Technical Overview of the CLR


In this article we read about the common intermediate Language, it seems to be better than the Java Virtual Machine. In this article we can see the pros of using common intermediate Language and also the cons of using the java virtual machine. Many experts have written about the disadvantages of using the JVM, and here we can see them clearly.

There are reasons to choose an alternative to native compiler, which are:
  • ·        Portability
  • ·        Compactness
  • ·        Efficiency
  • ·        Security
  • ·        Interoperability
  • ·        Flexibility

The Java Virtual Machine does not give a way to encoding type-unsafe features of typical programming languages, such as pointers, immediate descriptors and unsafe type conversions.
It also has a lot of libraries not only for have but for other languages, this makes it a multi-language platform.

There is a tool called CLI developed by Microsoft that has good support for imperative and statically Oriented Object Languages. The code created with a language compiler that targets the runtime is called managed code. It benefits from some features like the cross-language integration, cross-language exception handling, enhanced security, versioning and deployment support, a simplified model for component interaction, debugging and profiling services.

The common language runtime called CLR, makes it easy to design components and applications whose objects interact across languages. Also in this article we read that objects written in different languages can communicate with each other, and their behaviors can be tightly integrated. CLI is not the perfect multi-language platform but is way better than java virtual machine

lunes, 11 de marzo de 2019

Ruby and the interpreter pattern report



This entry is to talk about the article “Language Design and Implementation using Ruby and the Interpreter Pattern” written by our professor Ariel Ortiz. Int his article we read about the SIF, which means S-Expression Interpreter Framework and it is used to demonstrate advanced language concepts and also to demonstrate programming styles. It is a tool for teaching language design and implementation. It is an interpreter based on the Interpreter design pattern.

It is so simple to use, it allows integers, symbols, lists and procedures. Also, we have to mention that Ruby has power and flexibility of dynamic languages, so it is easier to understand. This pattern allows us to write interpreters that can be studied with basic build blocks that this pattern provide us. We can see the different behaviors of trees after being interpreted, and this is called a functional program.

Using an interpreter, the syntax is implemented in the initialize method, it receives an array with all the arguments. Then, validates the syntax and constructs the substrees that corresponds. Also with this method we can analyze the semantic analysis. Here, this method receives a context as a parameter and is called recursively for some or all the child nodes.
One difference that can be noticed is that a compiler generates intermediate code, while an interpreter is a reduced version of a compiler. The Design of patterns is very important to be considered in the process of designing a compiler.

sábado, 16 de febrero de 2019

Rear Admiral Dr. Grace Brewster Murray Hopper



Born on December 9 of 1906.
Grace Hopper was a strong woman, strong because she was in disadvantage of being a woman (I mean disadvantage because of the time she was living) an interested in technology. She went to Vassar College to study maths, physics and engineering. She made a thesis called “A new Criterion for Reducibility of Algebraic Equations” .

She worked first as an instructor, then as an assistant professor and finally as an associate professor at Vassar. During the second World War, she joined the US naval reserve.
After the war, her next important move was the Eckert-Mauchly Corporation which was nearing completion of the UNIVAC. She was thinking in making machines easier to use by creating higher level languages. So in 1952 she and her team at Remington wrote the A-0 compiler. She solved the problem of forward references by using a fixed jump area where the addresses of routines could be stored when they were discovered later in the program's text.

She also wrote the first symbolic differentiator. She demonstrated that a compiler could translate programs written in French and German into machine code. She deserves to be called the mother of Cobol since she did much to influence the newer details of Cobol Language.
She retired in 1966 with the rank of commander but the Navy still needed her and seven months later she was asked to take on the job of standardizing the Navy's use of languages. She returned to active duty at 60 and was promoted to Captain.

In 19569 she was selected by the Data Processing Management Association as their first “man” of the year. She proved that women can be better programmers than men. In 1964 she awarded the Society of women Engineers Achievement Award and was made a Distinguished Felow of the British Computer Society in 1973, the first woman and the first American ever to be so honored.


viernes, 8 de febrero de 2019

Internals of GCC


To make a Little introduction of GCC, I am going to tell you what I heard from a podcast by software Engineering Radio and Morgan Deters. GCC is a set of compilers for a wide variety of languages, not just for C language. It can be used into other languages, as many of programmers maybe did not know.

A compiler is defined as an interpretation of a set of line codes that are written on a determined language program, This Compiler is the uncharged of creating a parse tree to translate all the grammar representation of that language. When we talk about compilers we must take into consideration an important thing constantly mentioned in the podcast, the optimization. We have to take it into account in methods and routines.

Morgan Deters talk about GCC and he specifies its functions as a portable compiler that can be run on most currently platforms. He considered GCC as a cross-compile because the previous reason, and because of their not completely native characteristics. This compiler produces executable files, allowing a compilation in embedded systems. This compiler takes into consideration the optimization, but another characteristic of it is the portability, this means that the compiler can be adapted to new systems quite facile.

Compilers as Morgan Deters said, help us to save great amounts of memory, because programmers waste memory spaces that become inaccessible. Obviously GCC is not a perfect compiler and it has some disadvantages, such as being unspecific of the error we have in the code and were this error is presented. GCC can be used for anyone who wants to use it, but in my opinion, the user must have some experience with this compiler, so that it would be easier to use

Internals of GCC


To make a Little introduction of GCC, I am going to tell you what I heard from a podcast by software Engineering Radio and Morgan Deters. GCC is a set of compilers for a wide variety of languages, not just for C language. It can be used into other languages, as many of programmers maybe did not know.

A compiler is defined as an interpretation of a set of line codes that are written on a determined language program, This Compiler is the uncharged of creating a parse tree to translate all the grammar representation of that language. When we talk about compilers we must take into consideration an important thing constantly mentioned in the podcast, the optimization. We have to take it into account in methods and routines.

Morgan Deters talk about GCC and he specifies its functions as a portable compiler that can be run on most currently platforms. He considered GCC as a cross-compile because the previous reason, and because of their not completely native characteristics. This compiler produces executable files, allowing a compilation in embedded systems. This compiler takes into consideration the optimization, but another characteristic of it is the portability, this means that the compiler can be adapted to new systems quite facile.

Compilers as Morgan Deters said, help us to save great amounts of memory, because programmers waste memory spaces that become inaccessible. Obviously GCC is not a perfect compiler and it has some disadvantages, such as being unspecific of the error we have in the code and were this error is presented. GCC can be used for anyone who wants to use it, but in my opinion, the user must have some experience with this compiler, so that it would be easier to use

Internals of GCC


To make a Little introduction of GCC, I am going to tell you what I heard from a podcast by software Engineering Radio and Morgan Deters. GCC is a set of compilers for a wide variety of languages, not just for C language. It can be used into other languages, as many of programmers maybe did not know.

A compiler is defined as an interpretation of a set of line codes that are written on a determined language program, This Compiler is the uncharged of creating a parse tree to translate all the grammar representation of that language. When we talk about compilers we must take into consideration an important thing constantly mentioned in the podcast, the optimization. We have to take it into account in methods and routines.

Morgan Deters talk about GCC and he specifies its functions as a portable compiler that can be run on most currently platforms. He considered GCC as a cross-compile because the previous reason, and because of their not completely native characteristics. This compiler produces executable files, allowing a compilation in embedded systems. This compiler takes into consideration the optimization, but another characteristic of it is the portability, this means that the compiler can be adapted to new systems quite facile.

Compilers as Morgan Deters said, help us to save great amounts of memory, because programmers waste memory spaces that become inaccessible. Obviously GCC is not a perfect compiler and it has some disadvantages, such as being unspecific of the error we have in the code and were this error is presented. GCC can be used for anyone who wants to use it, but in my opinion, the user must have some experience with this compiler, so that it would be easier to use

sábado, 2 de febrero de 2019

The hundred- Year Language

It is impossible to predict anything in a hundred year; the world improves on an exponential way. This same happen with the programming languages, it is uncertain to know in which language will be software implemented.

It is true that the evolution of programming languages depends on the evolution of species, this is because the necessities that humans have and how the technology grows. Something that is also true, is the fact that any programming language can be divided in two parts, fundamental operators, and the rest of the language.

The most important part of a programming language are the fundamental operators and not just for the axioms, but that there be few of them. The evolution of the trees goes under these languages that have the smallest, cleanest cores. If you ask me how programs will be written in the future, I would tell you that is impossible to know or even to get close. I assume that maybe people would not tell computers what to do anymore, or maybe it will be easier or more automated. To assume we must consider that languages are not technologies at all, they are notation. Programs are a formal description of a solution of a problem that we want a computer to compute. Maybe languages do not involve a lot trough the years, but the solutions are optimized with the past of the years, they are faster solutions to compute.

The best way to resolve problems is to separate the meaning of a program from the implementation details. Code can be reusable because its bottom-upness. They are reusable because they are languages. We have to enjoy todays languages because they offer us differences between them and similarities

sábado, 26 de enero de 2019

Making Compiler Design Relevant for Students who will (Most Likely) Never Design a Compiler



Building a compiler is more than translating high-level programming languages to assembly or machine code. A compiler is an instance of translators from a source language to a target language.
In this document it is explained that we have the same structure in many translators: an input sting which is composed into tokens, these tokens are grouped into phrases and then these phrases are mapped to the output sequence determined by the structure a context in which they occur.
We also learn that compiler development tools, like lex and yacc, can be applied for many translation problems.

It is explained that Dot is a tool that reads a textual graph and produces a drawing of the graph specified. To do something like this, the following actions are needed:

1-     Read the textual graph using context-free parsing techniques
2-     Check semantic consistencies between components
3-     Construct internal representation
4-     Determine the output
5-     Modify the output
6-     Generate postscript for the graph

For translating Latex to html the translation should follow the following actions:
1-     Read the latex document using context-free parsing techniques
2-     Construct internal representation
3-     Process Latex constructs and output

We notice that the steps are less than the graph example, and it is because the source and target languages are semantically much closer in the Latex to html case.
Essentially, with both cases we can see the same main phases of the compiler. A lexical analysis and parsing, A semantic analysis, code generation and code optimization.

In Lexical analysis and parsing, the compiler refers to the type or scope of a variable. In code Generation, the compiler transverse the tree representation of a program to generate assembly or machine code for the target machine. In optimization step, the compiler basically makes code transformations to make the program faster.


jueves, 17 de enero de 2019

This is ME

"Hello there", my name is Sergio Adrian González Hidalgo,but I prefer to be called Adrian. I am studying the eighth semester of major in Computer Science at Tecnológico de Monterrey Campus Estado de México.

I am currently working as a Junior Consultant for DGA Consulting Technology developing Business Intelligence apps for Grupo Bimbo. 

From this course, I expect to learn the structure and the importance of Compiler Design and try to apply it to my daily life as student or at my job. I also want to improve my programming skills and find other ways to solve problems.
My hobbies are:
  • Painting: I have painted with watercolors, chalk pastel, colors, and acrylic paint. I prefer to paint movie characters.
  • Watch movies: I love going to the cinema. I usually go twice a week if the school and my job allows me to do so. My favourite genre is the suspense. One of my current favorite directors is Edgar Wright, I enjoyed Baby Driver a lot. My favourites movies are:

  1. A Star is Born
  2. Christopher Robin
  3. Watchmen
  4. Avengers:Infinity War 
  5. Star Wars (All of them)
  6. Lord of the rings
  7. Psicosis
  8. Baby Driver

  • Play Videogames: I have played videogames since I was a kid, I mainly enjoy shooter videogames because I consider myself good at them. One of my previous dreams was to become a profesional gamer.
  • I don´t watch series because I don´t like to wait for another season.