Re: [perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Gabor Szabo
On Thu, Aug 10, 2017 at 3:59 PM, Zoffix Znet via RT
 wrote:
> On Thu, 10 Aug 2017 02:09:30 -0700, szab...@gmail.com wrote:
>> In Python one can pass a string to the exit() function
>> Would it be possible to special case
>
> Not really keen on adding special cases to support programming-by-guessing 
> instead of reading the documentation.

I think these days it is way too much to expect people to read and
remember(!) the documentation.
At least no up-front.

However a more common case is the frequent language switching. I keep
typing Python constructs in Perl and Perl constructs in Python. Not to
mention Perl 5 vs 6 constructs. And JavaScript too.

> LTA errors is a pretty common topic, but we seem to be trying to solve the 
> problem by shooting off the hip any time someone brings something up. How 
> about a checklist for what an error must accomplish?

I have not given much thought to it, but I'd like my language to treat
me as a human. Instead of telling me I am stupid, it should give me
direction to fix the problem. Pointing at the specific paragraph in
the documentation can be part of it.

Rakudo does this quite well in some cases. In others less so.
The thing is that now that I try to recall when did Rakudo do well I
cannot really remember.
And that IMHO is a good thing.


Re: [perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Gabor Szabo via RT
On Thu, Aug 10, 2017 at 3:59 PM, Zoffix Znet via RT
 wrote:
> On Thu, 10 Aug 2017 02:09:30 -0700, szab...@gmail.com wrote:
>> In Python one can pass a string to the exit() function
>> Would it be possible to special case
>
> Not really keen on adding special cases to support programming-by-guessing 
> instead of reading the documentation.

I think these days it is way too much to expect people to read and
remember(!) the documentation.
At least no up-front.

However a more common case is the frequent language switching. I keep
typing Python constructs in Perl and Perl constructs in Python. Not to
mention Perl 5 vs 6 constructs. And JavaScript too.

> LTA errors is a pretty common topic, but we seem to be trying to solve the 
> problem by shooting off the hip any time someone brings something up. How 
> about a checklist for what an error must accomplish?

I have not given much thought to it, but I'd like my language to treat
me as a human. Instead of telling me I am stupid, it should give me
direction to fix the problem. Pointing at the specific paragraph in
the documentation can be part of it.

Rakudo does this quite well in some cases. In others less so.
The thing is that now that I try to recall when did Rakudo do well I
cannot really remember.
And that IMHO is a good thing.



Re: [perl #131767] [RESOLVED] Test.pm6 should redirect diagnostics to stdout instead of stderr

2017-07-21 Thread Gabor Szabo via RT
Thank you!



Re: [perl #131767] [RESOLVED] Test.pm6 should redirect diagnostics to stdout instead of stderr

2017-07-21 Thread Gabor Szabo
Thank you!


Re: [perl #131583] [BUG] Sort content of ^methods

2017-06-15 Thread Gabor Szabo
I think the question when would ^methods be used?

Would it be used by people who use the REPL to experiment with the
languages? In that case the listing should be as user friendly as
possible and require as little typing as possible. Having ABC order is
IMHO the easiest to look through.

(e.g. in python it is dir(object) )

If there was some other, even easier way to get this list, that would
be even better.


On Fri, Jun 16, 2017 at 7:26 AM, Lloyd Fournier via RT
<perl6-bugs-follo...@perl.org> wrote:
> Str.^methods.sort(*.name)
>
> Is easy enough once you know to do it :)
> I don't think we should specify a particular order for the returned methods
> and alphabetic sorting is kinda arbitrary. Why not sorted by class
> inheritance for example?
>
> On Fri, Jun 16, 2017 at 2:09 PM Gabor Szabo <perl6-bugs-follo...@perl.org>
> wrote:
>
>> # New Ticket Created by  Gabor Szabo
>> # Please include the string:  [perl #131583]
>> # in the subject line of all future correspondence about this issue.
>> # https://rt.perl.org/Ticket/Display.html?id=131583 >
>>
>>
>> I think it would be better to have the list returned by ^methods
>> sorted in abc order.
>>
>


Re: [perl #131583] [BUG] Sort content of ^methods

2017-06-15 Thread Gabor Szabo via RT
I think the question when would ^methods be used?

Would it be used by people who use the REPL to experiment with the
languages? In that case the listing should be as user friendly as
possible and require as little typing as possible. Having ABC order is
IMHO the easiest to look through.

(e.g. in python it is dir(object) )

If there was some other, even easier way to get this list, that would
be even better.


On Fri, Jun 16, 2017 at 7:26 AM, Lloyd Fournier via RT
<perl6-bugs-follo...@perl.org> wrote:
> Str.^methods.sort(*.name)
>
> Is easy enough once you know to do it :)
> I don't think we should specify a particular order for the returned methods
> and alphabetic sorting is kinda arbitrary. Why not sorted by class
> inheritance for example?
>
> On Fri, Jun 16, 2017 at 2:09 PM Gabor Szabo <perl6-bugs-follo...@perl.org>
> wrote:
>
>> # New Ticket Created by  Gabor Szabo
>> # Please include the string:  [perl #131583]
>> # in the subject line of all future correspondence about this issue.
>> # https://rt.perl.org/Ticket/Display.html?id=131583 >
>>
>>
>> I think it would be better to have the list returned by ^methods
>> sorted in abc order.
>>
>



Re: [perl #123578] shouldn't site be earlier in @*INC ?

2015-01-12 Thread Gabor Szabo
If I recall correctly in Perl 5 the resolution was that the directories in
@INC are ordered
site, vendor, system

I am not sure about Perl 6, but with the above layout I think system would
hold the modules of Rakudo.
vendor would hold the modules of Rakudo Star and site would hold the stuff
that I install myself
using Panda or otherwise.


I ran some experiments from scratch in two ways: (with and without giving
--prefix)
using Rakudo Star 2014.12.1  Source code version and built it on OSX.
I hope these help and I have not just spent time on something that was
already obvious
to everyone else.


1) perl Configure.pl --backends=moar --gen-moar --prefix=/home/gabor/rakudo
   make; make install

$ ~/rakudo/bin/perl6 -e 'say @*INC'
file:/home/gabor/rakudo/languages/perl6/lib
inst:/home/gabor/rakudo/languages/perl6

$ find /Users/gabor/rakudo -name Bailador.pm
/Users/gabor/rakudo/languages/perl6/lib/Bailador.pm

$ ~/rakudo/bin/perl6  /Users/gabor/rakudo/bin/panda
Found no writable directory into which panda could be installed
  in sub make-default-ecosystem at
/home/gabor/rakudo/languages/perl6/lib/Panda/App.pm:18
  in block unit at /Users/gabor/rakudo/bin/panda:11

$ ~/rakudo/bin/perl6 -e 'say @*INC'
inst:/Users/gabor/.perl6/2014.12
file:/home/gabor/rakudo/languages/perl6/lib
inst:/home/gabor/rakudo/languages/perl6
inst:/home/gabor/rakudo/languages/perl6/site

***  So by running panda I got some more entries in @*INC


$ ~/rakudo/bin/perl6  /Users/gabor/rakudo/bin/panda install Bailador


$ find /Users/gabor/rakudo -name Bailador.pm
/Users/gabor/rakudo/languages/perl6/lib/Bailador.pm
/Users/gabor/rakudo/languages/perl6/site/lib/Bailador.pm

** panda installs Bailador in the site  dir which comes after the
regular



1) perl Configure.pl --backends=moar --gen-moar
   make; make install


$ perl6 -e 'say @*INC'

file:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib
inst:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6
inst:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/site

 has a different @*INC than what I had when I built it with
--prefix. This one already has a site directory

$ find /Users/gabor/rakudo-star-2014.12.1 -name Bailador.pm
/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib/Bailador.pm
/Users/gabor/rakudo-star-2014.12.1/modules/Bailador/lib/Bailador.pm

** as I understand the one in the modules directory came with the
source code of Rakudo * and the one in the install is the installed version
of it.

$ ~/rakudo-star-2014.12.1/install/bin/perl6
~/rakudo-star-2014.12.1/install/bin/panda install Bailador
...

$ perl6 -e 'say @*INC'

file:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib
file:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/site/lib
inst:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6
inst:/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/site

** by installing Bailador, the @*INC was changed

$ find /Users/gabor/rakudo-star-2014.12.1 -name Bailador.pm
/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/lib/Bailador.pm
/Users/gabor/rakudo-star-2014.12.1/install/languages/perl6/site/lib/Bailador.pm
/Users/gabor/rakudo-star-2014.12.1/modules/Bailador/lib/Bailador.pm

* and now I have a third copy of Bailador.pm


Gabor


Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 2:27 PM, Moritz Lenz via RT 
perl6-bugs-follo...@perl.org wrote:

 On 10.01.2015 12:45, Gabor Szabo wrote:
  If I put
 
  #!/usr/bin/env perl6
 
  as the sh-bang of either of those script, they start to work.

 That's quite dangerous. Precompiled modules (on which scripts often
 depend) only work with the rakudo that compiled them. If a different one
 is in $PATH before that, the scripts will start to fail with weird errors.


Well, I am not suggesting it should be set that way, I don't know how it
'should' be.
I was just reporting what worked and what did not work for me.




 Does #!/usr/bin/env /full/path/to/perl6-m work?


yes, I just tried putting this in p6doc:

#!/usr/bin/env /Users/gabor/rakudo-star-2014.12.1/install/bin/perl6-m
and then I could run p6doc on the command line.

Gabor


Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2015-01-10 Thread Gabor Szabo
If I put

#!/usr/bin/env perl6

as the sh-bang of either of those script, they start to work.

Gabor


Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2015-01-10 Thread Gabor Szabo
/Users/gabor/rakudo-star-2014.12.1/install/bin/perl6-m

On Sat, Jan 10, 2015 at 1:49 PM, Tobias Leich via RT 
perl6-bugs-follo...@perl.org wrote:

 what was in there before?

 Am 10.01.2015 um 12:45 schrieb Gabor Szabo:
  If I put
 
  #!/usr/bin/env perl6
 
  as the sh-bang of either of those script, they start to work.
 




Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2015-01-10 Thread Gabor Szabo
Or more specifically

#!/Users/gabor/rakudo-star-2014.12.1/install/bin/perl6-m

On Sat, Jan 10, 2015 at 1:57 PM, Gabor Szabo ga...@szabgab.com wrote:

 /Users/gabor/rakudo-star-2014.12.1/install/bin/perl6-m


 On Sat, Jan 10, 2015 at 1:49 PM, Tobias Leich via RT 
 perl6-bugs-follo...@perl.org wrote:

 what was in there before?

 Am 10.01.2015 um 12:45 schrieb Gabor Szabo:
  If I put
 
  #!/usr/bin/env perl6
 
  as the sh-bang of either of those script, they start to work.
 




Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2014-12-29 Thread Gabor Szabo
The same happens with panda. If I try to run directly I get

/Users/gabor/rakudo-star-2014.12.1/install/bin/panda: line 2: use: command
not found

/Users/gabor/rakudo-star-2014.12.1/install/bin/panda: line 3: use: command
not found

/Users/gabor/rakudo-star-2014.12.1/install/bin/panda: line 4: use: command
not found

/Users/gabor/rakudo-star-2014.12.1/install/bin/panda: line 5: use: command
not found

/Users/gabor/rakudo-star-2014.12.1/install/bin/panda: line 9: syntax error
near unexpected token `('

/Users/gabor/rakudo-star-2014.12.1/install/bin/panda: line 9: `@*ARGS =
%*ENVPANDA_DEFAULT_OPTS ~ (@*ARGS ?? ' ' ~ @*ARGS !! '');'


but if I run

perl6 /Users/gabor/rakudo-star-2014.12.1/install/bin/panda

then it works.

Is there something broken in my environment?


Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2014-12-27 Thread Gabor Szabo
When running as

perl6 /Users/gabor/rakudo-star-2014.12.1/install/bin/p6doc

or as

perl6-m /Users/gabor/rakudo-star-2014.12.1/install/bin/p6doc
then it works.


Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2014-12-27 Thread Gabor Szabo
Same in Rakudo Star 2014.12 and 2014.12.1


Re: No more Rakudo *?

2013-05-07 Thread Gabor Szabo
I started to write a stand-alone script that would build and test
Rakudo and then a bunch of modules,
but probably it would be easier to just try to build Rakudo *
including all the modules and
put together a report on issues encountered.

I cloned Rakodo * from https://github.com/rakudo/star and tried to build it with

perl Configure.pl --gen-parrot

it complained I am in a .git directory and then quit.

I tried to force it using

  perl Configure.pl --gen-parrot --force

this time it stopped with

   Unable to read rakudo/tools/build/NQP_REVISION

The README of Rakudo * tells me there is supposed to be a rakudo/
subdirectory, but there
isn't and the subdirectories inside modules/ are also empty.

Do I first need to manually clone Rakudo and the modules from Gihub
and then use the --force or is
there something else I need to do?
Do I understand correctly that in a real Rakudo * release you'd check out the
labeled release of Rakudo and the latest versions of the modules and
then start the build process?

regards
Gabor


No more Rakudo *?

2013-05-03 Thread Gabor Szabo
http://rakudo.org/ tells me the latest Rakudo * was more than 2 months ago.
(version 2013.02)

Besides, it would be nice to see plain Rakudo release announcements
reach that site.
Even if only a few lines.

regards
Gabor


Rakudo * 2013.02

2013-03-13 Thread Gabor Szabo
1) I think it has not told me the installation finished - it was just done.
2) It installed in c:\rakudo without a question or without telling me
it will do so
3) It has not configured PATH to include c:\rakudo
After doing it manually, perl6 -v worked from the command line.

4) You cannot use p6doc from the command line so I created a file called
c:\rakudo\bin\p6doc.bat   with the following content:
@%~dp0perl6.exe %~dp0p6doc %*

this will launch the perl6.exe from the same directory where the
p6doc.bat file is and will pass all the
parameters it got to the script.  After that runningp6doc Str  worked

5) Same with panda
c:\rakudo\bin\panda.bat   with the following content:
@%~dp0perl6.exe %~dp0panda %*

Explanation:
The leading @ turns off echoing the command
%~dp0 is the path to the directory where the bat file currently
executed can be found, it already includes the trailing back-slash \
%* includes all the command line parameters

6) After a bit of searching I found that the
c:\rakudo\lib\parrot\4.10.0\languages\perl6\lib is the location where
the modules coming with Rakudo * are installed
but I have not found any easy way to list them. Is there any? Is there
a list of the modules that come with Rakudo * ?

That's it for now.


   Gabor


Building Rakudo on Windows failed

2012-12-25 Thread Gabor Szabo
Hi,

I just tried to build Rakudo on a Windows machine with Strawberry Perl
5.16.2 installed.

I'd appreciate your help in compiling it.

Gabor


C:\work\rakudoperl Configure.pl --gen-parrot --gen-nqp
'C:/work/rakudo/install/bin/nqp.exe' is not recognized as an internal
or external command,
operable program or batch file.
HEAD is now at 6d4973f... bump VERSION to 2012.12
C:/work/rakudo/install/bin/parrot.exe is Parrot RELEASE_4_10_0.
Building NQP ...
C:\strawberry_5_16_2_1\perl\bin\perl.exe Configure.pl
--with-parrot=C:/work/rakudo/install/bin/parrot.exe --make-install
Verifying installation ...
Using C:/work/rakudo/install/bin/parrot.exe (version RELEASE_4_10_0).
Writing following configuration to ConfigVars:

Host OS: windows
Target OS:   windows
Target Architecture: x86
Compiler:gcc
Assembler:   as
Build configuration: release
Install prefix:
C:\work\rakudo\nqp\3rdparty\dyncall\install_windows_x86_gcc_release
Build prefix:
C:\work\rakudo\nqp\3rdparty\dyncall\build_out\windows_x86_gcc_release

Creating Makefile ...
Cleaning up ...
C:/Program Files/Git/bin/sh.exe:
C:strawberry_5_16_2_1perlbinperl.exe: command not found
gmake: *** [clean] Error 127
C:\strawberry_5_16_2_1\perl\bin\perl.exe
C:\work\rakudo\install\lib\parrot\4.10.0-devel\tools\build\pmc2c.pl
--no-lines --dump --include sr
\pmc --include C:\work\rakudo\install\src\parrot\4.10.0-devel
--include C:\work\rakudo\install\src\parrot\4.10.0-devel\pmc
src\pmc\stable.p
c src\pmc\sixmodelobject.pmc src\pmc\nqplexinfo.pmc
src\pmc\nqplexpad.pmc src\pmc\serializationcontext.pmc
src\pmc\ownedhash.pmc src\pmc\ow
edresizablepmcarray.pmc src\pmc\qrpa.pmc
C:\strawberry_5_16_2_1\perl\bin\perl.exe
C:\work\rakudo\install\lib\parrot\4.10.0-devel\tools\build\pmc2c.pl
--no-lines --c --include src\p
c --include C:\work\rakudo\install\src\parrot\4.10.0-devel --include
C:\work\rakudo\install\src\parrot\4.10.0-devel\pmc src\pmc\stable.pmc
rc\pmc\sixmodelobject.pmc src\pmc\nqplexinfo.pmc src\pmc\nqplexpad.pmc
src\pmc\serializationcontext.pmc src\pmc\ownedhash.pmc src\pmc\owned
esizablepmcarray.pmc src\pmc\qrpa.pmc
C:\strawberry_5_16_2_1\perl\bin\perl.exe
C:\work\rakudo\install\lib\parrot\4.10.0-devel\tools\build\pmc2c.pl
--no-lines --library nqp_group
--c src\pmc\stable.pmc src\pmc\sixmodelobject.pmc
src\pmc\nqplexinfo.pmc src\pmc\nqplexpad.pmc
src\pmc\serializationcontext.pmc src\pmc\own
dhash.pmc src\pmc\ownedresizablepmcarray.pmc src\pmc\qrpa.pmc
gcc -c -o nqp_group.o -Isrc\pmc
-IC:\work\rakudo\install\include\parrot\4.10.0-devel
-IC:\work\rakudo\install\include\parrot\4.10.0-devel\p
c -DWIN32 -DWINVER=Windows2000  -DHASATTRIBUTE_CONST
-DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC
-DHASATTRIBUTE_NONNULL  -DHASATTRIB
TE_NORETURN  -DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED
-DHASATTRIBUTE_WARN_UNUSED_RESULT  -DHASATTRIBUTE_HOT
-DHASATTRIBUTE_COLD  -DDISA
LE_GC_DEBUG=1 -DNDEBUG-falign-functions=16 -funit-at-a-time
-fexcess-precision=standard -maccumulate-outgoing-args -Wall -Wextra
-Waggr
gate-return -Wcast-align -Wcast-qual -Wdisabled-optimization
-Wdiv-by-zero -Wendif-labels -Wformat-extra-args -Wformat-nonliteral
-Wformat-
ecurity -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline
-Winvalid-pch -Wjump-misses-init -Wlogical-op -Werror=missing-braces
-Wmissin
-declarations -Wno-missing-format-attribute -Wmissing-include-dirs
-Wmultichar -Wpacked -Wpointer-arith -Wreturn-type -Wsequence-point
-Wsi
n-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch
-Wswitch-default -Werror=undef -Wno-unused -Wvariadic-macros
-Wwrite-strings -Wc++
compat -Werror=declaration-after-statement
-Werror=implicit-function-declaration -Wmissing-prototypes
-Werror=nested-externs -Werror=old-st
le-definition -Werror=strict-prototypes -fvisibility=hidden  -s -O2 nqp_group.c
cd src\pmc  gcc -c
-IC:\work\rakudo\install\include\parrot\4.10.0-devel
-IC:\work\rakudo\install\include\parrot\4.10.0-devel\pmc -I..\..\
rdparty\libtommath -DWIN32 -DWINVER=Windows2000  -DHASATTRIBUTE_CONST
-DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NON
ULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE
-DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT
-DHASATTRIBUTE_HOT  -DHASATTRI
UTE_COLD  -DDISABLE_GC_DEBUG=1 -DNDEBUG-falign-functions=16
-funit-at-a-time -fexcess-precision=standard
-maccumulate-outgoing-args -Wa
l -Wextra -Waggregate-return -Wcast-align -Wcast-qual
-Wdisabled-optimization -Wdiv-by-zero -Wendif-labels
-Wformat-extra-args -Wformat-non
iteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self
-Winline -Winvalid-pch -Wjump-misses-init -Wlogical-op -Werror=missin
-braces -Wmissing-declarations -Wno-missing-format-attribute
-Wmissing-include-dirs -Wmultichar -Wpacked -Wpointer-arith
-Wreturn-type -Wse
uence-point -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2
-Wswitch -Wswitch-default -Werror=undef -Wno-unused -Wvariadic-macros
-Wwr
te-strings -Wc++-compat -Werror=declaration-after-statement

Re: Segmentation fault while trying to build Rakudo

2012-08-26 Thread Gabor Szabo
After updating Rakudo to the latest and increasing the swap disk to 3
Gb I get this Segmentation fault.
   Gabor

cd src/6model/reprs  cc -c -o CStr.o -I../../../src/pmc
-I/home/gabor/work/rakudo_b/install/include/parrot/4.4.0-devel
-I/home/gabor/work/rakudo_b/install/include/parrot/4.4.0-devel/pmc
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN  -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC
 -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE
-DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT
-DHASATTRIBUTE_HOT  -DHASATTRIBUTE_COLD  -DDISABLE_GC_DEBUG=1 -DNDEBUG
-DHAS_GETTEXT -fPIC  -falign-functions=16 -funit-at-a-time
-fexcess-precision=standard -maccumulate-outgoing-args -W -Wall
-Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts
-Wcomment -Wdisabled-optimization -Wdiv-by-zero -Wenum-compare
-Wendif-labels -Wextra -Wformat -Wformat-extra-args
-Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport
-Winit-self -Winline -Winvalid-pch -Wjump-misses-init -Wlogical-op
-Werror=missing-braces -Wmissing-declarations
-Wmissing-field-initializers -Wno-missing-format-attribute
-Wmissing-include-dirs -Wmultichar -Wpacked -Wparentheses
-Wpointer-arith -Wpointer-sign -Wreturn-type -Wsequence-point
-Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch
-Wswitch-default -Wtrigraphs -Werror=undef -Wno-unused
-Wunknown-pragmas -Wvariadic-macros -Wwrite-strings -Wc++-compat
-Werror=declaration-after-statement
-Werror=implicit-function-declaration -Wmissing-prototypes
-Werror=nested-externs -Werror=old-style-definition
-Werror=strict-prototypes -fvisibility=hidden  -O2 -g CStr.c
CStr.c: In function ‘gc_free’:
CStr.c:90:5: warning: dereferencing type-punned pointer might break
strict-aliasing rules [-Wstrict-aliasing]
CStr.c: In function ‘get_storage_spec’:
CStr.c:97:21: warning: function returns an aggregate [-Waggregate-return]
cd src/ops  cc -o nqp_dyncall_ops.so nqp_dyncall_ops.o
../6model/reprs/NativeCall.o ../6model/reprs/CStruct.o
../6model/reprs/CPointer.o ../6model/reprs/CArray.o
../6model/reprs/CStr.o ../../3rdparty/dyncall/dyncall/libdyncall_s.a
../../3rdparty/dyncall/dyncallback/libdyncallback_s.a
../../3rdparty/dyncall/dynload/libdynload_s.a -fstack-protector
-L/usr/local/lib  -shared -O2 -g -L/usr/local/lib -fstack-protector
-fPIC  -ldl -lm -lpthread -lcrypt -lrt
/usr/bin/perl -MExtUtils::Command -e cp src/pmc/nqp_group.so dynext
/usr/bin/perl -MExtUtils::Command -e cp src/ops/nqp_ops.so dynext
/usr/bin/perl -MExtUtils::Command -e cp src/ops/nqp_bigint_ops.so dynext
/usr/bin/perl -MExtUtils::Command -e cp src/ops/nqp_dyncall_ops.so dynext
/usr/bin/perl -MExtUtils::Command -e chmod 755 dynext/nqp_group.so
/usr/bin/perl -MExtUtils::Command -e chmod 755 dynext/nqp_ops.so
/home/gabor/work/rakudo_b/install/bin/parrot -o PASTRegex.pbc
src/PASTRegex.pir src/PAST/SixModelPASTExtensions.pir src/PAST/NQP.pir
src/cheats/parrot-callcontext.pir src/cheats/parrot-sub.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/nqpmo.pbc
src/stage0/NQPMO-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o
src/stage0/ModuleLoader.pbc src/stage0/ModuleLoader-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o
src/stage0/NQPCORE.setting.pbc src/stage0/NQPCORE.setting-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/QRegex.pbc
 src/stage0/QRegex-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/NQPHLL.pbc
src/stage0/HLL-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/QAST.pbc
 src/stage0/QAST-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o
src/stage0/NQPP6QRegex.pbc src/stage0/P6QRegex-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/nqp.pbc
 src/stage0/NQP-s0.pir
/usr/bin/perl -MExtUtils::Command -e mkpath src/stage1/gen
/usr/bin/perl tools/build/gen-cat.pl src/how/Archetypes.pm
src/how/RoleToRoleApplier.pm src/how/NQPConcreteRoleHOW.pm
src/how/RoleToClassApplier.pm src/how/NQPParametricRoleHOW.pm
src/how/NQPClassHOW.pm src/how/NQPNativeHOW.pm src/how/NQPAttribute.pm
src/how/NQPModuleHOW.pm src/how/EXPORTHOW.pm  
src/stage1/gen/nqp-mo.pm
/home/gabor/work/rakudo_b/install/bin/parrot --library=src/stage0
src/stage0/nqp.pbc \
--target=pir --output=src/stage1/gen/nqp-mo.pir \
--setting=NULL --no-regex-lib src/stage1/gen/nqp-mo.pm
make: *** [src/stage1/nqpmo.pbc] Segmentation fault (core dumped)
Command failed (status 512): make
Command failed (status 512): /usr/bin/perl Configure.pl
--with-parrot=/home/gabor/work/rakudo_b/install/bin/parrot
--make-install


Segmentation fault while trying to build Rakudo

2012-08-14 Thread Gabor Szabo
time perl Configure.pl --gen-parrot --gen-nqp

...

/usr/bin/perl -MExtUtils::Command -e cp src/pmc/nqp_group.so dynext
/usr/bin/perl -MExtUtils::Command -e cp src/ops/nqp_ops.so dynext
/usr/bin/perl -MExtUtils::Command -e cp src/ops/nqp_bigint_ops.so dynext
/usr/bin/perl -MExtUtils::Command -e cp src/ops/nqp_dyncall_ops.so dynext
/usr/bin/perl -MExtUtils::Command -e chmod 755 dynext/nqp_group.so
/usr/bin/perl -MExtUtils::Command -e chmod 755 dynext/nqp_ops.so
/home/gabor/work/rakudo_b/install/bin/parrot -o PASTRegex.pbc
src/PASTRegex.pir src/PAST/SixModelPASTExtensions.pir src/PAST/NQP.pir
src/cheats/parrot-callcontext.pir src/cheats/parrot-sub.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/nqpmo.pbc
src/stage0/NQPMO-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o
src/stage0/ModuleLoader.pbc src/stage0/ModuleLoader-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o
src/stage0/NQPCORE.setting.pbc src/stage0/NQPCORE.setting-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/QRegex.pbc
 src/stage0/QRegex-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/NQPHLL.pbc
src/stage0/HLL-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/QAST.pbc
 src/stage0/QAST-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o
src/stage0/NQPP6QRegex.pbc src/stage0/P6QRegex-s0.pir
/home/gabor/work/rakudo_b/install/bin/parrot -o src/stage0/nqp.pbc
 src/stage0/NQP-s0.pir
/usr/bin/perl -MExtUtils::Command -e mkpath src/stage1/gen
/usr/bin/perl tools/build/gen-cat.pl src/how/Archetypes.pm
src/how/RoleToRoleApplier.pm src/how/NQPConcreteRoleHOW.pm
src/how/RoleToClassApplier.pm src/how/NQPParametricRoleHOW.pm
src/how/NQPClassHOW.pm src/how/NQPNativeHOW.pm src/how/NQPAttribute.pm
src/how/NQPModuleHOW.pm src/how/EXPORTHOW.pm  
src/stage1/gen/nqp-mo.pm
/home/gabor/work/rakudo_b/install/bin/parrot --library=src/stage0
src/stage0/nqp.pbc \
--target=pir --output=src/stage1/gen/nqp-mo.pir \
--setting=NULL --no-regex-lib src/stage1/gen/nqp-mo.pm
make: *** [src/stage1/nqpmo.pbc] Segmentation fault (core dumped)
Command failed (status 512): make
Command failed (status 512): /usr/bin/perl Configure.pl
--with-parrot=/home/gabor/work/rakudo_b/install/bin/parrot
--make-install


This is an 64 bit Ubuntu 12.4 VPS (hosted on Linode) with 512 Mb
memory and 1 Gb swap space.

After running it again, I got the same error but I did not see the
memory filling up,
so maybe it is not a memory issue.

regards
   Gabor


How to get Rakudo for Windows

2012-08-14 Thread Gabor Szabo
hi,

probably it would be nice if on http://rakudo.org/how-to-get-rakudo/
it was mentioned
where can people get the msi windows installer from?

Which was mentioned in the lates blog post:
http://rakudo.org/2012/07/30/windows-msi-available-for-rakudo-star-2012-07/

Gabor


spectest failures on Windows on Rakudo

2012-07-27 Thread Gabor Szabo
Hi,

I just built Rakudo on Windows and run gmake spectest

This is the summary:

Test Summary Report
---
t\spec\S02-literals\quoting.rakudo  (Wstat: 0
Tests: 152 Failed: 1)
  Failed test:  152
t\spec\S02-types\version.t  (Wstat: 0
Tests: 35 Failed: 6)
  Failed tests:  21-26
t\spec\S03-operators\arith.rakudo   (Wstat: 0
Tests: 143 Failed: 1)
  Failed test:  112
t\spec\S16-filehandles\filestat.t   (Wstat: 256
Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 13 tests but ran 8.
t\spec\S16-filehandles\io.rakudo(Wstat: 256
Tests: 81 Failed: 0)
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 84 tests but ran 81.
t\spec\S26-documentation\03-abbreviated.t   (Wstat: 256
Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t\spec\S26-documentation\04-code.t  (Wstat: 0
Tests: 50 Failed: 1)
  Failed test:  3
t\spec\S26-documentation\05-comment.t   (Wstat: 256
Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t\spec\S26-documentation\07-tables.t(Wstat: 0
Tests: 38 Failed: 29)
  Failed tests:  3-6, 8-11, 16-24, 26-37
t\spec\S26-documentation\08-formattingcodes.t   (Wstat: 256
Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t\spec\S32-num\power.rakudo (Wstat: 0
Tests: 43 Failed: 1)
  Failed test:  11
t\spec\S32-str\sprintf.rakudo   (Wstat: 0
Tests: 125 Failed: 6)
  Failed tests:  107-112
t\spec\S32-str\substr.rakudo(Wstat: 256
Tests: 27 Failed: 0)
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 90 tests but ran 27.
Files=658, Tests=20775, 1326 wallclock secs ( 6.19 usr +  1.44 sys =  7.63 CPU)
Result: FAIL


adding line numbers to Test.pm failures

2012-07-22 Thread Gabor Szabo
Hi,

when something fails Test::More of Perl 5 can tell me which line in
the test file it was called.

I see the Backtrace module could supply this information.
The question if it would be ok if I tried to add this to the Test.pm module?

regards
   Gabor


Re: a method with the name of an attribute creates infinite loop

2012-07-13 Thread Gabor Szabo
Oh, once I found the problem, I just renamed my method. That's ok.
The thing is that it would be nice if Rakudo caught this and told me about it
as I think I am not the last one to make this error.

Anyway, thanks for your solution too!

regards
   Gabor

On Fri, Jul 13, 2012 at 9:20 AM, Tadeusz Sośnierz
tadeusz.sosni...@onet.pl wrote:
 On Friday, July 13, 2012 08:18:19 Gabor Szabo wrote:
method add {
   say 'before';
   @.add.push( 42 );

 If I recall correctly, calling @.add() is the same as @(self.add). Calling a
 method recursively without ending is bound to go into an infinite loop :)

 To avoid that you can call push on the attribute, directly, without going
 through the accessor method:

 === CODE ===
 class A {
has @.add;
method add {
   say 'before';
   @!add.push( 42 );
   say 'ever after';
}
 }

 A.new.add;

 Which works without problems:
 === RESULT ===
 before
 ever after


 Kind regards,
 Tadeusz Sośnierz


Re: Test.pm function not returning truth

2012-07-12 Thread Gabor Szabo
On Thu, Jul 12, 2012 at 9:58 AM, Patrick R. Michaud pmich...@pobox.com wrote:
 On Thu, Jul 12, 2012 at 08:31:38AM +0300, Gabor Szabo wrote:
 Hi,

 I looked at lib/Test.pm and noticed that most (if not all) of the
 functions have
 some time measuring code in them and they return a timestamp instead
 of the truth value.

 Would it be ok if I changed that so they will always return true/false?

 +1

pull requests sent.

Gabor


accepting incorrect syntax?

2012-07-11 Thread Gabor Szabo
I wonder if the first one is a bug:


use v6;
my @x = (
{ a = 1}
{b = 2 }
);
say @x.perl;

prints  Array.new({b = 2})



Almost the same code:

use v6;
my @x = (
{ a = 1} {b = 2 }
);
say @x.perl;

===SORRY!===
Malformed initializer


Gabor


Re: accepting incorrect syntax?

2012-07-11 Thread Gabor Szabo
On Wed, Jul 11, 2012 at 11:02 AM, Moritz Lenz mor...@faui2k3.org wrote:
 Am 11.07.2012 09:55, schrieb Gabor Szabo:

 I wonder if the first one is a bug:


 use v6;
 my @x = (
 { a = 1}
 {b = 2 }
 );
 say @x.perl;

 prints  Array.new({b = 2})


 This is actually correct. It parses as


 my @x = ( {a = 1}; {b = 2} );

 Which is roughly the same as

 my @x = ( do {  {a = 1}; {b = 2} });

 In general, a semicolon can be omitted after a closing bracket before the
 end of the line. That's why you don't need a semicolon after

 if $condition {
say 'something';

 }


 Almost the same code:

 use v6;
 my @x = (
 { a = 1} {b = 2 }
 );
 say @x.perl;

 ===SORRY!===
 Malformed initializer


 Niezca has a better error message:

 Unexpected block in infix position (two terms in a row, or previous
 statement missing semicolon?)

Thanks for the explanation.

This means the newline matters.

Gabor


Test.pm function not returning truth

2012-07-11 Thread Gabor Szabo
Hi,

I looked at lib/Test.pm and noticed that most (if not all) of the
functions have
some time measuring code in them and they return a timestamp instead
of the truth value.

Would it be ok if I changed that so they will always return true/false?

Gabor


Re: [perl #113886] Re: no ICU lib loaded - rakudo and parrot issue

2012-07-02 Thread Gabor Szabo
On Mon, Jul 2, 2012 at 9:08 AM, Patrick R. Michaud pmich...@pobox.com wrote:
 This is now fixed in HEAD and will appear in the next release:

nice, thank you!

Gabor


Rakudo compilation failure

2012-06-27 Thread Gabor Szabo
I have a freshly cloned rakudo and tried to build it on an Ubuntu
12.04 (32 bit) it failed here.
The machine has 512Mb RAM and 256 Mb swaps space and it seems they
were both full.

Is that it or they are unrelated? How much is the minimum memory required?

/usr/bin/perl tools/build/gen-cat.pl src/Perl6/Metamodel/Archetypes.pm
src/Perl6/Metamodel/Naming.pm src/Perl6/Metamodel/Documenting.pm
src/Perl6/Metamodel/Stashing.pm src/Perl6/Metamodel/Versioning.pm
src/Perl6/Metamodel/TypePretense.pm
src/Perl6/Metamodel/MethodDelegation.pm
src/Perl6/Metamodel/BoolificationProtocol.pm
src/Perl6/Metamodel/PackageHOW.pm src/Perl6/Metamodel/ModuleHOW.pm
src/Perl6/Metamodel/GenericHOW.pm
src/Perl6/Metamodel/AttributeContainer.pm
src/Perl6/Metamodel/MethodContainer.pm
src/Perl6/Metamodel/PrivateMethodContainer.pm
src/Perl6/Metamodel/MultiMethodContainer.pm
src/Perl6/Metamodel/RoleContainer.pm
src/Perl6/Metamodel/MultipleInheritance.pm
src/Perl6/Metamodel/DefaultParent.pm src/Perl6/Metamodel/BaseType.pm
src/Perl6/Metamodel/C3MRO.pm
src/Perl6/Metamodel/MROBasedMethodDispatch.pm
src/Perl6/Metamodel/MROBasedTypeChecking.pm
src/Perl6/Metamodel/Trusting.pm src/Perl6/Metamodel/Mixins.pm
src/Perl6/Metamodel/BUILDPLAN.pm src/Perl6/Metamodel/ParrotInterop.pm
src/Perl6/Metamodel/RolePunning.pm
src/Perl6/Metamodel/RoleToRoleApplier.pm
src/Perl6/Metamodel/ConcreteRoleHOW.pm
src/Perl6/Metamodel/CurriedRoleHOW.pm
src/Perl6/Metamodel/ParametricRoleHOW.pm
src/Perl6/Metamodel/ParametricRoleGroupHOW.pm
src/Perl6/Metamodel/RoleToClassApplier.pm
src/Perl6/Metamodel/ClassHOW.pm src/Perl6/Metamodel/GrammarHOW.pm
src/Perl6/Metamodel/NativeHOW.pm src/Perl6/Metamodel/SubsetHOW.pm
src/Perl6/Metamodel/EnumHOW.pm
src/Perl6/Metamodel/ContainerDescriptor.pm
src/Perl6/Metamodel/StaticLexPad.pm src/Perl6/Metamodel/Dispatchers.pm
  src/gen/Metamodel.pm
/home/gabor/work/rakudo_a/install/bin/nqp --target=pir
--output=src/gen/perl6-metamodel.pir --encoding=utf8 \
--vmlibs=perl6_ops src/gen/Metamodel.pm
/home/gabor/work/rakudo_a/install/bin/parrot  -o
blib/Perl6/Metamodel.pbc src/gen/perl6-metamodel.pir
/usr/bin/perl tools/build/gen-cat.pl src/Perl6/Metamodel/BOOTSTRAP.pm
src/Perl6/Metamodel/EXPORTHOW.pm   src/gen/BOOTSTRAP.pm
/home/gabor/work/rakudo_a/install/bin/nqp --target=pir
--output=src/gen/perl6-bootstrap.pir --encoding=utf8 \
--vmlibs=perl6_ops src/gen/BOOTSTRAP.pm
/home/gabor/work/rakudo_a/install/bin/parrot  -o
blib/Perl6/BOOTSTRAP.pbc src/gen/perl6-bootstrap.pir
/usr/bin/perl tools/build/gen-cat.pl src/core/traits.pm
src/core/Positional.pm src/core/Associative.pm src/core/Callable.pm
src/core/natives.pm src/core/stubs.pm src/core/control.pm
src/core/Mu.pm src/core/Stringy.pm src/core/Any.pm src/core/Scalar.pm
src/core/Code.pm src/core/WhateverCode.pm src/core/Block.pm
src/core/Attribute.pm src/core/Routine.pm src/core/Sub.pm
src/core/Macro.pm src/core/Method.pm src/core/Submethod.pm
src/core/Junction.pm src/core/Cool.pm src/core/Enumeration.pm
src/core/Whatever.pm src/core/Bool.pm src/core/Numeric.pm
src/core/Real.pm src/core/Int.pm src/core/Order.pm src/core/UInt64.pm
src/core/Num.pm src/core/Str.pm src/core/Capture.pm src/core/Parcel.pm
src/core/Iterable.pm src/core/Iterator.pm src/core/Nil.pm
src/core/Range.pm src/core/ListIter.pm src/core/MapIter.pm
src/core/GatherIter.pm src/core/List.pm src/core/LoL.pm
src/core/Array.pm src/core/Enum.pm src/core/Pair.pm
src/core/EnumMap.pm src/core/Hash.pm src/core/Stash.pm
src/core/PseudoStash.pm src/core/Parameter.pm src/core/Signature.pm
src/core/Buf.pm src/core/IO.pm src/core/IO/ArgFiles.pm
src/core/IO/Socket.pm src/core/IO/Socket/INET.pm src/core/Rational.pm
src/core/Rat.pm src/core/Complex.pm src/core/Backtrace.pm
src/core/Exception.pm src/core/Failure.pm src/core/Match.pm
src/core/Cursor.pm src/core/Grammar.pm src/core/Regex.pm
src/core/AST.pm src/core/CallFrame.pm src/core/Main.pm
src/core/tai-utc.pm src/core/Instant.pm src/core/Duration.pm
src/core/Temporal.pm src/core/EXPORTHOW.pm src/core/Pod.pm
src/core/Set.pm src/core/Bag.pm src/core/ObjAt.pm src/core/Version.pm
src/core/operators.pm src/core/metaops.pm src/core/terms.pm
src/core/LazyScalar.pm src/core/you_are_here.pm  
src/gen/CORE.setting
The following step can take a long time, please be patient.
./perl6 --setting=NULL --optimize=3 --target=pir --stagestats
--output=src/gen/CORE.setting.pir src/gen/CORE.setting
Stage parse: 136.012
Stage syntaxcheck: 0.000
Stage past: 0.000
Stage optimize: 14.941
Stage post: 77.115
Killed
make: *** [CORE.setting.pbc] Error 137


Cannot build Parrot (and thus Rakudo) on Windows 7

2011-01-21 Thread Gabor Szabo
D:\work\rakudoperl Configure.pl --gen-parrot
Generating Parrot ...
C:\strawberry\perl\bin\perl.exe build/gen_parrot.pl
--prefix=D:/work/rakudo/parrot_install

Checking out Parrot RELEASE_3_0_0 via git...
Initialized empty Git repository in D:/work/rakudo/parrot/.git/
remote: Counting objects: 352976, done.
remote: Compressing objects: 100% (79676/79676), done.
remote: Total 352976 (delta 264535), reused 351793 (delta 263632)
Receiving objects: 100% (352976/352976), 81.35 MiB | 655 KiB/s, done.
Resolving deltas: 100% (264535/264535), done.
Checking out files: 100% (2192/2192), done.
Note: moving to 'RELEASE_3_0_0' which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
  git checkout -b new_branch_name
HEAD is now at 502d035... skip the correct number of tests in a release tarball

Configuring Parrot ...
C:\strawberry\perl\bin\perl.exe Configure.pl
--prefix=D:/work/rakudo/parrot_install
Parrot Version 3.0.0 Configure 2.0
Copyright (C) 2001-2011, Parrot Foundation.

Hello, I'm Configure. My job is to poke and prod your system to figure out
how to build Parrot. The process is completely automated, unless you passed in
the `--ask' flag on the command line, in which case I'll prompt you for a few
pieces of info.

Since you're running this program, you obviously have Perl 5--I'll be pulling
some defaults from its configuration.

init::manifest -  Check MANIFEST.done.
init::defaults -  Set Configure's default values.done.
init::install -   Set up installation paths..done.
init::hints - Load platform and local hints filesdone.
inter::progs -Determine what C compiler and linker to usedone.
inter::make - Is make installed...yes.
inter::lex -  Is lex installedskipped.
inter::yacc - Is yacc installed...skipped.
auto::gcc -   Is your C compiler actually gcc...
step auto::gcc died during execution: Linker failed (see
test_3604.ldo) at lib/Parrot/Configure/Compiler.pm line 112

Parrot::Configure::Compiler::cc_build('Parrot::Configure=HASH(0x1bf2124)')
called at config/auto/gcc.pm line 41
auto::gcc::_probe_for_gcc('Parrot::Configure=HASH(0x1bf2124)')
called at config/auto/gcc.pm line 33
auto::gcc::runstep('auto::gcc=HASH(0x1f6c52c)',
'Parrot::Configure=HASH(0x1bf2124)') called at lib/Parrot/Configure.
pm line 412
eval {...} called at lib/Parrot/Configure.pm line 412
Parrot::Configure::_run_this_step('Parrot::Configure=HASH(0x1bf2124)',
'HASH(0x1e45b74)') called at lib/Parrot/Confi
gure.pm line 267
Parrot::Configure::runsteps('Parrot::Configure=HASH(0x1bf2124)')
called at Configure.pl line 77

 at Configure.pl line 77

auto::glibc - Is GNU libc installedno.
auto::backtrace - Does libc have the backtrace* functions..no.
auto::msvc -  Is your C compiler actually Visual C++...no.
auto::attributes -Detect compiler attributes.done.
auto::warnings -  Detect supported compiler warnings..skipped.
auto::arch -  Determine CPU architecture and OS..done.
auto::cpu -   Generate CPU specific stuffdone.
init::optimize -  Enable optimization..no.
inter::shlibs -   Determine flags for building shared libraries..done.
inter::libparrot -Should parrot link against a shared library...
Warning: Building a shared parrot library may conflict with your
previously-installed D:\work\rakudo\libparrot.dll
..yes.
inter::types -What types should Parrot use...done.
auto::ops -   Which opcode files should be compiled in...done.
auto::pmc -   Which pmc files should be compiled in..done.
auto::headers -   Probe for C headersdone.
auto::sizes - Determine some sizes...done.
auto::byteorder - Compute native byteorder for wordsize.little-endian.
auto::va_ptr -Test the type of va_ptr...stack.
auto::format -What formats should be used for sprintfdone.
auto::isreg - Does your C library have a working S_ISREG..yes.
auto::frames -Determine call frame building capability.no.
auto::llvm -  Is LLVM installedno.
auto::inline -Does your compiler support inline...yes.
auto::gc -Determine allocator to use.done.
auto::memalign -  Does your C library support memalign.no.
auto::signal -

Re: [perl #64124] Segmentation fault in embedding Parrot into Perl 5

2010-08-23 Thread Gabor Szabo
On Wed, Aug 18, 2010 at 8:13 AM, Will Coleda via RT
perl6-bugs-follo...@perl.org wrote:
 On Mon Mar 23 13:09:56 2009, szab...@gmail.com wrote:
 I am not sure if this is a Parrot or Rakudo bug
 or just a plain invalid usage on my side.

 The following code runs, prints the prompt but when I
 enter a response I get a Segmentation fault.

 Gabor


 #!/usr/bin/perl
 use strict;
 use warnings;


 # Needs two environment variables:
 # PARROT_DIR needs to point to the directory where parrot was checked out
 # export LD_LIBRARY_PATH=$PARROT_DIR/blib/lib/

 # cwd still needs to be PARROT_DIR or I get the following error:
 #load_bytecode couldn't find file 'PCT.pbc'
 #current instr.: '' pc 743 (src/classes/Object.pir:20)
 #called from Sub 'myperl6' pc 3 (EVAL_1:3)

 # Before running I had to build Parrot::Embed:
 # cd $ENV{PARROT_DIR}/ext/Parrot-Embed/
 # perl Build.PL
 # perl Build
 # perl Build test


 die need PARROT_DIR if not $ENV{PARROT_DIR};
 unshift @INC, (
               $ENV{PARROT_DIR}/ext/Parrot-Embed/blib/lib,
               $ENV{PARROT_DIR}/ext/Parrot-Embed/blib/arch,
               );

 require Parrot::Embed;
 my $interp = Parrot::Interpreter-new;

 my $perl6 =END_PIR;
 .sub myperl6
         .param string    in_string
         load_bytecode '$ENV{RAKUDO_DIR}/perl6.pbc'

         \$P0 = get_hll_global 'prompt'
         .tailcall \$P0('Enter your name: ')
 .end
 END_PIR

 my $eval = $interp-compile( $perl6 );
 my $foo = $interp-find_global('myperl6');
 my $pmc = $foo-invoke( 'PS', 'say hello' );
 print $pmc-get_string(), \n;

 Gabor -


 Sorry for the delay in responding. This ticket is over a year old - can you 
 still reproduce this
 problem?

Yes, this still gives me segmentation fault but now the test suit of
Parrot::Embed also fails with

ga...@localhost:~/work/rakudo/parrot/ext/Parrot-Embed$ perl Build test
t/00-load.t  ok
t/interp.t . 1/23 Parrot VM: Can't stat no file here, code 2.
/usr/bin/perl: symbol lookup error:
/home/gabor/work/rakudo/parrot/ext/Parrot-Embed/blib/arch/auto/Parrot/Embed/Embed.so:
undefined symbol: Parrot_PMC_get_cstring
t/interp.t . Dubious, test returned 127 (wstat 32512, 0x7f00)
Failed 5/23 subtests


Gabor


Re: Rakudo Star - a useful, usable, early adopter distribution of Perl 6

2010-07-29 Thread Gabor Szabo
Congratulations and thank you!



I have started to collect the links to the press coverage of the release:

http://www.perlfoundation.org/perl6/index.cgi?rakudo_star_press

Please help me collect all the important links!

Gabor


Parrot on Android

2010-04-18 Thread Gabor Szabo
Android already supports various languages. I think it would be cool
to see Parrot being supported there which will allow running
Perl 6 code on Android.

I took the liberty and submitted a request.

http://code.google.com/p/android-scripting/issues/detail?id=296

Please visit the request page and click on the star to upvote it!
You might also add a comment but it is not necessary.

regards
   Gabor


Re: Oslo Perl 6 Hackathon Notes

2009-04-14 Thread Gabor Szabo
Hi,

On Mon, Apr 13, 2009 at 11:56 PM, Patrick R. Michaud pmich...@pobox.com wrote:
 As some of you are aware, this week is the Nordic Perl Workshop [1],
 and in the days immediately following the workshop we will have
 the Oslo Perl 6 Hackathon [2].  During the first day of the hackathon
 Gabor Szabo will be doing a Hands-on Perl 6 training course [3],
 the other two days will be for various hacking tasks (both Perl 6
 and Perl 5).

just to make it clear, on the first day 1 room will be allocated to the
Hands-on and the other 2-3-4 rooms will already be allocated to the
Hackathon.

 I personally have three goals for my participation at the
 workshop and hackathon:

 *  Attend Gabor's course and take careful note of where issues
 arise with using Rakudo Perl and/or Perl 6 (including filing
 bug reports and/or answering questions as needed).

That will be great. At least someone in that hands-on will know the stuff.

 [3] http://szabgab.com/blog/2009/03/1235863222.html

Gabor


Re: [perl #63970] split() returns the delimiter, not the substrings

2009-03-19 Thread Gabor Szabo
On Thu, Mar 19, 2009 at 1:18 AM, Moritz Lenz mor...@faui2k3.org wrote:
 Gabor Szabo (via RT) wrote:
 # New Ticket Created by  Gabor Szabo
 # Please include the string:  [perl #63970]
 # in the subject line of all future correspondence about this issue.
 # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63970 


 perl6 -e'say a;b.split(;).perl'
 [a, b]

 but

 perl6 -e'say split(a;b, ;)'
 ;

 In the sub form the delimiter still goes first (like in Perl 5), so it
 tries to split ';' by 'a;b', fails, and thus returns the whole string is
 one chunk. Works as designed.

and I even reported it as a bug

how embarrassing

I blame the hour.

Gabor


Re: Perl 6 fundraising and related topics.

2008-02-23 Thread Gabor Szabo
On Fri, Feb 22, 2008 at 7:38 PM, Dave Rolsky [EMAIL PROTECTED] wrote:
 On Thu, 21 Feb 2008, Joshua Gatcomb wrote:

   I am mostly ignoring the rest of what others have said in this thread
   because I think it is detracting from your intention of getting money to
   people to work more.  Here is one thing that has frustrated me about TPF.
   They are a non-profit organization.  Yeah, kind of suprising that would be
   the frustrating thing.  The issue is that they can't take money from Bob to
   give to Sue to work on Bob's widget.  This is an extreme oversimplification
   but in general, they have to abide by the rules that allow them to keep
   their non-profit status.  Where am I going with this?

  This doesn't make any sense to me. There's nothing about being a nonprofit
  that prevents TPF from accepting donations targeted to a specific program.
  There's a bit of accounting overhead to make it happen, but it's perfectly
  legal and in keeping with TPF's 501c3 status and its mission.

I don't know but I think I was told at least once that TPF cannot
handle donations
targeted to a specific person. That might of course be different then targeting
at specific program, I am not familiar what 501c3 means.

Personally - and there might be few others - I'd be much more
comfortable to give
money to a specific target or person than to a general pool.

What I was hoping for a long time is to be able to give a modest amount
on a monthly basis. Currently AFAIK TPF can only accept stand alone payments.

IMHO many people in the community would be ready to give 5-10-20 USD/month but
it would be much harder to get them give 100 or 200 USD once a year.

How hard would it be to enable (Paypal?) recurring monthly payments to TPF?
How hard would it be to allow people to target their money to a
specific project/person?


TPF can then still focus on raising money from corporations.

Gabor


-- 
Gabor Szabo
http://www.szabgab.com/


Re: Official Perl 6 and Parrot wikis

2007-12-29 Thread Gabor Szabo
On Dec 29, 2007 4:56 PM, Mark J. Reed [EMAIL PROTECTED] wrote:
 .cgi?  Is that really a CGI-based implementation?  Because that seems
 a little, I don't know, backward-looking.  Maybe it's just me, but it
 seems like it will just feed the all-too-common perception that Perl
 is for CGI scripts, and real web apps need to be written in
 something else (be it Java, PHP, Ruby/Rails, whatever).

 Besides, I hope that the language and wiki will be successful enough
 that a cgi-based implementation will completely fail to scale to meet
 demand. :)


Maybe the site maintainers could add an Apache rewrite rule
so the URLs used by the public will be

   http://www.perlfoundation.org/perl6/index.p6
and
   http://www.perlfoundation.org/parrot/index.parrot

That would change the perception and we would not need to explain
about mod_perl running the .cgi scripts at the rate 100-200 faster
than good old CGI.

When asked if they really run on Perl 6 and Parrot we could just smile...

Gabor


Re: Parrot, Perl 5 and performance

2007-03-13 Thread Gabor Szabo

On 12 Mar 2007 14:29:49 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi all,

I'd like to get opinions from developers on this list. I'm looking
into this system that executes massive amounts of Perl 5 code on a
Perl 5.8 interpreter.  The system burns tons of CPU while running Perl
code, and I'm speculating on ways to improve our throughput (say, 50
billion inst per module - 10 billion inst/modl) and latency (say, 2
sec/modl - 0.5 secs/modl).


Have you tried to profile your code and see if there are place to do
optimizations?

Gabor