Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 20/03/2015 04:12, Manu via Digitalmars-d-announce wrote: On 19 March 2015 at 07:12, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 18/03/2015 00:12, Trent Forkert wrote: Unless something has changed recently, it shouldn't require dub. Last time I

[Issue 6756] Idea about std.stdio.chunks and std.range.chunks

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6756 John Colvin john.loughran.col...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3141] osx syntax problem with touch

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3141 John Colvin john.loughran.col...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 19/03/2015 15:55, Trent Forkert wrote: On Thursday, 19 March 2015 at 15:14:09 UTC, Bruno Medeiros wrote: On 19/03/2015 14:45, Trent Forkert wrote: It seems you are right that it *is* limited, but it shouldn't be. CMake emits include/import paths into the project structure. I had thought it

Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 20/03/2015 05:30, Manu via Digitalmars-d-announce wrote: On 20 March 2015 at 01:14, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 19/03/2015 14:45, Trent Forkert wrote: On Thursday, 19 March 2015 at 11:18:29 UTC, Dicebot wrote: Semantics

Re: DDT 0.11.0 released

2015-03-23 Thread Ben Boeckel via Digitalmars-d-announce
On Mon, Mar 23, 2015 at 12:51:36 +, Bruno Medeiros via Digitalmars-d-announce wrote: At the time of this message of yours, you didn't offer any concrete, *technical* reasons of why dub shouldn't be used. Saying one doesn't *want* to use dub is not a valid reason at all. Saying you can't,

Re: dfmt options

2015-03-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-23 10:47, bearophile wrote: See: https://issues.dlang.org/show_bug.cgi?id=7176 Exactly. -- /Jacob Carlborg

[Issue 14322] New: Menu on downloads.dlang.org is completely broken

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14322 Issue ID: 14322 Summary: Menu on downloads.dlang.org is completely broken Product: D Version: unspecified Hardware: All OS: All Status: NEW Severity: normal

Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 20/03/2015 18:07, Trent Forkert wrote: And I don't understand why it is not acceptable. * Because it is not guaranteed to be there. For instance, I don't have dub on my system That's the lamest reason ever. Why is that an issue? Just install it if it is not installed. To me, that's

Re: OPTLINK Error 45 Too Much DEBUG Data for Old CodeView format

2015-03-23 Thread wobbles via Digitalmars-d-learn
On Sunday, 22 March 2015 at 15:29:00 UTC, Koi wrote: thank you Etienne, after i replaced dmd's link.exe my project compiles successfully in debug-mode again. i'll add this info in my todo-after-installing-DMD.txt just in case. On Sunday, 22 March 2015 at 14:29:14 UTC, Etienne wrote: This

Re: A few notes on choosing between Go and D for a quick project

2015-03-23 Thread FG via Digitalmars-d
On 2015-03-23 at 00:15, krzaq wrote: Something like while (n != EOF) { n = read(fd, buf, sizeof(buf)); if (n==-1) throw(...); if (strcmp(buf, PREFIX) == 0) { return buf; } } return NULL; Requires no prior knowledge, and have similar

Re: Post increment and decrement

2015-03-23 Thread Kagamin via Digitalmars-d
Well, things like std::string are not cooperative in this regard. Though, it's copied only to be instantly destructed, theoretically it should be elided if the involved constructors are annotated with sufficient purity or complementary operators. Also the iterator pretends to be copyable, but

[Issue 14321] New: No postblit call with struct and AA's

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14321 Issue ID: 14321 Summary: No postblit call with struct and AA's Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1

Re: DlangUI

2015-03-23 Thread Vadim Lopatin via Digitalmars-d-announce
On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: Hello! I would like to announce my project, DlangUI library - cross-platform GUI for D. https://github.com/buggins/dlangui License: Boost License 1.0 Native library written in D (not a wrapper to other GUI library) - easy to

Re: A few notes on choosing between Go and D for a quick project

2015-03-23 Thread krzaq via Digitalmars-d
On Monday, 23 March 2015 at 11:31:16 UTC, FG wrote: And honestly, compared to File(/tmp/a).byChunk(4096).joiner.startsWith(s) you can *easily* guess that you have a file - do some nonobvious magic on it - and check if *it* starts with `s` just by reading it as plain English. Now you've

[Issue 14317] [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: Post increment and decrement

2015-03-23 Thread krzaq via Digitalmars-d
On Monday, 23 March 2015 at 12:10:32 UTC, Kagamin wrote: Well, things like std::string are not cooperative in this regard. Though, it's copied only to be instantly destructed, theoretically it should be elided if the involved constructors are annotated with sufficient purity or complementary

Re: [Semi OT] The programming language wars

2015-03-23 Thread Paulo Pinto via Digitalmars-d
On Saturday, 21 March 2015 at 19:20:18 UTC, deadalnix wrote: On Saturday, 21 March 2015 at 15:51:38 UTC, Paulo Pinto wrote: I don't expect programming will remain so low level in the future. We are at the infancy of our skills, when comparing with engineerings with a fee centuries of progress.

[Issue 14321] No postblit call with struct and AA's

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14321 --- Comment #1 from rswhi...@gmail.com --- Forget to mention, my compiler is DMD v2.067.0-rc1 --

[Issue 14317] [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14317] [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0a4928f382d167e221667910bec3abd8bd48d84d fix Issue 14317 -

Re: DDT 0.11.0 released

2015-03-23 Thread Ben Boeckel via Digitalmars-d-announce
On Mon, Mar 23, 2015 at 14:04:30 +, Dicebot via Digitalmars-d-announce wrote: If you mean separate compilation with different flags per module and linking into same binary - it is pretty much illegal in D and can only be done at own risk. I don't know if it is mentioned anyway on

Re: A few notes on choosing between Go and D for a quick project

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
On 3/23/15 4:59 AM, krzaq wrote: File(path).data.startswith(s) We could define File.byByte, but that's minor. I appreciate the ability to decide on the buffering strategy. -- Andrei

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
On 3/23/15 7:52 AM, Steven Schveighoffer wrote: On 3/22/15 3:03 AM, Andrei Alexandrescu wrote: * assumeSafeAppend() was unnecessarily used once per line read. Its removal led to a whopping 35% on top of everything else. I'm not sure what it does, but boy it does takes its sweet time. Maybe

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread John Colvin via Digitalmars-d
On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: I just took a look at making byLine faster. It took less than one evening: https://github.com/D-Programming-Language/phobos/pull/3089 I confess I am a bit disappointed with the leadership being unable to delegate this task

Re: [Semi OT] The programming language wars

2015-03-23 Thread Kagamin via Digitalmars-d
On Friday, 20 March 2015 at 07:37:04 UTC, Paulo Pinto wrote: An example that stuck with me was that languages that follow Algol/Pascal syntax lead themselves to less bugs, than those that follow C like syntax. There are quite a few other examples. Also the mention that as far as the

Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 23/03/2015 13:39, Ben Boeckel via Digitalmars-d-announce wrote: On Mon, Mar 23, 2015 at 12:51:36 +, Bruno Medeiros via Digitalmars-d-announce wrote: At the time of this message of yours, you didn't offer any concrete, *technical* reasons of why dub shouldn't be used. Saying one doesn't

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Steven Schveighoffer via Digitalmars-d
On 3/22/15 3:03 AM, Andrei Alexandrescu wrote: * assumeSafeAppend() was unnecessarily used once per line read. Its removal led to a whopping 35% on top of everything else. I'm not sure what it does, but boy it does takes its sweet time. Maybe someone should look into it. That's not expected.

[Issue 14321] 2.067.0-rc1 - No postblit call with struct and AA's

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14321 rswhi...@gmail.com changed: What|Removed |Added Summary|No postblit call with |2.067.0-rc1 - No postblit

Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 20/03/2015 05:04, Manu via Digitalmars-d-announce wrote: On 19 March 2015 at 07:49, Bruno Medeiros via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 17/03/2015 23:45, Manu via Digitalmars-d-announce wrote: I just checked out DDT, and I noticed it seems to use DUB...

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Szymon Gatner via Digitalmars-d-announce
On Friday, 20 March 2015 at 15:19:03 UTC, Martin Nowak wrote: On 03/19/2015 08:02 AM, Rainer Schuetze wrote: The COFF32 lib is built through win64.mak. This is an excerpt from my build script to create lib32\phobos32mscoff.lib: set dm_make=c:\l\dmc\bin\make set vs=vs12 set vcdir=c:\l\%vs%\vc

Re: DDT 0.11.0 released

2015-03-23 Thread Dicebot via Digitalmars-d-announce
On Monday, 23 March 2015 at 13:40:04 UTC, Ben Boeckel wrote: Different flags to different source files? If you mean separate compilation with different flags per module and linking into same binary - it is pretty much illegal in D and can only be done at own risk. I don't know if it is

Re: dfmt options

2015-03-23 Thread Martin Nowak via Digitalmars-d
On 03/23/2015 10:55 AM, Casper =?UTF-8?B?RsOmcmdlbWFuZCI=?= shortt...@hotmail.com wrote: Perhaps it's too much to wish for, but I think the editor would be the better place for this. IntelliJ IDEA can display short methods as single line. They're still multiline in the source, but on screen

Re: DDT 0.11.0 released

2015-03-23 Thread Bruno Medeiros via Digitalmars-d-announce
On 19/03/2015 16:02, Ben Boeckel via Digitalmars-d-announce wrote: It might force to think of your build components in a more structured/componentized way, instead of the paradigm of building on a file by file basis, the `make` way. (I've only used make though, not cmake, so dunno how much this

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Ben Boeckel via Digitalmars-d-announce
On Mon, Mar 23, 2015 at 13:49:53 +, Szymon Gatner via Digitalmars-d-announce wrote: Been waiting for this for almost 2 years, might as well wait for another release. Seriously tho, it is surprising how much little attention is put into C++/D integration considering all the recent fuss

Re: DDT 0.11.0 released

2015-03-23 Thread Ben Boeckel via Digitalmars-d-announce
On Mon, Mar 23, 2015 at 14:25:22 +, Bruno Medeiros via Digitalmars-d-announce wrote: Yes - use DUB sub-packages. Ah, had missed this. Different flags to different source files? What dicebot said. That looks like an invalid, abstraction-breaking thing to do Not all flags are

[Issue 14300] [2.067-rc1] DList casting to base type is broken

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14300 Martin Nowak c...@dawg.eu changed: What|Removed |Added Component|DMD |Phobos --

[Issue 14317] [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c6b489b4cde70ec194fde21c2603b3e127f51479 Merge pull request #4511 from

Re: serve - A simple HTTP server for static files

2015-03-23 Thread Martin Nowak via Digitalmars-d-announce
On 03/22/2015 08:56 PM, Walter Bright wrote: If you could write a brief article about it, that would be great! I think there's a lot of potential for D in that space, and having such articles will help promulgate the idea. An article would exceed the amount of code I wrote, but I did read up

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Szymon Gatner via Digitalmars-d-announce
On Monday, 23 March 2015 at 14:19:34 UTC, Ben Boeckel wrote: On Mon, Mar 23, 2015 at 13:49:53 +, Szymon Gatner via Digitalmars-d-announce wrote: Been waiting for this for almost 2 years, might as well wait for another release. Seriously tho, it is surprising how much little attention is

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Martin Nowak via Digitalmars-d-announce
On 03/23/2015 02:49 PM, Szymon Gatner wrote: Been waiting for this for almost 2 years, might as well wait for another release. Seriously tho, it is surprising how much little attention is put into C++/D integration considering all the recent fuss about this. And yes, I've tried mixed C++/D app

Re: DDT 0.11.0 released

2015-03-23 Thread Dicebot via Digitalmars-d-announce
On Monday, 23 March 2015 at 15:30:43 UTC, Ben Boeckel wrote: On Mon, Mar 23, 2015 at 14:04:30 +, Dicebot via Digitalmars-d-announce wrote: If you mean separate compilation with different flags per module and linking into same binary - it is pretty much illegal in D and can only be done at

[Issue 14280] Links to command line tools have disappeared from navigation

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14280 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/ffaef43bfcb8b984e5ef58976ed00f3eeabfdf09 Merge pull

[Issue 14321] No postblit call with struct and AA's

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14321 --- Comment #2 from rswhi...@gmail.com --- (In reply to rswhite4 from comment #1) Forget to mention, my compiler is DMD v2.067.0-rc1 Seems to produce an ICE in 2.065: http://dpaste.dzfl.pl/362689545fb6 --

using vibe.d to parse json

2015-03-23 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. struct RawGoogleResults { string version_; string status; string sig; string[string][][string] table; } enum json = {version:0.6,status:ok,sig:717451517,table:{cols:[{id:date,label:Date,type:date,pattern:},{id:query0,label:euro

Re: Perlin noise benchmark speed

2015-03-23 Thread Iain Buclaw via Digitalmars-d
I'd suspect stdc.math to be SSE3/SSE4 optimised assembly, where as std.math uses a very generic (works on almost every float format) implementation that is at least 'pure'. Iain. On 24 Mar 2015 00:30, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 20 June 2014 at

Re: PrimitiveRef ?

2015-03-23 Thread Andre via Digitalmars-d-learn
Thanks a lot. I read it in the D Cookbook from Adam D. Ruppe. In the chapter of memory management there is a topic, how to build reference counted objects. Here this construct is explained. Kind regards André On Monday, 23 March 2015 at 20:58:48 UTC, Namespace wrote: Something like that?

Re: using vibe.d to parse json

2015-03-23 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 24 March 2015 at 04:53:39 UTC, Laeeth Isharc wrote: Hi. struct RawGoogleResults { string version_; string status; string sig; string[string][][string] table; } enum json =

Re: From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-23 Thread H. S. Teoh via Digitalmars-d
On Mon, Mar 23, 2015 at 09:14:15AM +0100, Jacob Carlborg via Digitalmars-d wrote: On 2015-03-22 02:15, Andrei Alexandrescu wrote: I've left a comment recently at https://github.com/D-Programming-Language/phobos/pull/3087. So what's the deal with that? Whenever a new tool leaves some trash,

[Issue 14313] [ld.gold] gdb: wrong value of shared variables

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14313 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9bd7c7c24c5d30db21520d5edf8bf4433164a8e8 Fix Issue 14313 - [ld.gold]

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread John Colvin via Digitalmars-d-announce
On Monday, 23 March 2015 at 13:49:55 UTC, Szymon Gatner wrote: On Friday, 20 March 2015 at 15:19:03 UTC, Martin Nowak wrote: On 03/19/2015 08:02 AM, Rainer Schuetze wrote: The COFF32 lib is built through win64.mak. This is an excerpt from my build script to create lib32\phobos32mscoff.lib:

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Szymon Gatner via Digitalmars-d-announce
On Monday, 23 March 2015 at 15:36:42 UTC, Martin Nowak wrote: On 03/23/2015 02:49 PM, Szymon Gatner wrote: Been waiting for this for almost 2 years, might as well wait for another release. Seriously tho, it is surprising how much little attention is put into C++/D integration considering all

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Szymon Gatner via Digitalmars-d-announce
On Monday, 23 March 2015 at 16:01:51 UTC, John Colvin wrote: On Monday, 23 March 2015 at 13:49:55 UTC, Szymon Gatner wrote: On Friday, 20 March 2015 at 15:19:03 UTC, Martin Nowak wrote: On 03/19/2015 08:02 AM, Rainer Schuetze wrote: The COFF32 lib is built through win64.mak. This is an

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Kapps via Digitalmars-d-announce
On Monday, 23 March 2015 at 16:05:55 UTC, Szymon Gatner wrote: i am typing from my phone so hard to find but i did post it on forums some time ago Posting about something on the forums won't get it fixed, make a bug report if you're encountering a bug.

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Szymon Gatner via Digitalmars-d-announce
On Monday, 23 March 2015 at 16:05:55 UTC, Szymon Gatner wrote: On Monday, 23 March 2015 at 16:01:51 UTC, John Colvin wrote: On Monday, 23 March 2015 at 13:49:55 UTC, Szymon Gatner wrote: On Friday, 20 March 2015 at 15:19:03 UTC, Martin Nowak wrote: On 03/19/2015 08:02 AM, Rainer Schuetze

DConf 2015 Schedule published

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d-announce
Dconf 2015's programme is on! http://dconf.org/2015/index.html I would like to thank everyone who submitted a proposal. We've had very strong proposals this year and a 50% acceptance rate, which made it very difficult to only choose half. Submitters are encouraged to join the conference;

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-23 Thread Steven Schveighoffer via Digitalmars-d
On 3/18/15 2:48 PM, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult. If the idea is to force it on all users, I'm with deadalnix 100%. But

Static Const Object Polymorphism

2015-03-23 Thread klodkevin via Digitalmars-d
Hi folks. I just recently started to discovered the D language, I watched some videos about patterns, but I havent really something that comes close to the pattern I'm going to present. I hope the format of this post is correct.If so, I'm sorry to have wasted your time. The idea behind this

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Tobias Pankrath via Digitalmars-d
I made the same test in C# using a 30MB plain ASCII text file. Compared to fastest method proposed by Andrei, results are not the best: D: readText.representation.count!(c = c == '\n') - 428 ms byChunk(4096).joiner.count!(c = c == '\n') - 1160 ms C#: File.ReadAllLines.Length - 216 ms; Win64,

Re: DDT 0.11.0 released

2015-03-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-03-23 13:54, Bruno Medeiros wrote: There's no plans ATM to integrate with CDT itself. (I don't even know what integration with java tools would mean here) Even for CDT, I don't see what much would there be to integrate, other than the build system. I would guess he means using C(++)

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-23 Thread Brad Roberts via Digitalmars-d
Anyone want to do a rough draft version of a script to build with some version of what Walter has suggested that produes just a simple number for each of druntime and phobos that are the number of undocumented functions? Bonus points for generating a output doc (preferably json) that contains

Re: pureity of closures

2015-03-23 Thread Stefan Koch via Digitalmars-d
On Sunday, 22 March 2015 at 21:21:59 UTC, ketmar wrote: i believe that both ways is right (i.e. both generating error and not generating error). I am sorry but, this is not an helpful answer. I will stick to my callgraph analysis for now.

Re: pureity of closures

2015-03-23 Thread Dicebot via Digitalmars-d
On Sunday, 22 March 2015 at 12:58:25 UTC, Stefan Koch wrote: dmd infers function closures impure if impure functions are defined within them. even if those are never called and can never be accessed outside of the closure. Example : int a; void closure() pure { impure_function() { a++;

Re: From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-22 02:15, Andrei Alexandrescu wrote: I've left a comment recently at https://github.com/D-Programming-Language/phobos/pull/3087. So what's the deal with that? Whenever a new tool leaves some trash, do we chalk a circle on the pavement around it? Not sure what you're complaining

Re: dfmt options

2015-03-23 Thread bearophile via Digitalmars-d
Jacob Carlborg: Although I would like that the D syntax allowed to drop the curly braces, like with if-satements. That would result in much nicer one-liner functions. See: https://issues.dlang.org/show_bug.cgi?id=7176 Bye, bearophile

[Issue 14320] New: Improve diagnostic message for undefined identifier error

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14320 Issue ID: 14320 Summary: Improve diagnostic message for undefined identifier error Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 14320] Improve diagnostic message for undefined identifier error

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14320 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from

Re: Post increment and decrement

2015-03-23 Thread krzaq via Digitalmars-d
On Monday, 23 March 2015 at 08:20:59 UTC, Kagamin wrote: On Saturday, 21 March 2015 at 16:59:05 UTC, welkam wrote: In C++ world always writing ++var can save some perf when using with overloaded operators. Do you have an example? The compiler cannot optimize away calls to external functions

Re: DWT on Mac OS X and with DMD 2

2015-03-23 Thread Jacob Carlborg via Digitalmars-d-dwt
On 2015-03-22 15:41, romain wrote: Hi. I think i might be interested in helping porting from d1 to d2 as far as the Os x version is concerned, even though i don't really know how i could go about that. Any pointer or help would be appreciated. I'm not sure if that's a good idea before the

Re: A reason to choose D over Go

2015-03-23 Thread Jonathan M Davis via Digitalmars-d
On Sunday, March 22, 2015 02:32:36 deadalnix via Digitalmars-d wrote: On Sunday, 22 March 2015 at 01:44:32 UTC, weaselcat wrote: On Sunday, 22 March 2015 at 01:24:10 UTC, Martin Nowak wrote: On Saturday, 21 March 2015 at 23:49:26 UTC, Atila Neves wrote: I actually think that there are two

Re: From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-23 Thread Jonathan M Davis via Digitalmars-d
On Saturday, March 21, 2015 22:56:58 Andrei Alexandrescu via Digitalmars-d wrote: On 3/21/15 8:54 PM, Daniel Murphy wrote: Andrei Alexandrescu wrote in message news:mel52r$252b$1...@digitalmars.com... I've left a comment recently at

Re: From the cycle Topic of the day - .gitignore: how big is too big?

2015-03-23 Thread Mengu via Digitalmars-d
bOn Sunday, 22 March 2015 at 21:08:27 UTC, Andrei Alexandrescu wrote: On 3/22/15 1:37 PM, Mengu wrote: while we're at it, let's add D to this list: https://github.com/github/gitignore That's be cool, any takers? -- Andrei btw, i think it'd be good if dub would automatically include this

Re: dfmt options

2015-03-23 Thread via Digitalmars-d
On Sunday, 22 March 2015 at 17:05:27 UTC, Martin Nowak wrote: I think there should be an option (even default on) to allow small single line functions. (snip) Perhaps it's too much to wish for, but I think the editor would be the better place for this. IntelliJ IDEA can display short

Re: dfmt options

2015-03-23 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-22 18:05, Martin Nowak wrote: Sorry haven't read the whole thread. I think there should be an option (even default on) to allow small single line functions. This can sometimes be fairly annoying. For example when writing range adapters, see

Re: Post increment and decrement

2015-03-23 Thread Kagamin via Digitalmars-d
On Saturday, 21 March 2015 at 16:59:05 UTC, welkam wrote: In C++ world always writing ++var can save some perf when using with overloaded operators. Do you have an example?

Re: PrimitiveRef ?

2015-03-23 Thread Baz via Digitalmars-d-learn
On Monday, 23 March 2015 at 16:58:49 UTC, Andre wrote: Hi, (needed for specifying reference behavior in a type tuple). I need exactly that behavior. I am currently unsure whether it is possible at all to have such a construct which works at user side exactly like a boolean (booleans can be

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
On 3/23/15 2:13 PM, rumbu wrote: Since this code is clearly not the best for this task, as I suspected, I looked into jitted code and it seems that the .net runtime is smart enough to recognize this pattern and is doing the following: - file is mapped into memory using CreateFileMapping - does

Where's This week in D?

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
No issue for the past week? -- Andrei

Re: PrimitiveRef ?

2015-03-23 Thread Namespace via Digitalmars-d-learn
Something like that? struct PrimitiveRef(T) { private T* _value; @property ref inout(T) get() inout pure nothrow { assert(_value); return *_value; } alias get this; this(T val) {

Solution to problems:

2015-03-23 Thread Jake The Baker via Digitalmars-d
If D had an ide that could do the following I think development and testing could be better managed. 1. IDE that works with a centralized server to be able to change D versions at a drop of a time. e.g., click Master and it checks to see if you have the latest, if not it downloads it,

Re: Template reference parameter

2015-03-23 Thread ketmar via Digitalmars-d-learn
On Mon, 23 Mar 2015 22:01:03 +, rumbu wrote: I'm trying to construct a struct template where one of the template parameters is passed by reference (as option) struct S(T, U) { void opCall(T t, U u) { } } alias X = S!(T, U); alias RX = S!(T, ref U); //not working The

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread rumbu via Digitalmars-d
On Monday, 23 March 2015 at 19:25:08 UTC, Tobias Pankrath wrote: I made the same test in C# using a 30MB plain ASCII text file. Compared to fastest method proposed by Andrei, results are not the best: D: readText.representation.count!(c = c == '\n') - 428 ms byChunk(4096).joiner.count!(c = c

Template reference parameter

2015-03-23 Thread rumbu via Digitalmars-d-learn
I'm trying to construct a struct template where one of the template parameters is passed by reference (as option) struct S(T, U) { void opCall(T t, U u) { } } alias X = S!(T, U); alias RX = S!(T, ref U); //not working The objective is to call X(t, u) or RX(t, u), but in second case I

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Steven Schveighoffer via Digitalmars-d
On 3/23/15 10:59 AM, Andrei Alexandrescu wrote: On 3/23/15 7:52 AM, Steven Schveighoffer wrote: On 3/22/15 3:03 AM, Andrei Alexandrescu wrote: * assumeSafeAppend() was unnecessarily used once per line read. Its removal led to a whopping 35% on top of everything else. I'm not sure what it

Re: Release Candidate D 2.067.0-rc1

2015-03-23 Thread Szymon Gatner via Digitalmars-d-announce
On Monday, 23 March 2015 at 16:11:12 UTC, Kapps wrote: On Monday, 23 March 2015 at 16:05:55 UTC, Szymon Gatner wrote: i am typing from my phone so hard to find but i did post it on forums some time ago Posting about something on the forums won't get it fixed, make a bug report if you're

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Robert burner Schadek via Digitalmars-d
On Monday, 23 March 2015 at 15:00:07 UTC, John Colvin wrote: What would be really great would be a performance test suite for phobos. I'm working on it https://github.com/D-Programming-Language/phobos/pull/2995

PrimitiveRef ?

2015-03-23 Thread Andre via Digitalmars-d-learn
Hi, I read that if a structure only contains a reference, it will behave like a reference type in function calls (needed for specifying reference behavior in a type tuple). I need exactly that behavior. I am currently unsure whether it is possible at all to have such a construct which works

DConf schedule: share, discuss, vote!

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
Please help us spread the word on DConf 2015. We have a strong schedule this year. Share with your coworkers and friends. Talk to your manager about attending. Be there! https://www.facebook.com/dlang.org/posts/1037831199563894

Re: A few notes on choosing between Go and D for a quick project

2015-03-23 Thread FG via Digitalmars-d
On 2015-03-23 at 12:59, krzaq wrote: I'd argue that joiner is intuitive enough, but I agree on byChunk. I am also baffled why this byLine/byChunk madness is necessary at all, it should be something like File(path).startsWith(s) or File(path).data.startswith(s) Yeah, that would be useful for

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
On 3/23/15 10:43 AM, rumbu wrote: On Monday, 23 March 2015 at 15:00:07 UTC, John Colvin wrote: What would be really great would be a performance test suite for phobos. D is reaching a point where It'll probably be fast because we did it right or I remember it being fast-ish 3 years ago when i

[Issue 14317] [REG2.066] ICE (cgcod.c 1767) when compiing with -profile -O -inline

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e52968b55483de0ae2867ca13855e957cb4be5ba fix Issue 14317 -

Re: Where is my memory?

2015-03-23 Thread Steven Schveighoffer via Digitalmars-d
On 3/22/15 6:32 AM, anonymous wrote: On Sunday, 22 March 2015 at 09:42:41 UTC, Ozan Süel wrote: Hi! I'm working on a Big Data project, where a huge amount of RAM is needed. Using D I've run into a - let's called it - memory leak. I tested this with following code: foreach(i; 0..1000) {

Re: DConf schedule: share, discuss, vote!

2015-03-23 Thread Piotrek via Digitalmars-d
On Monday, 23 March 2015 at 17:17:19 UTC, Andrei Alexandrescu wrote: Please help us spread the word on DConf 2015. We have a strong schedule this year. Share with your coworkers and friends. Talk to your manager about attending. Be there!

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-23 Thread Steven Schveighoffer via Digitalmars-d
On 3/20/15 7:25 PM, Walter Bright wrote: On 3/19/2015 3:13 PM, Jeremy Powers via Digitalmars-d wrote: A valid reason for doing things like this is future-proof encapsulation. You can change the internal foo to be something entirely different, and the external api never changes (assuming 'foo'

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread rumbu via Digitalmars-d
On Monday, 23 March 2015 at 15:00:07 UTC, John Colvin wrote: What would be really great would be a performance test suite for phobos. D is reaching a point where It'll probably be fast because we did it right or I remember it being fast-ish 3 years ago when i wrote a small toy test isn't

Re: [Semi OT] The programming language wars

2015-03-23 Thread deadalnix via Digitalmars-d
On Monday, 23 March 2015 at 10:40:12 UTC, Paulo Pinto wrote: On Saturday, 21 March 2015 at 19:20:18 UTC, deadalnix wrote: On Saturday, 21 March 2015 at 15:51:38 UTC, Paulo Pinto wrote: I don't expect programming will remain so low level in the future. We are at the infancy of our skills, when

Re: Solution to problems:

2015-03-23 Thread lobo via Digitalmars-d
On Monday, 23 March 2015 at 21:34:09 UTC, Jake The Baker wrote: If D had an ide that could do the following I think development and testing could be better managed. 1. IDE that works with a centralized server to be able to change D versions at a drop of a time. e.g., click Master and it

Re: Making byLine faster: we should be able to delegate this

2015-03-23 Thread Andrei Alexandrescu via Digitalmars-d
On 3/23/15 2:42 PM, Steven Schveighoffer wrote: On 3/23/15 10:59 AM, Andrei Alexandrescu wrote: On 3/23/15 7:52 AM, Steven Schveighoffer wrote: On 3/22/15 3:03 AM, Andrei Alexandrescu wrote: * assumeSafeAppend() was unnecessarily used once per line read. Its removal led to a whopping 35% on

[Issue 14323] New: Bad code generation in dfmt

2015-03-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14323 Issue ID: 14323 Summary: Bad code generation in dfmt Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: wrong-code Severity:

Re: Perlin noise benchmark speed

2015-03-23 Thread weaselcat via Digitalmars-d
On Friday, 20 June 2014 at 12:32:39 UTC, Nick Treleaven wrote: Hi, A Perlin noise benchmark was quoted in this reddit thread: http://www.reddit.com/r/rust/comments/289enx/c0de517e_where_is_my_c_replacement/cibn6sr It apparently shows the 3 main D compilers producing slower code than Go, Rust,

  1   2   >