On Wednesday, 18 October 2017 at 22:16:32 UTC, Moritz Maxeiner
wrote:
On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote:
Poking around in the source code for emplace and I noticed...
T* emplace(T, Args...)(T* chunk, auto ref Args args)
what does the "auto ref" do in this
Poking around in the source code for emplace and I noticed...
T* emplace(T, Args...)(T* chunk, auto ref Args args)
what does the "auto ref" do in this situiation? Cant seem to find
any explanation in the docs.
On Wednesday, 18 October 2017 at 21:38:41 UTC, Dave Jones wrote:
Poking around in the source code for emplace and I noticed...
T* emplace(T, Args...)(T* chunk, auto ref Args args)
what does the "auto ref" do in this situiation? Cant seem to
find any explanation in the docs.
sorry meant to
On Monday, 13 November 2017 at 00:47:46 UTC, codephantom wrote:
On Monday, 13 November 2017 at 00:41:32 UTC, Jerry wrote:
harassing people isn't defending your argument.
Yeah...it's not nice...being harassed..is it.
You have to be harassed to know what if feels like.
That was my objective.
On Monday, 13 November 2017 at 01:14:32 UTC, codephantom wrote:
On Monday, 13 November 2017 at 00:47:46 UTC, codephantom wrote:
On Monday, 13 November 2017 at 00:41:32 UTC, Jerry wrote:
harassing people isn't defending your argument.
Yeah...it's not nice...being harassed..is it.
You have to
On Sunday, 12 November 2017 at 02:07:03 UTC, codephantom wrote:
On Saturday, 11 November 2017 at 20:35:40 UTC, Jerry wrote:
When I joined the forum a little while back, I dared to
suggest that D should be able to compile a 64bit binary on
Windows, without having to relying on gigabytes of
On Monday, 13 November 2017 at 11:55:59 UTC, codephantom wrote:
On Sunday, 12 November 2017 at 16:02:14 UTC, Dave Jones wrote:
Jesus Christ you big pair of fecking babys.
Nobody argued it wouldn't be better to have 64 bit out of the
box. They argued you were making a big deal out of something
On Thursday, 2 November 2017 at 08:59:05 UTC, Patrick Schluter
wrote:
On Thursday, 2 November 2017 at 06:28:52 UTC, codephantom wrote:
But Ken Thompson summed it all up nicely: "You can't trust
code that you did not totally create yourself."
Even that is wrong. You can trust code you create
On Monday, 11 December 2017 at 04:57:44 UTC, Ivan Trombley wrote:
Experimenting with compositing images in SDL2, I get a dark
edge around my textures. In the image below, you can see the
top example where I composite the cyan image on top of the
blue/magenta image looks correct but the bottom
On Sunday, 10 December 2017 at 02:31:47 UTC, Jonathan M Davis
wrote:
On Sunday, December 10, 2017 02:02:31 Dave Jones via
Digitalmars-d wrote:
https://issues.dlang.org/show_bug.cgi?id=14984
Honestly, it would have never occurred to me to try and modify
the variables declared in the foreach
Foreach ignores modification to the loop variable...
import std.stdio;
void main() {
int[10] foo = 10;
foreach (i; 0..10) // writes '10' ten times
{
writeln(foo[i]);
if (i == 3) i+=2;
}
}
From the docs...
"ForeachType declares a variable with either an
On Tuesday, 31 October 2017 at 01:44:58 UTC, codephantom wrote:
On Monday, 30 October 2017 at 23:03:12 UTC, H. S. Teoh wrote:
But in D, UFCS allows obj.func() to work for both member
functions and free functions, so if the client code uses the
obj.func() syntax, it won't have to care about
On Wednesday, 2 May 2018 at 04:48:46 UTC, Joakim wrote:
On Wednesday, 2 May 2018 at 03:44:37 UTC, Nick Sabalausky
(Abscissa) wrote:
On 05/01/2018 10:27 PM, Joakim wrote:
Yes, but how is it decided what the "most important things"
are? There is a strategy at work for any prioritization, even
On Wednesday, 16 May 2018 at 08:20:23 UTC, Uknown wrote:
On Wednesday, 16 May 2018 at 07:53:36 UTC, aliak wrote:
Just checked the rust spec [0]. private in rust => accessible
from that module and its descendants, which is what package in
D is. private in D would be to that module only.
[0]:
On Friday, 18 May 2018 at 02:08:47 UTC, KingJoffrey wrote:
On Thursday, 17 May 2018 at 14:14:28 UTC, Steven Schveighoffer
wrote:
You're welcome to write a DIP, but I don't see a very good
chance for acceptance given the discussions on this subject.
-Steve
I agree. The D community is too
On Sunday, 20 May 2018 at 02:45:25 UTC, KingJoffrey wrote:
On Saturday, 19 May 2018 at 17:38:48 UTC, Gheorghe Gabriel
wrote:
But in D, everything is your friend - you don't get to manage
You want to be taken seriously and yet you repeat false
statements over and over again.
There is
On Monday, 21 May 2018 at 16:35:57 UTC, rikki cattermole wrote:
Please stop replying Dave, it isn't worth it.
Do something more productive with your time :)
I know, but... it helps me relax. ;-)
On Monday, 21 May 2018 at 14:54:57 UTC, KingJoffrey wrote:
On Monday, 21 May 2018 at 14:46:40 UTC, Sjoerd Nijboer wrote:
Also, I would verry much much like it if you would not resort
to comparing me to "one of those facebook employees." It's
just setting a mood for the conversation which no
On Monday, 21 May 2018 at 09:56:22 UTC, KingJoffrey wrote:
On Monday, 21 May 2018 at 09:16:42 UTC, Dave Jones wrote:
da dah dah
da dah dah dahh da d
..
.
... da dah..
..da..
da ...dadada.da...dada.
Thanks Dave.
Your contributions to the discussion
On Monday, 21 May 2018 at 03:19:34 UTC, KingJoffrey wrote:
On Sunday, 20 May 2018 at 11:19:01 UTC, Dave Jones wrote:
On Sunday, 20 May 2018 at 02:45:25 UTC, KingJoffrey wrote:
On Saturday, 19 May 2018 at 17:38:48 UTC, Gheorghe Gabriel
wrote:
Anyway... feel free to misrepresent what I've said,
On Tuesday, 22 May 2018 at 13:33:12 UTC, 12345swordy wrote:
On Tuesday, 22 May 2018 at 03:10:39 UTC, Bjarne Stroustrup
wrote:
Any debate about restoring the rights and autonomy of the
class, should not be killed off.
Any programming language that discriminates against the class,
encourages
On Friday, 18 May 2018 at 18:12:55 UTC, Chris M. wrote:
On Friday, 18 May 2018 at 17:59:04 UTC, Dave Jones wrote:
On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote:
On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote:
It will attract more programmers, not less - and trust me, D
On Friday, 18 May 2018 at 11:41:33 UTC, KingJoffrey wrote:
On Friday, 18 May 2018 at 09:07:57 UTC, Dave Jones wrote:
FFS you're so dramatic. First the world is ending because
private doesnt work as you expected. Then D is utterly useless
without the changes you want. Now we live in some
On Friday, 18 May 2018 at 15:40:52 UTC, KingJoffrey wrote:
On Friday, 18 May 2018 at 14:32:33 UTC, bachmeier wrote:
It will attract more programmers, not less - and trust me, D
better get more programmers using it, cause 18 years on, and it
hasn't got that far, really.
"Ohh Arya you will
On Wednesday, 16 May 2018 at 16:43:31 UTC, Walter Bright wrote:
On 5/16/2018 6:55 AM, Andrei Alexandrescu wrote:
On 05/16/2018 04:42 AM, Dave Jones wrote:
On Wednesday, 16 May 2018 at 08:20:23 UTC, Uknown wrote:
On Wednesday, 16 May 2018 at 07:53:36 UTC, aliak wrote:
Just checked the rust
On Tuesday, 29 May 2018 at 05:29:00 UTC, Ali wrote:
On Tuesday, 29 May 2018 at 03:56:05 UTC, Dmitry Olshansky wrote:
It seems C++ is following the road of PL/I, which is growing
language way beyond the point anyone can understand or
implement all of it.
A key line from this paper
We now
On Tuesday, 29 May 2018 at 21:06:52 UTC, Jonathan M Davis wrote:
On Wednesday, May 30, 2018 08:43:33 rikki cattermole via
Digitalmars-d wrote:
On 30/05/2018 8:37 AM, Tony wrote:
> On Tuesday, 29 May 2018 at 20:19:09 UTC, bachmeier wrote:
>> I don't think it's difficult to do that yourself.
On Friday, 1 June 2018 at 23:10:30 UTC, Laeeth Isharc wrote:
On Friday, 1 June 2018 at 18:18:17 UTC, Tony wrote:
Yes, though you also can't compare a typical programmer from
the D world with a typical guy from an enterprisey language
world.
That was an excellent post.
On Thursday, 19 October 2017 at 01:05:28 UTC, Jonathan M Davis
wrote:
On Thursday, October 19, 2017 00:00:54 Dave Jones via
That's likely the main reason in this case, since losing the
ref-ness could definitely cause issues with some constructors,
but auto ref is frequently used simply to
Given
uint i = 12345;
should
writeln(-i)
be an error? or maybe i should be automatically cast to a larger
signed type?
On Thursday, 8 February 2018 at 14:56:31 UTC, Adam D. Ruppe wrote:
ooh better last sentence
D's GC implementation follows in the footsteps of industry
giants without compromising experts' ability to realize maximum
potential from the machine.
If D had a decent garbage collector it might be
On Thursday, 8 February 2018 at 18:06:38 UTC, Walter Bright wrote:
On 2/8/2018 9:03 AM, Dave Jones wrote:
If D had a decent garbage collector it might be a more
convincing argument.
'Decent' GC systems rely on the compiler emitting "write gates"
around every assignment to a pointer. These
On Monday, 12 February 2018 at 23:54:29 UTC, Arun Chandrasekaran
wrote:
Sorry if I'm hurting someone's sentiment, but is it just me who
is seeing so much negative trend in the D forum about D itself?
I don't remember seeing so much negative about Rust on rust
forum and so on. Do you think it
Just an idea, i think it'd be a good idea to have a page on dlang
with links to all the various D related talks / videos. Quite
often i watch them as i find them in the newsgroup, but it'd be
good to have them all in one place.
On Thursday, 28 December 2017 at 14:17:08 UTC, Mike Franklin
wrote:
On Thursday, 28 December 2017 at 14:11:57 UTC, Dave Jones wrote:
Just an idea, i think it'd be a good idea to have a page on
dlang with links to all the various D related talks / videos.
Quite often i watch them as i find them
On Friday, 24 August 2018 at 04:50:34 UTC, Mike Franklin wrote:
On Friday, 24 August 2018 at 04:12:42 UTC, Jonathan M Davis
wrote:
It's not a problem for Phobos to depend on the C standard
library. My goals have to do with making D, the language,
freestanding (a.k.a nimble-D).
If the
On Saturday, 25 August 2018 at 12:16:06 UTC, Laeeth Isharc wrote:
On Saturday, 25 August 2018 at 10:52:04 UTC, Chris wrote:
On Friday, 24 August 2018 at 19:26:40 UTC, Walter Bright wrote:
There are quite a few different sorts of concerns raised on
this thread and they are linked by how
On Sunday, 19 August 2018 at 19:11:03 UTC, Mike Parker wrote:
On Sunday, 19 August 2018 at 18:49:53 UTC, Joakim wrote:
they got their team trained up on D. We could stand to talk
more about Sociomantic, D's biggest corporate success so far,
I'll put out an email to Don.
I've got a series
On Sunday, 19 August 2018 at 21:59:15 UTC, Guillaume Piolat wrote:
On Sunday, 19 August 2018 at 19:52:44 UTC, Dave Jones wrote:
I'm of the complete opposite opinion.
Everyone like to make money, especially more than the industry
average; and we should push the narrative that using D lets
On Monday, 20 August 2018 at 03:04:30 UTC, Mike Parker wrote:
On Sunday, 19 August 2018 at 19:52:44 UTC, Dave Jones wrote:
What you need a blog post saying the GC has been made 4x
faster. Stuff like that, hey we made D much better now, not
stuff about some corporate user who does targeted
On Tuesday, 17 July 2018 at 17:47:57 UTC, Mr.Bingo wrote:
On Tuesday, 17 July 2018 at 09:08:03 UTC, Dave Jones wrote:
On Monday, 16 July 2018 at 16:20:24 UTC, Mr.Bingo wrote:
On Tuesday, 3 July 2018 at 07:31:46 UTC, Nick Sabalausky
I see we have the resident genius on hand. Yes, anything
On Monday, 16 July 2018 at 16:20:24 UTC, Mr.Bingo wrote:
On Tuesday, 3 July 2018 at 07:31:46 UTC, Nick Sabalausky
(Abscissa) wrote:
On 07/01/2018 05:34 AM, ag0aep6g wrote:
On 07/01/2018 08:00 AM, Ali Çehreli wrote:
Apparent from uncharacteristic messages from Dmitry's
account to multiple
On Monday, 23 July 2018 at 22:45:15 UTC, Walter Bright wrote:
On 7/23/2018 5:39 AM, Joakim wrote:
In my experience, people never learn, even from the blatantly
obvious, _particularly_ when they're invested in the outdated.
What inevitably happens is the new tech gets good enough to
put them
On Wednesday, 29 August 2018 at 18:02:16 UTC, Timon Gehr wrote:
On 29.08.2018 19:15, H. S. Teoh wrote:
On Wed, Aug 29, 2018 at 06:58:16PM +0200, Timon Gehr via
Digitalmars-d wrote:
On 28.08.2018 19:02, H. S. Teoh wrote:
On Tue, Aug 28, 2018 at 08:18:57AM +, Eugene Wissner via
struct Foo
{
int x;
alias x this;
}
Foo f = 12; // error
Foo foo;
f = 12; // this is OK
any reason why the first cant be allowed?
On Saturday, 17 March 2018 at 06:46:17 UTC, Uknown wrote:
https://opensource.com/article/18/3/avoid-humiliating-newcomers
Its a blog post about how sometimes expert programmers treat
newcomers badly. I haven't really noticed any of what he
mentions in the D community, as most of the regular
On Tuesday, 18 September 2018 at 07:53:31 UTC, Joakim wrote:
On Monday, 17 September 2018 at 22:27:41 UTC, Neia Neutuladh
wrote:
You are making your arguments to fit your desires.
I can't make head nor tails of this claim, you have a talent
for vague non sequiturs. My arguments are based
On Thursday, 20 September 2018 at 09:32:01 UTC, Laurent Tréguier
wrote:
On Thursday, 20 September 2018 at 08:15:39 UTC, Dave Jones
wrote:
Longer battery life is a convenience not a requirement.
What is a convenience and a requirement is completely
subjective. I'd classify the removable
On Thursday, 20 September 2018 at 05:45:52 UTC, Laurent Tréguier
wrote:
On Wednesday, 19 September 2018 at 18:14:47 UTC, Dave Jones
wrote:
Only if the new product meets all the use cases of the old
product. Again this is what you dont understand.
Why did the iPhone, and after that the
On Thursday, 20 September 2018 at 10:02:05 UTC, Laurent Tréguier
wrote:
On Thursday, 20 September 2018 at 08:15:39 UTC, Dave Jones
wrote:
[snip]
I apologize for the tone I'm using, I shouldn't jump on that
train.
I'll clarify my position on this: I'm not completely absolutely
sure that
On Saturday, 15 September 2018 at 15:25:55 UTC, Joakim wrote:
On Friday, 14 September 2018 at 09:23:24 UTC, Dave Jones wrote:
On Thursday, 13 September 2018 at 22:56:31 UTC, Joakim wrote:
On Thursday, 13 September 2018 at 22:41:08 UTC, Nick
And people don't use PCs for such things? ;)
On Sunday, 16 September 2018 at 04:47:11 UTC, Joakim wrote:
On Sunday, 16 September 2018 at 01:03:27 UTC, Dave Jones wrote:
I know a lot of people who did, which explains the 28% drop
in PC sales since they peaked in 2011, the year after the
iPad came out. Many of those people who used to buy
On Sunday, 16 September 2018 at 15:11:42 UTC, Joakim wrote:
On Sunday, 16 September 2018 at 10:25:30 UTC, Dave Jones wrote:
Some analysts have predicted that PC sales will plateau at
some point and if that's where we're at now then 30% drop in
shipments is not death of the market.
I see no
On Monday, 17 September 2018 at 15:47:14 UTC, Joakim wrote:
On Sunday, 16 September 2018 at 15:41:41 UTC, tide wrote:
On Sunday, 16 September 2018 at 15:11:42 UTC, Joakim wrote:
I say that almost 30% drop in PC sales over the last 7
Might be, but so is trying to convince everyone your
On Thursday, 13 September 2018 at 22:56:31 UTC, Joakim wrote:
On Thursday, 13 September 2018 at 22:41:08 UTC, Nick Sabalausky
(Abscissa) wrote:
On 09/10/2018 11:13 PM, tide wrote:
On Monday, 10 September 2018 at 13:43:46 UTC, Joakim wrote:
That's why PC sales keep dropping while mobile sales
On Saturday, 25 November 2017 at 21:59:54 UTC, Ali Çehreli wrote:
On 11/25/2017 01:51 PM, Dave Jones wrote:
> What does the "inout" after front() do here...
>
>
> @property ref inout(T) front() inout
> {
> assert(_data.refCountedStore.isInitialized);
> return _data._payload[0];
> }
>
>
On Sunday, 26 November 2017 at 04:51:08 UTC, Adam D. Ruppe wrote:
On Sunday, 26 November 2017 at 01:35:01 UTC, Dave Jones wrote:
So it makes it a const/immutable/mutable method depending on
whether the instance it is called on is
const/immutable/mutable?
On the outside, yes.
So
What does the "inout" after front() do here...
@property ref inout(T) front() inout
{
assert(_data.refCountedStore.isInitialized);
return _data._payload[0];
}
Cant seem to find an explanation in the docs or forums :(
On Friday, 24 November 2017 at 22:38:49 UTC, Jonathan M Davis
wrote:
On Friday, November 24, 2017 20:43:14 A Guy With a Question via
Digitalmars- d-learn wrote:
On Friday, 24 November 2017 at 14:43:24 UTC, Adam D. Ruppe
That requires data flow analysis, which the compiler doesn't do
a lot of,
On Monday, 11 June 2018 at 00:47:27 UTC, Jonathan M Davis wrote:
On Sunday, June 10, 2018 23:59:17 Bauss via Digitalmars-d-learn
wrote:
What is the point of nothrow if it can only detect when
Exception is thrown and not when Error is thrown?
It seems like the attribute is useless because you
On Sunday, 3 June 2018 at 21:32:06 UTC, gdelazzari wrote:
Note that this is not an attack to the language or anything (I
actually really love it), I'm just trying to understand the
reasoning behind this choice.
Because they have a thing about not adding new keywords,
apparently it's more
On Wednesday, 27 December 2017 at 14:14:42 UTC, Benjamin Thaut
wrote:
On Wednesday, 27 December 2017 at 13:40:28 UTC, rumbu wrote:
Is that normal?
It computes the difference between float.max and the next
smaller reprensentable number in floating point. The difference
printed by the program
Given this...
int mulDiv64(int a, int b, int c)
{
asm
{
movEAX,a;
imul b;
idiv c;
}
}
which computes a*b/c, with the intermediate value in 64 bit. It
returns value that is left in EAX.
Is this stuff documented somewhere? I mean I found the page on
On Sunday, 25 March 2018 at 12:23:03 UTC, kinke wrote:
On Sunday, 25 March 2018 at 10:58:37 UTC, Dave Jones wrote:
Is this stuff documented somewhere?
See
https://dlang.org/spec/abi.html#function_calling_conventions.
It defines the D calling convention for Win32 (int return value
in EAX)
64 matches
Mail list logo