Re: I wish I could use D for everything

2009-05-05 Thread Daniel de Kok
On Fri, May 1, 2009 at 12:56 AM, Robert Fraser wrote: > bearophile wrote: >> >> But today most people use languages like Java, Python, C#, that often >> shorten developing time even more than D1. >> D1 is almost a system language, so it's not easy to compete with the >> productivity of application

Re: I wish I could use D for everything

2009-05-02 Thread BCS
Hello Unknown, So, really, all you want is a Visual Studio Language Service. Jump to definition and syntax highlighting are relatively easy. Refactoring is a bit more complex, and autocomplete is probably the most complicated (to get right.) Yah, I just want the hard stuff. (go figure :-)

Re: I wish I could use D for everything

2009-05-02 Thread Simen Kjaeraas
Daniel Keep wrote: What I want to know is why people quote multi-page messages only to add a single line to the bottom that's only tangentially related to the message they're responding to. -- Daniel Or those people who post a single line at the beginning, then a wall of quoted text, leavi

Re: I wish I could use D for everything

2009-05-02 Thread Benji Smith
Brad Roberts wrote: I'm going to play devils advocate too... struct ctor/dtor's are simplifiers. They remove a hard to explain difference and aren't even a little bit hard to understand. Ideally, that would be true. But there are some wonky rules abound struct ctors, static opCall, and stru

Re: I wish I could use D for everything

2009-05-01 Thread Derek Parnell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Fri, 01 May 2009 06:16:28 +0200, grauzone wrote: > By the way, why do people feel the need to "sign" their posts, even > though the news protocol already provides a "From: " field, that not > only makes the signature redundant, but is also be

Re: I wish I could use D for everything

2009-05-01 Thread Steve Teale
Paul D. Anderson Wrote: > I've had a painful couple of days myself. > > I've been coding in Java for the last several years, but am now working on a > project in C++. It had been a while (8 years?) since I did any serious C++ > work and I didn't do much then. So I bought a copy of "C++ for Java

Re: I wish I could use D for everything

2009-05-01 Thread Unknown W. Brackets
That's true, but there wasn't a lot of second-round design benefit here. It was pretty much the same specs sent to both people. The Java programmer continued to try to fix the crashing bugs, which were really a design issue and not anything to do with scoping. We used a contractor for both,

Re: I wish I could use D for everything

2009-05-01 Thread Andrei Alexandrescu
Walter Bright wrote: Any fool can design something complicated. Genius is in finding the underlying simplicity. For example, in C++, function overloading is done with a very complicated set of rules and a mass of special cases. But C++ function template overloading is done with one simple rule:

Re: I wish I could use D for everything

2009-05-01 Thread Andrei Alexandrescu
Daniel Keep wrote: grauzone wrote: By the way, why do people feel the need to "sign" their posts, even though the news protocol already provides a "From: " field, that not only makes the signature redundant, but is also better to spot, is recognized by the news readers, and usually provides more

Re: I wish I could use D for everything

2009-05-01 Thread Steven Schveighoffer
On Thu, 30 Apr 2009 18:46:47 -0400, Robert Fraser wrote: Steven Schveighoffer wrote: Yes, I use reflection in some of my code, and it definitely has to come to D sometime. At least if I wanted to port my current project to D it would have to ;) It's in D, just not standardized. There u

Re: I wish I could use D for everything

2009-05-01 Thread Christopher Wright
dsimcha wrote: == Quote from Brad Roberts (bra...@puremagic.com)'s article dsimcha wrote: D2 is a complex language, but it's not complex in a haphazard way. It's complex because it statically proves stuff about your code (const, etc), and allows extremely powerful, generic user-defined types

Re: I wish I could use D for everything

2009-05-01 Thread Christopher Wright
Derek Parnell wrote: On Thu, 30 Apr 2009 13:23:52 -0400, superdan wrote: (actually who cares what he wrote ...) "superdan", when you grow up I'm certain that you will be an important person. I just hope we don't have to wait too long. On those occasions on which I've read a post by superdan,

Re: I wish I could use D for everything

2009-04-30 Thread Jesse Phillips
On Fri, 01 May 2009 15:15:25 +1000, Daniel Keep wrote: > What I want to know is why people quote multi-page messages only to add > a single line to the bottom that's only tangentially related to the > message they're responding to. > > -- Daniel For me it has been that quoted text is hidden, a

Re: I wish I could use D for everything

2009-04-30 Thread Jesse Phillips
On Thu, 30 Apr 2009 21:20:17 -0700, Brad Roberts wrote: > dsimcha wrote: >> == Quote from Brad Roberts (bra...@puremagic.com)'s article >>> dsimcha wrote: D2 is a complex language, but it's not complex in a haphazard way. It's complex because it statically proves stuff about your

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
dsimcha wrote: On the other hand, I do see a pattern here: Most of these features are things you only need to care about if you're writing near the tip of the pyramid, stuff like generic, reusable code. In fact, I've realized that my mindset when coding in D is completely different when worki

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
Brad Roberts wrote: D1 receives a steady stream of bug fixes every few weeks based on some combination of user feedback and Walter's whims. Lately I've also been getting a stream of patches to fix them, too!

Re: I wish I could use D for everything

2009-04-30 Thread Paul D. Anderson
I've had a painful couple of days myself. I've been coding in Java for the last several years, but am now working on a project in C++. It had been a while (8 years?) since I did any serious C++ work and I didn't do much then. So I bought a copy of "C++ for Java Programmers" and got stuck in. Mo

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
dsimcha wrote: To me a fair assessment of whether a complex feature belongs in a language is the following: Given the target audience, will the average person save more time by using the new feature than he/she spends learning it? Not a bad definition. The assumption here is that you will

Re: I wish I could use D for everything

2009-04-30 Thread Brad Roberts
Don't discount the major advantage of being a second round design and implementation as well. I'm sure you learned a lot in the first iteration that fed directly into not making the same set of mistakes again. Not that D isn't the better language, but there's so many variables in situations like

Re: I wish I could use D for everything

2009-04-30 Thread Unknown W. Brackets
For another real world example, we had a server daemon written in Java and it took forever, had huge problems, cost us quite a bit, etc. etc. We decided to have the same server rewritten in D, and it took significantly less time, works correctly according to spec, doesn't crash/hang half as of

Re: I wish I could use D for everything

2009-04-30 Thread Daniel Keep
grauzone wrote: > I'm using D1, but it's a bug rollercoaster. I'm claiming what D needs is > not new spiffy features, that solve all currently known problems of the > computer science world, but a rock stable toolchain. Would be nice, yes. That said, we've got buildable source for DMD now, so mo

Re: I wish I could use D for everything

2009-04-30 Thread Unknown W. Brackets
So, really, all you want is a Visual Studio Language Service. Jump to definition and syntax highlighting are relatively easy. Refactoring is a bit more complex, and autocomplete is probably the most complicated (to get right.) It's really not impossible to write your own language service, and

Re: I wish I could use D for everything

2009-04-30 Thread grauzone
Brad Roberts wrote: grauzone wrote: Daniel Keep wrote: Christopher Wright wrote: Andrei Alexandrescu wrote: There have been quite a few bugs in the I/O functions because the infrastructure underneath them has gone through a few major revisions. As Don said, D2 is an alpha and it cannot be hel

Re: I wish I could use D for everything

2009-04-30 Thread Brad Roberts
grauzone wrote: > Daniel Keep wrote: >> >> Christopher Wright wrote: >>> Andrei Alexandrescu wrote: There have been quite a few bugs in the I/O functions because the infrastructure underneath them has gone through a few major revisions. As Don said, D2 is an alpha and it cannot be he

Re: I wish I could use D for everything

2009-04-30 Thread Brad Roberts
dsimcha wrote: > == Quote from Brad Roberts (bra...@puremagic.com)'s article >> dsimcha wrote: >>> D2 is a complex language, but it's not complex in a haphazard way. It's >>> complex >>> because it statically proves stuff about your code (const, etc), and allows >>> extremely powerful, generic u

Re: I wish I could use D for everything

2009-04-30 Thread grauzone
Daniel Keep wrote: Christopher Wright wrote: Andrei Alexandrescu wrote: There have been quite a few bugs in the I/O functions because the infrastructure underneath them has gone through a few major revisions. As Don said, D2 is an alpha and it cannot be held to the stability standards of a fin

Re: I wish I could use D for everything

2009-04-30 Thread dsimcha
== Quote from Brad Roberts (bra...@puremagic.com)'s article > dsimcha wrote: > > D2 is a complex language, but it's not complex in a haphazard way. It's > > complex > > because it statically proves stuff about your code (const, etc), and allows > > extremely powerful, generic user-defined types.

Re: I wish I could use D for everything

2009-04-30 Thread Brad Roberts
dsimcha wrote: > D2 is a complex language, but it's not complex in a haphazard way. It's > complex > because it statically proves stuff about your code (const, etc), and allows > extremely powerful, generic user-defined types. These are the kinds of things > that most people only dream about.

Re: I wish I could use D for everything

2009-04-30 Thread superdan
Derek Parnell Wrote: > On Thu, 30 Apr 2009 13:23:52 -0400, superdan wrote: > (actually who cares what he wrote ...) > > "superdan", when you grow up I'm certain that you will be an important > person. I just hope we don't have to wait too long. > > -- > Derek Parnell > Melbourne, Australia >

Re: I wish I could use D for everything

2009-04-30 Thread dsimcha
== Quote from Walter Bright (newshou...@digitalmars.com)'s article > bearophile wrote: > > D doesn't reduce training time compared to Java because I think you > > need more time to learn D compared to learning Java, because Java is > > simpler (and at the university they teach Java, so you are like

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
bearophile wrote: D doesn't reduce training time compared to Java because I think you need more time to learn D compared to learning Java, because Java is simpler (and at the university they teach Java, so you are likely to find/hire a person that already knows Java, but this is partially beside

Re: I wish I could use D for everything

2009-04-30 Thread Daniel Keep
Christopher Wright wrote: > Andrei Alexandrescu wrote: >> There have been quite a few bugs in the I/O functions because the >> infrastructure underneath them has gone through a few major revisions. >> As Don said, D2 is an alpha and it cannot be held to the stability >> standards of a finished pr

Re: I wish I could use D for everything

2009-04-30 Thread Christopher Wright
Robert Fraser wrote: Christopher Wright wrote: - a mock object library that doesn't force me to gouge my eyes out (which I could probably do by now) - an ORM library comparable to NHibernate http://www.dsource.org/projects/dmocks Not sure if the Sleeper is "comparable to NHibernate", but m

Re: I wish I could use D for everything

2009-04-30 Thread Christopher Wright
Andrei Alexandrescu wrote: There have been quite a few bugs in the I/O functions because the infrastructure underneath them has gone through a few major revisions. As Don said, D2 is an alpha and it cannot be held to the stability standards of a finished product. Then I should wait a few revi

Re: I wish I could use D for everything

2009-04-30 Thread bearophile
This is a post of mostly chat. If you have better things to do you can ignore it. Walter Bright: > I've tried to program in Java. It takes me considerably more time to get > things done in it. That time is lost writing much more code because it > is a less expressive language. I agree that D i

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
BCS wrote: auto compleat, syntax highlighting, jump to definition, re factoring, etc. ? Ask Cristi for a more definitive answer.

Re: I wish I could use D for everything

2009-04-30 Thread BCS
Hello Walter, BCS wrote: Reply to Walter, BCS wrote: OTOH, Yah, I'd love to have D as my dev language, but I'd need the tool chain from c#. Check out Cristi's alpha version of D.net! I don't care a wit what it runs on. If anything I prefer not running on the CLR. It's the tools that ar

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
Lutger wrote: I'm quite sure Walter does not prefer printf. He uses it to not depend on a working phobos for 'printf' debugging. Back in the early days of my C compiler, when printf wasn't working I had to resort to putchar .

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
Steve Teale wrote: Sadly, in the absence of decent development tools for D, many of us depend on a plain old editor, and writefln() for debugging. I notice that in Phobos, Walter tends to prefer printf(...) - go figure! I tend to use printf for debugging because writefln requires a lot of the

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
bearophile wrote: Walter Bright: D aims to reduce project costs by reducing training time and shortening development time.< I agree that this is very important. Helping the programmer avoid bugs and helping her to follow good design practices are among the most important qualities of a program

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
Don wrote: The latest D2 Phobos is practically an alpha release. Only a couple of weeks ago, it wouldn't compile on any extant compiler! There's just no way that you'll get reduced project costs while using an alpha release. I think it's also important to distinguish a language design issue th

Re: I wish I could use D for everything

2009-04-30 Thread Derek Parnell
On Thu, 30 Apr 2009 13:23:52 -0400, superdan wrote: (actually who cares what he wrote ...) "superdan", when you grow up I'm certain that you will be an important person. I just hope we don't have to wait too long. -- Derek Parnell Melbourne, Australia skype: derek.j.parnell

Re: I wish I could use D for everything

2009-04-30 Thread Robert Fraser
Christopher Wright wrote: - a mock object library that doesn't force me to gouge my eyes out (which I could probably do by now) - an ORM library comparable to NHibernate http://www.dsource.org/projects/dmocks Not sure if the Sleeper is "comparable to NHibernate", but my eyes are perfectly

Re: I wish I could use D for everything

2009-04-30 Thread Robert Fraser
bearophile wrote: But today most people use languages like Java, Python, C#, that often shorten developing time even more than D1. D1 is almost a system language, so it's not easy to compete with the productivity of application languages designed to put the programmer first and the CPU second.

Re: I wish I could use D for everything

2009-04-30 Thread Robert Fraser
Steven Schveighoffer wrote: Yes, I use reflection in some of my code, and it definitely has to come to D sometime. At least if I wanted to port my current project to D it would have to ;) It's in D, just not standardized. There used to be a project "flectioned" by Thomas Khune that allowed r

Re: I wish I could use D for everything

2009-04-30 Thread Walter Bright
BCS wrote: Reply to Walter, BCS wrote: OTOH, Yah, I'd love to have D as my dev language, but I'd need the tool chain from c#. Check out Cristi's alpha version of D.net! I don't care a wit what it runs on. If anything I prefer not running on the CLR. It's the tools that are the hangup.

Re: I wish I could use D for everything

2009-04-30 Thread BCS
Reply to Walter, BCS wrote: OTOH, Yah, I'd love to have D as my dev language, but I'd need the tool chain from c#. Check out Cristi's alpha version of D.net! I don't care a wit what it runs on. If anything I prefer not running on the CLR. It's the tools that are the hangup.

Re: I wish I could use D for everything

2009-04-30 Thread superdan
Steve Teale Wrote: > superdan Wrote: > > > Steve Teale Wrote: > > > > > Jason House Wrote: > > > > > > > Walter Bright Wrote: > > > > > > > > > D aims to reduce project costs by reducing training time and > > > > > shortening > > > > > development time. > > > > > > > > It really hasn't wor

Re: I wish I could use D for everything

2009-04-30 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s > One thing I've always admired about Walter is his willingness and > capacity to learn new things. He once told me something that surprised > me - that he believes many language designers don't get the power of > templates. They w

Re: I wish I could use D for everything

2009-04-30 Thread Steve Teale
superdan Wrote: > Steve Teale Wrote: > > > Jason House Wrote: > > > > > Walter Bright Wrote: > > > > > > > D aims to reduce project costs by reducing training time and shortening > > > > development time. > > > > > > It really hasn't worked out that way for me with D2. Here's an example > >

Re: I wish I could use D for everything

2009-04-30 Thread Andrei Alexandrescu
Steve Teale wrote: Jason House Wrote: Walter Bright Wrote: D aims to reduce project costs by reducing training time and shortening development time. It really hasn't worked out that way for me with D2. Here's an example from yesterday: I picked up where I left off with creating a weak ref l

Re: I wish I could use D for everything

2009-04-30 Thread Lutger
Steve Teale wrote: ... > Sadly, in the absence of decent development tools for D, many of us depend on a plain old editor, and writefln() for debugging. I notice that in Phobos, Walter tends to prefer printf(...) - go figure! I'm quite sure Walter does not prefer printf. He uses it to not depen

Re: I wish I could use D for everything

2009-04-30 Thread superdan
Steve Teale Wrote: > Jason House Wrote: > > > Walter Bright Wrote: > > > > > D aims to reduce project costs by reducing training time and shortening > > > development time. > > > > It really hasn't worked out that way for me with D2. Here's an example from > > yesterday: > > > > I picked up

Re: I wish I could use D for everything

2009-04-30 Thread Steve Teale
Jason House Wrote: > Walter Bright Wrote: > > > D aims to reduce project costs by reducing training time and shortening > > development time. > > It really hasn't worked out that way for me with D2. Here's an example from > yesterday: > > I picked up where I left off with creating a weak ref

Re: I wish I could use D for everything

2009-04-30 Thread Steve Teale
bearophile Wrote: > Walter Bright: > >D aims to reduce project costs by reducing training time and shortening > >development time.< > > I agree that this is very important. Helping the programmer avoid bugs and > helping her to follow good design practices are among the most important > qualit

Re: I wish I could use D for everything

2009-04-30 Thread Don
Jason House wrote: Walter Bright Wrote: D aims to reduce project costs by reducing training time and shortening development time. It really hasn't worked out that way for me with D2. Here's an example from yesterday: I picked up where I left off with creating a weak ref library, something

Re: I wish I could use D for everything

2009-04-30 Thread Jason House
Walter Bright Wrote: > D aims to reduce project costs by reducing training time and shortening > development time. It really hasn't worked out that way for me with D2. Here's an example from yesterday: I picked up where I left off with creating a weak ref library, something most other GC'd l

Re: I wish I could use D for everything

2009-04-30 Thread Steven Schveighoffer
On Thu, 30 Apr 2009 06:50:12 -0400, Christopher Wright wrote: Steven Schveighoffer wrote: I can't wait for D to take over the world, so I no longer have to write in this horrid language ;) C# is pretty reasonable. I see a fair number of things in recent versions that have been in D for

Re: I wish I could use D for everything

2009-04-30 Thread bearophile
Walter Bright: >D aims to reduce project costs by reducing training time and shortening >development time.< I agree that this is very important. Helping the programmer avoid bugs and helping her to follow good design practices are among the most important qualities of a programming language, be

Re: I wish I could use D for everything

2009-04-30 Thread Christopher Wright
Unknown W. Brackets wrote: I'm lucky, I'm a technical lead/manager at work, so I get to say "for this project, we're using D." And then it happens. Muhahaha. We're a small shop but I enjoy my small amount of power. I could do that, but D is lacking essentials for me: - a message bus that i

Re: I wish I could use D for everything

2009-04-30 Thread Christopher Wright
Steven Schveighoffer wrote: I can't wait for D to take over the world, so I no longer have to write in this horrid language ;) C# is pretty reasonable. I see a fair number of things in recent versions that have been in D for a while, and some other vaguely neat things that D doesn't have on o

Re: I wish I could use D for everything

2009-04-29 Thread Unknown W. Brackets
Yep. D does a good job of that. One project we ended up walking away having completed the project in 1/5th the estimated hours (we use a blended rate, so in the end, hours are all we care about) that was partially in D. It just takes people realizing this. And, some libraries will come from

Re: I wish I could use D for everything

2009-04-29 Thread Walter Bright
Unknown W. Brackets wrote: I know other managers at my company have no problem with it, as long as we can find other people who know the language it's less expensive to use D. That's really the most important thing. You nailed the bottom line - total cost of a project. D aims to reduce proj

Re: I wish I could use D for everything

2009-04-29 Thread Walter Bright
BCS wrote: OTOH, Yah, I'd love to have D as my dev language, but I'd need the tool chain from c#. Check out Cristi's alpha version of D.net!

Re: I wish I could use D for everything

2009-04-29 Thread Steven Schveighoffer
On Wed, 29 Apr 2009 23:01:17 -0400, BCS wrote: Hello Steven, The sole purpose of this enum is so I can have something reasonable when iterating through the values in a dictionary instead of: foreach(KeyValuePair kvp in myDictionary) IIRC this works foreach(ValueType v in myDictionary.Val

Re: I wish I could use D for everything

2009-04-29 Thread Simen Kjaeraas
On Thu, 30 Apr 2009 05:04:43 +0200, Unknown W. Brackets wrote: I'm lucky, I'm a technical lead/manager at work, so I get to say "for this project, we're using D." And then it happens. Muhahaha. We're a small shop but I enjoy my small amount of power. Soon it will happen, just have to l

Re: I wish I could use D for everything

2009-04-29 Thread Unknown W. Brackets
I'm lucky, I'm a technical lead/manager at work, so I get to say "for this project, we're using D." And then it happens. Muhahaha. We're a small shop but I enjoy my small amount of power. Soon it will happen, just have to lay in the ground work. I know other managers at my company have no

Re: I wish I could use D for everything

2009-04-29 Thread BCS
Hello Steven, The sole purpose of this enum is so I can have something reasonable when iterating through the values in a dictionary instead of: foreach(KeyValuePair kvp in myDictionary) IIRC this works foreach(ValueType v in myDictionary.Values) but I can't check that right now OTOH, Yah,

I wish I could use D for everything

2009-04-29 Thread Steven Schveighoffer
I've written this handy template in C# called DictionaryValueEnum. It returns an Enumerator for a Dictionary that enumerates only the values. The sole purpose of this enum is so I can have something reasonable when iterating through the values in a dictionary instead of: foreach(KeyValuePa