Re: zef how dependencies of installed modules?

2024-11-22 Thread ToddAndMargo via perl6-users
On 11/22/24 01:42, Quanrong via perl6-users wrote: > After the module gets installed, how can I ask zef > what the dependencies were? `zef --help` says that it's with the `depends` subcommand. So: $ zef depends File::Temp File::Directory::Tree:ver<0.1>:auth Hope that helps! Hi Quanrong, T

Re: zef how dependencies of installed modules?

2024-11-22 Thread Quanrong via perl6-users
> After the module gets installed, how can I ask zef > what the dependencies were? `zef --help` says that it's with the `depends` subcommand. So: $ zef depends File::Temp File::Directory::Tree:ver<0.1>:auth Hope that helps!

Re: zef show dependencies of installed modules?

2024-11-20 Thread ToddAndMargo via perl6-users
Subject lacked the s in show. Sorry about that.

zef how dependencies of installed modules?

2024-11-20 Thread ToddAndMargo via perl6-users
Hi All, zef install File::Temp ===> Searching for: File::Temp ===> Searching for missing dependencies: File::Directory::Tree ... Aborting due to test failure: File::Directory::Tree:ver<0.1>:auth (use --force-test to override) I did get this installed but I have a question about it. After the

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Elizabeth Mattijsen
> On 9 Aug 2022, at 15:10, Fernando Santagata wrote: > > On Tue, Aug 9, 2022 at 2:13 PM Elizabeth Mattijsen wrote: > > On 9 Aug 2022, at 13:53, Fernando Santagata > > wrote: > > > > Hello, > > > > I'm trying to uninstall old versions of

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Fernando Santagata
On Tue, Aug 9, 2022 at 2:13 PM Elizabeth Mattijsen wrote: > > On 9 Aug 2022, at 13:53, Fernando Santagata > wrote: > > > > Hello, > > > > I'm trying to uninstall old versions of some modules; it looks like it's > working but in reality it isn'

Re: I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Elizabeth Mattijsen
> On 9 Aug 2022, at 13:53, Fernando Santagata wrote: > > Hello, > > I'm trying to uninstall old versions of some modules; it looks like it's > working but in reality it isn't. For example, but it's not limited to just > this module: > > $ zef l

I can't 'zef uninstall' old versions of modules anymore

2022-08-09 Thread Fernando Santagata
Hello, I'm trying to uninstall old versions of some modules; it looks like it's working but in reality it isn't. For example, but it's not limited to just this module: $ zef list --installed|grep CBOR ===> Found via /opt/rakudo-pkg/share/perl6/core ===> Found

Re: Raku modules in Gentoo's Portage

2020-12-01 Thread Brad Gilbert
installing at a time. So that would be one thing that a Gento specific subclass would change. On Tue, Dec 1, 2020 at 4:15 AM p.spek via perl6-users wrote: > Hi, fellow Rakoons, > > I've been looking into the creation of a Portage tree for Gentoo, to allow > installation of Raku mo

Raku modules in Gentoo's Portage

2020-12-01 Thread p.spek via perl6-users
Hi, fellow Rakoons, I've been looking into the creation of a Portage tree for Gentoo, to allow installation of Raku modules through the default package manager. There's currently two issues I need to iron out, and I have no clue how to fix either at this point. The first one deal

Re: Re-exporting modules that export operators...

2020-08-15 Thread Stuart Hungerford
On Sun, Aug 16, 2020 at 9:03 AM Ralph Mellor wrote: > The SO you quote includes an operator. So that's not the problem. > > The SO is written by jnthn. It doesn't get more authoritative than that. That's good to know, although for me the difference between it working and not working (with that e

Re: Re-exporting modules that export operators...

2020-08-15 Thread Ralph Mellor
AM Stuart Hungerford wrote: > > Hi, > > I'm using the technique described in this thread > https://stackoverflow.com/questions/61179586/use-haskell-like-prelude-modules-in-a-module-in-raku > to re-export module sub-trees in a project. One of these re-export > modules also export

Re-exporting modules that export operators...

2020-08-14 Thread Stuart Hungerford
Hi, I'm using the technique described in this thread https://stackoverflow.com/questions/61179586/use-haskell-like-prelude-modules-in-a-module-in-raku to re-export module sub-trees in a project. One of these re-export modules also exports an infix operator. The others only export classe

Re: My Windows Modules

2020-01-21 Thread ToddAndMargo via perl6-users
On 2020-01-21 00:58, Shlomi Fish wrote: Hi ITodd! On Mon, 20 Jan 2020 22:20:29 -0800 ToddAndMargo via perl6-users wrote: Hi All, I have my Win API modules to the point I like them now. I will be a few months before I get them up on GIT. You should already be using version control (git

Re: My Windows Modules

2020-01-21 Thread Shlomi Fish
Hi Todd! On Mon, 20 Jan 2020 22:20:29 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have my Win API modules to the point I > like them now. I will be a few months > before I get them up on GIT. > You should already be using version control (git, likely):

Re: My Windows Modules

2020-01-20 Thread ToddAndMargo via perl6-users
Hi All, I have my Win API modules to the point I like them now. I will be a few months before I get them up on GIT. If anyone wants to look at them now, I will vpaste.net them for you. :-) -T

Re: My Windows Modules

2020-01-08 Thread ToddAndMargo via perl6-users
Hi All, I have RegSetValueExW working now. It even creates keys when they don't exist. I have to catch up on other project for customers (and refill the coffers) that have been put on hold to get these modules programmed, so it will be at least a month away before I can get them up on G

Re: My Windows Modules

2020-01-03 Thread ToddAndMargo via perl6-users
On 2020-01-03 12:56, Laurent Rosenfeld via perl6-users wrote: Hy Todd, why don't you use GitHub or GitLab? This is really a better solution for software source and revision control. Have a nice new year, Laurent. I am definitely thinking of it!

Re: My Windows Modules

2020-01-03 Thread Laurent Rosenfeld via perl6-users
argo via perl6-users wrote: > > Hi All, > > > > My latest three modules. two more in the works that use these: > > > > WinReg.pm6 > > WinMessageBox > > NativeConstants.pm6 > > > > WinReg.pm6 about killed me! > > > > -T > > > &

Re: My Windows Modules

2020-01-03 Thread ToddAndMargo via perl6-users
On 2020-01-01 11:49, Veesh Goldman wrote: For the record: github is also searchable by google. Also, you could write blog posts, which are also searchable by google. I happen to read this list on my phone, and for some reason it gets super annoyed at very long posts, so I find these lengthy c

Re: My Windows Modules

2020-01-03 Thread ToddAndMargo via perl6-users
On 2019-12-31 23:12, ToddAndMargo via perl6-users wrote: Hi All, My latest three modules.  two more in the works that use these: WinReg.pm6 WinMessageBox NativeConstants.pm6 WinReg.pm6 about killed me! -T Hi All, Anyone using this code, it is going through some major changes. When I get

Re: My Windows Modules

2020-01-01 Thread Veesh Goldman
ws API module, which is what this is targets at. > > > > > For someone who complains immediately if you are disrespected by having > > > your grammar corrected, you are remarkably disrespectful to everyone else. > > Okay. When I do this, please point it out so I can correct

Re: My Windows Modules

2020-01-01 Thread ToddAndMargo via perl6-users
 grammar corrected, you are remarkably disrespectful to everyone else. Okay. When I do this, please point it out so I can correct it. The work you have done getting these modules to work on Windows is great. Given the dominance of Windows in computing, your modules will almost certainly be

Re: My Windows Modules

2020-01-01 Thread Richard Hainsworth
Todd! Of what use are these module printouts? For someone who complains immediately if you are disrespected by having your grammar corrected, you are remarkably disrespectful to everyone else. The work you have done getting these modules to work on Windows is great. Given the dominance of

Re: My Windows Modules

2019-12-31 Thread ToddAndMargo via perl6-users
Hi All, My latest three modules. two more in the works that use these: WinReg.pm6 WinMessageBox NativeConstants.pm6 WinReg.pm6 about killed me! -T # unit module WinReg; # WinReg.pm6 #`{ Utilities to operate on the Windows registry perl6 -I. -c WinReg.pm6 Test one liner

global variables and modules question

2019-12-31 Thread ToddAndMargo via perl6-users
Hi All, Is there a way to restrict variables, constants, enums and such declared in the global section of a module to only the module? Many thanks, -T -- ~ When we ask for advice, we are usually looking for an accomplice. -- C

Re: My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 18:47, ToddAndMargo via perl6-users wrote: On 2019-12-29 17:39, ToddAndMargo via perl6-users wrote: Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me

Re: My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 17:39, ToddAndMargo via perl6-users wrote: Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I better show what I have done with it! So far there are

My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I better show what I have done with it! So far there are four of them. I have completed the windows popup module

Re: modules and subsets

2019-12-13 Thread Todd Chester via perl6-users
On 2019-12-13 01:06, Fernando Santagata wrote: our $pi is export = 4.13; Thank you!

Re: modules and subsets

2019-12-13 Thread Fernando Santagata
On Fri, Dec 13, 2019 at 6:48 AM Todd Chester via perl6-users < perl6-us...@perl.org> wrote: > On 2019-12-12 00:22, Fernando Santagata wrote: > > On Thu, Dec 12, 2019 at 3:46 AM Todd Chester > > wrote: > > Can I export any other variable and constants the same way: >

Re: modules and subsets

2019-12-12 Thread Todd Chester via perl6-users
On 2019-12-12 00:22, Fernando Santagata wrote: On Thu, Dec 12, 2019 at 3:46 AM Todd Chester > wrote: On 2019-12-11 10:22, Fernando Santagata wrote: > File test.pm6 > > unit module test; > subset PosInt of Int is export where * > 0; >

Re: modules and subsets

2019-12-12 Thread Fernando Santagata
On Thu, Dec 12, 2019 at 3:46 AM Todd Chester wrote: > On 2019-12-11 10:22, Fernando Santagata wrote: > > File test.pm6 > > > > unit module test; > > subset PosInt of Int is export where * > 0; > > > > > > File test.p6 > > > > use lib '.'; > > use test; > > sub mytest(PosInt $a) { say $a } > > myt

Re: modules and subsets

2019-12-11 Thread Todd Chester
On 2019-12-11 10:22, Fernando Santagata wrote: File test.pm6 unit module test; subset PosInt of Int is export where * > 0; File test.p6 use lib '.'; use test; sub mytest(PosInt $a) { say $a } mytest(1); # output: 1 mytest(-1);    # output Constraint type check failed in binding to par

Re: modules and subsets

2019-12-11 Thread Todd Chester via perl6-users
On 2019-12-11 10:16, Elizabeth Mattijsen wrote: $ 6 'subset A of Int; dd OUR::.keys' ("A",).Seq Hi Elizabeth, subset A of Int; dd OUR::.keys ("A",).Seq Nil Would you explain how your are using dd and what your are showing me here? Also how it ties into my original question as to if the ca

Re: modules and subsets

2019-12-11 Thread Todd Chester via perl6-users
On 2019-12-11 09:54, JJ Merelo wrote: By default, the scope of anything (containers, classes, whatever) is lexical to the scope they are in. Hi JJ, Thank you for responding. By the way, I'd be a Golden. I don't understand how you are using the word "lexical". I may be mixing Modula2 with

Re: modules and subsets

2019-12-11 Thread Fernando Santagata
File test.pm6 unit module test; subset PosInt of Int is export where * > 0; File test.p6 use lib '.'; use test; sub mytest(PosInt $a) { say $a } mytest(1); # output: 1 mytest(-1);# output Constraint type check failed in binding to parameter '$a'; expected test::PosInt but got Int (-1)

Re: modules and subsets

2019-12-11 Thread Elizabeth Mattijsen
$ 6 'subset A of Int; dd OUR::.keys' ("A",).Seq > On 11 Dec 2019, at 18:57, JJ Merelo wrote: > > > > El mié., 11 dic. 2019 a las 18:54, JJ Merelo () escribió: > Subsets follow pretty much the same rules as every other declared thing. > Change subset by "variable" or "class", if the answer is

Re: modules and subsets

2019-12-11 Thread JJ Merelo
El mié., 11 dic. 2019 a las 18:54, JJ Merelo () escribió: > Subsets follow pretty much the same rules as every other declared thing. > Change subset by "variable" or "class", if the answer is true, it's also > true for subsets. > > By default, the scope of anything (containers, classes, whatever)

Re: modules and subsets

2019-12-11 Thread JJ Merelo
Subsets follow pretty much the same rules as every other declared thing. Change subset by "variable" or "class", if the answer is true, it's also true for subsets. By default, the scope of anything (containers, classes, whatever) is lexical to the scope they are in. El mié., 11 dic. 2019 a las 18

modules and subsets

2019-12-11 Thread ToddAndMargo via perl6-users
Hi All, If I create a subset in the global section of a module (not inside a sub), can the subset be seen by the main program? Can a subset be declared on a sub's declaration line? (Hope springs eternal.) Many thanks, -T

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-05 23:39, ToddAndMargo via perl6-users wrote: Hi All, Its there a way, if you import a module that is also imports a bunch of constants into your main program to be used globally? If so, what is the syntax in the module and in the main program? And what happends if there is a name c

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On Fri, 6 Dec 2019 at 09:05, ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: On 2019-12-06 00:01, Tom Blackwood wrote: > Todd, > > AFAIK Perl’s culture is not to use so many constants in actual > programming. :) > > Tom > Is there a w

Re: modules and constants

2019-12-06 Thread Simon Proctor
If you define them in the top level of your module then all your subs have access : constant FOO = 2; sub inc-by-foo( $a ) { $a+FOO; } On Fri, 6 Dec 2019 at 09:05, ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2019-12-06 00:01, Tom Blackwood wrote: > > Todd, > > > > AFAIK P

Re: modules and constants

2019-12-06 Thread ToddAndMargo via perl6-users
On 2019-12-06 00:01, Tom Blackwood wrote: Todd, AFAIK Perl’s culture is not to use so many constants in actual programming. :) Tom Is there a way to make constants universal inside a module, or do I have to declare them inside every sub?

Re: modules and constants

2019-12-06 Thread Tom Blackwood
Todd, AFAIK Perl’s culture is not to use so many constants in actual programming. :) Tom On Fri, Dec 6, 2019 at 3:47 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > Its there a way, if you import a module that is also > imports a bunch of constants into your main pr

modules and constants

2019-12-05 Thread ToddAndMargo via perl6-users
Hi All, Its there a way, if you import a module that is also imports a bunch of constants into your main program to be used globally? If so, what is the syntax in the module and in the main program? And what happends if there is a name conflict between the module and main program? Many thanks,

lib for non-core, non-installed modules

2019-04-18 Thread mimosinnet
Dear perl6 community, I wonder what would be the right syntax for non-core, non-installed modules as discussed in StackOverflow? [1]. In other words, something similar to FindBin::libs in perl5. The solution I have come across is: use lib $*PROGRAM.dirname.IO.add('../lib');

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:48 AM, Timo Paulssen wrote: Please be aware that passing a folder with many files in it as the -I path will cause a tremendous slowdown when loading modules, since it goes through the whole file hierarchy starting at that path. If /home/linuxutil is actually a typical home

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:20 AM, JJ Merelo wrote: Since I haven't done this for a long time, let me remind you the possibility of posting, if you will, your questions _also_ in StackOverflow. You'll (possibly) get more answers (or just different ones), and will help spread the word about Perl 6 (which l

Re: I need the rules for running modules from the command line

2018-08-14 Thread Timo Paulssen
Please be aware that passing a folder with many files in it as the -I path will cause a tremendous slowdown when loading modules, since it goes through the whole file hierarchy starting at that path. If /home/linuxutil is actually a typical home folder with dotfiles and documents and what have you

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
rectory This does work, but what a lot of extra work: $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( "Blue\n" );' Blue What are the rules for calling modules from the command line? Many thanks, -T Follow up, with Timo's help. Note ke

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
; Could not open PrintBlue( "Blue" ). Failed to stat file: no such >> file or directory >> >> >> This does work, but what a lot of extra work: >> >> $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( >> "Blue\n" );&#

Re: I need the rules for running modules from the command line

2018-08-14 Thread JJ Merelo
en PrintBlue( "Blue" ). Failed to stat file: no such > > file or directory > > > > > > This does work, but what a lot of extra work: > > > > $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( > > "Blue\n" );' > > Blue > > > > > > > > What are the rules for calling modules from the command line? > > > > > > Many thanks, > > -T > -- JJ

Re: I need the rules for running modules from the command line

2018-08-14 Thread Timo Paulssen
gt; $ perl6 -MPrintColors 'PrintBlue( "Blue\n" );' > Could not open PrintBlue( "Blue" ). Failed to stat file: no such > file or directory > > > This does work, but what a lot of extra work: > > $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( > "Blue\n" );' > Blue > > > > What are the rules for calling modules from the command line? > > > Many thanks, > -T

I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
extra work: $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue( "Blue\n" );' Blue What are the rules for calling modules from the command line? Many thanks, -T

[perl #123507] Can't stat modules/debugger-ui-commandline/lib: No such file or directory

2017-12-03 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
t; During the "make install" phase of Rakudo Start 2014.12.1 (but I think > this is not new) > I saw this message: > > > Can't stat modules/debugger-ui-commandline/lib: No such file or directory > > at tools/build/module-install.pl line 24.

[perl #132086] [BUG] will leave {} variable trait does not compile inside modules

2017-09-14 Thread via RT
# New Ticket Created by Vittore Scolari # Please include the string: [perl #132086] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132086 > The following code works: $ perl6 -e 'sub subr() { say "a"; my $c will leave { .say }

Re: Security and modules question

2017-07-18 Thread Andrew Kirkpatrick
grams that are > used by the root account. I have been marking them > to root and 700 to keep other out. But it is occurring > to me, if the bad guys have access to my custom modules, > they could insert anything they want into it and have > root access. So, I have been setti

Security and modules question

2017-07-18 Thread Todd Chester
Hi All, I have been wondering about pl programs that are used by the root account. I have been marking them to root and 700 to keep other out. But it is occurring to me, if the bad guys have access to my custom modules, they could insert anything they want into it and have root access. So, I

[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules

2017-07-12 Thread Nick Logan via RT
This appears to be resolved - possibly in https://github.com/rakudo/rakudo/commit/37250ed5ebc3d25eae656ddfa19187c90a712e3c

[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules

2017-06-10 Thread Zoffix Znet via RT
Also noticed another failure mode in a more recent version[^1] of the test file: fails (likely due to segv): prove -e 'perl6 -Ilib' -r t/03-DESTROY.t succeeds: prove -e 'perl6 -Ilib' -vlr t/03-DESTROY.t And removing the `-Ilib` from prove line didn't help it, but removing the

[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules

2017-06-10 Thread Zoffix Znet via RT
Also noticed another failure mode in a more recent version[^1] of the test file: fails (likely due to segv): prove -e 'perl6 -Ilib' -r t/03-DESTROY.t succeeds: prove -e 'perl6 -Ilib' -vlr t/03-DESTROY.t And removing the `-Ilib` from prove line didn't help it, but removing the

[perl #131510] [SEGV] Segfault when `-Ilib` while running a file that does `use lib ` and loads some modules

2017-06-04 Thread via RT
rl6 t/03-DESTROY.t I tried making a small test case that just had a dummy module and was doing `use lib ` but that didn't segfault. Perhaps it's got to do with loading some installed modules?

Smoke testing Perl 6 Modules on Rakudo

2017-04-08 Thread Gabor Szabo
I wonder if this site is really out of date as the dates at the top indicate? http://smoke.perl6.org/report If so, is there working version of this report? Gabor

Re: Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
7 at 1:28 PM Chris Ramsey wrote: > > I've been googling a bunch but can't find diddly for creating ncurses > style interactive terminals in Perl 6. > > Sorry for such a vague question, but are there built-in modules for such a > thing, and if so, what is it called so I can dive through the docs? > > Thanks! > >

Re: Interactive terminal modules?

2017-03-28 Thread Lloyd Fournier
> Sorry for such a vague question, but are there built-in modules for such a > thing, and if so, what is it called so I can dive through the docs? > > Thanks! >

Interactive terminal modules?

2017-03-28 Thread Chris Ramsey
I've been googling a bunch but can't find diddly for creating ncurses style interactive terminals in Perl 6. Sorry for such a vague question, but are there built-in modules for such a thing, and if so, what is it called so I can dive through the docs? Thanks!

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: debugging modules

2017-03-16 Thread Theo van den Heuvel
have trouble getting rakudo to debug some of my own modules. merci, Theo Dominique Dumont schreef op 2017-03-16 16:21: On Friday, 10 March 2017 21:47:13 CET Theo van den Heuvel wrote: Strangely I do get messages like the following + EVAL_1 (1 - 1) | CompUnit::DependencySpecification.new(short

Re: debugging modules

2017-03-16 Thread Dominique Dumont
On Friday, 10 March 2017 21:47:13 CET Theo van den Heuvel wrote: > Strangely I do get messages like the following > > + EVAL_1 (1 - 1) > > | CompUnit::DependencySpecification.new(short-name => > > "Terminal::ANSIColor",... > > about some modul

Re: Fwd: Re: Variables in modules

2017-03-15 Thread Lloyd Fournier
Since $?FILE in modules is being discussed I'll just leave this RT here: https://rt.perl.org/Public/Bug/Display.html?id=128442 On Thu, Mar 16, 2017 at 4:50 AM JuhiMarcel LangbroekTimmerman < mt195...@gmail.com> wrote: > In the perl doc of IO, IO::Path etc. The type is $?File.IO.

Re: Fwd: Re: Variables in modules

2017-03-15 Thread JuhiMarcel LangbroekTimmerman
In the perl doc of IO, IO::Path etc. The type is $?File.IO.WHAT to search for. Or $?File.IO.^methods but that is only a list of methods. Marcel On March 13, 2017 23:29:15 ToddAndMargo wrote: On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue

Re: Fwd: Re: Variables in modules

2017-03-13 Thread ToddAndMargo
On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export { $TheValue.say } Could something else be wrong here? cheers, Theo ToddAndMargo schreef op 2017-03-10 22:10: On 03/10/2017 09:53 AM, Timo Pa

Re: Fwd: Re: Variables in modules

2017-03-13 Thread JuhiMarcel LangbroekTimmerman
now we are at it, for readability perhaps instead of substitutes do, my $thevalue = $?FILE.IO.basename; Marcel On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export { $TheValue.say } Could some

Re: Fwd: Re: Variables in modules

2017-03-10 Thread ToddAndMargo
Hm. How does it do with "sub sayfn" commented out? On 03/10/2017 04:02 PM, Theo van den Heuvel wrote: > Todd, > > Apparently I don't understand your intentions. You said you wanted > constants globally available in your module. > Don't you want to use those constants? If so, how? > On

Re: Fwd: Re: Variables in modules

2017-03-10 Thread Theo van den Heuvel
Todd, Apparently I don't understand your intentions. You said you wanted constants globally available in your module. Don't you want to use those constants? If so, how? Hm. How does it do with "sub sayfn" commented out? -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: Fwd: Re: Variables in modules

2017-03-10 Thread ToddAndMargo
ToddAndMargo schreef op 2017-03-10 22:10: On 03/10/2017 09:53 AM, Timo Paulssen wrote: I don't quite understand what's wrong with just my $TheValue = $?FILE.subst(/.* "/"/, "" :g); near the top of your module? Hi Timo, Because it gives you "Use of uninitialized value $TheValue" when yo

Re: Fwd: Re: Variables in modules

2017-03-10 Thread Theo van den Heuvel
Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export { $TheValue.say } Could something else be wrong here? cheers, Theo ToddAndMargo schreef op 2017-03-10 22:10: On 03/10/2017 09:53 AM, Timo Paulssen wrote: I don't quite understand what's wrong with just

Re: Fwd: Re: Variables in modules

2017-03-10 Thread ToddAndMargo
On 03/10/2017 09:53 AM, Timo Paulssen wrote: I don't quite understand what's wrong with just my $TheValue = $?FILE.subst(/.* "/"/, "" :g); near the top of your module? Hi Timo, Because it gives you "Use of uninitialized value $TheValue" when you go to use it inside one of the "is export

Re: debugging modules

2017-03-10 Thread Theo van den Heuvel
| CompUnit::DependencySpecification.new(short-name => "Terminal::ANSIColor",... about some modules (even some I wrote myself), but the interesting one is missing. Best, Theo Timo Paulssen schreef op 2017-03-10 16:41: Heyo, the way the debugger works is by changing the compiler to generate

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: 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: debugging modules

2017-03-10 Thread Fernando Santagata
On Fri, Mar 10, 2017 at 1:41 PM, Theo van den Heuvel wrote: > Hi all, > > the debugger, Debugger::UI::CommandLine, does not step into modules I use. > I must be doing something wrong. Any ideas? > Same here. I can add that I couldn't find a way to add a breakpoint in a modu

debugging modules

2017-03-10 Thread Theo van den Heuvel
Hi all, the debugger, Debugger::UI::CommandLine, does not step into modules I use. I must be doing something wrong. Any ideas? I am on Ubuntu and using Rakudo version 2017.01 built on MoarVM version 2017.01 Thanks, -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: Fwd: Re: Variables in modules

2017-03-09 Thread Todd Chester
On 03/09/2017 02:22 PM, Theo van den Heuvel wrote: Is this what you are looking for? our $IAm is export; ( $IAm = $?FILE ) ~~ s|.*"/"||; Hi Theo, Almost. I only want the code inside the module (pm) to see it. I don't want it exported. On the other hand, you just taught me h9owto

Fwd: Re: Variables in modules

2017-03-09 Thread Theo van den Heuvel
Is this what you are looking for? our $IAm is export; ( $IAm = $?FILE ) ~~ s|.*"/"||; -- Theo van den Heuvel Van den Heuvel HLT Consultancy

Re: Variables in modules

2017-03-09 Thread ToddAndMargo
ding no way to initialize variables inside a pm module globally such that I don't have to constantly call the above sub over and over. Is there a way to set variables globally in pm modules or do I have to constantly create them inside my "is export&quo

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

Variables in modules

2017-03-08 Thread ToddAndMargo
Hi All, I want to set a global variable in a module that I want all "is export" sub's to see when called. INIT { ( my $IAm =~ $?FILE ) ~~ s|.*"/"|| }; Does not work. Is there a way to do this, or do I have to create $IAm inside each "is export" sub? Many thanks, -T -- ~

Fedora and Modules

2017-01-14 Thread ToddAndMargo
Hi All, Fedora's Rakudo Star now comes without the modules or panda. https://bugzilla.redhat.com/show_bug.cgi?id=1410159 They were removed as of v7. Makes Perl 6 pretty useless. Tears, -T -- ~~ Computers are like air conditioners. They malfunction whe

Re: [perl #130535] Dynamic module loading by require in another modules has broken recently?

2017-01-11 Thread Lloyd Fournier
d by Asato Wakisaka # Please include the string: [perl #130535] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130535 > With recent moarvm, loading modules dynamically by require ::("Some::Module") in another module

Re: modules in windows?

2017-01-11 Thread Lloyd Fournier
The module installers I know of are: https://github.com/ugexe/zef https://github.com/tadzik/panda They should be able to do what you need :) On Thu, Jan 12, 2017 at 1:50 PM ToddAndMargo wrote: > Hi All, > > In Windows, other than writing for it and having it crash, how > do I tell if I have a

modules in windows?

2017-01-11 Thread ToddAndMargo
Hi All, In Windows, other than writing for it and having it crash, how do I tell if I have a module installed? I want this one, among others: https://github.com/araraloren/Net-FTP If I don't have the module, how do I install it? Many thanks, -T -- ~~ Comput

[perl #130535] Dynamic module loading by require in another modules has broken recently?

2017-01-10 Thread via RT
# New Ticket Created by Asato Wakisaka # Please include the string: [perl #130535] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130535 > With recent moarvm, loading modules dynamically by require ::("Some::Modu

Re: [perl #129776] [CUR][PERF] Extremely slow performance when running in directory with lots of modules

2016-10-06 Thread Elizabeth Mattijsen
By re-implementing Rakudo::Internals.DIR-RECURSE, the time has gone down to about a second. This is still calculating a SHA1 of ~1000 files for the perl6/mu case, but the overhead of scanning the directories is now much less because directory entries are pruned much earlier, and directories lik

Re: [perl #129776] [CUR][PERF] Extremely slow performance when running in directory with lots of modules

2016-10-02 Thread Timo Paulssen
Sorry, I was running the profile on a 4-weeks-old rakudo. After the optimizations i did to canonpath ~22 days ago the canonpath inclusive time went down to about 18% ... FILETEST-D and FILETEST-F are in spots 3 and 4, but they only take 3594 / 26881 msec and 2749 / 216298 msec per invocation, so t

Re: [perl #129776] [CUR][PERF] Extremely slow performance when running in directory with lots of modules

2016-10-02 Thread Timo Paulssen
Here's the results from a --profile-compile: 1. match (gen/moar/m-CORE.setting:12064), 12750 entries, 25.66% inclusive time, 8.15% exclusive time 2. (gen/moar/m-BOOTSTRAP.nqp:2081), 111530 entries, 4.59% inclusive time, 4.36% exclusive time 3. (gen/moar/m-CORE.setting:40776), 13148 entries, 6.85

Re: [perl #129776] [CUR][PERF] Extremely slow performance when running in directory with lots of modules

2016-10-02 Thread Timo Paulssen
On 02/10/16 04:41, Lloyd Fournier wrote: > String concat takes On2 in rakudo I think. Using join in this kind of > situation should be an improvement. (I'm commuting so can't test). MoarVM implements "ropes" which make the performance a whole lot better. join can still be a small improvement, but

Re: [perl #129776] [CUR][PERF] Extremely slow performance when running in directory with lots of modules

2016-10-01 Thread Lloyd Fournier
String concat takes On2 in rakudo I think. Using join in this kind of situation should be an improvement. (I'm commuting so can't test). On Sat, 1 Oct 2016 at 7:11 PM, Zoffix Znet wrote: > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #129776] > # in the subject line

  1   2   3   4   5   6   7   >