Re: Release tomorrow

2008-12-15 Thread Kevin Tew
Will Coleda wrote: On Mon, Dec 15, 2008 at 11:05 AM, Kevin Tew t...@tewk.com wrote: Will Coleda wrote: 3) What's the status of ticket -r33351 causes tcl segfault (TT#10)? Is this still an issue? Is anybody actively working on it? Are we realistically going to get this issue resolved

Re: [perl #48631] [RFE] oo - allow :method to also enter sub in namespace

2008-11-29 Thread Kevin Tew
reject, there is a new ticket Klaas-Jan Stol via RT wrote: On Fri Dec 21 07:31:46 2007, pmichaud wrote: Kevin Tew started investigating this ticket, and he discovered that :method subs are already being placed as entries in the namespace by default, which is the behavior I was looking

Use Pointer instead of UnManagedStruct for void ** opaque out pointer in SQLite

2008-11-20 Thread Kevin Tew
I think use of V in your signature will allow you to do away with your C code grep for nci_vVi in t/pmc/nci.t and src/nci_test.c for an example. Note that it used Pointer not UnmanagedStruct Kevin

[perl #60042] Crash in examples/library/pcre.pir in r32073 on x86 linux (libpcre v7.7)

2008-10-25 Thread Kevin Tew via RT
B effectively turns a parrot STRING into a char**, passing a point to the character array to the function. This is bad because c functions shouldn't be modifying parrot STRINGs. B should really only be used as a IN parameter, not as a OUT or a IN/OUT parameter. I don't think that NCI really

Re: gsoc_nci merge

2008-08-23 Thread Kevin Tew
Reini Urban wrote: Kevin Tew schrieb: The merge has happened. Developers/Users should see no visible changes. Please build and test, should you have any problems, just yell at me on #irc or parrot-porters. Some options are still not implemented. Attached patch does that. Applied

gsoc_nci merge

2008-08-22 Thread Kevin Tew
The merge has happened. Developers/Users should see no visible changes. Please build and test, should you have any problems, just yell at me on #irc or parrot-porters. Regression test cases will be appreciated. :) I'll try to be available until 3:00pm MDT and later this evening 9:00pmMDT -

Re: gsoc_nci merge

2008-08-22 Thread Kevin Tew
/lib/libparrot.a |grep store_arg 1840 T Parrot_store_arg 1790 t store_arg U Parrot_store_arg U Parrot_store_arg U Parrot_store_arg U Parrot_store_arg U Parrot_store_arg U Parrot_store_arg Ideas, Kevin François Perrad wrote: 2008/8/22 Kevin

Re: gsoc_nci merge

2008-08-22 Thread Kevin Tew
in place. Suggestions about where these functions should go and how? Kevin Kevin Tew wrote: Looks like a weird linking error, I can reproduce it. cc -o examples/pasm/hello examples/pasm/hello.o src/exec_start.o src/parrot_config.o -Wl,-rpath=/home/tewk/srcs/nci/blib/lib -L/home/tewk/srcs/nci

Re: gsoc_nci merge

2008-08-22 Thread Kevin Tew
I still think too much junk is in jit_emit.h The patch attached shows how I would re-factor it. Kevin NotFound wrote: On Fri, Aug 22, 2008 at 9:51 PM, Kevin Tew [EMAIL PROTECTED] wrote: 0015a810 t Parrot_store_arg little t means its not exported. set_nci_* functions should probably

Re: Questions about GSOC

2008-08-20 Thread Kevin Tew
gsoc_nci code is available in branches/gsoc_nci_001 jitted nci stubs works on i386 WIN32 and i386 LINUX Its probably going to be merged this week. Kevin Nikolay Ananiev wrote: Hey guys, Today I saw Andrew's last post in his blog about the end of gsoc. Since I could not find much information

Re: [svn:parrot] r30144 - trunk

2008-08-09 Thread Kevin Tew
I think tools/dev/mk_manifest_and_skip.pl ignores the ports directory Kevin chromatic wrote: On Saturday 09 August 2008 10:30:30 [EMAIL PROTECTED] wrote: Log: MANIFEST and SKIP were not updated before a recent commit. Modified: trunk/MANIFEST --- trunk/MANIFEST (original) +++

Re: Branching

2008-08-05 Thread Kevin Tew
Git is really nice for: local branches, frequently(daily) rebasing local branches to keep in sync with HEAD, publishing local branches for others to review, allowing non-committers to make changes and publish those changes publicly Kevin Will Coleda wrote: Using svn as a

[Fwd: Re: Branching]

2008-08-05 Thread Kevin Tew
---BeginMessage--- Will Coleda wrote: On Tue, Aug 5, 2008 at 11:04 AM, Kevin Tew [EMAIL PROTECTED] wrote: Git is really nice for: local branches, This is on par with svk... frequently(daily) rebasing local branches to keep in sync with HEAD, How does this work

Re: [perl #50068] [BUG] Configure doesn't detect backtrace* on ubuntu gutsy

2008-04-15 Thread Kevin Tew
Issue fixed Kevin Mark Glines via RT wrote: On Mon Apr 14 12:20:52 2008, infinoid wrote: Issue resolved due to closure request from submitter. Thanks! Sorry, I should turn my brain on. Ticket reopened pending confirmation. tewk: does this issue still exist for you? I've

Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Kevin Tew
I'm working on http://rt.perl.org/rt3/Ticket/Display.html?id=48631 I've added parsing of :namespace to imcc, now I'm trying to figure out what I'm suppose to do differently when :namespace is present in a methods prototype. I thought I was suppose to add the :method to a namespace, but that

Re: Trying to write a oo :method that isn't automatically inserted in a namespace.

2007-12-21 Thread Kevin Tew
subs should not be added to the namespace unless they have a :namespace flag. So we should fix set_pmc_keyed_str to not add :methods unless the :namespace flag is present. Kevin Allison Randal wrote: On Fri, Dec 21, 2007 at 01:30:42AM -0700, Kevin Tew wrote: I've added parsing

PerlPGEDumper

2007-12-12 Thread Kevin Tew
I'm using this code to dump PGE parse trees in Perl5 dump format. Can it get modified/added to HLLCompiler and PCT? I'm using it for a research project where the compiler is written in Perl5. The compiler translates the PGE parse tree into c++ code which is then compiled. I'd like to

PerlPGEDumper with diff

2007-12-12 Thread Kevin Tew
I'm using this code to dump PGE parse trees in Perl5 dump format. Can it get modified/added to HLLCompiler and PCT? I'm using it for a research project where the compiler is written in Perl5. The compiler translates the PGE parse tree into c++ code which is then compiled. I'd like to eventually

Re: [perl #47011] [DEPRECATED] VTABLE entry 'new_from_string'

2007-12-03 Thread Kevin Tew
The logic was present in FIA, before PCC was written. It was reused in an attempt to don't repeat yourself. Kevin Allison Randal wrote: jerry gay wrote: careful... one of these PMCs is FixedIntegerArray. FIA is used to set the flags for parrot calling conventions, so it's constructed every

Re: [svn:parrot] r20101 - in trunk: . tools/build

2007-07-23 Thread Kevin Tew
Nope it isn't. I debated the fix. Of course the return NULL isn't reachable either so we should remove it too. But that will cause compiler warnings for not having a return value. My thinking was that, should someone, someday change PANIC into a recoverable error, this will prevent leakage.

Re: I Hate find_vtable_meth_ns()

2007-06-13 Thread Kevin Tew
My patch only fails these tests. Failed Test Stat Wstat Total Fail List of Failed --- t/library/range.t 1 25678 18 70-78 t/pmc/parrotobject.t1 256111 3 Chromatic was right,

[File of the Week] src/objects.c

2007-05-01 Thread Kevin Tew
This week's file of the week is: src/object.c As Allison says below, no patch is to small. typo fixes, spelling fixes, documentation welcome, as well as code refactorings. I'm going to try to describe the purpose of each of the functions to get things started. Patch coming soon. :) Kevin

Re: [perl #42151] [PATCH] Assorted casting cleanups - part I

2007-03-27 Thread Kevin Tew
Looks great Steve, could (PMC *) get added to the NEED_CONTINUATION macro Index: include/parrot/sub.h === --- include/parrot/sub.h(revision 17785) +++ include/parrot/sub.h(working copy) @@ -109,7 +109,7 @@ * a flag

Re: [perl #41602] [TODO] MS VS 2005 deprecates strdup

2007-03-05 Thread Kevin Tew
Defining _CRT_SECURE_NO_DEPRECATE on the compiler command line is probably the right solution here. Kevin Klaas-Jan Stol wrote: [EMAIL PROTECTED] via RT wrote: Hi, Applied in 17281, thanks. For your question, strdup is fine since these are not garbage collectable strings (STRING*), just

Re: [perl #41602] [TODO] MS VS 2005 deprecates strdup

2007-03-05 Thread Kevin Tew
I believe that VS2005 Has a new snprintf_s, strcpy_s etc that are suppose to be secure See: http://msdn2.microsoft.com/en-us/library/8ef0s5kh(VS.80).aspx. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=6995SiteID=1. Kevin Philip Taylor wrote: Klaas-Jan Stol wrote on 05/03/2007 16:48:

Re: [svn:parrot] r16706 - in trunk: compilers/tge/TGE languages/tcl/config/makefiles languages/tcl/lib languages/tcl/src languages/tcl/t runtime/parrot/library/PGE src

2007-01-19 Thread Kevin Tew
Paul Cochrane wrote: Essentially you should svk pull before any commit or push operation, which helps avoid having to do conflict resolution. I'm adding in spots in all caps where you should do a svk pull. Kevin I'm working from a mirrored copy, and my usual work cycle is: svk up -sm

Re: [perl #41266] [PDD] object instantiation, new method

2007-01-14 Thread Kevin Tew
I like it. I have been thinking of suggesting the same thing. Currently, hackery is used to get the new opcode to instantiate objects. If classes become objects as well, the hackery breaks down. Kevin Allison Randal (via RT) wrote: # New Ticket Created by Allison Randal # Please include the

Re: [perl #39802] [PATCH] [CAGE] turning up the warnings levels in gcc as much as we can

2006-12-22 Thread Kevin Tew
I believe it was GCC 4.0.1 on OS X. Kevin Paul Cochrane via RT wrote: Kevin, Thanks for the patch! I've managed to apply it (with some changes), however the following warning flags don't work with my gcc (3.4.5): #. -Wfatal-errors #. -Wmissing-field-initializers

[perl #40801] [TODO] Rename enter_nci_method to something better

2006-12-16 Thread Kevin Tew via RT
how about register_nci_method? If we get consensus, I'll do the rename. Kevin On Fri Nov 10 15:53:07 2006, [EMAIL PROTECTED] wrote: enter_nci_method is poorly named. It sounds like it's entering the method to execute it. What it's actually doing is entering the method into a symbol table

Re: :init Where should we put the flag?

2006-10-30 Thread Kevin Tew
Using either of those flags ( PObj_private0_FLAG or PObj_private2_FLAG ) break other tests. I'm up for more suggestions. Kevin Leopold Toetsch wrote: Am Sonntag, 29. Oktober 2006 21:25 schrieb Kevin Tew: I've had :init implemented for a couple of weeks now, but I can't check

:init Where should we put the flag?

2006-10-29 Thread Kevin Tew
I've had :init implemented for a couple of weeks now, but I can't check it in because it needs its own flag. Currently I'm using PObj_private7_FLAG to indicate a :init sub, but I stole PObj_private7_FLAG from SUB_FLAG_PF_POSTCOMP. Leo suggested using PObj_private2_FLAG, but when I did tons of

Re: :init Where should we put the flag?

2006-10-29 Thread Kevin Tew
Using either of those flags ( PObj_private0_FLAG or PObj_private2_FLAG ) break other tests. I'm up for more suggestions. Kevin Leopold Toetsch wrote: Am Sonntag, 29. Oktober 2006 21:25 schrieb Kevin Tew: I've had :init implemented for a couple of weeks now, but I can't check

Current State of ParrotClass and ParrotObject?

2006-10-23 Thread Kevin Tew
Just wanted to collect information about ParrotClass and ParrotObject. I can't seem to instantiate a ParrotObject from a ParrotClass using the new opcode. I've seen references to the instantiate_object opcode but it seems unimplemented. I know the object pdd is coming up on Allison's

sub :init implementation

2006-10-18 Thread Kevin Tew
The attached patch is broken because of lack of flag space. I coded it up this morning. It wasn't too bad except that we have run out of PObj flags in which to store sub attributes. Ideas? Also how do I get flex and bison to regen the grammar? I made real clean perl Configure.pl --maintainer

Re: [perl #39926] [TODO] :init attribute

2006-10-18 Thread Kevin Tew
Thanks I didn't know which flag too pick. I finally did get flex and bison to run. Do you thing you could annotate the rest of the flags as to when they are used? Kevin Leopold Toetsch wrote: Am Mittwoch, 18. Oktober 2006 17:20 schrieb Kevin Tew: Working code with test. I stole

Re: [PATCH] today's build failed because of a missing 'use'

2006-10-18 Thread Kevin Tew
Yeah, I caused this. Patch Applied Kevin Karl Forner wrote: Hi, Just checked out parrot and the build failed like this: cc -o miniparrot -L/usr/local/lib -Wl,-E compilers/imcc/main.o \ -Wl,-rpath=/home/kforner/dev/parrot/test/parrot/blib/lib

Re: [perl #40559] AutoReply: $FindBin::Bin has a trailing / in scripts on Perl 5.8.3

2006-10-17 Thread Kevin Tew
Used Cwd::abs_path like FindBin in perl 5.8.6 does. defaults.pm |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: config/init/defaults.pm === --- config/init/defaults.pm (revision 14936) +++

Coding Standard Questions

2006-10-17 Thread Kevin Tew
While exploring Parrot internals I started cleaning up some code. I'll post patches to the list, but here are some things that are not defined by the coding standards, but of which I'm a fan. So the question is are they acceptable in the parrot code base. 1) *s should go right next to the type

Re: Coding Standard Questions

2006-10-17 Thread Kevin Tew
(); Curlies are ok with me too, but I think a decision against curlies was made. if (foo) { bar(); } else { bat(); } Andy Lester wrote: On Oct 17, 2006, at 3:33 PM, Kevin Tew wrote: if (!info-thaw_result) info-thaw_result = pmc; else *info-thaw_ptr = pmc

Re: Coding Standard Questions

2006-10-17 Thread Kevin Tew
Kevin Tew wrote: Jerry thanks for finding the reference in pdd07. Note I'm not trying to start a preference war here, I would just like Chip to rule on some things that are not in the coding spec yet. Thanks, Kevin Prvious mail should have read: if ( foo ) bar(); else bat(); I cant find

configure bug

2006-10-16 Thread Kevin Tew
make realclean perl Configure.pl Generating makefiles and other build files... step gen::makefiles died during execution: config/gen/makefiles/bcg.in:73: line ends in a slash

[perl #40380] [PATCH] errors on 'make install' - src/pdb.c

2006-10-02 Thread Kevin Tew via RT
=== src/pdb.c == --- src/pdb.c (revision 133) +++ src/pdb.c (local) @@ -136,7 +136,6 @@ PDB_t *pdb; void *yyscanner; -do_yylex_init ( yyscanner ); /*Parrot_set_config_hash(); TODO link with cfg */

Re: [perl #40438] Extending a dynpmc with a PIR method fails

2006-10-02 Thread Kevin Tew
Update pdump patch Kevin Tew wrote: The attached patch is my first step at locating bug #40438. It adds pdump -d functionality for keys. Leopold Toetsch via RT wrote: Thanks, I've applied a modified version of the patch, showing that it's a namespace issue caused by the .HLL line. Using

Re: [perl #40438] Extending a dynpmc with a PIR method fails

2006-10-01 Thread Kevin Tew
The attached patch is my first step at locating bug #40438. It adds pdump -d functionality for keys. Leopold Toetsch via RT wrote: Thanks, I've applied a modified version of the patch, showing that it's a namespace issue caused by the .HLL line. Using .loadlib works fine and as expected. leo

Re: socket related constants

2006-09-09 Thread Kevin Tew
chromatic wrote: On Friday 08 September 2006 03:38, Leopold Toetsch wrote: typical socket ocde currently looks a bit unfriendly due to magic constants, e.g. socket sock, 2, 1, 6# PF_INET, SOCK_STREAM, tcp I'd like to have symbolic constants for all that stuff: socket sock

Re: [perl #40002] TGE Refactor / Compiler Tools Object

2006-08-03 Thread Kevin Tew
Patrick R. Michaud via RT wrote: In discussions with Allison at OSCON, I noted that we needed to reconsider the syntax slightly. We don't want TGE to have to know how to parse every language, and it may not be reasonable to expect every compiler to expose a parser. So, if we're going to allow

Initialization and Finalization hooks

2006-08-01 Thread Kevin Tew
I'm trying to implement ruby BEGIN and END blocks. I can generate the blocks just fine. I just need to generate pir so they get called at the right time. BEGIN{} and END {} semantic are described below. I think that these are general use cases that should be provided by parrot. Maybe the

PGE/TGE and the future.

2006-07-28 Thread Kevin Tew
I'm seeking information regarding TGE's design goals, aspirations, future plans, etc. I see that Perl6 implements its own version of PAST and POST nodes. Is it possible to share basic PAST and POST nodes and extend them for particular HLL needs? I know that different HLLs share a lot of the

Re: [perl #39934] [PATCH] Make disassemble useful.

2006-07-24 Thread Kevin Tew
BYTECODE_src/ASTGrammar_gen.pir Given BYTECODE_src/ASTGrammar_gen.pir: run disassemble on src/ASTGrammar.pbc make disassemble ./disassemble languages/cardinal/src/ASTGrammar.pbc |less And puff, smoke, magic: I found out I was core dumping on line #459 of src/ASTGrammar_gen.pir Kevin Tew (via RT) wrote

Re: Ruby on Parrot

2006-07-11 Thread Kevin Tew
. Source available at http://tewk.com/pruby.tgz Suggestions or debugging tips welcome. Thanks, Kevin Tew Patrick R. Michaud wrote: On Fri, Jul 07, 2006 at 10:07:57AM -0600, Kevin Tew wrote: I based the initial PGE grammar for PRuby off of svn://rubyforge.org/var/svn/rubygrammar/grammars

[CAGE] Coverity and Split: Has anyone started using these with Parrot?

2006-07-11 Thread Kevin Tew
Has anyone done anything about coverity, whats the next course of action? I'd be happy to send off an email and start a conversation with coverity if that is what is needed. Has anyone done anything with splint yet? Kevin

Re: Ruby on Parrot

2006-07-07 Thread Kevin Tew
.ResizablePMCArray $P0 = get_namespace $P0 $P0['_dumper'] null $S0 $P0 = get_namespace $S0 $P0['_dumper'] Haven't had time to get back to it today. A short example of how to include/load_bytecode library/dumper.pir and lookup the _dumper symbol inside a TGE rule would be helpful. Kevin Tew

Re: [pirate] Re: Python PMC's

2005-08-24 Thread Kevin Tew
I agree this following would be cool. However in the general case this type of code inference is HARD to do. I believe that the optimizations you are looking for would require a combination of type inference and graph reduction. PyPy may be the eventual answer. Don't get me wrong, I think it is

Python PMC's

2005-08-23 Thread Kevin Tew
. Comments welcome. Kevin Tew

Re: [pirate] Python PMC's

2005-08-23 Thread Kevin Tew
Sam, Thanks for the comments, They were very much appreciated. Sam Ruby wrote: I added self on Leo's request. Now it is unneccessary. *shrug* I understand completely. Check out parrot/t/dynclass/pyint_2.pmc. __add__ style methods were working, and tested. Yes many are working, I should

Re: [pirate] Python PMC's Missed attachment

2005-08-23 Thread Kevin Tew
My current work. Python PMC Patch to leo5-cxt5

Documentation

2005-08-19 Thread Kevin Tew
I've been watching pugs for a while and would like to get more involved. To that end I've been exploring the source tree. As a newbie, I've got a lot of questions, So I'm attempting to learn by updating and adding documenation. My patches may seem obvious to the seasoned pugs hacker, however, I'm

Re: [pirate] Setting up Pirate Parrot

2005-07-01 Thread Kevin Tew
/pyparrot languages/python/pyparrot My current boggle is how to handle the self parameter to method functions. You can do things like this in python def foobar( arg1, arg2 ): print arg1, arg2 class A(): self.__add__ = foobar aa = A() print aa + 5 I'm happy to help out and discuss. Kevin

BigInt.pmc patch

2005-05-26 Thread Kevin Tew
Adds tests and fixes incorrect implementation. Kevin Tew Index: classes/bigint.pmc === --- classes/bigint.pmc (revision 8168) +++ classes/bigint.pmc (working copy) @@ -203,44 +203,11 @@ } static void -bigint_bitwise_shl_bigint

config/auto/m4.pl patch

2005-05-21 Thread Kevin Tew
' ) || ''; -my $has_gnu_m4 = ( $a =~ m/^GNU m4 / ) ? 1 : 0; +my $has_gnu_m4 = ( $a =~ m/^GNU [mM]4 / ) ? 1 : 0; Configure::Data-set(has_gnu_m4 = $has_gnu_m4); Patch attached, Kevin Tew Index: config/auto/m4.pl === --- config

Re: Python on parrot

2005-05-16 Thread Kevin Tew
and/or participate] Kevin Tew wrote: Sam Ruby wrote: Hey guys, I didn't see this until just now. Kevin Tew wrote: Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://www.intertwingly.net/stories/2004/10/05/pyrate.zip http

Re: VTABLE methods and interfaces

2005-04-16 Thread Kevin Tew
Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://www.intertwingly.net/stories/2004/10/05/pyrate.zip http://pirate.versionhost.com/viewcvs.cgi/pirate/ Is there a up to date cvs repo? Can we get this code checked into the parrot svn repo? Kevin

Python on parrot

2005-04-16 Thread Kevin Tew
Sam, Just wondering what the status is on python/parrot/pirate/pyrate. These both look outdated. http://www.intertwingly.net/stories/2004/10/05/pyrate.zip http://pirate.versionhost.com/viewcvs.cgi/pirate/ Is there a up to date cvs repo? Can we get this code checked into the parrot svn repo? Kevin