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
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
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
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
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.
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
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
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.
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
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
"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
"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
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
"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
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
"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
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
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
"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
"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.
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
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
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(
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
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
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
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
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
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
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
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
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.
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?
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
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
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
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.
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("
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
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
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("
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
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
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
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
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
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
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
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
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?
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
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
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
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.
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.
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
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
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
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?
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
"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
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.
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.
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
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
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
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
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
On Saturday, 21 February 2015 at 14:02:41 UTC, Daniel Murphy
wrote:
Nice!
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
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
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
Though, it looks like they have an approach to GC and manual
memory management: http://loci-lang.org/GarbageCollection.html
---
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?
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
RAII(Resource Acquisition Is Initialization) is a good thing,will
D plan to do it?
Now,some people think D is a 'Memory safety depends entirely on
GC' system Language,what do you think?
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,
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
79 matches
Mail list logo