Skip to content

Instantly share code, notes, and snippets.

View tbrowder's full-sized avatar

Tom Browder tbrowder

  • Retired from: USAF and ManTech International Corporation
  • Gulf Breeze, Florida 32561 USA
  • 07:05 (UTC -05:00)
View GitHub Profile
@tbrowder
tbrowder / README.md
Created August 27, 2023 22:06
Rakudo-pkg issues

Issues encountered:

Documentation

Execution

@tbrowder
tbrowder / make-pdf.raku
Created March 20, 2023 00:12
pdf-lite-prod
#!/bin/env raku
use PDF::Lite;
use PDF::Font::Loader;
use lib "./lib";
use Subs;
my enum Paper <Letter A4>;
my $debug = 0;
@tbrowder
tbrowder / show-unichars.raku
Created March 23, 2020 01:33
show-unichars.raku
#!/usr/bin/env raku
my $ucd-ver = '10.0'; # use same as rakudo
my $ucd-dir = "./UCD.v{$ucd-ver}";
my $ucd = 'UnicodeData.txt';
my $fi = "$ucd-dir/$ucd";
my $fo = 'space-chars.list';
my $fh = open $fo, :w;
my @v;
Pseudo code for setting a domain's host records via its registrar's API:
-----------------------------------------------------------------------
=== Given three physical servers:
host servers' FQDN, IPv4, and role:
----------------------------------
host2.mydom.net - 2.2.2.1 - web server
host4.mydom.net - 4.4.4.1 - backup mail server
host6.mydom.net - 6.6.6.1 - primary mail server and
@tbrowder
tbrowder / test.md
Last active December 4, 2019 23:43

a header

a para

another para

@tbrowder
tbrowder / damian-conway-pod-config-values.md
Created August 10, 2019 16:17
Damian Conway view on pod configuration values

The following text is a verbatime quote from an e-mail received from Damian Conway in response to my asking him for his view on legitimate values for pod configuration keys:

My intention was always that the meaning of adverbials in Perl 6 Pod
should be exactly the same as everywhere else in Perl 6. Hence:

:a{}              ---> 'a' => %empty-hash
:b()              ---> 'b' => ()
:c('') ---&gt; 'c' =&gt; ''

Proposal for Rakudo NQP reorganization for Pod

This is a proposal for reorganizing some of the current Rakudo NQP code in order to ease maintenance by separating, to the extent possible, grammar and actions pod-only code handling from the rest of the code. The proposal is an interim step toward a future step of a separate slang (sublang) for pod.

The current organization of pertinent parts of the code in the Rakudo repo directory src/Perl6/ looks like this

$ ls -1
Actions.nqp
Grammar.nqp
@tbrowder
tbrowder / assertion-example.txt
Last active October 4, 2018 11:30
grammar assertions
# code fragment in rakudo's src/Perl6/Grammar.nqp
token numbered-alias { '#' }
my $*USE-HASH-MARK := 1; # default, means we're free to extract the first '#' in a pod block's data
# inside a pod block, e.g., abbreviated, paragraph, or delimited
# following the configuration, if any
{
@tbrowder
tbrowder / fails.txt
Created September 13, 2018 21:31
spectest failures
/usr/bin/perl tools/build/check-nqp-version.pl /usr/local/people/tbrowde/mydata/tbrowde-home-bzr/perl6/perl6-repo-forks/rakudo/install/bin/nqp-m
rm -f -- perl6
cp -- perl6-m perl6
chmod -- 755 perl6
/usr/bin/perl t/harness5 --fudge --moar --keep-exit-code --verbosity=1 t/spec/S32-list/seq.t
t/spec/S32-list/seq.rakudo.moar ..
1..41
ok 1 - seq => array works 1
ok 2 - We didn't flatten the RHS because it's no single argument
ok 3 - Seq stayed intact
@tbrowder
tbrowder / gram.txt
Last active September 13, 2018 11:20
Modernize grammar syntax
There are several instances of some old regex syntax in the current rakudo grammar.
From a brief answer by @timotimo, I'm assuming those instances can be changed to:
<tok>**1 [1 use; require one instance of the token?; change to =>] <tok>
<tok>**0..1 [17 uses; require none or one?; change to =>] <tok>?