Re: std.process Accepted!

2013-04-21 Thread John Colvin
On Saturday, 20 April 2013 at 15:55:30 UTC, Jesse Phillips wrote: For now I say we continue as before, and work toward this new approach. Being relatively new to this community, what is the status quo for including new modules / rewrites of old modules? At some point in the next few days

Re: std.process Accepted!

2013-04-21 Thread Nick Sabalausky
On Sun, 21 Apr 2013 13:23:21 +0200 John Colvin john.loughran.col...@gmail.com wrote: At some point in the next few days will std.process just become the new version? In Git master, yes. And then it'll be part of the next official DMD release (2.063) whenever that comes out.

Re: std.process Accepted!

2013-04-21 Thread John Colvin
On Sunday, 21 April 2013 at 18:55:06 UTC, Nick Sabalausky wrote: On Sun, 21 Apr 2013 13:23:21 +0200 John Colvin john.loughran.col...@gmail.com wrote: At some point in the next few days will std.process just become the new version? In Git master, yes. And then it'll be part of the next

Re: Guigle openGL GUI on GIT

2013-04-21 Thread Alexandr Druzhinin
05.04.2013 6:04, Stephen Jones пишет: https://github.com/Ste3e/Guigle/ is the link. The wiki has been written. If it is not viewable it will be that I have done something wrong, or have not done something I should with GIT... it is new to me. I was thinking there may be a problem getting Guigle

Re: DConf 2013 official car/room sharing thread

2013-04-21 Thread Lionello Lunesu
Andrei Alexandrescu wrote in message news:kk6llv$29sl$1...@digitalmars.com... I'll stay at Aloft (http://goo.gl/CHmzw) and will drive a compact rental. Will gladly pick up people to and fro that hotel. Andrei Hey Andrei, you still got room in your car? I'm thinking of staying at a hotel

Abstract syntax tree manipulation

2013-04-21 Thread Suminda Dharmasena
Hi, Since macro is reserved perhaps D can introduce AST manipulating macros. Suminda

Re: DIP 36: Rvalue References

2013-04-21 Thread Namespace
Well perhaps I am too hasty. I'll wait and see what is happening. BTW: Thanks for the support. ;)

Re: Abstract syntax tree manipulation

2013-04-21 Thread Jacob Carlborg
On 2013-04-21 09:57, Suminda Dharmasena wrote: Hi, Since macro is reserved perhaps D can introduce AST manipulating macros. Suminda The original idea with the macro keyword was to introduce AST macros. Although nothing has happened yet. People have been talking about it from time to time

Re: Abstract syntax tree manipulation

2013-04-21 Thread Belzurix
On Sunday, 21 April 2013 at 07:57:51 UTC, Suminda Dharmasena wrote: Hi, Since macro is reserved perhaps D can introduce AST manipulating macros. Suminda Hi! As far as I can remember, macros have been deferred to D3 because it has mixins and templates, so one can easily manipulate code in

Re: DIP 36: Rvalue References

2013-04-21 Thread Dicebot
On Sunday, 21 April 2013 at 01:04:04 UTC, deadalnix wrote: On Saturday, 20 April 2013 at 18:00:50 UTC, Namespace wrote: The fact is, there's much more to any change than simply implementing it. Changes break unexpected things. There are always extra corner cases not considered. There are

Re: DIP 36: Rvalue References

2013-04-21 Thread Dicebot
On Sunday, 21 April 2013 at 02:50:02 UTC, deadalnix wrote: If that is your concern then the DIP36 is a very bad answer to it : - It require extra anotation, which wont be added most of the time. Automatic annotations are indicators of broken language. If someone will forget this one, he

From C++14 and Java 1.8

2013-04-21 Thread bearophile
Through Reddit I've seen this interesting report about C++14: http://isocpp.org/blog/2013/04/trip-report-iso-c-spring-2013-meeting Variable templates: sometimes in D I've felt a little desire for a shorter syntax, a templated alias: alias Foo(T) = Bar!(T, red); But in the end I think this

Re: From C++14 and Java 1.8

2013-04-21 Thread dsimcha
On Sunday, 21 April 2013 at 12:08:54 UTC, bearophile wrote: Arrays#parallelSort uses Fork/Join framework introduced in Java 7 to assign the sorting tasks to multiple threads available in the thread pool. This is called eating your own dog food. Fork/Join implements a work stealing algorithm

Re: From C++14 and Java 1.8

2013-04-21 Thread bearophile
dsimcha: I abandoned because I was disappointed at how poorly most of it was scaling in practice, probably due to memory bandwidth. Then do you know why the Java version seems to be advantageous (with four cores)? Bye, bearophile

Re: From C++14 and Java 1.8

2013-04-21 Thread dsimcha
On Sunday, 21 April 2013 at 13:30:32 UTC, bearophile wrote: dsimcha: I abandoned because I was disappointed at how poorly most of it was scaling in practice, probably due to memory bandwidth. Then do you know why the Java version seems to be advantageous (with four cores)? Bye, bearophile

Compiler / Language Infrastructure

2013-04-21 Thread Suminda Dharmasena
Hi, Since Digitalmars has expertise in C++ and D it can release the compiler project such that: - separate grammar definition - parser - compile to intermediate like LLVM but using the Digitalmars infrastructure This will help other language projects re use this technology. Suminda

Re: Compiler / Language Infrastructure

2013-04-21 Thread John Colvin
On Sunday, 21 April 2013 at 15:09:48 UTC, Suminda Dharmasena wrote: - separate grammar definition This is being worked on: http://forum.dlang.org/thread/iabqtohohovkxjwtw...@forum.dlang.org Digitalmars (i.e. Walter Bright) is a big part of D development but it is primarily a community

Re: From C++14 and Java 1.8

2013-04-21 Thread bearophile
Dynamic Arrays: they replace the variable-sized stack-allocated arrays of C99. I'd like something like this in D2 (Issue 9832) with a better integration with the type system. With some more changes: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130415/078426.html Bye,

Re: DIP 36: Rvalue References

2013-04-21 Thread Zach the Mystic
On Sunday, 21 April 2013 at 02:50:02 UTC, deadalnix wrote: If that is your concern then the DIP36 is a very bad answer to it : - It require extra anotation, which wont be added most of the time. It's possible to make it an error to pass a stack variable to a non-'scope' ref parameter. Or to

Re: DIP 36: Rvalue References

2013-04-21 Thread Zach the Mystic
On Sunday, 21 April 2013 at 10:55:37 UTC, Dicebot wrote: The DIP for instance, consider that const scope ref is semantically equivalent to pass by value, when it isn't (and not only for performance reasons, but for aliasing reasons). Nothing is considered about it. At least some objections

Re: DIP 36: Rvalue References

2013-04-21 Thread Zach the Mystic
On Sunday, 21 April 2013 at 16:08:55 UTC, Zach the Mystic wrote: Would there be a difference between the type of o and o2, or of o2 and o3? There is inconsistency, but it would be nice to find use cases which make this inconsistency truly unworkable with other things in the language. ('nice'

Re: DIP 36: Rvalue References

2013-04-21 Thread deadalnix
On Sunday, 21 April 2013 at 16:02:35 UTC, Zach the Mystic wrote: On Sunday, 21 April 2013 at 02:50:02 UTC, deadalnix wrote: If that is your concern then the DIP36 is a very bad answer to it : - It require extra anotation, which wont be added most of the time. It's possible to make it an

Re: DIP 36: Rvalue References

2013-04-21 Thread Timon Gehr
On 04/21/2013 02:51 AM, Manu wrote: On 21 April 2013 06:51, Timon Gehr timon.g...@gmx.ch mailto:timon.g...@gmx.ch wrote: On 04/20/2013 05:56 PM, Dicebot wrote: You miss quite an important point - DIP36 does not add new feature. It partially defines existing feature

Re: DIP 36: Rvalue References

2013-04-21 Thread Timon Gehr
On 04/21/2013 06:27 AM, Zach the Mystic wrote: ... Yeah, that's kind of what I meant when I said it's a two-for-one deal. You get to pass temps, and you get safety checking too. I prefer to buy separate products separately.

alias symbols in object files

2013-04-21 Thread John Colvin
test.d: extern (C): void foo(){} alias foo bar; $dmd -c test.d $nm test.o t D _D11test12__ModuleInfoZ w _d_dso_registry U _Dmodule_ref T foo Surely the aliased symbol should appear in the object file, or am

Re: alias symbols in object files

2013-04-21 Thread Andrej Mitrovic
On 4/21/13, John Colvin john.loughran.col...@gmail.com wrote: Surely the aliased symbol should appear in the object file, or am I missing something? Aliases are a purely compile-time feature. Wherever they're used it's as if the compiler rewrote the alias with the aliased symbol.

Re: alias symbols in object files

2013-04-21 Thread John Colvin
On Sunday, 21 April 2013 at 18:54:27 UTC, John Colvin wrote: test.d: extern (C): void foo(){} alias foo bar; $dmd -c test.d $nm test.o t D _D11test12__ModuleInfoZ w _d_dso_registry U _Dmodule_ref T foo

Re: alias symbols in object files

2013-04-21 Thread Peter Alexander
On Sunday, 21 April 2013 at 18:54:27 UTC, John Colvin wrote: Surely the aliased symbol should appear in the object file, or am I missing something? What would you expect it to look like in the object file? A duplicate of the foo function?

Re: alias symbols in object files

2013-04-21 Thread John Colvin
On Sunday, 21 April 2013 at 19:22:27 UTC, Peter Alexander wrote: On Sunday, 21 April 2013 at 18:54:27 UTC, John Colvin wrote: Surely the aliased symbol should appear in the object file, or am I missing something? What would you expect it to look like in the object file? A duplicate of the

Stable D version?

2013-04-21 Thread Tourist
Hi guys, I've been following the forums for a while. I'm interested in looking into D, but I understand that currently it changes often, and is not very reliable. I've also read that there's a new release model planned, where a stable version of the language is released every year or two. Is

Re: Abstract syntax tree manipulation

2013-04-21 Thread Jacob Carlborg
On 2013-04-21 12:36, Belzurix wrote: Hi! As far as I can remember, macros have been deferred to D3 because it has mixins and templates, so one can easily manipulate code in D. However, it's been long time since there was serious discussion about the implementation details. I'm happy to see

Re: DIP 36: Rvalue References

2013-04-21 Thread Manu
On 22 April 2013 03:39, Timon Gehr timon.g...@gmx.ch wrote: On 04/21/2013 02:51 AM, Manu wrote: On 21 April 2013 06:51, Timon Gehr timon.g...@gmx.ch mailto:timon.g...@gmx.ch wrote: On 04/20/2013 05:56 PM, Dicebot wrote: You miss quite an important point - DIP36 does not add

Re: DIP 36: Rvalue References

2013-04-21 Thread Manu
On 22 April 2013 04:23, Timon Gehr timon.g...@gmx.ch wrote: On 04/21/2013 06:27 AM, Zach the Mystic wrote: ... Yeah, that's kind of what I meant when I said it's a two-for-one deal. You get to pass temps, and you get safety checking too. I prefer to buy separate products separately.

template mixin function name mangling

2013-04-21 Thread John Colvin
Apologies for another question so short after the previous one. tempmix.d: mixin template Foo() { extern(C) void foo() {} } mixin Foo!(); extern(C) void bar() {} $dmd -c tempmix.d $nm tempmix.o t T bar D _D7tempmix12__ModuleInfoZ

Re: DIP 36: Rvalue References

2013-04-21 Thread Timon Gehr
On 04/21/2013 10:38 PM, Manu wrote: ... That's not what scope does. Scope promises that the variables will not escape the scope. That is the intention, but this formulation is awfully imprecise. Hence nothing has been implemented. void foo(scope ref int

Re: Stable D version?

2013-04-21 Thread Jesse Phillips
On Sunday, 21 April 2013 at 19:58:14 UTC, Tourist wrote: Hi guys, I've been following the forums for a while. I'm interested in looking into D, but I understand that currently it changes often, and is not very reliable. I've also read that there's a new release model planned, where a stable

Re: DIP 36: Rvalue References

2013-04-21 Thread Zach the Mystic
On Sunday, 21 April 2013 at 22:16:14 UTC, Timon Gehr wrote: What does 'scope' bind to? How to make it bind to something else (if at all)? I agree this is an issue. We need to enumerate the use cases. Is 'scope' transitive or does it only apply to the first thing it hits? Passing an

Re: Attribute inference for auto functions?

2013-04-21 Thread Zach the Mystic
On Tuesday, 16 April 2013 at 15:22:56 UTC, Andrei Alexandrescu wrote: There's a discussion that may be of interest to the larger community: https://github.com/D-Programming-Language/dmd/pull/1877 Andrei I just want to say I'm pretty gung-ho about the idea of attribute inference. If the

Re: D compile time algorithms implementation

2013-04-21 Thread khurshid
On Saturday, 20 April 2013 at 20:12:18 UTC, Walter Bright wrote: On 4/20/2013 2:27 AM, Peter Alexander wrote: If possible, could you file an enhancement request? It would also be great if you could add your improvement as a pull request on github!

Re: Bug: Accessing return value of type static array with length 1 or 2 by index.

2013-04-21 Thread deed
bug submitted: http://d.puremagic.com/issues/show_bug.cgi?id=9969 Thanks for reporting. By the way, I was compiling for Windows and had only compile time errors.

Re: Win32 + OpenGL bindings

2013-04-21 Thread Jacob Carlborg
On 2013-04-20 12:43, Diggory wrote: Well the opengl module depends on the util module. The util module declares a load of stuff duplicated by the windows module so importing them both without aliasing is impossible. All I want is to import the raw opengl and win32 functions. Derelict is raw

Re: Direlect3 with Mono-D

2013-04-21 Thread Minas Mina
On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote: I have all the needed files to use Direlect3, and I have Mono-D installed on Xamarin, I was wondering how I could put it all together in a project. 1) Do you use windows or linux? 2) Have you built derelict3? 3) If you are using

Re: Win32 + OpenGL bindings

2013-04-21 Thread Diggory
OK, thanks I think I've got the hang of the way linking works now - I was confused about how some things didn't seem to require libs to work, but now I see it's because those things were compiled into druntime.lib which was compiled into phobos.lib. So is this correct, assuming I'm only

Re: Direlect3 with Mono-D

2013-04-21 Thread Dementor561
On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson wrote: On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote: I have all the needed files to use Direlect3, and I have Mono-D installed on Xamarin, I was wondering how I could put it all together in a project. If you want to

Re: Direlect3 with Mono-D

2013-04-21 Thread Roderick Gibson
On Sunday, 21 April 2013 at 15:21:00 UTC, Dementor561 wrote: On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson wrote: On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote: I have all the needed files to use Direlect3, and I have Mono-D installed on Xamarin, I was wondering

Re: Direlect3 with Mono-D

2013-04-21 Thread Roderick Gibson
On Sunday, 21 April 2013 at 15:21:00 UTC, Dementor561 wrote: On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson wrote: On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote: I have all the needed files to use Direlect3, and I have Mono-D installed on Xamarin, I was wondering

Re: Direlect3 with Mono-D

2013-04-21 Thread Dementor561
On Sunday, 21 April 2013 at 18:13:38 UTC, Roderick Gibson wrote: On Sunday, 21 April 2013 at 15:21:00 UTC, Dementor561 wrote: On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson wrote: On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote: I have all the needed files to use

Re: Direlect3 with Mono-D

2013-04-21 Thread Dementor561
Well, sorta. When I add import derelict.glfw3.glfw3; it says the library could not be resolved... Do I need to add something to the library somewhere?

Re: Direlect3 with Mono-D

2013-04-21 Thread Roderick Gibson
On Sunday, 21 April 2013 at 19:49:14 UTC, Dementor561 wrote: Well, sorta. When I add import derelict.glfw3.glfw3; it says the library could not be resolved... Do I need to add something to the library somewhere? Any library you use you have to add to the project linker settings. Derelict3

[Issue 9971] eponymous function is not an lvalue

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9971 --- Comment #6 from Kenji Hara k.hara...@gmail.com 2013-04-20 23:10:56 PDT --- I think this is a bug. Inside template function, the name 'goo' should be resolved to the instantiated function 1st, then rewritten to template 'goo' if needed. For

[Issue 9971] eponymous function is not an lvalue

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9971 --- Comment #7 from Maxim Fomin ma...@maxim-fomin.ru 2013-04-20 23:41:27 PDT --- Yes, you are both right. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 9963] Absurdly Inefficient Codegen For Adding Boolean Predicates

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9963 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 9952] regression(HEAD): Attribute inference for virtual functions breaks subclasses

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9952 --- Comment #2 from github-bugzi...@puremagic.com 2013-04-21 03:26:18 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 9972] New: [asm] missing REX.B when addressing some byte registers

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9972 Summary: [asm] missing REX.B when addressing some byte registers Product: D Version: D2 Platform: x86_64 OS/Version: All Status: NEW Severity: normal

[Issue 9972] [asm] missing REX.B when addressing some byte registers

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9972 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 9965] Wrong Assembly For DIL, SIL Registers

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9965 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment

[Issue 9965] Wrong Assembly For DIL, SIL Registers

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9965 --- Comment #3 from github-bugzi...@puremagic.com 2013-04-21 04:13:51 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 9969] dmd ABI mistake (cfloat static array initialisation)

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9969 Maxim Fomin ma...@maxim-fomin.ru changed: What|Removed |Added Severity|major |critical ---

[Issue 9973] New: ICE for selective import in compiler generated try finally body

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9973 Summary: ICE for selective import in compiler generated try finally body Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 9974] New: immutable class constructor is broken

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9974 Summary: immutable class constructor is broken Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2

[Issue 9975] New: pointsTo asserts because of false pointer in union

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9975 Summary: pointsTo asserts because of false pointer in union Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 9974] immutable class constructor is broken

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9974 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

[Issue 9449] Segmentation fault in main()

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9449 John Colvin john.loughran.col...@gmail.com changed: What|Removed |Added CC|

[Issue 9449] Segmentation fault in main()

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9449 --- Comment #8 from John Colvin john.loughran.col...@gmail.com 2013-04-21 17:27:06 BST --- (In reply to comment #7) (In reply to comment #5) (In reply to comment #4) Seems to be related to bug 8518. Thanks for founding. The root of

[Issue 9449] Segmentation fault in main()

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9449 Maxim Fomin ma...@maxim-fomin.ru changed: What|Removed |Added Severity|normal |critical ---

[Issue 9449] Segmentation fault in main()

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9449 --- Comment #10 from John Colvin john.loughran.col...@gmail.com 2013-04-21 19:56:15 BST --- (In reply to comment #9) (In reply to comment #7) I'm pretty sure the use of void[] in _memset128ii is simply so as to have a 128bit data type.

[Issue 9449] Segmentation fault in main()

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9449 --- Comment #11 from John Colvin john.loughran.col...@gmail.com 2013-04-21 20:11:09 BST --- (In reply to comment #10) There is no D style array passing happening here, static or otherwise, it's just pointers. Sorry, mistake. There is an

[Issue 9965] Wrong Assembly For DIL, SIL Registers

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9965 --- Comment #4 from github-bugzi...@puremagic.com 2013-04-21 12:27:30 PDT --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

[Issue 9974] immutable class constructor is broken

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9974 --- Comment #2 from github-bugzi...@puremagic.com 2013-04-21 12:29:07 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 9941] Allows to return class objects and pointers to the structures, which were created with new.

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9941 --- Comment #2 from Igor Stepanov wazar.leoll...@yahoo.com 2013-04-21 12:59:45 PDT --- (In reply to comment #1) This is currently allowed: class Foo { int f; this(int a) { f = a; } } const foo = new Foo(42); void main() {}

[Issue 9965] Wrong Assembly For DIL, SIL Registers

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9965 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 9974] immutable class constructor is broken

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9974 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 9952] regression(HEAD): Attribute inference for virtual functions breaks subclasses

2013-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9952 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED