C static analysis on rakudo sources

2016-10-15 Thread Dmitry Karasik
Dear all,

I've had access to a of C/C++ static analysis tool PVS Studio,
and ran it against the latest rakudo sources [1]. The majority of notes seems
to be noise, but there were found some valid concerns (or at least looking
valid to me) f.ex.  this:

   MoarVM/3rdparty/dynasm/dasm_x86.h:125
   realloc() possible leak: when realloc() fails in allocating memory, original
   pointer 'D->lglabels' is lost. Consider assigning realloc() to a temporary
   pointer.

You probably might find it interesting to look at the log

[1] http://karasik.eu.org/misc/pvs/rakudo.log

-- 
Sincerely,
    Dmitry Karasik



Re: Roles and IO?

2008-12-12 Thread Dmitry Karasik
Hi Leon!

 Leon Perl 5's solution is to use a fat interface, and raise an error if
 Leon an unsupported action is tried. 

Wouldn't the proposed solution raise an error if an unsupported role
method is tried? It's not that the proposed solution is inappropriate,
but the problem that I think you're trying to solve won't be solved 
by it.

-- 
Sincerely,
Dmitry Karasik



pugs on win32: perl5 and perl6 include paths mix

2005-04-09 Thread Dmitry Karasik
Hi all,

I'm trying pugs on win32, and there seems to be a clash between perl5 and perl6
include paths during the make process, because the error looks like this:

$$ nmake
$ C:\usr\bin\perl.exe -Iinc -MExtUtils::Command -e cp script/pugscc 
C:\home\src\pugs\blib\script\pugscc
$ pl2bat.bat C:\home\src\pugs\blib\script\pugscc
$ C:\usr\bin\perl.exe -Iinc util\src_to_blib.pl
Perl v6.0.0 required--this is only v5.8.0, stopped at 
C:\home\src\pugs\blib\lib/File/Spec.pm line 1.
BEGIN failed--compilation aborted at C:\home\src\pugs\blib\lib/File/Spec.pm 
line 1.
Compilation failed in require at c:\usr\local\perl\lib/ExtUtils/Install.pm line 
22.
BEGIN failed--compilation aborted at c:\usr\local\perl\lib/ExtUtils/Install.pm 
line 22.
Compilation failed in require.
BEGIN failed--compilation aborted.
NMAKE : fatal error U1077: 'C:\usr\bin\perl.exe' : return code '0xff'
Stop.


and the commands that get executes , and fail, all start with

C:\usr\bin\perl.exe -Iinc -IC:\home\src\pugs\blib\lib -Ic:\usr\local\perl\lib 
-MExtUtils::Install 

and, to my suprise, the above referenced File/Spec.pm does begin with 'use v6';

I'm not really sure if this an intended behavior, seems like it isn't, but again
I don't really know what is went wrong. Any ideas?

-- 
Sincerely,
Dmitry Karasik