Jump to page: 1 24  
Page
Thread overview
DMD now does Dwarf style exception handling!
Jan 02, 2016
Walter Bright
Jan 03, 2016
Jack Stouffer
Jan 03, 2016
Walter Bright
Jan 05, 2016
Temtaime
Jan 05, 2016
Jonathan M Davis
Jan 05, 2016
Walter Bright
Jan 05, 2016
wobbles
Jan 05, 2016
welkam
Jan 05, 2016
welkam
Jan 05, 2016
Jacob Carlborg
Jan 05, 2016
Jacob Carlborg
Jan 05, 2016
Jacob Carlborg
Jan 05, 2016
Walter Bright
Jan 05, 2016
Walter Bright
Jan 05, 2016
Walter Bright
Jan 06, 2016
Walter Bright
Jan 05, 2016
watcher
Jan 05, 2016
Jason Jeffory
Jan 05, 2016
Iain Buclaw
Jan 05, 2016
Walter Bright
Jan 05, 2016
Iain Buclaw
Jan 05, 2016
Jacob Carlborg
Jan 03, 2016
Jonathan M Davis
Jan 03, 2016
Walter Bright
Jan 03, 2016
Jonathan M Davis
Jan 03, 2016
blm768
Jan 05, 2016
Dan Olson
Jan 05, 2016
Walter Bright
Jan 05, 2016
Ilya
January 02, 2016
What I've been working on for the last month or so.

https://github.com/D-Programming-Language/dmd/pull/5324

For Linux 64 anyway. Anyone who wants to do PRs to extend it to Linux 32, OSX and FreeBSD, feel free! Unfortunately, this is of no help with Win64, which uses its own unique system. DMD for Win32 already can catch C++ exceptions, but Win32 is a dead platform.

This is an enabling technology that will confer on D the ability to catch C++ exceptions, which is key to interaction with native C++ libraries.

Next up: actually catching C++ exceptions!

Thanks to everyone who helped out with this.
January 03, 2016
On Saturday, 2 January 2016 at 21:16:38 UTC, Walter Bright wrote:
> What I've been working on for the last month or so.
>
> https://github.com/D-Programming-Language/dmd/pull/5324
>
> For Linux 64 anyway. Anyone who wants to do PRs to extend it to Linux 32, OSX and FreeBSD, feel free! Unfortunately, this is of no help with Win64, which uses its own unique system. DMD for Win32 already can catch C++ exceptions, but Win32 is a dead platform.
>
> This is an enabling technology that will confer on D the ability to catch C++ exceptions, which is key to interaction with native C++ libraries.
>
> Next up: actually catching C++ exceptions!
>
> Thanks to everyone who helped out with this.

Congrats!

What is involved in catching C++ exceptions? Was this the hard part of the whole thing?
January 03, 2016
So, we have ELF binaries and DWARF exceptions. Are we going to get something related to orcs or goblins next? ;)

- Jonathan M Davis
January 02, 2016
On 1/2/2016 5:51 PM, Jonathan M Davis wrote:
> So, we have ELF binaries and DWARF exceptions. Are we going to get something
> related to orcs or goblins next? ;)

Naw, but I am secretly working on the Eye of Sauron.

January 02, 2016
On 1/2/2016 4:17 PM, Jack Stouffer wrote:
> What is involved in catching C++ exceptions? Was this the hard part of the whole
> thing?

DMD doesn't catch them yet. But C++ on Linux throws them in Dwarf format, so supporting that is the first step.
January 03, 2016
On Sunday, 3 January 2016 at 01:51:35 UTC, Jonathan M Davis wrote:
> So, we have ELF binaries and DWARF exceptions. Are we going to get something related to orcs or goblins next? ;)
>
> - Jonathan M Davis

I don't know about that, but with better C++ interop, it might be easier to bind to OGRE. (See http://www.ogre3d.org/)
January 03, 2016
On Sunday, 3 January 2016 at 02:04:40 UTC, Walter Bright wrote:
> On 1/2/2016 5:51 PM, Jonathan M Davis wrote:
>> So, we have ELF binaries and DWARF exceptions. Are we going to get something
>> related to orcs or goblins next? ;)
>
> Naw, but I am secretly working on the Eye of Sauron.

LOL. And wouldn't _that_ show how powerful D is. ;)

- Jonathan M Davis
January 04, 2016
Walter Bright <newshound2@digitalmars.com> writes:

> What I've been working on for the last month or so.
>
> https://github.com/D-Programming-Language/dmd/pull/5324
>
> For Linux 64 anyway. Anyone who wants to do PRs to extend it to Linux 32, OSX and FreeBSD, feel free! Unfortunately, this is of no help with Win64, which uses its own unique system. DMD for Win32 already can catch C++ exceptions, but Win32 is a dead platform.
>
> This is an enabling technology that will confer on D the ability to catch C++ exceptions, which is key to interaction with native C++ libraries.
>
> Next up: actually catching C++ exceptions!
>
> Thanks to everyone who helped out with this.

Very cool.  Is it conceivable that DMD, GDC, and LDC might one day share common support code in druntime (personality, etc)?  Could be many benefits like a larger test population.
-- 
Dan
January 05, 2016
On Sunday, 3 January 2016 at 02:05:38 UTC, Walter Bright wrote:
> On 1/2/2016 4:17 PM, Jack Stouffer wrote:
>> What is involved in catching C++ exceptions? Was this the hard part of the whole
>> thing?
>
> DMD doesn't catch them yet. But C++ on Linux throws them in Dwarf format, so supporting that is the first step.

Useless work.
Almost nobody will throw exceptions from C++ code to D code.
Same old same old : Walter could fix regressions, but instead he found a new nice useless toy to play, and after that, it will be a cause of new regressions.

That's why D is always dead in the water.
January 04, 2016
On 1/4/2016 4:18 PM, Dan Olson wrote:
> Very cool.  Is it conceivable that DMD, GDC, and LDC might one day share
> common support code in druntime (personality, etc)?  Could be many
> benefits like a larger test population.

Probably not the personality routine, though that won't matter.
« First   ‹ Prev
1 2 3 4