On Monday, 9 May 2016 at 00:44:09 UTC, Peter Häggman wrote:
Their tuples seem to be a complete DIY:
https://msdn.microsoft.com/en-us/library/system.tuple(v=vs.110).aspx
I wouldn't be surpised to see in the implementation an array of
variant or something like that, explaining why it's limited
On Saturday, 2 April 2016 at 01:19:45 UTC, Meta wrote:
What is needed is Lisp's gensym construct.
That's basically what I said, no? :p
One problem of lisp's gensym (if we were to use it in D) is that
it's simply a monotonically increasing number with a global
prefix. It's perfect for the lan
On Friday, 1 April 2016 at 21:46:35 UTC, ag0aep6g wrote:
On 01.04.2016 22:59, Simen Kjaeraas wrote:
The usual way to fix it would be to include __FILE__ and
__LINE__ in the
template arguments:
Right, no mixin this way. I wouldn't call this "truly nice",
though.
It
On Friday, 1 April 2016 at 19:03:03 UTC, ag0aep6g wrote:
I dislike that the type depends only on the given name. This
effectively means that the names are in a global namespace.
[snip]
I can't think of a truly nice way to accomplish this, though.
As far as I see, it needs a mixin of some kind.
On Friday, 25 March 2016 at 01:07:16 UTC, maik klein wrote:
Link to the blog post: https://maikklein.github.io/post/soa-d/
Link to the reddit discussion:
https://www.reddit.com/r/programming/comments/4buivf/why_and_when_you_should_use_soa/
Neat. I've actually thought about writing exactly this
On Wednesday, 20 January 2016 at 14:09:53 UTC, karabuta wrote:
On Monday, 18 January 2016 at 22:48:52 UTC, Brad Anderson wrote:
http://i.imgur.com/RSBLFDJ.png
Doesn't it look so much better: http://i.imgur.com/QlrbCou.png
Waw!! I never new the thing at the top was a moon when I was
doing m
On 2013-10-11, 11:14, Manu wrote:
[image: Big Thumbs Up]
I'm Simen Kjærås, and I approve of this message.
So... when'll all Facebook PHP code be replaced with D? :p
--
Simen
On 2013-06-23, 23:02, bearophile wrote:
Jacob Carlborg:
http://michelf.ca/projects/d-objc/syntax/
Instead of:
extern (Objective-C)
Is it better to use a naming more D-idiomatic?
extern (Objective_C)
There's already some precedence in extern (C++).
--
Simen
On 2013-05-30, 17:16, Andrei Alexandrescu wrote:
For the full story, mosey to the redesigned changelog:
http://dlang.org/changelog.html
Kudos to Andrej for this. *This* is how a great changelog looks.
--
Simen
On Thu, 16 May 2013 01:40:51 +0200, Andrej Mitrovic
wrote:
On 5/16/13, Nick Sabalausky wrote:
I wasn't around back then. :)
You must be very young, quite a prodigy, really ;)
I'm still learning the alphabet, I'm only at D now!
Now try writing that using only the letters you supposedl
On 2013-05-13, 21:09, Nick Sabalausky wrote:
On Mon, 13 May 2013 10:01:03 -0700
Bill Baxter wrote:
Is there a way to find all the reddit links to these (not a frequent
reddit user, but I'm curious to look over the discussions each vid
gets when I have the chance).
Added Reddit links here:
On 2013-05-12, 02:22, Andrei Alexandrescu wrote:
On 5/11/13 7:39 PM, Nick Sabalausky wrote:
Furthermore, my whole point was nothing more than to merely suggest
that *maybe* the delay should simply be somewhat less, *not* a demand
or expectation, and *not* even a suggestion that they should all
On 2013-05-11, 12:39, Rainer Schuetze wrote:
Hi,
a new version of Visual D is long overdue, so finally it is released. In
addition to the usual fixes of bugs and regressions, the major
highlights of this version are
- DParser by Alexander Bothe (https://github.com/aBothe/D_Parser, also
On Fri, 10 May 2013 15:00:44 +0200, Jeff Nowakowski
wrote:
On 05/08/2013 05:41 PM, Andrei Alexandrescu wrote:
VOTE UP!!!
http://www.reddit.com/r/programming/comments/1dyinq/dconf_2013_opening_keynote_by_walter_bright/
I have to laugh at the reddit id: "1dying"
:)
1dyinq, btw
--
Simen
On 2013-02-17, 10:52, Russel Winder wrote:
Why is this thread on the announce mailing list instead of the
discussion list?
Because it's more an announcement, and less a discussion about D?
--
Simen
On 2013-01-15, 20:29, Jesse Phillips wrote:
On Monday, 14 January 2013 at 09:34:50 UTC, nazriel wrote:
Hello!
I would love to say that it was just 1 April joke that Dpaste is going
down but I can't. Things got complicated. I couldn't afford extending
domain because I began to run low on mo
On 2013-34-14 10:01, nazriel wrote:
Hello!
I would love to say that it was just 1 April joke that Dpaste is going
down but I can't. Things got complicated. I couldn't afford extending
domain because I began to run low on money.
Thanks to Vladimir Panteleev aka CyberShadow, who donated mo
On 2013-30-09 04:01, Andrej Mitrovic wrote:
Some reasons to reject:
outright insane request.
RESOLVED: OUTRIGHT INSANE REQUEST
Yup, I likes that.
--
Simen
On 2012-39-06 20:11, Jacob Carlborg wrote:
On 2012-11-06 19:24, David Nadlinger wrote:
You are right, UDAs must definitely leverage D's module system for
encapsulation/disambiguation. Use of string literals (which are
intrinsically »global«) as annotations needs to be explicitly
discouraged
On 2012-10-15, 20:33, Andrei Alexandrescu wrote:
Hello all,
Please join me in congratulating Alex Rønne Petersen for joining the
phobos and druntime committers on github.
Alex has been a very active contributor to D, particularly druntime. We
hope his prolific participation to continue a
On 2012-10-10, 14:28, Adam D. Ruppe wrote:
Another thing I'm (slowly) working toward for the dead D projects thing
is opening my dpldocs.info to third party submissions.
It actually already kinda works: http://dpldocs.info/search/index
but isn't fully done yet.
I read that as diplodocus. Is
On 2012-10-10 08:10, Nick Sabalausky wrote:
Some stuff I thought needed to be said and shared:
http://semitwist.com/articles/article/view/dispelling-common-d-myths
Now on Reddit:
http://www.reddit.com/r/programming/comments/118y4m/dispelling_common_d_myths/
--
Simen
On Fri, 21 Sep 2012 05:58:21 +0200, Andrei Alexandrescu
wrote:
On 9/20/12 10:06 AM, Simen Kjaeraas wrote:
Cool. And now the inevitable: Will there be video?
No video was taken.
Andrei
*sadface*
--
Simen
On Thu, 20 Sep 2012 14:57:45 +0200, Andrei Alexandrescu
wrote:
I've had the honor of rubbing shoulders for a week at
http://laser.inf.ethz.ch/2012/ with Roberto Ierusalimschy, Ivar
Jacobson, Erik Meijer, Bertrand Meyer, Martin Odersky, Simon
Peyton-Jones, and Guido van Rossum. It was awe
On Fri, 24 Aug 2012 17:50:37 +0200, Andrei Alexandrescu
wrote:
Hi everybody,
I'm happy to announce that Dmitry has passed GSoC's final evaluation.
Going forward he and I will focus on integrating his work within Phobos.
This should have technically occurred during the allocated time its
On Fri, 24 Aug 2012 13:52:04 +0200, F i L wrote:
Peter Alexander wrote:
There's no such thing as a perfect language.
Note the asterisks.
What I'm used to, *this* means bold. *Perfect* thus means absolutely
perfect.
Perfect*, on the other hand, would mean either 'more information below'
or
On Fri, 24 Aug 2012 08:27:09 +0200, Jacob Carlborg wrote:
On 2012-08-23 16:38, Alex Rønne Petersen wrote:
Yes, but parallelization of the mark phase is fairly trivial, and
something we should probably look into.
The GC will probably always be STW unless we get compiler support for
inserting
On Tue, 21 Aug 2012 15:15:48 +0200, dsimcha wrote:
Congratulations, Antti-Ville! This project creates a better
implementation of precise GC heap scanning than anything that's been
created so far for D. The goal is to eventually integrate it into
standard D distributions. Any volunteers
On Sun, 19 Aug 2012 14:08:17 +0200, bearophile
wrote:
Walter Bright:
Oh come on. That's called a "user defined type."
This D code compiles and it throws an "Enforcement failed" Exception at
runtime:
import std.typecons: Nullable;
void main() {
Nullable!int x;
int y = x;
}
On Sun, 19 Aug 2012 05:52:01 +0200, Walter Bright
wrote:
On 8/18/2012 8:31 PM, Adam D. Ruppe wrote:
enum BOOL {
TRUE,
FALSE,
FILE_NOT_FOUND
}
I used to work with digital electronics. There, "boolean" logic actually
had 4 states:
True
False
Don't Know
Don
On Sun, 19 Aug 2012 22:18:37 +0200, Walter Bright
wrote:
On 8/19/2012 5:08 AM, bearophile wrote:
With a different type system the compiler makes sure at compile-time
that x is
not empty (this means the compiler makes sure in no code paths x is
used before
testing it contains something),
On Tue, 14 Aug 2012 11:44:43 +0200, Bernard Helyer
wrote:
On Tuesday, 14 August 2012 at 08:28:45 UTC, Walter Bright wrote:
On 8/13/2012 4:05 PM, Nick Sabalausky wrote:
Well, not *exactly* the same boat. I always, perhaps mistakenly,
assumed
the OMF issue would eventually get addressed. To
On Sat, 11 Aug 2012 10:16:37 +0200, Walter Bright
wrote:
No, it ain't much, some of it is jury rigged, and there's a heluva lot
more work to do. But we've got liftoff!
-
import core.stdc.stdio;
extern (C) int main()
{
puts("hello world\n");
re
On Fri, 25 May 2012 14:25:47 +0200, simendsjo wrote:
On Fri, 25 May 2012 14:13:24 +0200, Simen Kjaeraas
wrote:
A. No.
Q. Does top-posting make sense?
In emails to non-newsgroup people: yes!
I've sent several mails where the receiver doesn't think I've answered
anyth
A. No.
Q. Does top-posting make sense?
On Thu, 24 May 2012 18:13:59 +0200, Paul D. Anderson
wrote:
Here it is!
http://astoriaseminar.com/index.html
On Thursday, 17 May 2012 at 21:38:32 UTC, Paul D. Anderson wrote:
On Wednesday, 22 February 2012 at 22:07:26 UTC, Walter Bright wrote:
Pri
On Mon, 12 Sep 2011 16:43:36 +0200, Steven Schveighoffer
wrote:
While I agree a nested "@disable this" struct inside a struct should
disable default construction of the outer struct, a class *requires*
initialization, and a default constructor is called explicitly (and can
be defined!)
On Sun, 11 Sep 2011 19:57:12 +0200, Walter Bright
wrote:
On 9/11/2011 9:08 AM, Max Samukha wrote:
This test case
struct S
{
@disable this();
this(int x)
{
}
}
class C
{
S s;
this()
{
s = S(42);
}
}
void main()
{
auto c = new C;
}
yields Error: default construction is disabled for type C
On Thu, 24 Feb 2011 19:45:57 +0100, Walter Bright
wrote:
JMRyan wrote:
Congratulations are due to Walter. His alma mater (Cal Tech) won its
first basketball conference game in 26 years. Their 46-35 victory over
Occidental broke a 310 SCIAC losing streak. They shot a torid 25% for
the
Don wrote:
The difference was discovered through the unit tests for the
mathematical Special Functions which will be included in the next
compiler release. Discovery of the discrepancy happened only because of
several features of D:
- built-in unit tests (encourages tests to be run on ma
Andrei Alexandrescu wrote:
[Good Stuff™]
Awesome!
--
Simen
Stanislav Blinov wrote:
P.S. Guys, let's be polite, please! Yes, the news are great, but let's
not cause eyestrain to non-Russian speaking people.
Но Россия это весело!
(But russian is fun!)
--
Simen
Andrei Alexandrescu wrote:
Just got word from my editor that TDPL has been approved for translation
in Russian.
Отлично!
Now if only I knew russian, and didn't already have the english version...
--
Simen
Peter Alexander wrote:
On 29/10/10 7:54 PM, Lutger wrote:
Walter Bright wrote:
This is primarily a bug fix release.
And relaxed purity rules. They rule!
What relaxations were made, exactly?
Pure functions now only require that no globals are used in their body, and
that any called func
Max Samukha wrote:
As there is interest in the project, we have decided to proceed. Stay
tuned.
Yay! Good luck, and hope Walter and co will give your bug reports some
higher priority. I think that is the right thing to do now.
--
Simen
Walter Bright wrote:
Comments welcome.
I really like the feel, but I must join the others saying the menu text
has too low contrast.
I'm mostly using Opera 10.6/Win7 on 1920x1200 on a 15.4" laptop monitor,
and the font size is perfect for me. I noticed it's smaller in Chrome/
Firefox, but no
Steven Schveighoffer wrote:
On the flip side, if containers did not implement interfaces, having to
do this:
class WrappedSet!(alias Impl, V) : Set!V
{
private Impl!V impl;
int functionToSatisfySet() { return impl.functionToSatisfySet(); }
...
}
seems to me like a lot more crufty
Steven Schveighoffer wrote:
And if 3rd party X _needs_ to use interfaces, and 3rd party Y _needs_ to
use interfaces, and your code depends on X and Y, and interfaces aren't
defined by dcollections, where are you then?
You're at the point where the language allows you to create a class
foll
BCS wrote:
Cool. Now how do I write code so that it will always iterate the
collection with the bigger O() lookup time (O(n) before O(log2(n))
before O(log16(n)) before O(1))? :D
Add a function.
auto foo( R1, R2 )( R1 r1, R2 r2 ) if ( R1.complexity( 10_000 ) >
R2.complexity( 10_000 ) )
Robert Jacques wrote:
On Mon, 17 May 2010 21:03:02 -0400, Steven Schveighoffer
wrote:
Walter Bright Wrote:
Steven Schveighoffer wrote:
> The end result is, sometimes I can't find a link I clicked on before,
> because I'm no longer on the exact right page -- the nav bar is
totally
> de
Walter Bright wrote:
Highlights are the improved gdb support, better error messages, better
json support, unittest changes, and a number of nuisance compiler bugs
fixed.
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.059.zip
http://www.digitalmars.com/d/
Rainer Schuetze wrote:
Hello,
I'd like to announce the initial release of Visual D, a Visual Studio
package providing both project management and language services for
integration of the D programming language into Visual Studio.
[snip]
Enjoy,
Rainer
Thank you. I love this.
However, I
Walter Bright wrote:
Lots of meat and potatoes here, and a cookie! (spelling checker for
error messages)
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.057.zip
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.041.zip
Thanks
Walter Bright wrote:
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.056.zip
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.040.zip
Thanks to the many people who contributed to this update!
D2 changelog points @disable to
Bill Baxter wrote:
Biggest problem with OpenGL is that the quality is crap for 2D stuff,
and quality really matters when you're trying to do something like
draw 2000 little markers on a plot and each is only 5 pixels wide.
Best you can do right now with GL without a lot of contortions is
somet
On Sun, 06 Dec 2009 03:35:42 +0100, Walter Bright
wrote:
Simen kjaeraas wrote:
I get a compile error:
std\conv.d(2506): Error: undefined identifier module
traits.staticIndexOf
Line 2506 in std.conv should be changed from
if (std.traits.staticIndexOf!(Unqual!S, uint, ulong) >
On Sat, 05 Dec 2009 05:05:13 +0100, Walter Bright
wrote:
Probably the biggest thing is opDispatch!
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.053.zip
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.037.zip
Many thanks
On Wed, 03 Jun 2009 02:35:03 +0200, Tim Matthews
wrote:
Knud Soerensen wrote:
Hej John
Undskyld, forsinkelsen med denne mail.
Normalt er jeg optaget mandag aften.
Derudover har jeg noget den 6 og 14 juni.
Håber, vi kan find en dag at mødes.
VH. Knud
Ps.) Jeg kan ikke huske om den sidst
div0 wrote:
Hi Everybody,
Greetings.
While I am not able to help with your problem, I would like
to point you to digitalmars.D.learn, which is for questions
about how the language works. digitalmars.D.announce is for
announcements.
--
Simen
Walter Bright wrote:
Is this a good idea?
Yes.
Although, D.current and D.next or something along those lines, seems to me
better than D1 and D2 (there is reason to believe there will be a D3 in the
future).
--
Simen
On Mon, 04 May 2009 20:47:10 +0200, Sean Kelly wrote:
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s
article
I don't agree. I think there is much more at work here. Slides are
limited in size and text content simply because there is so much
information a person can absor
dsimcha wrote:
RangeExtra version 10^-20 is officially out. It consists of a small and
hopefully growing number of ranges that didn't make it into the new
Phobos
that I've gotten working reasonably well and I feel eventually belong in
Phobos.
Docs / What's there:
http://cis.jhu.edu/~dsimc
grauzone wrote:
void streamOut(T, R)(T object, R range)
{
foreach(x; a) range.put(x);
range.put(b);
range.put(c);
}
So, um... what is a b c and T object?
In my opinion, this is a confusing example. I believe it was meant to be:
void streamOut(T, R)(T object, R range)
{
foreach(
Don wrote:
I'd like to see version(debug) {} put around Object.toString(). It's a
deathtrap feature that's got no business being used other than for
debugging.
That actually sounds like a good idea. Like you say, is has no use
outside of debugging, but while debugging, it's quite useful.
-
On Mon, 20 Apr 2009 09:09:09 +0200, Walter Bright
wrote:
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Butbutbut... I've just barely managed to install 2.02
On Fri, 13 Mar 2009 06:57:12 +0100, Derek Parnell wrote:
On Thu, 12 Mar 2009 12:59:08 -0700, Walter Bright wrote:
If you work with kids teaching them to read phonetically (rather than
look-say), you'll discover that by and large, the phonetic rules work
very well. They'll pronounce about 80%
On Thu, 18 Dec 2008 13:27:16 +0100, Christopher Wright
wrote:
Simen Kjaeraas wrote:
On Thu, 18 Dec 2008 07:01:49 +0100, Steven Schveighoffer
wrote:
Walter wants pure functions that have no side effects *AND* cannot be
affected by other functions' side effects. Your example fail
On Thu, 18 Dec 2008 07:01:49 +0100, Steven Schveighoffer
wrote:
Walter wants pure functions that have no side effects *AND* cannot be
affected by other functions' side effects. Your example fails the second
requirement.
I should have put that in there as well. My point was that a delegate
On Wed, 17 Dec 2008 00:39:00 +0100, Robert Jacques
wrote:
On Tue, 16 Dec 2008 12:28:43 -0800, Simen Kjaeraas
wrote:
So this does not seem pure to you?
int myPureFunction(int x) {
return x;
}
Short answer: That's a function, not a delegate and without a 'pure
On Tue, 16 Dec 2008 18:58:47 +0100, Robert Jacques
wrote:
On Mon, 15 Dec 2008 17:48:21 -0500, mastrost wrote:
In this example, myPureFunction looks like a pure function, does it?
No it doesn't
So this does not seem pure to you?
int myPureFunction(int x) {
return x;
}
--
Simen
On Mon, 27 Oct 2008 00:41:26 +0100, Bill Baxter <[EMAIL PROTECTED]> wrote:
Same thing goes for downs' in-fix operators. I think his syntax is
/infix/ which means that his ops always have the same precedence as
division.
I'm guessing this Python Cookbook recipe is very similar to Downs'
technique
On Sun, 26 Oct 2008 22:28:16 +0100, Bill Baxter <[EMAIL PROTECTED]> wrote:
On Sun, Oct 26, 2008 at 11:02 PM, Simen Kjaeraas
<[EMAIL PROTECTED]> wrote:
On Sat, 25 Oct 2008 12:14:47 +0200, Spacen Jasset
<[EMAIL PROTECTED]>
wrote:
Why unicode anyway? In the same way that
On Sat, 25 Oct 2008 12:14:47 +0200, Spacen Jasset
<[EMAIL PROTECTED]> wrote:
Why unicode anyway? In the same way that editor support is required to
actually type them in, why not let the editor render them. So instead of
symbol 'x' in the source code, say:
m3 = m1 cross_product m2
as an
On Fri, 24 Oct 2008 18:52:03 +0200, Bruno Medeiros
<[EMAIL PROTECTED]> wrote:
Simen Kjaeraas wrote:
As an example, while I'd enjoy seeing code like this, I'm not sure I'd
enjoy writing it (Note that I am prone to exaggerations):
int a = ∅; //empty set, sam
On Fri, 24 Oct 2008 18:28:51 +0200, Bruno Medeiros
<[EMAIL PROTECTED]> wrote:
Andrei Alexandrescu wrote:
Please vote up before the haters take it down, and discuss:
http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/
Andrei
I'm unsure abo
On Thu, 23 Oct 2008 23:47:59 +0200, Bill Baxter <[EMAIL PROTECTED]> wrote:
On Fri, Oct 24, 2008 at 5:48 AM, Simen Kjaeraas <[EMAIL PROTECTED]>
wrote:
writefln(√(c.foo)); // I thought this should work in D today, using
"alias sqrt √;", but it seems the
On Thu, 23 Oct 2008 00:27:58 +0200, Andrei Alexandrescu
<[EMAIL PROTECTED]> wrote:
Please vote up before the haters take it down, and discuss:
http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/
Andrei
I really like the idea of having more unic
On Wed, 22 Oct 2008 20:42:05 +0200, Sean Kelly <[EMAIL PROTECTED]>
wrote:
Don wrote:
'std', 'stdc' and 'sys' sound OK to me. Although is there any reason
why stdc couldn't be part of 'sys'?
IMHO: 'common' sounds far too generic. 'core' is borderline.
My current thought is to have:
core/
77 matches
Mail list logo