Re: Where is "Subject"?

2017-02-23 Thread Moritz Lenz
contains both the headers and the body ($email in the README), and the subject is part of the headers. The only reason that $from and @to have a separate interface is that SMTP handles them separately. Cheers, Moritz -- Moritz Lenz https://deploybook.com/ -- https://perlgeek.de/ -- https://perl6.org/

Re: CGI.pm renaming (was Re: CGI Session management (was Re: the CGI.pm in Perl 6))

2007-04-15 Thread Moritz Lenz
might be a good idea for a perl6 microgrant: http://use.perl.org/article.pl?sid=07/03/22/1542235 Afaict so far only 2 out of 10 are granted, so ideas and applications are welcome. Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ - http://sudokugarden.de/ - http://perl-6.de/ signature

Project Idea: Perl 6 Syntax Explainer

2007-07-10 Thread Moritz Lenz
your opinion: * Anything else that should go into the requirements? * Is it useful at all? * Is it possible to implement it satisfactory without building a p6 compiler? * Do you have a good idea for a project name? Any other ideas and comments are welcome as well. Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/ signature.asc Description: OpenPGP digital signature

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-10 Thread Moritz Lenz
(Sorry for personal message previously, now my answer to the list) Juerd Waalboer wrote: > Moritz Lenz skribis 2007-07-10 12:43 (+0200): >> $ p6explain '[]' >> [...] can be >> * '[$expression]': access to one or more array elements if used as >&g

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-10 Thread Moritz Lenz
he ultimate goal that's true, but for the intermediate goal that I described in my first mail a name would still be useful - even if it disappears in the end. Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/ signature.asc Description: OpenPGP digital signature

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-10 Thread Moritz Lenz
Steffen Schwigon wrote: > Moritz Lenz <[EMAIL PROTECTED]> writes: >> considering the vast number of Operators and the like, I had the >> idea to implement a tool where you can enter a small piece of p6 >> syntax, and it explains what that might mean. (like a perldoc

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-10 Thread Moritz Lenz
I can implement that soonish. Do you have good idea how to do it? Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/ signature.asc Description: OpenPGP digital signature

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-12 Thread Moritz Lenz
needs to do its work by annotating an entire compilation unit > and then making that information available to something resembling > an IDE. I realize that's a long term goal. Which leads me to the question: how should the data be assembled so that it could be used in such a way? W

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-12 Thread Moritz Lenz
Dave Whipp wrote: > Moritz Lenz wrote: >> You're probably right about that, but somebody who writes his own macros >> and operators probably doesn't need such a tool anyway. And should write >> very good documentation, otherwise he has lost outright. > >

Re: Project Idea: Perl 6 Syntax Explainer

2007-07-12 Thread Moritz Lenz
Steve Pitchford wrote: > Moritz Lenz wrote: > >>Dave Whipp wrote: >> >> >>>One approach would simply be to edit Perl-6.0.0-STD.pm and add some >>>markup. To pick a token at random: >>> >>>=p6explain * >>>An asterix

Re: Project Idea: Perl 6 Syntax Explainer: Status

2007-07-12 Thread Moritz Lenz
interface called perlhints5.pl (implemented in p5), and a very basic web interface at <http://moritz.faui2k3.org/perlhints/>, for example <http://moritz.faui2k3.org/perlhints/?q=*>. What it lacks mostly is the data ;) Currently all data is read from a single flat file. Moritz -- Moritz Le

Re: In lieu of "This Week in Perl 6"

2008-04-12 Thread Moritz Lenz
perl6/ to be wrong or outdated, feel free to contact me, and I'll send a patch to our webmasters. I tried to update the most important parts (without being too intrusive), but it's surely not complete. Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/ sig

Re: Strange variable behaviour

2008-06-22 Thread Moritz Lenz
y $temp = @arr[0]; # copy? @arr[0] = @arr[1]; say $temp; # 42 $ ../../parrot perl6.pbc test.t 42 Part of the problem is that it's not really tested because t/spec/S03-operators/assign.t can't be parsed by rakudo correctly, and the fudged version 1) exhibits GC bugs and 2) is mis-parsed b

[PATCH] Re: Strange variable behaviour

2008-06-22 Thread Moritz Lenz
Moritz Lenz wrote: > Will Coleda wrote: >> On Sun, Jun 22, 2008 at 2:59 PM, Frederik Schwarzer >> <[EMAIL PROTECTED]> wrote: ... >>> But if I do: >>>my @arr = (23, 42); >>>my $temp = @arr[0]; # copy? >>>@arr[0] = @arr[1]; &g

Re: [svn:parrot] r28689 - trunk/languages/perl6/t ("-" versus "_")

2008-07-02 Thread Moritz Lenz
Conrad Schneiker wrote: >> Moritz Lenz wrote (on perl6-compiler) >> Patrick R. Michaud wrote: >> >> +S02-builtin_data_types/num.t >> >> S02-builtin_data_types/type.t >> >> S02-literals/autoref.t >> >> S02-literals/hex_chars.t

Project idea: Perl 6 syntax hilighting with STD.pm

2008-07-28 Thread Moritz Lenz
help $Larry ;-) Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/

Re: Modules

2008-10-12 Thread Moritz Lenz
ld be split up into two modules, because they are only weakly coupled, and if you use only of them the other half is bloat for you. > And if anyone is working on CGI or XML and wants a tester, please let me know. I'm sure the November hackers welcome more tests for CGI (cc-ing their mailing list). -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

Re: Argument scoping error or bug?

2008-10-25 Thread Moritz Lenz
b f(my $n) { ... } No, your program is fine, and pugs runs it as expected. Cheers, Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

Re: Fwd: [november] Re: arrays and arrays ref question

2008-10-30 Thread Moritz Lenz
ar { ... } or even for @ $ar { ... } or for @($ar) { ... } Last time I tried, there as a workaround with binding to a temporary array: my @a := $ar; for @a { ... } but it's not pretty, and I haven't tested it yet. Cheers, Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

Re: assign to Scalar with hash

2008-11-04 Thread Moritz Lenz
= {a => 1}; my $b = {b => 1}; $a = $b; > Cannot morph a Perl6Scalar. I didn't know about that, but it could be another manifestation of this bug. Cheers, Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

Re: how to call Grammars correctly?

2008-12-18 Thread Moritz Lenz
Vasily Chekalkin wrote: > Илья wrote: >> Hi, >> >> PM> if the rule is called correctly it appears to work fine: >> >> PM> if 'foo' ~~ // >> >> So, I try to use that way: >> >> grammar G { >> token TOP { ^ + $ }; >> token foo { ':' ? }; >> token bar { \w }; >> }; >> >> ":a:b:c" ~~ /

Re: reporting bugs

2009-01-05 Thread Moritz Lenz
Richard Hainsworth wrote: > s/has appeared/has NOT appeared/ > > Richard Hainsworth wrote: >> I posted an email to per6-all asking about how one should go about >> reporting bugs. That message has appeared on the list. >> That's because perl6-all is a meta list, which subscribes you to p6l, p6c

Re: what is going on here?

2009-01-11 Thread Moritz Lenz
Richard Hainsworth wrote: > Could someone help me understand what is going on in the following snippet? > > my %players = {'william'=>2, 'peter'=>3,'john'=>1,'mary'=>5}; > my @ranking = %players.sort: { .value }; > for @ranking {.say}; > > I cut and pasted from Patrick's blog on sorting and playe

Re: A Logo design for Rakudo Perl 6

2009-01-20 Thread Moritz Lenz
Perl wrote: > One of the main fears with this name, "Rakudo Perl 6" - at least when > it first came out, is that describing Rakudo Perl as, "An > implementation (one of possibly, many) of the Perl 6 Specification, > built on top of the Parrot Virtual Machine", will leave people going, > >

How to use the sockets?

2009-04-27 Thread Moritz Lenz
Hi, I've gathered that Rakudo now implements sockets, and I wanted to do some basic data shuffling for testing purposes. Could anybody point me to a really simple, working example? I tried to cargo-cult it from Web.pm (

Re: attributes initialisation

2009-05-18 Thread Moritz Lenz
Hi, Илья wrote: > Hi, > no one answered at #perl6, so I sending this question in list: > > ihrd: I have question about attr initialization > ihrd: if I have two attr with same name > ihrd: like @.args and %.args > ihrd: and instance object, like .new(args => {foo => 1}), rakudo init both > attr

[proto] installing a module if PARROT_DIR is a symlink

2009-06-13 Thread Moritz Lenz
Since viklund++ added proto support to JSON yesterday, I wanted to try it - and I found some problem that I don't know how to fix. This is how my setup looks: rakudo (bleed) lives in ~/rakudo/. Parrot lives in ~/rakudo/parrot/, which is a symlink to ~/tmp/parrot-all/ ~/bin/ is in $PATH, and ~/bin/

Re: A few questions

2009-07-12 Thread Moritz Lenz
Minimiscience wrote: > I tried to find the answers to these in the Synopses, but I couldn't. > Plan B is to ask the mailing list. > > - What does the "first" method/subroutine return when no elements of > the list match? Does it return the empty list? Does the return value > count as un

Announce: Rakudo Perl 6 development release #19 ("Chicago")

2009-07-23 Thread Moritz Lenz
On behalf of the Rakudo development team, I'm pleased to announce the July 2009 development release of Rakudo Perl #19 "Chicago". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the July 2009 release is available from http://github.com/rakudo/rakudo/download

Re: Iterate X times

2009-09-14 Thread Moritz Lenz
Christian Sturm wrote: > do you know a short and easy way to iterate a block X times? Aye ;-) > I know, one could use while, for, ... but there are some reasons, > why they don't fit. > > All these versions are long. I really like Perl, because you can > do thing with shorter code. In all these

Re: Duration of a flip-flop's flippy thing

2009-09-17 Thread Moritz Lenz
yary wrote: > Sounds like a spectest is in order to prevent that case from > happening, didn't see one in http://perlcabal.org/syn/S03.html (not > that that's the definitive place to look for tests, but that's why I'm > posting instead of DIY) There are tests in t/spec/S03-operators/flip-flop.t, b

Re: Announce: Rakudo Perl 6 development release #21 ("Seattle")

2009-09-19 Thread Moritz Lenz
Hi, François Perrad wrote: > 2009/9/17 jerry gay : >> On behalf of the Rakudo development team, I'm pleased to announce >> the September 2009 development release of Rakudo Perl #21 "Seattle". >> Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. >> The tarball for the Septemb

Re: Perl 6 IDEs

2009-12-07 Thread Moritz Lenz
Hi, On Sun, Dec 06, 2009 at 01:47:37PM -0300, Víctor A. Rodríguez (Bit-Man) wrote: > but it doesn't support Perl 6 (yet). Also tied to install Padre on top > of Ubuntu but just went to nowhere :-P I'm sure the Padre developers will appreciate your feedback, and can help you with the setup. > Did

Re: Compiling Perl6 code to bytecode

2010-01-29 Thread Moritz Lenz
Hi, Tadeusz Sośnierz wrote: > However, compiling the code for later use makes problems: > > $ perl6 --target=pir hello.pl > hello.pir > $ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pir You should use parrot to turn the .pir file, not the Perl 6 compiler. So try parrot hello.pi

Re: Compiling Perl6 code to bytecode

2010-01-30 Thread Moritz Lenz
Tadeusz Sośnierz wrote: > On 29-01-2010 14:46:40, Moritz Lenz wrote: >> Hi, > Hi, thanks for your response. > >> Tadeusz Sośnierz wrote: >> > However, compiling the code for later use makes problems: >> > >> > $ perl6 --target=pir hello.pl

Re: ^[[A^[[A

2010-03-10 Thread Moritz Lenz
adline - Does your platform support readline.yes. Then reconfigure and rebuild rakudo, and you should be happy. -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

Rakudo Perl 6 development release #28 ("Moscow")

2010-04-22 Thread Moritz Lenz
On behalf of the Rakudo development team, I'm pleased to announce the March 2010 development release of Rakudo Perl #28 "Moscow". Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine (see http://www.parrot.org). The tarball for the April 2010 release is available from http://github

Re: Something wrong with str.reverse

2010-06-18 Thread Moritz Lenz
Richard Hainsworth wrote: > I dont think the specification regarding 'reverse' has ever changed. Actually it has changed. If my memory serves me right, .flip is not older than one or many one and a half years. The story is rather simple: In Perl we usually have one operator per operation. For exa

Re: Two questions on Perl 6 functionality

2010-06-21 Thread Moritz Lenz
Hi, Xi Yang wrote: > 1: Does Perl 6 has method modifiers like those in Moose? Perl 6 has traits, so you can write for example class A { method x() is rw { ...} } to indicate that it's an lvalue routine (though I don't think it's implemented in Rakudo yet). > Where can I get the doc about t

Re: Two questions on Perl 6 functionality

2010-06-21 Thread Moritz Lenz
Xi Yang wrote: > You might mis-understood method modifiers. I mean: > before x() > after x() > around x() > In Perl 6, you do that with wrapping: http://perlcabal.org/syn/S06.html#Wrapping Cheers, Moritz

Re: very basic type checking

2010-06-25 Thread Moritz Lenz
Hi, Am 23.06.2010 13:59, schrieb Hiroki Horiuchi: I asked the same question to #perl6. But now I think it was a wrong place. no, you had the bad luck of asking at a time when nobody was around. My question is: In current Rakudo, my Int $i = '123'; causes a runtime error, not a compile time e

Re: Perl6 Modules - Documentation

2010-08-01 Thread Moritz Lenz
Am 30.07.2010 09:24, schrieb Richard Hainsworth: The number of modules available to proto has grown considerably. I am not aware that there is a convenient way of obtaining a short description about each module, other than just the name? http://modules.perl6.org/ contains a short description,

Re: implementing every(N)

2010-08-01 Thread Moritz Lenz
Hi, Ted Zlatanov wrote: > I have a Perl 5 module called Every which provides, simply, > > every(5); # true on invocation 5, 10, etc. > every(seconds => 5); # true at 5, 10, etc. seconds > > It's really nice in endless loops, logging, etc. I'd like to translate > it to Perl 6 (using Rakudo speci

Re: The case of modules

2010-08-10 Thread Moritz Lenz
Hi, some of this has been discussed on #perl6, so I'd like to give a brief summary only: Am 06.08.2010 17:53, schrieb Tadeusz Sośnierz: While writing neutro (a working module installer, while waiting for proto/pls, see [1]), and wandering around modules listed on proto.perl6.org, I started wo

Re: slurpy hash

2010-08-18 Thread Moritz Lenz
Am 18.08.2010 01:33, schrieb Darren Duncan: David H. Adler wrote: Hm. So how are valid parameter names defined? Identifiers in perl6 seem to be composed of letters, digits and underscores (and hyphens and apostrophes between letters). That's correct. Are parameter names defined differently

Grammars: parse tags of which only some need closing tags

2010-08-28 Thread Moritz Lenz
Hi, I'm currently in the progress of porting a template system [1] to Perl 6 [2]. It's fun to write the parser as a Perl 6 grammar, but there's one thing that I don't know how to solve elegantly. The markup format allows arbitrary text, and optionally some tags interleaved. Some of them stand on

Announce: Pugs repository move

2010-09-04 Thread Moritz Lenz
After years of neglected maintenance, we had to shut down the pugs svn repository. It caused undue strain on the server that hosted it, and made it nearly unusable. Therefore we needed an alternative; since many active Perl 6 developers prefer git to svn anyway, we[1] decided to go with github. S

Re: Perl 6 Class Questions

2010-09-18 Thread Moritz Lenz
Phil Crow wrote: > class Die; > > has Int $!sides; > > method new( Int $sides = 6 ) { > return self.bless( *, :$sides ); > } > > method roll() returns Int { > return round 1 + rand * $!sides; > } Just as a side note, this is could be easier written as

Re: Perl 6 Class Questions

2010-09-18 Thread Moritz Lenz
yary wrote: > A "roll" method was just added, though I don't think its implemented > yet. It is. .roll is what .pick(:replace) used to be, so it was "just" a matter of splitting up the existing methods $ ./perl6 -e 'say ~(1..6).roll(10)' 3 1 5 6 5 6 5 4 2 5 (works in Rakudo HEAD, and will work i

Re: Is there a main in perl 6?

2010-10-02 Thread Moritz Lenz
Phil Crow wrote: > In Java and C there is a main method that triggers when a program is > invoked. I vaguely remember that there might be such a thing in Perl 6. Do > I recall correctly? If so, how do I write it? http://www.perlgeek.de/en/article/5-to-6#post_14 http://perlcabal.org/syn/S06.html

Re: New Perl 6 Advent Calendar: call for ideas

2010-11-06 Thread Moritz Lenz
Hi, On 11/06/2010 01:51 PM, Tadeusz Sośnierz wrote: > As I accidentally volunteered for managing a list of topics and writers > for this year's Advent Calendar [1], Thanks for volunteering! > I started to collect some ideas of > things it'd be nice to write about. There's a gist [2] with the lis

Re: Q: Code example in "Using Perl 6" - methods and spaces.

2010-12-27 Thread Moritz Lenz
On 12/27/2010 09:12 PM, Daniel Carrera wrote: > Thanks. The blacklash "unspace" works. > > my @sorted = @names.sort({ %sets{$_} })\ >.sort({ %matches{$_} })\ >.reverse; > > Though I'm a bit sad that you need that and you can't just separate methods > with s

Re: Q: Is there a reason why I can't do this?

2010-12-27 Thread Moritz Lenz
On 12/27/2010 09:55 PM, Daniel Carrera wrote: > On Mon, Dec 27, 2010 at 9:49 PM, Chas. Owens wrote: > >> The [conditional operator][1] is now spelled test ?? true !! false not >> test ? true : false. >> > > Thanks! > > Now the following code works: > > %matches{ $r1 > $r2 ?? $p1 !! $p2 }++; >

Re: reading binary stream?

2010-12-28 Thread Moritz Lenz
Hi, On 12/28/2010 03:30 PM, Hiroki Horiuchi wrote: > How can I fix the problem? The following works right now in Rakudo, but I don't know if it conforms to the spec: my $h = open '/dev/urandom', :bin; $*OUT.write: $h.read(10) note that read() returns a Buf, which can be printed out again with w

Re: Questions for Survey about Perl

2010-12-29 Thread Moritz Lenz
Hi, On 12/29/2010 08:02 AM, Gabor Szabo wrote: > I'd be happy to get your input on how else would you put this question or > what possible other answers you would allow. Here are some very rough ideas: How much do you know about Perl 6? * nothing except the name * some design ideas or history

Re: Announce: Rakudo Star 2010.12 released

2010-12-31 Thread Moritz Lenz
On 12/31/2010 03:31 PM, Daniel Carrera wrote: > Out of curiosity, is it possible to get Rakukdo to talk to C, C++ or Fortran? For C, see https://github.com/jnthn/zavolaj Fortran uses the same calling conventions, albeit with weird name mangling rules that depend on the compiler. So you can use Zav

Re: Questions for Survey about Perl

2011-01-01 Thread Moritz Lenz
On 01/01/2011 10:15 AM, Gabor Szabo wrote: > It would be nice to figure out what is the percentage of people who > don't yet look at Perl 6 because there was not official Perl 6.0 > release > or in more general what are the blocking issues for them. > I just would like to make sure that by asking t

Re: Can't download Rakudo Dec 2010 without git

2011-01-03 Thread Moritz Lenz
On 01/04/2011 03:19 AM, gvim wrote: > Does this mean I have no option but to install git in order to keep my Perl 6 > up to date? No. You can download and install a release tarball of parrot, and then point rakudo's Configure.pl to the installed parrot. Only if you use the --gen-parrot option, gi

Re: Dynamic method generation?

2011-01-08 Thread Moritz Lenz
On 01/08/2011 09:11 PM, Sean McAfee wrote: > package MyMatcher; > > my @SIMPLE_FIELDS = qw(FOO BAR BAZ BLETCH QUUX ...); > > for my $field (@SIMPLE_FIELDS) { > no strict 'refs'; > *{ "is_\L$field" } = sub { shift->_matches($field) }; > } > class MyMatcher { for -> $field {

Re: Dynamic method generation?

2011-01-09 Thread Moritz Lenz
On 01/09/2011 02:26 AM, Sean McAfee wrote: > On Sat, Jan 8, 2011 at 3:50 PM, Moritz Lenz wrote: > >> class MyMatcher { >>for -> $field { >>MyMatcher.^add_method($field, method() { >> self!matches($field); >>} >&g

Re: A problem on regex.

2011-01-24 Thread Moritz Lenz
Am 24.01.2011 09:14, schrieb chris: The $0 var is set on a mach operation but not in a substitute. So that its value is "Undef" it's undefined, but there isn't one canonical Undef anymore. Where is the problem ? in src/Perl6/Actions.pm, method quote:sym, lines 2888-2923 Cheers, Moritz

Re: Fwd: FOSDEM - perl 6 critic

2011-02-22 Thread Moritz Lenz
Am 22.02.2011 17:14, schrieb Guy Hulbert: On Tue, 2011-22-02 at 17:57 +0200, Gabor Szabo wrote: For a better comparison that takes in account the features as well see http://www.modernperlbooks.com/mt/2010/07/an-accurate-comparison-of-perl-5-and-rakudo-star.html Thanks for posting this. Can I

Re: Fwd: FOSDEM - perl 6 critic

2011-02-22 Thread Moritz Lenz
Am 22.02.2011 16:57, schrieb Gabor Szabo: He, as a sysadmin would like to do the small tasks in a relatively small language. He would like to make sure the modules/applications he will download and will have to support are in such a relatively small language. Whatever Perl 6 will turn out to be

Re: Fwd: FOSDEM - perl 6 critic

2011-02-22 Thread Moritz Lenz
On 02/23/2011 02:10 AM, Frank S Fejes III wrote: > On Tue, Feb 22, 2011 at 10:46 AM, Moritz Lenz wrote: > >> We can't be everybody's darling, as much as we would love to. > > That's a fair statement, however do consider that perl5 is still a > darling for ma

Re: Criteria for "production-ready"?

2011-04-16 Thread Moritz Lenz
On 04/16/2011 05:02 PM, gvim wrote: > Does there currently exist a set of criteria by which Perl6, or an > implementation thereof, can be defined as "production-ready"? No. "production-ready" is just as subjective as "good" or "fast" or "mature" or "beautiful" or any other adjective you can think

Re: Current vs future Perl 6 binary size

2011-04-22 Thread Moritz Lenz
On 04/22/2011 01:33 AM, gvim wrote: > Do I take it that the Perl 6 binary is, by design, much larger than the > current Perl 5.12 (1.6Mb) No, we didn't design either the language or the compiler with the goal of having a large executable. And I seem to recall we already had a similar discussion

Re: Current vs future Perl 6 binary size

2011-04-22 Thread Moritz Lenz
After some futher analysis I found that perl6.pbc and the perl6 binary both are about 11MB in size - and 1.3MB when compressed with gzip. So if anybody actually wants to do something about the size, teach parrot's pbc_to_exe compress the pbc, and uncompress into memory upon loading. In the long r

Re: Estimate for next Rakudo Star release?

2011-04-28 Thread Moritz Lenz
Hi, On 04/28/2011 12:48 AM, Brian Wisti wrote: > Is it close? Any pressing issues? Did I miss an announcement? Very close: http://rakudoperl.org/2011/04/28/rakudo-star-2011-04-released/ (rakudo.org will soon also point to the new location). Cheers, Moritz

Re: Using precompiled modules, Assembling a project into one single file (pbc)

2011-06-17 Thread Moritz Lenz
Am 17.06.2011 11:40, schrieb Георгий Устинов: If you compile Hello.pm to Hello.pir and remove Hello.pm, PIR module does not load. Why? Because .pm files are the authoritative source of information (for example regarding version information, but also regarding actual program code), and .pir fi

Re: Bugs or PEBKAC?

2011-07-11 Thread Moritz Lenz
Hallo, On 07/11/2011 04:45 PM, Parrot Raiser wrote: > I'm trying to write a small program in Perl 6, to generate an > executable framework from a heredoc. (There are other ways of > achieving the same effect, but it's an exercise.) Heredocs are not yet implemented in Rakudo. Niezca supports them

Re: Form of I/O statements

2011-07-12 Thread Moritz Lenz
Am 11.07.2011 23:27, schrieb Parrot Raiser: Printing to STDOUT (by default) works; every attempt to write to a named file has failed. Is this another Not Yet Implemented? No, you just didn't get the syntax right :-) Executing this code: my $skeleton = "bones\n"; my $new_file = "x_file"; my $

Re: More bugs or PEBKAC

2011-09-05 Thread Moritz Lenz
On 09/05/2011 09:03 PM, Carl Mäsak wrote: > 1parrota (>): >> 1. Should there be a way to make "die" behave like the Perl 5 version, >> reporting the place of death unless the message is terminated by \n ? >> The \n no longer suppresses the location indormation. I can't find a >> definition either w

Re: Handling binary files

2011-10-02 Thread Moritz Lenz
Hi, On 10/01/2011 03:39 PM, Klāvs Priedītis wrote: > I have a question about binary files. How can I read binary files? I need to > do folowing things: read numbers of different widths, strings. The read() method in IO allows you to read binary data. The result is a Buf object. Example: my $fil

Announcing the Perl 6 Coding Contest 2011

2011-12-25 Thread Moritz Lenz
Dear all, you can have fun using Perl 6 and win 100€ worth of books -- just join the Perl 6 Coding Contest: http://strangelyconsistent.org/blog/the-2011-perl-6-coding-contest Merry Christmas, Moritz

Re: use v6

2012-01-18 Thread Moritz Lenz
Am 18.01.2012 11:53, schrieb David Arroyo: use v6; This is obligatory in perl 6? What does the module do? 'use v6;' is the declaration that the following program is written in Perl 6. It has the advantage that if you accidentally run the file with a perl 5 compiler, it will give you a much b

Re: Is rindex broken or does my brain need a reboot?

2012-05-10 Thread Moritz Lenz
Now fixed in 2012.04.1-93-g128e996: $ ./perl6 -e 'say @*ARGS[0].rindex("e")' perl 1

Re: Integers and confusion

2012-05-16 Thread Moritz Lenz
On 05/17/2012 02:13 AM, Parrot Raiser wrote: > While trying to convert some Perl 5 code to 6, I encountered problems > which golf down to: > > Perl 5 code >perl -e 'my $x = int (3 / 2); print $x, "\n";' > works >1 > > First try >./perl6 -e 'my $x = int ( 3 / 2); say $x;;' >

Re: Perl6 grammars -- Parsing english

2012-06-26 Thread Moritz Lenz
On 06/26/2012 02:04 PM, Lard Farnwell wrote: > Hi guys, > > To understand and play around with perl6 grammars I was trying to do a simple > NLP parts of speech parser in perl6 grammars. This is sort of what I did: > > --- > grammar Sentence{ > proto rule VP {*}

Re: DateTime::Utils failing test - force install with panda?

2012-06-27 Thread Moritz Lenz
Hi, On 06/27/2012 05:20 PM, Gabor Szabo wrote: > Hi, > > I was trying to install DateTime::Utils using > > panda install DateTime::Utils > > but i failed in a test that is currently unrelated to what I wanted to use. > Can I somehow force install or notest it? Yes, there's a --notests option,

Re: %*ENV is missing?

2012-06-28 Thread Moritz Lenz
Hi, Am 28.06.2012 11:09, schrieb Gabor Szabo: I have all kinds of values in %*ENV but %*ENV is not there while echo $HISTFILE has value. Is this a bug or my misunderstanding? Maybe $HISTFILE is an internal variable in your shell, not an environment variable? Try export HISTFILE perl6 -e 's

Re: Panda with git:// or https:// ?

2012-06-28 Thread Moritz Lenz
FWIW the reason I always use git:// over https:// is that at some point cloning from github via https:// would result in strange errors on the client side (iirc something about missing objects). I have no idea if that's fixed, but I haven't seen a reason to change back to https either. Am 28

<    1   2