Re: -c question

2024-02-06 Thread ToddAndMargo via perl6-users
On 2/6/24 09:03, Bruce Gray wrote: On Feb 6, 2024, at 10:52, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/

Re: -c question

2024-02-06 Thread ToddAndMargo via perl6-users
On 6 Feb 2024, at 17:52, ToddAndMargo via perl6-users wrote: On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote:

Re: -c question

2024-02-06 Thread Bruce Gray
> On Feb 6, 2024, at 10:52, ToddAndMargo via perl6-users > wrote: > >>> On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> Is there a way to syntax a module? Sort of like the "-c&qu

Re: -c question

2024-02-06 Thread Elizabeth Mattijsen
Do you have some "use lib 'foo'" setting in your program? If so, use that on the command-line, e.g.: $ raku -Ifoo -c bar.rakumod > On 6 Feb 2024, at 17:52, ToddAndMargo via perl6-users > wrote: > >>> On 6 Feb 2024, at 00:39, ToddAndMargo via pe

Re: -c question

2024-02-06 Thread ToddAndMargo via perl6-users
On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users wrote: Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T On 2/6/24 01:34, Elizabeth Mattijsen wrote: > $ raku -c foo.rakumod > Syntax OK > $ raku -c WinMess

Re: -c question

2024-02-06 Thread Elizabeth Mattijsen
$ raku -c foo.rakumod Syntax OK > On 6 Feb 2024, at 00:39, ToddAndMargo via perl6-users > wrote: > > Hi All, > > Is there a way to syntax a module? Sort of like the "-c" > option on main programs? > > Many thanks, > -T > > > > -- >

-c question

2024-02-05 Thread ToddAndMargo via perl6-users
Hi All, Is there a way to syntax a module? Sort of like the "-c" option on main programs? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

Re: NativeCall C++ structure question

2022-11-21 Thread ToddAndMargo via perl6-users
,     # WTS_CURRENT_SERVER_HANDLE to use the RD Session Host server that hosts your application.   [in]  DWORD  Reserved,   [in]  DWORD  Version,   [out] PWTS_SESSION_INFOA *ppSessionInfo,   [out] DWORD  *pCount     ); to dig out a pointer (*ppSessionInfo) to a C++ OOP

NativeCall C++ structure question

2022-11-21 Thread ToddAndMargo via perl6-users
application. [in] DWORD Reserved, [in] DWORD Version, [out] PWTS_SESSION_INFOA *ppSessionInfo, [out] DWORD *pCount ); to dig out a pointer (*ppSessionInfo) to a C++ OOP data structure, which is repeated pCount times. (No problem

Re: Is self a C pointer?

2020-12-20 Thread ToddAndMargo via perl6-users
On 12/20/20 9:27 PM, Brad Gilbert wrote: It doesn't matter if it is a C pointer. Unless you are working on Moarvm, you should consider them arbitrary unique numbers. Like GUID. That said, yes I'm sure that they represent a location in memory. That explains it. Thank you! I use

Re: Is self a C pointer?

2020-12-20 Thread William Michels via perl6-users
f = <" ~ self.Msg ~ ">\n"; >print "self = <" ~ self.Str ~ ">\n"; > } > } > > my $x = PrintTest.new(Msg => "abc"); > > $x.PrintMsg > self = > self = > > > i

Re: Is self a C pointer?

2020-12-20 Thread Brad Gilbert
It doesn't matter if it is a C pointer. Unless you are working on Moarvm, you should consider them arbitrary unique numbers. Like GUID. That said, yes I'm sure that they represent a location in memory. On Sun, Dec 20, 2020, 6:45 PM ToddAndMargo via perl6-users < perl6-us...@pe

Is self a C pointer?

2020-12-20 Thread ToddAndMargo via perl6-users
PrintTest.new(Msg => "abc"); $x.PrintMsg self = self = > is "95224840" a C pointer? What is that thing? Many thanks, -T

[Raku/old-design-docs] 63e44c: S22: Clarify how system specific values work and c...

2020-10-01 Thread niner via perl6-language
Branch: refs/heads/master Home: https://github.com/Raku/old-design-docs Commit: 63e44c36351887f1eb76500d7102f0db44848d27 https://github.com/Raku/old-design-docs/commit/63e44c36351887f1eb76500d7102f0db44848d27 Author: niner Date: 2020-10-01 (Thu, 01 Oct 2020) Changed paths:

NativeCall and C String question

2019-12-29 Thread ToddAndMargo via perl6-users
Hi All, When Native call gives me back an address and byte count to a C string, how do I turn that into a Raku string? Address = 5636171 0x56004B byte count = 14 (UTF16) two of these are presumed to be chr(0) Actual string is `KVM-W7` Many thanks, -T

Re: What is |c ?

2018-10-14 Thread Ralph Mellor
ocs.perl6.org/routine/slurp > > What is |c, as in > > multi sub slurp(IO::Handle:D $fh = $*ARGFILES, |c) > multi sub slurp(IO() $path, |c) > > Many thanks, > -T >

What is |c ?

2018-10-14 Thread ToddAndMargo via perl6-users
Hi All, Over on https://docs.perl6.org/routine/slurp What is |c, as in multi sub slurp(IO::Handle:D $fh = $*ARGFILES, |c) multi sub slurp(IO() $path, |c) Many thanks, -T

Re: -c bug to report

2018-07-25 Thread Todd Chester
On 07/25/2018 12:23 PM, Brandon Allbery wrote: here's been discussion about having -c run the optimize stage as well, since some information needed for full checking doesn't exist in a useful form until then. I like the idea!

Re: -c bug to report

2018-07-25 Thread Patrick R. Michaud
On Wed, Jul 25, 2018 at 11:48:30AM -0700, ToddAndMargo wrote: > Maybe I am trying to get "-c" to do too many things. > > What I would like it to do is to check everything right up to but not > actually run the program. Part of the challenge here is that unlike many other

Re: -c bug to report

2018-07-25 Thread Brandon Allbery
There's been discussion about having -c run the optimize stage as well, since some information needed for full checking doesn't exist in a useful form until then. On Wed, Jul 25, 2018 at 2:49 PM ToddAndMargo wrote: > Hi Simon, > > Maybe I am trying to get "-c" to d

Re: -c bug to report

2018-07-25 Thread ToddAndMargo
Hi Simon, Maybe I am trying to get "-c" to do too many things. What I would like it to do is to check everything right up to but not actually run the program. -T On 07/25/2018 02:27 AM, Simon Proctor wrote: Problem is that's not a syntax error as such. Running with stage sta

Re: -c bug to report

2018-07-25 Thread Simon Proctor
Problem is that's not a syntax error as such. Running with stage stats you can see where -c stop and where the error is thrown. (I'm sure someone with deeper VM understanding can explain is better). perl6 --stagestats -e 'sub foo($a, $b) { say "Hmm" };foo(1,2,"3

-c bug to report

2018-07-25 Thread ToddAndMargo
Dear Developers, $ perl6 -v This is Rakudo version 2018.05 built on MoarVM version 2018.05 implementing Perl 6.c. `Perl6 -c xxx.pl6` passes if IsCurrentRevNewer ( $OldRev, $NewRev, $SubName, "no", "quiet" ) when the sub it calls only has three variables in it header,

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread ToddAndMargo
On 06/21/2018 08:42 AM, Larry Wall wrote: On Wed, Jun 20, 2018 at 10:58:01PM -0700, Brent Laabs wrote: : -c does compile time warnings, not runtime warnings. You can't make : runtime warnings appear at compile time without using a BEGIN block. That's perhaps a bit oversimplified, sin

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread Larry Wall
On Wed, Jun 20, 2018 at 10:58:01PM -0700, Brent Laabs wrote: : -c does compile time warnings, not runtime warnings. You can't make : runtime warnings appear at compile time without using a BEGIN block. That's perhaps a bit oversimplified, since in this case the warning is coming

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread JJ Merelo
> > On Wed, Jun 20, 2018 at 9:59 PM, Todd Chester > What is a BEGIN block? BEGIN is one of the "phasers" that are used in Perl 6 https://docs.perl6.org/language/phasers#index-entry-Phasers__BEGIN-BEGIN It marks a block of code for running as soon as possible, and if possible during compile time

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread Todd Chester
<mailto:toddandma...@zoho.com>> wrote: > On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester mailto:toddandma...@zoho.com>> wrote: >> Dear Perl Developers, >> >> Would you please fix this `perl6 -c` checker error? >> >>

Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Brent Laabs
-c does compile time warnings, not runtime warnings. You can't make runtime warnings appear at compile time without using a BEGIN block. On Wed, Jun 20, 2018 at 9:59 PM, Todd Chester wrote: > > > > On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester > wrote: >

Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Todd Chester
> On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester wrote: >> Dear Perl Developers, >> >> Would you please fix this `perl6 -c` checker error? >> >> $ perl6 -v >> This is Rakudo version 2018.05 built on MoarVM version 2018.05 >> implementing Perl 6.c

Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Will Coleda
It's a warning, not an error. On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester wrote: > Dear Perl Developers, > > Would you please fix this `perl6 -c` checker error? > > $ perl6 -v > This is Rakudo version 2018.05 built on MoarVM version 2018.05 > implementing Perl 6.c.

Re: a `pe4rl6 -c` error to fix

2018-06-19 Thread Todd Chester
On 06/19/2018 09:50 PM, Todd Chester wrote: Dear Perl Developers, Would you please fix this `perl6 -c` checker error? $ perl6 -v This is Rakudo version 2018.05 built on MoarVM version 2018.05 implementing Perl 6.c. The checkers passes this line with Syntax OK $ReturnStr, $CurlStatus

a `pe4rl6 -c` error to fix

2018-06-19 Thread Todd Chester
Dear Perl Developers, Would you please fix this `perl6 -c` checker error? $ perl6 -v This is Rakudo version 2018.05 built on MoarVM version 2018.05 implementing Perl 6.c. The checkers passes this line with Syntax OK $ReturnStr, $CurlStatus = CurlDownloadFile $FileAddr, $BaseFileName

Re: -c error to fix

2018-06-13 Thread Todd Chester
On 06/13/2018 11:28 PM, Todd Chester wrote: Hi All, $ perl6 -v This is Rakudo version 2018.04 built on MoarVM version 2018.04.1 implementing Perl 6.c. I have another `perl6 -c` bug to fix $ perl6 -c GetUpdates.pl6 ===SORRY!=== Could not find Term::termios at line 15 in:     /home

-c error to fix

2018-06-13 Thread Todd Chester
Hi All, $ perl6 -v This is Rakudo version 2018.04 built on MoarVM version 2018.04.1 implementing Perl 6.c. I have another `perl6 -c` bug to fix $ perl6 -c GetUpdates.pl6 ===SORRY!=== Could not find Term::termios at line 15 in: /home/linuxutil /home/todd/.perl6 /usr/lib64/perl6/site

Re: need -c help

2018-05-10 Thread ToddAndMargo
On 05/10/2018 07:37 PM, ToddAndMargo wrote: Hi All, I am converting a YUGE program over from Perl 5 to Perl 6 (Perl 5's subs drive me INSANE). $ perl6 -c GetUpdates.pl6 ===SORRY!=== Error while compiling /home/linuxutil/CurlUtils.pm6 Variable '$TimeOut' is not declared. Did you

need -c help

2018-05-10 Thread ToddAndMargo
Hi All, I am converting a YUGE program over from Perl 5 to Perl 6 (Perl 5's subs drive me INSANE). $ perl6 -c GetUpdates.pl6 ===SORRY!=== Error while compiling /home/linuxutil/CurlUtils.pm6 Variable '$TimeOut' is not declared. Did you mean '$Timeout'? at /home/l

[perl #132306] [PERF] parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2018-01-14 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Yes, it would be awesome to have warnings for unused params and variables. On 2018-01-14 12:16:08, c...@zoffix.com wrote: > On Sat, 14 Oct 2017 20:53:03 -0700, alex.jakime...@gmail.com wrote: > > FWIW I made a throwaway script that looks for unused params, and > > there > >

[perl #132306] [PERF] parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2018-01-14 Thread Zoffix Znet via RT
On Sat, 14 Oct 2017 20:53:03 -0700, alex.jakime...@gmail.com wrote: > FWIW I made a throwaway script that looks for unused params, and there > are many > of these in rakudo sources. Of course, most of these cases are not in > hot > paths, but the overall performance benefit may be very noticeable.

[perl #132306] [PERF] parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2018-01-14 Thread Zoffix Znet via RT
On Sat, 14 Oct 2017 20:53:03 -0700, alex.jakime...@gmail.com wrote: > FWIW I made a throwaway script that looks for unused params, and there > are many > of these in rakudo sources. Of course, most of these cases are not in > hot > paths, but the overall performance benefit may be very noticeable.

[perl #121843] my @words <== sort <== ("c", "b", "a"); # feed failing to parse

2017-12-01 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Still reproducible (2017.11, HEAD(5929887)) On 2014-05-10 14:42:47, david.warring wrote: > Golfed from fudged test in integration/advent2010-day10.t > > $ perl6-m -e'my @o <== sort <== ("c", "b", "a")' > Unable to parse expression in quo

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-23 Thread Elizabeth Mattijsen via RT
> On 22 Nov 2017, at 19:31, Timo Paulssen via RT > wrote: > On Mon, 20 Nov 2017 12:13:47 -0800, ronaldxs wrote: >> What about a native perl6 range loop? Couldn't there be some way for >> Perl 6 / Rakudo to generate code competitive on a small range with the >> "native-loop" example? >> >> perl6

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-23 Thread Elizabeth Mattijsen
> On 22 Nov 2017, at 19:31, Timo Paulssen via RT > wrote: > On Mon, 20 Nov 2017 12:13:47 -0800, ronaldxs wrote: >> What about a native perl6 range loop? Couldn't there be some way for >> Perl 6 / Rakudo to generate code competitive on a small range with the >> "native-loop" example? >> >> perl6

[perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-22 Thread Timo Paulssen via RT
On Mon, 20 Nov 2017 12:13:47 -0800, ronaldxs wrote: > What about a native perl6 range loop? Couldn't there be some way for > Perl 6 / Rakudo to generate code competitive on a small range with the > "native-loop" example? > > perl6 -e ' > { > my int ($a, $one, $three) = (42, 1, 3); >

[perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-20 Thread Ron Schmidt via RT
What about a native perl6 range loop? Couldn't there be some way for Perl 6 / Rakudo to generate code competitive on a small range with the "native-loop" example? perl6 -e ' { my int ($a, $one, $three) = (42, 1, 3); for ^10_000_000 { $a += $one + $a%$three }; say now

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-19 Thread Lloyd Fournier
For comparison to march on the same comp: bash-3.2$ perl6 perf.p6 perl6-loop: 63.0037058 c-loop: 76.86853305 (0.82 times faster) native-loop: 0.2170930 (354.08 times faster) perl6 loops are faster. c style loops are slower. Native loops are even faster relative to the others (for me). We can

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-19 Thread Lloyd Fournier via RT
For comparison to march on the same comp: bash-3.2$ perl6 perf.p6 perl6-loop: 63.0037058 c-loop: 76.86853305 (0.82 times faster) native-loop: 0.2170930 (354.08 times faster) perl6 loops are faster. c style loops are slower. Native loops are even faster relative to the others (for me). We can

[perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-11-18 Thread Daniel Green via RT
On Sun, 12 Mar 2017 07:27:37 -0700, allber...@gmail.com wrote: > On Sun, Mar 12, 2017 at 12:48 AM, Lloyd Fournier > wrote: > > > perl6-loop: 84.8739988 > > c-loop: 67.65849241 (1.25 times faster) > > native-loop: 0.4981954 (135.81 times faster) > > > >

[perl #132306] [PERF] parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2017-10-14 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
> > > things run faster. > > > > > > The difference is measurable and you can increase the number of > > > loops > > > to observe it even better. > > > > > > > > > This ticket is motivated by a pull request which used that > > > observation > > > to speed things up in rakudo: > > > https://github.com/rakudo/rakudo/pull/1196 > > > > > > > > > This is Rakudo version 2017.09-375-ga0f29e0df built on MoarVM > > > version > > > 2017.09.1-594-gb9d3f6da > > > implementing Perl 6.c.

[perl #132306] [PERF] parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2017-10-14 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
tter. > > > > > > This ticket is motivated by a pull request which used that observation > > to speed things up in rakudo: > > https://github.com/rakudo/rakudo/pull/1196 > > > > > > This is Rakudo version 2017.09-375-ga0f29e0df built on MoarVM version > > 2017.09.1-594-gb9d3f6da > > implementing Perl 6.c.

[perl #132306] [PERF] subroutine parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2017-10-14 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
ence is measurable and you can increase the number of loops > to observe it even better. > > > This ticket is motivated by a pull request which used that observation > to speed things up in rakudo: > https://github.com/rakudo/rakudo/pull/1196 > > > This is Rakudo version 2017.09-375-ga0f29e0df built on MoarVM version > 2017.09.1-594-gb9d3f6da > implementing Perl 6.c.

[perl #132306] [PERF] subroutine parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2017-10-14 Thread via RT
0df built on MoarVM version 2017.09.1-594-gb9d3f6da implementing Perl 6.c.

[perl #127857] [LTA] error message when using commas in c-style “loop” (loop (my $x = 0, $x < 10, $x++) {})

2017-10-08 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
On a slightly more positive note, that PR indeed resolves this ticket. I think the new error message is clear enough. On 2017-10-08 00:52:36, alex.jakime...@gmail.com wrote: > There is a PR but it's really bad: > https://github.com/rakudo/rakudo/pull/1188 > > On 2016-04-07 17:05:15, alex.jakime...

[perl #127857] [RFC] [LTA] error message when using commas in c-style “loop” (loop (my $x = 0, $x < 10, $x++) {})

2017-10-08 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
There is a PR but it's really bad: https://github.com/rakudo/rakudo/pull/1188 On 2016-04-07 17:05:15, alex.jakime...@gmail.com wrote: > Code: > loop (my $x = 0, $x < 10, $x++) {} > > Result: > ===SORRY!=== Error while compiling -e > Malformed loop spec > at -e:1 > --> loop (my $x = 0, $x < 10,

Re: [perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-05 Thread David Warring via RT
; > > > Ie, the embedded struct is not automatically created and defined, when a > > new containing struct is created. > > > > Rakudo version 2017.09-199-gc91c40115 built on MoarVM version > > 2017.09.1-62-g89ca8eb0 > > implementing Perl 6.c. > > > This is more an NYI than a bug... the code for that is more or less > a first-pass draft. There are workarounds (see my xcb module), but they > require surrendering your sanity to dark forces. > >

Re: [perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-05 Thread David Warring
; > > > Ie, the embedded struct is not automatically created and defined, when a > > new containing struct is created. > > > > Rakudo version 2017.09-199-gc91c40115 built on MoarVM version > > 2017.09.1-62-g89ca8eb0 > > implementing Perl 6.c. > > > This is more an NYI than a bug... the code for that is more or less > a first-pass draft. There are workarounds (see my xcb module), but they > require surrendering your sanity to dark forces. > >

[perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-05 Thread Brian S. Julin via RT
gt; in block at /tmp/tst.pl line 15 > > Ie, the embedded struct is not automatically created and defined, when a > new containing struct is created. > > Rakudo version 2017.09-199-gc91c40115 built on MoarVM version > 2017.09.1-62-g89ca8eb0 > implementing Perl 6.c. This i

[perl #132222] [BUG] 'HAS' Embedded C-Structs not working as documented

2017-10-04 Thread via RT
ot look up attributes in a Point type object in block at /tmp/tst.pl line 15 Ie, the embedded struct is not automatically created and defined, when a new containing struct is created. Rakudo version 2017.09-199-gc91c40115 built on MoarVM version 2017.09.1-62-g89ca8eb0 implementing Perl 6.c.

[perl #132091] await handles Slip differently between v6.c and v6.d.PREVIEW

2017-09-15 Thread jn...@jnthn.net via RT
On Thu, 14 Sep 2017 13:30:46 -0700, timo wrote: > I'm using two start blocks that return Slips to generate a long list in > parallel, then i iterate over the result in the Moar Heap Analyzer. > > Trying to take advantage of v6.d's nonblocking await gives me a change > in semantics, though: > >   

[perl #132091] await handles Slip differently between v6.c and v6.d.PREVIEW

2017-09-15 Thread jn...@jnthn.net via RT
On Thu, 14 Sep 2017 13:30:46 -0700, timo wrote: > I'm using two start blocks that return Slips to generate a long list in > parallel, then i iterate over the result in the Moar Heap Analyzer. > > Trying to take advantage of v6.d's nonblocking await gives me a change > in semantics, though: > >   

[perl #132091] await handles Slip differently between v6.c and v6.d.PREVIEW

2017-09-14 Thread via RT
# New Ticket Created by Timo Paulssen # Please include the string: [perl #132091] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132091 > I'm using two start blocks that return Slips to generate a long list in parallel, then i

[perl #131950] [UNI] Combiners are counted as separate graphemes ( ("\c[COMBINING ACUTE ACCENT]" x 5).chars )

2017-08-22 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131950] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131950 > Submitting so that it does not slip through the cracks. m: (

[perl #130798] A andthen B orelse C orelse D leaks some internal Block

2017-04-29 Thread Zoffix Znet via RT
On Fri, 17 Feb 2017 12:41:12 -0800, david.warring wrote: > On Thu, 16 Feb 2017 19:44:47 -0800, lloyd.fo...@gmail.com wrote: > > note (Nil andthen "foo" orelse Nil orelse "bar"); > > -> ;; $_ is raw { #`(Block|140635964425160) ... } > > > > see the previously fixed: > > https://rt.perl.org/Public/Bu

[perl #130798] A andthen B orelse C orelse D leaks some internal Block

2017-04-29 Thread Zoffix Znet via RT
On Fri, 17 Feb 2017 12:41:12 -0800, david.warring wrote: > On Thu, 16 Feb 2017 19:44:47 -0800, lloyd.fo...@gmail.com wrote: > > note (Nil andthen "foo" orelse Nil orelse "bar"); > > -> ;; $_ is raw { #`(Block|140635964425160) ... } > > > > see the previously fixed: > > https://rt.perl.org/Public/Bu

[perl #131111] [@LARRY] %c = %a, %b and @c = @a, @b should behave similarly

2017-04-07 Thread jn...@jnthn.net via RT
ly a much bigger difference than a different choice over flattening! In fact, it's pretty consistent throughout Perl 6 that you need to know about the target of an assignment in order to know what it's going to do with the source. Assignment into a List like `($a, $b) = @c` will happily dis

[perl #131111] [@LARRY] %c = %a, %b and @c = @a, @b should behave similarly

2017-04-06 Thread Zoffix Znet via RT
On Thu, 06 Apr 2017 13:46:00 -0700, alex.jakime...@gmail.com wrote: > Code: > my @a = ; > my @b = <1 2 3>; > my @c = @a, @b; > say @c > > Result: > [[a b c] [1 2 3]] > > > So with arrays, nothing is flattened and you get an array with two > elements.

Re: [perl #131111] [@LARRY] %c = %a, %b and @c = @a, @b should behave similarly

2017-04-06 Thread Brandon Allbery
rl.org> wrote: > # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev > # Please include the string: [perl #13] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/Ticket/Display.html?id=13 > > > > Code: > my @a = ;

[perl #131111] [@LARRY] %c = %a, %b and @c = @a, @b should behave similarly

2017-04-06 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #13] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=13 > Code: my @a = ; my @b = <1 2 3>; my @c = @a, @b; say @c Re

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-03-12 Thread Brandon Allbery
On Sun, Mar 12, 2017 at 12:48 AM, Lloyd Fournier wrote: > perl6-loop: 84.8739988 > c-loop: 67.65849241 (1.25 times faster) > native-loop: 0.4981954 (135.81 times faster) > Still quite a lot of optimization to be done on that front. WRT native int, one of the issues is needing t

Re: [perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-03-11 Thread Lloyd Fournier
If you think that discrepancy is impressive you're going to love this. I added a version to your example using native ints: https://gist.github.com/LLFourn/8c3e895e789fab957355ce23c9420133 bash-3.2$ perl6 native-int-perf.p6 perl6-loop: 84.8739988 c-loop: 67.65849241 (1.25 times faster) n

[perl #130982] [PERF] "for $a..$b -> $i { ... }" loops are sometimes much slower than c-style loops

2017-03-11 Thread via RT
# New Ticket Created by Michael Schaap # Please include the string: [perl #130982] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130982 > Perl6-style simple a-to-b loops are often much slower than the corresponding C-st

[perl #130798] A andthen B orelse C orelse D leaks some internal Block

2017-02-17 Thread Christian Bartolomaeus via RT
der commit (fb4f16 is from 2017-01-03). On HEAD r-j returns 'Empty' as well: $ ./perl6-j 'my $r := do 42 with Nil; say $r.perl;' Empty $ ./perl6-j --version This is Rakudo version 2017.01-223-gffae3ff built on JVM implementing Perl 6.c.

[perl #130798] A andthen B orelse C orelse D leaks some internal Block

2017-02-16 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #130798] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130798 > note (Nil andthen "foo" orelse Nil orelse "bar"); -> ;; $_ is raw { #`(Block|1406359644

Re: [perl #130542] AutoReply: \c[BELL] returns the U+0007 control code not U+1F514 BELL

2017-01-17 Thread Will Coleda
On Sat, Jan 14, 2017 at 6:40 AM, Joachim Durchholz wrote: > Am 14.01.2017 um 11:29 schrieb Samantha McVey: >> >> See here for the commit that added some Alias Names to JVM: >> https://github.com/perl6/nqp/commit/0c249e7236a63325e6440df55a762a4378e6e63a >> >> Hopefully I have explained this well en

Re: [perl #130542] AutoReply: \c[BELL] returns the U+0007 control code not U+1F514 BELL

2017-01-14 Thread Joachim Durchholz
Am 14.01.2017 um 11:29 schrieb Samantha McVey: See here for the commit that added some Alias Names to JVM: https://github.com/perl6/nqp/commit/0c249e7236a63325e6440df55a762a4378e6e63a Hopefully I have explained this well enough. I kinda expected this to be implemented in NQP and hence be iden

Re: [perl #130542] AutoReply: \c[BELL] returns the U+0007 control code not U+1F514 BELL

2017-01-14 Thread Samantha McVey
On Saturday, 14 January 2017 02.06.57 PST you wrote: > > BELL now resolves to 🔔 U+1F514 on MoarVM, but this is still broken on the > > JVM > > What causes this kind of difference? > > > U+0007's Unicode 1 name was BELL, and with version 2 the name was removed. Unicode 1 names are essentiall

Re: [perl #130542] AutoReply: \c[BELL] returns the U+0007 control code not U+1F514 BELL

2017-01-14 Thread Joachim Durchholz
BELL now resolves to 🔔 U+1F514 on MoarVM, but this is still broken on the JVM What causes this kind of difference?

Re: [perl #130542] AutoReply: \c[BELL] returns the U+0007 control code not U+1F514 BELL

2017-01-13 Thread Samantha McVey
This has been fixed on MoarVM as of https://github.com/MoarVM/MoarVM/commit/816186484b5cc52f9ff1be6afa3b6f49264335bf BELL now resolves to 🔔 U+1F514 on MoarVM, but this is still broken on the JVM

[perl #130542] \c[BELL] returns the U+0007 control code not U+1F514 BELL

2017-01-11 Thread via RT
# New Ticket Created by Samantha McVey # Please include the string: [perl #130542] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130542 > Fudged test in S02-literals/char-by-name.t is "\c[BELL]", "🔔"

Re: [perl #130510] [REGRESSION] Cannot assign an array of shape 2 2 to an array of shape 2 2 (my @c[2;2] .= new(:shape(2, 2), , ))

2017-01-05 Thread Elizabeth Mattijsen
e about this issue. > # https://rt.perl.org/Ticket/Display.html?id=130510 > > > > Code: > my @c[2;2] .= new(:shape(2, 2), , )' > > > Result (2015.12,2016.10): > [[1 a] [2 b]] > (1 a 2 b) > > > Result (2016.11,HEAD): > Cannot assign an array o

[perl #130510] [REGRESSION] Cannot assign an array of shape 2 2 to an array of shape 2 2 (my @c[2;2] .= new(:shape(2, 2), , ))

2017-01-04 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #130510] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130510 > Code: my @c[2;2] .= new(:shape(2, 2), , )' Result (2015.12

[perl #130034] A andthen B orelse C leaks some internal Block

2016-12-14 Thread Zoffix Znet via RT
On Sun, 06 Nov 2016 20:25:50 -0800, lloyd.fo...@gmail.com wrote: > 15:18 < llfourn_> m: say (Str andthen .uc orelse "foo") # more golfed > 15:18 <+camelia> rakudo-moar 1c425f: OUTPUT«-> ;; $_ is raw { > #`(Block|81391040) ... }␤» > 15:23 < llfourn_> m: say (Str andthen .uc orelse "foo")("wee") > 1

[perl #130034] A andthen B orelse C leaks some internal Block

2016-11-10 Thread Zoffix Znet via RT
Empty isn't passed as an arg. It's just an empty slip that gets flattened, so `orelse` ends up with a single block as the arg (the thunked "foo"), which gets returned. I don't know whether it should be evaluated first. On Wed, 09 Nov 2016 15:52:35 -0800, lloyd.fo...@gmail.com wrote: > Thanks f

Re: [perl #130034] A andthen B orelse C leaks some internal Block

2016-11-09 Thread Lloyd Fournier
Thanks for the update. As viki hinted at, isn't this a bug in itself (andthen problems aside). Why does Empty as the first arg to orelse return a block? say (Empty orelse "foo") -> ;; $_ is raw { #`(Block|140421623865904) ... } Where as say (Any orelse "foo") returns the correct value. On Thu

[perl #130034] A andthen B orelse C leaks some internal Block

2016-11-09 Thread Zoffix Znet via RT
On Sun, 06 Nov 2016 20:25:50 -0800, lloyd.fo...@gmail.com wrote: > 15:18 < llfourn_> m: say (Str andthen .uc orelse "foo") # more golfed > 15:18 <+camelia> rakudo-moar 1c425f: OUTPUT«-> ;; $_ is raw { > #`(Block|81391040) ... }␤» > 15:23 < llfourn_> m: say (Str andthen .uc orelse "foo")("wee") > 1

[perl #130034] A andthen B orelse C leaks some internal Block

2016-11-06 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #130034] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130034 > 15:18 < llfourn_> m: say (Str andthen .uc orelse "foo") # more golfed 15:18 <+camelia>

[perl #129994] [NATIVECALL][BUG] C functions required to be called once in one thread are hung up

2016-11-02 Thread jn...@jnthn.net via RT
,ワタシ\nEOS\n"); >     my Str $r2 = ("僕\t名詞,代名詞,一般,*,*,*,僕,ボク,ボク\nEOS\n"); >     my @expected = (($r1, $r2) xx 3).flat; >     is @actual, @expected; > }, "MeCab::Tagger should work in the multithread environment"; > --- > > > In the MeCab docume

[perl #129994] [NATIVECALL][BUG] C functions required to be called once in one thread are hung up

2016-11-02 Thread jn...@jnthn.net via RT
,ワタシ\nEOS\n"); >     my Str $r2 = ("僕\t名詞,代名詞,一般,*,*,*,僕,ボク,ボク\nEOS\n"); >     my @expected = (($r1, $r2) xx 3).flat; >     is @actual, @expected; > }, "MeCab::Tagger should work in the multithread environment"; > --- > > > In the MeCab docume

Re: [perl #129994] [NATIVECALL][BUG] C functions required to be called once in one thread are hung up

2016-11-01 Thread Brandon Allbery via RT
On Tue, Nov 1, 2016 at 12:01 PM, Itsuki Toyota wrote: > I think I properly call the MeCab functions from Perl 6(e.g. > $model.create-tagger, $model.create-lattice) according to the above > instructions. > So I think something is wrong in the NativeCall. > Not sure NativeCall even knows about TLS

Re: [perl #129994] [NATIVECALL][BUG] C functions required to be called once in one thread are hung up

2016-11-01 Thread Brandon Allbery
On Tue, Nov 1, 2016 at 12:01 PM, Itsuki Toyota wrote: > I think I properly call the MeCab functions from Perl 6(e.g. > $model.create-tagger, $model.create-lattice) according to the above > instructions. > So I think something is wrong in the NativeCall. > Not sure NativeCall even knows about TLS

[perl #129994] [NATIVECALL][BUG] C functions required to be called once in one thread are hung up

2016-11-01 Thread via RT
S\n");     my Str $r2 = ("僕\t名詞,代名詞,一般,*,*,*,僕,ボク,ボク\nEOS\n");     my @expected = (($r1, $r2) xx 3).flat;     is @actual, @expected; }, "MeCab::Tagger should work in the multithread environment"; --- In the MeCab documentation page(Japanese)  https://taku910.github

[perl #129944] [NATIVECALL][BUG] C-API for C++ returns a "Malformed UTF-8" error when assigning a string value to a private member of a class with set interface and calling it with get interface.

2016-10-22 Thread via RT
  }     method get_sentence {         lattice_get_sentence(self);     } } my $lattice = Lattice.new; $lattice.set_sentence("aaa"); dd $lattice.get_sentence; done-testing; t/04-utf8-wrap.cpp ---- #include #include #include "04-utf8.cpp" #ifdef __cplus

Re: C static analysis on rakudo sources

2016-10-17 Thread Timo Paulssen
Yup! https://scan.coverity.com/projects/paultcochrane-moarvm

Re: C static analysis on rakudo sources

2016-10-16 Thread Michael Franz
BTW http://www.coverity.com/press-releases/press_story54_01_08_08/ From: Tobias Leich Sent: Sunday, October 16, 2016 3:05:36 AM To: Dmitry Karasik; perl6-compi...@perl.org Subject: Re: C static analysis on rakudo sources Hi, I removed the obvious false

Re: C static analysis on rakudo sources

2016-10-16 Thread Tobias Leich
Hi, I removed the obvious false-positives from the list. I'll open tickets by categroy of the errors. Thank you very much! Am 15.10.2016 um 17:26 schrieb Dmitry Karasik: Dear all, I've had access to a of C/C++ static analysis tool PVS Studio, and ran it against the latest rakudo

C static analysis on rakudo sources

2016-10-15 Thread Dmitry Karasik
Dear all, I've had access to a of C/C++ static analysis tool PVS Studio, and ran it against the latest rakudo sources [1]. The majority of notes seems to be noise, but there were found some valid concerns (or at least looking valid to me) f.ex. this: MoarVM/3rdparty/dynasm/dasm_x86.

[perl #129831] [NATIVECALL][BUG] Cannot pass the role instance to the C-side function as an argument

2016-10-08 Thread via RT
t/03-role.h #if ! defined(HEADER_ROLE_H) #define HEADER_ROLE_H #ifdef __cplusplus extern "C" { #endif struct Foo; void c_insert(struct Foo*, void*); #ifdef __cplusplus } /* closing brace for extern "C" */ #endif #endif /* HEADER_ROLE_H */ --

Re: [perl #129304] [REGRESSION] .first with a junction unexpectedly returns a junction (.first: ‘a’|‘c’)

2016-09-19 Thread Elizabeth Mattijsen
Fixed with c78f5dc7df5b1398d2867 , tests needed. > On 19 Sep 2016, at 00:46, Aleks-Daniel Jakimenko-Aleksejev (via RT) > wrote: > > # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev > # Please include the string: [perl #129304] > # in the subject line of all future correspondence abou

[perl #129304] [REGRESSION] .first with a junction unexpectedly returns a junction (.first: ‘a’|‘c’)

2016-09-18 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #129304] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129304 > Differences between 2015.12 and HEAD: committable6: 2015.12,HEAD .f

Re: [perl #129240] [NativeCall] nativesizeof routine returns the different result from sizeof function in C when it takes a CArray object as an argument.

2016-09-11 Thread Tobias Leich via RT
> That size looks doubly wrong to me. Its not going to happen for a 3-element > array no matter how you slice it... so I suspect you're getting the size of > one element, which is itself twice the size of what C thinks. >

Re: [perl #129240] [NativeCall] nativesizeof routine returns the different result from sizeof function in C when it takes a CArray object as an argument.

2016-09-11 Thread Tobias Leich
o happen for a 3-element array no matter how you slice it... so I suspect you're getting the size of one element, which is itself twice the size of what C thinks.

  1   2   3   4   5   6   7   8   9   10   >