Uncategorized

From Perl to Rust

Posted on June 25, 2021. Filed under: Uncategorized | Tags: , , |

From Perl to Rust Many introductions to Rust already exist. Most of them are aimed at C++ programmers. That makes sense, but lots of folks are coming to Rust from other languages now. My current day job is mostly Perl. It occurred to me that an introduction to Rust aimed at people who already know […]

Read Full Post | Make a Comment ( Comments Off on From Perl to Rust )

PEGs and the Structure of Languages

Posted on May 30, 2021. Filed under: Uncategorized | Tags: , , , , |

PEGs and the Structure of Languages After spending a long time digging through different approaches to [parsing], […] Parsing Expression Grammars became my favorite, and allowed me to make my own programming language. This post will explain what Parsing Expression Grammars (PEGs) are, and a bit of background on the problem they solve. There are […]

Read Full Post | Make a Comment ( Comments Off on PEGs and the Structure of Languages )

Performance optimizations for the shell prompt

Posted on May 27, 2021. Filed under: Uncategorized | Tags: , , , , , , , |

Performance optimizations for the shell prompt There is a lot of useful information that can be shown in a shell prompt, like the current state of a git repository, information about background jobs, or information about the last executed commands. But each of those could have the potential to make the prompt feel slow. We […]

Read Full Post | Make a Comment ( Comments Off on Performance optimizations for the shell prompt )

Distar – A CPAN Distribution Author Tool

Posted on March 31, 2021. Filed under: Uncategorized | Tags: , , , , , , , , |

Distar – A CPAN Distribution Author Tool Not all authors agree with the trade-offs made by tools like Dist::Zilla. Matt S Trout wanted an author tool, but started from a different perspective. What needs to be added on top of what ExtUtils::MakeMaker provides to make it a viable author tool? The result of this thought […]

Read Full Post | Make a Comment ( Comments Off on Distar – A CPAN Distribution Author Tool )

Building a microservice in Perl

Posted on February 28, 2021. Filed under: Uncategorized | Tags: , , , , , , , , , |

A microservice can be thought of as the distributed computing implementation of the Unix philosophy of “Do one thing and do it well.” Usually modeled around specific business domains, a well-designed set of microservices each have their own lifecycle and communicate with each other and with consuming applications via technology-agnostic protocols like HTTP. A series […]

Read Full Post | Make a Comment ( Comments Off on Building a microservice in Perl )

Writing a Perl Core Feature

Posted on February 1, 2021. Filed under: Uncategorized | Tags: , |

Writing a Perl Core Feature An in-depth examination of the implementation of an operator (isa) added to perl CORE. A series of 10 11 posts (not including this intro, apparently): feature.pm warnings.pm Keywords Opcodes Lexer Parser Support functions Interpreter internals Tests Documentation Core modules

Read Full Post | Make a Comment ( Comments Off on Writing a Perl Core Feature )

Permutations with Heap’s Algorithm

Posted on January 30, 2021. Filed under: Uncategorized | Tags: , , , , |

Permutations with Heap’s Algorithm The good thing with the current version of the Wikipedia page (as of this writing) is the pseudo-code for an iterative (i.e. non-recursive) version of the algorithm. The following is taken from there, without the comments and with variable names that are a bit more readable in my opinion… There’s a […]

Read Full Post | Make a Comment ( Comments Off on Permutations with Heap’s Algorithm )

QSCM – A Smooth Blend of Scheme and C

Posted on January 22, 2021. Filed under: Uncategorized | Tags: , , , |

QSCM – A Smooth Blend of Scheme and C … I became interested in compilers, and more specifically bootstrapped compilers. These compilers are able to ingest their own source code and compile themselves. This page describes my first attempt at writing such a compiler.

Read Full Post | Make a Comment ( Comments Off on QSCM – A Smooth Blend of Scheme and C )

SOLID dumbed down

Posted on January 15, 2021. Filed under: Uncategorized | Tags: , , , |

Extracted from This xkcd comic speaks on how some things are deceptively hard to program. What are some other examples of this? posted to r/learnprogramming Single-responsibility principle – A class should only have a single responsibility, that is, only changes to one part of the software’s specification should be able to affect the specification of […]

Read Full Post | Make a Comment ( Comments Off on SOLID dumbed down )

mal – Make a Lisp

Posted on December 11, 2020. Filed under: Uncategorized | Tags: , |

mal – Make a Lisp Learn Lisp by creating a Lisp Interpreter The project gamifies the writing of a Lisp interpreter. Users have submitted implementations in ~80 different languages (including make and bash).

Read Full Post | Make a Comment ( Comments Off on mal – Make a Lisp )

« Previous Entries

Liked it here?
Why not try sites on the blogroll...