Earlier quoted context omitted.
p.s. This is fun. So what constitutes a Brutalist programming language? It should be something that: - Exposes the construction materials - Implies mass and permanence - Is usually institutional, e.g. libraries, government buildings, public housing. Only rarely shopping centres or company head offices (which were usually done in the "International" style when Brutalism was a thing). What fits that bill? How about SQL…
MUMPS
Perl, the first postmodern computer language (1999)
161–170 of 225 posts
Re: Perl, the first postmodern computer language (1999)
#162Earlier quoted context omitted.
It's easy; PHP is/was: Whilst the equivalent Perl at the time would be: #!/usr/local/bin/perl print "Content-Type: text/html\r\n\r\n"; print " "; print "Hello world"; print " "; or possibly... #!/usr/local/bin/perl use strict; use warnings; use CGI; my $q = CGI->new; print $q->header('text/html'); print $q->start_html(); print "Hello world"; print $q->end_html(); ...if you were being a bit more more fancy. In other w…
With your first example, there was no easy path to compatibly handling form requests. Web browsers really sucked back then. As I understand it, PHP became popular before CGI.pm was ready.
Re: Perl, the first postmodern computer language (1999)
#163Earlier quoted context omitted.
It's easy; PHP is/was: Whilst the equivalent Perl at the time would be: #!/usr/local/bin/perl print "Content-Type: text/html\r\n\r\n"; print " "; print "Hello world"; print " "; or possibly... #!/usr/local/bin/perl use strict; use warnings; use CGI; my $q = CGI->new; print $q->header('text/html'); print $q->start_html(); print "Hello world"; print $q->end_html(); ...if you were being a bit more more fancy. In other w…
That was certainly part of the convenience out of the box. But you could have done something similar with mod_perl since it had filters that could act on every page. Then embperl started to gain popularity some time in 1996, which was decidedly even more like a templating engine, and after that came Mason. PHP really exploded in popularity when web hosting took off. It had a safe mode that made it possible to for sev…
Re: Perl, the first postmodern computer language (1999)
#164Earlier quoted context omitted.
It's easy; PHP is/was: Whilst the equivalent Perl at the time would be: #!/usr/local/bin/perl print "Content-Type: text/html\r\n\r\n"; print " "; print "Hello world"; print " "; or possibly... #!/usr/local/bin/perl use strict; use warnings; use CGI; my $q = CGI->new; print $q->header('text/html'); print $q->start_html(); print "Hello world"; print $q->end_html(); ...if you were being a bit more more fancy. In other w…
>> In other words, there was no standard templating. I am not sure how much of a standard it was, but Perl Mason was a superb web site templating system. Amazon and many other websites used it for years because it was flexible, high performance, and had fewer security problems compared to PHP. http://www.masonhq.com/sites https://masonbook.houseabsolute.com/book/
Re: Perl, the first postmodern computer language (1999)
#165Earlier quoted context omitted.
>> In other words, there was no standard templating. I am not sure how much of a standard it was, but Perl Mason was a superb web site templating system. Amazon and many other websites used it for years because it was flexible, high performance, and had fewer security problems compared to PHP. http://www.masonhq.com/sites https://masonbook.houseabsolute.com/book/
I was about to mention HTML::Mason, which was superior to many other templating solutions back then. The biggest problem for Perl was that PHP was almost built for the web, while Perl was "just a normal programming language." I wonder where Perl would have been if there had been a packaged and easy to install version of Apache with Perl, mod_perl, HTML::Mason etc. pre-installed in some way in late 90s.
Re: Perl, the first postmodern computer language (1999)
#166Earlier quoted context omitted.
It's easy; PHP is/was: Whilst the equivalent Perl at the time would be: #!/usr/local/bin/perl print "Content-Type: text/html\r\n\r\n"; print " "; print "Hello world"; print " "; or possibly... #!/usr/local/bin/perl use strict; use warnings; use CGI; my $q = CGI->new; print $q->header('text/html'); print $q->start_html(); print "Hello world"; print $q->end_html(); ...if you were being a bit more more fancy. In other w…
>> In other words, there was no standard templating. I am not sure how much of a standard it was, but Perl Mason was a superb web site templating system. Amazon and many other websites used it for years because it was flexible, high performance, and had fewer security problems compared to PHP. http://www.masonhq.com/sites https://masonbook.houseabsolute.com/book/
The big thing for PHP was how easy it was to go from "I've got a static HTML document that looks like what I want!" to "I've just added a tiny bit of dynamic content by sprinkling in a special tag!" on the majority of unix-based hosts. Deployment was uploading via FTP, just like it was with HTML. There's just so little conceptual distance or friction between static HTML and dynamic document/app, the pit of success is right there to fall into (granted, the peak of further success has some rocky roads out of that pit, but by then you've got momentum!).
On commodity hosting, Perl got typecast as a CGI tool instead. Which had its own power (CGI is kinda the OG serverless)... but not as easy a jumping off spot for anybody who was doing HTML.
Re: Perl, the first postmodern computer language (1999)
#167Re: Perl, the first postmodern computer language (1999)
#168I love Perl. I use almost none of its more esoteric features, and just write "classic procedural" code, mostly using command-line utilities instead of third-party modules for anything I don't want to write myself (mainly cryptography), and I am so fucking happy not having to deal with breaking changes in my language, a rare quality these days. I used a machine with a 9-year-old distro on it for a few months, and all…
Yeah, I agree with you. For fun I built Perl 1 a couple years ago and was amazed at how similar it was to Perl 5. In fact most of the test suite from Perl 1 runs unmodified on Perl 5. The subroutine calling syntax was different (it used `do xxx();` I think) so those tests fail. But unfortunately, some Perl devs in recent years keep thinking that what they need to do is break stuff to "modernize". They keep eyeing goa…
Isn't it the whole point of Raku (previously Perl 6)?
Re: Perl, the first postmodern computer language (1999)
#169I love Perl. I use almost none of its more esoteric features, and just write "classic procedural" code, mostly using command-line utilities instead of third-party modules for anything I don't want to write myself (mainly cryptography), and I am so fucking happy not having to deal with breaking changes in my language, a rare quality these days. I used a machine with a 9-year-old distro on it for a few months, and all…
Curious - is there a reason to use Perl (Wall's latest version, 5 or whatever) in 2022 if one has no familiarity with the language? What would be the major advantage of using Perl over its closest analogues, some bastardization of Bash and Python?
Re: Perl, the first postmodern computer language (1999)
#170Modernism: "Less is more"—Mies van der Rohe Postmodernism: "Less is a bore"—Robert Venturi ————— Guided by these famous quotes, if I were to call a programming language a "Modernist" language, I'd think of something that prizes elegance. It can't just be a small language, it has to be a small language with a few features powerful enough to actually do more. I would think of languages like Scheme or Smalltalk or C as…
may i submit https://metacpan.org/pod/Acme::Bleach