Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 09, 2009 Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_and_d_for_the_net_platform/ |
March 09, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright Attachments:
| On Mon, Mar 9, 2009 at 12:23 PM, Walter Bright <newshound1@digitalmars.com>wrote: > > http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_and_d_for_the_net_platform/ > I'm hoping this works out, so I can use D in my new job. :-) --bb |
March 09, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Reply to Walter,
> http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_a
> nd_d_for_the_net_platform/
>
His comments on array slicing are interesting.
Seems to me the solution should be to have *all* dynamic arrays be ArraySegment as all dynamic arrays under DMD are a slices of the full memory space.
|
March 09, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote:
> Reply to Walter,
>
>> http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_a
>> nd_d_for_the_net_platform/
>>
>
> His comments on array slicing are interesting.
>
> Seems to me the solution should be to have *all* dynamic arrays be ArraySegment as all dynamic arrays under DMD are a slices of the full memory space.
Whatever happened to T[new]. Seems The Gods prefer having something like an "array builder" struct, and leave slices unchanged. Or maybe they'll remove the ability to increase the length of a slice.
|
March 10, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to grauzone | grauzone:
> Seems The Gods prefer having something like [...]<
Don't you see that what you say is negative? What you say lowers the mood of people, makes them nervous. What you say is worse than useless, has a net negative value.
So I suggest you to change and try to build something, to add value instead of trying to remove value from the group of people and their work. Otherwise it may be better for you to find other ways to use your time.
Bye,
bearophile
|
March 10, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | "bearophile" <bearophileHUGS@lycos.com> wrote in message news:gp4dak$1b21$1@digitalmars.com... > grauzone: >> Seems The Gods prefer having something like [...]< > > Don't you see that what you say is negative? What you say lowers the mood > of people, makes them nervous. What you say is worse than useless, has a > net negative value. > So I suggest you to change and try to build something, to add value > instead of trying to remove value from the group of people and their work. > Otherwise it may be better for you to find other ways to use your time. > *shrug* It seemed like an innocent enough comment to me. |
March 10, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Tue, 10 Mar 2009 08:23:08 +1300, Walter Bright <newshound1@digitalmars.com> wrote:
> http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_and_d_for_the_net_platform/
I've been looking at that blog on and off a few times but I have missed a few posts. Has there ever been a beta?
|
March 12, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | bearophile wrote:
> grauzone:
>> Seems The Gods prefer having something like [...]<
>
> Don't you see that what you say is negative? What you say lowers the mood of people, makes them nervous. What you say is worse than useless, has a net negative value.
> So I suggest you to change and try to build something, to add value instead of trying to remove value from the group of people and their work. Otherwise it may be better for you to find other ways to use your time.
>
> Bye,
> bearophile
I read it as a positive comment. T[new] is cool, but it adds complexity to the type system and breaks backwards compatibility, so perhaps grauzone was saying he prefers one of those solutions?
|
March 21, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim M | There is still a long way before we can release a beta, but if you're curious you are welcome to take a look: svn://216.154.214.180:8080/d.net/trunk/dnet I am thinking about moving the project off my private server to CodePlex one of these days... Cheers, Cristian "Tim M" <a@b.com> wrote in message news:op.uqj8yfqdjdp9fl@tim-laptop... > On Tue, 10 Mar 2009 08:23:08 +1300, Walter Bright <newshound1@digitalmars.com> wrote: > >> http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_and_d_for_the_net_platform/ > > I've been looking at that blog on and off a few times but I have missed a few posts. Has there ever been a beta? > |
March 21, 2009 Re: Cristian Vlasceanu and D for the .NET platform | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | Using ArraySegment's under the hood is kind of is what I am doing now; one interesting edge case is when you want to call functions written in other .NET languages (one main idea behind this project is to allow interoperability between D and other languages, and leverage existing frameworks rather than reinvent the wheel). If you pass a slice to a "foreign" function that mutates elements in the array, it will not work as expected, because non-D code has no knowledge of slices. The work-around is to construct a temporary array out of the slice, but any changes that the called function makes to that temp array will be lost. This can be remedied by having the compiler generate post-call code that commits the changes back into the original array. It may work but is not efficient. Currently I content myself with just issuing a compiler warning / error when such a situation is detected. Cheers, Cristian "BCS" <ao@pathlink.com> wrote in message news:78ccfa2d3bc0a8cb6ed48908f778@news.digitalmars.com... > Reply to Walter, > >> http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_a nd_d_for_the_net_platform/ >> > > His comments on array slicing are interesting. > > Seems to me the solution should be to have *all* dynamic arrays be ArraySegment as all dynamic arrays under DMD are a slices of the full memory space. > > |
Copyright © 1999-2021 by the D Language Foundation