News for hackers. Stuff that matters.

emilper

Assuming it is real artificial intelligence not "AI ®" it will use Perl 5, because of symbol table manipulation. Also it will want to engage with humans for amusement so machine code is out of the question :-).
Re:Why I use the D programming language for scripting on Monday July 31, 2023 @04:37AM (#36940092)
I have rewritten node.js code in D2 and it was shorter and clearer :-)
Re:Ruby 3.2.0 Is from Another Dimension on Monday January 09, 2023 @04:51PM (#34316693)
I use it, I am not "almost no one" :)
Re:Ruby 3.2.0 Is from Another Dimension on Monday January 09, 2023 @04:50PM (#34316686)
"are all written entirely in Ruby on Rails" ... then promptly rewritten in something else :) https://medium.com/airbnb-engineering/rearchitecting-airbnbs...
Re:New in Go 1.20: wrapping multiple errors on Monday December 12, 2022 @08:48AM (#33954558)
Dlang is a statically typed language that is more productive than most dynamic languages
Re:Save the planet Program in C, avoid Python, Perl on Friday November 19, 2021 @04:18PM (#29282631)
that is _not_ how you judge a _scripting_ language

it is trivial* to add C code to Perl, even when using XS, I guess it is as easy to do the same for Python

if you do heavy computations in pure Perl5 or pure Python you're doing it wrong by definition

*assuming you can write C

Re:Why Lisp? on Sunday November 14, 2021 @07:44AM (#29216885)
"modern" language teaching killed Latin

before that they were teaching it without any stress on grammar, mostly memorizing phrases and short sentences and learning how to use it

Re:I am stepping down from Perl Steering Council and Core on Tuesday April 13, 2021 @11:29AM (#26793597)
... why do you think Perl 5 stagnated for 20 years ?

There were like 10% performance improvements at each new release, a lot of work was done in modules which was by design Perl 5 having a small core and a lot of the features being implemented in modules ...

What feature exists in other languages (except for CPU types: int, float, char etc.) and does not exist in Perl 5 ?

Re:On the Decline of Perl – external factors on Thursday April 01, 2021 @04:10PM (#26665414)
"while the world moved on"

yet the world still does not have half the features Perl 5 already had for 20 years :)

... from scoping to support for every major programming paradigm

Re:Ask HN: How to rediscover the joy of programming? on Tuesday April 14, 2020 @12:10PM (#22867690)
that is floating point for you, not Perl
Re:The “No Code” Delusion on Wednesday January 15, 2020 @08:45AM (#22054029)
:) how is Perl out of style ? ... 20 years ago it had features the more enterpricey languages only got in the last few years
Re:Specification for the D Programming Language on Friday January 10, 2020 @04:49PM (#22015960)
the package ecosystem was like 10 times bigger in 2019 than it was in 2015 when I had my first look at D
Re:Perl is dying on Wednesday October 09, 2019 @06:22AM (#21201746)
How many stories were about BASH ? Everybody working on Linux is using BASH so it should have a very high score.
Re:Dwindling CPAN Releases on Wednesday August 14, 2019 @07:55AM (#20694544)
Perl5 does not have "sigils", BASH, BASIC and Perl 6 have sigils.

Perl 5 has dereference operators, which got called "sigils" by lazy documentation and book authors.

Re:Respect the Power of Perl on Tuesday April 09, 2019 @08:20AM (#19613833)
you are right, sed or awk are good and would do that nicely

The advantage of Perl is investing a little time in learing some (not all) Perl 5 (not Perl 3 or 4, those are only a bit better than BASH + sed + awk) allows you to do a lot more than you can with BASH + sed + awk.

Re:Perl 11 on Wednesday October 24, 2018 @06:01AM (#18291012)
"Global variables abound."

Must have been Perl 3 or 4.

In Perl 5 you have to work extra to make global variables, and they're not really pushed in the global scope, only have global visibility in their own namespace ... unless you work even more and export them by default when you write the module they're in.

Re:Larry Wall's Very Own Home Page on Wednesday October 10, 2018 @02:53AM (#18182569)
It was a force multiplier when comparing with C, C++ or BASH.

Perl 5 saved Perl from itself, too bad Perl 3/4 lovers kept writing Perl 3 years after 2000 until they saw the light and the truth and moved to Python.

Re:Larry Wall's Very Own Home Page on Wednesday October 10, 2018 @02:50AM (#18182558)
Perl 4 ... the good days :)

I guess require-ing files all over the code and using the global scope for everything and using globals or even a global hash and having functions read and write to that hash is something to be regretted. Not that C is much better.

I have maintained and ported Perl 3 and 4 to Perl 5, I must say the existence of PHP3 made sense after that :)

There was that trick using goto and exit to simulate functions that people writing Perl 3/4 loved. Was it done for performance reasons ?