What's the reason behind the request?
On Sun, Jan 7, 2024 at 7:24 AM Elizabeth Mattijsen wrote:
> $ raku --help
>
> ...
> --optimize=level use the given level of optimization (0..3)
> ...
>
> > On 7 Jan 2024, at 07:09, ToddAndMargo via perl6-users <
> perl6-users@perl.org> wrote:
> >
> > Hi
In https://youtu.be/L2jnRk2GYwg?si=ffds1MWsyZaB09HR Cassie talks about
creating a language for prompting AI bots. Isn't creating specialised DSs a
Raku strong point?
See https://youtu.be/QEnuzwCWpgQ
This is not meant to be an example of schadenfreude. Rust is an
interesting language, whose ecological niche has little in common with
Perl's or Raku's. Its principal rival is Go, which is definitely more
corporate. Alphabet already controls far too much. (Yes,
If you read this StackOverflow article:
https://stackoverflow.blog/2023/03/29/from-web2-to-web3-how-developers-can-upskill-and-
build-with-blockchain/
and look at the languages mentioned with APIs, you may notice some
missing. That could render them irrelevant to the future.
What can we do about
I think I had problems finding the audio options on Jitsi, and wasted
a couple of meetings doing so. I'd suggest a "test" setup meeting,
where the whole agenda is ensuring that everyone has all the settings
right. Maybe set up a static video shot with background music to give
feedback?
On 2/2/23,
This https://raku.land/zef:lizmat/path-utils might be what you're
seeking. (So new the electrons have barely settled into their new
orbits.)
The cause of the problem may well need to be fixed for other reasons,
but re-purposing an almost universal operator like "!" ("not") sounds
like a thoroughly bad idea, the route to non-standard code.
If you must have a factorial operator, what's wrong with defining "Fact"?
On 10/14/22, Elizabeth
>
> That said, right now gmail is claiming whipupitude is misspelled...
>
An alternative is "whipitupitude" (the difference being the first "it".
Given the examples I've seen over the years, there's a need for an
opposite to "idiomatic", for programming that arrives at a solution by
a Rube Goldber
Surely Jonathan Worthington (or one of the other people who've worked
on the compiler) would be in a better position to answer this sort of
question.
Assuming that you write in a normal "interpreted-language" style,
(i.e. gradually adding features, testing, and moving on to the next
one, do you no
In this article, "Every Simple Language Will Eventually End Up Turing Complete"
https://solutionspace.blog/2021/12/04/every-simple-language-will-eventually-end-up-turing-complete
the author points out an unfortunate tendency for "simple" languages
to accrete features and morph into misshapen monste
https://rakudo.org/star shows the latest Rakudo* bundle for Linux as
2021.04 - is that really the latest?
Just to reinforce Geoff's message, remember Tony Hoare's "Premature
optimisation is the root of all evil"
https://effectiviology.com/premature-optimization/ as quoted by Rob
Pike https://users.ece.utexas.edu/~adnan/pike.html
A great analysis of, and answer to, the question. Worthy of being
enshrined in a blog posting.
https://doordash.engineering/2021/05/04/migrating-from-python-to-kotlin-for-our-backend-services/
Obviously, it's too late to persuade them to consider Raku, but it's
an interesting thought experiment to add that to the comparisons.
I posted this to the Perl 6 group on LinkedIn, in the absence of
What do these enormous numbers represent?
On 4/13/21, sisyphus wrote:
> Hi,
>
> C:\>raku -e "say 1.8446744073709552e+19 == 18446744073709551615"
> True
>
> I think I understand why raku deems this to be true.
> The LHS is 0x1p+64, which is identical to the double that the RHS rounds
> to.
> (AFAI
I'n not familiar with list managers today, but in old Unix systems it
used to be possible to put a ".forward" file in one's home directory
that would automatically forward mail to another address.
Conceptually, an alias or symbolic link, so that more than one address
ultimately pointed to one acco
> Doing so would, of course, be a very bad idea. But still, you _could_.
Something of an understatement, I think. :-)*
Seriously, this made me wonder if inscrutable error messages might be
clarifed by a (reverse) trace of the last few steps in parsing. That
would show you what the compiler thoug
The fundamental problem here seems to be the imprint of Perl's
behaviour on the mental model. Assigning arrays flattens them into a
list of their contents, which then gets used as input to the
assignment. That means that more complicated structures, such as
arrays of arrays need some faking.
Raku
ed fix the problem.
>
> Richard
>
> On 28/12/2020 15:35, Elizabeth Mattijsen wrote:
>> https://github.com/Raku/doc/issues/3753
>>
>>> On 28 Dec 2020, at 16:23, Parrot Raiser <1parr...@gmail.com> wrote:
>>>
>>> I just went to the page at docs.r
I just went to the page at docs.raku.org on multi-line comments, to
suggest a couple of clarifying edits. The pencil icon invoked a 404
from GitHub.
When one goes to make a fix, and the fixer is broken, it's a bit
recursive. Can anyone cure problem #1, so I can get to step #2? :-)*
On 12/28/20, E
"Definition of invoke
transitive verb
1a : to petition for help or support
b : to appeal to or cite as authority
2 : to call forth by incantation : conjure
3 : to make an earnest request for : solicit
4 : to put into effect or operation : implement
Although it's a standard term, "class" has a misleading connotation of "set".
Using the "fruit" example, the class Fruit should indicate a set of
relevant properties for a fruit, such as name, colour, taste, size,
possibly cost/kilo. Individual variables can be defined as Fruit-type
objects. Then $
Raku allows for several different programming paradigms; procedural,
functional, (as in languages like LISP), and object-oriented. It is
possible to write purely procedural Raku, while ignoring O-O features
completely, though it does take some dodging.
Object-oriented.programming first surfaced in
P.S. My apologies for top-posting in the quoted text, and my apologies
to William for the duplication.
On 11/29/20, Parrot Raiser <1parr...@gmail.com> wrote:
> Having a consistent ("regular", in the linguistic sense), structure
> for something like the op= form is obviousl
Having a consistent ("regular", in the linguistic sense), structure
for something like the op= form is obviously very desirable. It's so
much easier to teach and learn a rule like "op= has the same effect,
whatever "op" is; it takes the variable on the LHS, applies the
operator to its contents and
Can you provide some samples of what you are trying to match and
exclude? There might be alternative solutions.
As I was about to post my other question, it occurred to me that
perhaps we should have a raku-users list, (and corresponding ones for
the other, formerly perl6-flavoured lists?
And now for the actual question. I'm experimenting with installing
Raku on an ARM machine, (specifically a PineBook Pro)
Possibly OT, the "-er/-ee" boundary has become corrupted in recent usage.
I suppose "standees" in a bus might be tolerated, depending on your
view of transit riders as active or passive, but when a jail-break
occurs, the former prisoners should become "escapers", not "escapees".
The prison author
That will golf a little (and improve it) to:
$ raku -e '.say for lines()[3,2,5]' lines.txt
but you have to remember that it's zero-based. I used the first sample
file and got
Line 4
Line 3
Line 6
"The three great problems of computer science: compiler complexity and
'off-by-one' errors".
On 8/
com/Raku/doc/tree/master/doc directory.
>
> Richard
>
> On 21/07/2020 15:40, Parrot Raiser wrote:
>> Can anyone point me at examples of pod6 in use? I'm trying to relate
>> the syntax shown in https://docs.raku.org/language/pod to actual
>> results. Concise would be nice, tutorial even better.
>
Can anyone point me at examples of pod6 in use? I'm trying to relate
the syntax shown in https://docs.raku.org/language/pod to actual
results. Concise would be nice, tutorial even better.
Perhaps with a grammar?
On 7/16/20, Tom Browder wrote:
> An opportunity for Raku golfers to show off Raku on the Debian users list.
>
> Best regards,
>
> -Tom
>
> -- Forwarded message -
> From: Albretch Mueller
> Date: Tue, Jul 14, 2020 at 07:52
> Subject: delimiters with more th
Wouldn't the responsibility be on the web pages to keep up-to-date?
That would be more a matter of agreement on the place to watch?
I just happened to look at the raku.org and raskudo.org download
pages, and noticed that both quote 2020.01 as the most recent
versions.
Patrick Spek's dist.tyil.nl/raku/rakudo-star/ has both 2020.03 and
2020.05 for download following that.
Should the sites be synchronised, preferably with a mech
It seems to me that arbitrarily changing the precedence of a function
would produce a horrible maintenance nightmare.
It would mean recognising what had been done, interpreting the first
example found in a different way than any other code, then tracking
down any other place the trick had been used
There is potentially a place for Raku in education, as a language that
can evolve from simple expressions in the REPL to one-liners, basic
scripts and through to complete CS courses with the various
programming paradigms (procedural, O-O, functional) and into language
design with grammars.
The cha
Create an updated version, perhaps with an "rk" prefix, (preserving
any text alignment, since "p6" and "rk" are the same length), then
change the "pk" version simply to invoke the "rk"?
Existing code should continue to work, albeit nanoseconds slower,
while new code can be culturally consistent.
I suspect that "methods" were originally distinguished from
"subroutines" because it made the rain-dance about the new cure for
all civilisation's ills and the heartbreak of psoriasis,
Object-Oriented Programming, look more impressive. After one has seen
a few programming religions launched, the s
Working with p.spek p.s...@tyil.nl on a revised Rakudo Star we
encountered a problem with the Configure step; it might be worthwhile
contacting him to coordinate any changes.
On 5/14/20, Will Coleda wrote:
> I think it's out of date, yes.
>
> Need a "make install" to install the binaries (by defa
it's going to take careful untangling, locating every
reference to files before renaming them.
On 3/3/20, Patrick Spek wrote:
> On Tue, 3 Mar 2020 16:41:47 -0500
> Parrot Raiser <1parr...@gmail.com> wrote:
>
>> I've managed to download 2020.01, and run it with an exp
I've managed to download 2020.01, and run it with an explicit path,
but the directory structure that my script used to follow, is broken
in some way. (I'll investigate further, to see if I can spot the
change, but a required directory tree might help me find it, if you
could provide one.)
A fair
> we use ruby for Biological data analysis. I wish perl6 should have got that
> capability.
Would you like to give us a sample problem,, to see if someone can
show a potential solution?
Since Ruby was designed to fix what Matz considered mis-features of
Perl 5, and the motivation for Rakudo was much the same, it's hardly
surprising they're similar.
One feature of any Open Source product to consider when investing any
effort in it is the supporting community. Though Ruby was consi
With the name change to Raku, has anyone considered a naming suffix
policy for modules? I don't have a problem with .pm6, and I don't
want to cause an outbreak of bikeshedding, but some might consider it
inconsistent.
As an aside, I deplore the practice of identifying the language of a
directly e
That looks like a great recommendation.
On 12/9/19, Mike Stok wrote:
>
>> On Dec 9, 2019, at 10:24 AM, Curt Tilmes wrote:
>>
>> On Mon, Dec 9, 2019 at 10:07 AM ToddAndMargo via perl6-users
>> mailto:perl6-users@perl.org>> wrote:
>> On 2019-12-09 02:00, JJ Merelo wrote:
>> > Other than that, it's
I agree with you. Improving an existing one is different, even if
fixing the original does give turn out to produce what is effectively
a new one.
Addressing a completely new class of problem would also be different,
but that would be moving up the stack.
Who initiated the project, and why?
What deficiencies in existing languages are they trying to address?
The belief that Yet Another Programming Language is the answer to the
world's problems is a persistent, but (IMNSHO) a naive one.
On 12/8/19, Andrew Shitov wrote:
> Let’s not hide the fact tha
Should users of Raku be termed "Rakuuns"? :-)*
It has been said that any sound the human voice can utter is rude in
some language.
It is also rather obvious that people who acquire second and
subsequent languages informally tend to learn a very high proportion
of "taboo" expressions. (Possibly because in many cases their
principal source is mi
What do the official tests for this show?
On 11/16/19, Joseph Brenner wrote:
> William Michelswrote:
>
>> I went over this with Joe as well, and I was
>> equally confused.
>
> Part of our trouble was we were playing around with the
> routine form of comb (rather than the Str method), whic
Raku is the product of collaboration by many people. Some of these are
well known, but there are many parts of the ecosystem whose mavens are
anonymous or obscure. When a problem arises, it would be nice to be
able to direct them to someone knowledgeable, rather than essentially
yelling them in pub
When I report a problem, I try to supply as complete a picture as
possible, without imposing my filter on the data. So many times I've
had a vital clue omitted by someone who "didn't think that X was
important".
With so many parties involved, it's not surprising that errors reveal
issues entirely
generated by zef. The warning
> already tells you which module the filename pertains to (Linenoise),
> so I guess I'm not understanding the problem. You can locate the your
> Linenoise module using the command below, and work from there.
>
>> mbook:~ homedir$ zef locate Linen
After a few difficulties caused by subtly different paths and version
identification (like -n vs .n for sub-version ids) the download and
installation appears to have worked, but trying the REPL produced the
following error message:
"I ran into a problem while trying to set up Linenoise: Failed to
CatHandle? Is that an alias for "tail"? :-)*
On 10/22/19, Marcel Timmerman wrote:
> On 10/22/19 1:05 PM, Marcel Timmerman wrote:
>> On 10/20/19 11:38 PM, Joseph Brenner wrote:
>>> I was just thinking about the case of processing a large file in
>>> chunks of an arbitrary size (where "lines" or "
https://github.com/perl6/doc/issues/2387
Coke closed the issue , but for me, "p6doc build" is still broken. It
looks as though whatever was "fixed in HEAD" hasn't made it into
Rakudo*. Could we have details (or at least an issue number) to help
implement the fix, please?
Some books:
"Think Perl 6"http://shop.oreilly.com/product/0636920065883.do
"Learning Perl 6"http://shop.oreilly.com/product/0636920062776.do
"Perl 6 At a Glance" https://perl6.online/perl6-at-a-glance/ (which
Andrew did mention)
On 8/24/19, William Michels via perl6-users w
"5" is a version number of Perl. To run it, $/usr/bin/perl "6" is part
of the name of Perl6.
To run it, $/usr/bin/perl6.
With the production version of Perl incremented by 2 every year, it's
still about 35 years before the version gets to an inconvenient 3
digits. (Will there really be enough wort
Hmm, downloaded to pdf, but at 1730 pages, maybe I'd better rethink
the printing. :-)*
On 6/21/19, Brad Gilbert wrote:
> The specification is the test suite.
That is true, but as a guide to learning the language, it has its limitations.
> I believe you are asking for downloading the documentation as one file.
> On docs.perl6.org there is a link for viewing the entire thing as a
>
Is there a convenient way to download the Perl 6 specification as one
file, rather than having to download each topic separately?
I tried to report a failure to rakudobug, which generated the
following report from the mailer:
-
---
Date: Fri, 10 May 2019 15:59:32 -0700 (PDT)
** Message not delivered **
Your message couldn't be delivered to rakudo...@per
ication's.
On 3/10/19, ToddAndMargo via perl6-users wrote:
> >> Hi All,
> >>
> >> How do I output data to a printer on /dev/lp0 (LPT1)?
> >>
> >> Many thanks,
> >> -T
> >>
>
> On 3/10/19 11:28 AM, Par
Do you have the printer set up in CUPS? (Common Unix Printing System.)
See "man cups".
Applications shouldn't normally be writing to explicit device IDs.
On 3/10/19, ToddAndMargo via perl6-users wrote:
> Hi All,
>
> How do I output data to a printer on /dev/lp0 (LPT1)?
>
> Many thanks,
> -T
>
> If you get a crash using it, I suspect you made another mistake somewhere.
Possibly a compiler version difference? A perl6 -v output might be
worth including.
Is it possible that OS caching is having an effect on the performance?
It's sometimes necessary to run the same code several times before it
settles down to consistent results.
On 12/7/18, Vadim Belman wrote:
> There is not need for filling in the channel prior to starting workers.
> First of all
On 11/15/18, Richard Hainsworth wrote:
> There are two styles in Perl 6 to code this and my question is whether
> one is more efficient (speed/memory) than the other.
>
First, define efficiency.
Which is cheaper, computer time or programmer time?
Is whatever is being considered a constraint of an
Attempting to build the P6doc index produced the following result:
-
$ p6doc build
Too many positionals passed; expected 1 argument but got 2
in sub build_index at
/home/guru/rakudo/rakudo-star-2018.06/install/share/perl6/site/resources/C8DD97308D226DDE4AA60EA017CB6BB59F9AA625
line 193
in sub M
Would it be correct to say:
[ ] aka square brackets, always surround the subscript of an array or
list, i.e. here "n: is an integer, [n] always means the nth item,
while
( ), round brackets or parentheses, separate and group items to
control processing order, and identify subroutine calls, surrou
P.S. By today's standards, that's a pretty chintzy service; are their
limits aimed at IoT thingies?
> I'm not sure which of these is limiting the compilation of rakudo.
2 out of 3 ain’t bad? :-(
Unfortunately, they're && not ||. :-)*
On 9/26/18, Elizabeth Mattijsen wrote:
>> On 26 Sep 2018, at 06:03, Richard Hainsworth
>> wrote:
>>
>> Further to this question. Support staff at hosting comp
-- Forwarded message --
From: Parrot Raiser <1parr...@gmail.com>
Date: Sun, 16 Sep 2018 09:41:44 -0400
Subject: Re: escape codes
To: ToddAndMargo
Those (\t & \n) aren't "escape characters", (though the \ is an
escape, so you might classify t & n a
On 9/14/18, Brandon Allbery wrote:
> And then you discover <->.
>
Elbows?
Obviously, discussions about "->" will be easier if it has a name. How
about "lance", or, if you want to be less martial, "poker'?
> Do a search for objects.
What do you mean?
Into you favourite search engine, e.g. duckduckgo, type perl6 objects
https://docs.perl6.org/language/terms#Identifier_terms
On 9/13/18, ToddAndMargo wrote:
> On 09/12/2018 07:14 AM, Parrot Raiser wrote:
>> Built-in constants:
>> pi, tau, e, i
>
> Do you know where I can find the list ?
>
> https://duckduckgo.com/?q=perl6+built
Neat. The answer's round about right.
On 9/12/18, Fernando Santagata wrote:
> Patched :-)
> say (e**(i*pi)+1).round(10⁻¹²)
>
> On Wed, Sep 12, 2018 at 4:28 PM Parrot Raiser <1parr...@gmail.com> wrote:
>
>> Just for giggles, say e**(i*pi) + 1 prints 0+1.2246
Just for giggles, say e**(i*pi) + 1 prints 0+1.2246467991473532e-16i
which isn't exactly right, but close enough for government work.
(You could call it really right, the error is imaginary. :-)* )
On 9/12/18, Parrot Raiser <1parr...@gmail.com> wrote:
> Built-in constants:
&
Built-in constants:
pi, tau, e, i
perl6 -e 'say pi ~ " " ~ tau ~ " " ~ e ~ " " ~ i';
3.141592653589793 6.283185307179586 2.718281828459045 0+1i
(tau is 2pi, useful if you want to calculate the circumference of your tuits.
Pi and tau can also be accessed as the Unicode characters.
User-de
One of the paradoxes of documentation, and the teaching of many
abstract topics, is that those with the most in-depth knowledge of the
topic,are the least suitable to explain it, precisely because of that
knowledge. They can't remember what it felt like not to know
something, and they've usually l
As an exercise, I'm porting some small coding utilities written in P5
to P6, and it's interesting how much less code is required, even using
what I suspect will seem embarrassingly naive P6 code in a little
while.
On 9/5/18, Vadim Belman wrote:
> Let me correct you in one aspect. It's not my comp
exit note "message";
seems to work well as a substitute. "note" outputs the message, and
exit sends the return code (1) to the OS, marking a failure.
If I understand that correctly, "die" needs to be documented as always
outputting the line number, and that for user-oriented messages, one
of the other techniques should be used.
Otherwise, this question is likely to come up a lot.
But this:
perl6 -e 'shell("vim sample"); exit'
behaves acceptably.
On 9/3/18, Parrot Raiser <1parr...@gmail.com> wrote:
> Is Windows really that brain-dead? Pity it has to sabotage everyone else.
>
> This invokes vim successfully, but leaves an ugly error
ne 1
On 9/3/18, Brandon Allbery wrote:
> It's not basic: Windows doesn't have it at all, it has to be simulated. The
> intent is that system dependent things like that should be external to the
> core.
>
> On Mon, Sep 3, 2018 at 12:56 PM Parrot Raiser <1parr...@gmail.
n 3 Sep 2018, at 18:41, Parrot Raiser <1parr...@gmail.com> wrote:
>>
>> In Perl 5, a program can hand over control to another with exec:
>> https://perldoc.perl.org/functions/exec.html
>> e.g perl -e 'exec vim' opens up vim
>>
>> What's the Perl 6 equivalent?
>
In Perl 5, a program can hand over control to another with exec:
https://perldoc.perl.org/functions/exec.html
e.g perl -e 'exec vim' opens up vim
What's the Perl 6 equivalent?
perl6 -v
This is Rakudo Star version 2018.06 built on MoarVM version 2018.06
implementing Perl 6.c.
In Perl 5:
die "Message"; outputs Message, followed by the program line number.
die "Message\n" outputs Message
without further ado.
Perl 6 "die" produces line numbers regardless of the line endi
Thanks. That's exactly what I wanted.
On 8/29/18, Fernando Santagata wrote:
> That's documented here:
>
> https://docs.perl6.org/language/variables#&?ROUTINE
>
> On Wed, Aug 29, 2018 at 5:51 PM Parrot Raiser <1parr...@gmail.com> wrote:
>
>> Could s
Could someone supply a link to a clear example of a Perl 6 subroutine
finding its own name, please?
I know there's a method, but haven't managed to produce an effective
search string for an example of its use.
That's the problem with using multiple related-but-not-identical
languages. If you aren't completely on the ball, one of the others may
grab you by the ankle and trip you.
On 8/5/18, ToddAndMargo wrote:
>>> It is "do G=" not "do $G="
>>>
>>>
>
> On 08/04/2018 01:14 AM, Laurent Rosenfeld via p
If I've interpreted this
https://docs.perl6.org/language/regexes#Enumerated_character_classes_and_ranges
correctly,
^ is "start of string"
+alnum means "in the alphanumeric set"
-alpha means "not in the purely alphabetic set"
i.e. <+alnum -alpha> means "alphanumeric but not a letter", i.e 0-9_
+
The result of a modulus-2 is always going to be 0 or 1, so if you can
put the "even" and "odd" results in a 2 -element array, using it as a
subscript would be a way to achieve the outcome.
On 5/1/18, ToddAndMargo wrote:
> On 04/30/2018 06:47 AM, Elizabeth Mattijsen wrote:
>
>> Perhaps this is a s
Frankly, if you're worried about this sort of thing, you have too much
faith in "secret sauces", and not enough in understanding situations
thoroughly. Code is trivial, implementation isn't.
Back in the days of dBase II, I was a contractor for one ministry of
the local government. They asked me to
I agree that this is really not the appropriate forum for this. Type a
question like "if I write the same code for several clients, who owns
it?" into a search engine, and you'll get a plethora of links.
In this case, I would say the fairest thing is to write the sharable
portion once on your own
Donald Knuth was proud of getting an entire compiler into 1023 bytes.
It wasn't a game of golf; the machine only had 1024 available.
https://cacm.acm.org/news/175194-twenty-questions-for-donald-knuth/fulltext
On 10/2/17, ToddAndMargo wrote:
>>> On Mon, Oct 2, 2017 at 6:22 PM, ToddAndMargo >>
Prepending the real key value with an order indicator, then sorting
the retrieved list on the key would achieve that, (though the maximum
number size would have to be known in advance.
E.g. 001First_key => data1, 002Second => data2
>> In other words, I think we should change the Perl 6 spec to define .f as
>> "exists and is a file".
>>
>> --
>> Mark Montague
Mark and I appear to be having a vigorous agreement about the
principle of Least Surprise.
If -f X is defined as meaning "X exists and is a file", then
obviously if
Discussing the full implications of these tests could probably keep a
philosophy class busy for an afternnon. It might even rise to an
LPU[1] paper.
-e is fairly easy. It asks if something exists. Ignoring Schrodinger,
either it does (i.e True) or it doesn't. (False)
-f is more ambiguous. It asks
This is the capability provided by Perl 5's "stat". Would a clone with
the same properties and behaviours be the right thing, or are there
"features" to fix?
On 9/26/17, Brandon Allbery wrote:
> On Tue, Sep 26, 2017 at 2:11 AM, ToddAndMargo
> wrote:
>
>> Does Perl 6 have one of those fancy subs
1 - 100 of 174 matches
Mail list logo