Re: Impress your children with Perl
by Anonymous Monk on May 21, 2024 at 13:31 UTC
|
tinyurl.com/spiraling-quine links the source
sure, right up until it doesn't anymore and I eval random source from the internet | [reply] |
Re: Impress your children with Perl
by marto (Cardinal) on May 21, 2024 at 09:52 UTC
|
"Every child in America, and several other countries, have access to an Apple Mac."
How?
| [reply] |
|
Thanks for the consideration, but you need to link to the code part only
https://perlmonks.org/?node_id=176043;displaytype=displaycode
And even that isn't save, i.e. immutable, as long as someone could log in and change the code.
In other words, the code would need to be posted anonymously.
And of course the code needs to be checked by us.
| [reply] |
|
How is a tinyurl safer than giving the explicit URL? At least with an explicit URL you immediately have a provenance. A tinyurl link could go anywhere.
While the code fiddling issues are concerning, they aren't altered by how the code is accessed so are irrelevant when considering replacing the tinyurl with an explicit URL.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
| [reply] |
|
|
|
|
>> "Every child in America, and several other countries, have access to an Apple Mac."
> How?
We are really RICH! Apple has a chunk of the education market. Research shows students prefer Apple devices. Apple carpet bombs the country with about 20,000,000 copies of Perl per year (now up to 40 million: Why does Apple Mac ship with TWO versions of Perl??). They are everywhere. Perl is EVERYWHERE!
| [reply] |
Re: Impress your children with Perl
by cavac (Prior) on May 22, 2024 at 04:10 UTC
|
Hmm, maybe you could write a wrapper that *somehow* gets "Terminal Velocity", a better Linux terminal graphics demo to run automagically. You know, to show off all the modern multimedia capabilities of your modern Apple device ;-)
BTW, if i had children, they wouldn't get walled garden devices, they's be using Linux.
| [reply] |
|
IOS is a very walled garden, which seems like a fine idea--for the kind of people who
fingerpaint on half a computer. macOS defaults to a similar situation with its apps and
app store, but once a terminal is open you are in a certified Unix 3 environment.
Homebrew and macports provide tons of unix and linux software. Lulu is a must for precise control of Apple telemetry. Run Linux in a window with UTM. IOS can run Linux too.
| [reply] |
|
IOS is a very walled garden, which seems like a fine idea--for the kind of people who fingerpaint on half a computer.
Hope you don't mind i steal that quote :-)
| [reply] |
|
Re: Impress your children with Perl
by Anonymous Monk on May 21, 2024 at 19:14 UTC
|
perl -MHTTP::Tiny -e 'eval HTTP::Tiny->new->get(shift)->{content}' htt
+ps://www.perlmonks.com/index.pl?displaytype=displaycode;abspart=1;nod
+e_id=574225;part=1
| [reply] [d/l] |
|
zsh: no matches found: https://www.perlmonks.com/index.pl?displaytype=
+displaycode
I'm not sure this would impress my children. Maybe because we're not in the US?
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [d/l] [select] |
|
perl -MHTTP::Tiny -e 'eval HTTP::Tiny->new->get(shift)->{content}' htt
+ps://www.perlmonks.com/index.pl\?displaytype\=displaycode\;abspart\=1
+\;node_id\=574225\;part\=1
| [reply] [d/l] |
|
|
|
| [reply] |
|
| [reply] |