Re: Initial release of Goldie: GOLD Parser Engine for D

2009-08-28 Thread Grzegorz Adam Hankiewicz
Nick Sabalausky escribió: First release of Goldie is now available on DSource. http://www.dsource.org/projects/goldie Goldie (pronounced goal D) is a GOLD Engine for D. It gives D developers the ability to easily load, lex and parse a text/source file according to any grammar defined using

Re: Initial release of Goldie: GOLD Parser Engine for D

2009-08-28 Thread Nick Sabalausky
Grzegorz Adam Hankiewicz gra...@titanium.sabren.com wrote in message news:h78ojv$du...@digitalmars.com... I googled for GOLD vs ANTLR and only found a thread five years ago that stated ANTLR was better if you wanted the full kitchen sink, and GOLD was just a bunch of hacks. Has somebody a

Re: Initial release of Goldie: GOLD Parser Engine for D

2009-08-28 Thread Leandro Lucarella
Nick Sabalausky, el 28 de agosto a las 16:47 me escribiste: [Pro ANTLR?] - GOLD's GUI tool *is* GOLD, and so (unless I'm mistaken) you can't use it as a command-line app (but I've found compiling grammars with it to be very painless, anyway). I *think* ANTLR can be used command-line. (But

Re: Initial release of Goldie: GOLD Parser Engine for D

2009-08-28 Thread Nick Sabalausky
Leandro Lucarella llu...@gmail.com wrote in message news:20090828211541.ga31...@homero.springfield.home... Nick Sabalausky, el 28 de agosto a las 16:47 me escribiste: [Pro ANTLR?] - GOLD's GUI tool *is* GOLD, and so (unless I'm mistaken) you can't use it as a command-line app (but I've found

Re: OT - Which Linux?

2009-08-28 Thread Lars T. Kyllingstad
Paul D. Anderson wrote: Paul D. Anderson Wrote: I'm going to add Linux to my PC to get a dual-boot configuration. (I'm tired of slw start ups and want to tap into the great tools available.) The tutorial I'm looking at suggests Ubuntu. Is there a significant difference in Linux

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Walter Bright
Jeremie Pelletier wrote: Isn't it possible to make 'const ref S' or 'in S' generate the same machine code as 'in S*'? To me it would seem the semantics of the two are the same, with 'const S*' being useful syntax for C compatibility while 'in S' and 'const ref S' are both D syntax. The thing

Re: OT - Which Linux?

2009-08-28 Thread language_fan
Fri, 28 Aug 2009 08:18:57 -0500, Andrei Alexandrescu thusly wrote: Same here! And the step looked unconceivable just a couple months earlier. I remember how a friend who was in the beginning stages of Linux asked me several times and very incredulously: What do you mean you don't have Windows

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread downs
Walter Bright wrote: Jeremie Pelletier wrote: Isn't it possible to make 'const ref S' or 'in S' generate the same machine code as 'in S*'? To me it would seem the semantics of the two are the same, with 'const S*' being useful syntax for C compatibility while 'in S' and 'const ref S' are both

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Jeremie Pelletier
downs Wrote: Walter Bright wrote: Jeremie Pelletier wrote: Isn't it possible to make 'const ref S' or 'in S' generate the same machine code as 'in S*'? To me it would seem the semantics of the two are the same, with 'const S*' being useful syntax for C compatibility while 'in S' and

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Jarrett Billingsley
On Thu, Aug 27, 2009 at 8:17 PM, Walter Brightnewshou...@digitalmars.com wrote: Jeremie Pelletier wrote: Isn't there a way to implement RVO to work on parameters (PVO?) too if the storage is const? No, and it doesn't work for C++ either. Consider: You're addressing the 'const' issue, but

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Walter Bright
Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining. Const aside, why is this so? Because I never updated the inlining code to handle it.

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Jarrett Billingsley
On Fri, Aug 28, 2009 at 4:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining. Const aside, why is this so? Because I never updated

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Walter Bright
Jarrett Billingsley wrote: On Fri, Aug 28, 2009 at 4:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining. Const aside, why is this so?

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Bill Baxter
On Fri, Aug 28, 2009 at 1:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining. Const aside, why is this so? Because I never updated

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Brad Roberts
On Fri, 28 Aug 2009, Bill Baxter wrote: On Fri, Aug 28, 2009 at 1:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining. Const

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Ary Borenszweig
Walter Bright escribió: Jarrett Billingsley wrote: On Fri, Aug 28, 2009 at 4:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining.

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Bill Baxter
On Fri, Aug 28, 2009 at 3:21 PM, Brad Robertsbra...@puremagic.com wrote: On Fri, 28 Aug 2009, Bill Baxter wrote: On Fri, Aug 28, 2009 at 1:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't addressed the

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Bill Baxter
On Fri, Aug 28, 2009 at 5:01 PM, Ary Borenszweiga...@esperanto.org.ar wrote: Walter Bright escribió: Jarrett Billingsley wrote: On Fri, Aug 28, 2009 at 4:20 PM, Walter Brightnewshou...@digitalmars.com wrote: Jarrett Billingsley wrote: You're addressing the 'const' issue, but you haven't

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Walter Bright
Ary Borenszweig wrote: Walter Bright escribió: There are a lot of D specific optimization opportunities that are left undone for now. Why? Which of the thousand things people want done in D should be done first?

Re: Reference value of structs not optimized or inlined?

2009-08-28 Thread Christopher Wright
Walter Bright wrote: Ary Borenszweig wrote: Walter Bright escribió: There are a lot of D specific optimization opportunities that are left undone for now. Why? Which of the thousand things people want done in D should be done first? Those that the askers are willing to implement first,

1.0: Missing libs errors

2009-08-28 Thread jicman
Greetings and salutations. I am trying to compile a program that worked fine with 1.030 and juno 0.5.1, but I am trying to compile with 1.046. I am getting this errors: 17:31:50.57build -I..;c:\dmd\import -version=gui -version=Phobos OpenProjs.d OPTLINK (R) for Win32 Release 8.00.1 Copyright

Re: What time is it?

2009-08-28 Thread Jarrett Billingsley
On Fri, Aug 28, 2009 at 11:03 PM, jicmancabre...@_wrc.xerox.com wrote: Chad J Wrote: Max wrote: Is there any way in Phobos to measure the current time with microsecond accuracy? Max Might I suggest std.perf? I found it here some years ago:

[Issue 3037] Off-by-one error in Stride.length

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3037 --- Comment #2 from Andrei Alexandrescu and...@metalanguage.com 2009-08-27 23:38:34 PDT --- (In reply to comment #1) I fixed length like this: return (_input.length - 1) / _n + 1; Thanks! In fact this doesn't work for _input.length

[Issue 3074] std.conv.to!(string)(int.min)

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3074 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3132] std.string.split should be templated on mutable/const/immutable

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3132 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3148] syntax error using invariant

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3148 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3184] std.algorithm.until should work like find

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3184 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 2987] D2 phobos BigInt opMul doesn't work correctly

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2987 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3189] `std.conv.to` : check for a custom `to` method in classes/structs

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3189 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3195] `std.conv` pureness

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3195 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3199] sort(chain(...)) doesn't work in some cases

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3199 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 2979] Xml tags with only attributes return as without attributes ElementParser.parse

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2979 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3218] Performance of std.xml.encode must be improved

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3218 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3219] Inaccurate std.conv.to!(numeric)(numeric) error messages

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3219 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3225] std.string function name casing

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3225 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3269] New: pure functions silently become nothrow

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3269 Summary: pure functions silently become nothrow Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 3242] splitter does not handle input range made of a unique separator correctly

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3242 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3245] Easy bug fix available for disabled unit test code in std.encoding

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3245 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3249] sort and setIntersection on array of struct or class

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3249 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED