On 2017-04-17 21:28, Jonas Drewsen wrote:
The page could also list pre-approved language
changes such as async functions (which Walter wants afaik).
Another feature that can be implemented with AST macros. This is
starting to get ridicules. So many features have been added and are
talked abo
On Mon, 2017-04-17 at 22:59 +, Atila Neves via Digitalmars-d wrote:
> […]
> In D, this is nearly always slower (I measured). Compiling per
> package, however, is a lot faster.
I have only ever needed file-by-file or whole source compilation, I
have never needed package-oriented compilation. I
On Mon, 2017-04-17 at 20:56 +, Alex via Digitalmars-d wrote:
> On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
> > Just in case anyone gives a :
> >
> > I have submitted a pull request that adds ProgramAllAtOnce
>
> I have been trying to do the opposite with scons - increme
On Monday, 17 April 2017 at 22:44:52 UTC, Stanislav Blinov wrote:
On Monday, 17 April 2017 at 21:20:42 UTC, Jerry wrote:
So what happens when the resource outlives the object's
lifetime.
Then RAII rule is violated.
That's exactly what is happening when you are using the
garbage collector.
I've written multi-threaded regex-redux benchmark for D language
and made some tests. This is my first program written in D, I
didn't know much about D a week ago.
Here are the results for other languages:
http://benchmarksgame.alioth.debian.org/u64q/regexredux.html
I have newer CPU than one
On 4/17/17 6:58 PM, Atila Neves wrote:
On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
Just in case anyone gives a :
I have submitted a pull request that adds ProgramAllAtOnce as a
builder in the dmd, ldc, and gdc tools of SCons. This does an 'all at
once' compilation in a
On Monday, 17 April 2017 at 20:56:55 UTC, Alex wrote:
On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
Just in case anyone gives a :
I have submitted a pull request that adds ProgramAllAtOnce
I have been trying to do the opposite with scons - incremental
builds. In c++ the
On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
Just in case anyone gives a :
I have submitted a pull request that adds ProgramAllAtOnce as a
builder in the dmd, ldc, and gdc tools of SCons. This does an
'all at once' compilation in a single compiler instantiation,
unlike t
On Monday, 17 April 2017 at 21:20:42 UTC, Jerry wrote:
So what happens when the resource outlives the object's
lifetime.
Then RAII rule is violated.
That's exactly what is happening when you are using the garbage
collector.
Correction, that is what *may* happen in some cases when you are
On Monday, 17 April 2017 at 16:06:20 UTC, Stanislav Blinov wrote:
On Monday, 17 April 2017 at 15:24:26 UTC, Jerry wrote:
It has everything to do with @nogc, if it isn't @nogc then it
is using the garbage collector and even if it is using
Destroy() it is still invoking the GC and something is s
On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
Just in case anyone gives a :
I have submitted a pull request that adds ProgramAllAtOnce
I have been trying to do the opposite with scons - incremental
builds. In c++ the .h and .cpp files allowed the compilation from
many ed
On Monday, 17 April 2017 at 19:12:37 UTC, Martin Tschierschke
wrote:
defining a new method exho! (derived from echo + mixin...:-)
auto exho(string x)(){
return mixin("writeln("~interp!x~")");}
You can just write:
exho!"The number ${num} doubled is ${num * 2}!"
It requires 'num' to
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote:
Hi all
I've been wanting to have support for interpolated strings in
D for some time now that will allow you to write e.g.:
auto a = 7;
writeln( $"{a} times 3 is {a*3}" );
Code speaks louder that words so I've made a PR that
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote:
Hi all
I've been wanting to have support for interpolated strings in
D for some time now that will allow you to write e.g.:
auto a = 7;
writeln( $"{a} times 3 is {a*3}" );
Code speaks louder that words so I've made a PR that
On Sunday, 16 April 2017 at 16:10:15 UTC, Nick Sabalausky
(Abscissa) wrote:
On 04/15/2017 04:35 PM, crimaniak wrote:
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen
wrote:
The compiler will basically lower the $"..." string to a
mixin that
concatenates
the expression parts of the (in
On Monday, 17 April 2017 at 17:51:33 UTC, Russel Winder wrote:
Just in case anyone gives a :
I have submitted a pull request that adds ProgramAllAtOnce as a
builder in the dmd, ldc, and gdc tools of SCons. This does an
'all at once' compilation in a single compiler instantiation,
unlike t
On Sunday, 16 April 2017 at 00:25:19 UTC, Stanislav Blinov wrote:
On Saturday, 15 April 2017 at 23:58:18 UTC, Adam D. Ruppe wrote:
On Saturday, 15 April 2017 at 23:11:42 UTC, Stanislav Blinov
wrote:
How about... it removes an import or two?
It doesn't actually remove the dependency, it is jus
On Monday, April 17, 2017 18:10:23 Jonas Drewsen via Digitalmars-d wrote:
> On Sunday, 16 April 2017 at 08:01:02 UTC, Jacob Carlborg wrote:
> > On 2017-04-15 22:04, Jonas Drewsen wrote:
> >> [...]
> >
> > My initial reaction is that this is something that can be
> > implemented as library code if t
On Sunday, 16 April 2017 at 08:01:02 UTC, Jacob Carlborg wrote:
On 2017-04-15 22:04, Jonas Drewsen wrote:
[...]
My initial reaction is that this is something that can be
implemented as library code if the language would have support
for AST macros.
On the other hand, this is something I wo
Just in case anyone gives a :
I have submitted a pull request that adds ProgramAllAtOnce as a builder
in the dmd, ldc, and gdc tools of SCons. This does an 'all at once'
compilation in a single compiler instantiation, unlike the standard
module at a time compilation and then link the program.
On Monday, 17 April 2017 at 16:06:20 UTC, Stanislav Blinov wrote:
Yes, std.container does need quite a bit of love. That doesn't
mean that D doesn't have RAII or that it's RAII support is
somehow deficient.
Of course the reason it doesn't get more love is well-known here.
Walter and Andrei
On Monday, 17 April 2017 at 15:24:26 UTC, Jerry wrote:
It has everything to do with @nogc, if it isn't @nogc then it
is using the garbage collector and even if it is using
Destroy() it is still invoking the GC and something is still
going to have to be freed by the GC, even if that class is
e
On Monday, 17 April 2017 at 15:10:59 UTC, Jack Stouffer wrote:
On Monday, 17 April 2017 at 02:56:00 UTC, Jerry wrote:
Okay, only one container, and happens to be most simple basic
one. The others aren't nogc and some of them are even classes.
Not only that, Array wasn't @nogc until about a mont
On Monday, 17 April 2017 at 02:56:00 UTC, Jerry wrote:
Okay, only one container, and happens to be most simple basic
one. The others aren't nogc and some of them are even classes.
Not only that, Array wasn't @nogc until about a month ago.
No idea what you mean about goal posts. Do you mean it'
On Monday, April 17, 2017 11:14:47 Shachar Shemesh via Digitalmars-d wrote:
> scope(exit) is a much cleaner solution than a finally clause, but
> not as clean as RAII. If the language supports RAII, how come
> people are not using it?
Well, if you're talking managing memory, most folks just use th
On Sunday, 16 April 2017 at 16:10:15 UTC, Nick Sabalausky
(Abscissa) wrote:
Yea, and note, I'm still open to the idea of better names than
"interp". I'm still not entirely happy with that name. I'm even
half-tempted to use "_".
When I needed interpolation, I did not know about this library.
So
On Monday, 17 April 2017 at 11:14:47 UTC, Shachar Shemesh wrote:
On Sunday, 16 April 2017 at 17:00:25 UTC, Jack Stouffer wrote:
So we can say that D has buggy RAII. Claiming that D doesn't
have RAII is equally false.
To me, that's a basic misunderstanding of what RAII mean. RAII,
to me, mean
On Monday, 17 April 2017 at 11:14:47 UTC, Shachar Shemesh wrote:
On Sunday, 16 April 2017 at 17:00:25 UTC, Jack Stouffer wrote:
So we can say that D has buggy RAII. Claiming that D doesn't
have RAII is equally false.
To me, that's a basic misunderstanding of what RAII mean. RAII,
to me, mean
On Sunday, 16 April 2017 at 17:00:25 UTC, Jack Stouffer wrote:
So we can say that D has buggy RAII. Claiming that D doesn't
have RAII is equally false.
To me, that's a basic misunderstanding of what RAII mean. RAII,
to me, means you wrap your resource in a container, and then can
just go ahe
On 2017-04-16 18:10, Nick Sabalausky (Abscissa) wrote:
What I think would be ideal is a language enhancement to allow "interp"
to do its job without the extra syntactical noise. That would not only
give us good interpolates strings, but would likely have other
applications as well.
It's called
30 matches
Mail list logo