ldc 0.9.1 released

2009-05-27 Thread Christian Kamm
The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements: * lots of bug fixes (http://www.dsource.org/projects/ldc/report/15) * x86-64 support is mature * inline asm improved (we now define D_Inline_Asm) * cross-compilation

Re: ldc 0.9.1 released

2009-05-27 Thread Andrei Alexandrescu
Christian Kamm wrote: The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements: * lots of bug fixes (http://www.dsource.org/projects/ldc/report/15) * x86-64 support is mature * inline asm improved (we now define

Re: QtD 0.2 release announcement.

2009-05-27 Thread David Ferenczi
Great news! Keep up the good work!

Re: ldc 0.9.1 released

2009-05-27 Thread Robert Clipsham
Andrei Alexandrescu wrote: Great! Quick question - are you supporting or considering supporting D2? I looked on the project's home page and couldn't find that information. There's mention of druntime for D2 which makes me hopeful. Thanks, Andrei D2 support in LDC has been started, but it

Re: ldc 0.9.1 released

2009-05-27 Thread Robert Clipsham
Christian Kamm wrote: The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements: * lots of bug fixes (http://www.dsource.org/projects/ldc/report/15) * x86-64 support is mature * inline asm improved (we now define

Re: ldc 0.9.1 released

2009-05-27 Thread Jarrett Billingsley
On Wed, May 27, 2009 at 2:19 PM, Christian Kamm kamm-incasoftw...@removethis.de wrote: The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements:  * lots of bug fixes (http://www.dsource.org/projects/ldc/report/15)  * x86-64

Re: ldc 0.9.1 released

2009-05-27 Thread Frits van Bommel
Robert Clipsham wrote: Andrei Alexandrescu wrote: Great! Quick question - are you supporting or considering supporting D2? I looked on the project's home page and couldn't find that information. There's mention of druntime for D2 which makes me hopeful. Thanks, Andrei D2 support in LDC

Re: ldc 0.9.1 released

2009-05-27 Thread Leandro Lucarella
Christian Kamm, el 27 de mayo a las 20:19 me escribiste: The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements: * lots of bug fixes (http://www.dsource.org/projects/ldc/report/15) * x86-64 support is mature * inline

Re: ldc 0.9.1 released

2009-05-27 Thread Robert Clipsham
bearophile wrote: * turn GC allocations to allocas if possible Phobos1 of DMD too has alloca, so can this optimization be folded in DMD too? I doubt it, these look like LLVM specific optimisations. * simplify or remove certain calls to D runtime functions What calls? Looking at the

Re: ldc 0.9.1 released

2009-05-27 Thread Frits van Bommel
bearophile wrote: Christian Kamm: The release 0.9.1 of LDC, the LLVM based compiler for the D programming language, contains the following major improvements: Very good. I'll try this too. * turn GC allocations to allocas if possible Phobos1 of DMD too has alloca, so can this

Re: ldc 0.9.1 released

2009-05-27 Thread Timo Gransch
First of all: Thanks for your your great work. Unfortunately I still have the debugging problem already described in the debugger group (using the x86-64 build on Ubuntu 9.04). I compile a programm using ldmd -g -debug test.d Then I try to debug using gdb with the D patches: (gdb) list 1

Re: ldc 0.9.1 released

2009-05-27 Thread bearophile
While this code: typedef int Int2 = 2; auto a = cast(int[])(new Int2[1000]); Produces: pushl %esi subl$8, %esp movl$1000, 4(%esp) movl$_D20TypeInfo_ATmain4Int26__initZ, (%esp) xorl%esi, %esi call_d_newarrayiT

Re: ldc 0.9.1 released

2009-05-27 Thread Lutger
Great news, happy to see x86_64 on the feature list :)

Re: ldc 0.9.1 released

2009-05-27 Thread Lutger
Robert Clipsham wrote: ... I actually thought about giving this a try about a week ago. I managed to get all but one file to compile with the current version of the D2 front end (2.021 I believe)... Not bad considering my (lack of) C/C++ knowledge. If there's some interest for it I suppose

Re: ldc 0.9.1 released

2009-05-27 Thread Frits van Bommel
bearophile wrote: Frits van Bommel: Thank you for your answers. This one is only done for certain GC allocations by the way, not all of them. The ones currently implemented are: * new Struct/int/float/etc., * uninitialized arrays (used for arr1 ~ arr2, for instance), * zero-initialized

Re: ldc 0.9.1 released

2009-05-27 Thread Frits van Bommel
bearophile wrote: While this code: typedef int Int2 = 2; auto a = cast(int[])(new Int2[1000]); Produces: pushl %esi subl$8, %esp movl$1000, 4(%esp) movl$_D20TypeInfo_ATmain4Int26__initZ, (%esp) xorl%esi, %esi call

Re: ldc 0.9.1 released

2009-05-27 Thread bearophile
Frits van Bommel: Thanks for your answers (and your work). That's trickier to get right, because the optimizer would have to look ahead to see the new memset call is always followed by the initialization, with no reads in between. I understand, and that may be more complex to do if the

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread Lars T. Kyllingstad
Matt Nawrocki wrote: Hi... are there any IDEs or editors out there that support DMD 2.0 yet? I am having a hard time finding a good one. Thanks! Matt When you say editor that supports D, do you primarily mean syntax highlighting? In that case, there should be plenty, as there really

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread bearophile
Lars T. Kyllingstad: for D2 I only had to add the keywords ref and string to the syntax file. :) You may have to add immutable, nothrow, pure (and maybe const), and be sure invariant and inout are absent. Bye, bearophile

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread Ary Borenszweig
bearophile wrote: Lars T. Kyllingstad: for D2 I only had to add the keywords ref and string to the syntax file. :) You may have to add immutable, nothrow, pure (and maybe const), and be sure invariant and inout are absent. invariant is still used as class invariants. Bye, bearophile

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread Steven Schveighoffer
On Wed, 27 May 2009 10:21:30 -0400, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: Matt Nawrocki wrote: Hi... are there any IDEs or editors out there that support DMD 2.0 yet? I am having a hard time finding a good one. Thanks! Matt When you say editor that supports D, do you

Re: Bartosz Milewski Missing post

2009-05-27 Thread Bartosz Milewski
You pretty much nailed it. The ownership scheme will be explained in more detail in the next two installments, which are almost ready.

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread bearophile
Ary Borenszweig Wrote: invariant is still used as class invariants. Right. __gshared also has to be added. Currently my editor doesn't highlight numbers like 1_2 yet. Bye, bearophile

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread Mike James
Matt Nawrocki Wrote: Hi... are there any IDEs or editors out there that support DMD 2.0 yet? I am having a hard time finding a good one. Thanks! Matt Have at look at Code::Blocks - it works well on Windows and Linux and has support for D1.0 - so I guess that should cover most of D2.0

Re: Bartosz Milewski Missing post

2009-05-27 Thread Tim Matthews
This may seem slightly OT but in your blog I will use syntax similar to that of the D programming language, but C++ and Java programmers shouldn’t have problems following it. class MVarT { private: T_msg; bool _full; public: // put: asynchronous (non-blocking) //

D2 std.conv to D1 please

2009-05-27 Thread Saaa
I've been wanting to write a D-styled data format module but just got extremely discouraged :) Most of the functionality I need for this is already available in D2's std.conv. Is it possible to add this functionality into D1's std.conv?

Re: Any IDEs or editors that are compatible with D 2.0?

2009-05-27 Thread Jussi Jumppanen
Matt Nawrocki Wrote: Hi... are there any IDEs or editors out there that support DMD 2.0 yet? I am having a hard time finding a good one. Thanks! On the Windows platform there is the Zeus editor/IDE: http://www.prowiki.org/wiki4d/wiki.cgi?EditorSupport/ZeusForWindows Zeus is a shareware

Re: Bartosz Milewski Missing post

2009-05-27 Thread Tim Matthews
Jason House wrote: Don't read into it. I took it as being more readable for non-D users. Angle brackets show up in C++ templates, Java generics, and C# generics. IMHO, is more recognizable, even for those that don't code in any of the languages mentioned. D's syntax is good, just not wide

Re: D2 std.conv to D1 please

2009-05-27 Thread Saaa
Have a look at std2. It's a backporting of some features of Phobos 2, including some of the new std.conv, to D1: http://www.dsource.org/projects/std2 Looks nice! Why can't this be in official Phobos1? It's a ploy from the D2 camp, right?

Re: D2 std.conv to D1 please

2009-05-27 Thread Saaa
Why can't this be in official Phobos1? Especially because the documentation gets more and more outdated the further D2 progresses from 2.008 :(

Re: D2 std.conv to D1 please

2009-05-27 Thread Jarrett Billingsley
On Wed, May 27, 2009 at 8:57 PM, Saaa em...@needmail.com wrote: Have a look at std2.  It's a backporting of some features of Phobos 2, including some of the new std.conv, to D1: http://www.dsource.org/projects/std2 Looks nice! Why can't this be in official Phobos1? It's a ploy from the D2

Re: D2 std.conv to D1 please

2009-05-27 Thread Saaa
Why can't this be in official Phobos1? It's a ploy from the D2 camp, right? :) If by ploy you mean Walter's official stance not to change D1 or Phobos 1, then yes, it's a ploy. But that's a bit harsh, no? I fixed it to how I meant it. But I do find it a tad strange. What disadvantage is

how to find stack trace of Error: 4invalid UTF-8 sequence Error: std.format int argument expected?

2009-05-27 Thread nobody
dmd v1.045 on Linux, I got error like: Error: 4invalid UTF-8 sequence Error: std.format int argument expected Then I run the program under debugger, there is no indication where the error occurred: Error: 4invalid UTF-8 sequence Program exited with code 01. (gdb) where No stack. This is

Re: how to find stack trace of Error: 4invalid UTF-8 sequence Error: std.format int argument expected?

2009-05-27 Thread Jarrett Billingsley
On Wed, May 27, 2009 at 11:13 PM, nobody n...@where.com wrote: dmd v1.045 on Linux, I got error like: Error: 4invalid UTF-8 sequence Error: std.format int argument expected Then I run the program under debugger, there is no indication where the error occurred: Error: 4invalid UTF-8

Re: how to find stack trace of Error: 4invalid UTF-8 sequence Error: std.format int argument expected?

2009-05-27 Thread nobody
From what I understand, you can set GDB to break whenever _d_throw is called. I don't know the syntax. Thanks for the hint. I googled it, here's the way to do it: $ objdump -x your.exe | grep throw 0819c1e0 g F .text 0217 _d_th...@4 (gdb) break *0x0819c1e0 Breakpoint 1

Re: how to find stack trace of Error: 4invalid UTF-8 sequence Error: std.format int argument expected?

2009-05-27 Thread Jarrett Billingsley
On Thu, May 28, 2009 at 12:08 AM, nobody n...@where.com wrote: If you don't want to use a debugger, there's always printf/writefln/Stdout debugging. using writefln to find writefln errors? ;-) As long as you don't use invalid UTF-8 data in your debugging statements ;)

Re: Encoding problems...

2009-05-27 Thread Jarrett Billingsley
On Wed, May 27, 2009 at 8:55 PM, Robert Fraser fraseroftheni...@gmail.com wrote: Hi all, Quick question: I want to use some unicode identifiers, but I get unsupported char 0xe2, both with using and not using a BOM. The characters in question are the superset/subset-equals operators: ⊇ and

Re: Encoding problems...

2009-05-27 Thread Robert Fraser
Jarrett Billingsley wrote: On Wed, May 27, 2009 at 8:55 PM, Robert Fraser fraseroftheni...@gmail.com wrote: Hi all, Quick question: I want to use some unicode identifiers, but I get unsupported char 0xe2, both with using and not using a BOM. The characters in question are the

[Issue 3028] New: The D 1.0 Ubuntu .deb file is completely broken

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3028 Summary: The D 1.0 Ubuntu .deb file is completely broken Product: D Version: unspecified Platform: PC URL: http://www.digitalmars.com/d/download.html OS/Version: Linux

[Issue 3028] The D 1.0 Ubuntu .deb file is completely broken

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3028 --- Comment #2 from Vladimir thecybersha...@gmail.com 2009-05-26 23:15:48 PDT --- Oh, and I forgot to mention that dmd.conf is set up incorrectly - there is one ../ too many in the -I path for Phobos. -- Configure issuemail:

[Issue 1459] ICE(cgcs.c) on attempt to set value of non-lvalue return struct

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1459 --- Comment #3 from Don clugd...@yahoo.com.au 2009-05-27 01:39:19 PDT --- That patch was incomplete, we also need to test for delegates. // Revised patch. +Type *tb = e1-type-toBasetype(); + if (type-toBasetype()-ty == Tstruct

[Issue 852] ICE(toir.c) using local class in non-static nested function in nested static function

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=852 --- Comment #5 from Tomas Lindquist Olsen to...@famolsen.dk 2009-05-27 04:46:15 PDT --- Both test cases work correctly in LDC by giving an error: $ ldc foo.d foo.d(5): Error: outer function context of foo.bar is needed to 'new' nested class

[Issue 899] structure field .offsetof property inaccessible in the scope

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=899 Vladimir thecybersha...@gmail.com changed: What|Removed |Added CC||malagan...@yahoo.es

[Issue 852] ICE(toir.c) using local class in non-static nested function in nested static function

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=852 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch

[Issue 3027] object.toString should be const

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3027 Gide Nwawudu g...@nwawudu.com changed: What|Removed |Added CC||g...@nwawudu.com ---

[Issue 2899] Object.toString is not declared const

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2899 Sobirari Muhomori ma...@pochta.ru changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 1824] Object not const correct

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1824 Sobirari Muhomori ma...@pochta.ru changed: What|Removed |Added CC||dav...@126.com

[Issue 1824] Object not const correct

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1824 Sobirari Muhomori ma...@pochta.ru changed: What|Removed |Added CC||somea...@yahoo.com

[Issue 3030] New: wcslen should accept const argument

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3030 Summary: wcslen should accept const argument Product: D Version: 2.030 Platform: All URL: http://dsource.org/projects/druntime/browser/trunk/imp ort/core/stdc/wchar_.d

[Issue 3031] New: scoped static var conflicts while linking

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3031 Summary: scoped static var conflicts while linking Product: D Version: 2.028 Platform: PC OS/Version: Windows Status: NEW Severity: major Priority: P1

[Issue 3032] New: No stack allocation for scope c = new class Object {};

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3032 Summary: No stack allocation for scope c = new class Object {}; Product: D Version: 1.044 Platform: PC OS/Version: Linux Status: NEW Keywords:

[Issue 2774] Functions-as-properties makes it impossible to get the .mangleof a function

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2774 --- Comment #4 from Shin Fujishiro rsi...@gmail.com 2009-05-27 13:23:56 PDT --- (From update of attachment 381) Please insert the following case TOKtype in addition to the patch. It handles Type.mangleof. +Dsymbol *ds = NULL; +

[Issue 2774] Functions-as-properties makes it impossible to get the .mangleof a function

2009-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2774 --- Comment #5 from Jarrett Billingsley jarrett.billings...@gmail.com 2009-05-27 16:05:02 PDT --- You're pretty awesome. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail

Re: [Issue 2095] covariance w/o typechecks = bugs

2009-05-27 Thread bradpiit
There is nothing called a free lunch is this world. If things needed to be resolved then initiative needs a support to be sorted out. a href=http://mls.fastrealestate.netmls/a