Hi gurus,
I consider hiring a raku consultant, but there does not seem to exist a
raku job site. The perl job site seems to implicitly exclude raku jobs.
I asked but have not heard back.
Any ideas? Could I post the call in this group?
thanks,
Theo van den Heuvel
Hello Liz,
I was indeed talking about the unshaped situation.
BTW. I am growing more and more fond of raku,
Thanks,
Theo
Elizabeth Mattijsen schreef op 2021-02-05 16:06:
On 5 Feb 2021, at 15:49, Theo van den Heuvel
wrote:
I cannot seem to find an idiomatic way to get the dimensions of a
Hi gurus,
I cannot seem to find an idiomatic way to get the dimensions of a
multidimensional array,
other than by looking at the size of the first row and column, with
@m[0;*].elems and @m[*;0].elems.
Am I missing something in the docs?
Thanks,
--
Theo van den Heuvel
ing";
sleep;
you should also see the "done".
On 5 Jan 2021, at 14:15, Theo van den Heuvel
wrote:
Hi gurus,
The first example in the documentation on the start control flow does
not seem to work as promised.
Here is the code:
start { sleep 1; say "done" }
say &qu
quot;.
Am I missing something?
--
Theo van den Heuvel
ssion)
at /.../walkable.pl6:21
--> my Walkable $xyzzify = ⏏-> :sgn-walkable { say $d.xyzzy };
I tried to use the scalar sigil instead of the sigilless constant. To no
avail.
I am hoping for a form that allows me to define Walkables as such.
Thanks,
Theo van den Heuvel
Tobias Boege sch
:00:
On Mon, 20 Jul 2020, Theo van den Heuvel wrote:
Hi gurus,
after looking at the documentation on Sub, Signature and the raku type
system I find myself unable to constrain the types of functions in the
way I
think I need.
The situation: I have a function, let's call in 'walker&
soemething like
sub walker(Walkable &callback, ...)
What am I missing here?
Thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
augments the notion of regular expression
that it allows me to make transformations of data that would be very
much harder in other languages.
Other people will have other motivations, I am sure.
good luck,
Theo van den Heuvel
Radhakrishnan Venkataraman schreef op 2020-06-14 17:04:
Hi,
I had
,
Theo van den Heuvel
N6ghost schreef op 2018-11-05 05:18:
Hi all,
Been looking around trying to find, anyone who is actually using Perl6.
and what they are using it for.
and if they are, what are there thoughts on it?
Thanks
-N6Ghost
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
statement modifier loop
thanks,
--
Theo van den Heuvel
sorry, false alarm. It does work as advertised.
Theo van den Heuvel
Theo van den Heuvel schreef op 2018-08-03 22:39:
Hi all,
My attempt at a solution below does not work. In larger examples the
decr gets called before the actions within Sum are processed. Maybe my
hunch that this would cause
o van den Heuvel
Theo van den Heuvel schreef op 2018-08-02 14:58:
Hi Laurent,
Here I set my example up along the lines of your second suggestion.
grammar Sum {
token TOP { ^ $ }
rule Sum { + % }
rule Expr { | { self.incr } '[' ~ ']' { self.decr } }
token op {
. This is
perhaps slightly cleaner than using a dynamic variable.
I hope this helps.
Laurent.
2018-08-01 21:21 GMT+02:00 Theo van den Heuvel
:
Hi Laurent,
dynamic variables were my first attempt (see original post). The
problem as I see it,
but I may well be mistaken, is that I cannot use
d. This is
perhaps slightly cleaner than using a dynamic variable.
I hope this helps.
Laurent.
2018-08-01 21:21 GMT+02:00 Theo van den Heuvel
:
Hi Laurent,
dynamic variables were my first attempt (see original post). The
problem as I see it,
but I may well be mistaken, is that I cannot use t
-+]> }
token num { \d+ }
token flag { }
}
class Act {
method num ($/) { say ">>> $/ at nesting level $nest" }
}
my $input = '2 + 5 + [7 - [3-2] +4] - 8';
Thanks,
Theo
Theo van den Heuvel schreef op 2018-08-01 21:46:
Hi Laurent,
I will do some experimenting, b
Hi Laurent,
I will do some experimenting, because I could be wrong about the timing
thing. A first experiment seems to work.
I will post my solution when I am satisfied that it works.
thanks,
Theo
Theo van den Heuvel schreef op 2018-08-01 21:21:
Hi Laurent,
dynamic variables were my first
GMT+02:00 Theo van den Heuvel
:
Hi Laurent,
yes I have, but the mode switching is supposed to happen
mid-parsing. I hope to avoid having to interrupt the parse, because
picking up after a subparse is going to be hard.
I was looking for a way to communicate a change of mode with the
action class
are a
timeline.
Thanks,
Laurent Rosenfeld schreef op 2018-08-01 19:57:
Hi Theo,
have you considered using only one grammar but simply calling it with
two different actions classes as a parameter depending on the mode you
want to use?
2018-08-01 16:41 GMT+02:00 Theo van den Heuvel
:
Hi Perl6-people
ns" vs "outside parens."
Not sure the mechanics of implementing that.
-y
On Wed, Aug 1, 2018 at 7:41 AM, Theo van den Heuvel
wrote:
Hi Perl6-people,
I am looking for some inspiration. I am working with a grammar that
I would like to have operate in two different modes.
In both
}
token flag { }
}
The presence of the flag is the clue for the actions.
This is less than satisfactory because we would have to pass on the
parameter to all non-terminals.
Can anyone think of a better way to do this?
thanks,
--
Theo van den Heuvel
completely. The publisher keeps his coordinates secret too.
Where can I send my remarks?
best wishes,
--
Theo van den Heuvel
Hi Brad,
Ha. Now that is exactly what I was looking for. It felt a bit clumsy
having to first collect the material in a string and then print that
string.
This is nice.
Thanks,
Theo
Brad Gilbert schreef op 2018-06-21 19:47:
:out can take an argument
...
my $fh = open 'foo.txt',
Hi Brandon,
I used the wrong term there. I meant to say: put in a file. Sorry for
the confusion.
Theo
Brandon Allbery schreef op 2018-06-20 17:58:
If you're going to use terms in a different way than what they
actually mean, it's going to be difficult to produce something that
does what you
thanks. That helps
Jonathan Scott Duff schreef op 2018-06-20 17:50:
If you don't specify the :out adverb, then the output of the program
you are running will be sent to standard output. Immediately when the
program executes. If you specify the :out adverb, output from the
program will be avail
d use shell for that, but I doubt that is necessary.
[On first reading I found the doc confusing because it start with a
hairy example. WHy would anyone wish to write to a file named
'>foo.txt'? How can that be the first example?]
Thanks,
--
Theo van den Heuvel
ning:
zef update
zef upgrade zef
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Hi guys,
Using zef to install I got many errors like:
===SORRY!===
Could not find JSON::Marshal:ver<0.0.7+> at line 77 in: ...
which disappeared as soon as I had installed JSON::(Name, Marshal and
Unmarshal).
I use 31028.04.01 on Ubuntu 16.04.
cheers,
--
Theo van den Heuvel
Van den
hat
`subset` is or how to use it.)
-T
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
sayit() { say $!a }
}
class AB is A {
submethod BUILD(:$!a = 17){}
}
my $ab = AB.new().sayit;
#
however. I get "Attribute $!a not declared in class AB", which makes
sense.
How should I write this instead?
Thanks
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Hi Todd,
please do not reference illegal materials. If you wish to refer to the
Perl Cookbook, why not do so.
http://shop.oreilly.com/product/9780596003135.do
Thanks,
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Hi Todd,
please discuss this in an appropriate forum. This discussion has
absolutely nothing to do with Perl6.
Thanks,
Theo van den Heuvel
have trouble
getting rakudo to debug some of my own modules.
merci,
Theo
Dominique Dumont schreef op 2017-03-16 16:21:
On Friday, 10 March 2017 21:47:13 CET Theo van den Heuvel wrote:
Strangely I do get messages like the following
+ EVAL_1 (1 - 1)
| CompUnit::DependencySpecification.new(short
subscript [^1000].
this
works but isn't intellectually right anymore.
any idea to make it more appealing ?
regards
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Todd,
Apparently I don't understand your intentions. You said you wanted
constants globally available in your module.
Don't you want to use those constants? If so, how?
Hm. How does it do with "sub sayfn" commented out?
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Not with me it doesn't.
my $TheValue = $?FILE.subst(/.* "/"/, "", :g);
sub sayfn is export { $TheValue.say }
Could something else be wrong here?
cheers,
Theo
ToddAndMargo schreef op 2017-03-10 22:10:
On 03/10/2017 09:53 AM, Timo Paulssen wrote:
I don't quite understand what's wrong with just
can copy-paste the
modules you're interested in into a "lib/" folder and just -Ilib on the
commandline. just make sure to rm -rf lib/.precomp between runs, i
think!
hope that helps!
- Timo
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Hi all,
the debugger, Debugger::UI::CommandLine, does not step into modules I
use. I must be doing something wrong. Any ideas?
I am on Ubuntu and using Rakudo version 2017.01 built on MoarVM version
2017.01
Thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Is this what you are looking for?
our $IAm is export;
( $IAm = $?FILE ) ~~ s|.*"/"||;
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
however in such a simple case we could just write
token idf { $=[ \w+ ] .uc eq 'WHERE' }> }
cheers,
Theo van den Heuvel schreef op 2017-03-09 19:42:
I use something like
token idf { $=[ \w+ ] ~~ :i/^ where $/}> }
but there are likely to be simpler solutions.
yary schre
ot; or a long
alternation), and then modifying the rules where those reserved words
are not allowed to reject them.
So for that grammar, you want to change "identifier" to reject
:i/WHERE/
The exact method of doing so, I don't know!
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Elizabeth Mattijsen schreef op 2017-02-28 20:29:
That was the consensus on the #perl6-dev channel:
https://irclog.perlgeek.de/perl6-dev/2017-02-28#i_14181744
Liz
I wasn't aware of this. Thanks
--
Theo van den Heuvel
ehash", though I'm not sure if that will
help in this case.
On Tue, Feb 28, 2017 at 7:55 AM, Theo van den Heuvel
wrote:
hi everyone,
last week I used rakudobrew to update my Perl6 installation on Ubuntu.
This is Rakudo version 2017.02-106-gdd4dfb1 built on MoarVM version
201
ct of type Perl6::HookGrammar
at gen/moar/perl6-debug.nqp:407
(/home/theo/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6-debug.moarvm:comp_unit)
followed by a slew of other nqp stuff. Is there something wrong with my
installation? Suggestions for repair?
Thanks,
--
Theo van den Heu
?
thanks,
Theo
Steve Mynott schreef op 2016-12-05 13:11:
If you are using rakudobrew it's not rakudo star (which is built from
a source tar ball or supplied as binaries on some platforms).
S
On 5 December 2016 at 11:34, Theo van den Heuvel
wrote:
Hi Steve,
I have Ubuntu and therefor
/.rakudobrew which shouldn't exist
if you were using Rakudo Star on its own.
Looks like you have mixed up two versions.
S
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
/perl6-debug.moarvm:)
thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
As so often it turned out that the reason my program did not work was
elsewhere (in the grammar).
My approach worked al along.
It was instructive to look at the examples you guys mentioned. Thanks
Theo
Hi Bennett,
There are many situations that require non-contextfree languages. Even
though much of these could be solved in the AST-building step (called
'transduction' in my days) instead of the parsing step, that does not
solve all cases. I am just wondering if and to what extent we can parse
Thanks Timo and Brian,
both examples are educational. However, they have a common limitation in
that they both perform their magic after a Match object has been
created. I was trying to influence the parsing step itself.
I am experimenting to find if I can influence the parsing process
progr
the parser (i.e. optimization)
frustrate this approach.
Is there a way to make something like this work?
Thanks,
Theo
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
ose name I have?
"$name".(); # gives me "No such method 'CALL-ME' for invocant of type
'Str'"
thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Thanks Timo,
this brings be further, but not quite out of the woods. I now get the
following (Windows 10):
# Failed test at t/01-sanity.t line 10
# Dynamic variable @*INC not found
with the ensuing failures.
Any ideas?
thanks,
Theo
Timo Paulssen schreef op 2016-06-22 18:01:
I just commit
ething here?
thanks
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Thanks again, I get it now.
Theo
Larry Wall schreef op 2016-04-12 17:00:
On Mon, Apr 11, 2016 at 11:32:29PM +0200, Theo van den Heuvel wrote:
: Thanks Larry for the answer and the great language.
:
: It is quite ok for me to start alphabetically. I use the funny char
: to indicate a particular
2, 2016 at 9:44 AM, Theo van den Heuvel
wrote:
..
unless you have to process the source code via some other tool that is
unable to understand your symbols.
I tend to refuse to code using more keys than those in my keyboard, my
fault.
Luca
is a
good idea.
On 4/11/16, Theo van den Heuvel wrote:
Thanks Larry for the answer and the great language.
It is quite ok for me to start alphabetically. I use the funny char to
indicate a particular aspect shared by a bunch of subs operators and
methods.
So I tried:
method term: { "Mel G.
work around this on the caller end with a postfix:<❤>, but
that would be an operator, not a method call, so you'd have to write
your postfix:<❤> operator to call the actual method in turn, with
sub postfix:<❤> ($f) { $f.'❤'() }
or so...
Larry
On Sun, Apr
Hi Brock,
no, that gives me
Missing block
Theo
Brock Wilcox schreef op 2016-04-10 15:55:
Maybe try it without the term, just "method funnychar (..."
On Apr 10, 2016 09:23, "Theo van den Heuvel"
wrote:
Hi perl6 fans,
I can use funny characters in operators or in s
t is unexpected for me, but is this as it should be?
This is Rakudo version 2016.01.1 built on MoarVM version 2016.01
Thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
aged
to avoid so far.
Skipping the testing does not help, but gives a similar message on
building Linenoise.
Any suggestions?
thanks,
--
Theo van den Heuvel
HI all,
after reinstalling rakudo panda works. However, the debugger still does
not load dependencies.
BTW there is no 'perl6-debug', only 'perl6-debug-m' on my machine.
thanks,
Theo van den Heuvel
Theo van den Heuvel schreef op 2016-03-04 00:14:
Hmm. This probably is n
[ ...] -- Download and unpack the
distribut
ion and then open the directory with your shell.
Maybe I should reinstall.
bye,
Theo van den Heuvel
Theo van den Heuvel schreef op 2016-03-03 22:31:
Hi all,
for some reason the Rakudo debugger (perl6-debug-m) does not accept
any file name if I try and use a
release of Rakudo, 2016-1 64-bits on Windows7.
Thanks
--
Theo van den Heuvel
= [ \w* ] \) /;
given "(abc)" {
$match = m/^ /;
}
if $match {
say "core is { ~$ }";
}
$ ./perl6 xyz.p6
core is abc
Hope this helps,
Pm
On Mon, Feb 22, 2016 at 10:25:19AM +0100, Theo van den Heuvel wrote:
Hi all,
I am trying to change a regex pr
{
$match = m/^ <$top>/;
}
if $match {
say "core is { ~$ }";
}
=
Using the latest rakudo release (2016.01.1), I find that the matching
process works but the capture gets lost. Any ideas?
Thanks,
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
Thanks, Carl, that helps. I just need to add a WHICH method. great.
Theo
arVM version 2014.09, Windows 7)
Perl6 considers all entries as new, and the hash has 3 separate entries.
Do I actually have to project my objects to strings to accomplish this?
Thanks
--
Theo van den Heuvel
Van den Heuvel HLT Consultancy
69 matches
Mail list logo