Mostrando las entradas con la etiqueta COBOL. Mostrar todas las entradas
Mostrando las entradas con la etiqueta COBOL. Mostrar todas las entradas

domingo, abril 26, 2015

Qué va de un AS/400 a un System i

Aunque el lanzamiento corresponde a mediados del año pasado, la cuenta de Google+ de IBM Red Books, volvió a destacar una publicación de mucho interés en estos últimos días: Modernization Redbook has been published!. El comentario refiere al Red Book "Tools and Solutions for Modernizing Your IBM i Applications", editado en septiembre de 2014, y renovado ahora. Este libro contiene información de servicios y características del System i, pero particularmente la descripción de implementaciones de distintos socios de negocios de IBM. Este texto merece ocuparse de él, pero ahora lo que particularmente me interesa es la entrada de blog que aparece relacionada: "Modernization Redbook has been published!". Porque esta entrada, de junio de 2014, comenta un red Book que es la base de "Tools and Solutions...". Se trata del libro "Modernizing IBM i Applications from the Database to the User Interface and Everything in Between ", y éste sí es especialmente interesante, fundamental. En este texto se explica qué ha cambiado, y qué es posible hacer hoy con un System i. Realmente, mucho ha pasado entre el inicial AS/400 y su continuidad actual.
El libro tiene toda una primera parte donde habla de modernización, un aspecto especialmente requerido en entornos de AS400, en los que es frecuente encontrar cierto conservadorismo en el uso del equipo. Quizá no en general, donde el área de IT podría estar actualizado, pero sí en el área del AS400. Probablemente la propia ventaja de que pueden ejecutarse aún antiguas aplicaciones migradas de versiones anteriores de IBM (S/36, S/38 y más) tiende a mantener un ambiente que no cambia lo que funciona. Y lo mismo sucede en parte con el horizonte de los recursos humanos involucrados. Por lo tanto, la minuciosidad de las explicaciones en el terreno de la modernización, son entendibles.
Pero el resto del libro es material más que útil, destacando los nuevos servicios que el System i dispone, lo que lo hace distinto a sus orígenes:
El ambiente integrado de lenguajes (ILE), que permite interactuar entre distintos lenguajes disponibles en el equipo. A través del libro se explican distintos casos de aplicación del ILE. Es fundamental entender las posibilidades del ILE  para la explotación del equipo, por ejemplo, desde el punto de una arquitectura SOA.
Java, PHP, Ruby on Rails integrados. La disponibilidad de lenguajes capaces de trabajar para arquitecturas web, o articulables sobre múltiples plataformas, ha abierto completamente las posibilidades del equipo.
Servicios de administración de datos extendidos (data centric development). Desde el lejano inicio del DB2 sobre el AS400, las posibilidades de trabajo con la base de datos han cambiado y mejorado radicalmente. Nunca me he quejado de la eficiencia de DB2 en el AS400, pero los ajustes que se hacen sobre el ahora System i extienden su excelente servicio a las actuales necesidades de grandes bases de datos (Big Data).
El libro describe esta evolución así:
The original database designs might have come from an S/36 environment. This origin implies that the files are programs that are based on a flat file design. If the design is from the S/38 or early days of the AS/400, chances are that the database design was created one time and has lost any resemblance to that original design over time. Programmers can be good at adding a function or extending something after they do only a cursory review of the effect to the overall design. Although these designs continue to work on IBM i, neither approach takes full advantage of the power of DB2 for i.
Since the announcement of the AS/400, 25 years ago, IBM has continued to add new features and new functions to the database with each new release and technology refresh. A contemporary design is critical to take advantage of these new functions and to experience the performance improvements inherent in the updates. It is time to look at a data-centric view of development (...)

One of the most important improvements to the database over the years is the advancement of SQL. When we talk about a modern database, SQL is a requirement. This is not to suggest that native database access should be forbidden, but instead that it should use the correct tool for the job.
Traditional record access for small data sets can be effective. But, as data sets become larger, the effectiveness of native access can diminish. Additionally, your applications are required to take more responsibility for processing data across multiple tables. This processing can lead to complicated application code that can cause performance issues.
This situation is where SQL must be used. The beauty of SQL is that it uses the system or operating system versus the application. Many complicated data access routines can be replaced by SQL, which allows the system to figure out the indexes that make the most sense to retrieve the wanted data. The SQL engine on IBM i has undergone significant development focus over the past few years. The database has become better at creating and maintaining indexes to optimize your data access. The more records that you need to process, and views you need to combine, the better SQL can perform. In addition to the optimized indexing, SQL can use the multi-threading capabilities of the system without causing RPG and COBOL program (which are single-threaded) issues.
El i está abandonando definidamente el enfoque que siempre mantuvo sobre la base de datos, orientada a la recuperación de filas (orientada a registro - READ/WRITE) para adoptar el punto de vista de la orientación a sets de datos, dando prioridad al SQL. IBM  está recomendando abandonar la creación de tablas mediante DDS para hacerlo con DDL.
Este es un punto donde Plex debe actualizarse, acompañando esta "revolución copernicana" en el manejo de datos. Notablemente, Plex es capaz de generar código SQL, pero lo hace para variantes ODBC/JDBC, dando prioridad en las variantes de servidor/400 (RPG400, RPGIV, SQLRPG400, SQLRPGIV) a la "orientación a registro". No es que no se pueda explotar este cambio en Plex, pero exije un grado de intervención manual que no debería tener, dado que tiene los elementos necesarios para otro enfoque. Entre las modificaciones solicitadas por los usuarios, algunas de las más importantes se concentran en este área (generación de DDL, explotación a fondo de SQLRPGIV).
Otros aspectos del cambio en el System i son los relacionados con SOA y Servicios Web, Sevicios XML, Soporte de servidores Web, Soporte de Cloud, enlace con aplicaciones móviles...
Pero esto será para conversar en la siguiente oportunidad. Por ahora, hasta aquí.

domingo, abril 10, 2011

Lenguajes de programación y rankings

Reviendo dos rankings de lenguajes de programación: Tiobe y The Transparent Language Popularity Index, éste último, en Source Forge (apuntado por Jean Bezivin). Coincidencias básicas entre ambos para los primeros puestos: con leves diferencias, Java, C, C++, PHP, C#. En ambos rankings, no se habla de número de aplicaciones, líneas de código, ponderación de la importancia de las aplicaciones involucradas. Fundamentalemnte, lo que establece su importancia es la popularidad del lenguaje. La fórmula de Tiobe lo explica:
The ratings are calculated by counting hits of the most popular search engines. The search query that is used is
+" programming"
This search query is executed for the top 6 websites of Alexa that meet the following conditions:
  • The entry page of the site contains a search facility
  • The result of querying the site contains an indication of the number of page hits
Based on these criteria currently Google (32%), YouTube (10%), Yahoo! (3%), Bing (3%), Wikipedia (16%), Blogger (32%) and Baidu (3%) are used as search engines. The number of hits determine the ratings of a language. The counted hits are normalized for each search engine for the first 50 languages. In other words, the first 50 languages together have a score of 100%. Let's define "hits50(SE)" as the sum of the number of hits for the first 50 languages for search engine SE and "hits(PL,SE)" as the number of hits for programming language PL for search engine SE. Possible false positives for a query are already filtered out in the definition of "hits(PL,SE)". This is done by using a manually determined confidence factor per query. A query such as "Basic programming" also returns pages that contain "Improve your basic programming skills in Java". The first 100 pages per search engine are checked for possible false positives and this is used to define the confidence factor. If this factor is 90%, then only 90% of the hits are used for "hits(PL,SE)". An overview of the confidence factor can be found in the groupings table below.
The ratings are calculated with the following formula:
((hits(PL,SE1)/hits50(SE1) + ... + hits(PL,SEn)/hits50(SEn))/n
where n is the number of search engines used.
¿Son importantes estos índices? La popularidad implica que han ocupado la atención pública, que fue analizado para su adopción, que distintas comunidades recurrieron a consultas para resolver problemas o educarse, en fin, que estuvieron en el foco de la atención de la comunidad de la industria. Pero no habla en todo caso de los consolidados, aquellos que se usan sin ruido, y que pueden ser usados también en abundancia, como sin duda sucede con COBOL, RPG y otros.
En el último tiempo, suele hablarse de Java como un lenguaje "corporativo", igualándolo a "legacy". Su continuidad en la primera línea en todo caso muestra que su interés no se ha amortiguado.

domingo, marzo 01, 2009

Lenguajes de computador: Preferencias en la lectura

El 25 de febrero, Mike Hendrickson analiza en O´Reilly las cifras de la editorial acerca de la venta de materiales dedicados a lenguajes de computación. ¿Cuánto tienen que ver estos números con su uso real? En cierto modo marcan tendencias, pero sólo si se lo observa en un período mediano de plazo, para diferenciar tendencias duraderas respecto de las "olas". Un caso claro es el del COBOL, con menos de mil libros vendidos. ¿Podríamos concluír que su uso es menor que el de c#, java o c++, con cifras variando entre los 170.000 y 270.000 libros?. En realidad, se trata del interés prestado a uno y otro. Lo que les interesa a quienes agregan conocimiento e investigan. Pero el uso real es una combinación de pragmatismo, conservadorismo e innovación, y la persistencia del COBOL da fuerza a los dos primeros elementos.

sábado, diciembre 09, 2006

Grace Hopper


En Whatis:
Grace Murray Hopper (1906-1992) was a pioneer of computer science. Hopper is generally credited with developments that led to COBOL, the programming language for business applications on which the world's largest corporations ran for more than a generation. After receiving her Ph.D. in mathematics at Yale, Hopper worked as an associate professor at Vassar College before joining the U.S. Naval Reserve in 1943. She went on to work as a researcher and mathematician at the Eckert-Mauchly Computer Corp. and the Sperry Corporation. Having retired from the Navy after World War II, she returned in 1967 to work at the Naval Data Automation Command. By the time of her death, Rear Admiral Grace Hopper had made many contributions to the field of software engineering and was arguably the world's most famous programmer.
At Eckerd-Mauchly, Hopper developed programs for the first large-scale digital computer, the Mark I. She also developed the first compiler, the A-O. She published the first paper on compilers in 1952. The successor to the the A-O, named FLOW-MATIC, lead to the development of the COBOL programming language. Until then programming was done using assembler language. Admiral Hopper's idea was to make a programming language closer to ordinary language so that it could be used by non-technical people, thus opening the practice of programming to the business world and freeing it from the rarefied environments of science and engineering.
Admiral Hopper remained in the Navy until 1986 and then worked as a senior consultant for DEC until shortly before her death. She was highly sought after as an enthusiastic and entertaining public speaker and educator of young programmers. Hopper was an early advocate of the use of shared code libraries and developed compiler verification software and compiler standards.
Hopper is also credited with applying the engineering term bug to computing when her team found a moth trapped in a relay of the Mark II computer. This particular "bug" was removed, taped to the log book, and now resides at the Smithsonian Institute.
Special note: Today is Grace's birthday, which is why we've featured this computing pioneer as the Word of the Day.
Curiosamente, estaba leyendo sobre Mrs Hopper, tratando de anotar sus datos para Wikipedia en castellano, que aún no tiene una entrada sobre ella, cuando Whatis la recordó en su día.
Quisiera resaltar dos o tres puntos sobre su trayectoria:
Pionera en dos pasos iniciales en los 40 y 50: la serie Mark, y el Univac; autora o coautora del primer compilador en Estados Unidos (el A-O mencionado), del segundo (B-O), y de sus derivaciones al desarrollo del COBOL. Autora de la conceptualización de un "lenguaje" de programación, capaz de expresar instrucciones en una forma entendible para las personas. Miembro fundador de CODASYL.
Y finalmente, hay otro aspecto que quisiera destacar: Mrs Hopper, siendo una matemática, decidió entrar a la fuerza naval de Estados Unidos en plena segunda guerra mundial, con una decisión suficientemente firme para vencer la falta de cumplimentación de requisitos del ingreso. Retirada al fin de la guerra, volvió a servir luego, retirándose con el grado de Comandante (Admiral). Rasgos que la definen tanto a ella como a su país.
Pueden leerse datos biográficos en Yale, Elizabeth Dickason, Saint Andrews, el Agnes Scott College, y el Women's International Center, entre otros. Existe un sitio dedicado a ella.

La fotografía, tomada de la Universidad de Saint Andrews, Escocia.