February 07, 2004
"J C Calvarese" <jcc7@cox.net> wrote in message news:c01fje$31d7$1@digitaldaemon.com...
> It seems like there's been a lot of see-how-I-made-the-compiler-fail messages recently. I think these posts are made in good faith.

Yes, they are. I can't think of a single example otherwise.

> When I first started following this newsgroup many, many months ago, I got the impression that many of the posters didn't actually try out the compiler. There was a lot of discussion about which features would be included in the ultimate programming languge.
>
> Now, people are actually trying to do things in D. So we post more messages trying to help Walter squash bugs by showing weaknesses in the compiler.

Absolutely right. If nobody was posting bugs, that's a sure sign nobody is using it. I fix them one by one, and add the resulting test cases to the test suite so it will never happen again. The result is an ever stronger compiler backed by an ever more thorough QA program.

> This is a weakness in the state of D right now.  I think an even more pressing problem is all of the "stale" code out there (e.g. it worked great with DMD 0.69, but won't even compile since phobos got re-arranged in DMD 0.75). We probably should include a version number and date when we upload code to a website (so if we fall behind with D updates at least a person can tell before he downloads the whole thing).

I knew that would happen and dreaded doing it, but the the rearrangement had to happen, and the sooner the better. I hope that is all behind us now.

> I think Bugzilla would be great. I think Walter has some concerns that the Anti-D Militia would make announcements like "look how many unresolved bugs has! Oh, the horror!" (When in reality, their favorite language has many bugs, but their vendor sweeps all the bugs underneath the rug.)

I published a carefully documented bug list once in the past. It was a disaster.


February 07, 2004
> For D to become a
> true alternative to C++ for me though, it's going to need to scale to
> handle enterprise-level issues.

I completely agree, for me it also needs more library support.  For me to use it at work i need a libcurl like library ( http://curl.haxx.se ).

> I was going to work on this a bit for Boost but I may do it here instead :p

I hope so!

C



"Sean Kelly" <sean@ffwd.cx> wrote in message news:c01mhe$d5u$1@digitaldaemon.com...
> C wrote:
> >
> > So true ... and most times they dont even think its a bug just a
language
> > restriction ( or a "Thats a poor design" , when most likely , their
language
> > is incapable of implementing it , and they cant see past their own
noses )
> > In my D advocacy , ive run into so many people who just refuse to try anything new or keep an open mind , its sad and depressing.  There
arguing
> > against me , never even having tried the language ... , I tell them to
just
> > try it they'll love it , but they just flat refuse.  So sad.
>
> I just heard about D a few days ago (thanks to a thread Walter is in on the MS STL newsgroup) so I'm still getting up to speed on the language, but on paper it seems like the language I *wish* C++ were.  If people discount D out of hand it's probably because they're inexperienced, in which case perhaps they'll come around eventually.  For D to become a true alternative to C++ for me though, it's going to need to scale to handle enterprise-level issues.  Multiplexed i/o, better thread support, etc.  I was going to work on this a bit for Boost but I may do it here instead :p
>
>
> Sean
>


February 07, 2004
"C" <dont@respond.com> wrote in message news:c03i1s$tor$1@digitaldaemon.com...
> I completely agree, for me it also needs more library support.  For me to use it at work i need a libcurl like library ( http://curl.haxx.se ).

Since libcurl is a C library, a D wrapper for it should be pretty easy. Want to give it a try?


February 07, 2004
I have tried in the past , i took the approach of building the .dll in VC , and using implib to create a .lib.  I got it to compile , but it failed on startup , with .. I forget the error.  Its been a couple months though , Ill give it another go around.

I also need to re-read the C to D section, I've forgotten how D handles memory allocated from within C functions :/.

C


"Walter" <walter@digitalmars.com> wrote in message news:c03nfs$178v$1@digitaldaemon.com...
>
> "C" <dont@respond.com> wrote in message news:c03i1s$tor$1@digitaldaemon.com...
> > I completely agree, for me it also needs more library support.  For me
to
> > use it at work i need a libcurl like library ( http://curl.haxx.se ).
>
> Since libcurl is a C library, a D wrapper for it should be pretty easy.
Want
> to give it a try?
>
>


February 07, 2004
You may want to compile it with DigitalMars C compiler into a lib. This is the easiest.

After you get it to work within a simple DigitalMars C or C++ program, the step to D would be trivial and any failure would be easy to diagnose.

-eye

C wrote:
> I have tried in the past , i took the approach of building the .dll in VC ,
> and using implib to create a .lib.  I got it to compile , but it failed on
> startup , with .. I forget the error.  Its been a couple months though , Ill
> give it another go around.
> 
> I also need to re-read the C to D section, I've forgotten how D handles
> memory allocated from within C functions :/.
> 
> C

February 08, 2004
"Ilya Minkov" <minkov@cs.tum.edu> wrote in message news:c03r5f$1bf7$1@digitaldaemon.com...
> You may want to compile it with DigitalMars C compiler into a lib. This is the easiest.
>
> After you get it to work within a simple DigitalMars C or C++ program, the step to D would be trivial and any failure would be easy to diagnose.

Yes, a static lib. I'd forget about making a curl dll for this project.


February 08, 2004
In article <c00vhs$24aq$1@digitaldaemon.com>, larry cowan says...
>2.  I think the language is generally well-defined, but I would hate to have it lock-in upward compatibility as a requirement yet.

Any language can add or deprecate features over it's "lifetime" but I think it is time for D to establish a first standard "D 2004" much like other languages have done Fortran 1977, C 1989, C++ 1998 etc. This would allow other vendors and targets to be established. I really like D, but I'm in the embedded world and at work we mostly use PowerPC and ARM. It would be nice to see Greenhills release a D compiler. The embedded tool vendors tend to be much more risk adverse and they probably won't bite until D is reasonably established in the non-embedded world.

I think a lot of people confuse the DMD implementation which may or may not have a particular bug with the D language itself.



February 09, 2004
Ok , the api wrappers are at www.atari-soldiers.com/curl.d . Compiled and tested with linux , ill work on compiling with dmc for windows.

Im working on some OO wrappers ill post shortly.

Here is the simple.d example :


import curl;

import std.c.stdio;
import std.string;

alias std.string.toStringz c_str;

int main()
{
 CURL *curl;
 CURLcode res;

 curl = curl_easy_init();
 if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, c_str("www.digitalmars.com"));
  res = curl_easy_perform(curl);

  /* always cleanup */
  curl_easy_cleanup(curl);
 }
 return 0;
}

If you havent used libcurl you should check it out , its very cool .(
http://curl.haxx.se )

C

"Walter" <walter@digitalmars.com> wrote in message news:c04708$1vv1$1@digitaldaemon.com...
>
> "Ilya Minkov" <minkov@cs.tum.edu> wrote in message news:c03r5f$1bf7$1@digitaldaemon.com...
> > You may want to compile it with DigitalMars C compiler into a lib. This is the easiest.
> >
> > After you get it to work within a simple DigitalMars C or C++ program, the step to D would be trivial and any failure would be easy to
diagnose.
>
> Yes, a static lib. I'd forget about making a curl dll for this project.
>
>


February 09, 2004
That was fast! Could you let the curl guys know so they can put a link up at http://curl.haxx.se/libcurl/ for the D bindings?

"C" <dont@respond.com> wrote in message news:c0706q$e9v$1@digitaldaemon.com...
> Ok , the api wrappers are at www.atari-soldiers.com/curl.d . Compiled and tested with linux , ill work on compiling with dmc for windows.
>
> Im working on some OO wrappers ill post shortly.
>
> Here is the simple.d example :
>
>
> import curl;
>
> import std.c.stdio;
> import std.string;
>
> alias std.string.toStringz c_str;
>
> int main()
> {
>  CURL *curl;
>  CURLcode res;
>
>  curl = curl_easy_init();
>  if(curl) {
>   curl_easy_setopt(curl, CURLOPT_URL, c_str("www.digitalmars.com"));
>   res = curl_easy_perform(curl);
>
>   /* always cleanup */
>   curl_easy_cleanup(curl);
>  }
>  return 0;
> }
>
> If you havent used libcurl you should check it out , its very cool .(
> http://curl.haxx.se )
>
> C
>
> "Walter" <walter@digitalmars.com> wrote in message news:c04708$1vv1$1@digitaldaemon.com...
> >
> > "Ilya Minkov" <minkov@cs.tum.edu> wrote in message news:c03r5f$1bf7$1@digitaldaemon.com...
> > > You may want to compile it with DigitalMars C compiler into a lib.
This
> > > is the easiest.
> > >
> > > After you get it to work within a simple DigitalMars C or C++ program, the step to D would be trivial and any failure would be easy to
> diagnose.
> >
> > Yes, a static lib. I'd forget about making a curl dll for this project.
> >
> >
>
>


February 09, 2004
Yep already sent ( on the mailing list ) ;).

C
"Walter" <walter@digitalmars.com> wrote in message
news:c0776m$qc5$1@digitaldaemon.com...
> That was fast! Could you let the curl guys know so they can put a link up
at
> http://curl.haxx.se/libcurl/ for the D bindings?
>
> "C" <dont@respond.com> wrote in message news:c0706q$e9v$1@digitaldaemon.com...
> > Ok , the api wrappers are at www.atari-soldiers.com/curl.d . Compiled
and
> > tested with linux , ill work on compiling with dmc for windows.
> >
> > Im working on some OO wrappers ill post shortly.
> >
> > Here is the simple.d example :
> >
> >
> > import curl;
> >
> > import std.c.stdio;
> > import std.string;
> >
> > alias std.string.toStringz c_str;
> >
> > int main()
> > {
> >  CURL *curl;
> >  CURLcode res;
> >
> >  curl = curl_easy_init();
> >  if(curl) {
> >   curl_easy_setopt(curl, CURLOPT_URL, c_str("www.digitalmars.com"));
> >   res = curl_easy_perform(curl);
> >
> >   /* always cleanup */
> >   curl_easy_cleanup(curl);
> >  }
> >  return 0;
> > }
> >
> > If you havent used libcurl you should check it out , its very cool .(
> > http://curl.haxx.se )
> >
> > C
> >
> > "Walter" <walter@digitalmars.com> wrote in message news:c04708$1vv1$1@digitaldaemon.com...
> > >
> > > "Ilya Minkov" <minkov@cs.tum.edu> wrote in message news:c03r5f$1bf7$1@digitaldaemon.com...
> > > > You may want to compile it with DigitalMars C compiler into a lib.
> This
> > > > is the easiest.
> > > >
> > > > After you get it to work within a simple DigitalMars C or C++
program,
> > > > the step to D would be trivial and any failure would be easy to
> > diagnose.
> > >
> > > Yes, a static lib. I'd forget about making a curl dll for this
project.
> > >
> > >
> >
> >
>
>