www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Cristian Vlasceanu and D for the .NET platform

reply Walter Bright <newshound1 digitalmars.com> writes:
http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasceanu_and_d_for_the_net_platform/
Mar 09 2009
next sibling parent Bill Baxter <wbaxter gmail.com> writes:
--001636417ea76d50ae0464b4e48a
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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 --001636417ea76d50ae0464b4e48a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Mon, Mar 9, 2009 at 12:23 PM, Walter Bright <= span dir=3D"ltr">&lt;<a href=3D"mailto:newshound1 digitalmars.com">newshoun= d1 digitalmars.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot= e" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt = 0.8ex; padding-left: 1ex;"> <a href=3D"http://www.reddit.com/r/d_language/comments/838lf/cristian_vlasc= eanu_and_d_for_the_net_platform/" target=3D"_blank">http://www.reddit.com/r= /d_language/comments/838lf/cristian_vlasceanu_and_d_for_the_net_platform/</= a><br> </blockquote></div><br>I&#39;m hoping this works out, so I can use D in my = new job. :-)<br><br>--bb<br> --001636417ea76d50ae0464b4e48a--
Mar 09 2009
prev sibling next sibling parent reply BCS <ao pathlink.com> writes:
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.
Mar 09 2009
next sibling parent reply grauzone <none example.net> writes:
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.
Mar 09 2009
parent reply bearophile <bearophileHUGS lycos.com> writes:
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
Mar 09 2009
next sibling parent "Nick Sabalausky" <a a.a> writes:
"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.
Mar 09 2009
prev sibling parent Robert Fraser <fraserofthenight gmail.com> writes:
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?
Mar 12 2009
prev sibling parent "Cristian Vlasceanu" <cristian zerobugs.org> writes:
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.

Mar 21 2009
prev sibling parent reply "Tim M" <a b.com> writes:
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?
Mar 09 2009
parent "Cristian Vlasceanu" <cristian zerobugs.org> writes:
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?

Mar 21 2009