do it yourself Activities


Rakudo on Heroku

This month, all I have is a small off topic announcement. I've authored buildpack of Rakudo for Heroku. I was unaware of the beta of Heroku Docker and built the binaries with Bash on Ubuntu on Windows. Leaving some system specific dependencies based modules aside, most generally just work, and I've added zef to the base package.

Also I've added HTTP::Server::Async to bind with Heroku's socket within the 60 s time limit. As an alternative to using the buildpack, one may copy the lines to fetch and extract archive hosted with gitlab to source repository's ".profile" script. The buildpack source code is hosted at GitHub The startup executable is left to be specified with Procfile.

Also this short articles collection now has new home. Until now, each month's entry has been made with just new headed prepending other entries. As we continue with the template engine example, the same shall be used to improve the experience and look, over here.

Topological Sort

Before exploring the depth of template engines code, we must take a detour to make sure we are on the same page while building PERL 6 programs. Topological sort, eg. working with makefiles using awk, for some reason seems to fit the task at hand.

There's an example at Rosetta Code. Let's work on it now, shall we?

Template Engines

Template engines are data driven language processors. They filter data with accordance to template for rules to be applied. These rules are specified using template languages. Eg. printf format strings, code snippets, mail merge, and XSLT.

Let's use sed as an illustration. The s substitute by search and replace command syntax is s/regexp/replacement/ where regexp stands for regular expression and "replacement", here, is a simple template for output, either literal text, or a format string containing the characters & for "entire match" or the special escape sequences \1 through \9 for the nth sub-expression.

PERL has always led text processing functionality among languages. Most other languages still come with PERL compatible regular expressions implementations. PERL6 has pushed the text processing envelope even further with Parsing Expression Grammars. This article is from a static site. Static site generators consume template engines. So let's continue exploring them further alongwith PERL6, and their languages such as XSLT, even as I continue evolving this site. (To be continued..)

Personal Domain

Upon completing studies, considering starting packages from campus recruitment and eliminating choices, I had to return to my well settled family. Upon returning, local work was either: unaligned with my qualifications and heavily demanding, or: I'd be overqualified and get suggestions to try at other cities.

Having vague idea of which direction my career ought to head, I decided to self bootstrap. This led to looking for ways todo brand building. For online presence .ind.in was the closest top level domain as I was unable to register .name with my surname. Then doing business as sole proprietor led to getting .firm.in domain more suited to aligning with intended trademark.

Since I got such domain, as an individual, personal use with subdomain appealed more than duplicating overlapping services setup with separate domains. Learnings, by online market positioning business offerings, appeal to be worth tracking. This is early observation for me, although subject matter experts have already been publishing entire tutorial series titled CMS, SEO, etc. since long. Here you can find concise diy articles growing with my exploring this subject. While I continue to grow the business offerings geared toward market success, you may support financially my growing this collection as well, through Gratipay.