On Monday, 8 July 2013 at 20:46:35 UTC, H. S. Teoh wrote:
On Mon, Jul 08, 2013 at 09:47:46PM +0200, Peter Alexander wrote:
On Monday, 8 July 2013 at 18:10:45 UTC, H. S. Teoh wrote:
>On Sun, Jul 07, 2013 at 02:06:46PM +0200, Peter Alexander
>wrote:
>>It's a tough situation and I think the only w
On Wednesday, 10 July 2013 at 01:23:20 UTC, bearophile wrote:
Meta:
I think there's been mention a couple times of a ctfeWrite
function that can print values at compile-time, but so far
nobody's implemented it.
That's not true. This is the ER:
http://d.puremagic.com/issues/show_bug.cgi?id=39
On Saturday, 22 June 2013 at 21:41:15 UTC, Walter Bright wrote:
Compiling std.algorithm for unittests consumes all the memory
on many machines. I've been looking into what is allocating all
that memory, and it isn't so easy without adding
instrumentation code anywhere.
Anyone know of a conven
On Wednesday, 5 June 2013 at 23:45:02 UTC, David Nadlinger wrote:
Hi all,
As some of you might already know, LDC has come dangerously
close to being usable on Win32/MinGW recently.
I just posted a small writeup describing the current situation
to my blog:
http://klickverbot.at/blog/2013/05/
On Tuesday, 4 June 2013 at 02:33:54 UTC, Kenji Hara wrote:
Personally I'd like to just use block-init everywhere. I
personally find
first-element-init rather unexpected, but maybe that's just
me. I don't
know when it would be useful. But regardless, we need to get
this sorted
out.
It's a block
DMD has always accepted this initializer syntax for static arrays:
float [50] x = 1.0;
If this declaration happens inside a function, or in global
scope, the compiler sets all members of x to 1.0. That is, it's
the same as:
float [50] x = void;
x[] = 1.0;
In my DMD pull requests, I've call
On Sunday, 26 May 2013 at 18:43:30 UTC, Walter Bright wrote:
On 5/26/2013 8:43 AM, deadalnix wrote:
On Sunday, 26 May 2013 at 14:10:44 UTC, Paulo Pinto wrote:
Yeah, you are right. C and C++ stab themselves only to die a
few hours later
in a code section totally unrelated or just behave strange
On Thursday, 23 May 2013 at 18:22:54 UTC, Joseph Rushton Wakeling
wrote:
On 05/23/2013 08:13 PM, Brad Anderson wrote:
Now I'm wondering what can be done to foster this newly
acquired credibility in
games. By far the biggest issue I hear about when it comes to
people working on
games in D is th
On Wednesday, 3 April 2013 at 14:54:03 UTC, Steven Schveighoffer
wrote:
On Wed, 03 Apr 2013 07:33:05 -0400, Don
wrote:
Yeah, but I think that what this is, is demonstrating what a
useful concept a positive integer type is. There's huge value
in statically knowing that the sign bit is
On Wednesday, 3 April 2013 at 03:26:54 UTC, Andrei Alexandrescu
wrote:
On 4/2/13 11:10 PM, Steven Schveighoffer wrote:
On Tue, 02 Apr 2013 16:32:21 -0400, Walter Bright
wrote:
On 4/2/2013 12:47 PM, Andrei Alexandrescu wrote:
I used to lean a lot more toward this opinion until I got to
work o
On Tuesday, 2 April 2013 at 09:43:37 UTC, Jonathan M Davis wrote:
On Tuesday, April 02, 2013 09:49:03 Don wrote:
On Thursday, 28 March 2013 at 20:03:08 UTC, Adam D. Ruppe
wrote:
> I was working on a project earlier today that stores IP
> addresses in a database as a uint. For some
On Monday, 1 April 2013 at 20:58:26 UTC, Walter Bright wrote:
On 4/1/2013 4:08 AM, Lars T. Kyllingstad wrote:
It's time to clean up this mess.
As for why finally blocks are not executed for Error
exceptions, the idea is to minimize cases where the original
error would now cause an abort dur
On Tuesday, 2 April 2013 at 08:29:41 UTC, renoX wrote:
On Tuesday, 2 April 2013 at 07:49:04 UTC, Don wrote:
[cut]
IMHO, array.length is *the* place where unsigned does *not*
work. size_t should be an integer. We're not supporting 16 bit
systems, and the few cases where a size_t valu
On Thursday, 28 March 2013 at 20:03:08 UTC, Adam D. Ruppe wrote:
I was working on a project earlier today that stores IP
addresses in a database as a uint. For some reason though, some
addresses were coming out as 0.0.0.0, despite the fact that
if(ip == 0) return; in the only place it actually
On Thursday, 28 March 2013 at 11:29:49 UTC, Artur Zawłocki wrote:
Hi,
DMD (I'm using v2.060) seems to evaluate conditions in static
if's from top to bottom (at least in a given scope). For
example, consider the following program:
module test;
const bool x = true;
const bool y = true;
On Wednesday, 27 March 2013 at 19:43:13 UTC, Dmitry Olshansky
wrote:
27-Mar-2013 23:14, Peter Alexander пишет:
On Wednesday, 27 March 2013 at 14:48:32 UTC, Andrei
Alexandrescu wrote:
Found this:
http://stackoverflow.com/questions/15652718/object-error-access-violation-when-printing-result-of-st
On Sunday, 24 March 2013 at 20:37:36 UTC, Adam Wilson wrote:
On Sun, 24 Mar 2013 08:52:45 -0700, Andrei Alexandrescu
wrote:
Hello,
Google Summer of code 2013 is accepting applications. Just
like in the past years, we need a few mentors to ensure a
successful event.
This year we plan to
On Sunday, 17 March 2013 at 21:54:54 UTC, Stewart Gordon wrote:
However, since that time, two or three people have been killing
off random trackers, seemingly because they personally don't
like the concept.
No, because the bugs in question were junk. Junk bugs get killed
all the time (eg, bug
On Friday, 15 March 2013 at 06:51:15 UTC, Dmitry Olshansky wrote:
15-Mar-2013 10:47, Walter Bright пишет:
On 3/14/2013 11:36 PM, Dmitry Olshansky wrote:
15-Mar-2013 01:58, Andrei Alexandrescu пишет:
On 3/14/13 4:37 PM, Dmitry Olshansky wrote:
Point taken. That doesn't detract us from:
a) fixi
On Saturday, 9 March 2013 at 03:50:29 UTC, Walter Bright wrote:
On 3/8/2013 5:19 PM, Brad Anderson wrote:
On Saturday, 9 March 2013 at 00:48:59 UTC,
DypthroposTheImposter wrote:
Are they full of it? Has it caused the problems they
mention
in
D?
Well, the two guys with an alternative pro
On Monday, 4 March 2013 at 23:29:09 UTC, Araq wrote:
On Monday, 4 March 2013 at 21:58:34 UTC, Marco Leise wrote:
Am Fri, 1 Mar 2013 16:36:07 -0800
schrieb "H. S. Teoh" :
+1. With D's compile-time capabilities, DSLs give you
arbitrarily
complex custom syntax at essentially zero runtime cost. Yo
On Monday, 4 March 2013 at 03:58:20 UTC, deadalnix wrote:
On Monday, 4 March 2013 at 03:20:57 UTC, jerro wrote:
Maybe it is time to look at the python implementation and see
why it is faster.
It isn't faster:
$ time python3 test.py
real0m14.217s
user0m14.209s
sys 0m0.004s
$ gdmd
On Sunday, 3 March 2013 at 16:48:32 UTC, deadalnix wrote:
...
Obviously, the program segfault soon after that.
It sounds like some memory corruption occurs under the hood.
What can I do to work around that bug and to help solving it ?
Have you compiled this with the latest gitHEAD ? Several v
On Thursday, 28 February 2013 at 00:37:50 UTC, Andrei
Alexandrescu wrote:
Hello,
Walter and I have had a long conversation about the next
radical thing to do to improve D's standing. Like others in
this community, we believe it's a good time to consider
bootstrapping the compiler. Having the
On Sunday, 24 February 2013 at 07:58:40 UTC, Andrei Alexandrescu
wrote:
On 2/24/13 4:58 AM, H. S. Teoh wrote:
I find this rather frustrating... sometimes it feels like
Phobos is
suffering from premature standardization - we have a module
with a
design that isn't very good, but just because it s
On Monday, 25 February 2013 at 10:09:18 UTC, Iain Buclaw wrote:
On 25 February 2013 09:35, Don
wrote:
On Monday, 25 February 2013 at 01:04:01 UTC, Iain Buclaw wrote:
On Feb 24, 2013 10:16 PM, "Walter Bright"
wrote:
On 2/24/2013 8:48 AM, SiegeLord wrote:
I am quite sic
On Monday, 25 February 2013 at 01:04:01 UTC, Iain Buclaw wrote:
On Feb 24, 2013 10:16 PM, "Walter Bright"
wrote:
On 2/24/2013 8:48 AM, SiegeLord wrote:
I am quite sick of DMDFE breaking my code every release with
bugs
that are then solved for the next release (that is, if they
are
solved
On Wednesday, 20 February 2013 at 22:34:15 UTC, Andrej Mitrovic
wrote:
On 2/20/13, David Nadlinger wrote:
In Phobos, there are quite a few unit tests (std.format,
std.json, ...) which assume that the %e floating point format
zero-pads the exponent to (at least) two digits.
I don't know about
On Tuesday, 19 February 2013 at 14:03:54 UTC, monarch_dodra wrote:
Are there any plans that would allow using opEqual or opCmp
operators with simd?
My use case is that I have arrays, and I need to verify that
ALL the elements in my array are comprised between two values
(in this specific case
On Monday, 18 February 2013 at 08:33:41 UTC, Nicholas Smith wrote:
I'm interested in experimenting with game development in D, but
the only thing putting me off is D's heavy GC reliance, which
at the moment is a stop-the-world GC.
One of the biggest killers in game development is unreliable
p
On Wednesday, 6 February 2013 at 08:16:38 UTC, Jonathan M Davis
wrote:
On Wednesday, February 06, 2013 08:56:26 Don wrote:
In the "Implementing Half Floats in D" thread, we seemed to
have
reached a consensus on two important points:
(a) Phobos should have a broad scope (rather than b
In the "Implementing Half Floats in D" thread, we seemed to have
reached a consensus on two important points:
(a) Phobos should have a broad scope (rather than being small
like the C standard library).
(b) The current flat structure of Phobos (every module in the
root) does not scale to hundreds
On Thursday, 31 January 2013 at 13:41:13 UTC, Andrei Alexandrescu
wrote:
On 1/31/13 5:18 AM, Don wrote:
std.numeric is not superficially flawed, it's fundamentally
flawed. What
is it for? What is its theme? The problem is, std.numeric is
one of the
few good names which are left as a pos
On Wednesday, 30 January 2013 at 12:51:18 UTC, Simen Kjaeraas
wrote:
On 2013-01-30, 09:26, Don wrote:
The discussion we had on github agreed that std.halffloat
isn't a good place.
But OTOH std.numeric needs a complete overhaul, it's a mess.
It would be a mistake to throw it in there
On Tuesday, 29 January 2013 at 22:49:02 UTC, Joseph Rushton
Wakeling wrote:
On 01/29/2013 11:27 PM, Iain Buclaw wrote:
I'm sure this was mentioned before, but what does halffloat
have over
std.numeric.CustomFloat?
"These formats are for storage only; all operations on them are
performed by f
On Tuesday, 29 January 2013 at 12:26:10 UTC, bearophile wrote:
The quality of a language also comes from its compiler. Clang
3.3 will have this inside:
http://embed.cs.utah.edu/ioc/
To use it you have to compile with "-fsanitize=integer":
http://clang.llvm.org/docs/UsersManual.html#controllin
On Monday, 28 January 2013 at 23:11:11 UTC, Walter Bright wrote:
http://www.drdobbs.com/cpp/implementing-half-floats-in-d/240146674
Since it got lost in the old thread on this topic, I'll repost my
versions of floatToshort and shortToFloat, which are extremely
fast (no unpredictable branches
On Thursday, 24 January 2013 at 20:52:10 UTC, Walter Bright wrote:
On 1/24/2013 5:42 AM, Jacob Carlborg wrote:
I agree with you but Walter is very afraid of breaking code.
The history of what happens when D code breaks because of
language changes is not a happy one.
I don't believe that is
On Thursday, 24 January 2013 at 08:35:01 UTC, Walter Bright wrote:
This has turned into a monster. We've taken 2 or 3 wrong turns
somewhere.
I agree, the cure seems to be ten times worse than the disease.
It's consumed far more resources than it is worth.
In my experience one of the main rea
On Wednesday, 23 January 2013 at 04:56:11 UTC, deadalnix wrote:
On Tuesday, 22 January 2013 at 14:44:26 UTC, Era Scarecrow
wrote:
It's been quoted that for every 10 lines of code there's a bug.
It is said a lot. I'd like to see hard data on that one. I'd
bet that it greatly vary from one prog
On Friday, 18 January 2013 at 20:14:23 UTC, H. S. Teoh wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=9352
Seems like dtors are a minefield of hidden and dangerous bugs,
Yes. It's one of the worst areas. Postblit as well.
due to
them not being used (and therefore tested) very often. :-
On Friday, 11 January 2013 at 09:20:13 UTC, Jonathan M Davis
wrote:
On Friday, January 11, 2013 10:03:54 Don wrote:
That's my feeling too. I think that if we want to implement AAs
as a library type, we first need to eliminate all of the
semantics would be impossible to implement in a li
On Friday, 11 January 2013 at 08:26:54 UTC, Jonathan M Davis
wrote:
On Friday, January 11, 2013 08:53:44 Don wrote:
Consider this code:
---
int[int] x;
int k = x[2] + 5; // Error, range violation. Makes sense.
x[2] = x[2] + 5; // But this works!!!
---
That is, x[2] doesn't
Consider this code:
---
int[int] x;
int k = x[2] + 5; // Error, range violation. Makes sense.
x[2] = x[2] + 5; // But this works!!!
---
That is, x[2] doesn't exist, *unless you are about to assign to
it*.
What happens is:
1. lvalue index (creates x[2], sets it to int.init)
2. rvalue
Bearophile has just entered his 1000th bug report into Bugzilla.
This is more than the three next most prolific contributers, combined.
The top ten bug reporters are (courtesy of Deskzilla):
1002 Bearophile
315 Andrej Mitrovic
308 Don Clugston
282 David Simcha
193 Andrei Alexandrescu
185
On 18/11/12 12:21, Manu wrote:
I've often wondered about having an official 'half' type.
It's very common in rendering/image processing, supported by most video
cards (so compression routines interacting with this type are common),
and it's also supported in hardware by some cpu's.
ARM for insta
On 16/11/12 05:15, Rob T wrote:
On Friday, 16 November 2012 at 03:41:45 UTC, Stugol wrote:
Event_t e2;// Will compile!
Yeah but that kinda blows, doesn't it?
I found it surprising or unintuitive that the !() is required, and I do
want to know what is the reasoning behind it,
One o
On 15/11/12 11:54, Walter Bright wrote:
On 11/15/2012 2:28 AM, Don Clugston wrote:
However, there is one case in the test suite which is unclear to me:
extern(C) __thread int x;
Is there any other way to do this?
extern(C) int x;
What about extern(C) variables which are not thread local
On 14/11/12 23:16, Walter Bright wrote:
On 11/14/2012 12:06 PM, Sean Kelly wrote:
On Nov 14, 2012, at 6:26 AM, Don Clugston wrote:
IIRC it was used prior to 2.030. In the spec, it is in the keyword list,
and it's also listed in the "Migrating to shared" article. That's al
On 14.11.2012 16:39, H. S. Teoh wrote:
On Wed, Nov 14, 2012 at 10:25:53AM +0100, Don Clugston wrote:
On 12/11/12 20:42, Jonathan M Davis wrote:
On Monday, November 12, 2012 11:36:38 H. S. Teoh wrote:
I contend that the problem with built-in AA's is their
implementation, not the fact
On 14.11.2012 20:15, Rainer Schuetze wrote:
On 11/14/2012 7:20 PM, Dmitry Olshansky wrote:
11/14/2012 9:44 PM, Andrei Alexandrescu пишет:
This is new! What does this mean?
I'm sure it is nothing new. Basically AA is a reference type but it is
auto-magically created on the first insertion.
IIRC it was used prior to 2.030. In the spec, it is in the keyword list,
and it's also listed in the "Migrating to shared" article. That's all.
There are a small number of uses of it in the DMD test suite.
Is it still valid? Is it useful? Or has everyone forgotten that it still
exists?
On 12/11/12 20:42, Jonathan M Davis wrote:
On Monday, November 12, 2012 11:36:38 H. S. Teoh wrote:
I contend that the problem with built-in AA's is their implementation,
not the fact that they're built-in.
Oh, I agree, but we, as a group, have obviously failed to handle the
implementation of t
On 07/11/12 14:16, monarch_dodra wrote:
There is some talk going on right now of changing "deprecate" into a
UDA. There are some people saying that deprecate is broken, and
proposing some fixes (myself included). Instead of concentrating on how
to "fix" it, and like to first study "what" is broke
On 07/11/12 00:56, Walter Bright wrote:
I know there's been some long term unhappiness about the deprecated
attribute - it's all-or-nothing approach, poor messages, etc. Each
change in it changes the language and the compiler.
Perhaps it could be done with a user defined attribute instead?
Anyo
On 07/11/12 05:38, H. S. Teoh wrote:
On Wed, Nov 07, 2012 at 05:08:43AM +0100, bearophile wrote:
[...]
So the associative array is updated before taking its length. I
suggest to try to fix this AA behavour before too much D2 code relies
on this. I'd like to avoid this to become a permanent wart
On 06/11/12 07:09, Rob T wrote:
On Friday, 2 November 2012 at 22:33:37 UTC, Rob T wrote:
I discovered it fails to compile when inside a function with "auto" as
the return type.
auto test()
{
throw new Exception( mixin(__FUNCTION) );
return 0;
}
Error: forward reference to test
but this
On 04/11/12 15:30, stonemaster wrote:
On Thursday, 1 November 2012 at 15:56:24 UTC, Tobias Pankrath wrote:
On Thursday, 1 November 2012 at 15:20:11 UTC, Andrei Alexandrescu wrote:
On 11/1/12 9:47 AM, Paulo Pinto wrote:
Hi everyone,
I just saw this online.
The German magazine c't kompakt has
On 02/11/12 11:57, Jens Mueller wrote:
Peter Alexander wrote:
On Friday, 2 November 2012 at 10:24:34 UTC, Jens Mueller wrote:
Then I have a serious misunderstanding.
I thought D introduced array operations to allow the compiler to
generate efficient vector operations (in the long run), i.e.
gen
On 02/11/12 14:04, Habibutsu wrote:
I would like to take a part in development of D programming language or
Phobos library.
I opened bugtracker and found some bugs that i could to fix.
Maybe I should read something (specifically for development) or you can
give me some advice before i create firs
On 02/11/12 10:01, Jens Mueller wrote:
Jacob Carlborg wrote:
On 2012-11-01 23:51, Walter Bright wrote:
What about all your feature requests? I think you've made more than
anyone, by a factor of 10 at least!
:-)
As for Manu's request
http://d.puremagic.com/issues/show_bug.cgi?id=8108
I've g
On 02/11/12 10:12, Jens Mueller wrote:
Don Clugston wrote:
On 02/11/12 09:07, Jacob Carlborg wrote:
On 2012-11-01 23:51, Walter Bright wrote:
What about all your feature requests? I think you've made more than
anyone, by a factor of 10 at least!
:-)
As for Manu's req
On 02/11/12 09:07, Jacob Carlborg wrote:
On 2012-11-01 23:51, Walter Bright wrote:
What about all your feature requests? I think you've made more than
anyone, by a factor of 10 at least!
:-)
As for Manu's request
http://d.puremagic.com/issues/show_bug.cgi?id=8108
I've gone over with him why
On 29/10/12 18:38, Walter Bright wrote:
On 10/29/2012 7:51 AM, Don Clugston wrote:> On 27/10/12 20:39, H. S.
Teoh wrote:
>> On Sat, Oct 27, 2012 at 08:26:21PM +0200, Andrej Mitrovic wrote:
>>> On 10/27/12, H. S. Teoh wrote:
>>>> writeln(&
On 27/10/12 20:39, H. S. Teoh wrote:
On Sat, Oct 27, 2012 at 08:26:21PM +0200, Andrej Mitrovic wrote:
On 10/27/12, H. S. Teoh wrote:
writeln("how did the assert not trigger??!!"); // how did we get
here?!
Maybe related to -release?
[...]
Haha, you're right, the assert is com
On 27/10/12 00:45, H. S. Teoh wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=8900
:-(
(The code there is called cartesianProd but it's the reduced code, so it
doesn't really compute the cartesian product. But that's where it's
from.)
So far, the outstanding blockers for cartesianProduct
On 24/10/12 11:33, Timon Gehr wrote:
On 10/24/2012 11:24 AM, Don Clugston wrote:
On 24/10/12 04:41, bearophile wrote:
I have found a nice paper, "Extending a C-like Language for Portable
SIMD Programming", (2012), by Roland L., Sebastian Hack and Ingo Wald:
http://www.cdl.uni-s
On 23/10/12 05:17, 1100110 wrote:
Looking at std.io (hopefully the right version maybe?) I see this:
version(OSX)
{ do something; }
version(Windows)
{ do the same thing as above; }
version(FreeBSD)
{ ditto; }
version(Linux)
{finally do something different; }
and:
version(Windows)
On 24/10/12 04:41, bearophile wrote:
I have found a nice paper, "Extending a C-like Language for Portable
SIMD Programming", (2012), by Roland L., Sebastian Hack and Ingo Wald:
http://www.cdl.uni-saarland.de/projects/vecimp/vecimp_tr.pdf
They present a simple scalar program in C:
struct dat
On 15/10/12 13:39, Jacob Carlborg wrote:
On 2012-10-15 11:58, Don Clugston wrote:
I tried that on both Windows and Ubuntu, and couldn't get it to work on
either of them. I posted a couple of bug reports eight months ago, and
they still haven't been fixed. Not recommended for any
On 18/10/12 19:43, Timon Gehr wrote:
On 10/18/2012 10:08 AM, Don Clugston wrote:
On 17/10/12 18:02, Timon Gehr wrote:
On 10/17/2012 01:49 PM, Don Clugston wrote:
...
That's the point -- *which* checks are missing from @safe?
Escaping stack data and arbitrarily freeing memory ar
On 19/10/12 16:07, foobar wrote:
On Friday, 19 October 2012 at 13:19:09 UTC, Don Clugston wrote:
We can still have both (assuming the code points are valid...):
string foo = "\ua1\ub2\uc3"; // no .dup
That doesn't compile.
Error: escape hex sequence has 2 hex digits instead
On 18/10/12 17:43, foobar wrote:
On Thursday, 18 October 2012 at 14:29:57 UTC, Don Clugston wrote:
On 18/10/12 10:58, foobar wrote:
On Thursday, 18 October 2012 at 02:47:42 UTC, H. S. Teoh wrote:
On Thu, Oct 18, 2012 at 02:45:10AM +0200, bearophile wrote:
[...]
hex strings are useful, but I
On 18/10/12 10:58, foobar wrote:
On Thursday, 18 October 2012 at 02:47:42 UTC, H. S. Teoh wrote:
On Thu, Oct 18, 2012 at 02:45:10AM +0200, bearophile wrote:
[...]
hex strings are useful, but I think they were invented in D1 when
strings were convertible to char[]. But today they are an array of
On 18/10/12 11:39, Iain Buclaw wrote:
On 18 October 2012 09:27, bearophile wrote:
Iain Buclaw:
In the gdc-4.6 package you have there, it's only naked asm that can't be
inlined.
Good.
However it is worth noting that DIASM is no longer in mainline gdc.
What's DIASM? Is it the D synta
On 17/10/12 18:02, Timon Gehr wrote:
On 10/17/2012 01:49 PM, Don Clugston wrote:
On 01/01/12 13:50, Timon Gehr wrote:
On 01/01/2012 10:40 AM, Denis Shelomovskij wrote:
So, I'm a function `f`, I have an `immutable(type)[]` argument and I
want to store it for my friend `g` in an TLS variab
On 17/10/12 23:41, H. S. Teoh wrote:
On Wed, Oct 17, 2012 at 12:55:56PM -0700, Jonathan M Davis wrote:
[...]
I'm increasingly convinced that input ranges which are not forward
ranges are useless for pretty much anything other than foreach. Far
too much requires that you be able to save the curre
On 01/01/12 13:50, Timon Gehr wrote:
On 01/01/2012 10:40 AM, Denis Shelomovskij wrote:
So, I'm a function `f`, I have an `immutable(type)[]` argument and I
want to store it for my friend `g` in an TLS variable `v`:
---
string v;
debug string sure;
void f(string s) { v = s; debug sure = s.idup;
On 16/10/12 05:18, Nick Sabalausky wrote:
On Tue, 16 Oct 2012 05:00:56 +0200
"stas" wrote:
For me syntax alias int Int; seems unnatural.
I'd love to write
alias Int = int;
alias fptr = void(int)*;
This looks much more readable for me and harmonized with
int x = 0;
template T(alias A = Object)
On 15/10/12 11:14, Jacob Carlborg wrote:
Just use DVM, it's also cross-platform:
https://bitbucket.org/doob/dvm
I tried that on both Windows and Ubuntu, and couldn't get it to work on
either of them. I posted a couple of bug reports eight months ago, and
they still haven't been fixed. Not re
On 15/10/12 06:42, Jonathan M Davis wrote:
On Sunday, October 14, 2012 21:39:42 H. S. Teoh wrote:
This looks like what happens if you try to use the latest dmd release
with an old version of Phobos, perhaps installed along with gdc.
Whoever's doing the .deb packaging really should add a version
On 10/10/12 14:09, bearophile wrote:
From Reddit, a nice survey:
http://www.reddit.com/r/coding/comments/118ssp/honours_student_at_my_university_is_doing_a/
For my Computer Science Honours research project, I am currently
investigating ways of improving the terse, technical error messages
g
On 10/10/12 13:27, Timon Gehr wrote:
On 10/10/2012 12:45 PM, Don Clugston wrote:
On 10/10/12 11:21, Jonathan M Davis wrote:
On Monday, October 08, 2012 18:47:43 Malte Skarupke wrote:
So I really can't think of a reason for why you wouldn't want
this. Yet this discussion has happen
On 10/10/12 11:21, Jonathan M Davis wrote:
On Monday, October 08, 2012 18:47:43 Malte Skarupke wrote:
So I really can't think of a reason for why you wouldn't want
this. Yet this discussion has happened several times already.
There is clear demand for it and very good reasons, such as those
ment
On 10/10/12 00:22, bearophile wrote:
Steven Schveighoffer:
Is there any advantage over having a function? I'd think you could
easily build a range based on the function, no?
Generators (that yield lexicographic permutations, permutation swaps,
combinations, etc) are quite more handy, you can
On 05/10/12 18:58, H. S. Teoh wrote:
On Fri, Oct 05, 2012 at 05:23:40PM +0200, Don Clugston wrote:
[...]
My feeling is that do{}while() is a fairly useless concept, and
this is part of the reason.
In my experience genuine do-while loops are extremely rare, and it
only takes a slight change to
On 05/10/12 15:35, monarch_dodra wrote:
On Friday, 5 October 2012 at 00:22:04 UTC, Jonathan M Davis wrote:
On Friday, October 05, 2012 02:08:14 bearophile wrote:
[SNIP]
Regarding definition of variables in D language constructs, there
is one situation where sometimes I find D not handy. This co
On 02/10/12 17:14, Andrei Alexandrescu wrote:
On 10/2/12 7:11 AM, Don Clugston wrote:
The problem
---
String literals in D are a little bit magical; they have a trailing \0.
[snip]
I don't mean to be Debbie Downer on this because I reckon it addresses
an issue that some
On 02/10/12 13:18, Tobias Pankrath wrote:
On Tuesday, 2 October 2012 at 11:10:46 UTC, Don Clugston wrote:
The problem
---
String literals in D are a little bit magical; they have a trailing
\0. This means that is possible to write,
printf("Hello, World!\n");
without i
On 02/10/12 13:26, deadalnix wrote:
Well the whole mess come from the fact that D conflate C string and D
string.
The first problem come from the fact that D array are implicitly
convertible to pointer. So calling D function that expect a char* is
possible with D string even if it is unsafe and
On 02/10/12 14:02, Andrej Mitrovic wrote:
On 10/2/12, Don Clugston wrote:
A proposal to clean up this mess
Any compile-time value of type immutable(char)[] or const(char)[],
behaves a string literals currently do, and will have a \0 appended when
it is stored
The problem
---
String literals in D are a little bit magical; they have a trailing \0.
This means that is possible to write,
printf("Hello, World!\n");
without including a trailing \0. This is important for compatibility
with C. This trailing \0 is mentioned in the spec but only inc
On 01/10/12 21:30, Adam D. Ruppe wrote:
On Monday, 1 October 2012 at 19:22:37 UTC, Philippe Sigaud wrote:
Something I wanted to ask for a long time: is there any runtime speed
penalty in using __ctfe?
No. What happens is when it goes to the compile the runtime code, __ctfe
is a constant false,
On 01/10/12 07:40, Tommi wrote:
import std.stdio;
int pow2(int val) pure
{
if (__ctfe)
return 6;
else
return val * val;
}
void main()
{
assert(pow2(3) == 9);
static assert(pow2(3) == 6);
writeln("9 = 6 ... I knew it! '6' was faking it all along
On 26/09/12 17:13, Johannes Pfau wrote:
The frexp test fails on ARM. I think the mask in line 1491 is
wrong:
https://github.com/D-Programming-Language/phobos/blob/master/std/math.d#L1491
For doubles, the 63 bit is sign, 62-52 are exponent and 51-0 are
mantissa.
The mask manipulates the bits 63-4
On 26/09/12 14:19, Timon Gehr wrote:
On 09/26/2012 11:45 AM, Don Clugston wrote:
On 25/09/12 21:30, Bernard Helyer wrote:
I tried to post this last night, but the NG wasn't having any of it.
I found myself writing a bug that looked like this
match(ts, TokenType.Is);
mat
On 26/09/12 01:31, H. S. Teoh wrote:
On Wed, Sep 26, 2012 at 01:10:00AM +0200, Timon Gehr wrote:
On 09/26/2012 12:58 AM, Iain Buclaw wrote:
[...]
string abc;
float[] A()
{
abc ~= "A";
return [];
}
float[] B()
{
abc ~= "B";
return [];
}
float[] C()
{
abc ~= "C";
On 25/09/12 21:30, Bernard Helyer wrote:
I tried to post this last night, but the NG wasn't having any of it.
I found myself writing a bug that looked like this
match(ts, TokenType.Is);
match(ts, TokenType.OpenParen);
isExp.type == parseType(ts);
The bug being of course, that a
On 24/09/12 17:19, Andrei Alexandrescu wrote:
On 9/24/12 4:17 AM, Don Clugston wrote:
Regarding the comma operator: I'd love to deprecate it, but even if we
don't, could we at least ensure that this kind of rubbish doesn't
compile:
void main()
{
int x;
x > 0, x += 5;
}
A
On 23/09/12 22:40, Andrei Alexandrescu wrote:
I discussed this with Walter, and we concluded that we could deprecate
the comma operator if it helps tuples. So I started with this:
http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP19
Unfortunately, I started much cockier than I ended.
101 - 200 of 2058 matches
Mail list logo