Rakudo Perl 6 compiler development release #58 (Walnut)

2012-11-23 Thread Tobias Leich
, the Perl 6 test suite and the specification. The following people contributed to this release: Jonathan Worthington, Moritz Lenz, Carl Mäsak, Jonathan Scott Duff, Will Coke Coleda, Tobias Leich, Geoffrey Broadwell, Nicholas Clark, Konrad Borowski, flussence If you would like to contribute, see http

Announce: Rakudo Perl 6 compiler, Development Release #64 (Austin)

2013-05-23 Thread Tobias Leich
and the specification. The following people contributed to this release: Brent Laabs, Moritz Lenz, Patrick R. Michaud, Tobias Leich, Jonathan Worthington, Will Coke Coleda, Elizabeth Mattijsen, dagurval, Carl Mäsak, Solomon Foster, Larry Wall, Tadeusz Sośnierz, Timo Paulssen, Arne Skjærholt

Re: [perl #85750] Test failures on OpenBSD

2013-05-29 Thread Tobias Leich
Hi, does this happen with parrot-5.2 too? Looks like I should set up a vm for testing... Am 27.05.2013 18:36, schrieb Pascal Stumpf: On Sat, 25 May 2013 22:08:00 -0700, Will Coleda via RT wrote: On Wed Mar 09 10:38:06 2011, pascal.stu...@cubes.de wrote: The following test failures have so far

Re: Building MoarVM on Solaris

2013-07-24 Thread Tobias Leich
Hi, at one point we are moving from libapr to libuv, so we would have to check if libuv's build scripts are usable too. But what speaks for having our own configure system: What if you already have libapr/libuv installed with their dev-packages? We would just link against that without the ability

Re: Problem in using inline C with perl6

2013-08-11 Thread Tobias Leich
Hi, you are mixing up Perl 5 and Perl 6 code. Tools like h2xs won't work in the Perl 6 world, so do this instead: |#!/usr/bin/env perl6 use soft; use Inline; my sub a_plus_b( Int $a, Int $b ) is inline('C') returns Int {' DLLEXPORT int a_plus_b (int a, int b) { return a + b; }

Re: Problem in using inline C with perl6

2013-08-13 Thread Tobias Leich
Hi, Inline::C is working now without the NativeCall patch. https://github.com/FROGGS/p6-Inline-C/commit/554fbb99d0c3491c69263e8238d8df8957e63fe0 Cheers! Am 11.08.2013 11:24, schrieb Tobias Leich: Hi, you are mixing up Perl 5 and Perl 6 code. Tools like h2xs won't work in the Perl 6 world, so

Re: isn't :nl awkward ?

2013-09-24 Thread Tobias Leich
Hi, what you can do now is: So, my $doc = /path/to/file.IO.slurp..split( $line-sep ).split( $field-sep ); Which seems pretty short and readable, at least to me :o) Example: my $doc = a:b:c_d:e:f_g:hi_aaa.split('_').split(':'); say $doc.perl rakudo b78da4: OUTPUT«$((a, b, c).list, (d, e, f).list,

Re: [perl #120520] [PATCH] Fix building multiple backends on moar-support branch

2013-11-12 Thread Tobias Leich
Patch applied, thank you! :o) https://github.com/rakudo/rakudo/commit/f5a38f2e97 Am 12.11.2013 16:35, schrieb Nick Glencross (via RT): # New Ticket Created by Nick Glencross # Please include the string: [perl #120520] # in the subject line of all future correspondence about this issue. #

Re: detecting missing roots and other GC mistakes

2013-12-16 Thread Tobias Leich
I don't think they can move... value_obj is only used from its assignment to before an allocation. Same goes for base_obj. Am 15.12.2013 21:50, schrieb Nicholas Clark: On Sun, Dec 15, 2013 at 05:56:40PM +, Nicholas Clark wrote: With this, all NQP tests pass I can build the Rakudo setting,

Re: register pointing to fromspace

2013-12-22 Thread Tobias Leich
Am 22.12.2013 21:42, schrieb Nicholas Clark: On Sun, Dec 22, 2013 at 01:31:35PM +, Nicholas Clark wrote: I don't know how to chase this further. I have a string that is from fromspace that is being referenced by MVM_string_equal. I think that it has come from a register. Output (with

Re: Unusual use of x string repetition operator

2014-02-10 Thread Tobias Leich
Hi Am 10.02.2014 14:19, schrieb Kamil Kułaga: Hi, I've played wit x and xx repetition operators and found interesting result using rakudo star: join(|, (1,2) x 10) 1 21 21 21 21 21 21 21 21 21 2 Is this ok? If true please explain this to me :) Because I expected 12121212121212121212 or

Re: Unusual use of x string repetition operator

2014-02-10 Thread Tobias Leich
comes around. Thanks for fast reply On Mon, Feb 10, 2014 at 2:29 PM, Tobias Leich em...@froggs.de wrote: Hi Am 10.02.2014 14:19, schrieb Kamil Kułaga: Hi, I've played wit x and xx repetition operators and found interesting result using rakudo star: join(|, (1,2) x 10) 1 21 21 21 21 21

Rakudo Star Release 2014.03 - A useful, usable, early adopter distribution of Perl 6

2014-04-01 Thread Tobias Leich
# Announce: Rakudo Star Release 2014.03 ## A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the March 2014 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the March 2014 release

Re: License: Perl5 or Perl6

2014-04-03 Thread Tobias Leich
That is Perl 5. Cheers Am 01.04.2014 21:28, schrieb Polhodzik Peter (ext): Hi, Ive got a file in an open source software license under as Perl itself. Can you tell by the file(attached) which Perl could it be: Perl5 or Perl6? download link:

Re: [perl #121798] m:ov and m:ex multiple regex matches not working

2014-05-05 Thread Tobias Leich
Am 04.05.2014 23:22, schrieb schw...@rt.perl.org: # New Ticket Created by Schwenn, Peter # Please include the string: [perl #121798] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=121798 Dear Perl6'ers, I am

Re: [perl #121811] [BUG] $*EXECUTABLE filled wrong on parrot

2014-05-07 Thread Tobias Leich
Hi, I am about to fix that issue, but that involves patching (and rereleasing parrot). It is about patching the pbc_to_exe to not stash ARGV[0], but also figure out the absolute path in the perl6 binary. This however is not somthing that can be done easily when it comes to cross platform...

Re: rakudo 2014.04

2014-05-13 Thread Tobias Leich
Hi, the binary installed as 'perl6' is the first backends you specify in the --backends=... option. There are also binaries like perl6-j, perl6-m and perl6-p, in case you've build for these backends also. Cheers, FROGGS Am 13.05.2014 10:54, schrieb Serge A. Ribalchenko: Hi there, Just wonder

Re: [perl #121903]

2014-05-22 Thread Tobias Leich
Hi, here are several ways to get in touch with us: http://perl6.org/community/ If you want immediate answers then IRC is your choice. Mailing lists do not always deliver immediatly, sometimes it takes two days for me to reveive mails that way... my regex test { [a..z]+ }; say abc123 ~~ / test

Re: [perl #121903] Using a predefined pattern

2014-05-22 Thread Tobias Leich
That works: my $x=/$two-b's=bb|$two-d's=dd/; my $s = addc; $s ~~ s/x=$x/ZXZ/; say $s; say $/ OUTPUT«aZXZc␤「dd」␤ x = 「dd」␤ two-d's = 「d」␤␤» Am 22.05.2014 17:06, schrieb Peter Schwenn: Dear David Waring, Thank you for your example. It works and I understand it. I take it from your example

Announce: Rakudo Perl 6 compiler, Development Release #76 (Bajor)

2014-05-22 Thread Tobias Leich
on Parrot, the Perl 6 test suite, MoarVM and the specification. The following people contributed to this release: Elizabeth Mattijsen, Jonathan Worthington, Tobias Leich, Alexander Moquin, Moritz Lenz, Donald Hunter, Carl Masak, Timo Paulssen, lue, Tim Smith, Geoffrey Broadwell, Larry Wall, Filip

Re: Perl6 and wxwidgets

2014-06-08 Thread Tobias Leich
GTK::Simple is a recent example of how to make these bindings: https://github.com/perl6/gtk-simple/ Am 08.06.2014 12:56, schrieb Moritz Lenz: Hallo Erik, On 08.06.2014 12:54, Erik Colson wrote: Is it possible to use an external C-library like wxwidgets from perl6/moarvm ? If so, is there

Re: Rewrite using map? Trasformation array into hash of hash

2014-06-13 Thread Tobias Leich
Hi, like that? class A { has $.a; has $.b }; my @array = A.new(a='a', b='11'), A.new(a='a', b='22'), A.new(a='v', b='33'), A.new(a='w', b='44'), A.new(a='v', b='55'); say @array.map({ .a = .b = $_ }) OUTPUT«a = 11 = A.new(a = a, b = 11) a = 22 =

# Announce: Rakudo Star Release 2014.08

2014-08-30 Thread Tobias Leich
# Announce: Rakudo Star Release 2014.08 ## A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the August 2014 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the August 2014

Re: Orphaned module Form

2014-09-10 Thread Tobias Leich
Hi, it is now found at: https://github.com/perl6/form (Moritz++'s link below points to the old location) Am 09.09.2014 um 22:23 schrieb Moritz Lenz: Hi all, On 08.09.2014 10:44, Kamil Kułaga wrote: Hi, There is a https://github.com/mathw/form trying to implement

Re: Getting startes with Perl6 / Rakudo Star / MoarVM

2014-09-11 Thread Tobias Leich
My question would be: shall we install the book too, and add the book and useful links to the start menu? Am 11.09.2014 um 10:29 schrieb Kamil Kułaga: Hi, Install path is known limitation https://github.com/rakudo/star/issues/10 If you want custom path you need to compile it from source for

Re: Getting startes with Perl6 / Rakudo Star / MoarVM

2014-09-14 Thread Tobias Leich
) This idea should be portable, providing shortcuts on Mac or any other Linux box should, work, too. Best regards and thanks for all the answers! Am 11.09.2014 um 10:56 schrieb Tobias Leich em...@froggs.de: My question would be: shall we install the book too, and add the book and useful links

Re: Getting startes with Perl6 / Rakudo Star / MoarVM

2014-09-15 Thread Tobias Leich
, not just a plain black/white page. 2014-09-14 14:07 GMT+02:00 Tobias Leich em...@froggs.de mailto:em...@froggs.de: There is already a shurtcut to the perl6 interpreter (REPL) in the start menu. And since the msi is for windows only, we don't have to care about linux

Re: Getting startes with Perl6 / Rakudo Star / MoarVM

2014-09-15 Thread Tobias Leich
message. 2014-09-14 14:07 GMT+02:00 Tobias Leich em...@froggs.de mailto:em...@froggs.de: There is already a shurtcut to the perl6 interpreter (REPL) in the start menu. And since the msi is for windows only, we don't have to care about linux and mac here :o

Announce: Rakudo Star Release 2014.09

2014-09-26 Thread Tobias Leich
## A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the September 2014 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the September 2014 release is available from

Re: bug in latest git version of perl6-p

2014-10-05 Thread Tobias Leich
Hi, this is fixed as of: 71b98224ad366474124d8450512b6441dbbc4938 Though, you also need to update NQP, either by doing it manually or by running the Configure.pl script in rakudo which takes care of that. Cheers, FROGGS Am 03.10.2014 um 17:24 schrieb Francis (Grizzly) Smit: The bug is in the

Re: parrot smoke-me/illegal-escape-gh1103

2014-10-15 Thread Tobias Leich
I think I can (sort of) speak for rakudo and say that we would rather have the correct behaviour in the upcomming release in favour of an deprecation cycle. Because, if we spot a problem in nqp or rakudo with 6.9.0, we can always decide to delay upgrading the parrot version for one month.

Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich
Hi, what does `which panda` output? I'd almost say that it cannot find panda in path, and the apt suggestions fail on your box...

Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich
Ahh, it might be possible that panda's state will only be installed using the Windows MSI on... err, Windows... I'll check the star tarball on a linux later and report back.

Re: External call like Capture::Tiny of Perl 5 ?

2015-01-02 Thread Tobias Leich
This is in discussion right now, and since the recent pipe() addition, we have another bit implemented to actually make your proposal work. Though, we've not yet decided where we want to go, how one opens such a pipe or captures stdout/err, or does redirections of said handles... I hope we can

Re: What is the latest Rakudo Star?

2015-01-03 Thread Tobias Leich
2014.12.1, at http://rakudo.org/downloads/star/ Cheers http://rakudo.org/downloads/star/ Am 03.01.2015 um 21:32 schrieb Parrot Raiser: I stopped paying attention for a bit, and lost track.

Re: Profiling Perl 6 code

2015-01-06 Thread Tobias Leich
There is only one file to look for: profile-\d+.html in your cwd. And as a side note: do not profile code that runs that long. 8 minutes of execution will produce an html file (with a json blob) of several hundreds of megabytes. Your browser won't cope with that. Try to profile only for a single

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

2015-01-10 Thread Tobias Leich
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. Gabor

Re: Could method calls warn in void context?

2015-01-10 Thread Tobias Leich
In case we would know that certain methods had no side effects (and are not called because of their side effects), ... But at the moment we don't know and therefore we can't warn for every method. Am 10.01.2015 um 15:50 schrieb Gabor Szabo: I keep writing code like this: $str.substr(/regex/,

Re: time and now showing different time?

2015-01-12 Thread Tobias Leich
Also interesting might be the fact that BEGIN statements/blocks do return a value: say now() - BEGIN now; # parens needed to there so that it does not gobble args Am 12.01.2015 um 08:55 schrieb Gabor Szabo: Neat. Based on that I tried to explain it here:

Re: time and now showing different time?

2015-01-12 Thread Tobias Leich
that you know is slow... yuo can either have several variables that record every step, or reassign to after every measurement, or you just put this whereever you want: say $?FILE:$?LINE ~ now - BEGIN now; Am 12.01.2015 um 10:36 schrieb Gabor Szabo: On Mon, Jan 12, 2015 at 10:35 AM, Tobias Leich

Re: time and now showing different time?

2015-01-12 Thread Tobias Leich
Am 12.01.2015 um 10:46 schrieb Moritz Lenz: On 01/12/2015 10:36 AM, Gabor Szabo wrote: On Mon, Jan 12, 2015 at 10:35 AM, Tobias Leich em...@froggs.de mailto:em...@froggs.de wrote: Also interesting might be the fact that BEGIN statements/blocks do return a value: say now

Announce: Rakudo Perl 6 compiler, Development Release #86 (“Cluj”)

2015-03-19 Thread Tobias Leich
Worthington, Larry Wall, Tobias Leich, ugexe, Alexander Moquin, Moritz Lenz, Timo Paulssen, Pepe Schwarz, Andrew Egeler, Christian Bartolomäus, Kamil Kułaga, Solomon Foster, Geoffrey Broadwell, Jonathan Scott Duff, Paul Cochrane, Carl Masak, Will Coke Coleda, raydiak, Donald Hunter, Stefan Seifert

Re: Function Signatures: Return Types (replace wantarray?)

2015-03-19 Thread Tobias Leich
The multi dispatcher *only* chooses the multi candidate by matching arguments to parameters. The return type is not considered. Btw, the syntax for returning an arrayish thing might be: method foo($a, $b -- Positional) { ... } Am 19.03.2015 um 23:53 schrieb Darren Duncan: I think as a general

Re: Writing New Modules for Submission

2015-03-21 Thread Tobias Leich
Hi, a Makefile, Changelog and MANIFEST or LICENSE files belong into the root directory, and should not be removed. Module that you write for tests might go under t/lib. Other files like media files that shall be installed should be in resource or share. Am 21.03.2015 um 16:51 schrieb Tom Browder:

Re: Object Introspection for Existence of Methods: How?

2015-03-20 Thread Tobias Leich
if $obj.^can($method_name) {... Am 20.03.2015 um 19:38 schrieb Tom Browder: I am trying to create a testing subroutine to detect if a class object has a certain method. I want it to look something like this: my $obj = Foo.new(); can_ok($obj, 'method1'); sub can_ok($obj, Str

Re: Will Perl 6 save a compiled version of a source program like Python?

2015-05-18 Thread Tobias Leich
We precompile modules using a command line option like in: 'perl6 --target=mbc --output=foo.pm.moarvm'. Though, since this is for modules, only this incantation will work: 'perl6 -I. -Mfoo -e1' We are working on creating executables such as 'foo.exe' from a given Perl 6 script, though I expect

Re: [perl #125211] Error Function X::Panda needs parens to avoid gobbling block when running panda on JVM, but not on Moar

2015-05-18 Thread Tobias Leich
Btw, this error pops up when the X::Panda symbol disappears for some weird reason. And then the parser thinks it is a sub instead of a type. Am 18.05.2015 um 09:28 schrieb Moritz Lenz: On 05/18/2015 04:07 AM, Rob Hoelz (via RT) wrote: # New Ticket Created by Rob Hoelz # Please include the

Re: generating grammars, capturing in regex interpolation, etc.

2015-04-17 Thread Tobias Leich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The comment in INTERPOLATE is about subcaptures... but if you do not capture the interpolated regex itself, you break that chain. Am 17.04.2015 um 04:34 schrieb Nathan Gray: On Wed, Apr 15, 2015 at 09:45:39PM -0400, Nathan Gray wrote: I had given

Re: Problem found with PERL6LIB environment variable

2015-06-08 Thread Tobias Leich
Hi, you might use this: say $*DISTRO.cur-sep rakudo-moar 228168: OUTPUT«,␤» Am 08.06.2015 um 21:17 schrieb Brandon Allbery: On Mon, Jun 8, 2015 at 3:09 PM, Fields, Christopher J cjfie...@illinois.edu mailto:cjfie...@illinois.edu wrote: I had the same problem recently, tied to the

Re: Possible bug in NativeCall CStruct

2015-06-02 Thread Tobias Leich
Hi, when you install latest MoarVM, you can do this: $ perl6 -e 'use NativeCall; class Foo is reprCStruct { has str $.bar is rw }; my $foo = Foo.new(bar = bar); say $foo; $foo.bar = baz; say $foo' Foo.new(bar = bar) Foo.new(bar = baz) Note the lowercase str type. The normal Str type can be set

Re: versioning - how to request different 'ver' per 'auth'?

2015-06-11 Thread Tobias Leich
Hi, that is a very interesting use case, and IMO a very valid one. Currently the semantics are, to also explain the correct syntax of the pair that follows a 'use NAME': :authBar and :ver1.2 etc are of type Pair. Wenn the compiler hits a use statement, it smartmatches the distribution's

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Tobias Leich
Please also take a look at $*EXECUTABLE, $*PROGRAM and $*PROGRAM_NAME. Am 30.05.2015 um 15:00 schrieb Tom Browder: I finally found the Perl 6 version of Perl 5's $0 listed in: tablets.perl6.org/appendix-b-grouped.html#special-variables as '$*EXECUTABLE_NAME', and I expected it to act the

Announce: Rakudo Star Release 2015.06

2015-07-01 Thread Tobias Leich
# A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the June 2015 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the June 2015 release is available from

Announce: Rakudo Perl 6 compiler, Development Release #88 (Dresden)

2015-05-22 Thread Tobias Leich
Worthington, Tobias Leich, Sterling Hanenkamp, Arne Skjærholt, Paul Cochrane, Larry Wall, Rob Hoelz, Carl Masak, raydiak, Timo Paulssen, Christian Bartolomäus, Will Coke Coleda, Bart Wiegmans, Moritz Lenz, Jonathan Stowe, skids, Pepe Schwarz, Brent Laabs, Steve Mynott, Jeffrey Goff, Solomon Foster

Announce: Windows MSI Installers for release 2015.06

2015-07-14 Thread Tobias Leich
The Windows MSI installers are now available, coming again in two versions. One installer targets x86 (32bit) platforms, and the other installer targets x86_64 (64bit) platforms (probably Windows 7 or better). Only the version for x86_64 comes with JIT enabled. The two MSIs are available from

Re: perl6 book

2015-10-22 Thread Tobias Leich
I know that some ppl want to do that in future, but as far as I know these projects are not in a state "planned" or even "started". And since the semantics might change a little especially until Christmas, I would not trust a book that is already in the works. Am 22.10.2015 um 07:55 schrieb Wah

Re: Coverity Static Analysis For NQP

2015-10-22 Thread Tobias Leich
3rdparty is used by the not quite used parrot backend, as well as the path src/vm/parrot. So I guess it does make sense to scan the MoarVM repository, but not NQP. Am 21.10.2015 um 01:47 schrieb Jeffrey Ryan Thalhammer: > 37 of them come from a path matching /3rdparty/ > > The rest come from a

Re: Coverity Static Analysis For NQP

2015-10-19 Thread Tobias Leich
"Coverity Scan Static Analysis - Find and fix defects in your Java, C/C++, C# or JavaScript open source project for free" How does that work for code written in NQP? Cheers, Tobias Am 17.10.2015 um 00:38 schrieb Jeffrey Ryan Thalhammer: > Hello everyone- > > I'm a longtime Perl5 developer and

Re: Backwards compatibility and release 1.0

2015-10-15 Thread Tobias Leich
Am 15.10.2015 um 10:47 schrieb Smylers: > Moritz Lenz writes: > >> On 10/13/2015 10:52 AM, Richard Hainsworth wrote: >> >>> Following on the :D not :D thread, something odd stuck out. >>> >>> On 10/13/2015 03:17 PM, Moritz Lenz wrote: We have 390+ modules, and hand-waving away all trouble

Re: To :D or not to :D

2015-10-14 Thread Tobias Leich
> * Patrick R. Michaud (pmich...@pobox.com) [151013 01:05]: >> On Tue, Oct 13, 2015 at 12:32:01AM +0200, Mark Overmeer wrote: >>> Yes, that what I started realizing when I saw all the pain Perl6 goes to >>> ignore the existence of a real "undef" in the language. (I follow Perl6 >>> from a short

Re: isn't $PERL6LIB separator ':' on unix ?

2015-09-09 Thread Tobias Leich
Please try $*DISTRO.cur-sep. Am 08.09.2015 um 18:19 schrieb Marc Chantreux: > hello, > > on Linux 3.19.0-16, using perl6 version 2015.07.2 built > on MoarVM version 2015.07. i tested > > > $ PERL6LIB=lib\;../dnsmanager-v6/lib perl6 t/basic.t > > ===SORRY!=== > Could not find X::html in

Re: [perl #126037] Redirecting standard streams in Proc causes wrong exit code

2015-09-11 Thread Tobias Leich
Thing is that you do not redirect, you capture the streams. So if you capture out, you need to read the output and close it. The return value of close will then tell you the right exit code.

Re: How to push a hash on an array without flattening it to Pairs?

2015-09-26 Thread Tobias Leich
Itemization helps: m: my %h = x => 6, y => 7; my @a = $%h; say @a[0] rakudo-moar 0132b6: OUTPUT«x => 6, y => 7␤» m: my %h = x => 6, y => 7; my @a; @a.push: $%h; say @a[0] rakudo-moar 0132b6: OUTPUT«x => 6, y => 7␤» Am 26.09.2015 um 07:58 schrieb Gabor Szabo: > In the first two cases the hash

Re: Method 'send' not found for invocant of class 'IO::Socket::INET'

2015-09-26 Thread Tobias Leich
You need to upgrade HTTP::Easy, it already contains a fix. Am 26.09.2015 um 12:26 schrieb Gabor Szabo: > And just to clarify launching this simple script (and then accessing > it via a browser) would show the same problem: > > use lib 'lib'; > > use Bailador; > > get '/' => sub { > "hello

Re: require on string stopped working in rakudo 2015.09

2015-09-26 Thread Tobias Leich
Hi, that your example was working was an accident. It is either: require "path/to/Foo.pm"; - or - require ::("Foo"); Cheers, FROGGS Am 26.09.2015 um 06:47 schrieb Gabor Szabo: > Hi, > > I am really glad Rakudo finally came out. > I've installed in and tried to run the tests of Perl6::Maven. > >

Re: Does Perl 6 use $a and $b in sorting?

2015-09-26 Thread Tobias Leich
sort accepts something callable with an arity of 2. Subroutines, blocks and pointies will do: say sort { $^a cmp $^b }, 5, 3, 2, 6, 4 OUTPUT«(2 3 4 5 6)␤» say sort { $^left cmp $^right }, 5, 3, 2, 6, 4 OUTPUT«(2 3 4 5 6)␤» say sort -> $a, $b { $a cmp $b }, 5, 3, 2, 6, 4 OUTPUT«(2 3 4 5 6)␤»

Re: [perl #127144] Native uint doesn't overflow on ++

2016-01-04 Thread Tobias Leich
That highlights the bug: m: my uint8 $x = 255; print $x, " -> "; $x = $x + 1; say $x; rakudo-moar 0f26ae: OUTPUT«255 -> 0␤» m: my uint8 $x = 255; print $x, " -> "; $x++; say $x; rakudo-moar 0f26ae: OUTPUT«255 -> 256␤» Am 04.01.2016 um 11:48 schrieb Elizabeth Mattijsen: On 04 Jan 2016, at

Re: Erratic timings

2016-01-04 Thread Tobias Leich
Would be nice if someone could reproduce also. Am 04.01.2016 um 14:38 schrieb Parrot Raiser: Could the jumps to >1 seconds be explained by automatic pre-compilation taking place after you re-compiled rakudo ? Why would that happen occasionally, after a number of executions of the same code?

Re: [perl #127165] [FEATURE] make :%hash a pair constructor

2016-01-05 Thread Tobias Leich
Yes, that's how you get a Match variable.

Re: Rakudo star 2015.12?

2016-01-06 Thread Tobias Leich
I am working on it, and made some progress yesterday. I hope to ship it soon. Am 06.01.2016 um 01:57 schrieb Parrot Raiser: There doesn't seem to be a tarball for rakudo star 2015.12. Is that going to be skipped?

Re: Use of ':' in identifiers

2016-01-06 Thread Tobias Leich
Hi, $foo:bar and Foo:bar are variable/package names with an colonpair appended. The entire thing is then called a longname, at least internally. Test:ver(v1) makes it clearer what it does. You $abc:def example boils down to $abd:def(True) btw. Am 06.01.2016 um 12:24 schrieb mt1957: L.s.

Re: [perl #127188] [IMPROVEMENT SUGGESTION] :lang on eval to attempt to use an Inline::FOO module

2016-01-06 Thread Tobias Leich
I still think that language modules like Inline::* or v5 need to register itself. Which means, you'd use such a module before doing the EVAL so the EVAL knows what module handles the requested language. Am 06.01.2016 um 14:40 schrieb Zoffix Znet (via RT): # New Ticket Created by Zoffix Znet

Re: release?

2015-12-29 Thread Tobias Leich
Hi, the first official Perl 6 (the language) release is not called 6.0.0, it is called 6.c. And this is what has been shipped with the Rakudo compiler release 2015.12. Cheers, Tobias Am 27.12.2015 um 20:33 schrieb webmind: Hiya, I'm a bit confused, there is a major release for Perl 6, but I

Re: Mooch a regex

2016-01-11 Thread Tobias Leich
hi, what's in ${BaseTag}? Is it a regex rule or just a plain string? (Because that matters in Perl 6) Am 12.01.2016 um 01:55 schrieb ToddAndMargo: Hi All, Would yo all terribly mind if I ask how to do this Perl 5 regex in Perl 6? (I learn best by example.) if ( $ClickLine =~ /aes256/ and

Re: Mooch a regex

2016-01-12 Thread Tobias Leich
seTag> / { # ... This is alled a "regex assertion". Am 12.01.2016 um 20:59 schrieb ToddAndMargo: On 01/11/2016 11:24 PM, Tobias Leich wrote: hi, what's in ${BaseTag}? Is it a regex rule or just a plain string? (Because that matters in Perl 6) It is a string and can vary. Would you

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

2016-01-13 Thread Tobias Leich
Am 14.01.2016 um 01:31 schrieb ToddAndMargo: On 01/13/2016 12:51 PM, David H. Adler wrote: On Wed, Jan 13, 2016 at 12:50:19PM -0800, ToddAndMargo wrote: Hi All, I have written myself several Perl 5 modules (.pm). Is there a way to call them from Perl6? Or should I must I rewrite them?

Announce: Windows MSI Installers for release 2016.01

2016-02-04 Thread Tobias Leich
The Windows MSI installers are now available, coming again in two versions. One installer targets x86 (32bit) platforms, and the other installer targets x86_64 (64bit) platforms (probably Windows 7 or better). Only the version for x86_64 comes with JIT enabled. The two MSIs are available from

Re: Installing both from rakudobrew and Rakudo Star

2016-02-05 Thread Tobias Leich
Btw, rakudobrew, rakudo via git and star are *not* installing to /usr/local/bin/. rakudo via git and star install to ./install. But support the --prefix option to override this as shown. Am 05.02.2016 um 08:27 schrieb Steve Mynott: From the recently updated http://www.perl6.org/downloads/

Announce: Mac OS X Installer for release 2016.01

2016-02-12 Thread Tobias Leich
Thanks to Steve Mynott a Mac OS X installer is now available. This installer has the ".dmg" file extension and is available from http://rakudo.org/downloads/star/.

Announce: Rakudo Star Release 2016.01

2016-02-03 Thread Tobias Leich
# Announce: Rakudo Star Release 2016.01 ## A useful and usable production distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the January 2016 release of "Rakudo Star", a useful and usable production distribution of Perl 6. The tarball for the

Re: capture through regex variable

2016-02-22 Thread Tobias Leich
As a rule of thumb: Every non-Letter character after the opening angle bracket makes it non-capturing. Am 22.02.2016 um 11:37 schrieb Theo van den Heuvel: Thanks Patrick, it works great. Theo Patrick R. Michaud schreef op 2016-02-22 11:16: Dynamic subregexes such as <$top> are

Re: How to properly represent c++ class hiearchy in nativecall?

2016-07-24 Thread Tobias Leich
Hi, the $.vtable Pointer is just there to allocate more space for the CPPStruct, and to properly align the struct attributes. C++ itself cares about the vtable, not NativeCall. What would help to fix any issues would be to prove a sample code in the style of the rakudo/t/04-nativecall/*

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
You get 8 there because an array is a pointerish thing... Btw, this: my $not-null = CArray[int32].new is not the same as this: int a[3]; So, we would need fixed sized native arrays here to tell the truth. Am 10.09.2016 um 20:53 schrieb Brandon Allbery via RT: On Sat, Sep 10, 2016 at 10:11

Re: rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-15 Thread Tobias Leich
Hi, if you let raukdo automatically rebuild nqp/moar, then you still were on an old revision of moarvm. This revision did not contain the latest patch. Please rebuild now, as I've updated the git revisions, so latest nqp and moarvm get build. Am 15.11.2016 um 18:14 schrieb Brandon Allbery:

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 sources

Re: vulgar?

2019-12-05 Thread Tobias Leich
"it's the level of vulgarity you'd expect from a guy called S***ov." ... and know it's getting personal... -.- Erez Schatz schrieb am Do., 5. Dez. 2019, 11:42: > it's the level of vulgarity you'd expect from a guy called S***ov. > > But seriously, it's nothing you won't see on basic cable or

[perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-10-02 Thread Tobias Leich via RT
what is your panda --installed list?

[perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-26 Thread Tobias Leich via RT
Please retest with rakudo-star-2014.12.1-moar.msi. For me it gives this after a clean install of the msi: C:\panda-m --installed list Bailador [installed] DBIish [installed] Debugger::UI::CommandLine [installed] Digest::MD5[installed]

Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich via RT
Hi, what does `which panda` output? I'd almost say that it cannot find panda in path, and the apt suggestions fail on your box...

Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich via RT
Ahh, it might be possible that panda's state will only be installed using the Windows MSI on... err, Windows... I'll check the star tarball on a linux later and report back.

[perl #126383] [NYI] Generic type can't participate in a coercive type

2015-10-26 Thread Tobias Leich via RT
Patch: https://github.com/rakudo/rakudo/commit/6902d51eb7 Tests: https://github.com/perl6/roast/commit/7f43444370 Closing ticket.

[perl #125573] [BUG] [Test] A failing exit phaser after passing all tests appears OK to prove

2015-10-27 Thread Tobias Leich via RT
Patch: https://github.com/rakudo/rakudo/commit/6063886343 Test: https://github.com/perl6/roast/commit/2dfcd85181 Closing ticket.

[perl #120831] [BUG] LTA error message when declaring 'my Int a' in Rakudo

2015-10-27 Thread Tobias Leich via RT
Patch by bartolin++: https://github.com/rakudo/rakudo/commit/4bdc88046ad0289f2708e3195e59df9edc83c258 Another test: https://github.com/perl6/roast/commit/1145029340 Closing ticket.

[perl #125927] नि -- a grapheme cluster boundary algo problem (CCC = 0 can be a valid combiner?)

2015-10-26 Thread Tobias Leich via RT
Here are more examples (by novapatch++ via irc): m: say «நி กำ षि "\r\n"»».chars rakudo-moar cd7766: OUTPUT«(2 2 2 2)␤»

[perl #68024] [TODO] Make :($op) work

2015-10-19 Thread Tobias Leich via RT
The design docs indicate that square brackets need to be used, which works with rakudo: constant $foo="+"; say :[$foo](3, 4) rakudo-moar 4b1df7: OUTPUT«7␤» So, this is closable with test?

[perl #126172] [BUG] .push does something un(ex)-spec'd-ed

2015-10-19 Thread Tobias Leich via RT
The semantics of push got revised in the meantime, and a new method called "append" got added: m: my @a = 1,2,3; my @b; @b.push: @a,; dd @b rakudo-moar fae01f: OUTPUT«Array @b = [[1, 2, 3],]␤» m: my @a = 1,2,3; my @b; @b.push: @a; dd @b rakudo-moar fae01f: OUTPUT«Array @b = [[1, 2, 3],]␤» m:

[perl #126172] [BUG] .push does something un(ex)-spec'd-ed

2015-10-19 Thread Tobias Leich via RT
Added test: https://github.com/perl6/roast/commit/f50149e607 Closing ticket.

[perl #126385] initial stray space not accepted in :(...)

2015-10-19 Thread Tobias Leich via RT
Patch: https://github.com/rakudo/rakudo/commit/4b1df7b018 Tests: https://github.com/perl6/roast/commit/0478776107 Closing ticket.

[perl #126296] [BUG] Foo:D type on attribute should imply 'is required' and not need intialiser

2015-10-08 Thread Tobias Leich via RT
I don't think that we should mix two concepts here. The type constraint of an attribute just tells us what types/subsets are allowed to be contained in the attribute. That an attribute should be passed when instantiating an object (maybe passed but undef?) is another story. And this has not

[perl #101448] [BUG] No error on assigning a type object to a :D-constrained container in Rakudo

2015-10-07 Thread Tobias Leich via RT
Added tests: https://github.com/perl6/roast/commit/fca109de6c https://github.com/perl6/roast/commit/6e66b7a18d Closing ticket.

  1   2   >