www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DMD 0.146 release

reply "Walter Bright" <newshound digitalmars.com> writes:
Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
Feb 09 2006
next sibling parent reply Derek Parnell <derek psych.ward> writes:
On Thu, 9 Feb 2006 23:01:11 -0800, Walter Bright wrote:

 Added features to make D useable as a scripting language on unix.
 
 http://www.digitalmars.com/d/changelog.html
Nice one ... and I see that at least one Build featurette has now migrated to D (-run) <g> -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocracy!" 10/02/2006 6:21:02 PM
Feb 09 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
"Derek Parnell" <derek psych.ward> wrote in message 
news:1w3d76hg5iw1n$.1420iwc0ce5dn.dlg 40tude.net...
 Nice one ... and I see that at least one Build featurette has now migrated
 to D (-run) <g>
I've started using it myself and darn if it isn't handy. I should have done it long ago.
Feb 10 2006
prev sibling next sibling parent reply Kramer <Kramer_member pathlink.com> writes:
In article <dshdns$a6s$1 digitaldaemon.com>, Walter Bright says...
Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
Nice update, thanks. Question though about bit and bool. For std.file.listdir, the delegate returns a bit, but then in your examples, you use bool (ahhh wait, I think I'm remembering that Ddoc might report bool as bit, no?). In any case, what's the preferred (D) way of handling boolean types: bool or bit? And is there a performance difference by using bool (bit) or int as a return type? Also, in the D style guide, the examples for functions seem to be camel case with the first character lower case, however, some Phobos functions seem to be just all lower case (while most are in camel case). I know this is no deal breaker, but I've looked up a function in the docs, typed it in without thinking about case (going by the D style guide) and got a compile error only to find it was because of the casing. I hope this isn't taken as unnecessary nit-picking, but rather just a desire for Phobos to look clean and consistent with everything else. -Kramer P.S. Thanks again for all the hard work. It's been nice to see more of your presence lately in the N.G. in what seems like some helmsmanship. :)
Feb 09 2006
next sibling parent Hasan Aljudy <hasan.aljudy gmail.com> writes:
Kramer wrote:
 In article <dshdns$a6s$1 digitaldaemon.com>, Walter Bright says...
 
Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
Nice update, thanks. Question though about bit and bool. For std.file.listdir, the delegate returns a bit, but then in your examples, you use bool (ahhh wait, I think I'm remembering that Ddoc might report bool as bit, no?). In any case, what's the preferred (D) way of handling boolean types: bool or bit? And is there a performance difference by using bool (bit) or int as a return type?
bool is just an alias for bit! :( #alias bit bool;
 
 Also, in the D style guide, the examples for functions seem to be camel case
 with the first character lower case, however, some Phobos functions seem to be
 just all lower case (while most are in camel case).  I know this is no deal
 breaker, but I've looked up a function in the docs, typed it in without
thinking
 about case (going by the D style guide) and got a compile error only to find it
 was because of the casing.  I hope this isn't taken as unnecessary nit-picking,
 but rather just a desire for Phobos to look clean and consistent with
everything
 else.
 
 -Kramer
 
 P.S. Thanks again for all the hard work.  It's been nice to see more of your
 presence lately in the N.G. in what seems like some helmsmanship. :)
 
 
Feb 09 2006
prev sibling parent "Charles" <noone nowhere.com> writes:
 P.S. Thanks again for all the hard work.  It's been nice to see more of
your
 presence lately in the N.G. in what seems like some helmsmanship. :)
Agreed, excites things a bit, plus makes it seem were getting close to a 1.0! "Kramer" <Kramer_member pathlink.com> wrote in message news:dshfn3$bnt$1 digitaldaemon.com...
 In article <dshdns$a6s$1 digitaldaemon.com>, Walter Bright says...
Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
Nice update, thanks. Question though about bit and bool. For std.file.listdir, the delegate
returns
 a bit, but then in your examples, you use bool (ahhh wait, I think I'm
 remembering that Ddoc might report bool as bit, no?).  In any case, what's
the
 preferred (D) way of handling boolean types: bool or bit?  And is there a
 performance difference by using bool (bit) or int as a return type?

 Also, in the D style guide, the examples for functions seem to be camel
case
 with the first character lower case, however, some Phobos functions seem
to be
 just all lower case (while most are in camel case).  I know this is no
deal
 breaker, but I've looked up a function in the docs, typed it in without
thinking
 about case (going by the D style guide) and got a compile error only to
find it
 was because of the casing.  I hope this isn't taken as unnecessary
nit-picking,
 but rather just a desire for Phobos to look clean and consistent with
everything
 else.

 -Kramer

 P.S. Thanks again for all the hard work.  It's been nice to see more of
your
 presence lately in the N.G. in what seems like some helmsmanship. :)
Feb 10 2006
prev sibling next sibling parent reply Nick <Nick_member pathlink.com> writes:
In article <dshdns$a6s$1 digitaldaemon.com>, Walter Bright says...
Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
doesn't seem to work correctly. I assume I am supposed to supply the -run parameter, but consider a file that contains The actual command exectued is "/usr/bin/dmd -run filename.d", where filename.d is parsed as an argument to -run. Nick
Feb 10 2006
next sibling parent reply "Walter Bright" <newshound digitalmars.com> writes:
"Nick" <Nick_member pathlink.com> wrote in message 
news:dshm2d$igt$1 digitaldaemon.com...

 line)
 doesn't seem to work correctly. I assume I am supposed to supply the -run
 parameter, but consider a file that contains



 The actual command exectued is "/usr/bin/dmd -run filename.d", where 
 filename.d
 is parsed as an argument to -run.
Oh darn.
Feb 10 2006
parent Nick <Nick_member pathlink.com> writes:
In article <dsim0l$1hm3$2 digitaldaemon.com>, Walter Bright says...
Oh darn. 
A simple solution would be to add another option -script (or just -s), with the syntax dmd -s filename [args...] Another problem with the scripting functionality is that it currently requires scripts to be named *.d, which can be a bit awkward for scripts. The -s option can be designed to work around this as well. Also note that arguments given in-file are problematic, since the line will give the entire string "-debug=3 -inline -s myarg1 myarg2" as ONE argument to DMD. Nick
Feb 11 2006
prev sibling parent Georg Wrede <georg.wrede nospam.org> writes:
Nick wrote:
 In article <dshdns$a6s$1 digitaldaemon.com>, Walter Bright says...
 
Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
doesn't seem to work correctly. I assume I am supposed to supply the -run parameter, but consider a file that contains The actual command exectued is "/usr/bin/dmd -run filename.d", where filename.d is parsed as an argument to -run.
I've included a shell script that we use in-house. Merely putting it in your $HOME/bin lets you use D programs as genuine shell scripts. And without the .d suffix. We've been using it for quite a while since I first showed it in this ng.
Feb 14 2006
prev sibling next sibling parent reply John Stoneham <captnjameskirk moc.oohay> writes:
Great! One minor point on the main compiler page, 
http://www.digitalmars.com/d/dcompiler.html does not show the current 
version. The filename itself (when selecting it download) also doesn't 
reflect the version, it is simply dmd.zip.

It would be nice to have the version shown on that page, or at least 
included in the zip filename, so that we don't have to download dmd.zip 
and extract it to find out if it really has been updated to the latest 
version.

--
John
Feb 10 2006
parent =?ISO-8859-1?Q?Jari-Matti_M=E4kel=E4?= <jmjmak utu.fi.invalid> writes:
John Stoneham wrote:
 Great! One minor point on the main compiler page,
 http://www.digitalmars.com/d/dcompiler.html does not show the current
 version. The filename itself (when selecting it download) also doesn't
 reflect the version, it is simply dmd.zip.
 
 It would be nice to have the version shown on that page, or at least
 included in the zip filename, so that we don't have to download dmd.zip
 and extract it to find out if it really has been updated to the latest
 version.
 
 -- 
 John
Use http://www.digitalmars.com/d/changelog.html instead. -- Jari-Matti
Feb 10 2006
prev sibling next sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Walter Bright wrote:

 Added features to make D useable as a scripting language on unix.
 
 http://www.digitalmars.com/d/changelog.html
Thanks for fixing all the "main" issues! Much appreciated. --anders
Feb 10 2006
prev sibling next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Walter Bright" <newshound digitalmars.com> wrote in message 
news:dshdns$a6s$1 digitaldaemon.com...
 Added features to make D useable as a scripting language on unix.

 http://www.digitalmars.com/d/changelog.html
Oh happiness :) Only problem is, I'll have to recompile phobos as, as far as I know, shinchiro hasn't made a new version of the backtrace phobos yet.. _damn_, have I become dependent on that sweet, sweet backtrace! Not just for AVs, but for all kinds of exceptions..
Feb 10 2006
next sibling parent reply "Walter Bright" <newshound digitalmars.com> writes:
"Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message 
news:dsib37$16ed$1 digitaldaemon.com...
 "Walter Bright" <newshound digitalmars.com> wrote in message 
 news:dshdns$a6s$1 digitaldaemon.com...
 Added features to make D useable as a scripting language on unix.

 http://www.digitalmars.com/d/changelog.html
Oh happiness :) Only problem is, I'll have to recompile phobos as, as far as I know, shinchiro hasn't made a new version of the backtrace phobos yet.. _damn_, have I become dependent on that sweet, sweet backtrace! Not just for AVs, but for all kinds of exceptions..
I plan on integrating shinchiro's stuff. It's just too cool.
Feb 10 2006
next sibling parent Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
Walter Bright wrote:
 I plan on integrating shinchiro's stuff. It's just too cool. 
Excellent ! Maybe people will complain less about null pointers ;) -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O !M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y ------END GEEK CODE BLOCK------ Tomasz Stachowiak /+ a.k.a. h3r3tic +/
Feb 10 2006
prev sibling next sibling parent reply pragma <pragma_member pathlink.com> writes:
In article <dsim0k$1hm3$1 digitaldaemon.com>, Walter Bright says...
"Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message 
news:dsib37$16ed$1 digitaldaemon.com...
 "Walter Bright" <newshound digitalmars.com> wrote in message 
 news:dshdns$a6s$1 digitaldaemon.com...
 Added features to make D useable as a scripting language on unix.

 http://www.digitalmars.com/d/changelog.html
Oh happiness :) Only problem is, I'll have to recompile phobos as, as far as I know, shinchiro hasn't made a new version of the backtrace phobos yet.. _damn_, have I become dependent on that sweet, sweet backtrace! Not just for AVs, but for all kinds of exceptions..
I plan on integrating shinchiro's stuff. It's just too cool.
I took a look at it myself. It looks like he has a custom Exception hook in there along with OMF and COFF debug data parsers to recover symbol and address information. Definately a smooth hack. But it does bring to mind one question: will this mean that stack traces in D will only be available in debug builds? - Eric Anderton at yahoo
Feb 10 2006
next sibling parent reply "Walter Bright" <newshound digitalmars.com> writes:
"pragma" <pragma_member pathlink.com> wrote in message 
news:dsit7q$1rfc$1 digitaldaemon.com...
 But it does bring to mind one question: will this mean that stack traces 
 in D
 will only be available in debug builds?
Yup.
Feb 10 2006
parent reply pragma <pragma_member pathlink.com> writes:
In article <dsiu9h$1u93$1 digitaldaemon.com>, Walter Bright says...
"pragma" <pragma_member pathlink.com> wrote in message 
news:dsit7q$1rfc$1 digitaldaemon.com...
 But it does bring to mind one question: will this mean that stack traces 
 in D
 will only be available in debug builds?
Yup.
Works for me. :) - Eric Anderton at yahoo
Feb 10 2006
parent James Dunne <james.jdunne gmail.com> writes:
pragma wrote:
 In article <dsiu9h$1u93$1 digitaldaemon.com>, Walter Bright says...
 
"pragma" <pragma_member pathlink.com> wrote in message 
news:dsit7q$1rfc$1 digitaldaemon.com...

But it does bring to mind one question: will this mean that stack traces 
in D
will only be available in debug builds?
Yup.
Works for me. :) - Eric Anderton at yahoo
OMG... has anyone worked with JBOSS? Stacktraces are ridiculous there in release builds. I'm so glad stack traces are NO for release. -- Regards, James Dunne
Feb 12 2006
prev sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"pragma" <pragma_member pathlink.com> wrote in message
 But it does bring to mind one question: will this mean that stack traces 
 in D
 will only be available in debug builds?
When else would you need one? A stack dump is a debugging tool, no? I doubt that a stack dump would be of much use to normal users (unless, of course, the normal users for your program are *nixheads, in which case they're _all_ developers and would understand what a stack dump is, but if your program runs in *nix, there's a 99.999% probably that it's open-source anyway, so they can build a debug build and get a stack dump if they want one ;) whoo).
Feb 10 2006
parent BCS <BCS_member pathlink.com> writes:
In article <dsivqu$222u$1 digitaldaemon.com>, Jarrett Billingsley says...
"pragma" <pragma_member pathlink.com> wrote in message
 But it does bring to mind one question: will this mean that stack traces 
 in D
 will only be available in debug builds?
When else would you need one? A stack dump is a debugging tool, no? I doubt that a stack dump would be of much use to normal users (unless, of course, the normal users for your program are *nixheads, in which case they're _all_ developers and would understand what a stack dump is, but if your program runs in *nix, there's a 99.999% probably that it's open-source anyway, so they can build a debug build and get a stack dump if they want one ;) whoo).
If the dump could be captured to a char[] a program could send it into a bug tracking database of some kind. I can just see it now: "Mommy mommy, I stubbed my tow on a null pointer! Can you patch me up??" :-P
Feb 12 2006
prev sibling next sibling parent reply "Chris Miller" <chris dprogramming.com> writes:
On Fri, 10 Feb 2006 13:22:15 -0500, Walter Bright  
<newshound digitalmars.com> wrote:

 "Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message
 news:dsib37$16ed$1 digitaldaemon.com...
 "Walter Bright" <newshound digitalmars.com> wrote in message
 news:dshdns$a6s$1 digitaldaemon.com...
 Added features to make D useable as a scripting language on unix.

 http://www.digitalmars.com/d/changelog.html
Oh happiness :) Only problem is, I'll have to recompile phobos as, as far as I know, shinchiro hasn't made a new version of the backtrace phobos yet.. _damn_, have I become dependent on that sweet, sweet backtrace! Not just for AVs, but for all kinds of exceptions..
I plan on integrating shinchiro's stuff. It's just too cool.
Hope it's the next version :D
Feb 11 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
"Chris Miller" <chris dprogramming.com> wrote in message
news:op.s4th7rvapo9bzi moe...
 On Fri, 10 Feb 2006 13:22:15 -0500, Walter Bright
 <newshound digitalmars.com> wrote:
 I plan on integrating shinchiro's stuff. It's just too cool.
Hope it's the next version :D
No, not yet :-(
Feb 11 2006
prev sibling parent reply James Dunne <james.jdunne gmail.com> writes:
Walter Bright wrote:
 "Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message 
 news:dsib37$16ed$1 digitaldaemon.com...
 
"Walter Bright" <newshound digitalmars.com> wrote in message 
news:dshdns$a6s$1 digitaldaemon.com...

Added features to make D useable as a scripting language on unix.

http://www.digitalmars.com/d/changelog.html
Oh happiness :) Only problem is, I'll have to recompile phobos as, as far as I know, shinchiro hasn't made a new version of the backtrace phobos yet.. _damn_, have I become dependent on that sweet, sweet backtrace! Not just for AVs, but for all kinds of exceptions..
I plan on integrating shinchiro's stuff. It's just too cool.
Any word on Linux support for backtraces? -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/MU/S d-pu s:+ a-->? C++++$ UL+++ P--- L+++ !E W-- N++ o? K? w--- O M-- V? PS PE Y+ PGP- t+ 5 X+ !R tv-->!tv b- DI++(+) D++ G e++>e h>--->++ r+++ y+++ ------END GEEK CODE BLOCK------ James Dunne
Feb 13 2006
parent reply "Walter Bright" <newshound digitalmars.com> writes:
"James Dunne" <james.jdunne gmail.com> wrote in message 
news:dsq9fq$29fd$1 digitaldaemon.com...
 Walter Bright wrote:
 I plan on integrating shinchiro's stuff. It's just too cool.
Any word on Linux support for backtraces?
I imagine something analogous would work with Linux, but I haven't investigated it.
Feb 13 2006
next sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
Walter Bright wrote:

 
 "James Dunne" <james.jdunne gmail.com> wrote in message
 news:dsq9fq$29fd$1 digitaldaemon.com...
 Walter Bright wrote:
 I plan on integrating shinchiro's stuff. It's just too cool.
Any word on Linux support for backtraces?
I imagine something analogous would work with Linux, but I haven't investigated it.
As pointed out by Dunne further down, stacktraces just works, as long as Dwarf debug info is correctly available and gdb is patched for D mangling.
Feb 13 2006
prev sibling parent reply "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> writes:
 I imagine something analogous would work with Linux, but I haven't 
 investigated it. 
I guess I can implement backtrace into linux & gdc. But on Linux, we can get backtrace with gdb easily. So, is it needed? ------------------ shinichiro.h hamaji _at_ nii.ac.jp http://shinh.skr.jp/
Feb 15 2006
parent "Regan Heath" <regan netwin.co.nz> writes:
On Thu, 16 Feb 2006 12:39:31 +0900, shinichiro.h  
<s31552 mail.ecc.u-tokyo.ac.jp> wrote:
 I imagine something analogous would work with Linux, but I haven't
 investigated it.
I guess I can implement backtrace into linux & gdc. But on Linux, we can get backtrace with gdb easily. So, is it needed?
Yes. Customers/Users do not always know how to use gdb and produce a backtrace, being able to do it ourselves is useful. Regan
Feb 15 2006
prev sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message 
news:dsib37$16ed$1 digitaldaemon.com...
 Only problem is, I'll have to recompile phobos
And I've done just that. All credits of course go to shinchiro, and also to James Dunne for hosting my crap :) http://jamesdunne.no-ip.org/nonagon/phobos_backtrace_146.zip
Feb 10 2006
parent James Dunne <james.jdunne gmail.com> writes:
Jarrett Billingsley wrote:
 "Jarrett Billingsley" <kb3ctd2 yahoo.com> wrote in message 
 news:dsib37$16ed$1 digitaldaemon.com...
 
Only problem is, I'll have to recompile phobos
And I've done just that. All credits of course go to shinchiro, and also to James Dunne for hosting my crap :) http://jamesdunne.no-ip.org/nonagon/phobos_backtrace_146.zip
Oh yeah, I forgot... Linux just works! =P -- Regards, James Dunne
Feb 12 2006
prev sibling parent reply Sean Kelly <sean f4.ca> writes:
You fixed the template 'private' bug?  Hallelujah!


Sean
Feb 10 2006
parent Dave <Dave_member pathlink.com> writes:
In article <dsii3b$1dtc$1 digitaldaemon.com>, Sean Kelly says...
You fixed the template 'private' bug?  Hallelujah!


Sean
I agree - great work Walter!!
Feb 10 2006