Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Paulo Pinto via Digitalmars-d
On Sunday, 22 February 2015 at 00:43:47 UTC, Manu wrote: On 22 February 2015 at 05:20, JN via Digitalmars-d wrote: https://developer.apple.com/news/?id=02202015a Interesting... Apple is dropping GC in favor of automatic reference counting. What are the benefits of ARC over GC? Is it just abo

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread weaselcat via Digitalmars-d
On Sunday, 22 February 2015 at 06:07:02 UTC, weaselcat wrote: On Sunday, 22 February 2015 at 02:14:04 UTC, Walter Bright wrote: On 2/21/2015 4:43 PM, Manu via Digitalmars-d wrote: D's GC is terrible, and after 6 years hanging out in this place, I have seen precisely zero development on the GC f

Re: Please tell me this is a bug?

2015-02-21 Thread deadalnix via Digitalmars-d
On Sunday, 22 February 2015 at 02:27:30 UTC, Peter Alexander wrote: On Sunday, 22 February 2015 at 01:24:09 UTC, Almighty Bob wrote: a += b; // Compiles with no ERROR! Please tell me that's a bug? Not a bug. From spec: http://dlang.org/expression.html#AssignExpression Assignment operator ex

Re: Please tell me this is a bug?

2015-02-21 Thread deadalnix via Digitalmars-d
On Sunday, 22 February 2015 at 02:52:47 UTC, Peter Alexander wrote: On Sunday, 22 February 2015 at 02:35:02 UTC, Adam D. Ruppe wrote: On Sunday, 22 February 2015 at 02:27:30 UTC, Peter Alexander wrote: Seems questionable to me. Anyone know the rationale? I actually agree it is a bit questiona

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread deadalnix via Digitalmars-d
On Sunday, 22 February 2015 at 06:37:45 UTC, Walter Bright wrote: On 2/21/2015 10:07 PM, weaselcat wrote: Excuse my ignorance,(I read the DIP btw) How does 'return ref' address issues like http://forum.dlang.org/thread/pagpusgpyhlhoipld...@forum.dlang.org#post-ewuwphzmubtmykfsywuw:40forum.dlang.

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Walter Bright via Digitalmars-d
On 2/21/2015 10:07 PM, weaselcat wrote: Excuse my ignorance,(I read the DIP btw) How does 'return ref' address issues like http://forum.dlang.org/thread/pagpusgpyhlhoipld...@forum.dlang.org#post-ewuwphzmubtmykfsywuw:40forum.dlang.org ? The short answer, is your ref types never expose a raw poin

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread weaselcat via Digitalmars-d
On Sunday, 22 February 2015 at 02:14:04 UTC, Walter Bright wrote: On 2/21/2015 4:43 PM, Manu via Digitalmars-d wrote: D's GC is terrible, and after 6 years hanging out in this place, I have seen precisely zero development on the GC front. Nobody can even imagine, let alone successfully implemen

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites.

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread deadalnix via Digitalmars-d
On Sunday, 22 February 2015 at 00:43:47 UTC, Manu wrote: I personally think ARC in D is the only way forwards. That is an unpopular opinion however... although I think I'm just being realistic ;) I've considered adding support for it in SDC in the future, but man, reading the ARC spec fells

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 February 2015 at 22:13:09 UTC, Peter Alexander wrote: malloc+free can be trusted if wrapped in something like a ref counted pointer, no? Foo bazoom; class Foo { void bar() { bazoom = this; } } void foo() { RefCounted!Foo f = ... f.bar(); // bazoom

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"Manu via Digitalmars-d" wrote in message news:mailman.7037.1424565826.9932.digitalmar...@puremagic.com... I personally think ARC in D is the only way forwards. That is an unpopular opinion however... although I think I'm just being realistic ;) A big part of why it's unpopular is that nobod

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"Shammah Chancellor" wrote in message news:mcb4nf$2kd5$1...@digitalmars.com... Awesome! Now those of us who don't want to work in C++ can start helping? Possibly? It will still be a while before development switches to D, at the moment all patches still need to be against the C++ source. Y

Re: Stackless resumable functions

2015-02-21 Thread ketmar via Digitalmars-d
On Sat, 21 Feb 2015 21:19:32 +, bitwise wrote: p.s. i think you will need to so some housekeeping in "wrapping delegate", of course. it depends of compiler internals though, and from codegen details. signature.asc Description: PGP signature

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"safety0ff" wrote in message news:shcmppjlvivoybbyn...@forum.dlang.org... Congrats! Does version=GC need any additional work? Yes, version=GC is still broken. It should be enough to hook C++ new/delete and fix a few malloc vs rmem.malloc issues. All of the frontend and root (except respo

Re: Stackless resumable functions

2015-02-21 Thread ketmar via Digitalmars-d
On Sat, 21 Feb 2015 21:19:32 +, bitwise wrote: > Input on this would be appreciated. it seems to me that you can "abuse" delegates for this (i mean the underlying "fat pointer"). resumable function can create closure (i think all the code for this is already here), "resume address" pointer

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"Andrei Alexandrescu" wrote in message news:mcb28b$2iab$1...@digitalmars.com... Fantastic. Thanks for hacking at this for so long. I assume going forward things will be easier because we won't accept pulls that break ddmd? Yes, once everything has been moved into master the autotester will p

Re: Please tell me this is a bug?

2015-02-21 Thread ketmar via Digitalmars-d
On Sun, 22 Feb 2015 02:27:29 +, Peter Alexander wrote: > On Sunday, 22 February 2015 at 01:24:09 UTC, Almighty Bob wrote: >> a += b; // Compiles with no ERROR! >> >> Please tell me that's a bug? > > Not a bug. From spec: > > http://dlang.org/expression.html#AssignExpression >> Assignment ope

Re: Please tell me this is a bug?

2015-02-21 Thread ketmar via Digitalmars-d
On Sun, 22 Feb 2015 03:15:25 +, ketmar wrote: ooops. it compiles 'cause it's ok, and i'm outsmarted myself. nevermind. signature.asc Description: PGP signature

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"Suliman" wrote in message news:daeyakftojagfwtes...@forum.dlang.org... Does it's mean that next release of DMD would have name DDMD? Or it would be two branch at first time DMD and DDMD? Or DDMD would be renamed to DMD? Currently they're in two different branches, soon work will start to mov

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"Jeremy DeHaan" wrote in message news:wsowtbjrocqkdpnhf...@forum.dlang.org... This is awesome! Does that mean we're going to see a DDMD release for 2.067? It's possible if someone wants to update the release scripts and coordinate with Martin.

Re: Please tell me this is a bug?

2015-02-21 Thread Peter Alexander via Digitalmars-d
On Sunday, 22 February 2015 at 02:35:02 UTC, Adam D. Ruppe wrote: On Sunday, 22 February 2015 at 02:27:30 UTC, Peter Alexander wrote: Seems questionable to me. Anyone know the rationale? I actually agree it is a bit questionable, but I think the difference is += is, conceptually at least, ato

Re: Please tell me this is a bug?

2015-02-21 Thread amber via Digitalmars-d
On Sunday, 22 February 2015 at 02:35:02 UTC, Adam D. Ruppe wrote: On Sunday, 22 February 2015 at 02:27:30 UTC, Peter Alexander wrote: Seems questionable to me. Anyone know the rationale? I actually agree it is a bit questionable, but I think the difference is += is, conceptually at least, ato

Re: Please tell me this is a bug?

2015-02-21 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 22 February 2015 at 02:27:30 UTC, Peter Alexander wrote: Seems questionable to me. Anyone know the rationale? I actually agree it is a bit questionable, but I think the difference is += is, conceptually at least, atomic - it is a single function, append() instead of two calls, set(

Re: Please tell me this is a bug?

2015-02-21 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 22 February 2015 at 02:15:29 UTC, Almighty Bob wrote: what bothers me is any automatic conversion from float to int. It should never be automatic. Should 5.5 + 5 compile? I suppose it arguably shouldn't but that'd probably be pretty annoying and no information is lost - it can conv

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Walter Bright via Digitalmars-d
On 2/21/2015 6:20 PM, Adam D. Ruppe wrote: On Sunday, 22 February 2015 at 02:14:04 UTC, Walter Bright wrote: With 'return ref', which is now implemented, you can create a memory safe RefCounted type. However, nobody has bothered. Are you up for it? :-) wait what? These things should be on the

Re: Please tell me this is a bug?

2015-02-21 Thread Peter Alexander via Digitalmars-d
On Sunday, 22 February 2015 at 02:15:29 UTC, Almighty Bob wrote: "Assign Expressions: The right operand is implicitly converted to the type of the left operand" which quite clearly is not the case since... a=b; // causes an error. but.. a+=b; // does not. float does not *implicitly* convert

Re: Please tell me this is a bug?

2015-02-21 Thread Peter Alexander via Digitalmars-d
On Sunday, 22 February 2015 at 01:24:09 UTC, Almighty Bob wrote: a += b; // Compiles with no ERROR! Please tell me that's a bug? Not a bug. From spec: http://dlang.org/expression.html#AssignExpression Assignment operator expressions, such as: a op= b are semantically equivalent to: a = ca

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Walter Bright via Digitalmars-d
On 2/21/2015 12:22 PM, deadalnix wrote: You get the usual tradeof of RC vs GC : - RC is more predictable. - RC has less floating garbage, so usually a lower memory foot print. - RC usually increase cache pressure as you need to have reference count ready and hot. - RC behave (very) poorly

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 22 February 2015 at 02:14:04 UTC, Walter Bright wrote: With 'return ref', which is now implemented, you can create a memory safe RefCounted type. However, nobody has bothered. Are you up for it? :-) wait what? These things should be on the changelog! You can't really complain that

Re: Please tell me this is a bug?

2015-02-21 Thread Almighty Bob via Digitalmars-d
On Sunday, 22 February 2015 at 01:32:16 UTC, Adam D. Ruppe wrote: On Sunday, 22 February 2015 at 01:24:09 UTC, Almighty Bob wrote: Please tell me that's a bug? Nope, a is clearly an int in the last case so no conversion is needed. a is an int in all three cases, b is a float in all three ca

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Walter Bright via Digitalmars-d
On 2/21/2015 4:43 PM, Manu via Digitalmars-d wrote: D's GC is terrible, and after 6 years hanging out in this place, I have seen precisely zero development on the GC front. Nobody can even imagine, let alone successfully implement a GC that covers realtime use requirements. Nobody thinks GC is

Re: Please tell me this is a bug?

2015-02-21 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 22 February 2015 at 01:24:09 UTC, Almighty Bob wrote: Please tell me that's a bug? Nope, a is clearly an int in the last case so no conversion is needed.

Please tell me this is a bug?

2015-02-21 Thread Almighty Bob via Digitalmars-d
D version 2.066.1 int a = 42; float b = 19; a = b; // Error: cannot implicitly convert expression (b) of type float to int a = a+b; // Error: cannot implicitly convert expression (b) of type float to int but... a += b; // Compiles with no ERROR! Please tell me that's a bug?

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Paulo Pinto via Digitalmars-d
On Saturday, 21 February 2015 at 19:20:48 UTC, JN wrote: https://developer.apple.com/news/?id=02202015a Interesting... Apple is dropping GC in favor of automatic reference counting. What are the benefits of ARC over GC? Is it just about predictability of resource freeing? Would ARC make sense

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Manu via Digitalmars-d
On 22 February 2015 at 05:20, JN via Digitalmars-d wrote: > https://developer.apple.com/news/?id=02202015a > > Interesting... > > Apple is dropping GC in favor of automatic reference counting. What are the > benefits of ARC over GC? Is it just about predictability of resource > freeing? Would ARC

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Shammah Chancellor via Digitalmars-d
On 2015-02-21 14:02:47 +, Daniel Murphy said: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites. Hopefully in the

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread safety0ff via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites.

Re: D plan to do RAII(Resource Acquisition Is Initialization)?

2015-02-21 Thread Baz via Digitalmars-d
On Saturday, 21 February 2015 at 18:30:18 UTC, Olivier Pisano wrote: On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote: RAII(Resource Acquisition Is Initialization) is a good thing,will D plan to do it? It's already here : import std.stdio; struct Test { ~this() { writeln("

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread Andrei Alexandrescu via Digitalmars-d
On 2/21/15 12:22 PM, deadalnix wrote: On Saturday, 21 February 2015 at 19:20:48 UTC, JN wrote: https://developer.apple.com/news/?id=02202015a Interesting... Apple is dropping GC in favor of automatic reference counting. What are the benefits of ARC over GC? Is it just about predictability of r

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread Andrei Alexandrescu via Digitalmars-d
On 2/21/15 2:13 PM, Peter Alexander wrote: On Saturday, 21 February 2015 at 20:13:26 UTC, deadalnix wrote: On Saturday, 21 February 2015 at 19:38:02 UTC, Peter Alexander wrote: @safe @nogc :-) (I rewrote the post a few times. Originally I just wrote "mark main @safe @nogc and you're fine", bu

Re: D plan to do RAII(Resource Acquisition Is Initialization)?

2015-02-21 Thread Baz via Digitalmars-d
On Saturday, 21 February 2015 at 18:30:18 UTC, Olivier Pisano wrote: On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote: RAII(Resource Acquisition Is Initialization) is a good thing,will D plan to do it? It's already here : import std.stdio; struct Test { ~this() { writeln("

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Andrei Alexandrescu via Digitalmars-d
On 2/21/15 6:02 AM, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites. Hopefully in the next couple o

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread Peter Alexander via Digitalmars-d
On Saturday, 21 February 2015 at 20:13:26 UTC, deadalnix wrote: On Saturday, 21 February 2015 at 19:38:02 UTC, Peter Alexander wrote: @safe @nogc :-) (I rewrote the post a few times. Originally I just wrote "mark main @safe @nogc and you're fine", but I think it's a bit misleading since @nog

Re: D usage quotes/badges

2015-02-21 Thread Shammah Chancellor via Digitalmars-d
On 2015-02-20 21:51:25 +, Shammah Chancellor said: One thing I've noticed about D vs other languages which are getting more interest is that we do not have a list of "companies actually using D in production" on our homepage. While I know that there are quite a few development companies

Re: Stackless resumable functions

2015-02-21 Thread bitwise via Digitalmars-d
They are waiting for your pull request :o) Welll... I would like to try, but there is good reason behind the noncommital phrasing of my question :) I experimented with stackful coroutines in C++, but I think stackless resumable functions will be more difficult. I assume I can harvest most o

Re: loci, a C++/D hybrid?

2015-02-21 Thread via Digitalmars-d
On Saturday, 21 February 2015 at 16:19:44 UTC, FG wrote: Yeah, everything was fine, but when I got to this part, I almost fell off my chair. What the hell?! I hope it is just a Heh, well there are some weird things in there, like having "self" as an alias for "*this"... but I have to say this

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 February 2015 at 19:20:48 UTC, JN wrote: https://developer.apple.com/news/?id=02202015a Interesting... Apple is dropping GC in favor of automatic reference counting. What are the benefits of ARC over GC? Is it just about predictability of resource freeing? Would ARC make sense

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 February 2015 at 19:38:02 UTC, Peter Alexander wrote: @safe @nogc :-) (I rewrote the post a few times. Originally I just wrote "mark main @safe @nogc and you're fine", but I think it's a bit misleading since @nogc is still difficult to use, so I wrote about that instead and f

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread Peter Alexander via Digitalmars-d
On Saturday, 21 February 2015 at 18:42:54 UTC, deadalnix wrote: On Saturday, 21 February 2015 at 18:06:57 UTC, Peter Alexander wrote: On Saturday, 21 February 2015 at 10:00:07 UTC, FrankLike wrote: Now,some people think D is a 'Memory safety depends entirely on GC' system Language,what do you t

Mac Apps That Use Garbage Collection Must Move to ARC

2015-02-21 Thread JN via Digitalmars-d
https://developer.apple.com/news/?id=02202015a Interesting... Apple is dropping GC in favor of automatic reference counting. What are the benefits of ARC over GC? Is it just about predictability of resource freeing? Would ARC make sense in D?

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread deadalnix via Digitalmars-d
On Saturday, 21 February 2015 at 18:06:57 UTC, Peter Alexander wrote: On Saturday, 21 February 2015 at 10:00:07 UTC, FrankLike wrote: Now,some people think D is a 'Memory safety depends entirely on GC' system Language,what do you think? It's kind of right, at the moment, since @nogc D is still

Re: D plan to do RAII(Resource Acquisition Is Initialization)?

2015-02-21 Thread Olivier Pisano via Digitalmars-d
On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote: RAII(Resource Acquisition Is Initialization) is a good thing,will D plan to do it? It's already here : import std.stdio; struct Test { ~this() { writeln("RAII"); } } void main() { Test t; // prints "RAII" when goes out

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread Peter Alexander via Digitalmars-d
On Saturday, 21 February 2015 at 10:00:07 UTC, FrankLike wrote: Now,some people think D is a 'Memory safety depends entirely on GC' system Language,what do you think? It's kind of right, at the moment, since @nogc D is still quite difficult to use, mostly due to exceptions and library artifact

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Jeremy DeHaan via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites.

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Dicebot via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites.

Re: Writing game engine in C++, considering switching to D

2015-02-21 Thread John Colvin via Digitalmars-d
On Friday, 20 February 2015 at 17:49:22 UTC, ponce wrote: On Friday, 20 February 2015 at 15:26:02 UTC, John Colvin wrote: However, if you make the context current in the GC thread that's cleaning up, then you should be fine. There's nothing wrong with having the same context current in multip

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Mathias Lang via Digitalmars-d
2015-02-21 15:02 GMT+01:00 Daniel Murphy via Digitalmars-d < digitalmars-d@puremagic.com>: > https://auto-tester.puremagic.com/?projectid=10 > > This is a pretty big milestone for the project. For the first time, an > unpatched dmd can build ddmd, and that ddmd can build druntime and phobos > and

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Joseph Rushton Wakeling via Digitalmars-d
On 21/02/15 15:02, Daniel Murphy via Digitalmars-d wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites. That's fanta

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Suliman via Digitalmars-d
Does it's mean that next release of DMD would have name DDMD? Or it would be two branch at first time DMD and DDMD? Or DDMD would be renamed to DMD?

Re: loci, a C++/D hybrid?

2015-02-21 Thread FG via Digitalmars-d
On 2015-02-21 at 11:51, Kagamin wrote: --- void (*f)(); // C void (*)() f; // Loci int (*f)(); // C int (*)() f; // Loci int (*f)(int, int); // C *(int)(int, int) f; // Loci --- Ehh? Why the last declaration is so different? Yeah, everything was fine, but when I got to this part, I almost fe

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
"Andrej Mitrovic via Digitalmars-d" wrote in message news:mailman.7024.1424528844.9932.digitalmar...@puremagic.com... I can't wait for the day the only command necessary to build DMD is going to be: $ rdmd src/main.d :) Something like rdmd mars.d -J.. -d glue.lib backend.lib almost work

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Paulo Pinto via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites.

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Elie Morisse via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites.

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread H. S. Teoh via Digitalmars-d
On Sun, Feb 22, 2015 at 01:02:47AM +1100, Daniel Murphy via Digitalmars-d wrote: > https://auto-tester.puremagic.com/?projectid=10 > > This is a pretty big milestone for the project. For the first time, > an unpatched dmd can build ddmd, and that ddmd can build druntime and > phobos and pass all

Re: loci, a C++/D hybrid?

2015-02-21 Thread ketmar via Digitalmars-d
On Sat, 21 Feb 2015 08:47:41 +, Ola Fosheim Grøstad wrote: > I wasn't aware of the language Loci: > > http://loci-lang.org/ > > It looks like a mix of C++/D and some other languages. The docs gives D > credit several places too. > > I think perhaps loci is too close to C++ to gain traction

Re: Memory safety depends entirely on GC ?

2015-02-21 Thread ketmar via Digitalmars-d
On Sat, 21 Feb 2015 10:00:06 +, FrankLike wrote: > Now,some people think D is a 'Memory safety depends entirely on GC' > system Language,what do you think? this is wrong. signature.asc Description: PGP signature

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread ketmar via Digitalmars-d
On Sun, 22 Feb 2015 01:02:47 +1100, Daniel Murphy wrote: > https://auto-tester.puremagic.com/?projectid=10 > > This is a pretty big milestone for the project. For the first time, an > unpatched dmd can build ddmd, and that ddmd can build druntime and > phobos and pass all the test suites. > > H

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Andrej Mitrovic via Digitalmars-d
On 2/21/15, Daniel Murphy via Digitalmars-d wrote: > https://auto-tester.puremagic.com/?projectid=10 > > This is a pretty big milestone for the project. For the first time, an > unpatched dmd can build ddmd, and that ddmd can build druntime and phobos > and pass all the test suites. Awesome! It

Re: DDMD just went green on all platforms for the first time

2015-02-21 Thread Tobias Pankrath via Digitalmars-d
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy wrote: Nice!

DDMD just went green on all platforms for the first time

2015-02-21 Thread Daniel Murphy via Digitalmars-d
https://auto-tester.puremagic.com/?projectid=10 This is a pretty big milestone for the project. For the first time, an unpatched dmd can build ddmd, and that ddmd can build druntime and phobos and pass all the test suites. Hopefully in the next couple of weeks the remaining minor issues will

Re: loci, a C++/D hybrid?

2015-02-21 Thread via Digitalmars-d
On Saturday, 21 February 2015 at 11:37:57 UTC, ponce wrote: The most striking difference from D and C++ seems to be that templates generates polymorphic code that works for all types. IIRC it is called "parametric polymorphism" whereas the C++-way would be "ad-hoc polymorphism". This has a runt

Re: loci, a C++/D hybrid?

2015-02-21 Thread ponce via Digitalmars-d
On Saturday, 21 February 2015 at 08:47:43 UTC, Ola Fosheim Grøstad wrote: I wasn't aware of the language Loci: http://loci-lang.org/ It looks like a mix of C++/D and some other languages. The docs gives D credit several places too. I think perhaps loci is too close to C++ to gain traction, b

Re: loci, a C++/D hybrid?

2015-02-21 Thread Kagamin via Digitalmars-d
Though, it looks like they have an approach to GC and manual memory management: http://loci-lang.org/GarbageCollection.html

Re: loci, a C++/D hybrid?

2015-02-21 Thread Kagamin via Digitalmars-d
--- void (*f)(); // C void (*)() f; // Loci int (*f)(); // C int (*)() f; // Loci int (*f)(int, int); // C *(int)(int, int) f; // Loci --- Ehh? Why the last declaration is so different?

Re: D plan to do RAII(Resource Acquisition Is Initialization)?

2015-02-21 Thread weaselcat via Digitalmars-d
On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote: RAII(Resource Acquisition Is Initialization) is a good thing,will D plan to do it? RAII in D is handled by structs. It becomes a bit tricky when you want class semantics with RAII, but can be handled by wrapping the class in a str

D plan to do RAII(Resource Acquisition Is Initialization)?

2015-02-21 Thread FrankLike via Digitalmars-d
RAII(Resource Acquisition Is Initialization) is a good thing,will D plan to do it?

Memory safety depends entirely on GC ?

2015-02-21 Thread FrankLike via Digitalmars-d
Now,some people think D is a 'Memory safety depends entirely on GC' system Language,what do you think?

loci, a C++/D hybrid?

2015-02-21 Thread via Digitalmars-d
I wasn't aware of the language Loci: http://loci-lang.org/ It looks like a mix of C++/D and some other languages. The docs gives D credit several places too. I think perhaps loci is too close to C++ to gain traction, but who knows? It looks like a fairly clean language from the docs alone,

Dlang ipad code editor

2015-02-21 Thread Laeeth Isharc via Digitalmars-d
Just came across codetogo for ipad. It has been around a while, but there didnt seem to be a mention of it previously. You can write dlang code with syntax highlighting, and run it if you have an Internet connection. I don't know yet how it works with multi file programs, imports, etc, but a