one-liner wars n.
A game popular among hackers who code in
the language APL (see write-only language and line noi
and/or useful routine in one line of operators chosen from APL's
exceedingly hairy primitive set. A similar amusement was
practiced among TECO hackers and is now popular among
Perl aficionados.
Ken Iverson, the inventor of APL, has been credited with a
one-liner that, given a number N, produces a list of the
prime numbers from 1 to N inclusive. It looks like this:
(2 = 0 +.= T o.| T) / T <- iN
where `o' is the APL null character, the assignment arrow is a
single character, and `i' represents the APL iota.
Here's a Perl program that prints primes:
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'
A game popular among hackers who code in
the language APL (see write-only language and line noi
and/or useful routine in one line of operators chosen from APL's
exceedingly hairy primitive set. A similar amusement was
practiced among TECO hackers and is now popular among
Perl aficionados.
Ken Iverson, the inventor of APL, has been credited with a
one-liner that, given a number N, produces a list of the
prime numbers from 1 to N inclusive. It looks like this:
(2 = 0 +.= T o.| T) / T <- iN
where `o' is the APL null character, the assignment arrow is a
single character, and `i' represents the APL iota.
Here's a Perl program that prints primes:
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'
Related:
- one-liner wars: n. A game popular among hackers who code in the
language APL (see {write-only language} and {line noise}).
The objective is to see who can code the most interesting... - TECO /tee'koh/ n.,v. obs.
1. [originally an acronym for
`[paper] Tape Editor and COrrector';
later, `Text Editor and COrrector'] n. A text editor... - Perl /perl/ n.
[Practical Extraction and Report
Language,
a.k.a. Pathologically Eclectic Rubbish Lister] An ... - Perl: /perl/ [Practical Extraction and Report Language,
a.k.a Pathologically Eclectic Rubbish Lister] n... - write-only language: n. A language with syntax (or semantics)
sufficiently dense and bizarre that any routine of significant size
is automatically {write-only code}.
A sobriquet applied occasionally to C and often... - bit-paired keyboard n.,obs.
(alt. `bit-shift
keyboard') A non-standard keyboard layout that seems to have
originated with the Teletype ASR-33 and remained common for several
years on early computer equipment.
The ASR-33 was a mechanical device (see EOU), so... - write-only language n.
A language with syntax (or
semantics) sufficiently dense and bizarre that any routine of
significant size is automatically write-only code.
A sobriquet applied occasionally to C and often... - runes pl.n.
1. Anything that requires heavy wizardry
or black art to parse:
core dumps, JCL commands, APL, or code in a language... - MFTL /M-F-T-L/
[abbreviation: `My Favorite Toy Language']
1.
adj. Describes a talk on a programming language design...
