dstats reborn

2014-07-17 Thread John Colvin via Digitalmars-d-announce
David Simcha's stats library is full of useful code and it was a shame to let it rot. I've patched it up to work with modern D compilers and added dub support. https://github.com/John-Colvin/dstats http://code.dlang.org/packages/dstats I have also made a pull request to David's repository to

Re: DConf 2014 Day 3 Talk 2: Real-Time Big Data in D by Don Clugston

2014-07-17 Thread Atila Neves via Digitalmars-d-announce
I wish I'd asked for the mic before I made the (inaudible) comment about signedness, so here it is: Subtracting unsigneds is almost always a bug. The problem (realised by the C++ community) is that length should be signed. Atila On Wednesday, 16 July 2014 at 16:51:19 UTC, Andrei

DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
http://www.reddit.com/r/programming/comments/2ayt42/dconf_2014_adam_d_ruppes_amazing_slideless_talk/ https://www.facebook.com/dlang.org/posts/886573308023018 https://twitter.com/D_Programming/status/489811286897983489 Andrei

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Adam D. Ruppe via Digitalmars-d-announce
BTW here's the post Andrei made on the day of with the little notebook paper I used for a topic list and some discussion we had in May: http://forum.dlang.org/thread/llo7i8$e4e$1...@digitalmars.com

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Adam D. Ruppe via Digitalmars-d-announce
Also, my book is out now, it was published the Monday after the talk! Here's the link: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Dicebot via Digitalmars-d-announce
On Thursday, 17 July 2014 at 16:39:28 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2ayt42/dconf_2014_adam_d_ruppes_amazing_slideless_talk/ https://www.facebook.com/dlang.org/posts/886573308023018 https://twitter.com/D_Programming/status/489811286897983489

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 7/17/14, 10:43 AM, Adam D. Ruppe wrote: Also, my book is out now, it was published the Monday after the talk! Here's the link: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book Put that on reddit. -- Andrei

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 17 July 2014 at 18:37:54 UTC, Andrei Alexandrescu wrote: Put that on reddit. -- Andrei I've tried a few times and it doesn't work.. the post appears to me, but is invisible to everyone else. I think reddit's silent spam filter dislikes the link. I can tell them to search the

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread deadalnix via Digitalmars-d-announce
On Thursday, 17 July 2014 at 18:42:38 UTC, Adam D. Ruppe wrote: On Thursday, 17 July 2014 at 18:37:54 UTC, Andrei Alexandrescu wrote: Put that on reddit. -- Andrei I've tried a few times and it doesn't work.. the post appears to me, but is invisible to everyone else. I think reddit's silent

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 17 July 2014 at 18:48:11 UTC, deadalnix wrote: You may have been shadow banned. You should contact some reddit admins. It doesn't seem to be my account itself, just that link. Someone else says they tried posting it too but I can't see it, I think reddit just doesn't like the

Re: DConf 2014: Adam D Ruppe's amazing slideless talk on x86 Bare Metal and Custom Runtime Programming

2014-07-17 Thread Walter Bright via Digitalmars-d-announce
On 7/17/2014 12:29 PM, Adam D. Ruppe wrote: On Thursday, 17 July 2014 at 18:48:11 UTC, deadalnix wrote: You may have been shadow banned. You should contact some reddit admins. It doesn't seem to be my account itself, just that link. Someone else says they tried posting it too but I can't see

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-17 Thread John via Digitalmars-d-announce
On Tuesday, 15 July 2014 at 19:00:35 UTC, Walter Bright wrote: On 7/15/2014 11:28 AM, John wrote: At the end of this video, it sounds like it ends abruptly.. While answering a question, Walter says.. 'it turns out..' and the video ends there. That's when my time ran out and I vanished in a

Re: dstats reborn

2014-07-17 Thread ponce via Digitalmars-d-announce
On Thursday, 17 July 2014 at 15:20:20 UTC, John Colvin wrote: David Simcha's stats library is full of useful code and it was a shame to let it rot. I've patched it up to work with modern D compilers and added dub support. https://github.com/John-Colvin/dstats

Re: DSnips - making D coding awesome in Vim (with GIFs!)

2014-07-17 Thread Justin Whear via Digitalmars-d-announce
On Thu, 17 Jul 2014 20:57:10 +, Kiith-Sa wrote: I want to eventually try to merge this back to the default repository, but I'd like some comments/criticism/ideas first. Should any snippets be removed? Added? Any problems with the current snippets? (the wrap in try/catch in the previous

Re: DSnips - making D coding awesome in Vim (with GIFs!)

2014-07-17 Thread uri via Digitalmars-d-announce
On Thursday, 17 July 2014 at 20:57:10 UTC, Kiith-Sa wrote: DSnips is a set of UltiSnips snippets for D (now with GIFs showing each snippet in action (image-heavy)) https://github.com/kiith-sa/DSnips This is an attempt to overhaul the D snippets I got merged to UltiSnips (now a separate

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-17 Thread Nick Sabalausky via Digitalmars-d-announce
On 7/16/2014 5:15 AM, Jaroslav Hron wrote: On Tuesday, 15 July 2014 at 16:20:34 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/2aruaf/dconf_2014_keynote_high_performance_code_using_d/ https://www.facebook.com/dlang.org/posts/885322668148082

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-17 Thread Walter Bright via Digitalmars-d-announce
On 7/16/2014 7:21 AM, dennis luehring wrote: can you give an short (working) example code to show the different resulting assembler for your for-rewrite example - and what compilers your using for testing - only dmd or gdc? I used dmd.

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-17 Thread dennis luehring via Digitalmars-d-announce
Am 18.07.2014 04:52, schrieb Walter Bright: On 7/16/2014 7:21 AM, dennis luehring wrote: can you give an short (working) example code to show the different resulting assembler for your for-rewrite example - and what compilers your using for testing - only dmd or gdc? I used dmd. i

Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright

2014-07-17 Thread Walter Bright via Digitalmars-d-announce
On 7/17/2014 9:40 PM, dennis luehring wrote: i understand your focus on dmd - but talking about fast code and optimizing WITHOUT even trying to compare with other compiler results is just a little bit strange for someone who stated speed = money The point was to get people to look at the asm

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Walter Bright via Digitalmars-d
On 7/16/2014 1:12 PM, Johannes Pfau wrote: I'll take this as you pre-approve all the mentioned extensions? * way to disable typeinfo for struct Worth investigating. It'd probably be much more effective to work the linker angle of removing items for which no references exist. Martin was

Re: core.stdc.fenv on Win64

2014-07-17 Thread Walter Bright via Digitalmars-d
On 7/16/2014 3:42 PM, Trass3r wrote: The implementation doesn't seem to be correct. Could anybody versed in this look into it? version(Windows) { private extern __gshared fenv_t _FE_DFL_ENV; fenv_t* FE_DFL_ENV = _FE_DFL_ENV; } There's no such symbol in the libcmt and it fails to

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Iain Buclaw via Digitalmars-d
On 17 July 2014 07:09, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 7/16/2014 1:12 PM, Johannes Pfau wrote: I'll take this as you pre-approve all the mentioned extensions? * way to disable typeinfo for struct Worth investigating. It'd probably be much more

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Kagamin via Digitalmars-d
On Wednesday, 16 July 2014 at 20:11:22 UTC, Johannes Pfau wrote: I think it's kinda ridiculous that D embedded code will only be usable with strong optimization flags, but whatever. Do you have numbers? Transitive volatility implies you planned to do very complex things in embedded. If

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Kagamin via Digitalmars-d
On Wednesday, 16 July 2014 at 20:14:38 UTC, Johannes Pfau wrote: * way to disable typeinfo for struct * way to disable initializer * force inlining * (way to omit copy constructor function / force inline) BTW, can't lto already remove this unused data? LDC inlines simple initializers already,

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread bearophile via Digitalmars-d
Walter Bright: Unless a convincing counter argument emerges, yes. Please Walter, list your convincing arguments to not fix the situation. Bye, bearophile

Re: Integer overflow and underflow semantics?

2014-07-17 Thread John Colvin via Digitalmars-d
On Wednesday, 16 July 2014 at 21:26:41 UTC, Gary Willoughby wrote: This was asked a few years ago and i could find a definitive answer. http://forum.dlang.org/thread/jo2c0a$31hh$1...@digitalmars.com On Saturday, 5 May 2012 at 04:57:48 UTC, Alex Rønne Petersen wrote: I don't think the

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Wednesday, 16 July 2014 at 21:02:42 UTC, Timon Gehr wrote: On 07/16/2014 01:22 PM, Remo wrote: On Monday, 14 July 2014 at 23:43:57 UTC, H. S. Teoh via Digitalmars-d wrote: On Mon, Jul 14, 2014 at 11:22:53PM +, John Carter via Digitalmars-d wrote: [...] Any other good blog posts /

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Walter Bright via Digitalmars-d
On 7/17/2014 1:28 AM, bearophile wrote: Walter Bright: Unless a convincing counter argument emerges, yes. Please Walter, list your convincing arguments to not fix the situation. Breaks existing, working code for little gain. I suggested a fix that deals with the issue and does not break

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Kagamin via Digitalmars-d
Deprecation of LastCatch doesn't break existing code either.

GCs in the news

2014-07-17 Thread Russel Winder via Digitalmars-d
It appears still to be a general meme that performance required no GC and GC mean poor performance. The debate has been restarted on the Go mailing list under the banner go without garbage collector. The response to will Go remove the garbage collector was somewhat unequivocal: nope. -- Russel.

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor performance. The debate has been restarted on the Go mailing list under the banner go without garbage collector. The

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: The funny thing about C++ is that there is a plethora of books that teach you how to do it right, which is a sign that there is something inherently wrong with the language*. I find that in D there aren't many ways to *really* do it

Re: GCs in the news

2014-07-17 Thread currysoup via Digitalmars-d
On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor performance. The debate has been restarted on the Go mailing list

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Walter Bright via Digitalmars-d
On 7/17/2014 2:40 AM, bearophile wrote: Walter Bright: Breaks existing, working code for little gain. I suggested a fix that deals with the issue and does not break existing code. This is not yet convincing. Let's talk about the Pokemon Exception Handling, for when you just Gotta Catch 'Em

Re: Ambiguous mangling of symbols declared in nested scopes

2014-07-17 Thread Daniel Murphy via Digitalmars-d
H. S. Teoh via Digitalmars-d wrote in message news:mailman.4230.1405534833.2907.digitalmar...@puremagic.com... But maybe some of the DMD experts can speak up about this. ;-) This is fairly well known, the same thing exists for static variables and nested functions etc. I think there is

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread bearophile via Digitalmars-d
Walter Bright: Breaks existing, working code for little gain. I suggested a fix that deals with the issue and does not break existing code. This is not yet convincing. Let's talk about the Pokemon Exception Handling, for when you just Gotta Catch 'Em All :-) I think the D/Python code that

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread eles via Digitalmars-d
On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: The funny thing about C++ is that there is a plethora of books that teach you how to do it right, which is a sign that there is something inherently wrong with the language*. I

Re: GCs in the news

2014-07-17 Thread eles via Digitalmars-d
On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: That's good news in a way. If a big company accepts GC and the Go crowd go with it (pardon the pun), then it will find more acceptance (as Paulo pointed

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Brian Schott via Digitalmars-d
On Thursday, 17 July 2014 at 09:57:37 UTC, Walter Bright wrote: I.e. it's why, not why not make a breaking change. Especially since it is apparently a commonly used coding pattern, appearing 25 times in Phobos alone. What? The plan is to keep the syntax that is used in Phobos and get rid of

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Russel Winder via Digitalmars-d
On Thu, 2014-07-17 at 09:32 +, Chris via Digitalmars-d wrote: […] Also, if the trend in C++ is to go back to functional programming (don't use classes, inheritance etc.), then what's the point? Why not use C instead. It's kinda absurd. C cannot do RAII, nor can it do internal DSL (via

Re: Ambiguous mangling of symbols declared in nested scopes

2014-07-17 Thread Dicebot via Digitalmars-d
Slight correction : it is not a mangling of variable that is a problem (local variables don't have any mangling) but mangling of the function itself (it naively uses variable name for mangled name generation). Should use something like unique id instead.

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Dicebot via Digitalmars-d
On Thursday, 17 July 2014 at 09:57:37 UTC, Walter Bright wrote: I.e. it's why, not why not make a breaking change. Especially since it is apparently a commonly used coding pattern, appearing 25 times in Phobos alone. It is used 0 times in Phobos. In fact I have not seen it used for a single

Re: GCs in the news

2014-07-17 Thread Daniel Murphy via Digitalmars-d
currysoup wrote in message news:iustbzgyagrlbtnfc...@forum.dlang.org... Once you're going to these lengths to avoid garbage collection it begs the question, why are you even using this language? Because D has plenty of other things to offer.

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Daniel Murphy via Digitalmars-d
Dicebot wrote in message news:dikroykmroruujndl...@forum.dlang.org... It is used 0 times in Phobos. In fact I have not seen it used for a single time in any living project - guess because any sane person understands how terrible of a misfeature it is. I've used it, because I'm lazy.

Re: DIP65: Fixing Exception Handling Syntax

2014-07-17 Thread Kagamin via Digitalmars-d
On Thursday, 17 July 2014 at 10:38:46 UTC, Daniel Murphy wrote: You will break some code if you disallow it. An alternative was presented here: a warning and deprecation.

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 11:15:10 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 09:52:45 UTC, eles wrote: On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: The funny thing about C++ is that there is a plethora of books that teach you how to do it right, which is a sign that there

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread eles via Digitalmars-d
On Thursday, 17 July 2014 at 11:20:30 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:52:45 UTC, eles wrote: On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: Then why not create C+++ that keeps these useful features and get

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 11:29:40 UTC, eles wrote: On Thursday, 17 July 2014 at 11:20:30 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:52:45 UTC, eles wrote: On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday, 17 July 2014 at 08:56:40 UTC, Chris wrote: Then why not

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread eles via Digitalmars-d
On Thursday, 17 July 2014 at 11:48:20 UTC, Chris wrote: On Thursday, 17 July 2014 at 11:29:40 UTC, eles wrote: On Thursday, 17 July 2014 at 11:20:30 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:52:45 UTC, eles wrote: On Thursday, 17 July 2014 at 09:32:15 UTC, Chris wrote: On Thursday,

Re: Integer overflow and underflow semantics?

2014-07-17 Thread David Nadlinger via Digitalmars-d
On Thursday, 17 July 2014 at 08:50:12 UTC, John Colvin wrote: Every machine D will feasibly support will do T.max + 1 == T.min and T.min - 1 == T.max for native integral operations, signed or unsigned. In fact, the spec mandates this (see AddExpression): If both operands are of integral

Re: Random points from a D n00b CTO

2014-07-17 Thread Jacob Carlborg via Digitalmars-d
On 16/07/14 11:56, Vic wrote: Java is the devil I know. But if D is not my first choice to port(from Java), than my second choice is Qt. There is DWT [1], which is a port of the Java library SWT. [1] https://github.com/d-widget-toolkit/dwt -- /Jacob Carlborg

Re: Ambiguous mangling of symbols declared in nested scopes

2014-07-17 Thread David Nadlinger via Digitalmars-d
On Thursday, 17 July 2014 at 10:03:08 UTC, Daniel Murphy wrote: The solution is also fairly straightforward - give each local declaration a unique name (for mangling only). It probably requires some minor structural changes in dmd. As an aside, these names should be independent of

Re: GCs in the news

2014-07-17 Thread Paulo Pinto via Digitalmars-d
On Thursday, 17 July 2014 at 11:15:10 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme

Re: GCs in the news

2014-07-17 Thread w0rp via Digitalmars-d
The key to making D's GC acceptable lies in two factors I believe. 1. Improve the implementation enough so that you will only be impacted by GC in extermely low memory or real time environments. 2. Defer allocation more and more by using ranges and algorithms more, and trust that compiler

Re: GCs in the news

2014-07-17 Thread Remo via Digitalmars-d
On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor performance. The debate has been restarted on the Go mailing list under the banner go without garbage collector. The

Re: GCs in the news

2014-07-17 Thread John via Digitalmars-d
On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: It's not about acceptance, it's about the reality that a GC is not a universal solution to memory management. Just from watching a few of the DConf 2014 talks, if you want performance you avoid the GC at all costs (even if that means

Re: GCs in the news

2014-07-17 Thread currysoup via Digitalmars-d
On Thursday, 17 July 2014 at 11:15:10 UTC, Chris wrote: Don't know if it's really a major concern or the favorite weak spot that C++ et. al guys like to flog to death in order to distract from the many strengths that D has (in comparison with C++ et al.) The answer is always D has GC, it's

Re: Ambiguous mangling of symbols declared in nested scopes

2014-07-17 Thread Sean Kelly via Digitalmars-d
I opened a number of bugs regarding ambiguities while writing core.demangle. They're all tagged with some searchable keyword too, though I can't recall what it is.

Re: GCs in the news

2014-07-17 Thread eles via Digitalmars-d
On Thursday, 17 July 2014 at 13:30:15 UTC, currysoup wrote: On Thursday, 17 July 2014 at 11:15:10 UTC, Chris wrote: *According to Don Clugston's talk the default GC can pause for ~250ms which is totally insane for any kind of interactive or near-real-time system. If their concurrent version

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Byron Heads via Digitalmars-d
On Wed, 16 Jul 2014 11:49:21 -0700, Walter Bright wrote: I'll add that if it turns out we can't do a wrapper because of some limitations/bugs in D's expressiveness, that is the problem with D we need to fix, not adding another type modifier. It all comes down to leverage. Making user

Re: GCs in the news

2014-07-17 Thread Brian Rogoff via Digitalmars-d
On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: If D came without GC, it would have replaced C++ a long time ago! That's overly optimistic I think, but I believe that the adoption rate would have been far greater for a D without GC, or perhaps with a more GC friendly design, as the GC

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Daniel Murphy via Digitalmars-d
Iain Buclaw via Digitalmars-d wrote in message news:mailman.4214.1405521071.2907.digitalmar...@puremagic.com... No they don't. Intrinsics make things worse. ? At worst they're useless. They are _trivial_ to implement for any of the compilers. No they aren't, unless you are talking

Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread Uranuz via Digitalmars-d
Seems that I saw similar post but about plain arrays somewhere but currently I can't find it. The topic is that when I initialize associative array of interfaces with AA-literal consisting of derived class objects I get compiler error. import std.stdio; interface IBase { } class

Re: GCs in the news

2014-07-17 Thread Araq via Digitalmars-d
I feel it is a major concern, if I'm starting a project with low latency requirements* I certainly think twice about using D. I think this could apply especially to people outside the community who might not have experienced the benefits D provides. The issue is not there is a GC, it's that

Re: Weird…

2014-07-17 Thread John via Digitalmars-d
On Wednesday, 16 July 2014 at 17:47:09 UTC, Nick Sabalausky wrote: On 7/15/2014 3:56 PM, Robert burner Schadek wrote: On Tuesday, 15 July 2014 at 18:28:14 UTC, Walter Bright wrote: Even more amazing, Germans all have D plastered on their cars! So we don't forget were we are :D That's

Re: Integer overflow and underflow semantics?

2014-07-17 Thread Artur Skawina via Digitalmars-d
On Thursday, 17 July 2014 at 08:50:12 UTC, John Colvin wrote: there may be ways of telling backends that it is defined and we may be using those ways, I don't know. For GDC, it's the '-fwrapv' switch, but it's not enabled by default for D. artur

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 14:05:02 UTC, Brian Rogoff wrote: On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: If D came without GC, it would have replaced C++ a long time ago! That's overly optimistic I think, but I believe that the adoption rate would have been far greater for a D

Re: Integer overflow and underflow semantics?

2014-07-17 Thread bearophile via Digitalmars-d
Artur Skawina: For GDC, it's the '-fwrapv' switch, but it's not enabled by default for D. I think it has to be enabled by default, plus you can add a switch to disable that standard D semantics. Bye, bearophile

Re: Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread Uranuz via Digitalmars-d
Actualy I found this bug report, but I don't know if there suggested something around associative arrays https://issues.dlang.org/show_bug.cgi?id=5498

Re: GCs in the news

2014-07-17 Thread bachmeier via Digitalmars-d
On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: It's not about acceptance, it's about the reality that a GC is not a universal solution to memory management. Just from watching a few of the DConf 2014 talks, if you want

Re: GCs in the news

2014-07-17 Thread Chris via Digitalmars-d
On Thursday, 17 July 2014 at 15:19:59 UTC, bachmeier wrote: On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: On Thursday, 17 July 2014 at 09:57:09 UTC, currysoup wrote: It's not about acceptance, it's about the reality that a GC is not a universal solution to memory management. Just

Re: LinkedIn Article to be: Why you need to start moving off C/C++ to D, now.

2014-07-17 Thread Tobias Müller via Digitalmars-d
Araq rump...@web.de wrote: The paper focusses on RC vs tracing. My point is tracing vs copying is another tradeoff. Here is a marksweep algorithm: - Trace live objects. - For each dead object: Deallocate. Here is a copying GC: - Trace and copy live objects. - There is no deallocation

Re: Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread bearophile via Digitalmars-d
Uranuz: Actualy I found this bug report, but I don't know if there suggested something around associative arrays https://issues.dlang.org/show_bug.cgi?id=5498 I think it's a bug. Issue 5498 it's better left closed. Search if another more specific bug is open on this, or open a new one

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Andrei Alexandrescu via Digitalmars-d
On 7/15/14, 9:25 AM, Johannes Pfau wrote: DIP62 describes how to solve this problem and make embedded programming a first-class citizen in D: http://wiki.dlang.org/DIP62 [snip] The good: This is a very crisply-written and comprehensive proposal. It could use a little work (e.g. define the

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread John Colvin via Digitalmars-d
On Thursday, 17 July 2014 at 15:58:05 UTC, Andrei Alexandrescu wrote: I think an approach based on functions peek/poke is a lot more promising. D programs must define sequences of std calls anyway, otherwise even the simplest programs that use writeln(What's your name?) followed by a readln()

Re: DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

2014-07-17 Thread Sean Kelly via Digitalmars-d
We had the volatile statement as a compiler barrier in D1. Why not basically that instead of a type qualifier? We pretty much need it back for atomics anyway.

Re: GCs in the news

2014-07-17 Thread Andrei Alexandrescu via Digitalmars-d
On 7/17/14, 2:57 AM, currysoup wrote: On Thursday, 17 July 2014 at 09:26:38 UTC, Chris wrote: On Thursday, 17 July 2014 at 09:20:36 UTC, Russel Winder via Digitalmars-d wrote: It appears still to be a general meme that performance required no GC and GC mean poor performance. The debate has

Re: GCs in the news

2014-07-17 Thread thedeemon via Digitalmars-d
On Thursday, 17 July 2014 at 12:37:10 UTC, w0rp wrote: For improving the GC to an acceptable level, I believe collection only needs to execute fast enough such that it will fit within a frame comfortably. So for something rendering at 60FPS you have 1 second / 60 frames ~= 16.6 milliseconds

Encouraging memory efficiency

2014-07-17 Thread Tero via Digitalmars-d
Just watched Don's DConf 2014 talk where he said D has to be ruthless about memory inefficiency. Here's one thing that I think could help avoid unnecessary garbage: built-in syntax for this: import core.stdc.stdlib : alloca; ubyte[] buffer = (cast(ubyte*) alloca(bufsize)) [0 .. bufsize];

Re: Encouraging memory efficiency

2014-07-17 Thread bearophile via Digitalmars-d
Tero: Allocating in the stack seems ideal so I'd encourage that by a clean syntax. I keep missing this feature. See: https://issues.dlang.org/show_bug.cgi?id=9832 http://en.cppreference.com/w/cpp/container/dynarray Bye, bearophile

Re: Encouraging memory efficiency

2014-07-17 Thread Kapps via Digitalmars-d
On Thursday, 17 July 2014 at 16:28:00 UTC, Tero wrote: Just watched Don's DConf 2014 talk where he said D has to be ruthless about memory inefficiency. Here's one thing that I think could help avoid unnecessary garbage: built-in syntax for this: import core.stdc.stdlib : alloca; ubyte[]

Re: Encouraging memory efficiency

2014-07-17 Thread bearophile via Digitalmars-d
Kapps: In theory there would probably be an allocator that uses alloca when Andrei's std.allocator makes it in. How is it going to work? Also, there used to be a built in syntax, 'scope foo = new Foo()' that would allocate on the stack, but that's deprecated now Perhaps once the scope

Re: Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread bearophile via Digitalmars-d
Reduced: interface IBase {} class Impl(T): IBase { T value; } void main() { IBase a = true ? (new Impl!uint) : (new Impl!string); } test.d(6,23): Error: cannot implicitly convert expression (new Impl!uint) of type object.Object to test.IBase Bye, bearophile

Re: GCs in the news

2014-07-17 Thread Vic via Digitalmars-d
On Thursday, 17 July 2014 at 13:29:18 UTC, John wrote: snip If D came without GC, it would have replaced C++ a long time ago! Agree +1000. If GC is so good, why not make it an option, have a base lib w/o GC. If I want GC, I got me JRE. It seems that some in D want to write a better JRE,

Re: Using D

2014-07-17 Thread Vic via Digitalmars-d
On Friday, 11 July 2014 at 19:46:25 UTC, Walter Bright wrote: snip GC phobia is a convenient excuse for people to not use D, people who may have different actual reasons that they don't express for various reasons or may not even realize. Hi Walter, Please give us a bit more respect and

static opCall 'hidden' by incompatible constructors

2014-07-17 Thread Nick Treleaven via Digitalmars-d
Hi, I'm trying to update std.typecons.Unique. I want to add a static opCall with no arguments to simulate a nullary-argument constructor. Unfortunately, with a recent dmd from Git, I get this (reduced code): class Class {} struct U { Class c; this(A...)(A args) if (A.length !=

Re: GCs in the news

2014-07-17 Thread Peter Alexander via Digitalmars-d
On Thursday, 17 July 2014 at 16:56:56 UTC, Vic wrote: If GC is so good, why not make it an option, have a base lib w/o GC. Much of Phobos already is GC free. The parts that aren't should be easy to convert to use user-supplied buffers. Please add enhancement requests for cases where there

Re: Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread bearophile via Digitalmars-d
interface IBase {} class Impl(T): IBase { T value; } void main() { IBase a = true ? (new Impl!uint) : (new Impl!string); } I have added a note: https://issues.dlang.org/show_bug.cgi?id=3543 Bye, bearophile

Re: Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread Uranuz via Digitalmars-d
On Thursday, 17 July 2014 at 17:15:54 UTC, bearophile wrote: interface IBase {} class Impl(T): IBase { T value; } void main() { IBase a = true ? (new Impl!uint) : (new Impl!string); } I have added a note: https://issues.dlang.org/show_bug.cgi?id=3543 Bye, bearophile OK. Thanks. Using

Re: Implicit conversion to base interface doesn't work inside initialization of AA of objects

2014-07-17 Thread bearophile via Digitalmars-d
Uranuz: OK. Thanks. Using casts everywhere for such case us quite annoying. I've tested it for plain array it doesn't work too. However issue is marked as solved for it. It's not exactly the same issue. Issue 3543 seems more fitting. In D interfaces and classes are not the same thing.

Re: GCs in the news

2014-07-17 Thread bearophile via Digitalmars-d
Vic: If D came without GC, it would have replaced C++ a long time ago! Agree +1000. I see no proof of this. And not everybody hates GCs. Bye, bearophile

Re: GCs in the news

2014-07-17 Thread Vic via Digitalmars-d
On Thursday, 17 July 2014 at 17:13:04 UTC, Peter Alexander wrote: On Thursday, 17 July 2014 at 16:56:56 UTC, Vic wrote: If GC is so good, why not make it an option, have a base lib w/o GC. Much of Phobos already is GC free. The parts that aren't should be easy to convert to use user-supplied

Re: GCs in the news

2014-07-17 Thread Right via Digitalmars-d
I hate GC, so there. I see no proof of this. And not everybody hates GCs. Bye, bearophile

Re: Using D

2014-07-17 Thread Daniel Murphy via Digitalmars-d
Vic wrote in message news:xblbppsybigjgrtgi...@forum.dlang.org... Hi Walter, Please give us a bit more respect and benefit of the doubt and assume that we do know what we want when say something. I want to use D! I may be forced to C++ my team because GC built into the base lib. It is

Re: GCs in the news

2014-07-17 Thread Vic via Digitalmars-d
On Thursday, 17 July 2014 at 13:02:22 UTC, Remo wrote: snip The quality of GC implementation is probably more important. I disagree, I am a burn victim and don't trust smoke. Ideally it is optional. Cheers, Vic

Re: GCs in the news

2014-07-17 Thread H. S. Teoh via Digitalmars-d
On Thu, Jul 17, 2014 at 05:32:36PM +, Right via Digitalmars-d wrote: I hate GC, so there. I see no proof of this. And not everybody hates GCs. [...] I don't, so here. :D T -- I see that you JS got Bach.

Re: static opCall 'hidden' by incompatible constructors

2014-07-17 Thread Nick Treleaven via Digitalmars-d
On 17/07/2014 18:11, Nick Treleaven wrote: opcall.d(24): Error: struct opcall.U static opCall is hidden by constructors and can never be called opcall.d(24):Please use a factory method instead, or replace all constructors with static opCall. I should mention that std.typecons.Unique

Re: GCs in the news

2014-07-17 Thread H. S. Teoh via Digitalmars-d
On Thu, Jul 17, 2014 at 05:28:01PM +, Vic via Digitalmars-d wrote: On Thursday, 17 July 2014 at 17:13:04 UTC, Peter Alexander wrote: On Thursday, 17 July 2014 at 16:56:56 UTC, Vic wrote: If GC is so good, why not make it an option, have a base lib w/o GC. Much of Phobos already is GC

  1   2   3   >