Warning: Undefined array key "rss_show_deleted" in /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 54
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 55
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 56
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/inc/httputils.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/inc/httputils.php on line 33 wi12.unix7.org - mojo
https://w12.unix7.org/
Wed, 05 Aug 2026 03:48:13 +0000FeedCreator 1.8https://w12.unix7.org/_media/wiki/dokuwiki.svgwi12.unix7.org
https://w12.unix7.org/
Sample Mojo application
https://w12.unix7.org/mojo/bird
perl
Sample Mojo application
#!@PERL@
#------------
#--- CRON ---
#------------
package Cron;
use strict;
use warnings;
sub new {
my ($class, %args) = @_;
my $self = {};
bless $self, $class;
return $self;
}
sub ping {
my $self = shift;
my $res = "Pong!";
$res;
}
1;
#----------
#--- DB ---
#----------
package DB;
use strict;
use warnings;
use DBI;
sub new {
my ($class, %args) = @_;
my $self = {
hostname => $args{hostname},
usern…anonymous@undisclosed.example.com (Anonymous)Sat, 27 Nov 2021 13:26:11 +0000Minimal Mojo web application
https://w12.unix7.org/mojo/mojo-app-tmpl
perl
Minimal Mojo web application
#!/usr/bin/env perl
#-------------
#--- MODEL ---
#-------------
package PGapp::PGmodel;
use Data::Dumper;
use DBI;
use strict;
use warnings;
sub new {
my ($class, $app, $pghost, $username, $password) = @_;
my $self = {
app => $app,
pghost => $pghost,
dsn => "dbi:Pg:dbname=postgres;host=$pghost",
username => $username,
password => $password,
};
bless $self, $class;
return $self;
}
sub dsn { re…anonymous@undisclosed.example.com (Anonymous)Sat, 27 Nov 2021 13:26:11 +0000Mojolicouis vs Sinatra + Thin
https://w12.unix7.org/mojo/mojo-vs-sinatra-thin
perl ruby unix
Mojolicouis vs Sinatra + Thin
I use the same login page code.
Summary: 570req per sec Mojo, 312req per sec Sinatra+Thin.
I will think... =)
Mojo
# ab -c 10 -n1000 http://localhost:8082/login
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Server Software: Mojolicious
Server Hostname: localhost
Server Port: …anonymous@undisclosed.example.com (Anonymous)Sat, 27 Nov 2021 13:26:11 +0000Mojo packages for old Linux
https://w12.unix7.org/mojo/start
perl
Mojo packages for old Linux
Mojo debian jessi package
*
*
*
*
*
*
Mojo ubuntu precise package
*
*
*
Preinstall order
Debian jessy and after
apt-get -y install libjs-prettify
apt-get -y install libdbd-pg-perl
apt-get -y install libdbi-perl
apt-get -y install libapache-htpasswd-perl
apt-get -y install libfilesys-df-perl
apt-get -y install libev-perl
apt-get -y install libio-socket-ip-perlanonymous@undisclosed.example.com (Anonymous)Sat, 27 Nov 2021 13:26:11 +0000