Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Pre-compiled Perl?

by choroba (Cardinal)
on Apr 05, 2017 at 12:55 UTC ( [id://1187104]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Pre-compiled Perl?
in thread Pre-compiled Perl?

> many BASIC dialects in the 80s already "tokenized" the source in a "parsing" phase.

On Commodore 116/16 and 64, you could even program directly in the tokens. ? was print , most others were just abbreviations like fO instead of for or oP instead of open . And when you byte-dumped the memory containing the program, it contained these instead of all the commands.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^6: Pre-compiled Perl?
by LanX (Saint) on Apr 05, 2017 at 14:34 UTC
    WOW!

    You know Commodore Basic was my first programming language° (on a CBM4000), and it was very surprising to find out later that other languages/Basic dialects didn't support ? for print.

    You somehow just solved a decades old miracle for me ... =D

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    PS: or I simply just forgot in the meantime ;-)

    footnotes

    °) though I actually had GFA_BASIC in mind when talking about tokenization

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1187104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found