Re: Is passing excess parameters while creating object legal?

2014-05-27 Thread timo
uch as the automatically generated new method) take an implicit *%_ parameter, which will slurp up the excess named parameters. This is called "interface consistency". You can find more about it in the synopsis here: http://perlcabal.org/syn/S12.html#Interface_Consistency Hope to help! - T

Re: Perl6 and wxwidgets

2014-06-08 Thread timo
appy/ https://github.com/retupmoca/P6-Compress-Zlib-Raw/ https://github.com/dagurval/perl6-gd-raw/ https://github.com/perl6/gtk-simple/ https://github.com/mrhdias/perl6-Imlib2/ Hope to help! - Timo signature.asc Description: OpenPGP digital signature

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

2014-06-13 Thread timo
://perlcabal.org/syn/S32/Containers.html#categorize will allow you to return a parcel from the "categorization" you provide (such as -> $_ { (.a, .b) }) and build a multi-leveled hash. Sadly, I wasn't able to make it work right away. Cheers, - Timo signature.asc Description: OpenPGP digital signature

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

2014-06-14 Thread timo
s a result. Could that be the problem? Cheers - Timo signature.asc Description: OpenPGP digital signature

Re: Grammars and biological data formats

2014-08-09 Thread timo
to imply that :p for subparse doesn't work. I'll look into that, because I believe it ought to be implemented already. Perhaps not properly hooked up, though. Hope to help! - Timo

Re: Grammars and biological data formats

2014-08-09 Thread timo
potential confusion before it can arise - Timo

Re: Can we add Data::Tables to modules.perl6.org?

2014-09-15 Thread timo
give us a battle-hardened interface (meta::cpan or something?) for our modules, but until then I see no reason to have modules.perl6.org be less than awesome. If you'd like to implement things yourself, you can find the repository here: https://github.com/perl6/modules.perl6.org Thank you for your interest and time! - Timo

Re: time and now showing different time?

2015-01-10 Thread timo
t full seconds than the calls > to 'time' ? > > Gabor > One of them counts leap seconds, the other doesn't. Instant is supposed to be a monotonic clock, the other isn't. regards - Timo

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
That happens because the result of the for statement is a list that is then sunk; it contains one scalar and one Int object for each iteration and rakudo doesn't yet know to throw it away immediately. Regards - Timo

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
ing kept around. There was also an optimization that turns a for ^1000 loop into a while loop with a native counter for great performance improvements, but that got b0rked at some point ;( regards - Timo

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
out https://github.com/szabgab/Perl6-Maven/ Can you point me at the actual pieces of code where this problem appears? regards - Timo

Algebraic Data Types in perl6

2013-04-01 Thread Timo Paulssen
t as a POC and then as a module. The module code now lives on github here: https://github.com/timo/ADT/ and is also available to be panda-installed from modules.perl6.org I'm looking forward to hearing your comments as well as your issues and pull requests on github :) - Timo 8< -

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

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

2014-06-27 Thread Timo Paulssen
does" the given role. So in the upper example, with role X and class Y, you could "is X" and get the same behavior as in the lower example. Hope to help (and hope what I wrote is actually accurate) - Timo

Re: Moar comprehension questions about Perl6

2014-09-09 Thread Timo Paulssen
do *, so we haven't released a Rakudo * for JVM yet. I'd be glad if you could give me a bit of help with the formulation of that section about the different versions. And yes, you can use the JVM Rakudo version to call to Java Code and back. I don't have a good example for you right now, though :( Hope to Help! - Timo

Re: Placeholder Variable (was: Perl 6 Debugging)

2015-03-15 Thread Timo Paulssen
n them are $_ and $^foobar variables, like in: @foobar.sort({ $^a.chars < $^b.chars }) So all you'll have to do is give your set_custom_ellipsoid method a proper signature with $name, $major and $recip in them - and you can even give $recip a default value so that you can get rid of the $recip = 0 unless defined $recip line, too. regards - Timo

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 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 tra

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

2015-03-20 Thread Timo Paulssen
st short for $(self.elem); if you want direct access to the variable you'd write $!elem. Also, an "indirect method call" would be self."$elem", self.$elem is basically equivalent to $elem(self), which is why you get the "cannot find method postcircumfix:<( )> error, as whatever's in $elem is probably not callable like that Regards - Timo

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

2015-04-27 Thread Timo Paulssen
variable called RAKUDO_MODULE_DEBUG that you can set in order to get a verbose account of what's going on inside rakudo's head. For more help, maybe visiting the IRC channel would be helpful, because we can get a more direct back-and-forth going. Hope to help! - Timo On 04/24/201

Re: UDP suport in rakudo

2015-06-18 Thread Timo Paulssen
I didn't get terribly far. Just a few days ago I actually remembered it'd be a good idea to resume that work and - given the right amount of tuits - I suppose I can do just that. If you have any particular ideas for API, behavior, stuff you want to have available etc, please go ahead and share :) - Timo

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

2015-07-03 Thread Timo Paulssen
n surprises newcomers is that this works: > sub takes_int_array(Int @bar) { say @bar } > my Int @foo = 1, 2, 3; > takes_int_array(@foo) 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] could be a Positional[Int]. Hope that helps and I've also successfully predicted your next stumbling block for you :) - Timo

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 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 n

Re: Is < > creating and Array or Parcel ?

2015-08-03 Thread Timo Paulssen
; sigil simply tells perl6 how it should behave in a given context. > > > LL Please note that the <> was a recent experiment that is going away soon, during the Great List Revisit/Refactor - Timo

Re: Coroutines

2015-08-14 Thread Timo Paulssen
t have much async I/O in them: http://jnthn.net/papers/2014-yapceu-async.pdf if you have any more questions, feel free to also visit us on the IRC: #perl6 on freenode MfG - Timo

Re: Default args in custom constructor

2015-09-04 Thread Timo Paulssen
Have you considered hash flattening into argument lists yet? method new(Int $a) { my %args; with $a { %args<$a> = $a } self.bless(|%args); } Does that help you forward at all? - Timo

Re: How to profile Perl 6 applications?

2015-10-24 Thread Timo Paulssen
pect that helps tremendously, though i have not actually measured anything beyond a new feeling of "snappyness". regards - Timo

Re: A tutorial on ENUMs? - look up enum symbol by name

2015-11-06 Thread Timo Paulssen
Order::name I hope this helps! - Timo

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: 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: thread problem

2016-01-14 Thread Timo Paulssen
he time to read through your code yet, but perhaps it'd be feasible to use our async sockets, which all run in the single "asynchronous IO stuff thread" we have. Regards - Timo On 13/01/16 10:00, mt1957 wrote: L.s. I got the following error 'Tried to read() on a socket

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

2016-01-14 Thread Timo Paulssen
Text::CSV_XS:from; my $csv = Text::CSV_XS.new() or die "Cannot use CSV: " ~ Text::CSV_XS.error_diag(); [...] That should work. For more information, see the Readme of Inline::Perl5, which also has a whole bunch of examples. Regards - Timo

Re: Porting considerations

2016-01-20 Thread Timo Paulssen
here unless the build system messes up, or our libuv dependency doesn't support the host system. The only difficult thing is porting the JIT compiler to different architectures, as it has large portions of per-platform assembly language source in it. Hope that helps? - Timo

Re: Finding and fixing Perl 6 bugs

2016-02-03 Thread Timo Paulssen
ook at, too. I've opened a ticket in the perl6-user-experience repository for this: https://github.com/perl6/user-experience/issues/8 Thank you for your time! - Timo

Re: Need help with Nil values

2016-02-22 Thread Timo Paulssen
.org/language/classtut I hope this'll get you towards your goal. If not, just keep asking :) Have fun with Perl 6! - Timo

Re: stdout_is in Perl 6?

2016-03-02 Thread Timo Paulssen
::Capture::Simple or IO::MiddleMan are not right for you, you can also try working with http://doc.perl6.org/type/Proc - Proc http://doc.perl6.org/type/Proc::Async - Proc::Async Those two are for running commands and capturing their stdout. Good Luck! - Timo On 02/03/16 08:00, H

Re: panda seems to need nmake

2016-03-06 Thread Timo Paulssen
#L122-L142 These configuration options get set during the build stage of moar itself, so if you want to make this work properly on your system, you can compile moar from source manually and it should be set up properly. Hope that helps! - Timo

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-29 Thread Timo Paulssen
erl6 look for the module in the right places. By now, rakudo will automatically pre-compile anything you "use" or -M (if that isn't prevented by "no precompilation" or things that aren't supported), so that'll be easier. Hope that helps! - Timo

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-29 Thread Timo Paulssen
gt; > -Tom > Could you try using $filename.IO.slurp.lines instead of $filename.IO.lines and see if that makes things any faster? - Timo

Re: A practical benchmark shows speed challenges for Perl 6

2016-03-29 Thread Timo Paulssen
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? > - Timo Actually, the method on an IO::Handle is called "slurp-rest"; slurp would only work with a filename instead. - Timo

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 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? ... Actually, the method on an IO

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

2016-04-01 Thread Timo Paulssen
ed with as much guidance and praise as you need :) - Timo

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

2016-04-01 Thread Timo Paulssen
completely what with the recent changes i made :S ... That looks like the place to start to me... The one big problem with the qt-based profiler is that the json library it uses refuses to work with files over a certain limit, and we easily reach that limit. So that's super dumb :( - Timo

Re: How to use NativeCall with a libc function?

2016-04-03 Thread Timo Paulssen
symbol is pretty much guaranteed to already be loaded in the program. HTH - Timo

Re: Two topics not found in docs search: 'constant' and 'heredocs'.

2016-04-04 Thread Timo Paulssen
index entry that the search feature would then allow you to use. - Timo

Re: How to use NativeCall with a libc function?

2016-04-04 Thread Timo Paulssen
quot; variable that you pass. Apparently we don't give a good error message when you say you want the CArray[uint32] to be passed as is, but accidentally declared it "is rw" in the signature. Can you see if removing the "is rw" from the CArray makes things work? - Timo

Re: Blobs and IEEE floating point

2016-04-19 Thread Timo Paulssen
uot;nativecast" for this task. That should also be a few hundred times faster than what BSON does, and it also works for Int types. You just might have to be careful with regards to endianness. - Timo

Re: Blobs and IEEE floating point

2016-04-19 Thread Timo Paulssen
perl6 -e 'use NativeCall; my CArray[num64] $foo .= new(1234e9); say Buf[uint8].new(nativecast(CArray[uint8], $foo)[^8])' Buf[uint8]:0x<00 00 40 1b 02 f5 71 42> Hope that helps! - Timo

Re: testing with a "warn"

2016-04-29 Thread Timo Paulssen
I didn't actually read the other mail in this thread yet, but you can catch a control exception (like warn uses) with a CONTROL block. Don't forget to .resume the exception unless you want it to break out of your code, too. Hope to help! - Timo

Re: Helping Perl 6: a complete dev environment

2016-04-29 Thread Timo Paulssen
I just have a ~/perl6 where i have a clone of MoarVM/MoarVM, perl6/nqp, and rakudo/rakudo. You just have to provide each Configure.pl with the same --prefiix - in my case that's ~/perl6/install - then everything will find each other. There's some extra paths in my $PATH: /home/

Re: pod: Missing semantic block

2016-05-16 Thread Timo Paulssen
in that list in the speculations. Fortunately, the list is introduced "standard semantic blocks include:", which implies the list isn't exhaustive. Hope that helps! - Timo

Re: problem installing GTK::Simple

2016-06-22 Thread Timo Paulssen
It should now install on windows even if you lack the .dll files. HTH - Timo On 22/06/16 11:16, Theo van den Heuvel wrote: Hi all, I am trying to install GTK::Simple using panda. On Windows10 installation fails and the log contains the line: Could not parse URI: http://gtk-dlls.p6c.org/l

Re: problem installing GTK::Simple

2016-06-22 Thread Timo Paulssen
On 06/22/2016 06:33 PM, Theo van den Heuvel wrote: > Thanks Timo, > > this brings be further, but not quite out of the woods. I now get the > following (Windows 10): > > > # Failed test at t/01-sanity.t line 10 > # Dynamic variable @*INC not found > > with the e

Re: lwp. Where are the directions?

2016-08-21 Thread Timo Paulssen
You might have more luck with HTTP::UserAgent: https://github.com/sergot/http-useragent Hope that helps! - Timo On 21/08/16 09:19, ToddAndMargo wrote: > Hi All, > > Where are the directions to use > > http://modules.perl6.org/#q=LWP > > (I do not have Perl 6 install

Re: Killer Features of Perl 6

2016-08-22 Thread Timo Paulssen
Could I interest you in focusing your time on the project arnsholt and me started long ago to make a Jupyter/IPython compatible kernel? https://github.com/timo/iperl6kernel

Re: Graphical Toolkits

2016-08-25 Thread Timo Paulssen
a native Electron binding, which is the thing that powers the Atom Editor if i'm not mistaken. Maybe the "most wanted" document for native bindings wants a bit of a touch-up in this area: https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/bindings.md#user-interfaces Hope that helps! - Timo

Re: can Perl 6 bootstrap itself (downloading modules and such via git)

2016-08-26 Thread Timo Paulssen
On 26/08/16 11:03, Andreas Mueller wrote: > on Windows i have to install git to download a Module > > maybe, one day there is a 'git' written in P6 > > > Andreas I think we should be able to grab modules without using git if we can rely on github and gitlab and whoever hosts modules to give

Re: grammars and indentation of input

2016-09-13 Thread Timo Paulssen
I haven't read your code, but your question immediately made me think of this module: https://github.com/masak/text-indented Would be interested to hear if this helps you! - Timo

Re: coded size limits on Perl data types?

2016-09-13 Thread Timo Paulssen
s/codepoints/etc in a character string? MVMString > declares its "num_graphs" as a MVMuint32, but a graph can be multiple codepoints and as such multiple bytes when encoded. > Following the above, does the Perl 6 language specify any such > limits, or > does it define the above things to be infinite? I don't think it does. Hope that helps! - Timo

Re: coded size limits on Perl data types?

2016-09-13 Thread Timo Paulssen
On 09/13/2016 02:26 PM, Elizabeth Mattijsen wrote: >> On 13 Sep 2016, at 14:15, Timo Paulssen wrote: >> >> I'll answer based on the data structures MoarVM uses internally: >> >> On 09/13/2016 05:13 AM, Darren Duncan wrote: >> >>> (Pretend the actu

Re: coded size limits on Perl data types?

2016-09-13 Thread Timo Paulssen
On 09/13/2016 03:12 PM, Timo Paulssen wrote:> If one big integer is allowed to be 14 gigabytes big (if we use the > default of 28 bits per "mp digit"; it's also possible to use 31 or > 60.), we can still safely say "limited only by memory" for now. Something els

Re: Startup performance on OS X

2016-10-02 Thread Timo Paulssen
On my machine it's about 0.1 seconds. The machine i'm using has this CPU in it: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz And it runs off an SSD. - Timo

Re: Multithreading, GC

2016-10-05 Thread Timo Paulssen
ch uses MoarVM's GC as an example: https://www.infoq.com/presentations/terminology-garbage-collector Please feel free to ask more questions - Timo

Re: rakudobrew failing to build moar

2016-10-12 Thread Timo Paulssen
t=mbc \ --stagestats --output=CORE.setting.moarvm gen/moar/m-CORE.setting maybe even under GDB. That should give you a little more detail on what's going on. - Timo

Re: zenity sub

2016-12-01 Thread Timo Paulssen
! - Timo

Re: zenity sub

2016-12-01 Thread Timo Paulssen
Surely you could already build a decent zenity-like in Perl 6 using GTK::Simple. But I suggest using qx for calling the zenity binary from your system. - Timo

Re: What's the Perl 6 equivalent of Python `itertools.chain`?

2016-12-08 Thread Timo Paulssen
Something like this should do what you want: timo@schmand ~> perl6 -e 'my $a = gather for ^5 { say "get from a!"; take $_ }; my $b = gather for ^5 { say "get from b!"; take 10 * $_ + 1 }; .say for (|$a, |$b)' get from a! 0 get from a! 1 get from a! 2 get from a!

Re: mocking $*OUT

2017-01-24 Thread Timo Paulssen
does expect is just the "self", aka the invocant). BTW, there's two modules in the ecosystem that basically do exactly what you're trying to do here. They are called IO::String and IO::Capture::Simple. Hope that helps! - Timo On 01/24/2017 11:28 PM, Brian Duggan wrote:

Re: sub for die?

2017-02-18 Thread Timo Paulssen
It is usually considered The Right Thing to output error messages to stderr instead of stdout; you can use "note" to output to stderr (and it'll also put a newline at the end for you, which print doesn't do).

Re: reverse of .lines?

2017-02-18 Thread Timo Paulssen
amples were confusing your original question where you said "reverse of .lines", but you meant "inverse of .lines". So you can just leave out the .reverse from these examples. Hope that helps! - Timo

Re: cifs control

2017-02-18 Thread Timo Paulssen
On 18/02/17 06:04, ToddAndMargo wrote: > Hi All, > > Sorry for the 1000 questions today, but I have anb entire > week to think them up. And I have another one. > > In Windows, I am noticing that Cobian Backup and Windows > Explorer (not Internet Explorer) can tool around CIFS > (Windows) shares ba

Re: intercept STDERR

2017-02-18 Thread Timo Paulssen
Normally it's enough to override $*ERR for this purpose. I suggest using IO::MiddleMan to do that, or maybe IO::Capture::Simple. HTH - Timo

Re: net::SMTP in rpm land?

2017-02-18 Thread Timo Paulssen
ntil something gets figured out by all the involved parties. HTH - Timo

Re: need {} help

2017-02-18 Thread Timo Paulssen
assignment form which looks like s{ foo } = "bar"). Sadly, I couldn't find any docs about the assignment form of s///, but it does explain the thing with balanced parenthesis: https://docs.perl6.org/syntax/s$SOLIDUS%20$SOLIDUS%20$SOLIDUS Hope that helps! - Timo

Re: sub for die?

2017-02-19 Thread Timo Paulssen
ram is "not all that useful" as you correctly point out. HTH - Timo

Re: print to STDERR problem

2017-02-19 Thread Timo Paulssen
> And then a bit lower you can see: > Date: 4 Aug 2000 > Last Modified: 14 Sep 2000 thanks - Timo

Re: print to STDERR problem

2017-02-19 Thread Timo Paulssen
Oh, another question: please tell us how you reached that site? I expect you did a google search or something; can you tell us what search terms you've used to get there? We should obviously improve the docs so that they get found instead of the archive …

Re: print to STDERR problem

2017-02-19 Thread Timo Paulssen
On 02/19/2017 11:15 PM, ToddAndMargo wrote: > On 02/19/2017 07:15 AM, Timo Paulssen wrote: >> Oh, another question: >> >> please tell us how you reached that site? I expect you did a google >> search or something; can you tell us what search terms you've used to &

Re: I am having trouble installing panda

2017-02-24 Thread Timo Paulssen
its "new" method, and the raw interface has "switch-to-ssl()" and "starttls()" methods. HTH - Timo

Re: I need the rules for qx with a pipe inside

2017-03-06 Thread Timo Paulssen
This is because of how xclip works. It keeps running until you kill it, or until the number of pastes has been reached that you specify with -loops. You will want to use Proc::Async or run with an :in parameter instead of shelling into a redirect with echo, here's why: timo@schmand ~

Re: $*DISTRO

2017-03-06 Thread Timo Paulssen
Doesn't seem to be, but there's $*DISTRO.is-win, which is usually enough (i.e. you have to do one dumb thing on windows and another sane thing on literally anything else)

Re: I need the rules for qx with a pipe inside

2017-03-06 Thread Timo Paulssen
> Is there a way to send and "end of file" marker to terminate the pipe? That is exactly what the call to .close does.

Re: program/script question

2017-03-07 Thread Timo Paulssen
On 07/03/17 10:54, Brandon Allbery wrote:> Perl compiles to an internal AST, as does Python --- but there are > "compilers" for both, at various levels [...] more precisely, python code compiles down to bytecode rather than sticking around at an AST level.

Re: Design question re: function parameters

2017-03-07 Thread Timo Paulssen
r lists: sub postfix:(Int(Cool) $n) { [*] 2 .. $n } That'll explode early when the string you pass doesn't intify properly. It'll also allow you to pass lists and use their length for example - not sure if you want that. Hope that helps! - Timo

Re: I need the rules for qx with a pipe inside

2017-03-07 Thread Timo Paulssen
ommand 'echo "oh my "what do we have here > " | cat' exited unsuccessfully (exit code: 1) > in block at -e line 1 Or what if there's backtick quotes? > timo@schmand ~> perl6 -e 'my $Str = $*IN.slurp-rest(:close); shell > qq/echo "$Str"

Re: Variables in modules

2017-03-09 Thread Timo Paulssen
"my" variables are lexically scoped to the curly braces that contain them. That means that your $IAm is limited exactly to that init block. Also, =~ isn't in perl6. You can put "my $IAm" outside that block and assign to it inside the block, though. HTH - Timo

Re: issues with

2017-03-09 Thread Timo Paulssen
Hey, X11::Xlib::Raw is buggy. It has to have all modules it uses internally inside its "provides" section in the META6.json, otherwise "use" will not find them. I'll open a ticket with the module author. HTH - Timo On 08/03/17 22:08, ToddAndMargo wrote: > Hi All,

Re: How to defined reversed word in a perl6 grammar ?

2017-03-09 Thread Timo Paulssen
Hi, Wouldn't it be enough to use something that backtracks? As you might know, "token" is "regex + ratcheting" and "rule" is "token + sigspace". HTH - Timo

Re: Your thoughts on Padre?

2017-03-09 Thread Timo Paulssen
ed plugins for atom, so they are generally of high quality. HTH - Timo

Re: debugging modules

2017-03-10 Thread Timo Paulssen
rce a full recompile of all used modules (transitively) in memory, but you can copy-paste the modules you're interested in into a "lib/" folder and just -Ilib on the commandline. just make sure to rm -rf lib/.precomp between runs, i think! hope that helps! - Timo

Re: Fwd: Re: Variables in modules

2017-03-10 Thread Timo Paulssen
I don't quite understand what's wrong with just my $TheValue = $?FILE.subst(/.* "/"/, "" :g); near the top of your module?

Re: my command line notes:

2017-03-15 Thread Timo Paulssen
@*ARGS.perl ~ ">\n"; But even with "" you don't have to backslash the @ and the * there. You only would have to do that if you had a method call that includes parenthesis or if you had a subscript after something that looks just like an array variable. (these rules

Re: debugging modules

2017-03-16 Thread Timo Paulssen
On 03/16/2017 04:44 PM, Theo van den Heuvel wrote: > Earlier I tried using rakudobrew, before I learnt that that was > actually discouraged, > despite comments in doc/perlintro.pdf. I think I made a full clean-up. perl6intro.com, which is where the pdf is generated from, has been updated to no lon

Re: Question for the developers on splice

2017-03-21 Thread Timo Paulssen
of elements or if it does a bit of unnecessary work. HTH - Timo

Re: Can this OR be shortened?

2017-03-24 Thread Timo Paulssen
I seem to recall you asked about performance recently the regex engine has a significant overhead. Your regex is equivalent to $Terminal.contains('xterm' | 'linux') though of course if you only test this once at the beginning of the program, you can ignore that.

Re: Can this OR be shortened?

2017-03-25 Thread Timo Paulssen
On 25/03/17 06:15, ToddAndMargo wrote: >> while || tries the left side first, then the right side. >> Basically use | in regexes unless you need ||. > > Would this be the logical AND equivalent? > > if $Terminal ~~ /xterm && linux/ {} > > Thank you! > > -T > There is no &&, but there is &. th

Re: Can this OR be shortened?

2017-03-25 Thread Timo Paulssen
On 25/03/17 12:53, Tom Browder wrote: > On Fri, Mar 24, 2017 at 10:36 PM, Timo Paulssen wrote: >> I seem to recall you asked about performance recently >> >> the regex engine has a significant overhead. > ... > > Isn't that somewhat mitigated by defining

Re: Failed to open file .. too many open files

2017-03-25 Thread Timo Paulssen
lying on the garbage collector to do file handle closing for you, which is nondeterministic and a bad idea in general. HTH - Timo

Re: Failed to open file .. too many open files

2017-03-26 Thread Timo Paulssen
you use inside it is already declared with a "my". HTH - Timo

Re: "not" question

2017-03-27 Thread Timo Paulssen
!"789" is just False. On 27/03/17 18:53, ToddAndMargo wrote: > Hi All, > > What am I doing wrong in my "AND not 789"? > > $ perl6 -e 'my $x="abc123def456"; > my $y="123"; if $x.contains( $y & "abc" & ! "789" ) > {say "Yes"} else {say "no"};' > > no > > -T >

Re: regex and performance question

2017-03-27 Thread Timo Paulssen
Yeah, junctions are super useful, but not very fast. compare these two pieces of code: so "hello how are you today?".contains("hello" & "u t") for ^1_000_000 and my $target = "hello how are you today?"; so $target.contains("hello") && $target.contains("u t") for ^1_000_000 On my machi

  1   2   3   >