digitalmars.D.announce - DMD 0.146 release
- "Walter Bright" <newshound digitalmars.com> Feb 09 2006
- Derek Parnell <derek psych.ward> Feb 09 2006
- "Walter Bright" <newshound digitalmars.com> Feb 10 2006
- Kramer <Kramer_member pathlink.com> Feb 09 2006
- Hasan Aljudy <hasan.aljudy gmail.com> Feb 09 2006
- "Charles" <noone nowhere.com> Feb 10 2006
- Nick <Nick_member pathlink.com> Feb 10 2006
- "Walter Bright" <newshound digitalmars.com> Feb 10 2006
- Nick <Nick_member pathlink.com> Feb 11 2006
- Georg Wrede <georg.wrede nospam.org> Feb 14 2006
- John Stoneham <captnjameskirk moc.oohay> Feb 10 2006
- =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> Feb 10 2006
- "Jarrett Billingsley" <kb3ctd2 yahoo.com> Feb 10 2006
- "Walter Bright" <newshound digitalmars.com> Feb 10 2006
- Tom S <h3r3tic remove.mat.uni.torun.pl> Feb 10 2006
- pragma <pragma_member pathlink.com> Feb 10 2006
- "Walter Bright" <newshound digitalmars.com> Feb 10 2006
- pragma <pragma_member pathlink.com> Feb 10 2006
- James Dunne <james.jdunne gmail.com> Feb 12 2006
- "Jarrett Billingsley" <kb3ctd2 yahoo.com> Feb 10 2006
- BCS <BCS_member pathlink.com> Feb 12 2006
- "Chris Miller" <chris dprogramming.com> Feb 11 2006
- "Walter Bright" <newshound digitalmars.com> Feb 11 2006
- James Dunne <james.jdunne gmail.com> Feb 13 2006
- "Walter Bright" <newshound digitalmars.com> Feb 13 2006
- Lars Ivar Igesund <larsivar igesund.net> Feb 13 2006
- "Regan Heath" <regan netwin.co.nz> Feb 15 2006
- "Jarrett Billingsley" <kb3ctd2 yahoo.com> Feb 10 2006
- James Dunne <james.jdunne gmail.com> Feb 12 2006
- Sean Kelly <sean f4.ca> Feb 10 2006
- Dave <Dave_member pathlink.com> Feb 10 2006
- "shinichiro.h" <s31552 mail.ecc.u-tokyo.ac.jp> Feb 15 2006
Added features to make D useable as a scripting language on unix. http://www.digitalmars.com/d/changelog.html
Feb 09 2006
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
"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
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
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
P.S. Thanks again for all the hard work. It's been nice to see more of
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
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
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
with the first character lower case, however, some Phobos functions seem
just all lower case (while most are in camel case). I know this is no
breaker, but I've looked up a function in the docs, typed it in without
about case (going by the D style guide) and got a compile error only to
was because of the casing. I hope this isn't taken as unnecessary
but rather just a desire for Phobos to look clean and consistent with
else. -Kramer P.S. Thanks again for all the hard work. It's been nice to see more of
presence lately in the N.G. in what seems like some helmsmanship. :)
Feb 10 2006
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
Thanks for a(nother) great update! However, scripting (#! at the first line) doesn't seem to work correctly. I assume I am supposed to supply the -run parameter, but consider a file that contains #!/usr/bin/dmd -run 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
"Nick" <Nick_member pathlink.com> wrote in message news:dshm2d$igt$1 digitaldaemon.com...Thanks for a(nother) great update! However, scripting (#! at the first line) doesn't seem to work correctly. I assume I am supposed to supply the -run parameter, but consider a file that contains #!/usr/bin/dmd -run 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
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 #!/usr/bin/dmd -debug=3 -inline -s myarg1 myarg2 will give the entire string "-debug=3 -inline -s myarg1 myarg2" as ONE argument to DMD. Nick
Feb 11 2006
Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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
Thanks for a(nother) great update! However, scripting (#! at the first line) doesn't seem to work correctly. I assume I am supposed to supply the -run parameter, but consider a file that contains #!/usr/bin/dmd -run 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
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
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
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
"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
"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
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
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
"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
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
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
"pragma" <pragma_member pathlink.com> wrote in messageBut 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
In article <dsivqu$222u$1 digitaldaemon.com>, Jarrett Billingsley says..."pragma" <pragma_member pathlink.com> wrote in messageBut 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
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
"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
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
"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.
I imagine something analogous would work with Linux, but I haven't investigated it.
Feb 13 2006
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.
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
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
"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
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
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
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









"Walter Bright" <newshound digitalmars.com> 