Rakudo Perl 6

Why aren't you using Perl 6?

rakudo.org/
perl6.org/
moarvm.org/

#perl6 #perl6-dev on Freenode

Attached: rakudo.png (317x300, 14.16K)

Other urls found in this thread:

youtube.com/watch?v=Nq2HkAYbG5o
rakudo.org/files/
github.com/rakudo/rakudo
github.com/Tyil/lonestar
nxadm.github.io/rakudo-pkg/
techbeacon.com/why-perl-6-game-thrones-programming-languages
youtube.com/watch?v=E_ho6McixV0
emilydamstra.com/news/please-enough-dead-butterflies/
github.com/perl6/mu/blob/aaa173d49c8ba681628739e96ed28fdb921211ec/misc/camelia.txt#L78-L80
ijneb.github.io/p6byexample/
swtch.com/~rsc/regexp/regexp1.html
act.perlconference.org/tpc-2018-glasgow/news/1568
archive.fo/O3t1m
twitter.com/NSFWRedditImage

grammar URL { rule TOP { '://' } token protocol { 'http'|'https'|'ftp'|'file' } rule address { '.''.' } ...}

grammars are hnnng

youtube.com/watch?v=Nq2HkAYbG5o

Because I seldom need to write 'write-only' code.

how is this used?

Because PyPy/Numba is faster than Perl.
Because Conda is better than CPAN.
Because Python 3 is better than Perl 6.
Because there are so many libraries.

Thank you for your valuable input.

It's a means of parsing, but more readable than regex. In this case you'd just do URL.parse("8ch.net/");

my $j = 1|2;if 3 == $j + 1 { say 'yes';}

Junctions/Superpositions of values are built-in

For all the reasons that were outlined the last time you made this zero effort thread, you retarded cocksucker.

perl 6 is godtier

1|2 == 3 though?

yes because it acts as two values, hence why it's called a junction

also don't forget that it's being added to one, so 1|2 + 1 = 2|3

hot

For people who want to install Rakudo (Rakudo is a Perl 6 compiler), here's a lot of ways:

rakudo.org/files/ - Rakudo Star includes some primary modules; this is the primary method of installation that most people use

OTHER OPTIONS
github.com/rakudo/rakudo - For building from scratch, you'll have to build Zef alongside it if you take this route
github.com/Tyil/lonestar - A bash script to install it for you (unofficial)
nxadm.github.io/rakudo-pkg/ - Precompiled rakudo packages

I thought that was the OR operator, how do you do binary OR in perl6?

I imagine it is, if you are already versed in the perl world. I doubt they'll attract many newer programmers tough, with the lure and effectiveness of python being what it is.

i use ruby because i want a girlfriend

Bugman, just use Python

Because there is no CPAN. When I go to modules.perl6.org all I see is


Seriously, why can't any other language beat perl5 package system? Why do they think it's a great idea to host packages at Microsoft (embrace, extend, and extinguish)?

...

Perl 6 is just a poor man's Lisp. The one good thing about it is how it handles Unicode.

A lot of Perl6 modules are hosted/mirrored on CPAN actually. But I agree, I'd rather us move away from GitHub altogether.

techbeacon.com/why-perl-6-game-thrones-programming-languages

God damn this is so confusing. Python and SDL have the same version conflicts too, yet they're aren't as big as requiring a whole different compiler.
Why is rakudo the only compiler out there?

Just understand that Perl6 and Perl5 are COMPLETELY different, but funded by the same money pool.

It's the only FULL-FEATURE compiler out there.

Can it be compiled into binaries?

It's tough attracting users for languages in general, unless you use some leddit tactic like rust did.

I can understand being upset about Python, but SDL is a library, a change in major version number signifies a break in backwards compatibility.

youtube.com/watch?v=E_ho6McixV0

That's nice, maybe I should look into Perl after all

Because perl 5 continues to steal the good ideas from perl 6. Also the perl community in general has been hijacked by trannies and sjws. no thanks do not want

Yeah, they can be really suitable for some things over normal regex, and much more readable.

Why is it though?
Why hasn't there been anyone besides Raduko been able to past the test suite?

There technically has.. but just like with other languages, one adoption takes precedence with time. All of the main people work on Rakudo (which can run on multiple VMs), really. There are other smaller implementations for people who REALLY want them.

Is raduko small and portable? I don't want to work on a VM.

Eh, it's similar to most modern languages. MoarVM is in the process of being further optimized these days.

gay

Sell me on this then. I'm a new programmer, going through the process of learning the most basic things about python. How learning perl6 instead of tons of other languages out there would benefit me, in your perspective?

python is dying. their bdfl is a tired faggot. once gov't funding for this shitty US Fed astroturfed language dries up, it'll die for real

You shouldn't learn it now. You could learn it later.
Perl is deliberately a lot of things that Python deliberately isn't. It's very implicit, it's weakly typed, it revels in having many different ways to accomplish simple tasks, its syntax is compact to the point of being opaque, it attempts to use context to infer what you mean. Python's grammar is LL(1), Perl 5's grammar is undecidable.
Python will hold you to a certain standard of good practice and readability. Perl will tempt you to hack something together that saves you a little typing now but will be a pain in the future.
Knowing both is better than knowing either one, if you have the wisdom to decide which one is appropriate, but it's better to only know Python than to only know Perl.
But while Python and Perl have different philosophies, they do fill approximately the same niche, so there are other languages it's more valuable to learn before Perl.

As a beginner you often worry that your code is ugly. You don't have that problem with Perl.

Attached: 4e2b6915b8bbe0ded8d78bd88f9474b70ec5f7d3.png (680x482, 76.22K)

This is actually true, MoarVM has some ways to go, but that's the same for any modern VM. The Perl6 language specification is beautiful in my eyes, and using it for general scripting makes me happy.

emilydamstra.com/news/please-enough-dead-butterflies/

Attached: oh no.png (1200x877, 93.91K)

Because I'm masculine and, therefore, not welcome:

Discussion Highlights=====================From: Larry WallDate: March 24, 2009 10:25Subject: Re: Logo considerations[...] I think there's a tendency togo way too abstract in most of these proposals. I want somethingwith gut appeal on the order of Tux. In particular I want a logofor Perl 6 that is: Fun Cool Cute Named Lively Punable Personal Concrete Symmetric Asymmetric Attractive Relational Metamorphic Decolorizable Shrinkable to textual icon Shrinkable to graphical iconIn addition, you can extend just about anything by attaching "P6"wings to it. I also take it as a given that we want to discouragemisogyny in our community. You of the masculine persuasion shouldconsider it an opportunity to show off your sensitive side. :)Hence, Camelia.Larry

Source:

github.com/perl6/mu/blob/aaa173d49c8ba681628739e96ed28fdb921211ec/misc/camelia.txt#L78-L80

fuck off

They're specifically wanting to de-maculineize men.

so what would be a good program to write in perl6? i've been wanting to create my own text editor for awhile now but have been thinking go/rust would be a better option. where does perl6 fit in?

If you are masculine then why are you acting like a woman?

Attached is a video of a real man being threatened.

Attached: you-have-no-power-here.webm (640x267, 424.86K)

What a cuck. He could have just said he wanted something cute and whimsical.

bump

text processing is good for perl6, general system scripting, backends for websites now

Since you've failed to actually say what wasn't masculine, I'm forced to assume that you're referring to the fact that I cited sources as being feminine.

so why exactly would it be bad for things like system programming?

It isn't, really. Some optimizations are still taking place within MoarVM, so some things are slow. This has been drastically improved in the last year or so, and is still being improved.

techbeacon.com/why-perl-6-game-thrones-programming-languages

JavaScript is faster than Python. By your own logic you should be using it.

Perl6 is relatively young, despite being planned for several times longer.

PDL is Perl5's scientific computing library (mainly), and something similar is being planned to be made in Perl6.

6.d is coming soon

because:
A) the regexes are slow as shit and have been for 10 years, so it's useless for processing text
B) they removed pack/unpack with no usable replacement, so it's useless for processing binary

if I wanted a language that's deaf and blind and a little slow in the head, I'd use visual basic

perl5 > perl6

/thread

Perl6 hasn't been out for 10 years. The first OFFICIAL release was in 2015, 3 years ago.

> 'perl6' gt 'perl5'True

Perl6 will be able to use GraalVM soon, alongside MoarVM+JVM

PERL 6 BY EXAMPLE
ijneb.github.io/p6byexample/

Python is compiled
JavaShit isn't

There are fundamental difference here faggot

What?

What?

Javascript and Python are only reference languages. They both have implantations that compile them, brainlet.

Python can be compiled
No one does that tho

Attached: koksal1.jpg (600x606, 42.98K)

Python's reference implementation is compiled to bytecode. It isn't very fast.
Popular Javascript implementations are JIT compiled, and are pretty fast.
A JIT compiler for Python does exist.
But these are implementation details. Working with either language doesn't involve a separate compilation step, unless you're transpiling ES6 to an earlier Javascript standard or something.

# Perl 6 has full unicode support, here's some notable options of Unicode in Perl 6 Operators:say 5 ÷ 2; # 2.5say 5 / 2;say 5 × 2; # 10say 5 * 2;say 5 ≤ 2; # Falsesay 5

# Not to mention all of the maths-y unicode symbols that work out-of-the-box# ∈ ∉ ∋ ∌ ⊂ ⊄ ⊃ ⊅ ⊆ ⊈ ⊇ ⊉ ≼ ≽ o ∘ ∩ ⊍ ⊖ ≠

Sold! But seriously, modern languages should support these symbols at least as an option.

Not necessarily. It makes sense for Perl to support them, but it wouldn't at all fit into Python's design to have a dozen interchangeable spellings of the exact same operator.
There's value in keeping a language small. It makes it easier to read other people's code.

Python isn't a good example, but I agree for some languages. With that being said, Perl6 is extremely comfy and expressive because of it

sub postfix:(Int $x where { $x >= 0 }) { [*] 1..$x };say 6!; # 720

# Slurpee Arguments - Flattens Items into Argument Listsub slurpee( |args ){ say args.perl}slurpee(, {e => 3}, 'e' => 'f' => 33) # \(("a", "b", "c", "d"), {:e(3)}, :e(:f(33)))

Fuck no. Why would you want to make it harder for people to work on each other's code?

It doesn't, really, if they use it properly.

That usually means not using it at all if the code may ever be read by another human being.
If I encountered ∈ for the first time, without already knowing it existed, I'd have to look it up just to make sure I understood it, even though I could guess from the mathematical meaning of the symbol. If I didn't already know the mathematical meaning, I would waste even more time. I also have to dedicate extra mental space to remember all of (elem), (cont), ∈, ∉, ∋ and ∌. Meanwhile, Python makes do with just the "in" operator (and the "not in" operator, technically, but that's intuitive and straightforward enough not to take up any extra mental space).
That's acceptable, if you're the only one who's going to work on that code. But I can't think of a proper use in code someone else needs to look at, other than extremely niche cases like executable pseudo-code for a mathematical audience that doesn't know Perl.

Part of Perl 6's audience is the same mathematics-oriented functional users of Haskell, which also makes use of things like these. It is an option and doesn't take long to learn at all.

It doesn't take long, but it does take a small amount of time, and a small size increase of your mental model, for a small feature. It all adds up. I don't think it's worth it. This instance alone is small enough not to matter much, but it's part of a pattern with a real impact.
Reading code involves a lot of pattern matching. You recognize an idiomatic code fragment and reduce it to a personal mental model so you can reason about it more effectively. The larger the number of reasonable ways there are to do something, the more patterns you have to look out for, and the more effort it takes to reason about code. That's the cost of TMTOWTDI.

I think it's worth it.

I think it's worth it when you're hacking away on your own, but that standardization is more valuable when the code is going to be read by different people.

its been in development for 20 years and is STILL slower than perl5
perl5 is amazingly fast and versatile, just dont write anything too large in it

Attached: 1488565023366.jpg (480x666, 28.83K)

It isn't, really, anymore. If you were up to date, you'd know the latest optimizations for 6.d are faster in some cases than Perl5. (some aren't though, still obviously)

In any case, Perl6 is speeding up exponentially faster than most languages. The actual implementation of MoarVM & modern rakudo is very recent -- it's the language spec that has been CONSIDERED for 20 years.

how about some sources? because regex in p5 is still superior in speed to anything else in any other language

Benchmarks compared to Python, Ruby and the rest?

regex is one of the few parts that hasn't been worked on as much by the core developers

still slower, won't be forever

swtch.com/~rsc/regexp/regexp1.html


Which are not real optimizations of the compiler or the grammar, but rather ad-hoc replacements of higher-level Perl 6 code with lower level NQP one.


You should have also brought up that main developer besides now pozzed Larry are a tranny, a 70-year old dyke and some bunch of mu-males.


Which is a outdated and abandoned port. Without the interop it has no serious use.


Junctions and stuff like would make a great macro but instead they are burnt into the core grammar, which is a mess for this very reason.

It only seems that way if you have done a lot of Perl 5 or PHP

It feels nothing like PHP or Perl5 lol, and I had done neither before encountering Perl6 (which I think feels amazing).
This plainly isn't true. The core developers are mostly all normal white men (albeit somewhat older than what is average with some other programming communities)
This doesn't make anything a mess lol, that's what p6 grammars were built for, handling complicated means of interpretation; for that, they work wonders.>>957830

How you know this guy is wrong: Larry Wall isn't even a core developer of Perl6.

Stop being retarded. He designed the whole thing, also he is in the top 10.

$ git log | perl6 -e 'lines.grep(/^^ "Author:" \s+ (.*) $$/).Bag.sort(*.value).tail(10).map(*.say)'Author: Patrick R. Michaud => 787Author: TimToady => 822Author: Tobias Leich => 896Author: Elizabeth Mattijsen => 1251Author: Zoffix Znet => 1694Author: pmichaud => 1748Author: Moritz Lenz => 2975Author: Jonathan Worthington => 3314Author: jnthn => 3329Author: Elizabeth Mattijsen => 4536

He didn't design "the whole thing", lol. Perl6 is meant to be community driven. Also is that for the perl6 organization or what?

(1) That doesn't cover any of the implemented compiler or vm.
(2) That must've been years ago; he doesn't contribute ACTIVELY TODAY, meaning he IS NOT A CORE DEVELOPER.

This is why.

>act.perlconference.org/tpc-2018-glasgow/news/1568
>archive.fo/O3t1m

1,000 Internet points for the first person to post Keating's slides or video of talk. Word is it was hilarious.

Attached: XXXL perl cuck.png (1130x795, 1.3M)

You are not wrong. This describes pretty much anyone who still shows their face at perl gatherings.

I dislike python but fuck me I can't find anything else to use.