Re: [Phoronix] Merging In The GNU D Language Compiler To GCC

2011-10-06 Thread Leandro Lucarella
Andrej Mitrovic, el 6 de octubre a las 00:34 me escribiste: Maybe if this was posted on Reddit it would get some vocal support and give the GNU guys reassurance that D is a sought-after language. Anyway this is great news! Congrats to Iain Buclaw and anyone else who helped. Great news

Re: [Phoronix] Merging In The GNU D Language Compiler To GCC

2011-10-06 Thread Steve Teale
Iain, You've made a cross for yourself there! If you need help with grunt tasks - like a broken piece of D code with a decent description of the problem, or even grunter, I might be able to help. As you know, I've been in those muddy waters before with nobody to even consult. With a guru like

Re: [Phoronix] Merging In The GNU D Language Compiler To GCC

2011-10-06 Thread Trass3r
Just as a matter of interest, how do you rate GDC 2.055 for speed alongside the Linux DMD. Of course it is way faster. You should compare with gcc instead.

Re: std.getopt suggestion

2011-10-06 Thread sclytrack
== Quote from Adam Ruppe (destructiona...@gmail.com)'s article Andrei wrote: link to a few There's mine: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff see database.d and mysql.d for mysql. Also some code for postgres and sqlite in there own modules.

Re: Exchange of possible interest :o)

2011-10-06 Thread Iain Buclaw
== Quote from Sean Kelly (s...@invisibleduck.org)'s article So the next step is a manhunt for Dave F. Or a rewrite of the parts he contr ibuted? Sent from my iPhone No need for a manhunt. :) I've already made contact, and he has agreed to assign copyright to the FSF, and will get started on

Clojure refs

2011-10-06 Thread bearophile
I have found this in a Reddit discussion because I don't know much about Clojure still. I think this abstraction will be worth having in a Phobos module: http://clojure.org/refs Bye, bearophile

Re: Exchange of possible interest :o)

2011-10-06 Thread Walter Bright
On 10/6/2011 12:01 AM, Iain Buclaw wrote: I've already made contact, and he has agreed to assign copyright to the FSF, and will get started on the process of getting a disclaimer from my employer as well. Great news! Please thank David for me.

Re: std.getopt suggestion

2011-10-06 Thread Regan Heath
On Wed, 05 Oct 2011 16:44:31 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 10/5/11 10:27 AM, Regan Heath wrote: I understand the issue, and the point you're making below, and I agree completely. At the same time, this particular change being as simple as it is, and as

Re: Thoughts on improving operators

2011-10-06 Thread Gor Gyolchanyan
I never wanted it to be a part of an identifier. I wanted it to be an overloadable operator. '-' already is an overloadable operator, so it can be put to many uses. '#' is, as i know, used in the shebang and the line specifier. I don't know if it will be unambiguous to use it as an operator. On

Re: how to build up the library..

2011-10-06 Thread Regan Heath
On Thu, 06 Oct 2011 10:44:42 +0100, Regan Heath re...@netmail.co.nz wrote: On Wed, 05 Oct 2011 16:44:31 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 10/5/11 10:27 AM, Regan Heath wrote: I understand the issue, and the point you're making below, and I agree

Re: Thoughts on function names containing arbitrary symbols

2011-10-06 Thread Derek
On Thu, 06 Oct 2011 07:46:44 +1100, Walter Bright newshou...@digitalmars.com wrote: On 10/5/2011 12:54 PM, Jacob Carlborg wrote: Does Scala have the same problem? I don't know enough about Scala to answer. Forth does. -- Derek Parnell Melbourne, Australia

Re: how to build up the library..

2011-10-06 Thread Jacob Carlborg
On 2011-10-06 12:25, Regan Heath wrote: It's obvious from my last post that I think a change should be allowed. I think you'd agree, were it not for the urgent need of other library components. I've been lurking and contributing to this news group on and off for years (since 2005/2006, maybe

Re: Thoughts on function names containing arbitrary symbols

2011-10-06 Thread Dmitry Olshansky
On 06.10.2011 15:28, Derek wrote: On Thu, 06 Oct 2011 07:46:44 +1100, Walter Bright newshou...@digitalmars.com wrote: On 10/5/2011 12:54 PM, Jacob Carlborg wrote: Does Scala have the same problem? I don't know enough about Scala to answer. Forth does. AFAIK Forth doesn't have any

Re: std.getopt suggestion

2011-10-06 Thread Andrei Alexandrescu
On 10/6/11 4:44 AM, Regan Heath wrote: On Wed, 05 Oct 2011 16:44:31 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 10/5/11 10:27 AM, Regan Heath wrote: I understand the issue, and the point you're making below, and I agree completely. At the same time, this particular

Re: how to build up the library..

2011-10-06 Thread Andrei Alexandrescu
On 10/6/11 5:25 AM, Regan Heath wrote: I've been lurking and contributing to this news group on and off for years (since 2005/2006, maybe earlier). But, in all that time I have contributed nothing to Phobos. I have contributed a set of digest/hashing routines to Tango, because at the time Phobos

about const and immutable (again)

2011-10-06 Thread Gor Gyolchanyan
Hi, guys. I just made my handy parsing struct take an arbitrary range, instead of a dstring and immediately rain head-first into a brick wall of errors. There's this function: bool next(bool function(ElementType!InputType) pred) , where InputType is bound to be dstring and which gets called

Re: about const and immutable (again)

2011-10-06 Thread Gor Gyolchanyan
Almost forgot: the same question holds for const. On Thu, Oct 6, 2011 at 6:56 PM, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: Hi, guys. I just made my handy parsing struct take an arbitrary range, instead of a dstring and immediately rain head-first into a brick wall of errors.

Re: how to build up the library..

2011-10-06 Thread Steve Teale
Andrei, Are there guidelines for the Phobos process? I have put a fair amount of work, two years ago and recently, into a piece for accessing MySQL via D. I'm looking at this as a bottom-up investigation into what might be a more generalized interface for database access. I've got to the point

Re: about const and immutable (again)

2011-10-06 Thread Steven Schveighoffer
On Thu, 06 Oct 2011 10:56:43 -0400, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: Hi, guys. I just made my handy parsing struct take an arbitrary range, instead of a dstring and immediately rain head-first into a brick wall of errors. There's this function: bool next(bool

Thread-Local GC as an Allocator?

2011-10-06 Thread dsimcha
I've been lurking a little on the recent discussions about thread-local garbage collection and my general opinion is that implicitly thread-local GC makes it too easy to shoot oneself in the foot if using non-SafeD constructs like casting to shared/immutable or using std.parallelism or

Re: how to build up the library..

2011-10-06 Thread Regan Heath
On Thu, 06 Oct 2011 15:47:03 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 10/6/11 5:25 AM, Regan Heath wrote: I've been lurking and contributing to this news group on and off for years (since 2005/2006, maybe earlier). But, in all that time I have contributed nothing to

Re: about const and immutable (again)

2011-10-06 Thread Gor Gyolchanyan
I see. Thanks for the detailed answer. I love D's support for functional programming. Everything about it, except the readability of function and delegate literals: * Function and delegate literals are way too long because of the function and delegate keywords being too long to be used inside

Re: Thread-Local GC as an Allocator?

2011-10-06 Thread deadalnix
Le 06/10/2011 18:06, dsimcha a écrit : I've been lurking a little on the recent discussions about thread-local garbage collection and my general opinion is that implicitly thread-local GC makes it too easy to shoot oneself in the foot if using non-SafeD constructs like casting to

Re: about const and immutable (again)

2011-10-06 Thread Steven Schveighoffer
On Thu, 06 Oct 2011 12:27:16 -0400, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: I see. Thanks for the detailed answer. I should clarify one point, I realized I am somewhat inaccurate on the reason the type is set to immutable(dchar). In fact, nobody actually wrote the

Re: Thread-Local GC as an Allocator?

2011-10-06 Thread dsimcha
== Quote from deadalnix (deadal...@gmail.com)'s article The problem with the global GC is that it will stop all thread during the whole collection. Having TL GC is interesting only if you have mostly TL garbages. So it would become necessary to use the allocator everywhere. Which isn't very

Re: how to build up the library..

2011-10-06 Thread Jesse Phillips
Regan Heath Wrote: That's just it however, I am not generous enough with my time to be of use to you/D/phobos. I spend my free time doing other things, and not working on the code I have which could be of use. I suspect there are quite a number of people out there who are just like

Re: Exchange of possible interest :o)

2011-10-06 Thread maarten van damme
gdc compile d2 only if you compile it with the -d2 flag. will this included version compile d1 or d2?

Re: how to build up the library..

2011-10-06 Thread Jesse Phillips
Steve Teale Wrote: Andrei, Are there guidelines for the Phobos process? I have put a fair amount of work, two years ago and recently, into a piece for accessing MySQL via D. I'm looking at this as a bottom-up investigation into what might be a more generalized interface for database

Re: Exchange of possible interest :o)

2011-10-06 Thread Iain Buclaw
== Quote from maarten van damme (maartenvd1...@gmail.com)'s article --00504502c305eaf45304aea6c884 Content-Type: text/plain; charset=ISO-8859-1 gdc compile d2 only if you compile it with the -d2 flag. will this included version compile d1 or d2? --00504502c305eaf45304aea6c884 Content-Type:

Re: Exchange of possible interest :o)

2011-10-06 Thread Fawzi Mohamed
really a great news, I am looking forward to this. Fawzi

Color your terminal's output

2011-10-06 Thread Jens Mueller
Hi, I started writing a simple module to color terminal output some time ago. In a recent thread people seemed interested in having such functionality. I cleaned up this code and kindly ask whether such a module is considered a useful addition. On Posix systems it uses 4 Curses functions and on

A statically typed language I'd actually want to use

2011-10-06 Thread Samuel Lampa
I don't know, but if I'm not mistaken, you D guys might have some inputs on this (seemingly quite popular) blog post by a python guy being frustrated with what C++ and the likes can provide: http://alexgaynor.net/2010/nov/04/staticly-typed-language-id-actually-want-use/#disqus_thread (was

Re: Garbage collection book

2011-10-06 Thread Martin Nowak
On Thu, 06 Oct 2011 00:08:08 +0200, Jonathan M Davis jmdavisp...@gmx.com wrote: On Wednesday, October 05, 2011 13:39 Walter Bright wrote: On 10/5/2011 12:31 PM, Jonathan M Davis wrote: And D's GC can use all of the help that it can get. It's not that bad. For one thing, it's reliable.

Re: Garbage collection book

2011-10-06 Thread Walter Bright
On 10/6/2011 3:28 PM, Martin Nowak wrote: More realistically, are there any rough ideas how to support moving collectors? The idea I used long ago was to move objects for which the only references to them are unambiguous, which means those unambiguous refs can be updated to point to the new

How much to do

2011-10-06 Thread bearophile
Recently lot of work has being done about inout, and I think it is now usable in D2. So this has made me ask how much needs to be done (in D language and/or Phobos) to allow the correct compilation of exactly this useless demo program (I think it is correct): import std.algorithm, std.range,

Re: Garbage collection book

2011-10-06 Thread Martin Nowak
On Fri, 07 Oct 2011 00:44:10 +0200, Walter Bright newshou...@digitalmars.com wrote: On 10/6/2011 3:28 PM, Martin Nowak wrote: More realistically, are there any rough ideas how to support moving collectors? The idea I used long ago was to move objects for which the only references to

Re: how to build up the library..

2011-10-06 Thread Andrei Alexandrescu
On 10/6/11 10:27 AM, Steve Teale wrote: Andrei, Are there guidelines for the Phobos process? We follow the Boost review process: http://www.boost.org/community/reviews.html I have put a fair amount of work, two years ago and recently, into a piece for accessing MySQL via D. I'm looking at

Re: Garbage collection book

2011-10-06 Thread Walter Bright
On 10/6/2011 4:48 PM, Martin Nowak wrote: Which isn't wanted because of the binary size, right? It is a substantial size problem. There's also a performance issue - the gc has to read those tables and iterate in a non-trivial way. For example, if a struct has an embedded static array of

Re: how to build up the library..

2011-10-06 Thread Nick Sabalausky
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:j6ljvs$1if5$1...@digitalmars.com... For D in particular, I think the range aspect is secondary. Probably it will be more important to interoperate with Variant. Most APIs store columns in a Variant structure that

Re: Garbage collection book

2011-10-06 Thread Martin Nowak
On Fri, 07 Oct 2011 03:32:13 +0200, Walter Bright newshou...@digitalmars.com wrote: On 10/6/2011 4:48 PM, Martin Nowak wrote: Which isn't wanted because of the binary size, right? It is a substantial size problem. There's also a performance issue - the gc has to read those tables and

Re: Next in the Review Queue?

2011-10-06 Thread Jonathan M Davis
On Sunday, October 02, 2011 23:27:35 Jonathan M Davis wrote: The review for the region allocator has completed, so we need to choos something else to review now. I believe that the current items in the review queue which are ready for review are - std.log - a CSV parsing module by Jesse

Re: Thread-Local GC as an Allocator?

2011-10-06 Thread Robert Jacques
On Thu, 06 Oct 2011 15:04:56 -0400, dsimcha dsim...@yahoo.com wrote: == Quote from deadalnix (deadal...@gmail.com)'s article The problem with the global GC is that it will stop all thread during the whole collection. Having TL GC is interesting only if you have mostly TL garbages. So it would

Re: how to build up the library..

2011-10-06 Thread Piotr Szturmaj
Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:j6ljvs$1if5$1...@digitalmars.com... For D in particular, I think the range aspect is secondary. Probably it will be more important to interoperate with Variant. Most APIs store columns in a Variant

Re: Next in the Review Queue?

2011-10-06 Thread Andrei Alexandrescu
On 10/6/11 9:17 PM, Jonathan M Davis wrote: On Sunday, October 02, 2011 23:27:35 Jonathan M Davis wrote: The review for the region allocator has completed, so we need to choos something else to review now. I believe that the current items in the review queue which are ready for review are -

Re: how to build up the library..

2011-10-06 Thread Andrei Alexandrescu
On 10/6/11 8:55 PM, Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:j6ljvs$1if5$1...@digitalmars.com... For D in particular, I think the range aspect is secondary. Probably it will be more important to interoperate with Variant. Most APIs store

D on GDC announced on reddit

2011-10-06 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/l3tk5/merging_in_the_gnu_d_language_compiler_to_gcc/ Andrei

Re: how to build up the library..

2011-10-06 Thread Steve Teale
Andrei, I was thinking the same thing about the C level interface sometime in the middle of last night. A straight translation of mysqld could be put there almost immediately. I have to make myself translate the character set stuff, and add that, but it's probably only a days work. As for the

Re: Implicit cast to immutable

2011-10-06 Thread Christophe
bearophile , dans le message (digitalmars.D.learn:29961), a écrit : Andrej Mitrovic: Maybe: immutable(int[]) foo(in int[] x) pure { return new immutable(int[1]); } void main() {} I'd like to know why the code in my original post doesn't compile. I suspect it's a DMD bug, but I

Re: Implicit cast to immutable

2011-10-06 Thread bearophile
Christophe: That is very consistent, so I don't think this should be considered as a bug. There may be an improvement to ask to make the compiler able to check when the cast to immutable is safe, but I don't think there is a bug. The compiler already performs such checks, in this case it

Re: Implicit cast to immutable

2011-10-06 Thread Steven Schveighoffer
On Wed, 05 Oct 2011 19:19:37 -0400, bearophile bearophileh...@lycos.com wrote: Do you know why this program doesn't compile (with DMD 2.056head)? immutable(int[]) foo(in int[] x) pure { return new int[1]; } void main() {} It gives: test.d(2): Error: cannot implicitly convert

Stack Overflow error missing

2011-10-06 Thread Andrej Mitrovic
I'm fairly sure this used to give me a stack overflow error: void test() { test(); } void main() { test(); } Now it only returns exit code -1073741819. Could this be related to how WinXP managers error reporting? It's possible that I have some error reporting service disabled, but I'll

Re: Stack Overflow error missing

2011-10-06 Thread Jonathan M Davis
On Friday, October 07, 2011 05:28:39 Andrej Mitrovic wrote: I'm fairly sure this used to give me a stack overflow error: void test() { test(); } void main() { test(); } Now it only returns exit code -1073741819. Could this be related to how WinXP managers error reporting?

[Issue 6087] typeof(this) doesn't work outside member function

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6087 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #2

[Issue 6695] typeof(this) does not take into account const/immutable attributes inside member functions

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6695 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #11

[Issue 4823] CodeView: Thread local variables are stored as shared globals

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4823 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 6695] typeof(this) does not take into account const/immutable attributes inside member functions

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6695 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6087] typeof(this) doesn't work outside member function

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6087 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4022] [CTFE] AA get

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4022 Don clugd...@yahoo.com.au changed: What|Removed |Added Version|D1 D2 |D2 --- Comment #1 from Don

[Issue 6776] New: attributes injected via pure template mixin but not class mixin

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6776 Summary: attributes injected via pure template mixin but not class mixin Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity:

[Issue 6777] New: alias this + cast(void*) == bug

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6777 Summary: alias this + cast(void*) == bug Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal

[Issue 4454] Can't implicitly cast static arrays of primitives to immutable

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4454 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2011-10-06 13:52:30 PDT --- Remove dependency to std.traits. private template staticLength(tuple...) { enum size_t staticLength = tuple.length; } template ReturnType(func...) if

[Issue 4454] Can't implicitly cast static arrays of primitives to immutable

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4454 --- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-10-06 13:56:53 PDT --- (In reply to comment #1) [snip] Sorry, I missed posting issue page. Please ignore comment #1. -- Configure issuemail:

[Issue 6774] Assertion failure: '0' on line 1117 in file 'glue.c'

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice-on-invalid-code

[Issue 6770] inout is allowed on fields

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6770 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6773] inout variable should not be modifiable

2011-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6773 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED