Hacker Newsnew | past | comments | ask | show | jobs | submit | gfldex's commentslogin

I was under the impression that the whole reason of blackmaling is funding. No?


> What good is perl in 2024.

Making Debian possible. Allegedly, the German banking system is held together by Perl scripts. Which is good. Perl got 0 bitrot. And you don't want your bank account to rot, do you?


leftpad not found. Your fortune has been deleted.


    $ cat ~/.signature
    --

    raku -e 'try { not :2(.fear) } and do not die'
    perl -e 'do not $fear and do not die'
    raku -e 'say „The Road to Wisdom“; $*ERR and $*ERR and $*ERR but Less and Less and Less'


Scroll down in the weekly until you hit the Mastatdon links at: https://rakudoweekly.blog/2023/12/04/2023-49-venting-this-ad...


For the placenta to be able to sustain a fetus, the oxygen concentration in air must not drop below 17% (for humans that have adepted to the Andes and Himalayas). That is way higher then the 13% we need to breath. Also, almost all forrests are oxygen neutral. Only in the high north plant material can not rot as fast as plants can produce it. So the whole article is full of ... less then ideal assumptions.


I've never seen the specific "17%" figure before, do you have any links to studies about that? I'd love to read them!


As a sister language of Perl, Raku can do the same trick.

    constant &s = (now.DateTime.day-of-week == 7) ?? sub () {} !! sub (|) {};
    constant c = s(42);
Constants are evaluated at compile time. Here we define a sub that takes no argument or any number of arguments depending on the day of the week (In Raku we start at 1 for monday to avoid ending the universe by deviding by 0). While binding the return value of s(42) to a constant we force execution of that sub at compile time. Thusly, we create a program that can not be executed when compiled on sundays. This is reasonalbe, because by heavenly mandate we are bound to rest on that day.

Modules are precompiled, programs are not (yet). So to make this really depend on the day of compilation we have to put it into a module (for now).


The best dollar bills are printed in North Korea. Forgery (but not fraut) becomes the default with crypto. You can create money without a government charter. However, it is to expensive for the forger to make a profit.

With fiat book money any payment processor (banks, CC, paypal) can create dept and thus money. We have to hold a gun against their heads and never look away to make sure that they don't cheat. Crypto solves that problem.

Please note, that you asked for solution. Crypto is creating way more problems then it solves. The VISA Network is processing 2G transactions per day. With crypto you can be happy if you get beyond 100k per day. There is better reasons to burn fossil fuel, etc. pp.


alternative alternative:

    do *² for 1..5;


I gave this a shot in Perl 6 as can be found at https://gist.github.com/8a58c3af3520e127fe7852d834e5e0fa

I build a very simple^1 non-balancing binary tree and skip any insertation that would reproduce a duplication. Since the tree is not balanced, the order of insertation is preserved. Search time goes up without a good balance but the tree will have the same amount of nodes than unique elements in the original array. Each element is 6 machine words plus some gc overhead. If it's faster or slower then a hash table depends on the ratio between elements in the array and the number of duplicates.

1) Perl 6 got a general compare operator that works well with a wide range of types. So I don't have to care about types at all. If I would have to care I could monkeytype the operator candidates for custom types into the language.


Default &transform function should be *.fc

The one-liner solution is: @data.unique(as => &fc)


About a decade ago many educators where looking for a language to teach programming to utter noobs because governments where scared by the year 2000 bug and asked them to produce more programmers (the latter part is a lie but it sounds nice :) many of them picked Python. Educators play a big role these days when it comes to a first language. Most folk who commented here likely went to school when teachers didn't have computers and didn't even think about teaching programming -- that was considered a hobby. So far I know only two educators who want to teach programming with Perl 6.

It takes years for a language to become used by a reasonably large group to make a difference. Given you come from Python you probably know that the first release happened in 1991. Do you know anyone who used that language before 2000? So Perl 6 didn't take off yet because less then a year since the initial release has happened.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: