Re: [perl #62974] Signed-zero tests failing on Windows XP

2009-03-29 Thread ajr

 Can you give us any update on these tests on the same platform?


All seems to be well here, too. (At svn 37803.)

C:\parrotprove t\op\arithmetics.t
t\op\arithmeticsok
All tests successful.
Files=1, Tests=23,  4 wallclock secs ( 0.08 usr +  0.01 sys =  0.09 CPU)
Result: PASS

C:\parrotprove t\pmc\complex.t
t\pmc\complexok
All tests successful.
Files=1, Tests=467,  1 wallclock secs ( 0.25 usr +  0.00 sys =  0.25 CPU)
Result: PASS

C:\parrotprove t\pmc\float.t
t\pmc\floatok
All tests successful.
Files=1, Tests=61,  8 wallclock secs ( 0.09 usr +  0.00 sys =  0.09 CPU)
Result: PASS



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #62974] Signed-zero tests failing on Windows XP

2009-03-27 Thread ajr

 Can you give us any update on these tests on the same platform?


I'll be able to check early tomorrow (Saturday) afternoon.

BTW, this mail account will be disappearing in a month or so. I have
1parr...@gmail.com as a substitute.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #53396] [BUG] Miscellaneous test failures on Windows

2009-02-19 Thread ajr

 Could I ask that either the requestor or somebody else with an
 appropriate system verify my results?

That one's so old I'd fogotten about it. I've been running tests over the
last 9 months, so I think we can consider that closed.




--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #62974] Signed-zero tests failing on Windows XP

2009-02-03 Thread ajr

 yep, seems like an msvc version thing. iirc there was funny -0
 handling in msvc 7. can the OP attach Parrot::Configure::Generated?
 ~jerry


I would, if I could find anything with a name like that, (with or without
.pm suffix). What should the complete path be?



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #62920] Configure.pl errors generating makefile

2009-01-31 Thread ajr
 Could you try the following patch ?

That seems to have done the trick.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Rakudo in Perl culture

2009-01-08 Thread ajr

 On Jan 8, 2009, at 3:11 PM, chromatic wrote:

 I can't read the word Purdue without thinking Year of the Purdue
 Wonder Chicken -- but try working that into Perl 6 advocacy.

 Except that's Perdue

 Andy Lester = a...@petdance.com = www.petdance.com = AIM:petdance

A La Recherche Du Temps Perdue?


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #49912] [BUG] Unable to Configure using Borland C

2008-11-24 Thread ajr

 Alan:  Any update on this?

 Question for any Win32 expert:  Is the Borland C compiler worth
 expending Parrot tuits on?


The Strawberry Perl route produced results, so I stopped whacking the
horse, on the assumption that it was dead.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Parrot on mobile platforms?

2008-10-24 Thread ajr
 --- On Thu, 23/10/08, Gabor Szabo [EMAIL PROTECTED] wrote:

 Don't you think it would be important to start working
 in this direction?

What about OpenMoko? Doesn't that run a fairly standard Linux?



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #59636] [BUG] t/op/bitwise.t fails on Darwin

2008-10-19 Thread ajr


 I don't know who is submitting the Darwin x86 tests.


Probably Seneca.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #57920] [PATCH] Suggestion for Parrot Configure test of AIO

2008-09-05 Thread ajr

 This is a patch in the sense of bandaid.  What is it about the letter
 'K' that means that this probe gives sloppy results on Kubuntu when on
 Ubuntu it has built cleanly for me every day

Something to do with Gnome, since that's the major difference between the
two?



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #57920] [PATCH] Suggestion for Parrot Configure test of AIO

2008-09-05 Thread ajr

 This is a patch in the sense of bandaid.  What is it about the letter
 'K' that means that this probe gives sloppy results on Kubuntu when on
 Ubuntu it has built cleanly for me every day since I started

Something to do with KDE vs Gnome, since that's the major difference?
Perhaps KDE's screen-saver mechanism's sabotaging you?


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #56948] [BUG] .parrot_current_rev broken

2008-07-16 Thread ajr
 I fixed the problem in r29488, but I don't have any windows
 environment available to test.


I just ran a test on XP-Home (using Strawberry Perl) after updating to
r29495. Configure.pl creates the file (whether or not it was present), but
the value appears to be a constant 0. (Make test and perl6 have no
effect.)

Is that the desired behavior?


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #56948] [BUG] .parrot_current_rev broken

2008-07-16 Thread ajr

 The desired behavior is creating the file if not present or his number
 is outdated, not touching it if the number is already correct.

At 29516, that seems to be what it's doing




--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #53394] [BUG] Divide-by-zero error in test on Windows

2008-07-03 Thread ajr

  On Windows XP Home Edition, using gcc, the following test error is
  occurring:
 
  Divide by zero^M
  current instr.: 'life' pc 175 (examples\pir\life.pir:102)
 

 Can any of our windows users duplicate this bug? If not, it may not
 exist anymore.

It didn't show up in the tests run after R29021. The cause appeared to be
time values (for the default number of generations) taken so close
together that the divisor, (their difference) was zero. IIRC, the default
number of generations was 3, but now appears to be 5,000.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Renaming Plumhead

2008-06-14 Thread ajr
From Bernhard Schmalhofer:

 As Plumhead is a stupid name, cotto proposed to rename to Pharrot.

 So I'm still open for an alternative.

Parroheep?


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #42339] [CAGE] Test Valid and Invalid Parrot Flags

2008-06-13 Thread ajr
 I notice that the *actual* exit code I'm getting is 256.  Has that
 changed since the OP or is there some bit-shifting going on here?


If you are testing the return from a system call, To get the actual exit
value, divide by 256. (The lower eight bits are set if the process died
from a signal.) Thus spake Perl in a Nutshell, 2nd Ed. p139.



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #52894] [CAGE] use more File::Temp to avoid permission issues

2008-06-11 Thread ajr
 Well, if I had RTFM 'perldoc File::Temp' correctly, I wouldn't have
 gotten the arguments wrong.

 Sorry for the confusion.

Sometimes, you just have to explain it to the bear before you understand.
:-)*


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #52506] [PATCH] Refactor ops2c

2008-04-06 Thread ajr

On Windows, make, make perl6, and make test all function in ops2c branch
with no more than the customary grumbling.



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #52242] perl6 option handling - insufficiently paranoid

2008-03-30 Thread ajr

 and so we've been holding off on argument processing until that's
resolved a  bit more.

Should it matter what's in the allowed class? From the beginning, there
ought to be a default if I don't know what this is, spit it back action.
What happens before that point is irrelevant.

 P.S.:  Send bug reports for Rakudo/perl6 to [EMAIL PROTECTED] --
Will do.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



RE: [perl #52264] Bug: duplicate directory names in SVN

2008-03-30 Thread ajr
 This should be fixed in r26641.

 Could you confirm?
 --

Checkout on Windows XP now works.



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [RT#48260] Documentation missing]

2008-02-18 Thread ajr
Two straight comment patches seeking commitment: currently attached.

(to exception.c and headers.c)


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.comIndex: src/exceptions.c
===
--- src/exceptions.c	(revision 25797)
+++ src/exceptions.c	(working copy)
@@ -180,7 +180,9 @@
 
 =item Cstatic void run_cleanup_action
 
-RT#48260: Not yet documented!!!
+Takes an interpreter name and a stack pointer.
+Runs the action subroutine with an INTVAL arg of 0.
+Used in Parrot_push_action.
 
 =cut
 
@@ -762,7 +764,10 @@
 
 =item Cvoid destroy_exception_list
 
-RT#48260: Not yet documented!!!
+Takes an interpreter name.
+Destroys (frees the memory allocated to) the exception buffers list and the
+associated exceptions free list for the specified interpreter.
+Uses really_destroy_exception_list (see below) to do the job.
 
 =cut
 
@@ -779,7 +784,9 @@
 
 =item Cvoid really_destroy_exception_list
 
-RT#48260: Not yet documented!!!
+Takes a pointer to an exception (which had better be the last one in the list).
+Walks back through the list, freeing the memory of each one, until NULL encountered.
+Used by destroy_exception_list.
 
 =cut
 
@@ -1000,7 +1007,8 @@
 
 =item Cvoid Parrot_print_backtrace
 
-RT#48260: Not yet documented!!!
+Display the primrose path to disaster, (the stack frames leading up to the abort).
+Used by Parrot_confess.
 
 =cut
 Index: src/headers.c
===
--- src/headers.c	(revision 25797)
+++ src/headers.c	(working copy)
@@ -726,7 +726,9 @@
 
 =item Cstatic void free_pool
 
-RT#48260: Not yet documented!!!
+Takes a pointer to a pool.
+Loops backwards through it, freeing all arenas and their associated objects.
+Used by sweep_cb_buf, sweep_cb_pmc,  Parrot_destroy_header_pools
 
 =cut
 
@@ -750,7 +752,11 @@
 
 =item Cstatic int sweep_cb_buf
 
-RT#48260: Not yet documented!!!
+Take an interpreter name, pointer to an object pool, an unused argument, 
+and a pointer to a boolean.
+Garbage-collect unused memory from the pool.
+Used by Parrot_destroy_header_pools.
+Returns 0.
 
 =cut
 
@@ -781,7 +787,10 @@
 
 =item Cstatic int sweep_cb_pmc
 
-RT#48260: Not yet documented!!!
+Take an interpreter name and a pointer to a pool.
+Remove dead objects from the pool and free the memory.
+Returns 0.
+Used by sweep_cb_buf.
 
 =cut
 
@@ -840,7 +849,10 @@
 
 =item Cstatic void fix_pmc_syncs
 
-RT#48260: Not yet documented!!!
+Takes pointers to an interpreter and a pool.
+Goes through the arena looking for shared objects and transferring 
+them to the interpreter, so none get orphaned.
+Used by Parrot_merge_header_pools.
 
 =cut
 

Re: Problem with lexical scoping

2008-02-13 Thread ajr

 On a more rational note, has any thought been given to what good enough
 performance for release will be?

Should we perhaps add a performance benchmark to the tests?

Normalising it to account for hardware variations might be a problem.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [RT#48260] Documentation missing]

2008-02-10 Thread ajr

Patches to events.c and inter_misc.c should be attached to the back
bumper. If they're OK, perhaps someone could commit them?


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.comIndex: src/events.c
===
--- src/events.c	(revision 25612)
+++ src/events.c	(working copy)
@@ -284,7 +284,8 @@
 
 =item Cvoid Parrot_init_signals
 
-RT#48260: Not yet documented!!!
+Set up actions to handle signals.
+Only SIGHUP handled at the moment.
 
 =cut
 
@@ -785,7 +786,9 @@
 
 =item Cstatic void io_thread_ready_rd
 
-RT#48260: Not yet documented!!!
+Takes a list of pending i/o events and a file descriptor.
+If the fd is ready to read, the event is removed from the
+pending list and moved to the scheduled task queue.
 
 =cut
 
@@ -974,7 +977,7 @@
 
 =item Cvoid Parrot_event_add_io_event
 
-RT#48260: Not yet documented!!!
+Create new i/o event.
 
 =cut
 Index: src/inter_misc.c
===
--- src/inter_misc.c	(revision 25612)
+++ src/inter_misc.c	(working copy)
@@ -63,7 +63,8 @@
 
 =item Cvoid register_raw_nci_method_in_ns
 
-RT#48260: Not yet documented!!!
+Create an entry in the Cnci_method_table for the given raw NCI method 
+of PMC class Ctype.
 
 =cut
 
@@ -337,7 +338,12 @@
 
 =item CSTRING* interpinfo_s
 
-RT#48260: Not yet documented!!!
+Takes an interpreter name and an information type as arguments.
+Returns corresponding information strings about the interpreter:
+the full pathname, executable name, or the file stem,
+(or throws an error exception, if the type is not recognised).
+Valid types are EXECUTABLE_FULLNAME, EXECUTABLE_BASENAME,
+and RUNTIME_PREFIX.
 
 =cut
 

Re: [RT#48260] Documentation missing]

2008-01-30 Thread ajr
Attached are patches to embed.c and runops_cores.c

The embed.c patch also includes an attempt to clarify another comment.
(It's not obvious that the code is doing all that the comment claims, but
I didn't investigate that.)


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.comIndex: src/embed.c
===
--- src/embed.c	(revision 25166)
+++ src/embed.c	(working copy)
@@ -117,13 +117,15 @@
 
 =item Cvoid Parrot_set_flag
 
-Sets a flag in the interpreter specified by Cflag, any of
-CPARROT_BOUNDS_FLAG, or CPARROT_PROFILE_FLAG to enable profiling, and
-bounds checking respectively or CPARROT_THR_TYPE_1, CPARROT_THR_TYPE_2, or
-CPARROT_THR_TYPE_3 to disable thread communication and variable sharing,
-disable variable sharing but enable thread communication, or to enable variable
-sharing.
+Sets on any of the following flags, specified by Cflag, in the interpreter:
 
+FlagEffect
+CPARROT_BOUNDS_FLAG   enable bounds checking
+CPARROT_PROFILE_FLAG  enable profiling, 
+CPARROT_THR_TYPE_1disable variable sharing and thread communication 
+CPARROT_THR_TYPE_2disable variable sharing but enable thread communication 
+CPARROT_THR_TYPE_3enable variable sharing.
+
 =cut
 
 */
@@ -765,7 +767,10 @@
 
 =item Cstatic PMC* set_current_sub
 
-RT#48260: Not yet documented!!!
+Search the fixup table for a PMC matching the argument. 
+On a match, set up the appropriate context
+If no match, set up a dummy PMC entry
+In either case, return a pointer to the PMC
 
 =cut
 Index: src/runops_cores.c
===
--- src/runops_cores.c	(revision 25166)
+++ src/runops_cores.c	(working copy)
@@ -110,7 +110,8 @@
 
 =item Cstatic opcode_t * runops_trace_core
 
-RT#48260: Not yet documented!!!
+Runs the Parrot operations starting at Cpc until there are no more
+operations, using the tracing interpreter.
 
 =cut
 

Re: [RT#48260] Documentation missing]

2008-01-30 Thread ajr
Attached patch to pmc.c



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.comIndex: src/pmc.c
===
--- src/pmc.c	(revision 25371)
+++ src/pmc.c	(working copy)
@@ -472,7 +472,9 @@
 
 =item Cstatic PMC* create_class_pmc
 
-RT#48260: Not yet documented!!!
+Create a class object for this interpreter
+Takes an interpreter name and type as arguments
+Returns a pointer to the class object
 
 =cut
 

Re: [perl #50214] Maybe not a bug, but....

2008-01-25 Thread ajr

 Using the Strawberry Perl on Windows XP to install Parrot resulted in
 the attached warnings output from the make step.

I'll try a stronger glue this time; maybe they'll stay attached.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com
C:\parrotmingw32-make  make.txt
gcd_i_n_n 1225   experimental, not in ops.num
gcd_i_nc_n1226   experimental, not in ops.num
gcd_i_n_nc1227   experimental, not in ops.num
gcd_i_nc_nc   1228   experimental, not in ops.num
gcd_i_i_i_i_i 1229   experimental, not in ops.num
gcd_i_i_i_ic_i1230   experimental, not in ops.num
gcd_i_i_i_i_ic1231   experimental, not in ops.num
gcd_i_i_i_ic_ic   1232   experimental, not in ops.num
splice_p_p_i_i1233   experimental, not in ops.num
splice_p_p_ic_i   1234   experimental, not in ops.num
splice_p_p_i_ic   1235   experimental, not in ops.num
splice_p_p_ic_ic  1236   experimental, not in ops.num
slice_p_p_k   1237   experimental, not in ops.num
slice_p_p_kc  1238   experimental, not in ops.num
slice_p_p_k_ic1239   experimental, not in ops.num
slice_p_p_kc_ic   1240   experimental, not in ops.num
iter_p_p  1241   experimental, not in ops.num
morph_p_i 1242   experimental, not in ops.num
morph_p_ic1243   experimental, not in ops.num
morph_p_s 1244   experimental, not in ops.num
morph_p_sc1245   experimental, not in ops.num
exec_s1246   experimental, not in ops.num
exec_sc   1247   experimental, not in ops.num
classname_p_p 1248   experimental, not in ops.num
trap  1249   experimental, not in ops.num
pow_n_n_i 1250   experimental, not in ops.num
pow_n_nc_i1251   experimental, not in ops.num
pow_n_n_ic1252   experimental, not in ops.num
pow_n_nc_ic   1253   experimental, not in ops.num
new_p_i_s 1254   experimental, not in ops.num
new_p_ic_s1255   experimental, not in ops.num
new_p_i_sc1256   experimental, not in ops.num
new_p_ic_sc   1257   experimental, not in ops.num
instantiate_p 1258   experimental, not in ops.num
pmcinfo_i_p_ic1259   experimental, not in ops.num
add_io_event_p_p_p_ic 1260   experimental, not in ops.num
need_finalize_p   1261   experimental, not in ops.num
setstdout_p   1262   experimental, not in ops.num
setstderr_p   1263   experimental, not in ops.num
runinterp_p_p 1264   experimental, not in ops.num
runinterp_p_pc1265   experimental, not in ops.num
substr_r_s_s_i_i  1266   experimental, not in ops.num
substr_r_s_sc_i_i 1267   experimental, not in ops.num
substr_r_s_s_ic_i 1268   experimental, not in ops.num
substr_r_s_sc_ic_i1269   experimental, not in ops.num
substr_r_s_s_i_ic 1270   experimental, not in ops.num
substr_r_s_sc_i_ic1271   experimental, not in ops.num
substr_r_s_s_ic_ic1272   experimental, not in ops.num
substr_r_s_sc_ic_ic   1273   experimental, not in ops.num
src\ops\debug.ops: In function `Parrot_debug_break':
src\ops\debug.ops:103: warning: null argument where non-null required (arg 2)
src\ops\debug.ops:113: warning: null argument where non-null required (arg 2)
src\ops\io.ops: In function `Parrot_getfd_i_p':
src\ops\io.ops:84: warning: cast does not match function type
src\ops\debug.ops: In function `switch_core':
src\ops\debug.ops:103: warning: null argument where non-null required (arg 2)
src\ops\debug.ops:113: warning: null argument where non-null required (arg 2)
src\ops\io.ops:84: warning: cast does not match function type
src\events.c:237:5: warning: PARROT_HAS_SIGACTION is not defined
src\events.c:271:5: warning: PARROT_HAS_SIGACTION is not defined
src\packfile.c: In function `default_unpack':
src\packfile.c:1204: warning: assignment discards qualifiers from pointer 
target type
src\spf_render.c: In function `Parrot_sprintf_format':
src\spf_render.c:661: warning: format not a string literal, argument types not 
checked
src\spf_render.c:706: warning: format not a string literal, argument types not 
checked
src\stm\backend.c: In function `find_write_record':
src\stm\backend.c:1551: warning: ignoring return value of `get_write', declared
with attribute warn_unused_result
src\stm\backend.c:1551: warning: ignoring return value of `get_write', declared
with attribute warn_unused_result
src\stm\backend.c:1563: warning: ignoring return value of `get_write', 

Re: [perl #50212] Configure step fails on Windows

2008-01-25 Thread ajr
 Hi, Alan!  What kind of CPU do you have?  If you have an AMD Athlon XP
 (or something of similar lineage), I think I know what the problem is.

I think you've nailed it: Athlon XP-M.




--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #50214] Maybe not a bug, but....

2008-01-25 Thread ajr

 But I'm unclear:  Did 'make' complete successfully?  I.e., did you end
 up with a './parrot' executable in your top-level sandbox?

Yes. And when I made Perl 6, it said Hello (c).


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



[Re: [perl #49912] [BUG] Unable to Configure using Borland C]

2008-01-22 Thread ajr

Glimmerings of a hint of progress.

Adding --miniparrot to the command line:

C:\parrotConfigure.pl --cc=bcc32 --miniparrot

bypasses the test that hangs. This enables make to fall on its face with
the  following message:

C:\parrotmake
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
Error makefile 2306: Redefinition of target 'compilers\imcc\main.obj'
*** 1 errors during make ***

Any suggestions for further floundering would be welcome.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #48260][PATCH] - compilers/imcc/main.c]

2008-01-21 Thread ajr

I think I've now connected brain to fingers and patch to message.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.comIndex: compilers/imcc/main.c
===
--- compilers/imcc/main.c	(revision 25001)
+++ compilers/imcc/main.c	(working copy)
@@ -107,7 +107,7 @@
 
 =item Cstatic void usage
 
-RT#48260: Not yet documented!!!
+Outputs usage error message.
 
 =cut
 
@@ -125,7 +125,7 @@
 
 =item Cstatic void help_debug
 
-RT#48260: Not yet documented!!!
+Print out list of debugging flag values.
 
 =cut
 
@@ -169,7 +169,7 @@
 
 =item Cstatic void help
 
-RT#48260: Not yet documented!!!
+Print out help list of options.
 
 =cut
 
@@ -224,7 +224,8 @@
 
 =item Cstatic void Parrot_version
 
-RT#48260: Not yet documented!!!
+Print out parrot version number and copyright message.
+Include warning if Configure's version # doesn't match.
 
 =cut
 
@@ -306,7 +307,8 @@
 
 =item Cstatic int is_all_hex_digits
 
-RT#48260: Not yet documented!!!
+Tests all characters in a string are hexadecimal digits.
+Returns 1 if true, 0 as soon as a non-hex found
 
 =cut
 
@@ -328,7 +330,7 @@
 
 =item Cchar * parseflags
 
-RT#48260: Not yet documented!!!
+Parse Parrot's command line for options and set appropriate flags.
 
 =cut
 
@@ -565,7 +567,7 @@
 
 =item Cstatic void do_pre_process
 
-RT#48260: Not yet documented!!!
+Pre-processor step.  Turn parser's output codes into Parrot instructions.
 
 =cut
 
@@ -689,7 +691,7 @@
 
 =item Cstatic void imcc_get_optimization_description
 
-RT#48260: Not yet documented!!!
+Create list (opt_desc[]) describing optimisation flags.
 
 =cut
 
@@ -725,7 +727,7 @@
 
 =item Cvoid imcc_initialize
 
-RT#48260: Not yet documented!!!
+Initialise interpreter and set optimisation level.
 
 =cut
 
@@ -760,7 +762,8 @@
 
 =item Cstatic void imcc_run_pbc
 
-RT#48260: Not yet documented!!!
+Write out or run Parrot bytecode. 
+ RT#46149 no return value :-( 
 
 =cut
 
@@ -796,7 +799,7 @@
 
 =item Cstatic void imcc_write_pbc
 
-RT#48260: Not yet documented!!!
+Output Packed bytecode file.
 
 =cut
 
@@ -834,7 +837,7 @@
 
 =item Cstatic void determine_input_file_type
 
-RT#48260: Not yet documented!!!
+Read in the source and determine whether it's Parrot bytecode or PASM
 
 =cut
 
@@ -874,7 +877,7 @@
 
 =item Cstatic void determine_output_file_type
 
-RT#48260: Not yet documented!!!
+Decide what kind of file we are to outout.
 
 =cut
 
@@ -909,7 +912,7 @@
 
 =item Cstatic void compile_to_bytecode
 
-RT#48260: Not yet documented!!!
+Compile source code into bytecode (or die trying).
 
 =cut
 
@@ -986,7 +989,8 @@
 
 =item Cint imcc_run
 
-RT#48260: Not yet documented!!!
+Compile source code (if required), write bytecode file (if required)
+and run.
 
 =cut
 

Re: [perl #48260][PATCH] - compilers/imcc/main.c

2008-01-20 Thread ajr

The attached patch should quieten some of the grumbling. It's entirely
comments, so should not have any functional impact.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #48260][PATCH] - compilers/imcc/main.c

2008-01-20 Thread ajr

Sorry, finger trouble with the mailer lost the attachment. I will try
again later.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #49912] [BUG] Unable to Configure using Borland C

2008-01-18 Thread ajr

 When using a non-default C compiler, you will usually need to add a
 --link to the Configure line.  So, something like...

 Configure.pl --cc=bcc32 --link=bcc32


Doesn't appear to make any difference.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Use of revision number in Perl6 and Parrot

2008-01-17 Thread ajr

Is there anyone familiar with the use (if any) of the revision number in
the Perl 6 and Parrot code?

It looks as though it might be possible to simplify some processes, but
I'm having trouble tracking down evidence. If there's a maven on the
topic, an explanation or some references, (maybe out-of-band, to keep down
the noise), would save me some time.




--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Anyone has perl 1 docs?

2008-01-14 Thread ajr

 For a fun bit of trivia, spend some time comparing Perl 1's perl.y and
 Perl 5's perly.y. Amazing how much still persists after 20 years.

Technological Cheshire cats; the grin lingers long after the cat has
disappeared. Computing has them by the clowder.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: the future of testing

2008-01-11 Thread ajr
 I think the data will support the idea that a directory structure based
on OS/CPU is probably not the way to start.

Quite possibly. The proposed file could suffer from the same combinatorial
explosion, if not properly structured. Does anyone have a good idea of the
most economical structure for the exceptions? I do like the idea of
embedding conditions in data rather than code structures, though.

 Instead, one might consider generating that list of exclusions based on
the actual results of running Configure.pl.  The program that generated
that skip list might consist of lines like

   print t/op/64bit.t unless $PConfig{intvalsize} == 8;

Or touch x.t if some_state. As the problems of maintaining lists of
filenames have already been solved, it seems a shame not to use well-known
tools like ls, rm, diff, and their friends.



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: the future of testing

2008-01-10 Thread ajr
Some hand-waving on the problem of configuration and test selection, (as
the two appear to share the issues, an ideal solution would address both).

For any usable environment, a large set of common processes have to be
executed, with a smaller, OS /|| CPU specific set omitted. One way to do
this might be to have all possible steps in a common process directory,
with a mechanism to drop the unwanted ones. Any process invoked could
assume that it has the right to run.

A possible scheme might be a directory hierarchy matching the OS/CPU
combination, e.g. Linux/x_86, Linux/i_64, Solaris/Sparc, containing dummy
files whose names match the processes NOT to be run for that environment.
(The precise structure would depend on which combination required the
fewest cases; it's dictated by the data.)

The steps would be:

Identify the environment
Select the list of corresponding exclusions (list the directories)
Eliminate them from the to-do directory's listing
Execute the remaining list

*nix environments can probably do this with standard tools, and Microsoft
copied the filesystem structure closely enough that it shouldn't be a
serious challenge.

Does this sound plausible and portable enough to be worth prototyping?




--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-06 Thread ajr

  Jarkko's view was that if he were doing Perl 5 Unicode again he would
 opt for fixed width 32 bit rather than UTF-8,

It seems to be a general principle of system design that the best way to
process irregular and unpredictable things, is to grab them as close to
the outside of the system as possible, make sure they're not dangerous,
stuff them into closed, standard boxes, and only deal with the problems of
the boxes.

This is illustrated examples as diverse as disk-drives, (which went from
variable-length to fixed-sized blocks early in their development), to
container shipping.

 It's not insane to have the boundary near the outside of parrot.

Any system that doesn't assume input from the outside world to be toxic
until proven otherwise is being dangerously naive. However, paranoia's
expensive, so you want to concentrate it as much as possible.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Zombie code?

2008-01-03 Thread ajr

While trying to understand Parrot::Vtables.pm, I came across what seems
to be some zombie code, possibly left after RT 48877.

1. Two references to src/pmc/null.pl, which does not appear to exist.
2. The method vtbl_embed, which is used only in
parrot/tools/build/vtable_extend.pl That writes
include/parrot/extend_vtable.h and src/extend_vtable.c, neither of which
exist.
3. Some odd pod in the method around lines 368-372, which makes me think
the expression that spans 367-379 would behave rather oddly if the method
was ever used.

Have I overlooked something?




--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #49274] [CAGE] script to generate ports/debian/parrot-doc.docs

2008-01-03 Thread ajr

 A quick cage cleaner task. Create a script to generate the file
 ports/debian/parrot-doc.docs

I've attached a quickie shell script, in case that's what you want. It's a
naive little thing, but I think you'll be amused by its presumption.

A properly formatted and tested Perl script will take a little longer.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com

debian_docs
Description: Binary data


Re: [perl #49274] [CAGE] script to generate ports/debian/parrot-doc.docs

2008-01-03 Thread ajr
 James E Keenan wrote:

 For portability reasons, however, shouldn't it be converted to Perl 5?

 The difference here is that you can only generate Debian packages on a
 Debian-based system, so portability to non-Linux systems isn't a concern.

That was my assumption. (Along with the need for immediacy.) I'll put in
the refinements Allison suggested, then use that as the spec. for a Perl
script, if somebody doesn't beat me to it.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Testing asynchronous code

2008-01-02 Thread ajr
 In the concurrency work I'm about to check in, I have some tests that
 fail intermittently because they test for something like:


 But, as we add more asynchronous code, and more asynchronous tests, we'll
 need to do more thinking on our strategies for testing asynchronous code.

Would always sorting the expected and actual output to the same order
solve the problem?

(It sounds like one of those so obvious I've clearly missed something
situations.)


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #48677] [BUG] r23917 led to 'make' failure

2007-12-18 Thread ajr
 Nicholas Clark wrote:
 Do the structures actually overlap, or is this necessary band aid for a
 subtly broken compiler?

 Jonathan Worthington replied:

 I think the compiler is to blame.

Are we hurling abuse at^H^H^H^H^H^H^H^H informing the GNU folks about the
apparent problem? :-)*

BTW, I understand it's Perl's 20th. birthday today.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #48459] [PATCH]: Refactor config/inter/progs.pm into 2 config steps

2007-12-11 Thread ajr
 On Mon, 10 Dec 2007, James Keenan wrote:

 The patch attached proposes to refactor Parrot configuration step
 class inter::progs into two classes:  inter::compiler and inter::progs.


Are we at any risk of redoing work here? Other OSS projects must
presumably have faced the same problems. How do they deal with them, and
can we lift those solutions? (Or are we aspiring to a higher standard?)


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: Thanksgiving fun

2007-11-23 Thread ajr
I tried it on the 0.5.0 updated this week, with the following results:

[EMAIL PROTECTED] nqp]$ ../../parrot nqp.pbc ~/tmp/blue_rect.pl
Cannot find the attribute 'post' (String) that you asked for.
Method 'named' not found
current instr.: 'parrot;POST::Grammar;_PAST::Op_pirop' pc 4378
(src/POST/Grammar.tg:151)
called from Sub 'parrot;TGE::Tree;_eval_cell' pc 282 (TGE/Tree.pir:175)
called from Sub 'parrot;TGE::Tree;get' pc 241 (TGE/Tree.pir:155)
called from Sub 'parrot;POST::Grammar;_PAST::Op_callmethod' pc 4479
(src/POST/Grammar.tg:172)
called from Sub 'parrot;TGE::Tree;_eval_cell' pc 282 (TGE/Tree.pir:175)
called from Sub 'parrot;TGE::Tree;get' pc 241 (TGE/Tree.pir:155)
called from Sub 'parrot;TGE::Tree;_eval_cell' pc 282 (TGE/Tree.pir:175)
called from Sub 'parrot;TGE::Tree;get' pc 241 (TGE/Tree.pir:155)
called from Sub 'parrot;POST::Grammar;_PAST::Stmts_post' pc 4166
(src/POST/Grammar.tg:90)
called from Sub 'parrot;TGE::Tree;_eval_cell' pc 282 (TGE/Tree.pir:175)
called from Sub 'parrot;TGE::Tree;get' pc 241 (TGE/Tree.pir:155)
called from Sub 'parrot;POST::Grammar;_PAST::Block_post' pc 4029
(src/POST/Grammar.tg:51)
called from Sub 'parrot;TGE::Tree;_eval_cell' pc 282 (TGE/Tree.pir:175)
called from Sub 'parrot;TGE::Tree;get' pc 241 (TGE/Tree.pir:155)
called from Sub 'parrot;POST::Grammar;_PAST::Block_root' pc 3872
(src/POST/Grammar.tg:11)
called from Sub 'parrot;TGE::Tree;_eval_cell' pc 282 (TGE/Tree.pir:175)
called from Sub 'parrot;TGE::Tree;get' pc 241 (TGE/Tree.pir:155)
called from Sub 'parrot;PAST::Compiler;compile' pc 2327
(src/PAST/Compiler.pir:41)
called from Sub 'parrot;PCT::HLLCompiler;compile' pc 615
(src/HLLCompiler.pir:258)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 848
(src/HLLCompiler.pir:371)
called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1136
(src/HLLCompiler.pir:504)
called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1285
(src/HLLCompiler.pir:568)



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #47397] t/op/arithmetics.t hangs

2007-11-14 Thread ajr

 the definition of FLOAT_IS_ZERO in include/parrot/misc.h is

Could this be relevant to RT45209 (a -0.0 being taken as true, rather than
false?). I tried to track down the problem, but got lost in the woods.
Somebody more familiar with the logic might recognise it.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: A thesis on Parrot/ECMA

2007-10-23 Thread ajr
 looks like all dutch to me.


Part of it is in English, (the abstract). The body of the paper is in
Dutch (and Javascript). The abstract is very positive towards Parrot.


http://users.fulladsl.be/spb1622/pjs/scriptie.pdf

It's too bad that some of the energy being dissipated on pointless
research papers couldn't be harnessed to the development wagon.



--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com



Re: [perl #43481] t/examples/shootout.t (shootout_16.pir) fails on gentoo/x86

2007-10-19 Thread ajr
 I'm not sure about the current status of t/examples/shootout.t on Linux,
 but it is still failing on Darwin.  See attached.


It just passed on my Mandriva.


--

Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com