Mathx::Stat and Bayes::Learn release 0.1.2

2018-10-16 Thread The Holy Ghost
Hello, Mathx::Stat and Bayes::Learn should be indexable from holyghost's Perl6 CPAN directory. Mathx::Stat is a statistics package unto correlation dimension. Variance, Estimate are distribution (population) based to enter more data which is processed. There are also Correlatio

start of Mathx::Stat

2018-10-14 Thread The Holy Ghost
Hello, I've uploaded Mathx::Stat to cpan's holyghost Perl6 directory. It contains a statistics package. I needed the above for a Markov strategy package for writing prospection in Perl 6 games, e.g. with SDL2::Raw for graphics. This starts from Markov startegies unto Statistical Ch

[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 #129150] [RFC][BUG] IO::Notification needs .stat and seperate notification for removal

2016-08-31 Thread via RT
ile/dir that was 'a'. Subsequent behavior is same as that of 1. Lacking a .stat method, and a way of notifying removal, there isn't a good way to track the original target, and figure out nature of the change. - kan

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

2014-12-27 Thread via RT
is 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 #114000] Re: IO stat exception when using :l

2014-10-12 Thread Christian Bartolomaeus via RT
Testing for a symlink with ~~:l on a non-existent file works now (returns False, but doesn't die). I added a test to S16-filehandles/filetest.t with the following commit: https://github.com/perl6/roast/commit/58ec1cfdbb

[perl #114000] Re: IO stat exception when using :l

2012-07-05 Thread via RT
use v6; > my $f = "a".IO; > if $f ~~ :r { >say 'file readable'; > } > if $f ~~ :l { > say 'symlink'; > } > > the readability and most other test fail and return some undef, but > checking for :l (symlink) throws an exception if th

Re: IO stat exception when using :l

2012-07-05 Thread Patrick R. Michaud
return some undef, but > checking for :l (symlink) throws an exception if the thing does not exist > > stat failed: No such file or directory > in method l at src/gen/CORE.setting:7042 > in method ACCEPTS at src/gen/CORE.setting:5958 > in block at t.pl:7 > > Is that on

IO stat exception when using :l

2012-07-05 Thread Gabor Szabo
use v6; my $f = "a".IO; if $f ~~ :r { say 'file readable'; } if $f ~~ :l { say 'symlink'; } the readability and most other test fail and return some undef, but checking for :l (symlink) throws an exception if the thing does not exist stat failed: No such

[perl #84948] [PATCH] Fixed most IO::Stat functions

2011-02-27 Thread via RT
# New Ticket Created by William Orr # Please include the string: [perl #84948] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=84948 > Parrot introduced some changes which broke most of the functions in IO::Stat. I fi

[perl #76772] [PATCH] IO::Stat for Rakudo

2010-07-28 Thread via RT
# New Ticket Created by Tadeusz SoĊ›nierz # Please include the string: [perl #76772] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76772 > Here's a patch adding an interface to Parrot's stat Opcode in

Re: [perl #60060] [BUG] Parrot_readbc() does too many stat()s

2008-10-23 Thread NotFound
On Thu, Oct 23, 2008 at 1:43 AM, via RT Stephane Payrard <[EMAIL PROTECTED]> wrote: > This results in 4 stat()s per pbc. > opening the file and using Parrot_fstat_info_intval() instead of > Parrot_stat_info_intval() will be less costly. > this means retooling readbc() that now

[perl #60060] [BUG] Parrot_readbc() does too many stat()s

2008-10-23 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #60060] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60060 > This results in 4 stat()s per pbc. opening the file and us

Re: [perl #57486] [patch] Fix stat / lstat test failure on Cygwin

2008-08-05 Thread chromatic
alled Perl 5 is generating a longer number so I'm masking > it. I will need to investigate why Perl 5 generates a larger inode value > than Parrot. (Maybe stat is actually broken in Parrot on Cygwin). That's a strong possibility. -- c

[perl #57486] [patch] Fix stat / lstat test failure on Cygwin

2008-07-31 Thread via RT
ted against revision 29913. The stat and lstat tests in t/pmc/os.t were failing on one install of Cygwin and not another. It turns out that the expected output generated by the installed Perl 5 was different on each system. This must be due to the implicit conversion from integer to decimal string by j

[perl #43438] [PATCH][Win32] Update Win32 stat

2008-07-10 Thread Ronald Blaschke via RT
s exception' # at t\pmc\io.t line 729. # '' # doesn't match '/some crazy exception/ # ' ok 39 - utf8 read layer ok 40 - utf8 read layer - readline ok 41 - utf8 read layer, read parts ok 42 - string read/write layer ok 43 - PIO.slurp() - classmeth ok 44 - PIO.

[perl #43438] [PATCH][Win32] Update Win32 stat

2007-06-29 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #43438] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=43438 > Attached patch steal the basic layout from F and makes the F "stat failed&qu

[perl #42312] src/pmc/os.pmc: bad use of stat(2) and lstat(2)

2007-04-05 Thread via RT
# New Ticket Created by # Please include the string: [perl #42312] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42312 > in src/pmc/os.pmc after retrieving the information of a file with stat or lstat all the fields

[perl #40731] [TODO] Tcl - improve error message in 'stat' sub of runtime/builtin/file.pir

2006-11-08 Thread via RT
# New Ticket Created by Paul Cochrane # Please include the string: [perl #40731] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40731 > Need to be more discriminating about the OS related error message in 'stat

Re: Portable dirfd() (was Re: [perl #39261] stat() doesn't work on dirhandles)

2006-07-03 Thread Steve Peters
On Mon, Jul 03, 2006 at 12:22:15PM -0700, chromatic wrote: > On Monday 03 July 2006 11:43, Steve Peters via RT wrote: > > (from p5p) > > > OK, with change #28473, I just added the capabilities to a stat() or -X > > filetests for systems with the dirfd() libc call avail

Portable dirfd() (was Re: [perl #39261] stat() doesn't work on dirhandles)

2006-07-03 Thread chromatic
On Monday 03 July 2006 11:43, Steve Peters via RT wrote: (from p5p) > OK, with change #28473, I just added the capabilities to a stat() or -X > filetests for systems with the dirfd() libc call available. There are > two additional steps that need to be done. First, Perl_pp

Re: [perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-09 Thread Ron Blaschke
Thursday, October 7, 2004, 11:38:01 PM, Jonathan Worthington wrote: > Looks like it probably just needs a win32/stat.c writing...I won't have time > to look properly for a day or two though. So do feel free to beat me to a > patch. :-) Done. ;-) Thanks for your advice.

Re: [perl #31897] [PATCH] Win32 stat

2004-10-08 Thread Ronald Blaschke
Please forget the last platform patch. This one should follow style. Sorry, guess I need some time to warm up on my patches... platforms-win32-tests-fail.patch Description: Attached file: platforms-win32-tests-fail.patch

Re: [perl #31897] [PATCH] Win32 stat

2004-10-08 Thread Ronald Blaschke
sts fail. I've attached a patch for PLATFORMS. Failed Test Stat Wstat Total Fail Failed List of Failed --- t\library\streams.t2 512212 9.52% 14 18 t\pmc\nci.t6 1536466 13.0

Re: [perl #31897] [PATCH] Win32 stat

2004-10-08 Thread Leopold Toetsch
Ron Blaschke <[EMAIL PROTECTED]> wrote: > Removes the #if defined(WIN32) in generic/stat.c, and adds a separate > implementation in win32/stat.c. The block stats stay implemented as > internal_exception. Thanks, applied. Does it compile, run, and test now? Can you provide an update patch to PLAT

Re: [perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-08 Thread Ronald Blaschke
On Fri, 8 Oct 2004 10:08:13 -0400, Dan Sugalski wrote: > At 3:59 PM +0200 10/8/04, Ronald Blaschke wrote: >> > This there a Win32 API stat()-like function that makes it worth to write >>> win32/stat.c? >> >>Not one that I have found. And: >>perl return

[perl #31897] [PATCH] Win32 stat

2004-10-08 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #31897] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31897 > Removes the #if defined(WIN32) in generic/stat.c, and adds a separate implementation

Re: [perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-08 Thread Dan Sugalski
At 3:59 PM +0200 10/8/04, Ronald Blaschke wrote: > This there a Win32 API stat()-like function that makes it worth to write win32/stat.c? Not one that I have found. And: perl returns no value for block size and blocks on Activestate Perl 5.8.4 (on win32). All the stat things with _PLATFORM_

Re: [perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-08 Thread Ronald Blaschke
> This there a Win32 API stat()-like function that makes it worth to write > win32/stat.c? Not one that I have found. And: perl returns no value for block size and blocks on Activestate Perl 5.8.4 (on win32). C:\temp>echo "Hello World!" >hello C:\temp>perl -e "

Re: [perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-08 Thread Jens Rieks
On Thursday 07 October 2004 22:26, Ron Blaschke wrote: > config\gen\platform\generic\stat.c(81) : error C2039: 'st_blksize' : is not > a member of 'stat' I am working on MINGW support and had this error, too. I just added #if defined(__MINGW32__) around those lines.

Re: [perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-07 Thread Jonathan Worthington
-DHAS_JIT -DI386 -I. -Fo xx.obj -c xx.c > src\platform.c > platform.c > config\gen\platform\generic\stat.c(81) : error C2039: 'st_blksize' : is not a member of 'stat' > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\sys\stat.h(99) : see declara

[perl #31884] Compile fails on Win32 b/c of "stat"

2004-10-07 Thread via RT
ogo -GF -W3 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DNO_HASH_SEED -Zi -I./include -IC:\usr\loc al\icu\include -DHAS_JIT -DI386 -I. -Fo xx.obj -c xx.c src\platform.c platform.c config\gen\platform\generic\stat.c(81) : error C2039: 'st_blksize' : is not a member of 'stat'

Re: Stat in

2004-05-25 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > The _parrotlib bytecode is working, but it disables DOD ATM :-( The problem is that now the runloop is entered already in the lexer for the first time (for loading includes). When entering the run loop the first time, the stack top is set, which is now some

Re: Stat in

2004-05-25 Thread Dan Sugalski
At 12:01 PM +0200 5/25/04, Jens Rieks wrote: On Tuesday 25 May 2004 01:35, Dan Sugalski wrote: We can add more to this as we go, but this should be enough to get Jens going. Theres no stat op yet, is there? Ah, dammit--I was too careful with the commit and missed some files. Update to CVS and

Re: Stat in

2004-05-25 Thread Jens Rieks
On Tuesday 25 May 2004 01:35, Dan Sugalski wrote: > We can add more to this as we go, but this should be enough to get Jens > going. Theres no stat op yet, is there? Shall I write it? The current parrotlib bytecode uses C to test if a file exists, I'll modify the code to use C then.

Stat in

2004-05-24 Thread Dan Sugalski
At least to start. Simple interface, only 11 queryable items, and only integer queries so far. (Two of which unconditionally return -1 anyway) But... at least you can go look to see if a file exists. :) We can add more to this as we go, but this should be enough to get Jens going. --

Stat

2004-05-24 Thread Dan Sugalski
At 1:33 PM +0200 5/21/04, Jens Rieks wrote: PS: we need the stat op! I'll go do this. The API I outlined earlier is what I'll use, with all the modifications and deletions folks suggested. -- Dan --"

Re: File stat info

2004-04-29 Thread Jarkko Hietaniemi
Dave Mitchell wrote: > On Thu, Apr 29, 2004 at 08:36:11AM +0300, Jarkko Hietaniemi wrote: > >>But for things like -r "file" && open(FH, "file") they are of rather >>dubious value. > > Well, I have some scripts that check at the start whether all the > things they going to need are readable/execut

Re: File stat info

2004-04-29 Thread Dave Mitchell
On Thu, Apr 29, 2004 at 08:36:11AM +0300, Jarkko Hietaniemi wrote: > But for things like -r "file" && open(FH, "file") they are of rather > dubious value. Well, I have some scripts that check at the start whether all the things they going to need are readable/executable/whatever, so that they can

Re: File stat info

2004-04-28 Thread Jarkko Hietaniemi
>>Is it possible to have something along the lines of >>ME_{READ,WRITE,EXECUTE,DELETE,CD} to say if, as the user the program >>is running as, you can perform these actions? That strikes me as >>rather useful. (Alternately, could we have a field indicating if >>the current user is OWNER, GROUP

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 4:43 PM -0700 4/28/04, Brent 'Dax' Royal-Gordon wrote: Dan Sugalski wrote: OWNER_READTrue if owner can read OWNER_WRITETrue if owner can write OWNER_EXECUTETrue if owner can run OWNER_DELETETrue if owner can delete GROUP_CDTrue if owner can enter this directory Is it possible

Re: File stat info

2004-04-28 Thread Brent 'Dax' Royal-Gordon
Dan Sugalski wrote: OWNER_READTrue if owner can read OWNER_WRITETrue if owner can write OWNER_EXECUTETrue if owner can run OWNER_DELETETrue if owner can delete GROUP_CDTrue if owner can enter this directory Is it possible to have something along the lines of ME_{READ,WRITE,EXEC

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 10:47 PM +0200 4/28/04, Jerome Quelin wrote: Dan Sugalski wrote: At 8:08 PM +0200 4/28/04, Jerome Quelin wrote: >Dan Sugalski wrote: >> CTIMECreation time >Will unixen use this for change time? (also spelled ctime too) Nope, for that they use mtime. We can expand the names

Re: File stat info

2004-04-28 Thread Jarkko Hietaniemi
> On top of which, ACLs suffer the same illness of any stat-based > checking, insofar as checks against them are only an approximation > to reality, potentially full of race conditions. It's really the OS > that's going to do the ACL checking, and it'll do it when yo

Re: File stat info

2004-04-28 Thread Jerome Quelin
Dan Sugalski wrote: > At 8:08 PM +0200 4/28/04, Jerome Quelin wrote: > >Dan Sugalski wrote: > >> CTIME Creation time > >Will unixen use this for change time? (also spelled ctime too) > > Nope, for that they use mtime. We can expand the names to skip the > confusion. mtime != ctime mti

Re: File stat info

2004-04-28 Thread Larry Wall
g it a simple yes/no indicator that there : > are some? (Chopping it out's probably the best thing) : : Chopping off sounds like less coding :-) On top of which, ACLs suffer the same illness of any stat-based checking, insofar as checks against them are only an approximation to reality, potenti

Re: File stat info

2004-04-28 Thread Aaron Sherman
uct that uses them (other than backup and restore software ;-) > >This is true. But good luck in trying to map between the ACL schema of > >different systems :-( > > Yech, good point. I'm not even sure you can do any sort of sane > abstraction there. Sure you can. It

Re: File stat info

2004-04-28 Thread Aaron Sherman
On Wed, 2004-04-28 at 14:51, Dan Sugalski wrote: > At 8:08 PM +0200 4/28/04, Jerome Quelin wrote: > >Dan Sugalski wrote: > >[...] > >> CTIME Creation time > > > >Will unixen use this for change time? (also spelled ctime too) > > Nope, for that they use mtime. We can expand the names t

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 10:49 PM +0300 4/28/04, Jarkko Hietaniemi wrote: > Yech, good point. I'm not even sure you can do any sort of sane abstraction there. In that case, are we better off chopping it out entirely and leaving it to library code, or making it a simple yes/no indicator that there are some? (Choppin

Re: File stat info

2004-04-28 Thread Jarkko Hietaniemi
> Yech, good point. I'm not even sure you can do any sort of sane > abstraction there. > > In that case, are we better off chopping it out entirely and leaving > it to library code, or making it a simple yes/no indicator that there > are some? (Chopping it out's probably the best thing) Choppi

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 10:32 PM +0300 4/28/04, Jarkko Hietaniemi wrote: >>Keeping a niche open for ACLs is probably smart, esp. in the Windows world. I think you'll find ACL use is increasing, not decreasing. They've been tacked on to most recent filesystems, and they're coming into This is true. But good luck in

Re: File stat info

2004-04-28 Thread Jarkko Hietaniemi
>>Keeping a niche open for ACLs is probably smart, esp. in the Windows >>world. > > > I think you'll find ACL use is increasing, not decreasing. They've > been tacked on to most recent filesystems, and they're coming into This is true. But good luck in trying to map between the ACL schema of d

Re: File stat info

2004-04-28 Thread Dan Sugalski
en a matter of consensus, and many client languages will be presenting POSIX semantics through their standard libraries anyway, which they will have to massage your representation back into. Which is why I'm fine with yanking all the filename mangling stuff from stat here. I would recommend

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 11:39 AM -0700 4/28/04, Larry Wall wrote: From a Perl 6 language point of view, populating an array is a waste of time. Who says we're populating an array? In the common case we'll be checking individual bits (it'll be a long time before perl 6's the common case) and in the case where we *do*

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 2:01 PM -0400 4/28/04, Aaron Sherman wrote: Keeping a niche open for ACLs is probably smart, esp. in the Windows world. I think you'll find ACL use is increasing, not decreasing. They've been tacked on to most recent filesystems, and they're coming into more widespread use as Linux is getting

Re: File stat info

2004-04-28 Thread Jarkko Hietaniemi
>>Which is why I'm fine with yanking all the filename mangling stuff >>from stat here. > > > I would recommend leaving out from stat()ish layer. An API not s/out/that out/

Re: File stat info

2004-04-28 Thread Jarkko Hietaniemi
ient languages will be presenting POSIX semantics >>through their standard libraries anyway, which they will have to massage >>your representation back into. > > > Which is why I'm fine with yanking all the filename mangling stuff > from stat here. I would recommend

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 8:08 PM +0200 4/28/04, Jerome Quelin wrote: Dan Sugalski wrote: [...] CTIME Creation time Will unixen use this for change time? (also spelled ctime too) Nope, for that they use mtime. We can expand the names to skip the confusion. Should be OWNER_CD? Should be SYSTEM_CD? Should be OTHER_CD? Ye

Re: File stat info

2004-04-28 Thread Larry Wall
of files mutates over time, or as people derive from the base class. There are no ordering dependencies between the methods as there are between array elements. Some of the methods can pull things directly out of the underlying stat structure. Some of the methods synthesize values. Encapsulat

Re: File stat info

2004-04-28 Thread Jerome Quelin
Dan Sugalski wrote: [...] > CTIME Creation time Will unixen use this for change time? (also spelled ctime too) > OWNER_READTrue if owner can read > OWNER_WRITE True if owner can write > OWNER_EXECUTE True if owner can run > OWNER_DELETE True if owner can delete > GROUP_CD True

Re: File stat info

2004-04-28 Thread Aaron Sherman
On Wed, 2004-04-28 at 13:40, Dan Sugalski wrote: > >ALTERNATE RESPONSE > > This is where you go mad, right? :) Usually ;-) > > Why abstract within > >the arbitrary constraints of a POSIX-type stat model? > > I wasn't, actually. There's a good sprink

Re: File stat info

2004-04-28 Thread Dan Sugalski
gh their standard libraries anyway, which they will have to massage your representation back into. Which is why I'm fine with yanking all the filename mangling stuff from stat here. > I'm OK with adding a TYPE to the stat array as well, though more for an "it's a file/socket/d

Re: File stat info

2004-04-28 Thread Aaron Sherman
gh their standard libraries anyway, which they will have to massage your representation back into. > I'm OK with adding a TYPE to the stat array as well, though more for > an "it's a file/socket/device/directory" type thing, rather than an > "it's an applic

Re: File stat info

2004-04-28 Thread Dan Sugalski
At 12:15 PM -0400 4/28/04, Aaron Sherman wrote: On Wed, 2004-04-28 at 11:56, Dan Sugalski wrote: stat [PINS]x, Sy, Iz stat Px, Sy [...] The returned PMC in the two-arg case could be a hash/array pmc and allow string-keyed access to elements. If we do that, then the names correspond to

Re: File stat info

2004-04-28 Thread Aaron Sherman
On Wed, 2004-04-28 at 11:56, Dan Sugalski wrote: > stat [PINS]x, Sy, Iz > stat Px, Sy [...] > The returned PMC in the two-arg case could be a hash/array pmc and > allow string-keyed access to elements. If we do that, then the names > correspond to the constant names that

File stat info

2004-04-28 Thread Dan Sugalski
As part of the great "clean up the dangling bits" sweep... File stat stuff. Let's do: stat [PINS]x, Sy, Iz stat Px, Sy where Y is the filename. Z is the stat element, and X is the value for that element. (In the two-arg case it's an array PMC, where the offset matches t