shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

277
active users

#rakulang

1 post1 participant0 posts today
Replied to Profoundly Nerdy

@profoundlynerdy just because something has types doesn’t make it Haskell-like. Haskell’s type system is in the family of Lambda Calculii (the “Lambda Cube”) which is called “System-F”.

I don’t know much about Raku, but it seems to me to me to be a bit more similar to TypeScript. And what differentiates TypeScript from other languages: it takes a horrible programming language like JavaScript and makes it less bad by giving it a type system, likewise Raku makes Perl less bad in the exact same way. (Sorry, I’m not trying to be impolite, but JavaScript and Perl are objectively, truly awful, horrible programming languages.)

So I see both Raku and TypeScript only being useful to a company buried in the technical debt of a hugely profitable production application that was very unwisely written in a dynamically typed language (Perl or JavaScript), which then unfortunately grew to millions of lines of code, and now it can’t be maintained by anyone, and it could never possibly be rewritten from the ground-up in a good programming language like Haskell for any reasonable sum of money. So Raku and TypeScript both offer a half-measure solution to that problem: make the maintenance of horrible computer code a bit easier with a type system.

Haskell was never intended as a fix for horrible code, it took a really good experimental programming language called Miranda and turned it into something that you can use to do real, practical software engineering, and it does it better than any other language ever invented. You write a system in Haskell because you know up front that you want it to be stable and maintained in a cost-effective manner for decades.

Zig is not similar to Raku or Haskell. It is more analogous to what Scala does for Java. Java is already statically typed, but Scala’s type system is better, and it’s runtime is fully compatible with Java. Likewise, Zig is fully compatible with the C language runtime, but provides a slightly different, slightly better static type checking system than the C type system. Zig also solves a bunch of other problems that C has by providing it with modern features like namespaces and modules, which makes it much easier to use than C. Zig is the perfect way to replace old C code with something more modern, but only if you don’t need it to be as rigorously correct as Rust. I think Zig would be a nice language to use to replace non-safety-critical front-end libraries like Gtk, or maybe for things like game engines.

Why is #Rakulang seemingly so underappreciated?

#Ziglang and #Haskell seem to outpace Raku's adoption curve. I say that as a fan of all three languages, I'm not casting shade. One is new and the other is niche, but they both seem to me good comparisons to Raku. Just look at the sizes of each language's subreddit to get a sense of respective community size.

If those are bad comparisons, I'm open to alternatives and polite discussion.

If you really must have plain #Perl #OOP methods with the same name that differ because of their argument signatures (also somewhat analogous to C++ function overloading), you can use Class::MultiMethods: metacpan.org/pod/Class::Multim

More from @manwar (including native #RakuLang multimethods) here: gist.github.com/manwar/db11c8e

#programming #coding #SoftwareDevelopment fosstodon.org/@manwar/11407695

MetaCPANClass::MultimethodsSupport multimethods and function overloading in Perl

@baboond #Refactoring is exactly the opposite of “abandoning the legacy project and starting anew.”

Do you know what usually happens when a company or project *actually* embarks on the latter? Failure and eclipse by the competition.

This thread started with @adanskana asking if he should learn #Perl: mastodon.social/@adanskana/112

The grand rewrite that was #Perl6 (now #RakuLang) was a decade-plus slow suicide attempt by the Perl community.

MastodonAda Stevenson (@adanskana@mastodon.social)should i learn #perl? would that be crazy??? #programming [ ] but of course! The Camel! The Monks! [ ] you're never getting employed, are you? [ ] learn perl 6!!!!!!
Replied in thread

@benjamineskola There is a very new OOP system: ovid.github.io/articles/the-fu which looks good but I haven't actually used it myself.

I work Cybersecurity, I mostly use #Perl for quick one-off scans when someone asks me, "are we vulnerable to XYZ?" when XYZ has a (mis)configuration element to it.

A lot of my hobby code is using #Rakulang these days as I really enjoy the language's mutability.

ovid.github.ioThe Future of PerlWith the new Corinna object system coming to Perl, many people are wondering what the future looks like for the language.

I started programming in 1982. Though I'm known as a #Perl developer, I tried to remember every other language I've programmed in.

#BASIC, #C, 6809 Assembler, #Javascript, VBScript (and its many variants), #Java, #Prolog, #RakuLang, #Python, #Kotlin, #COBOL, Easytrieve, and probably a few others.

I wish I had gotten a job in Prolog, primarily because I loved what I could create with it. I don't love programming; I love creating.

What are your languages?

#Introduction

Programmer since the late #80s.
Basic, Pascal, C++, Java, Prolog, Perl, Bash.

Modern times don't suit me, that's why I try #oldbytes. It looks like I would be among nice guys here and I think I am one too.

I'm here for social interaction on #programming. I have a sweet spot for #Perl and another one for #benchmarking.

After having used (and forgotten again) a dozen other languages I hope to finally integrate #Perl6 a.k.a. #RakuLang into my daily life.

I don't plan to pretend being an expert but will rather muse on unknown territory and appreciate feedback.