Re: perl6 --profile-compile | --profile: both very slow and depend on Internet resources

2016-04-01 Thread Timo Paulssen
The profiler's data blob is a massive, gigantic blob of json (ls the file and you'll see). You can easily search the urls to point at local files instead of the CDN. Alternatively, there's a qt-based profiler up on tadzik's github that can read the json blob (you will have to

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-30 Thread Timo Paulssen
On 30/03/16 13:40, Tom Browder wrote: On Tue, Mar 29, 2016 at 10:29 PM, Timo Paulssen <t...@wakelift.de> wrote: On 03/30/2016 03:45 AM, Timo Paulssen wrote: Could you try using $filename.IO.slurp.lines instead of $filename.IO.lines and see if that makes things any faster? ... Ac

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-29 Thread Timo Paulssen
On 03/29/2016 10:47 PM, Tom Browder wrote: > On Wednesday, February 3, 2016, Tom Browder > wrote: > > I use Perl for heavy duty text processing. A question on Perl Monks > about Perl 5's handling of a large input file got me wondering

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-29 Thread Timo Paulssen
On 02/03/2016 02:59 PM, Tom Browder wrote: > I tried the suggestion from Bart Wiegmans to compile the program: > > $ perl6 --target=mbc --output=read-file-test.moarvm read-file-test.p6 > $ time perl6 read-file-test.moarvm large-1-gb-file.txt > Error while reading from file: Malformed UTF-8 > > So

Re: panda seems to need nmake

2016-03-06 Thread Timo Paulssen
On 06/03/16 15:31, Theo van den Heuvel wrote: Hi all, I am running Rakudo 2016-1 on Windows7 (64b) I tried "panda install Linenoise" and get the following result: [snip] From this I deduce that panda wants me to have nmake.exe available. Microsoft seems to have chosen to offer it only to

Re: stdout_is in Perl 6?

2016-03-02 Thread Timo Paulssen
Hello Hiroki Horiuchi, there are two modules that should help you solve your problem: https://github.com/sergot/IO-Capture-Simple - "IO can be captured." https://github.com/zoffixznet/perl6-IO-MiddleMan - "hijack, capture, or mute writes to an IO::Handle" If IO::Capture::Simple or

Re: Need help with Nil values

2016-02-22 Thread Timo Paulssen
Hello Emiliano, In this case, I think you may want to use just "Str" instead of "Nil". "Str" is the "type object" for Str objects, and you can check whether it's a string like "foo" or just the Str object by checking $!value.defined. There's a FAQ answer that's about "Any", but it works the

Re: Finding and fixing Perl 6 bugs

2016-02-03 Thread Timo Paulssen
AFAICT we usually recommend people report bugs via mail to rakudo...@perl.org Here's the places i could find (by targeted search, of course) that tell people to do it like that: - http://perl6.org/getting-started/ in the "side track", - http://rakudo.org/tickets/ - rakudo.org -> "bug tracker", -

Re: Porting considerations

2016-01-20 Thread Timo Paulssen
On 20/01/16 15:55, Parrot Raiser wrote: How difficult is it to port moar-VM to different versions of Linux, and different processor architectures? I'm thinking particularly of this machine: http://www.parallella.org/ which has multiple processors, designed, as the name suggests, for parallel

Re: thread problem

2016-01-14 Thread Timo Paulssen
I regret to inform you that we currently have that limitation. It's due to a design decision in libuv that we haven't found a good/the perfect work-around for in MoarVM. Instead of getting that error, you used to just get empty results, if I recall correctly. I haven't taken the time to read

Re: Can I use my Perl5 .pm modules in Perl6?

2016-01-14 Thread Timo Paulssen
On 14/01/16 08:15, H.Merijn Brand wrote: Here's an example of ported DBI code: --8<--- #!perl6 use v6; use Inline::Perl5; my $p5 = Inline::Perl5.new; $p5.use("Text::CSV_XS"); my @rows; my $csv = $p5.invoke("Text::CSV_XS", "new") or die "Cannot use CSV: ", $p5.invoke("Text::CSV_XS",

Re: Rakudo won't install

2016-01-06 Thread Timo Paulssen
I'm sorry, but the JVM back-end of rakudo is currently known to not compile and/or run very well.

Re: release?

2015-12-28 Thread Timo Paulssen
On 12/28/2015 01:58 PM, Brock Wilcox wrote: > > Rakudo, as far as I know, passes all of the 6.c tests :). But that > might mean that we need more tests! > Actually, there's a whole bunch of tests declared "TODO" or skipped. But rakudo does pass a vast number of the existing tests.

Re: How to profile Perl 6 applications?

2015-10-24 Thread Timo Paulssen
On 24/10/15 09:40, Moritz Lenz wrote: Hi Gabor, On 10/24/2015 09:26 AM, Gabor Szabo wrote: The Devel::NYTProf helped me a lot locating the source of slowness on the Perl Maven site. Is there something similar for Perl 6 so I can try to improve the speed of the Perl 6 Maven site too? Rakudo

Re: Coroutines

2015-08-14 Thread Timo Paulssen
On 08/14/2015 12:04 PM, Matija Papec wrote: Hi, I'm looking for single threaded coroutines in perl6. Will hyper/race make them possible? Will 2015 production Rakudo include async IO? Right now I'm considering golang for scalable websocket service, but also wonder if perl6 would (and

Re: Is creating and Array or Parcel ?

2015-08-03 Thread Timo Paulssen
On 08/02/2015 02:35 PM, Lloyd Fournier wrote: @a = $z[0].list or in a less documented way: @a = $z[0] The idea is that you can store an array in ether a @ or $ variable. Where as in perl5 you could only store a reference in $ variable. The sigil simply tells perl6 how it should behave

Re: Passing a hash to a subroutine: best method?

2015-07-03 Thread Timo Paulssen
On 07/03/2015 10:02 PM, yary wrote: On Fri, Jul 3, 2015 at 3:03 PM, Timo Paulssen t...@wakelift.de wrote: but this does not sub takes_int_array(Int @bar) { say @bar } takes_int_array([1, 2, 3]) because the type match is against the defined type. We do not automatically infer that [1, 2, 3

Re: UDP suport in rakudo

2015-06-18 Thread Timo Paulssen
On 06/18/2015 09:47 AM, Kamil Kułaga wrote: Hi, Is it possible to listen UDP port with perl6? IO::Socket::INET seems to be TCP only At least on MoarVM we don't have UDP support yet. I've started in a little branch called udp_sockets in both MoarVM and NQP, but I didn't get terribly far.

Re: perl6 can't find installed modules, installed by panda

2015-04-27 Thread Timo Paulssen
Hello Marcel, the mangled names of all the installed things is an unfortunate side-effect of the somewhat recent switch to a more database-based installation method. Inspecting the @*INC variable ought to give you some more insight to what's going on. there's also an environment variable

Re: Need help with: Cannot find method 'postcircumfix:( )'...

2015-03-20 Thread Timo Paulssen
On 03/20/2015 03:40 AM, Brandon Allbery wrote: On Thu, Mar 19, 2015 at 10:33 PM, Tom Browder tom.brow...@gmail.com mailto:tom.brow...@gmail.com wrote: Why do you say that is not a method? The first line says Sorry, somehow I managed to misread that. So you want what I have already

Re: Placeholder Variable

2015-03-15 Thread Timo Paulssen
On 03/15/2015 09:41 PM, Tom Browder wrote: On Sun, Mar 15, 2015 at 2:55 PM, Timo Paulssen t...@wakelift.de wrote: ... Thanks, Timo! Subroutine arg handling is an awkward but very exciting improvement for an old but non-expert Perl 5 user. Very briefly, how does one properly translate

Re: Diffrence between is and does in scope of overriding multi methods

2014-06-27 Thread Timo Paulssen
On 27/06/14 10:07, Kamil Kułaga wrote: Hi, I would like to ask for help in understanding difference between this code: use v6; role X { multi method xyz(Any $a) {say Class X} } class Y does X { multi method xyz(Any $a) {say Class Y} } say

Algebraic Data Type module for perl6

2013-04-01 Thread Timo Paulssen
I'm crossposting this from perl.perl6.language, because I feel this place is more appropriate. Since that mail was written, an ADT module has been added to modules.perl6.org, it's hosted in this github repository: https://github.com/timo/ADT/ Looking forward to comments as well as issues and

<    1   2   3