Skip to main content

Perl for the Web: Mojolicious 8.0 Released

Far gone are the days when you wrote Perl for the web in just CGI. Dancer, Catalyst and Mojolicious are the modern ways of going about it, with Mojo's version 8.0, code-named "Supervillain", being released just last week.
Each framework has its own distinct advantages, with Dancer being considered the most lightweight and with the lowest entry barrier; and Catalyst being considered the most heavyweight and with a steep learning curve. Mojo floats somewhere in the middle, its own strongest point being its claim to be a "Real time Web framework" due to its Websockets and non-blocking/async capabilities provided out of the box. With that said, let's discover what Mojo's newest version has to offer.

The most outstanding feature, given that Mojo is based on an Event loop à la NodeJS, is the introduction of the "Mojo::Promise" module, a Perl implementation of Promises that simplifies and enhances the asynchronous operations callback mechanisms in place. Also there is a major change in the Core's process model in that worker processes are now able to host any number of subprocesses in order to speed up the execution of slow prolonged operations.

Comments

Popular posts from this blog

Spatial Data Management For GIS and Data Scientists

  Videos of the lectures taught in Fall 2023 at the University of Tennessee are now available as a YouTube playlist. They provide a complete overview of the concepts of GeoSpatial science using Google Earth Engine, PostgresSQL GIS , DuckDB, Python and SQL. https://www.i-programmer.info/news/145-mapping-a-gis/16772-spatial-data-management-for-gis-and-data-scientists.html