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

2015-03-22 Thread via Digitalmars-d
On Sunday, 22 March 2015 at 03:43:33 UTC, Walter Bright wrote: I.e. there isn't low level C code that effectively uses SIMD vector registers. You have to use the auto-vectorizer, which tries to reconstruct high level operations out of C low level code, then recompile. I don't think low level

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

2015-03-22 Thread Sad panda via Digitalmars-d
On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: I confess I am a bit disappointed with the leadership being unable to delegate this task to a trusty lieutenant in the community. There's been a bug opened on this for a long time, it gets regularly discussed here (with the

Re: [Semi OT] The programming language wars

2015-03-22 Thread via Digitalmars-d
On Saturday, 21 March 2015 at 23:58:18 UTC, Laeeth Isharc wrote: HS Teoh is right about context, and the superiority of the written word for organizing and expressing thinking at a very high level. The nature of human memory and perception means that is unlikely to change very soon, if ever.

Re: [Semi OT] The programming language wars

2015-03-22 Thread deadalnix via Digitalmars-d
On Sunday, 22 March 2015 at 09:30:38 UTC, Atila Neves wrote: On Friday, 20 March 2015 at 22:55:24 UTC, Laeeth Isharc wrote: On Friday, 20 March 2015 at 07:37:04 UTC, Paulo Pinto wrote: Language features should be tested with real users using scientific validation processes, instead of being

Re: [Semi OT] The programming language wars

2015-03-22 Thread via Digitalmars-d
On Sunday, 22 March 2015 at 09:30:38 UTC, Atila Neves wrote: Of course there is. Experience and judgement aren't measurable. You don't have science without numbers. WTF?

Re: Replace core language HexStrings with library entity

2015-03-22 Thread weaselcat via Digitalmars-d
On Sunday, 22 March 2015 at 10:36:27 UTC, Dicebot wrote: It was a response to question why vibe.d has reimplemented so many bits of Phobos without ever contributing it back. I apologize if it came off this way, I meant it as vibe shouldn't have to be reimplementing these things, they're

[Issue 10925] unittests qualified on the right hand side fail

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10925 Stefan Frijters sfrijt...@gmail.com changed: What|Removed |Added CC||sfrijt...@gmail.com

[Issue 14318] Shared library stdio not loaded

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14318 Richard Cattermole alphaglosi...@gmail.com changed: What|Removed |Added Summary|Shared library stdio not|Shared library

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

2015-03-22 Thread Sönke Ludwig via Digitalmars-d
Am 22.03.2015 um 08:43 schrieb Sönke Ludwig: Am 22.03.2015 um 08:18 schrieb weaselcat: 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

Re: Position of unittest attributes

2015-03-22 Thread Rikki Cattermole via Digitalmars-d-learn
On 22/03/2015 10:29 p.m., Stefan Frijters wrote: So I was trying to add some attributes to unittests in my code, but apparently they are only allowed *before* the unittest keyword, which I think makes it much harder to quickly see the unittests when scrolling through the code: void foo() @safe

Re: Replace core language HexStrings with library entity

2015-03-22 Thread Dicebot via Digitalmars-d
On Saturday, 21 March 2015 at 00:30:42 UTC, Andrei Alexandrescu wrote: On 3/20/15 9:02 AM, Dicebot wrote: On Wednesday, 18 March 2015 at 00:55:45 UTC, weaselcat wrote: as an addendum, vibe.d reimplements huge amounts of phobos, is there a reason none of this is ever getting upstreamed?

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

2015-03-22 Thread Etienne via Digitalmars-d-learn
On 3/20/2015 1:35 PM, Koi wrote: Hello, after some coding i needed to update some external libraries like DerelictSDL2. As we all know, one update isn't enough, so i updated my whole d-environment at the end of the day (current dmd version, VisualD). After getting rid of some linking errors

[Issue 11810] std.stdio.byLine/readln performance is very bad

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11810 --- Comment #11 from Andrei Alexandrescu and...@erdani.com --- http://forum.dlang.org/thread/melpfi$2scc$1...@digitalmars.com --

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

2015-03-22 Thread weaselcat 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: Making byLine faster: we should be able to delegate this

2015-03-22 Thread Sönke Ludwig via Digitalmars-d
Am 22.03.2015 um 08:18 schrieb weaselcat: 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

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 12:03 AM, 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 to a trusty lieutenant

[Issue 14107] compiler shouldn't allow to compare unions without custom opEquals

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14107 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added CC|

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

2015-03-22 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: * For each line read there was a call to malloc() and one to free(). I set things up that the buffer used for reading is reused by simply making the buffer static. What about e.g. zip(File(a.txt).byLine, File(b.txt).byLine)

Re: [Semi OT] The programming language wars

2015-03-22 Thread via Digitalmars-d
On Sunday, 22 March 2015 at 09:46:40 UTC, deadalnix wrote: But then, how can I keep my delusions and pretend they are fact because I have experience, judgment and, it goes without saying, a great sense of aesthetic ? You will keep your delusions and pretend they are fact until you take a

Re: Post increment and decrement

2015-03-22 Thread Walter Bright via Digitalmars-d
On 3/15/2015 1:45 AM, Jonathan M Davis via Digitalmars-d wrote: On Saturday, March 14, 2015 15:35:24 Ali Çehreli via Digitalmars-d wrote: C++ needs a rule like D's, which will never be there. Yep. By making it so that you only overload a single operator for both versions of increment, we avoid

Re: [dlang.org] what to do with remaining orphaned pages

2015-03-22 Thread via Digitalmars-d
On Sunday, 22 March 2015 at 11:08:49 UTC, Rikki Cattermole wrote: On 22/03/2015 11:54 p.m., anonymous wrote: We recently recovered a bunch of pages that were removed from the menu accidentally [1]. Two pages are still orphaned and I'm not sure what to do about them:

Re: Phobos Documentation - call to action

2015-03-22 Thread Joseph Rushton Wakeling via Digitalmars-d
On Saturday, 21 March 2015 at 08:24:42 UTC, Walter Bright wrote: Any chance of getting a TemplateParams: (or Template_Params:) option in the next dmd release, too? Would help very much with documenting ranges. Just put them in Params:. Yeah, I'm not going to let it block contributing to

[Issue 11810] std.stdio.byLine/readln performance is very bad

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11810 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added CC||and...@erdani.com

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 1:26 AM, Sad panda wrote: On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: I confess I am a bit disappointed with the leadership being unable to delegate this task to a trusty lieutenant in the community. There's been a bug opened on this for a long time, it gets

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

2015-03-22 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 22 March 2015 at 05:56:56 UTC, Andrei Alexandrescu wrote: On 3/21/15 8:54 PM, Daniel Murphy wrote: We add it to the .gitignore, then forget about it forever. Having a long gitignore doesn't cost us anything. ... but complicated/wrong clean rules in makefiles and clutter in ls.

Re: Where is my memory?

2015-03-22 Thread anonymous via Digitalmars-d
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) { int[] ints;

Re: [dlang.org] what to do with remaining orphaned pages

2015-03-22 Thread Rikki Cattermole via Digitalmars-d
On 22/03/2015 11:54 p.m., anonymous wrote: We recently recovered a bunch of pages that were removed from the menu accidentally [1]. Two pages are still orphaned and I'm not sure what to do about them: http://dlang.org/overview.html This was not part of some $(SUBNAV_*), so removal may have

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

2015-03-22 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 21 March 2015 at 15:09:32 UTC, Andrei Alexandrescu wrote: On 3/20/15 9:43 PM, Sebastiaan Koppe wrote: On Saturday, 21 March 2015 at 01:31:21 UTC, Andrei Alexandrescu wrote: On 3/20/15 5:56 PM, Walter Bright wrote: On 3/20/2015 5:23 PM, Andrei Alexandrescu wrote: Yah, and uses

pureity of closures

2015-03-22 Thread Stefan Koch via Digitalmars-d
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++; } } t.d(4): Error: pure function

[Issue 14318] New: Shared library stdio not loadded

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14318 Issue ID: 14318 Summary: Shared library stdio not loadded Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: trivial Priority: P1

[Issue 14081] Table in the document of std.bigint.BigInt.toString() duplicates.

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14081 j...@red.email.ne.jp changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 14107] compiler shouldn't allow to compare unions without custom opEquals

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14107 Marco Leise marco.le...@gmx.de changed: What|Removed |Added CC||marco.le...@gmx.de ---

Re: [Semi OT] The programming language wars

2015-03-22 Thread FG via Digitalmars-d
On 2015-03-22 at 11:03, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Sunday, 22 March 2015 at 09:30:38 UTC, Atila Neves wrote: Of course there is. Experience and judgement aren't measurable. You don't have science without numbers. WTF? Heh, everything

Re: Where is my memory?

2015-03-22 Thread Martin Nowak via Digitalmars-d
On Sunday, 22 March 2015 at 09:42:41 UTC, Ozan Süel wrote: But why is GC (Garbage Collector) not running? Following the explanations in http://wiki.dlang.org/Memory_Management memory usage should be something around 220KB. The GC maps memory from the underlying OS in pool sized chunks. The

Re: Position of unittest attributes

2015-03-22 Thread Stefan Frijters via Digitalmars-d-learn
On Sunday, 22 March 2015 at 09:42:44 UTC, Rikki Cattermole wrote: On 22/03/2015 10:29 p.m., Stefan Frijters wrote: So I was trying to add some attributes to unittests in my code, but apparently they are only allowed *before* the unittest keyword, which I think makes it much harder to quickly

[Issue 10925] unittests qualified on the right hand side fail

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10925 --- Comment #2 from Kenji Hara k.hara...@gmail.com --- Historically invariant block needed parenthesis until 2.065. class C { invariant {}// Error until 2.065, allowed from 2.066 } And postfix attributes is valid only for functions. class

Re: Contributing to Phobos Documentation

2015-03-22 Thread Tobias Pankrath via Digitalmars-d-learn
On Saturday, 21 March 2015 at 17:48:41 UTC, Craig Dillabaugh wrote: Motivated by this thread: http://forum.dlang.org/thread/measc3$qic$1...@digitalmars.com I was hoping to see if I could do some work on the Phobos documentation, but I am curious to know what the easiest way for someone with

Re: serve - A simple HTTP server for static files

2015-03-22 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 22 March 2015 at 07:11:05 UTC, Suliman wrote: Could you explain why pure vibed do not good for static files? It's mainly a replacement for `python -m SimpleHTTPServer`, and is just a very small tool around vibe.d's serveStaticFiles, which does a good job at serving static files

[dlang.org] what to do with remaining orphaned pages

2015-03-22 Thread anonymous via Digitalmars-d
We recently recovered a bunch of pages that were removed from the menu accidentally [1]. Two pages are still orphaned and I'm not sure what to do about them: http://dlang.org/overview.html This was not part of some $(SUBNAV_*), so removal may have been deliberate. But there's no mention of

Position of unittest attributes

2015-03-22 Thread Stefan Frijters via Digitalmars-d-learn
So I was trying to add some attributes to unittests in my code, but apparently they are only allowed *before* the unittest keyword, which I think makes it much harder to quickly see the unittests when scrolling through the code: void foo() @safe pure nothrow @nogc { } // Ok - I normally use

Re: serve - A simple HTTP server for static files

2015-03-22 Thread via Digitalmars-d-announce
On Sunday, 22 March 2015 at 07:11:05 UTC, Suliman wrote: On Sunday, 22 March 2015 at 03:26:14 UTC, Martin Nowak wrote: Sharing a useful tool of mine. http://code.dlang.org/packages/serve Could you explain why pure vibed do not good for static files? When I get it right, * it's based on

Re: Where is my memory?

2015-03-22 Thread Rikki Cattermole via Digitalmars-d
On 22/03/2015 10:42 p.m., Ozan =?UTF-8?B?U8O8ZWwi?= ozan.su...@gmail.com 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) { int[]

Re: dfmt options

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 10:05 AM, Martin Nowak wrote: On 03/15/2015 12:15 AM, Brian Schott wrote: What am I missing? 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

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 3:17 AM, Vladimir Panteleev wrote: On Sunday, 22 March 2015 at 05:56:56 UTC, Andrei Alexandrescu wrote: On 3/21/15 8:54 PM, Daniel Murphy wrote: We add it to the .gitignore, then forget about it forever. Having a long gitignore doesn't cost us anything. ... but complicated/wrong

Re: [dlang.org] what to do with remaining orphaned pages

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 3:54 AM, anonymous wrote: We recently recovered a bunch of pages that were removed from the menu accidentally [1]. Two pages are still orphaned and I'm not sure what to do about them: http://dlang.org/overview.html That must go. This was not part of some $(SUBNAV_*), so removal

Re: Contributing to Phobos Documentation

2015-03-22 Thread Meta via Digitalmars-d-learn
On Sunday, 22 March 2015 at 09:26:51 UTC, Tobias Pankrath wrote: http://wiki.dlang.org/Building_DMD Maybe I was doing it wrong, but I couldn't build the docs following those instructions on Windows 64-bit. What I did was: cd tools make -fwin32.mak cd ..\phobos make -fwin32.mak html (copy

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

2015-03-22 Thread Koi via Digitalmars-d-learn
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 is due to a high amount of symbols in your code. I

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 3:10 AM, Vladimir Panteleev wrote: On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: * For each line read there was a call to malloc() and one to free(). I set things up that the buffer used for reading is reused by simply making the buffer static. What about

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

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14317 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 10:13 AM, tcak wrote: On Sunday, 22 March 2015 at 16:03:11 UTC, Andrei Alexandrescu wrote: On 3/22/15 3:10 AM, Vladimir Panteleev wrote: On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: * For each line read there was a call to malloc() and one to free(). I set

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

2015-03-22 Thread Benjamin Thaut via Digitalmars-d
Am 22.03.2015 um 04:40 schrieb Martin Nowak: Why would export make private functions public? Following problem: // public template void foo(T)(T arg) { bar(T.sizeof); } // private implementation helper private void bar(size_t size) { ... } Because bar is used from foo, bar has to be

Re: dfmt options

2015-03-22 Thread Martin Nowak via Digitalmars-d
On 03/15/2015 12:15 AM, Brian Schott wrote: What am I missing? 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: The next iteration of scope

2015-03-22 Thread via Digitalmars-d
On Sunday, 15 March 2015 at 14:10:02 UTC, Marc Schütz wrote: Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's still missing real-life examples, a section on the implementation, and a more formal specification, as well as a discussion of backwards

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

2015-03-22 Thread tcak via Digitalmars-d
On Sunday, 22 March 2015 at 16:03:11 UTC, Andrei Alexandrescu wrote: On 3/22/15 3:10 AM, Vladimir Panteleev wrote: On Sunday, 22 March 2015 at 07:03:14 UTC, Andrei Alexandrescu wrote: * For each line read there was a call to malloc() and one to free(). I set things up that the buffer used for

Re: serve - A simple HTTP server for static files

2015-03-22 Thread Brad Anderson via Digitalmars-d-announce
On Sunday, 22 March 2015 at 10:33:38 UTC, Martin Nowak wrote: On Sunday, 22 March 2015 at 07:11:05 UTC, Suliman wrote: Could you explain why pure vibed do not good for static files? It's mainly a replacement for `python -m SimpleHTTPServer`, and is just a very small tool around vibe.d's

Re: pureity of closures

2015-03-22 Thread ketmar via Digitalmars-d
On Sun, 22 Mar 2015 12:58:23 +, 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() {

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

2015-03-22 Thread Mengu via Digitalmars-d
On Sunday, 22 March 2015 at 19:32:51 UTC, Andrei Alexandrescu wrote: On 3/22/15 12:27 PM, Vladimir Panteleev wrote: On Sunday, 22 March 2015 at 16:08:38 UTC, Andrei Alexandrescu wrote: On 3/22/15 3:17 AM, Vladimir Panteleev wrote: I thought moving things around was also one of your pet peeves

Re: A reason to choose D over Go

2015-03-22 Thread Mengu via Digitalmars-d
On Saturday, 21 March 2015 at 22:16:10 UTC, Martin Nowak wrote: This blog post describes what to consider when switching from python to go. http://blog.repustate.com/migrating-code-from-python-to-golang-what-you-need-to-know/#tips It's very interesting, because the long list of things to give

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 12:27 PM, Vladimir Panteleev wrote: On Sunday, 22 March 2015 at 16:08:38 UTC, Andrei Alexandrescu wrote: On 3/22/15 3:17 AM, Vladimir Panteleev wrote: I thought moving things around was also one of your pet peeves :) Yah but I'm seeing pull requests yeah there's some more junk out

Re: The next iteration of scope

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 12:29 PM, Andrei Alexandrescu wrote: Then I also need to get diverted into PR work like improving byLine. Here PR stands for Public Relations. -- Andrei

Re: serve - A simple HTTP server for static files

2015-03-22 Thread Walter Bright via Digitalmars-d-announce
On 3/22/2015 3:33 AM, Martin Nowak wrote: On Sunday, 22 March 2015 at 07:11:05 UTC, Suliman wrote: Could you explain why pure vibed do not good for static files? It's mainly a replacement for `python -m SimpleHTTPServer`, and is just a very small tool around vibe.d's serveStaticFiles, which

[Issue 13590] [Enh] Add std.algorithm.iterate

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13590 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/2621b7fe7e60820dcbc4d2b51c9364411f07589e Issue 13590 Add

Re: pureity of closures

2015-03-22 Thread Stefan Koch via Digitalmars-d
On Sunday, 22 March 2015 at 19:06:33 UTC, ketmar wrote: hm. i missed this part (about dead code). compiler doesn't do dead nested function removal before semantic analysis, afair, and attribute inference is in semantic stage. yet you can cheat compiler by turning `impure_function()` to

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

2015-03-22 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 22 March 2015 at 16:08:38 UTC, Andrei Alexandrescu wrote: On 3/22/15 3:17 AM, Vladimir Panteleev wrote: I thought moving things around was also one of your pet peeves :) Yah but I'm seeing pull requests yeah there's some more junk out there, let's just add it to .gitignore. It

Re: The next iteration of scope

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
On 3/22/15 10:20 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Sunday, 15 March 2015 at 14:10:02 UTC, Marc Schütz wrote: Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's still missing real-life examples, a section on the

Re: pureity of closures

2015-03-22 Thread ketmar via Digitalmars-d
On Sun, 22 Mar 2015 19:38:52 +, Stefan Koch wrote: On Sunday, 22 March 2015 at 19:06:33 UTC, ketmar wrote: hm. i missed this part (about dead code). compiler doesn't do dead nested function removal before semantic analysis, afair, and attribute inference is in semantic stage. yet you

Re: A reason to choose D over Go

2015-03-22 Thread Tobias Müller via Digitalmars-d
weaselcat weasel...@gmail.com 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 large categories of programmers: those like writing the same loops over and over again and

Re: Phobos Documentation - call to action

2015-03-22 Thread Walter Bright via Digitalmars-d
On 3/22/2015 7:21 AM, Joseph Rushton Wakeling wrote: No promises, but if you can give me a pointer or two as to how that might be implemented, I'd consider having a look at doing it myself. It would be copy/paste of the code that implements Params: But I don't see the added value for it, and

Re: pureity of closures

2015-03-22 Thread Stefan Koch via Digitalmars-d
On Sunday, 22 March 2015 at 18:24:31 UTC, ketmar wrote: you can't do anything with `impure_function` anyway. Precisely my point! a perfectly pure function is inferred impure because of dead code!

Re: pureity of closures

2015-03-22 Thread ketmar via Digitalmars-d
On Sun, 22 Mar 2015 18:44:47 +, Stefan Koch wrote: On Sunday, 22 March 2015 at 18:24:31 UTC, ketmar wrote: you can't do anything with `impure_function` anyway. Precisely my point! a perfectly pure function is inferred impure because of dead code! hm. i missed this part (about dead

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
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

Re: serve - A simple HTTP server for static files

2015-03-22 Thread Suliman via Digitalmars-d-announce
On Sunday, 22 March 2015 at 03:26:14 UTC, Martin Nowak wrote: Sharing a useful tool of mine. http://code.dlang.org/packages/serve Could you explain why pure vibed do not good for static files?

Re: [Semi OT] The programming language wars

2015-03-22 Thread Atila Neves via Digitalmars-d
On Friday, 20 March 2015 at 22:55:24 UTC, Laeeth Isharc wrote: On Friday, 20 March 2015 at 07:37:04 UTC, Paulo Pinto wrote: Language features should be tested with real users using scientific validation processes, instead of being blindly added to a language. There is nothing intrinsically

Where is my memory?

2015-03-22 Thread via Digitalmars-d
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) { int[] ints; foreach(j; 0..1000) { ints

Re: [Semi OT] The programming language wars

2015-03-22 Thread via Digitalmars-d
On Sunday, 22 March 2015 at 10:24:16 UTC, FG wrote: On 2015-03-22 at 11:03, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Sunday, 22 March 2015 at 09:30:38 UTC, Atila Neves wrote: Of course there is. Experience and judgement aren't measurable. You don't

Re: [dlang.org] what to do with remaining orphaned pages

2015-03-22 Thread Rikki Cattermole via Digitalmars-d
On 23/03/2015 12:08 a.m., Rikki Cattermole wrote: On 22/03/2015 11:54 p.m., anonymous wrote: We recently recovered a bunch of pages that were removed from the menu accidentally [1]. Two pages are still orphaned and I'm not sure what to do about them: http://dlang.org/overview.html This was

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

2015-03-22 Thread Koi via Digitalmars-d-learn
On Saturday, 21 March 2015 at 21:25:26 UTC, Trass3r wrote: Just save yourself lots of headaches and abandon the optlink/omf crap with -m64 resp. -m32mscoff. thank you. After some reading about m32mscoff, i have to recompile druntime and phobos with MODEL=32mscoff to use the new switch?

Re: refactoring issues

2015-03-22 Thread Ivan Kazmenko via Digitalmars-d-learn
On Friday, 20 March 2015 at 18:37:57 UTC, Vladimir Panteleev wrote: On Friday, 20 March 2015 at 18:36:19 UTC, Vladimir Panteleev wrote: On Friday, 20 March 2015 at 18:05:07 UTC, Ivan Kazmenko wrote: Thanks. I was able to reproduce the workflow you showed in the gif to the part where an error

[Issue 14230] [REG2.067b2] std.array.join misses the first element which is empty string

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14230 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||pull

Re: Phobos Documentation - call to action

2015-03-22 Thread Walter Bright via Digitalmars-d
Thanks to everyone who has been filing pull requests on this!

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

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
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 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

[Issue 14035] string concatenation accepts ints in templates

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 --- Comment #11 from Kenji Hara k.hara...@gmail.com --- (In reply to Kenji Hara from comment #9) and disallow conversions beyond the categories for non-polymorphic literals (eg. `4` type with uint). Of course, even inside same category, loss of

[Issue 14035] string concatenation accepts ints in templates

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 --- Comment #12 from yebblies yebbl...@gmail.com --- (In reply to Kenji Hara from comment #9) (In reply to yebblies from comment #6) Then, because it knows that 4 can fit in a char, it allows it to become this: enum alice = { int

[Issue 14035] string concatenation accepts ints in templates

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added CC|ket...@ketmar.no-ip.org | --

[Issue 14035] string concatenation accepts ints in templates

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added CC||ket...@ketmar.no-ip.org

[Issue 14035] string concatenation accepts ints in templates

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14035 --- Comment #14 from Kenji Hara k.hara...@gmail.com --- (In reply to yebblies from comment #12) This is sort of the whole point of VRP I think it's a problem in the current implemented semantics of VRP. Applying VRP beyond the type categories will

Making byLine faster: we should be able to delegate this

2015-03-22 Thread Andrei Alexandrescu via Digitalmars-d
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 to a trusty lieutenant in the community. There's been a bug opened on

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

2015-03-22 Thread Mathias Lang via Digitalmars-d
I was wondering how this could be done this afternoon. Thanks Mengu. https://github.com/github/gitignore/pull/1444 2015-03-22 22:08 GMT+01:00 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com: On 3/22/15 1:37 PM, Mengu wrote: while we're at it, let's add D to this list:

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

2015-03-22 Thread krzaq via Digitalmars-d
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 effect. I'm surprised nobody commented

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

2015-03-22 Thread Mengu via Digitalmars-d
On Sunday, 22 March 2015 at 22:04:53 UTC, Mathias Lang wrote: I was wondering how this could be done this afternoon. Thanks Mengu. https://github.com/github/gitignore/pull/1444 2015-03-22 22:08 GMT+01:00 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com: On 3/22/15 1:37

D on Stackoverflow

2015-03-22 Thread Walter Bright via Digitalmars-d
Handy link: http://stackoverflow.com/questions/tagged/d Posting questions and helping out there now and then will help raise the visibility of D to a wider audience.

Re: D on Stackoverflow

2015-03-22 Thread weaselcat via Digitalmars-d
On Monday, 23 March 2015 at 02:02:45 UTC, Walter Bright wrote: Handy link: http://stackoverflow.com/questions/tagged/d Posting questions and helping out there now and then will help raise the visibility of D to a wider audience. I suggest subscribing to the RSS feed for the D tag.

[Issue 14319] New: core.demangle does not support member function attributes

2015-03-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14319 Issue ID: 14319 Summary: core.demangle does not support member function attributes Product: D Version: D2 Hardware: All OS: All Status: NEW