Re: Solving '=' confusion: ':=' for aliasing

2005-11-30 Thread Joshua Juran
On Nov 29, 2005, at 5:16 PM, Chip Salzenberg wrote: On Tue, Nov 29, 2005 at 11:13:05PM +0100, Leopold Toetsch wrote: On Nov 29, 2005, at 21:36, Chip Salzenberg wrote: I'm planning a flag day sometime in December. I'm also planning to create a simple "handles most cases" translator. That's a

Re: [perl #38146] [TODO] OS.pmc - file copy

2006-01-06 Thread Joshua Juran
On Jan 6, 2006, at 4:11 PM, Alberto Simoes via RT wrote: [coke - Tue Jan 03 18:03:31 2006]: OS.pmc should provide both a: copy(source_file,target) And a copy(array_of_source_files,targetDir) This needs some more discussion. If we look to Perl, for instance, it doesn't have a built-in copy.

Re: [perl #38146] [TODO] OS.pmc - file copy

2006-01-11 Thread Joshua Juran
On Jan 10, 2006, at 10:29 PM, Chip Salzenberg wrote: On Sat, Jan 07, 2006 at 01:04:29PM -1000, Joshua Hoblitt wrote: ... More sophisticated behavior, like metadata replication, should be left to another method (perhaps syscopy()) that has platform specific behavior(s). My first thought was

Re: [perl #38146] [TODO] OS.pmc - file copy

2006-01-11 Thread Joshua Juran
On Jan 11, 2006, at 7:02 PM, Chip Salzenberg wrote: On Wed, Jan 11, 2006 at 04:16:55PM -0500, Joshua Juran wrote: Since before System 7 (approaching two decades ago), Mac OS has had a system call that exchanges the contents of two files. The purpose of this call is to implement a 'safe

Re: Parrot vs NekoVM

2006-03-01 Thread Joshua Juran
On Feb 28, 2006, at 1:59 PM, Nicolas Cannasse wrote: On Feb 28, 2006, at 12:09, Nicolas Cannasse wrote: Yesterday I did a quick fib(30) benchmark comparing Parrot Win32 daily build (using jit core) and NekoVM (http://nekovm.org). The results are showing that Parrot is 5 times slower than N

Re: [perl #39313] [TODO] or [BUG] improve PMC compiler

2006-06-08 Thread Joshua Juran
On Jun 7, 2006, at 8:08 AM, Klaas-Jan Stol wrote: I had a look at this, but I'm not that good at Perl, and regular expressions. However, I found where things go wrong, so someone who really groks REs may fix it. I'm no Abigail, :-) but I'll try to help. THe problem is (well, at least I thi

LLVM and C99 and classic Mac OS (Re: LLVM and HLVM)

2006-08-27 Thread Joshua Juran
On Aug 22, 2006, at 5:52 PM, John Siracusa wrote: Has anyone looked at LLVM lately? http://llvm.org/ I discovered it a few years ago. My personal interest is in the portable C back end, so I can use the g++ compiler front end and send the output through CodeWarrior or MPW compilers, whos

Re: PMC Methods, Inheritance, and User-visible Classes

2006-08-29 Thread Joshua Juran
On Aug 28, 2006, at 12:18 PM, Matt Diephouse wrote: I would like to add some sort methods as well: quicksort(), mergesort(), etc. But as methods, there is potential for these to end up in a user-visible space. Say for example, that I add a mergesort method to AbstractPMCArray. Ruby's array clas

Re: [perl #41889] [PATCH] hoist cut and paste duplication into a function in src/library.c, also possible win32 bug found ?

2007-03-18 Thread Joshua Juran
On Mar 18, 2007, at 3:59 PM, Mike Mattie wrote: On Sun, 18 Mar 2007 19:30:35 + Nicholas Clark <[EMAIL PROTECTED]> wrote: On Sun, Mar 18, 2007 at 03:35:14PM +, Jonathan Worthington wrote: Mike Mattie (via RT) wrote: While mucking around in src/library.c I noticed some cut & paste dupl

Re: [perl #41889] [PATCH] hoist cut and paste duplication into a function in src/library.c, also possible win32 bug found ?

2007-03-19 Thread Joshua Juran
On Mar 19, 2007, at 4:17 AM, Nicholas Clark wrote: On Sun, Mar 18, 2007 at 08:33:25PM -0700, Joshua Juran wrote: I can't imagine someone else hasn't already come up with cnv = path->strstart; while ( (cnv = strchr( cnv, '/' )) ) { *cnv = '\\'; } bu

Re: [svn:parrot] r17623 - trunk

2007-03-19 Thread Joshua Juran
On Mar 19, 2007, at 1:44 AM, chromatic wrote: On Sunday 18 March 2007 10:14, [EMAIL PROTECTED] wrote: Log: Commenting out old MacOS Classic-specific code so the warnings don't appear. Does anyone use MacOS Classic anymore? We can get this code out of Subversion if we need it again; I say ju

Parrot on Mac OS

2005-06-02 Thread Joshua Juran
Hello, On a nostalgic lark I searched Google for "Perl Python Parrot" and was astonished (and excited) to discover the Parrot project. The Parrot FAQ states that Parrot must run on all platforms on which Perl 5 runs, including classic Mac OS. I've been implementing a POSIX-like environment

Re: Indexing hashtables

2005-06-22 Thread Joshua Juran
On Jun 22, 2005, at 2:25 PM, Klaas-Jan Stol wrote: I have some trouble indexing hashtables. I have the following code snippet: x["y;a"] = $P10 # (1) this does not work with the code below y["a"] = $P10 # (2) this does work with the code below x.y.a = 1; print(x.y.a); x and y

Re: takers wanted - a perl job

2005-06-24 Thread Joshua Juran
On Jun 24, 2005, at 8:07 AM, Chip Salzenberg wrote: On Fri, Jun 24, 2005 at 08:21:25AM +0200, Leopold Toetsch wrote: The plan is to move these methods to classes/scalar.pmc Last I remember, I asked for a number.pmc for Integer and Float to derive from. A Number isa Scalar. Is there some pro

Re: takers wanted - a perl job

2005-06-24 Thread Joshua Juran
On Jun 24, 2005, at 11:02 PM, Bob Rogers wrote: Since Complex could also be considered a Number, but of a very different sort, it might be worth constructing the type hierarchy to reflect this: Scalar Number Real Integer Float

Re: PMCs: Should We Use Them?

2005-07-07 Thread Joshua Juran
On Jul 7, 2005, at 11:28 PM, Larry Wall wrote: On Thu, Jul 07, 2005 at 09:28:04PM -0400, Michal Wallace wrote: : What I'd want is to be able to download the language : specific extensions as a library from cpan. Better : yet if users can do it themselves without having : to bug me. Hmm... My ne

Re: [perl #36794] [BUG] substr opcode segfault

2005-08-03 Thread Joshua Juran
On Aug 3, 2005, at 2:58 PM, Will Coleda (via RT) wrote: With r8787, the following tcl code: puts \u666 causes a segfault in the substr opcode (from tcl's lib/tclconst.pir), and forces a few tcl-unicode escape tests into TODOs. Duh, because it's *evil*. :-) Josh

Re: Zcode interpreter release

2005-08-24 Thread Joshua Juran
On Aug 24, 2005, at 7:42 PM, Andrew Rodland wrote: On Wednesday 24 August 2005 04:26 pm, Amir Karger wrote: Several people pointed out that I didn't perldoc -f system. Sorry! Btw, even after reading the docs, I still don't understand why Perl would pass a cd command to a piece of the shell tha

Re: loadlib and libraries with '.' in the name

2005-09-23 Thread Joshua Juran
On Sep 23, 2005, at 3:47 AM, Leopold Toetsch wrote: On Sep 23, 2005, at 7:51, Ross McFarland wrote: i was planning on playing around with gtk+ bindings and parrot and went about looking around for the work that had already been done and didn't turn anything up. if anyone knows where i can fin

Re: [perl #36200] Parrot on Linux/m68k test failures

2005-10-05 Thread Joshua Juran
On Oct 5, 2005, at 12:11 AM, Joshua Hoblitt via RT wrote: [EMAIL PROTECTED] - Tue Jun 07 02:29:24 2005]: A 'make test' of parrot failed some tests on Linux/m68k. Here is the contents of myconfig: Summary of my parrot 0.2.1 (r8279) configuration: configdate='Mon Jun 6 03:37:27 2005' Woul

Re: [perl #37577] [PATCH] Fix a couple of minor niggles (-1 -> uint, K&R prototype)

2005-11-06 Thread Joshua Juran
On Nov 5, 2005, at 4:27 PM, Joshua Hoblitt via RT wrote: [EMAIL PROTECTED] - Tue Nov 01 04:52:22 2005]: This patch fixes two classes of issue. * Don't assign -1 to an unsigned variable; use ~0U instead as it makes it clear that the value is intended to be out-of-band (g++ warned about this,

Re: Is Parrot 1.0 too late?

2007-04-24 Thread Joshua Juran
On Apr 24, 2007, at 11:21 PM, chromatic wrote: On Tuesday 24 April 2007 15:31, Nikolay Ananiev wrote: Why would the developers use Parrot instead of JVM/CLR/Mono? Parrot is open source today, not *mumble* down the road like the JVM will be. Parrot is also widely portable, much like perl

Re: Is Parrot 1.0 too late?

2007-04-25 Thread Joshua Juran
On Apr 25, 2007, at 2:06 AM, Nicholas Clark wrote: On Tue, Apr 24, 2007 at 11:43:48PM -0700, Joshua Juran wrote: Parrot is also widely portable, much like perl is. This one's especially important to me, as I still work with Mac OS 9. Parrot builds on Mac OS 9? Cool It's not

Re: Is Parrot 1.0 too late?

2007-04-25 Thread Joshua Juran
ot to mention: With Parrot, you have the Perl community's legendary sense of humor. Hey, at least Mac OS 9 uses ASCII... *ducks* Josh On Apr 25, 2007, at 4:06 AM, Nicholas Clark wrote: On Tue, Apr 24, 2007 at 11:43:48PM -0700, Joshua Juran wrote: Parrot is also widely portable,

Re: Simplifying Marking with a Macro

2007-06-19 Thread Joshua Juran
On Jun 19, 2007, at 12:13 AM, chromatic wrote: I hate seeing repeated code structures. We could simplify the mark () entry in plenty of PMCs with a macro something like: #define MARK_UNLESS_NULL(interp, struct, name) \ if (struct->name) \ pobject_lives(interp, (PObj *)struct->name

Re: [perl #44555] [PATCH] Add POD to 51_if_unless.pir

2007-08-13 Thread Joshua Juran
On Aug 10, 2007, at 4:21 PM, Colin Kuskie (via RT) wrote: +=item Numbers + +0.0 is false, all other numbers are true. Including -0.0 and NaN? Either way, that should be documented explicitly. Josh

Re: [perl #45013] Configure fails if prefix ends with '/'

2007-09-11 Thread Joshua Juran
On Sep 10, 2007, at 6:52 PM, James Keenan via RT wrote: On Mon Sep 10 10:53:43 2007, [EMAIL PROTECTED] wrote: Is the chance that $prefix ends in slash-newline sufficiently rare that the $ anchor is better than \z? Can we get some tests on Win32 as well? And how about that Mac OS 9? I'm go

Re: [svn:parrot] r21437 - branches/pdd15oo/src/ops

2007-09-22 Thread Joshua Juran
On Sep 21, 2007, at 1:15 AM, Joshua Isom wrote: -Werror -Wdeclaration-after-statement Should work according to the manpage. But just one little problem. src/string.c In file included from src/string.c:26: src/string_private_cstring.h:21: warning: size of 'parrot_cstrings' is 7560 bytes ***

Re: [perl #46223] [PATCH] Remove dead code in src/pmc/pair.pmc (Coverity CID 5)

2007-10-08 Thread Joshua Juran
On Oct 7, 2007, at 12:43 PM, Paul Cochrane (via RT) wrote: # New Ticket Created by Paul Cochrane # Please include the string: [perl #46223] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=46223 > Coverity Prevent mentions t

Re: [perl #46223] [PATCH] Remove dead code in src/pmc/pair.pmc (Coverity CID 5)

2007-10-08 Thread Joshua Juran
On Oct 8, 2007, at 4:36 AM, Paul Cochrane wrote: On 08/10/2007, Joshua Juran <[EMAIL PROTECTED]> wrote: On Oct 7, 2007, at 12:43 PM, Paul Cochrane (via RT) wrote: # New Ticket Created by Paul Cochrane # Please include the string: [perl #46223] # in the subject line of all

Re: [svn:parrot-pdd] r22126 - trunk/docs/pdds/draft

2007-10-16 Thread Joshua Juran
On Oct 16, 2007, at 6:33 AM, [EMAIL PROTECTED] wrote: Modified: trunk/docs/pdds/draft/pdd19_pir.pod == --- trunk/docs/pdds/draft/pdd19_pir.pod (original) +++ trunk/docs/pdds/draft/pdd19_pir.pod Tue Oct 16 06:33:21 200

Re: [perl #39824] [CAGE] tools/dev/check_source_standards.pl -- this should be a test

2007-10-16 Thread Joshua Juran
On Oct 16, 2007, at 10:52 AM, Paul Cochrane wrote: The minimum requirements for filenames should be: - Any character in the set: a-zA-Z0-9,.-_ - Should we make a rule about multiple dots? - Should there be a maximum length? 1024 chars? 100 chars? 12 chars? I would like to see a maximum

Re: [perl #39824] [CAGE] tools/dev/check_source_standards.pl -- this should be a test

2007-10-16 Thread Joshua Juran
On Oct 16, 2007, at 8:23 PM, Patrick R. Michaud wrote: On Tue, Oct 16, 2007 at 10:45:29PM -0400, James E Keenan wrote: Joshua Juran wrote: On Oct 16, 2007, at 10:52 AM, Paul Cochrane wrote: The minimum requirements for filenames should be: - Any character in the set: a-zA-Z0-9,.-_ - Should

Re: unallocated memory in string.c?

2007-10-28 Thread Joshua Juran
On Oct 28, 2007, at 8:28 AM, Klaas-Jan Stol wrote: hi, when building parrot it reported a warning about some variable "string" in string.c When checking out, I saw this: static const char * nonnull_encoding_name(STRING *s) { char *string; if (!s) strcpy(string, "null string");

Re: [perl #48226] [Patch] Option 'exec' for Parrot::Test::Harness

2007-12-07 Thread Joshua Juran
On Dec 5, 2007, at 5:57 PM, chromatic wrote: Everything looks reasonable to me, except q{} versus q{ } which are barely discernable and offers (to my mind) only disadvantages over '' versus ' ' which is much more distinguishable. Would "" vs. " " be a further improvement? Josh

Re: [perl #61224] .eof returns false if last read call read the last byte of the file, but not beyond

2008-12-12 Thread Joshua Juran
On Dec 11, 2008, at 5:07 PM, Allison Randal via RT wrote: The way to check if the byte after the last requested byte is the end of the file is to read ahead. Perl (at least 5.10) does this by actually reading the next character and then putting it back with 'ungetc'. Not the best solution. Any

Re: Testing asynchronous code

2008-01-02 Thread Joshua Juran
On Dec 31, 2007, at 11:57 AM, chromatic wrote: On Monday 31 December 2007 05:50:47 Allison Randal wrote: In the concurrency work I'm about to check in, I have some tests that fail intermittently because they test for something like: 1 alarm1 2 alarm2 3 alarm3 alarm1 alarm3 4 alarm3 alarm3 ala

Re: Extending Parrot NCI callback functionality

2008-01-19 Thread Joshua Juran
On Jan 16, 2008, at 7:39 PM, Geoffrey Broadwell wrote: I am starting to implement a GLUT and OpenGL binding for Parrot. GLUT is extremely callback-oriented. Unfortunately, none of the GLUT callbacks fall within the current limitations on Parrot NCI callbacks. As you've discovered, callbacks