Thread overview
druntime
Jan 16, 2009
Hoenir
Jan 16, 2009
torhu
Jan 16, 2009
Hoenir
Jan 16, 2009
Hoenir
Jan 16, 2009
Sean Kelly
Jan 19, 2009
Jason House
Jan 16, 2009
Bill Baxter
January 16, 2009
Are there any information about druntime?
The D2.0 changelog states Phobos was split with v2.020 but there are no information about that for D1.

I'm especially interested in using a library based on Tango while using Phobos in the application itself (e.g. using the new DWT)
January 16, 2009
On 16.01.2009 15:39, Hoenir wrote:
> Are there any information about druntime?
> The D2.0 changelog states Phobos was split with v2.020 but there are no
> information about that for D1.
>
> I'm especially interested in using a library based on Tango while using
> Phobos in the application itself (e.g. using the new DWT)

Druntime is only used for phobos 2 currently, not for 1.  So there won't be any further phobos/tango compatibility until tango is ported to D 2.0.  And then dwt has to be ported too.

The closest you can get is using tangobos, which phobos modified to run on top of tango.  Probably better to just learn tango.
January 16, 2009
torhu schrieb:
> Druntime is only used for phobos 2 currently, not for 1.  So there won't be any further phobos/tango compatibility until tango is ported to D 2.0.  And then dwt has to be ported too.
> 
> The closest you can get is using tangobos, which phobos modified to run on top of tango.  Probably better to just learn tango.

Yeah, officially. But there also is a D1 branch of druntime and there are even build instructions for 1.x.

So why don't they port tango to that D1 version of druntime?
January 16, 2009
"Hoenir" wrote
> torhu schrieb:
>> Druntime is only used for phobos 2 currently, not for 1.  So there won't be any further phobos/tango compatibility until tango is ported to D 2.0. And then dwt has to be ported too.
>>
>> The closest you can get is using tangobos, which phobos modified to run on top of tango.  Probably better to just learn tango.
>
> Yeah, officially. But there also is a D1 branch of druntime and there are even build instructions for 1.x.
>
> So why don't they port tango to that D1 version of druntime?

What is the need?  The very purpose of having druntime in the first place is to have Tango and Phobos share a common runtime.  If Tango is ported to druntime, then Phobos is *still* not compatible because Phobos 1 does not use it.

Tango's runtime is pretty much exactly like druntime anyways, since druntime is a port of Tango's runtime.

The only need I forsee is if the druntime 1.0 branch gets some enhancements that Tango needs to use.

Once Tango for D2 is finished (being worked on, albeit very slowly), then druntime comes into play.

-Steve


January 16, 2009
Steven Schveighoffer schrieb:
>> Yeah, officially. But there also is a D1 branch of druntime and there are even build instructions for 1.x.
>>
>> So why don't they port tango to that D1 version of druntime?
> 
> What is the need?  The very purpose of having druntime in the first place is to have Tango and Phobos share a common runtime.  If Tango is ported to druntime, then Phobos is *still* not compatible because Phobos 1 does not use it.
> 

That's why one needs to rebuild phobos as the guideline states: http://www.dsource.org/projects/druntime/wiki/GettingStarted


> Tango's runtime is pretty much exactly like druntime anyways, since druntime is a port of Tango's runtime.
> 
> The only need I forsee is if the druntime 1.0 branch gets some enhancements that Tango needs to use.
> 
> Once Tango for D2 is finished (being worked on, albeit very slowly), then druntime comes into play.
> 

Any clues when this will be finished?
January 16, 2009
"Hoenir" wrote
> Steven Schveighoffer schrieb:
>>> Yeah, officially. But there also is a D1 branch of druntime and there are even build instructions for 1.x.
>>>
>>> So why don't they port tango to that D1 version of druntime?
>>
>> What is the need?  The very purpose of having druntime in the first place is to have Tango and Phobos share a common runtime.  If Tango is ported to druntime, then Phobos is *still* not compatible because Phobos 1 does not use it.
>>
>
> That's why one needs to rebuild phobos as the guideline states: http://www.dsource.org/projects/druntime/wiki/GettingStarted

That guideline is for D2 phobos only.  D1 phobos would need to be rewritten to use the new runtime, which as far as I know has not been done. (Sean, there probably should be a note stating this, as the doc is slightly ambiguous).

>> Tango's runtime is pretty much exactly like druntime anyways, since druntime is a port of Tango's runtime.
>>
>> The only need I forsee is if the druntime 1.0 branch gets some enhancements that Tango needs to use.
>>
>> Once Tango for D2 is finished (being worked on, albeit very slowly), then druntime comes into play.
>>
>
> Any clues when this will be finished?

When I get some more free time :(  There is a branch that currently builds on Linux with dmd 2.019 (I haven't touched druntime yet, because I was waiting for it to stabilize).  There have been many significant changes to the trunk since that was done, including a major io reorg, so you'd be still dealing with the old source (and possibly old bugs).

-Steve


January 16, 2009
On Sat, Jan 17, 2009 at 12:28 AM, torhu <no@spam.invalid> wrote:
> On 16.01.2009 15:39, Hoenir wrote:
>>
>> Are there any information about druntime?
>> The D2.0 changelog states Phobos was split with v2.020 but there are no
>> information about that for D1.
>>
>> I'm especially interested in using a library based on Tango while using Phobos in the application itself (e.g. using the new DWT)
>
> Druntime is only used for phobos 2 currently, not for 1.  So there won't be any further phobos/tango compatibility until tango is ported to D 2.0.  And then dwt has to be ported too.
>
> The closest you can get is using tangobos, which phobos modified to run on top of tango.  Probably better to just learn tango.
>

The Tangobos + Tango combo works just fine.  I use it all the time.

--bb
January 16, 2009
Steven Schveighoffer wrote:
> "Hoenir" wrote
>> Steven Schveighoffer schrieb:
>>>> Yeah, officially. But there also is a D1 branch of druntime and there are even build instructions for 1.x.
>>>>
>>>> So why don't they port tango to that D1 version of druntime?
>>> What is the need?  The very purpose of having druntime in the first place is to have Tango and Phobos share a common runtime.  If Tango is ported to druntime, then Phobos is *still* not compatible because Phobos 1 does not use it.
>>>
>> That's why one needs to rebuild phobos as the guideline states: http://www.dsource.org/projects/druntime/wiki/GettingStarted
> 
> That guideline is for D2 phobos only.  D1 phobos would need to be rewritten to use the new runtime, which as far as I know has not been done. (Sean, there probably should be a note stating this, as the doc is slightly ambiguous).

Yup.  The rewrite would essentially be Tangobos anyway.  I'll clarify the doc.


Sean
January 19, 2009
Steven Schveighoffer wrote:

> "Hoenir" wrote
>> So why don't they port tango to that D1 version of druntime?
> 
> What is the need?

I can only think of one reason: When porting Tango to D2, it'll be one less thing to do.