Makefile it

Friday, January 09, 2009

Los 10 lenguajes más raros

Fuente Completa : MuyComputer

1. Ook!

Lenguaje dedicado a los primates, y en especial, a los orangutanes, que solo consta de 3 elementos sintácticos: Ook, Ook? y Ook! Combinándolas podrías hacer virtualmente todo lo que quisieras. Virtualmente, repetimos.

2. Piet

Lenguaje inspirado por el artista abstracto Piet Mondrian, este lenguaje convierte programas en pinturas abstractas con 20 colores diferentes representados con códigos hexadecimales. Un compilador luego los interpreta y crea el código objeto. Creedme, existen ejemplos reales de uso y las pinturas resultantes.

3. Whitespace

Como su propio nombre indica, este lenguaje crea programas a partir de espacios en blanco, y el propio sitio web oficial de este lenguaje describe sus características: "la mayoría de lenguajes de programación modernos no considera los espacios en blanco, tabuladores o retornos de carro como elementos de la sintaxis y los ignora, como si no estuvieran allí. Creemos que esto es una injusticia a esos miembros perfectamente normales del juego de caracteres. ¿Deberían ser ignorados solo porque son invisibles? Whitespace es un lenguaje que busca recuperar ese equilibrio. Cualquier caracter que no sea de este tipo se ignora. Solo los espacios, tabuladores, y retornos de carro se consideran como parte de la sintaxis".

4. LOLCODE

Aunque aquí no se utilice mucho, este es un tipo de lenguaje que sí que tiene cierta fama entre los usuarios anglosajones, ya que se utiliza en algunas imágenes de humor y de hecho también es la base del nombre de uno de los sitios más famosos de Internet, "I Can Has Cheezburger?". Este código está basado en el fenómeno generado por esta web, y utiliza este tipo de sintaxis para generar programas, como se puede ver en este ejemplo.

5. Shakespeare

El nombre es también muy descriptivo aquí, y en este caso el lenguaje de programación utiliza el estilo y sintaxis que probablemente hubiera seguido el mítico escritor inglés de haber desarrollado un lenguaje de programación. Todo formaría parte de una obra de teatro con diálogos, y un buen ejemplo sería escribir el famoso programa "Hello World!" en este lenguaje, cuyas primeras líneas quedarían más o menos así.

6. Befunge

El objetivo del creador de este lenguaje, un joven llamado Chris Pressey, es que este fuera lo más difícil posible de compilar. Para ello Befunge está dotado de dos características muy interesantes:

1. Auto-modificaciones: la instrucción p puede escribir nuevas instrucciones de forma autónoma.
2. Multi-dimensional: la misma instrucción se puede ejecutar en cuatro contextos distintos (de izquierda a derecha y viceversa, o de arriba a abajo y viceversa).

Parece que eso no ha impedido que como indican en el artículo original haya gente muy inteligente (y con mucho tiempo libre) que ha creado compiladores para Befunge.

7. reMorse

La idea de este lenguaje era la de poder reutilizar el famoso código Morse para programar, y obviamente es un lenguaje muy orientado a los especialistas en radio y telégrafo. Hubiera sido un lenguaje perfecto probablemente para la segunda guerra mundial, aunque eso sí, muy engorroso a la hora de escribir los programas.

8. FALSE

Este curioso lenguaje de programación también tiene un objetivo propio: el de tratar de desanimar a cualquier programador con ganas de dominarlo. Está basado en el famoso lenguaje Forth, pero hace uso de una sintaxis basadas en símbolos de puntuación para añadirle una nota más de complejidad al asunto. Como indica su creador, "diseñé este lenguaje con dos objetivos en particular: confundir a todo el mundo con una sintaxis ofuscada, y diseñar un lenguaje lo más potente posible con una pequeña implementación: en este caso con un compilador ejecutable en tan sólo 1024 bytes escrito en ensamblador para el Motorola 68000".

9. Whenever

El lenguaje de programación perfecto para los adolescentes, ya que este sencillo lenguaje es el rey de la procrastinación, y trata de retrasar cualquier tipo de acción, de modo que el lenguaje hace lo que quiere... cuando quiere. Com odice su creador, "toma todas las líneas del código y las trata como elementos de una lista de tareas. El intérprete elige un elemento de la lista de forma aleatoria para ejecutarlo, y lo ejecuta. En algunos casos la sentencia contiene una cláusula que especifica hasta que se cumplan ciertas condiciones. El resultado es que dicha sentencia se aplaza y vuelve a colocarse en la lista de tareas". Brillante para programadores (y programas) perezosos.

10. l33t

De nuevo un lenguaje más orientado a angloparlantes, ya que l33t es la equivalencia de Eleet ("Elite"), un lenguaje que sustituye combinaciones de caracteres ASCII por caracteres latinos convencionales, de forma que las frases quedan prácticamente ilegibles a no ser que seas parte de esa "élite" capaz de comprender dicho lenguaje.

Labels: ,

Monday, December 29, 2008

If programming languages were religions...

C would be Judaism - it's old and restrictive, but most of the world is familiar with its laws and respects them. The catch is, you can't convert into it - you're either into it from the start, or you will think that it's insanity. Also, when things go wrong, many people are willing to blame the problems of the world on it.

Java would be Fundamentalist Christianity - it's theoretically based on C, but it voids so many of the old laws that it doesn't feel like the original at all. Instead, it adds its own set of rigid rules, which its followers believe to be far superior to the original. Not only are they certain that it's the best language in the world, but they're willing to burn those who disagree at the stake.

PHP would be Cafeteria Christianity - Fights with Java for the web market. It draws a few concepts from C and Java, but only those that it really likes. Maybe it's not as coherent as other languages, but at least it leaves you with much more freedom and ostensibly keeps the core idea of the whole thing. Also, the whole concept of "goto hell" was abandoned.

C++ would be Islam - It takes C and not only keeps all its laws, but adds a very complex new set of laws on top of it. It's so versatile that it can be used to be the foundation of anything, from great atrocities to beautiful works of art. Its followers are convinced that it is the ultimate universal language, and may be angered by those who disagree. Also, if you insult it or its founder, you'll probably be threatened with death by more radical followers.

C# would be Mormonism - At first glance, it's the same as Java, but at a closer look you realize that it's controlled by a single corporation (which many Java followers believe to be evil), and that many theological concepts are quite different. You suspect that it'd probably be nice, if only all the followers of Java wouldn't discriminate so much against you for following it.

Lisp would be Zen Buddhism - There is no syntax, there is no centralization of dogma, there are no deities to worship. The entire universe is there at your reach - if only you are enlightened enough to grasp it. Some say that it's not a language at all; others say that it's the only language that makes sense.

Haskell would be Taoism - It is so different from other languages that many people don't understand how can anyone use it to produce anything useful. Its followers believe that it's the true path to wisdom, but that wisdom is beyond the grasp of most mortals.

Perl would be Voodoo - An incomprehensible series of arcane incantations that involve the blood of goats and permanently corrupt your soul. Often used when your boss requires you to do an urgent task at 21:00 on friday night.

Ruby would be Neo-Paganism - A mixture of different languages and ideas that was beaten together into something that might be identified as a language. Its adherents are growing fast, and although most people look at them suspiciously, they are mostly well-meaning people with no intention of harming anyone.

Python would be Humanism: It's simple, unrestrictive, and all you need to follow it is common sense. Many of the followers claim to feel relieved from all the burden imposed by other languages, and that they have rediscovered the joy of programming. There are some who say that it is a form of pseudo-code.

COBOL would be Ancient Paganism - There was once a time when it ruled over a vast region and was important, but nowadays it's almost dead, for the good of us all. Although many were scarred by the rituals demanded by its deities, there are some who insist on keeping it alive even today.

Visual Basic would be Satanism - Except that you don't REALLY need to sell your soul to be a Satanist...

Fuente : http://www.aegisub.net/2008/12/if-programming-languages-were-religions.html

Otra : http://www.cs.caltech.edu/~mvanier/hacking/rants/cars.html

Labels: , ,