perl

The Quest for Performance Part II : Perl vs Python

The Quest for Performance Part II : Perl vs Python

Having run a toy performance example, we will now digress somewhat and contrast the performance against a few Python implementations. First let's set up the stage for the calculations, and provide commandline capabilities to the Python script. import argparse import time import math import numpy as np import os from numba import njit from joblib import Parallel, delayed parser = argparse.ArgumentParser() parser.add_argument("--workers", type=int, default=8) parser.add_argument("--arraysize", type=int, default=100_000_000) args = parser.parse_args() # Set the number of threads to 1 for different libraries print("=" * 80) print( f"nStarting the benchmark for {args.arraysize} elements " f"using {args.workers} threads/workersn" ) # Generate the data…
Read More
Migrating from MySQL to PostgreSQL

Migrating from MySQL to PostgreSQL

Migrating a database from MySQL to Postgres is a challenging process. While MySQL and Postgres do a similar job, there are some fundamental differences between them and those differences can create issues that need addressing for the migration to be successful. Where to start? Pg Loader is a tool that can be used to move your data to PostgreSQL, however, it's not perfect, but can work well in some cases. It's worth looking at to see if it's the direction you want to go. Another approach to take is to create custom scripts. Custom scripts offer greater flexibility and scope…
Read More
Perl Weekly #671 – In-person and online events

Perl Weekly #671 – In-person and online events

Originally published at Perl Weekly 671 Hi there! Last week I included an entry about the Getting started with Docker for Perl developers workshop I am going to run on June 13. This is part of a series of free virtual workshops I started to offer via the Code Mavens Meetup group. If things go well I'll run workshops for 3 languages: Perl, Python, and Rust and several related technologies. I've already schedule 3 events for Rust, 2 for Python, and 1 for Perl. Now, to plan ahead, I scheduled another Perl event: Continuous Integration (CI): GitHub Actions for Perl…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.