Re: [BUG] "Undefined symbols" on OS X

2008-01-26 Thread fitz . elliott
On Jan 23, 2:05 pm, [EMAIL PROTECTED] (Andy Dougherty) wrote: > On Wed, 23 Jan 2008, chromatic wrote: > > On Wednesday 23 January 2008 10:20:03 Andy Dougherty wrote: > > > > my suggested reordering is unlikely to fix this. The undefined > > > symbol '_Parrot_set_executable_name' is referenced in p

Re: [perl #50244] [RFE] Remove 'languages/perl5'

2008-01-26 Thread Bernhard Schmalhofer
Andrew Parker via RT schrieb: This fix seems to have broken Configure.pl. I just checked out a fresh copy (r25239) of parrot trunk and got: Configuring languages... step gen::languages died during execution: Can't open languages/perl5/config/makefiles/root.in: No such file or directory at lib/P

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

2008-01-26 Thread simon
Author: simon Date: Sat Jan 26 04:58:44 2008 New Revision: 25243 Modified: trunk/docs/pdds/draft/pdd28_character_sets.pod Log: Nits picked by Mark Reed, David Romano and Larry Modified: trunk/docs/pdds/draft/pdd28_character_sets.pod ===

pluralization idea that keeps bugging me

2008-01-26 Thread Larry Wall
Last night I got a message entitled: "yum: 1 Updates Available". Of course, that's probably just a Python programmer giving up on doing the right thing, but we see this sort of bletcherousness all the time. After a recent exchange on PerlMonks about join, I've been thinking about the problem of pl

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Amir E. Aharoni
On 26/01/2008, Larry Wall <[EMAIL PROTECTED]> wrote: > After a recent exchange on PerlMonks about join, I've been thinking > about the problem of pluralization in interpolated strings, where we > get things like: > > say "Received $m message{ 1==$m ?? '' !! 's' }." > > ... > > Any other cute id

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Jonathan Lang
Larry Wall wrote: > Any other cute ideas? If you have '\s', you'll also want '\S': "$n cat\s fight\S" # 1 cat fights; 2 cats fight I'm not fond of the 'ox\soxen' idea; but I could get behind something like '\s' or 'ox\s'. '\s' would mean 'a is singular; b is plural' '\s' would be short for '\s<

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Austin Hastings
Jonathan makes an excellent point about s and S. In fact, there's probably a "little language" out there for this. I don't think it needs to be in the core, though. But you could put in some kind of "hook" mechanism, so that detecting the presence of \s or whatever caused the string to be trea

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Dr.Ruud
"Jonathan Lang" schreef: > I'm not fond of the 'ox\soxen' idea; but I could get behind something > like '\s' or 'ox\s'. "$n ox\s< en>" "$n\s cat\s< s > fight\s< s s>" ;) -- Affijn, Ruud "Gewoon is een tijger."

[perl #49766] toplevel 'make perl6' needs dependency fixup.

2008-01-26 Thread Will Coleda via RT
On Mon Jan 14 11:26:27 2008, coke wrote: > In the top level directory, type: > > 'make perl6' > > a perl6 binary is created. > > now type "make perl6" again, and the binary is regenerated from the > step "./pbc_to_exe languages/perl6/perl6.pbc" on, despite the fact > that nothing has changed. >

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Fagyal Csongor
Amir E. Aharoni wrote: On 26/01/2008, Larry Wall <[EMAIL PROTECTED]> wrote: After a recent exchange on PerlMonks about join, I've been thinking about the problem of pluralization in interpolated strings, where we get things like: say "Received $m message{ 1==$m ?? '' !! 's' }." ... Any

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Yuval Kogman
To me this sounds like use Lingua::EN::Pluralize::DSL; which would overload your grammar locally to parse strings this way. However, due to i18n reasons this should not be in the core. It might make sense to ship a slightly modernized Locale::MakeText with Perl 6 so that it can be used

Re: pluralization idea that keeps bugging me

2008-01-26 Thread chromatic
On Saturday 26 January 2008 08:58:43 Larry Wall wrote: > That would cover most of the cases for English speakers using regular > nouns, but I wonder whether there's some kind of generalization that > would help for cases like: > >     say "There was/were $o ox/oxen" That makes me wish for a subju

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Darren Duncan
At 8:58 AM -0800 1/26/08, Larry Wall wrote: My first thought is that this is such a common idiom that we ought to have some syntactic sugar for it: say "Received $m message\s." I don't think that a feature like this should be in the core language; it is too complicated as well as an open-

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Patrick R. Michaud
On Sat, Jan 26, 2008 at 08:58:43AM -0800, Larry Wall wrote: > After a recent exchange on PerlMonks about join, I've been thinking > about the problem of pluralization in interpolated strings, where we > get things like: > > say "Received $m message{ 1==$m ?? '' !! 's' }." > > My first thought

[perl #50056] [BUG] "Undefined symbols" on OS X

2008-01-26 Thread Allison Randal via RT
Update: Nat Torkington wrote a test case for the features we're using (compiling a dynamic library, and compiling an executable that uses that library), which I've attached. The test case works, and is fundamentally the same as what Parrot is doing. I've been stepping through the differences betwe

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Gianni Ceccarelli
On 2008-01-26 Larry Wall <[EMAIL PROTECTED]> wrote: > Last night I got a message entitled: "yum: 1 Updates Available". > [snip a lot] > I think that probably handles most of the Indo-European cases, and > anything more complicated can revert to explicit code. (Or go though > a localization diction

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Richard Hainsworth
Its only English centric if the idea is fixed to plurals, because its only for plurals where English words are mutated by grammar rules. In other languages, words are mutated by other factors, such as the gender of the word, the case, and the number. The problem can be quite difficult, say in

Re: pluralization idea that keeps bugging me

2008-01-26 Thread jesse
On Sat, Jan 26, 2008 at 02:36:32PM -0800, chromatic wrote: > > Nearly pain-free l10n and i18n *is* kind of a killer feature though. +1 > -- c > --

Re: pluralization idea that keeps bugging me

2008-01-26 Thread jesse
On Sat, Jan 26, 2008 at 08:58:43AM -0800, Larry Wall wrote: > Last night I got a message entitled: "yum: 1 Updates Available". > Of course, that's probably just a Python programmer giving up on doing > the right thing, but we see this sort of bletcherousness all the time. > > Any other cute ide

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Jonathan Lang
Gianni Ceccarelli wrote: > Please don't put this in the language. The problem is harder than it > seems (there are European languages that pluralize differently on $X % > 10, IIRC; 0 is singular or plural depending on the language, etc etc). -snip- > I know Perl is not "minimal", but sometimes I

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Jonathan Lang
Yuval Kogman wrote: > You can subclass the grammar and change everything. > > Theoretically that's a "yes" =) Right. One last question: is this (i.e., extending a string's grammar) a "keep simple things simple" thing, or a "keep difficult things doable" thing? -- Jonathan "Dataweaver" Lang

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Yuval Kogman
On Sat, Jan 26, 2008 at 18:43:50 -0800, Jonathan Lang wrote: > Right. One last question: is this (i.e., extending a string's > grammar) a "keep simple things simple" thing, or a "keep difficult > things doable" thing? I'm going to guess somewhere in between. It should be about the same level of

[perl #50056] [BUG] "Undefined symbols" on OS X

2008-01-26 Thread Allison Randal via RT
The attached patch allows 'make' to complete on my OS X box, and passes 'make test'. It gets a segfault when running 'make perl6', at the point where it runs 'pbc_to_exe perl6.pbc'. The segfault appears to be a standard GC-style error attempting to access reclaimed memory, and not related to symbol

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Yuval Kogman
On Sat, Jan 26, 2008 at 18:12:17 -0800, Jonathan Lang wrote: > This _does_ appear to be something more suitable for a Locale:: > module. I just wonder if there are enough hooks in the core to allow > for an appropriately brief syntax to be introduced in a module: can > one roll one's own string "

Re: [perl #50056] [BUG] "Undefined symbols" on OS X

2008-01-26 Thread chromatic
On Saturday 26 January 2008 19:01:48 Allison Randal via RT wrote: > But, I won't commit the patch until I have some confirmation on whether > the segfault happens without the patch on other platforms, or with the > patch on other darwin-based installs. At least I can apply the patch to > my workin

Re: [perl #50056] [BUG] "Undefined symbols" on OS X

2008-01-26 Thread Andy Dougherty
On Sat, 26 Jan 2008, Allison Randal via RT wrote: > The attached patch allows 'make' to complete on my OS X box, and passes > 'make test'. > --- tools/dev/pbc_to_exe_gen.pl (revision 25264) > +++ tools/dev/pbc_to_exe_gen.pl (working copy) > @@ -351,6 +351,11 @@ > .local string li

Re: [perl #50056] [BUG] "Undefined symbols" on OS X

2008-01-26 Thread Allison Randal
Andy Dougherty via RT wrote: + +unless osname == 'darwin' goto not_darwin + link .= '-undefined dynamic_lookup ' +not_darwin: + I understand and sympathize with wanting to just get past this problem, but this looks to me like layering more magic to undo the bad magic applied ea