"The Case for D" on Ycombinator

2009-10-31 Thread Walter Bright
http://news.ycombinator.com/item?id=911858

Re: "The Case for D" on Ycombinator

2009-10-31 Thread bearophile
Walter Bright Wrote: > http://news.ycombinator.com/item?id=911858 It's an interesting discussion. From it it seems several persons would like a D V.1.5, something intermediate between D1 and D2. Bye, bearophile

Hello World crashes on OS X 10.6.1

2009-10-31 Thread asd
import std.stdio; void main() { writef("Hello world\n"); } dmd -run test.d gives: Process: test [1703] Path:/Users/username/Desktop/test Identifier: test Version: ??? (???) Code Type: X86 (Native) Parent Process: dmd [1698] Date/Time: 2009

Re: Hello World crashes on OS X 10.6.1

2009-10-31 Thread asd
forgot to add it's freshly downloaded dmd v2.035.

Re: Hello World crashes on OS X 10.6.1

2009-10-31 Thread Jason House
It's a known issue. Apple breaks backwards compatibility all the time. Walter hinted that 2.034 would fix the issue, but that didn't come to pass. I don't know if that's from difficulty or shifting priorities. I'm sure a patch would be appreciated ;) asd Wrote: > import std.stdio; > > > void

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread Robert Clipsham
Nick Sabalausky wrote: I'm not sure I see the value in being able to rename that. That's like making sure people can rename "for". I don't either, that's just a nice side effect for people who dislike whatever name is decided on.

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread Max Samukha
On Thu, 29 Oct 2009 16:07:14 -0500, Andrei Alexandrescu wrote: > >Apparently the need was felt strongly enough that a library made it into >Boost that does exactly initialization of collections (and vector in >particular), in spite of being based on a very questionable design >technique - over

Re: "The Case for D" on Ycombinator

2009-10-31 Thread #ponce
> Walter Bright Wrote: > > http://news.ycombinator.com/item?id=911858 Added mandatory C++ attacks and D fanboyism

Re: "The Case for D" on Ycombinator

2009-10-31 Thread Andrei Alexandrescu
#ponce wrote: Walter Bright Wrote: http://news.ycombinator.com/item?id=911858 Added mandatory C++ attacks and D fanboyism I read the exchange just now (nice job ponce) and am a bit surprised how much others know about what I do, e.g how I don't use D. My entire doctoral research is impleme

Re: "The Case for D" on Ycombinator

2009-10-31 Thread bearophile
Andrei Alexandrescu: > I read the exchange just now (nice job ponce) and am a bit surprised how > much others know about what I do, e.g how I don't use D. My entire > doctoral research is implemented in D (to say nothing about phobos). I > haven't used another language extensively for about thr

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread Mike Parker
Andrei Alexandrescu wrote: It's a rough rough draft, but one for the full chapter on arrays, associative arrays, and strings. http://erdani.com/d/thermopylae.pdf Any feedback is welcome. Thanks! Andrei p.28 line 16: >>> symbols in less bits should be >>> symbols in fewer bits

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread bearophile
Max Samukha: > While those are important, I am still not totally convinced that > dynamic arrays initialized from literals occur often in production > code. It remains a matter of opinion. In script-like code literals are common. So when you consider your production code you must count that scri

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread Andrei Alexandrescu
Mike Parker wrote: Andrei Alexandrescu wrote: It's a rough rough draft, but one for the full chapter on arrays, associative arrays, and strings. http://erdani.com/d/thermopylae.pdf Any feedback is welcome. Thanks! Andrei p.28 line 16: >>> symbols in less bits should be >>> symbols in

importing modules with non-identifier names

2009-10-31 Thread Andrei Alexandrescu
Has anyone been irked by this? If you have a module called 5th-element.d there is no way to import that. I don't think it's a major issue, but I'm also seeing it as a limitation that should have a better explanation. One way to circumvent that may be import fifth = "5th-element.d"; i.e., spec

Re: importing modules with non-identifier names

2009-10-31 Thread Adam D. Ruppe
On Sat, Oct 31, 2009 at 12:21:31PM -0500, Andrei Alexandrescu wrote: > Has anyone been irked by this? Yes, quite a bit. I tend to use names-like-this whenever I'm allowed, which includes the filesystem. Of course, it is easy enough to rename the file when doing D. > One way to circumvent that ma

Re: "The Case for D" on Ycombinator

2009-10-31 Thread Moritz Warning
On Sat, 31 Oct 2009 09:50:18 -0500, Andrei Alexandrescu wrote: > #ponce wrote: >>> Walter Bright Wrote: >>> >>> http://news.ycombinator.com/item?id=911858 >> >> Added mandatory C++ attacks and D fanboyism > > I read the exchange just now (nice job ponce) and am a bit surprised how > much others

Re: importing modules with non-identifier names

2009-10-31 Thread bearophile
Andrei Alexandrescu: > Has anyone been irked by this? If you have a module called 5th-element.d > there is no way to import that. I don't think it's a major issue, but > I'm also seeing it as a limitation that should have a better explanation. It's a small limitation, but in practice I don't th

Re: "The Case for D" on Ycombinator

2009-10-31 Thread Andrei Alexandrescu
Moritz Warning wrote: On Sat, 31 Oct 2009 09:50:18 -0500, Andrei Alexandrescu wrote: #ponce wrote: Walter Bright Wrote: http://news.ycombinator.com/item?id=911858 Added mandatory C++ attacks and D fanboyism I read the exchange just now (nice job ponce) and am a bit surprised how much others

Genie language updated

2009-10-31 Thread bearophile
I have shown here a little the Genie language in the past, it' a version of the Vala language with a cleaned up syntax. In the last months they have added several new things, some of them can be interesting for D too. Beside few comments of mine, most of the following text is quoted from this p

Re: "The Case for D" on Ycombinator

2009-10-31 Thread Moritz Warning
On Sat, 31 Oct 2009 13:06:15 -0500, Andrei Alexandrescu wrote: > Moritz Warning wrote: >> On Sat, 31 Oct 2009 09:50:18 -0500, Andrei Alexandrescu wrote: >> >>> #ponce wrote: > Walter Bright Wrote: > > http://news.ycombinator.com/item?id=911858 Added mandatory C++ attacks and D fa

C'tors from templates

2009-10-31 Thread dsimcha
Is there a way to run a class's c'tor on a block of memory from a template function? For example: C newClass(C, CtorArgs...)(CtorArgs args) { // Allocate, initialize. // Want to call the c'tor that takes type CtorArgs. }

Re: "The Case for D" on Ycombinator

2009-10-31 Thread Walter Bright
bearophile wrote: (Time ago I have suggested a "type" type, to replace some functional-style template usage with simpler imperative-style compile time functions, but it was not appreciated. Maybe also because it introduces yet another way to do the same thing, despite it looks like a simpler way)

Re: importing modules with non-identifier names

2009-10-31 Thread Don
Andrei Alexandrescu wrote: Has anyone been irked by this? If you have a module called 5th-element.d there is no way to import that. I don't think it's a major issue, but I'm also seeing it as a limitation that should have a better explanation. One way to circumvent that may be import fifth =

Re: C'tors from templates

2009-10-31 Thread Robert Clipsham
dsimcha wrote: Is there a way to run a class's c'tor on a block of memory from a template function? For example: C newClass(C, CtorArgs...)(CtorArgs args) { // Allocate, initialize. // Want to call the c'tor that takes type CtorArgs. } C newClass(C, CtorArgs...)(CtorArgs args) {

Re: C'tors from templates

2009-10-31 Thread dsimcha
== Quote from Robert Clipsham (rob...@octarineparrot.com)'s article > dsimcha wrote: > > Is there a way to run a class's c'tor on a block of memory from a template > > function? For example: > > > > C newClass(C, CtorArgs...)(CtorArgs args) { > > // Allocate, initialize. > > // Want to cal

Re: C'tors from templates

2009-10-31 Thread grauzone
dsimcha wrote: Is there a way to run a class's c'tor on a block of memory from a template function? For example: C newClass(C, CtorArgs...)(CtorArgs args) { // Allocate, initialize. // Want to call the c'tor that takes type CtorArgs. } Deeply hidden on the Digitalmars homepage, it hin

Re: C'tors from templates

2009-10-31 Thread Robert Clipsham
dsimcha wrote: == Quote from Robert Clipsham (rob...@octarineparrot.com)'s article dsimcha wrote: Is there a way to run a class's c'tor on a block of memory from a template function? For example: C newClass(C, CtorArgs...)(CtorArgs args) { // Allocate, initialize. // Want to call the

Re: C'tors from templates

2009-10-31 Thread dsimcha
== Quote from grauzone (n...@example.net)'s article > dsimcha wrote: > > Is there a way to run a class's c'tor on a block of memory from a template > > function? For example: > > > > C newClass(C, CtorArgs...)(CtorArgs args) { > > // Allocate, initialize. > > // Want to call the c'tor that

Re: importing modules with non-identifier names

2009-10-31 Thread Yigal Chripun
On 31/10/2009 20:58, Don wrote: Andrei Alexandrescu wrote: Has anyone been irked by this? If you have a module called 5th-element.d there is no way to import that. I don't think it's a major issue, but I'm also seeing it as a limitation that should have a better explanation. One way to circumve

Re: C'tors from templates

2009-10-31 Thread dsimcha
== Quote from dsimcha (dsim...@yahoo.com)'s article > == Quote from grauzone (n...@example.net)'s article > > dsimcha wrote: > > > Is there a way to run a class's c'tor on a block of memory from a template > > > function? For example: > > > > > > C newClass(C, CtorArgs...)(CtorArgs args) { > > >

Re: importing modules with non-identifier names

2009-10-31 Thread Yigal Chripun
On 31/10/2009 19:21, Andrei Alexandrescu wrote: Has anyone been irked by this? If you have a module called 5th-element.d there is no way to import that. I don't think it's a major issue, but I'm also seeing it as a limitation that should have a better explanation. One way to circumvent that may

Re: C'tors from templates

2009-10-31 Thread Robert Clipsham
dsimcha wrote: Is there a way to run a class's c'tor on a block of memory from a template function? For example: C newClass(C, CtorArgs...)(CtorArgs args) { // Allocate, initialize. // Want to call the c'tor that takes type CtorArgs. } After reading the ticket you made, I was wonderin

Re: C'tors from templates

2009-10-31 Thread dsimcha
== Quote from Robert Clipsham (rob...@octarineparrot.com)'s article > dsimcha wrote: > > Is there a way to run a class's c'tor on a block of memory from a template > > function? For example: > > > > C newClass(C, CtorArgs...)(CtorArgs args) { > > // Allocate, initialize. > > // Want to cal

Re: C'tors from templates

2009-10-31 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from dsimcha (dsim...@yahoo.com)'s article == Quote from grauzone (n...@example.net)'s article dsimcha wrote: Is there a way to run a class's c'tor on a block of memory from a template function? For example: C newClass(C, CtorArgs...)(CtorArgs args) { // Allocate,

Re: importing modules with non-identifier names

2009-10-31 Thread Andrei Alexandrescu
Yigal Chripun wrote: On 31/10/2009 19:21, Andrei Alexandrescu wrote: Has anyone been irked by this? If you have a module called 5th-element.d there is no way to import that. I don't think it's a major issue, but I'm also seeing it as a limitation that should have a better explanation. One way t

Re: C'tors from templates

2009-10-31 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article > dsimcha wrote: > > == Quote from dsimcha (dsim...@yahoo.com)'s article > >> == Quote from grauzone (n...@example.net)'s article > >>> dsimcha wrote: > Is there a way to run a class's c'tor on a block of memory from a

D2 closure and loop variables

2009-10-31 Thread Adam D. Ruppe
I'm trying to make a delegate thing in a loop and hit something that seemed intuitively wrong. Here's some short code that shows what I mean: === import std.stdio; class A { this(void delegate() _a) { a = _a; } void run() { a(); } private void de

Unofficial wish list status.(Nov 2009)

2009-10-31 Thread 4tuu4k002
Hi This is the monthly status for the unofficial d wish list: http://all-technology.com/eigenpolls/dwishlist/ I am closing this wish list. New requests should be posted to bugzilla on http://d.puremagic.com/issues/ It would be a great help, if you could help move some of the wish list items

Re: importing modules with non-identifier names

2009-10-31 Thread Leandro Lucarella
Andrei Alexandrescu, el 31 de octubre a las 12:21 me escribiste: > Has anyone been irked by this? If you have a module called > 5th-element.d there is no way to import that. I don't think it's a > major issue, but I'm also seeing it as a limitation that should have > a better explanation. > > One

Re: D2 closure and loop variables

2009-10-31 Thread Jason House
Adam D. Ruppe Wrote: > I'm trying to make a delegate thing in a loop and hit something that seemed > intuitively wrong. Here's some short code that shows what I mean: I can confirm that your intuition matches others'. I don't have a link, but I do remember a past discussion about binding where

Re: Unofficial wish list status.(Nov 2009)

2009-10-31 Thread Jason House
Didn't the owner of this lust say he was stopping it? 4tuu4k...@sneakemail.com Wrote: > > Hi > > This is the monthly status for the unofficial d wish list: > http://all-technology.com/eigenpolls/dwishlist/ > > I am closing this wish list. > New requests should be posted to bugzilla on http:/

Another thread on Jarrett's blog post

2009-10-31 Thread Walter Bright
http://www.reddit.com/r/programming/comments/9zqj0/the_state_of_d_programming_is_this_situation/

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread duser4ever
Andrei Alexandrescu Wrote: > It's a rough rough draft, but one for the full chapter on arrays, > associative arrays, and strings. > > http://erdani.com/d/thermopylae.pdf > > Any feedback is welcome. Thanks! > > > Andrei Sure I haven't come across anything that someone else hasn't already poi

Re: Another thread on Jarrett's blog post

2009-10-31 Thread Andrei Alexandrescu
Walter Bright wrote: http://www.reddit.com/r/programming/comments/9zqj0/the_state_of_d_programming_is_this_situation/ Guess I should read before posting... Andrei

blast from the (recent) past

2009-10-31 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/9zqj0/the_state_of_d_programming_is_this_situation/ Also, there's a much less popular discussion about the Thermopylae excerpt: http://www.reddit.com/r/programming/comments/9z41o/andrei_alexandrescus_book_about_the_d_programming/ (I'm not 100% convin

Re: The Thermopylae excerpt of TDPL available online

2009-10-31 Thread Andrei Alexandrescu
duser4ever wrote: Andrei Alexandrescu Wrote: It's a rough rough draft, but one for the full chapter on arrays, associative arrays, and strings. http://erdani.com/d/thermopylae.pdf Any feedback is welcome. Thanks! Andrei Sure I haven't come across anything that someone else hasn't already

Re: Another thread on Jarrett's blog post

2009-10-31 Thread Justin Johansson
Andrei Alexandrescu Wrote: > Walter Bright wrote: > > http://www.reddit.com/r/programming/comments/9zqj0/the_state_of_d_programming_is_this_situation/ > > > > > > Guess I should read before posting... > > Andrei I did an update on NG messages about ten minutes before posting this and I'm su

Re: D2 closure and loop variables

2009-10-31 Thread Robert Jacques
On Sat, 31 Oct 2009 20:52:05 -0400, Adam D. Ruppe wrote: I'm trying to make a delegate thing in a loop and hit something that seemed intuitively wrong. Here's some short code that shows what I mean: === import std.stdio; class A { this(void delegate() _a) { a = _a;

module hijacking

2009-10-31 Thread Andrei Alexandrescu
I ran the following experiment: mkdir deleteme cd deleteme mkdir std touch std/algorithm.d echo 'import std.algorithm; void main(){int a, b;swap(a,b);}' >main.d dmd main The attempt to compile main fails with "undefined identifier swap", which means that the module I defined in the current dire

Add a clean way to exit a process

2009-10-31 Thread Leandro Lucarella
Hi. I won't be very verbose about this because I submitted a bug about it (with a patch): http://d.puremagic.com/issues/show_bug.cgi?id=3462 But I think it might deserve some public discussion too, that's why I'm bringing it here. For the lazy, here is the bug report text: Maybe I'm missing some