Re: Announcing: D support in SWIG

2010-11-24 Thread BLS
Hi David, let me shake your hands and say Thank You, GREAT work. It was a bit difficult to build SWIG SVN on Windows. However. it was doable and as soon as I have some free time I will try make a few tests on a Win C++ GUI project. Bjoern On 21/11/2010 18:27, klickverbot wrote: In a

Re: DDT 0.4.0 released (formerly Mmrnmhrm)

2010-11-24 Thread Bruno Medeiros
On 17/11/2010 18:52, Bruno Medeiros wrote: I'm announcing the release of DDT (D Development Tools) version 0.4.0: http://code.google.com/a/eclipselabs.org/p/ddt/ Thanks to the people who tried it out, I really hope to progress this IDE much further, but it's gonna take time (as one would

Re: Build a D project is now easy

2010-11-24 Thread bioinfornatics
thanks nick i have pushed a fix for dmake and in same time for ddbi i think they are a little bug easy to fix when you set a lib do not put at the end '/' character example: dmake -p src -l src/dbi instead dmake -p src -l src/dbi/ To do change all path string and array Path string to Path

Re: DDT 0.4.0 released (formerly Mmrnmhrm)

2010-11-24 Thread Tom
El 17/11/2010 15:52, Bruno Medeiros escribió: I'm announcing the release of DDT (D Development Tools) version 0.4.0: http://code.google.com/a/eclipselabs.org/p/ddt/ (There was previously an older inactive project also called DDT, it has been renamed to EclipseD, with the authors permission.)

Re: Atomic Ref Counting

2010-11-24 Thread Don
Johann MacDonagh wrote: Mostly OT, what was the rationale for requiring the lock prefix being a separate statement in inline ASM? NASM and MASM keep it inline with the statement it affects. Simplifies the syntax considerably. rep is treated in the same way.

Re: [challenge] can you break wstring's back?

2010-11-24 Thread stephan
Am 24.11.2010 04:08, schrieb Steven Schveighoffer: I am working on a string implementation that enforces the correct restrictions on a string (bi-directional range, etc), and I came across what I feel is a bug. However, I don't know enough about utf to construct a test case to prove it wrong.

Re: cheers to gdc team

2010-11-24 Thread Andre Tampubolon
On 11/24/2010 8:06 AM, Iain Buclaw wrote: == Quote from Don (nos...@nospam.com)'s article g g wrote: I just want to say cheers to the GDC team for making D. 2.50(2.49 in the wiki) work in GCC. Great work Awesome! Does it pass the Phobos unit tests? Priorities! Currently working on passing

Re: Array Appending Plus Postblits

2010-11-24 Thread Max Samukha
On 11/24/2010 07:06 AM, Jonathan M Davis wrote: On Tuesday 23 November 2010 20:43:34 dsimcha wrote: I was browsing through druntime's lifetime.d for an unrelated reason and I noticed that, when an array is copied for the purpose of appending to it, the postblits are not called on the new array

Re: cheers to gdc team

2010-11-24 Thread Russel Winder
On Wed, 2010-11-24 at 15:14 +0530, Puneet Goel wrote: Is the binary version available? I would be interested in a debian package. More so since dmd 64-bit versions are not available. If somebody could initially guide me, I can volunteer to regularly spin unofficial Debian and Ubuntu

Re: cheers to gdc team

2010-11-24 Thread Puneet Goel
More so since dmd 64-bit versions are not available. I meant 64-bit *dmd* versions are not available yet.

Re: cheers to gdc team

2010-11-24 Thread Puneet Goel
Is the binary version available? I would be interested in a debian package. More so since dmd 64-bit versions are not available. If somebody could initially guide me, I can volunteer to regularly spin unofficial Debian and Ubuntu packages. Regards - Puneet

Re: New slides about Go

2010-11-24 Thread Bruno Medeiros
On 24/11/2010 01:37, Nick Sabalausky wrote: Bruno Medeirosbrunodomedeiros+s...@com.gmail wrote in message news:ibjd5l$2p...@digitalmars.com... On 11/11/2010 12:10, Justin Johansson wrote: On 11/11/10 22:56, Bruno Medeiros wrote: On 16/10/2010 00:15, Walter Bright wrote: Andrei Alexandrescu

Re: Why is 'scope' so weak?

2010-11-24 Thread Lars T. Kyllingstad
On Tue, 23 Nov 2010 23:26:54 -0500, Robert Jacques wrote: On Tue, 23 Nov 2010 07:59:27 -0500, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: If I've understood things correctly, by marking a delegate parameter with 'scope' you tell the compiler not to create a true closure for the

Re: GDC2 compilation warnings

2010-11-24 Thread Don
bearophile wrote: - Signed unsigned comparison warning: unless D invents some other very good solution, this warning is a ugly but necessary patch over one hole of the C language that D too has. This is bug 259, one of the first issues ever reported in bugzilla. Can you please stop reporting

Re: GDC2 compilation warnings

2010-11-24 Thread bearophile
Don: This is bug 259, one of the first issues ever reported in bugzilla. Can you please stop reporting obvious issues as if you were the first person who ever noticed them? In this very newsgroup I have learnt that sometimes saying obvious things is useful. It's just a bug that it

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Don
Andrei Alexandrescu wrote: On 11/22/10 12:01 PM, Steven Schveighoffer wrote: On Mon, 22 Nov 2010 12:40:16 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 11/22/10 11:22 AM, Steven Schveighoffer wrote: You're dodging the question. You claim that if I want to use it as an

Re: Array Appending Plus Postblits

2010-11-24 Thread Steven Schveighoffer
On Tue, 23 Nov 2010 23:43:34 -0500, dsimcha dsim...@yahoo.com wrote: I was browsing through druntime's lifetime.d for an unrelated reason and I noticed that, when an array is copied for the purpose of appending to it, the postblits are not called on the new array if it is an array of

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Bruno Medeiros
On 22/11/2010 04:56, Andrei Alexandrescu wrote: On 11/21/10 22:09 CST, Rainer Deyke wrote: On 11/21/2010 17:31, Andrei Alexandrescu wrote: char[] and wchar[] fail to provide some of the guarantees of all other instances of T[]. What exactly are those guarantees? More exactly, that the

Re: [challenge] can you break wstring's back?

2010-11-24 Thread Steven Schveighoffer
On Wed, 24 Nov 2010 03:46:26 -0500, stephan n...@example.com wrote: Here you go [snip] Thank you very much :) http://d.puremagic.com/issues/show_bug.cgi?id=5265 -Steve

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Bruno Medeiros
On 23/11/2010 18:15, foobar wrote: It's simple, a mediocre language (Java) with mediocre libraries has orders of magnitude more success than C++ with it's libs fine tuned for performance. Why? Java has mediocre libraries?? Are you serious about that opinion? -- Bruno Medeiros - Software

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Bruno Medeiros
On 19/11/2010 23:39, Andrei Alexandrescu wrote: On 11/19/10 1:03 PM, Bruno Medeiros wrote: On 22/10/2010 20:48, Andrei Alexandrescu wrote: On 10/22/10 14:02 CDT, Tomek Sowiński wrote: Dnia 22-10-2010 o 00:01:21 Walter Bright newshou...@digitalmars.com napisał(a): As we all know, tool

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Iain Buclaw
== Quote from bearophile (bearophileh...@lycos.com)'s article -- I have done some tests on the 32 bit gdc D2, compiled today on Ubuntu. Some comments: The compilation and the compiler works! This is great considering that it's a card castle about 2 lighyears high that uses no

Re: GDC2 compilation warnings

2010-11-24 Thread Leandro Lucarella
Iain Buclaw, el 24 de noviembre a las 01:29 me escribiste: == Quote from bearophile (bearophileh...@lycos.com)'s article While compiling GDC2 today I have seen hundreds of warnings, usually one of 5 types: I'm rather thankful that you didn't try compiling a month or two ago then. :~)

Re: Basic coding style

2010-11-24 Thread spir
On Wed, 24 Nov 2010 02:03:17 +0200 Max Samukha spam...@d-coding.com wrote: (and it's not only me http://en.wikipedia.org/wiki/Argumentum_ad_populum Good catch ;-) (But I was not exactly pretending something to be true because more people think so -- instead that others also do not find

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Bruno Medeiros
On 24/11/2010 13:07, Bruno Medeiros wrote: On 22/11/2010 04:56, Andrei Alexandrescu wrote: On 11/21/10 22:09 CST, Rainer Deyke wrote: On 11/21/2010 17:31, Andrei Alexandrescu wrote: char[] and wchar[] fail to provide some of the guarantees of all other instances of T[]. What exactly are

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Bruno Medeiros
On 21/11/2010 18:23, Andrei Alexandrescu wrote: I have often reflected whether I'd do things differently if I could go back in time and join Walter when he invented D's strings. I might have done one or two things differently, but the gain would be marginal at best. In fact, it's not impossible

Re: [challenge] can you break wstring's back?

2010-11-24 Thread spir
On Tue, 23 Nov 2010 22:08:04 -0500 Steven Schveighoffer schvei...@yahoo.com wrote: However, there is only one back() function for narrow strings which supposedly handles both char[] and wchar[]. If the same logic is supposed tell the nr of code units of char dchar then it is certainly a

Re: Basic coding style

2010-11-24 Thread sybrandy
Much to the irritation of the pundits, D continues to fail at failing. That's my favorite quote from this newsgroup! Casey

Re: GDC2 compilation warnings

2010-11-24 Thread Leandro Lucarella
Leandro Lucarella, el 24 de noviembre a las 10:46 me escribiste: Iain Buclaw, el 24 de noviembre a las 01:29 me escribiste: == Quote from bearophile (bearophileh...@lycos.com)'s article While compiling GDC2 today I have seen hundreds of warnings, usually one of 5 types: I'm rather

Re: Basic coding style

2010-11-24 Thread sybrandy
Seriously, I fail to see how braces one their own line help visually catching code structure (and it's not only me ;-) For me, it really helps me make sure that I'm not missing a brace as I can see them line up visually. It's easier to see the missing brace in code that looks like this:

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Bruno Medeiros
On 19/11/2010 23:56, Michael Stover wrote: so that was 4 months ago - how do things currently stand on that initiative? -Mike On Fri, Nov 19, 2010 at 6:37 PM, Bruno Medeiros brunodomedeiros+s...@com.gmail wrote: On 19/11/2010 22:25, Michael Stover wrote: As for D lexers and

Re: What can the community do to help D?

2010-11-24 Thread Bruno Medeiros
On 23/10/2010 16:09, Peter Alexander wrote: There have been threads about what the biggest issues with D are, and about the top priorities for D are, but I don't think there has been a thread about what the best things are that the community can do to help D. Should people try to spread the

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread spir
On Wed, 24 Nov 2010 13:39:19 +0100 Don nos...@nospam.com wrote: I think we're seeing the exact same issue that causes to people to mistakenly use 'uint' when they mean 'positive integer'. It LOOKS as though a char is a subset of dchar (ie, a dchar in the range 0..0x7F). Cannot be, in the

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Daniel Gibson
spir schrieb: What i don't understand is why people who need unsigned bytes do not use ubyte? But instead bug into char. Is this only because of C baggage? probably because you can't write ubyte[] str = asdf; and they want to have ascii-chars in their ubyte arrays

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Ellery Newcomer
On 11/24/2010 09:13 AM, Bruno Medeiros wrote: I don't know about Ellery, as you can see in that thread he/she(?) mentioned interest in working on that, but I don't know anything more. Normally I go by 'it'. Been pretty busy this semester, so I haven't been doing much. But the bottom line

Re: More Clang diagnostic

2010-11-24 Thread Bruno Medeiros
On 26/10/2010 04:32, Walter Bright wrote: bearophile wrote: The C# compiler too show those column number. But last time Walter has explained that to do this, the compiler has to keep more data (all those line numbers), so this may slow down the compilation a little. And of course currently this

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Smurfette
bearophile Wrote: ../../gcc/d/d-gcc-real.h: In member function ‘const real_value real_t::rv() const’: ../../gcc/d/d-gcc-real.h:54: warning: dereferencing type-punned pointer will break strict-aliasing rules If you have a great idea to fix this warning, please send a patch.

Re: More Clang diagnostic

2010-11-24 Thread Bruno Medeiros
On 26/10/2010 04:42, Walter Bright wrote: Rainer Deyke wrote: On 10/25/2010 19:01, Walter Bright wrote: Yes, we discussed it before. The Digital Mars C/C++ compiler does this, and NOBODY CARES. Not one person in 25 years has ever even commented on it. Nobody commented on its lack in dmd. I

Re: Why is 'scope' so weak?

2010-11-24 Thread Andrei Alexandrescu
On 11/24/10 5:06 AM, Lars T. Kyllingstad wrote: On Tue, 23 Nov 2010 23:26:54 -0500, Robert Jacques wrote: On Tue, 23 Nov 2010 07:59:27 -0500, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: If I've understood things correctly, by marking a delegate parameter with 'scope' you tell the

Re: D in accounting program

2010-11-24 Thread Bruno Medeiros
On 26/10/2010 19:13, Adam D. Ruppe wrote: I've used D2 for a large web application for 7 months now without having to change any more than a handful of lines of code due to language/lib changes. The most intrusive change has probably been std.contracts being renamed! If you are just using

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread Andrei Alexandrescu
On 11/24/10 9:35 AM, Daniel Gibson wrote: spir schrieb: What i don't understand is why people who need unsigned bytes do not use ubyte? But instead bug into char. Is this only because of C baggage? probably because you can't write ubyte[] str = asdf; and they want to have ascii-chars in

Re: D in accounting program

2010-11-24 Thread Adam Ruppe
Bruno Medeiros wrote: That's interesting, could you detail a bit more what the D2 program did, etc. ? It's a (for pay) social networking / marketing website with a variety of side programs to allow for scheduled messages, a static (pre-compiled) website, and command line interaction with some

Re: Why is 'scope' so weak?

2010-11-24 Thread Lars T. Kyllingstad
On Wed, 24 Nov 2010 10:34:10 -0600, Andrei Alexandrescu wrote: On 11/24/10 5:06 AM, Lars T. Kyllingstad wrote: On Tue, 23 Nov 2010 23:26:54 -0500, Robert Jacques wrote: On Tue, 23 Nov 2010 07:59:27 -0500, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: If I've understood things

Re: D in accounting program

2010-11-24 Thread Graham Fawcett
On Wed, 24 Nov 2010 17:07:01 +, Adam Ruppe wrote: Bruno Medeiros wrote: That's interesting, could you detail a bit more what the D2 program did, etc. ? It's a (for pay) social networking / marketing website with a variety of side programs to allow for scheduled messages, a static

Re: More Clang diagnostic

2010-11-24 Thread bearophile
Bruno Medeiros: Why is that? What would cause a loss in compile speed even if this option was turned off? Maybe because the data structures used to keep the data around are used and kept even when you disable that feature (the switch just disables the printing). Bye, bearophile

Re: GDC2 compilation warnings

2010-11-24 Thread bearophile
Leandro Lucarella: These are important issues. This can heavily break the code when compiling with optimizations (-O2, -O3, -Os). Basically, you can't access an object with a type using a pointer to an incompatible type I agree. (except through an union). I am not sure the C standard says

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread bearophile
If you compare GDC1 and GDC2, you'll see the same thing. The problem is likely because Phobos2 is heavily templated in comparison to Phobos1, so you're pulling in a lot more functions than you bargain for. That little path tracer uses mostly the C std lib (or just it). And DMD2 produces a

Re: D in accounting program

2010-11-24 Thread Adam Ruppe
Graham Fawcett asked: Can I ask how you handled HTML templating? Rolled my own. I started with a DOM implementation and added templating stuff on top of it (my original idea was to be able to copy/paste some of the D code into Javascript with minimal changes - change auto to var, and see it

Re: D in accounting program

2010-11-24 Thread Graham Fawcett
On Wed, 24 Nov 2010 17:48:41 +, Adam Ruppe wrote: Graham Fawcett asked: Can I ask how you handled HTML templating? Rolled my own. I started with a DOM implementation and added templating stuff on top of it (my original idea was to be able to copy/paste some of the D code into

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Graham Fawcett
On Wed, 24 Nov 2010 12:45:52 -0500, bearophile wrote: If you compare GDC1 and GDC2, you'll see the same thing. The problem is likely because Phobos2 is heavily templated in comparison to Phobos1, so you're pulling in a lot more functions than you bargain for. That little path tracer uses

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Bruno Medeiros
On 24/10/2010 00:46, bearophile wrote: Walter: As we all know, tool support is important for D's success. Making tools easier to build will help with that. To that end, I think we need a lexer for the standard library - std.lang.d.lex. It would be helpful in writing color syntax highlighting

Re: rdmd --main

2010-11-24 Thread Jérôme M. Berger
Andrei Alexandrescu wrote: On 11/22/10 12:53 PM, spir wrote: Hello, The rdmd option --main is really helpful to test modules independently (it adds an empty main() to prevent the linker from crying). An issue is that each time we switch between .d files that have no main() (modules in

Re: Random numbers in strongly pure functions

2010-11-24 Thread Jérôme M. Berger
Jonathan M Davis wrote: It'll be nice to not need a chrooted environment to get dmd to work properly or Arch Linux (OpenSuSE manages to make it work just fine without a chrooted environemnt, but the Arch guys seem to hate proper multi-lib for some reason...). OT: Arch switched to

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Iain Buclaw
== Quote from bearophile (bearophileh...@lycos.com)'s article If you compare GDC1 and GDC2, you'll see the same thing. The problem is likely because Phobos2 is heavily templated in comparison to Phobos1, so you're pulling in a lot more functions than you bargain for. That little path tracer

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Andrew Wiley
On 24/10/2010 00:46, bearophile wrote: Walter: As we all know, tool support is important for D's success. Making tools easier to build will help with that. To that end, I think we need a lexer for the standard library - std.lang.d.lex. It would be helpful in writing color syntax

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Iain Buclaw
== Quote from Graham Fawcett (fawc...@uwindsor.ca)'s article $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*= /usr/include/d/dmd/druntime/import/core/stdc/stdlib.di:enum RAND_MAX = 32767; /usr/include/d/dmd/druntime/import/core/stdc/stdlib.d:enum RAND_MAX = 32767; Why the ugly

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Graham Fawcett
On Wed, 24 Nov 2010 18:49:23 +, Iain Buclaw wrote: == Quote from Graham Fawcett (fawc...@uwindsor.ca)'s article $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*= /usr/include/d/dmd/druntime/import/core/stdc/stdlib.di:enum RAND_MAX = 32767;

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Leandro Lucarella
Smurfette, el 24 de noviembre a las 11:30 me escribiste: bearophile Wrote: ../../gcc/d/d-gcc-real.h: In member function ?const real_value real_t::rv() const?: ../../gcc/d/d-gcc-real.h:54: warning: dereferencing type-punned pointer will break strict-aliasing rules If

Re: GDC2 compilation warnings

2010-11-24 Thread Leandro Lucarella
bearophile, el 24 de noviembre a las 12:37 me escribiste: Leandro Lucarella: These are important issues. This can heavily break the code when compiling with optimizations (-O2, -O3, -Os). Basically, you can't access an object with a type using a pointer to an incompatible type I agree.

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Andrei Alexandrescu
On 11/24/10 12:56 PM, Graham Fawcett wrote: On Wed, 24 Nov 2010 18:49:23 +, Iain Buclaw wrote: == Quote from Graham Fawcett (fawc...@uwindsor.ca)'s article $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*= /usr/include/d/dmd/druntime/import/core/stdc/stdlib.di:enum RAND_MAX = 32767;

Re: D in accounting program

2010-11-24 Thread sybrandy
On 11/24/2010 12:48 PM, Adam Ruppe wrote: Graham Fawcett asked: Can I ask how you handled HTML templating? Rolled my own. I started with a DOM implementation and added templating stuff on top of it (my original idea was to be able to copy/paste some of the D code into Javascript with minimal

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Iain Buclaw
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article On 11/24/10 12:56 PM, Graham Fawcett wrote: On Wed, 24 Nov 2010 18:49:23 +, Iain Buclaw wrote: == Quote from Graham Fawcett (fawc...@uwindsor.ca)'s article $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*=

Re: GCC 4.6

2010-11-24 Thread Bruno Medeiros
On 01/11/2010 01:23, Walter Bright wrote: ... , DOS support, ... DOS support?... That's quite telling. I can't say I view that as a positive, either for DMC or the people who prefer it. In fact, I find quite the contrary. -- Bruno Medeiros - Software Engineer

Re: Random numbers in strongly pure functions

2010-11-24 Thread Jonathan M Davis
On Wednesday, November 24, 2010 10:26:50 Jérôme M. Berger wrote: Jonathan M Davis wrote: It'll be nice to not need a chrooted environment to get dmd to work properly or Arch Linux (OpenSuSE manages to make it work just fine without a chrooted environemnt, but the Arch guys seem to hate

Re: More Clang diagnostic

2010-11-24 Thread Bruno Medeiros
On 24/11/2010 17:33, bearophile wrote: Bruno Medeiros: Why is that? What would cause a loss in compile speed even if this option was turned off? Maybe because the data structures used to keep the data around are used and kept even when you disable that feature (the switch just disables the

Re: GCC 4.6

2010-11-24 Thread Adam D. Ruppe
Bruno Medeiros wrote: DOS support?... That's quite telling. It's great. DMC making DOS programs is how I got started. Still play around with it from time to time. The simple simplicity of the simple era was just so much simpler. (I've never used it professionally, but I'm sure lots of people

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread bearophile
Graham Fawcett: $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*= /usr/include/d/dmd/druntime/import/core/stdc/stdlib.di:enum RAND_MAX = 32767; /usr/include/d/dmd/druntime/import/core/stdc/stdlib.d:enum RAND_MAX = 32767; Sorry for not looking at it by myself. I have filed it:

Re: D in accounting program

2010-11-24 Thread Adam D. Ruppe
sybrandy wrote: Is there any chance we could see the code you wrote? The majority of this app is a closed source proprietary thing that I don't own the copyright on, but I was allowed to keep most the helper libraries. You can find most of it in here: http://arsdnet.net/dcode/ cgi.d is for the

Re: More Clang diagnostic

2010-11-24 Thread bearophile
Bruno Medeiros: So was Walter talking about GCC specifically, not the feature in general, theoretical terms (ie, as applied to any compiler)? I think he was talking about the version of DMC present at that time. It is possible to disable a field in a data structure, but you may need to

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Bruno Medeiros
On 24/11/2010 13:30, Bruno Medeiros wrote: On 19/11/2010 23:39, Andrei Alexandrescu wrote: On 11/19/10 1:03 PM, Bruno Medeiros wrote: On 22/10/2010 20:48, Andrei Alexandrescu wrote: On 10/22/10 14:02 CDT, Tomek Sowiński wrote: Dnia 22-10-2010 o 00:01:21 Walter Bright

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Bruno Medeiros
On 20/11/2010 01:29, Jonathan M Davis wrote: On Friday, November 19, 2010 15:17:35 Bruno Medeiros wrote: On 19/11/2010 22:02, Jonathan M Davis wrote: On Friday, November 19, 2010 13:53:12 Bruno Medeiros wrote: On 19/11/2010 21:27, Jonathan M Davis wrote: And by providing a lexer and a parser

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Bruno Medeiros
On 24/11/2010 16:19, Ellery Newcomer wrote: On 11/24/2010 09:13 AM, Bruno Medeiros wrote: I don't know about Ellery, as you can see in that thread he/she(?) mentioned interest in working on that, but I don't know anything more. Normally I go by 'it'. I didn't meant to offend or anything,

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Graham Fawcett
On Wed, 24 Nov 2010 14:45:02 -0500, bearophile wrote: Graham Fawcett: $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*= /usr/include/d/dmd/druntime/import/core/stdc/stdlib.di:enum RAND_MAX = 32767; /usr/include/d/dmd/druntime/import/core/stdc/stdlib.d:enum RAND_MAX = 32767;

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread spir
On Wed, 24 Nov 2010 16:35:59 +0100 Daniel Gibson metalcae...@gmail.com wrote: spir schrieb: What i don't understand is why people who need unsigned bytes do not use ubyte? But instead bug into char. Is this only because of C baggage? probably because you can't write ubyte[] str =

Re: Marketing D [ was Re: GCC 4.6 ]

2010-11-24 Thread Bruno Medeiros
On 31/10/2010 23:20, Walter Bright wrote: retard wrote: Around 2005, interest in the Ruby language surged in tandem with Ruby on Rails, a popular web application framework written in Ruby. Rails is frequently credited with making Ruby famous and the association is so strong that the two are

Re: GCC 4.6

2010-11-24 Thread Bruno Medeiros
On 31/10/2010 02:47, bearophile wrote: Walter: You post lists of features every day. I hate wasting your time, so please ignore my posts you aren't interested in. I write those things because I like to think and discuss about new ways to explain semantics to computers. Most of those things

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Ellery Newcomer
On 11/24/2010 02:09 PM, Bruno Medeiros wrote: I didn't meant to offend or anything, I was just unsure of that. None taken; I'm just laughing at you. As I understand it, though, 'Ellery' is a unisex name, so it is entirely ambiguous. It took me like 3 months to read his parser to figure

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread bearophile
Bruno Medeiros: On the other hand, I would be surprised if a person of the female variety would be that interested in D, to the point of contributing in such way. In Python newsgroups I have seen few women, now and then, but in the D newsgroup so far... not many. So far D seems a male thing.

Re: Looking for champion - std.lang.d.lex

2010-11-24 Thread Daniel Gibson
bearophile schrieb: Bruno Medeiros: On the other hand, I would be surprised if a person of the female variety would be that interested in D, to the point of contributing in such way. In Python newsgroups I have seen few women, now and then, but in the D newsgroup so far... not many. So far

Re: GCC 4.6

2010-11-24 Thread Emil Madsen
On 24 November 2010 21:40, Bruno Medeiros brunodomedeiros+s...@com.gmailwrote: On 31/10/2010 02:47, bearophile wrote: Walter: You post lists of features every day. I hate wasting your time, so please ignore my posts you aren't interested in. I write those things because I like to think

Re: shorter foreach syntax - C++0x range-based for

2010-11-24 Thread Bruno Medeiros
On 01/11/2010 15:14, Andrei Alexandrescu wrote: On 11/1/10 9:09 AM, Gary Whatmore wrote: 2) the syntax comes from Java. It would be embarrasing to admit that Java did something right. - G.W. Only if one is an idiot. Java did a lot of things right (be they novel or not) that are present in

Re: shorter foreach syntax - C++0x range-based for

2010-11-24 Thread so
Annotations: a very flexible and extensible system to add metadata to any kind of definition. Meta-data can be runtime, compile-time or both. D could take a lot of inspiration from Java's annotations. Integrated support for multi-threading: threads, monitors, mutexes/locks,

Re: shorter foreach syntax - C++0x range-based for

2010-11-24 Thread Emil Madsen
On 1 November 2010 16:14, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 11/1/10 9:09 AM, Gary Whatmore wrote: Nick Treleaven Wrote: There's a C++0x proposal for a range-based 'for' statement: http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html The upcoming

Re: GDC2 [Re: GDC2 compilation warnings]

2010-11-24 Thread Leandro Lucarella
Andrei Alexandrescu, el 24 de noviembre a las 13:09 me escribiste: On 11/24/10 12:56 PM, Graham Fawcett wrote: On Wed, 24 Nov 2010 18:49:23 +, Iain Buclaw wrote: == Quote from Graham Fawcett (fawc...@uwindsor.ca)'s article $ find /usr/include/d/dmd/ | xargs grep RAND_MAX.*=

Re: D in accounting program

2010-11-24 Thread Mengu
hello adam, are you just using cgi or are you using fastcgi? Adam D. Ruppe Wrote: sybrandy wrote: Is there any chance we could see the code you wrote? The majority of this app is a closed source proprietary thing that I don't own the copyright on, but I was allowed to keep most the

Re: GCC 4.6

2010-11-24 Thread Walter Bright
Emil Madsen wrote: And yea, bearophile brings up a lot of nice features, and Walter would never have a chance to implement all of them himself, which might be good, if everything bearophile suggests got into the language, we would have this major language noone would ever be able to learn, nor

Re: GCC 4.6

2010-11-24 Thread Emil Madsen
On 25 November 2010 00:25, Walter Bright newshou...@digitalmars.com wrote: Emil Madsen wrote: And yea, bearophile brings up a lot of nice features, and Walter would never have a chance to implement all of them himself, which might be good, if everything bearophile suggests got into the

Re: D in accounting program

2010-11-24 Thread Adam D. Ruppe
Mengu asked: are you just using cgi or are you using fastcgi? Plain CGI. I haven't had any performance issues* despite not even trying so I'm keeping everything simple. Just adding an extra constructor for FastCGI should be possible (I have an overloaded constructor for raw HTTP data already)

Re: GCC 4.6

2010-11-24 Thread Iain Buclaw
== Quote from Emil Madsen (sove...@gmail.com)'s article --90e6ba539f3ee121840495d5033f Content-Type: text/plain; charset=ISO-8859-1 On 25 November 2010 00:25, Walter Bright newshou...@digitalmars.com wrote: Emil Madsen wrote: And yea, bearophile brings up a lot of nice features, and

Proposal: User Code Bug Tracking

2010-11-24 Thread dsimcha
There's been a lot of discussion on this newsgroup about improvements that can be made to D to prevent bugs. The problem is that noone really has stepped back and looked at what the biggest causes of bugs in D are. I therefore propose that we create a website where people can post a few basic

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-24 Thread Roman Ivanov
On 11/9/2010 1:36 AM, spir wrote: On Tue, 9 Nov 2010 00:17:48 -0500 Nick Sabalausky a...@a.a wrote: People at Facebook told me that the adoption of D inside the company might be helped if they could simply write ?d ... ? to insert D code into a page. I'm not sure how difficult such a

Re: std.algorithm.remove and principle of least astonishment

2010-11-24 Thread foobar
Bruno Medeiros Wrote: On 23/11/2010 18:15, foobar wrote: It's simple, a mediocre language (Java) with mediocre libraries has orders of magnitude more success than C++ with it's libs fine tuned for performance. Why? Java has mediocre libraries?? Are you serious about that opinion?

public imports and template functions

2010-11-24 Thread Jonathan M Davis
Am I correct in my understanding that if you wish a template function which is imported from another module to compile correctly without requiring other imports in the module that your using the function in that the module with the template function needs to publically import all of the

Re: public imports and template functions

2010-11-24 Thread Jonathan M Davis
On Wednesday 24 November 2010 00:18:44 Don wrote: Jonathan M Davis wrote: Am I correct in my understanding that if you wish a template function which is imported from another module to compile correctly without requiring other imports in the module that your using the function in that the

Re: static constructor not working with WinMain GUI app

2010-11-24 Thread Andrej Mitrovic
This means the windows sample code that comes with DMD in the samples folder has to be updated, that's where I took the template from. Thanks. On 11/23/10, Simen kjaeraas simen.kja...@gmail.com wrote: Andrej Mitrovic n...@none.none wrote: maintest.def: EXETYPE NT SUBSYSTEM WINDOWS

Re: static constructor not working with WinMain GUI app

2010-11-24 Thread Andrej Mitrovic
Ok I've filed a bug report and the fix: http://d.puremagic.com/issues/show_bug.cgi?id=5268 On 11/24/10, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: This means the windows sample code that comes with DMD in the samples folder has to be updated, that's where I took the template from.

Re: Undefined Symbol: ModuleInfo when Linking DLL Test Program

2010-11-24 Thread GeorgeToth
Found my own mistake: In module Test0 the import of std.stdio caused the error. There was nothing in the exports which required elements of std.stdio and somehow (don't know why) it caused ModuleInfo to be incomplete or omitted.

[Issue 5264] x86_64 changes for druntime 2

2010-11-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5264 --- Comment #2 from Brad Roberts bra...@puremagic.com 2010-11-24 01:35:00 PST --- ok, debugging #3. There's actually a couple of different assert locations, though I suspect they're all related. If the fix for this reduction doesn't solve

[Issue 5264] x86_64 changes for druntime 2

2010-11-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5264 --- Comment #3 from Brad Roberts bra...@puremagic.com 2010-11-24 02:32:54 PST --- for #3, call cleanup code in cod1.c funccall(): 2936 if (tym1 == TYhfunc) 2937 { // Hidden parameter is popped off by the callee 2938

[Issue 5265] New: std.array.back does not work correctly for wchar-based arrays

2010-11-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5265 Summary: std.array.back does not work correctly for wchar-based arrays Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal

  1   2   >