D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread Walter Bright

http://ftp.digitalmars.com/dmd1beta.zip

Mainly for those daring folks who want to help develop it further:

$(LI 80 bit reals are truncated to 64 bits when formatting.)
$(LI Many math functions are not implemented.)
$(LI No symbolic debug info is generated.)
$(LI Cannot catch Win64 structured exception handling exceptions.)
$(LI VS debugger cannot look at call stack.)
$(LI No DLL support.)
$(LI Only tested with VS 2010.)
$(LI No installer.)

My plan going forward is to now switch to bringing D2 up to this state.

Help, of course, is appreciated in addressing the shortcomings above. The math 
problems are due to reliance on the C standard library, and VC is both missing 
many C99 functions, and of course has no 80 bit support.


We'll have to roll our own.

The call stack problem is because the VC 64 bit ABI does not use a standard 
stack layout, so it cannot walk the stack. dmd uses the stack layout used on 
every other D port, which VC doesn't recognize. Eventually, this will have to 
get fixed. Frankly, not being able to look at the call stack in the debugger is 
quite a nuisance.


DLL support is probably straightforward.

I haven't looked at the symbolic debug info format.

I've been folding the changes into the D2 compiler as I've gone along, so that 
will hopefully mostly work out of the box. I have only done some of the library 
work for D2. Essentially I gotta go through the commit history on Phobos1 and 
fold it all into Druntime/Phobos2.


D will probably not bother with the 64 bit SEH.


Re: D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread Andrej Mitrovic
On 9/27/12, Walter Bright newshou...@digitalmars.com wrote:
 D will probably not bother with the 64 bit SEH.

How come, and what will be the consequences of this?

Anyway great work so far!


Re: D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread Jacob Carlborg

On 2012-09-27 15:42, Andrej Mitrovic wrote:

On 9/27/12, Walter Bright newshou...@digitalmars.com wrote:

D will probably not bother with the 64 bit SEH.


How come, and what will be the consequences of this?

Anyway great work so far!


What he said. What about this:

http://msdn.microsoft.com/en-us/library/1eyas8tf.aspx

Not SEH?

--
/Jacob Carlborg


Re: D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread David Nadlinger
On Thursday, 27 September 2012 at 15:00:23 UTC, Jacob Carlborg 
wrote:

On 2012-09-27 15:42, Andrej Mitrovic wrote:

On 9/27/12, Walter Bright newshou...@digitalmars.com wrote:

D will probably not bother with the 64 bit SEH.


How come, and what will be the consequences of this?

Anyway great work so far!


What he said. What about this:

http://msdn.microsoft.com/en-us/library/1eyas8tf.aspx

Not SEH?


This _is_ the 64 bit SEH implementation (although it is 
table-based instead of relying on setup in the function 
prologues, like on 32 bit Windows).


Walter seems to imply that he will roll/port his own EH mechanism?

David


Re: GtkD 2.0 released, Gtk+ 3 with D.

2012-09-27 Thread Mike Wey

On 09/26/2012 08:49 PM, Mike James wrote:

Mike Wey  wrote in message news:k2isv4$2r67$1...@digitalmars.com...
GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL
license.

With 2.0 GtkD will wrap Gtk+ version 3, if you need Gtk+ 2 you can use
the latest version from the Gtk2 branch, version 1.6.

GtkD 2.0 and 1.6 are now available on GitHub:
https://github.com/gtkd-developers/GtkD/downloads

--
Mike Wey



Hi,

I tried the install detailed on the github page and got the following
error:


C:\D\dmd2\gtkD2\srcdgen
build\gtkD.d(612): Error: module SourceBuffer is in file
'gsv\SourceBuffer.d' wh
ich cannot be read
import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos
import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import


Any clues as to the problem/solution?

Regards, Mike.



It looks like the dgen script posted on the wiki was never properly 
tested. for now you can remove src/build/GtkD.d it's only there for 
compiling with build/bud.


--
Mike Wey


Re: D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread Mike Wey

On 09/27/2012 01:56 PM, bearophile wrote:

Walter Bright:


http://ftp.digitalmars.com/dmd1beta.zip


How do I switch from producing a 32 bit to 64 binary? I am looking for a
-b64 or -b32 or similar switch...

Bye,
bearophile


-m32 and -m64 ? i'ts what dmd uses on linux.

--
Mike Wey


Re: D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread bearophile

Mike Wey:


-m32 and -m64 ? i'ts what dmd uses on linux.


Are those usable on DMD-Windows64 too?

Bye,
bearophile


Re: D 1.076 Alpha for Windows 64 bits, works with VS 2010

2012-09-27 Thread Walter Bright

On 9/27/2012 4:56 AM, bearophile wrote:

How do I switch from producing a 32 bit to 64 binary?


-m64


glfw3 deimos bindings

2012-09-27 Thread David
I made glfw3 bindings (translated the C headers to D): 
https://github.com/Dav1dde/glfw3


Can someone make a deimos repo?


Re: I'll be at GOTO in Denmark

2012-09-27 Thread Walter Bright

Sure, why not?

On 8/31/2012 11:47 AM, Knud Soerensen wrote:

Super, the same night the local hacker space (osaa.dk) makes Tech Talk
Tuesday. Which consider of short talks (15-30 min.) with technical
focus. I was woundering if you would consider giving a short talk about D.

Love
  Knud


On 2012-08-03 23:08, Walter Bright wrote:

talking about Component Programming in D on Oct. 2.

http://gotocon.com/aarhus-2012/schedule/tuesday.jsp

See you there!