German D Community?

2014-12-01 Thread trgy via Digitalmars-d-announce
Hello, is there a german D community? I cannot find a forum/wiki or something else. I hope you can help me. :) Thanks in advance. Best regards trgy

Re: German D Community?

2014-12-01 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 1 December 2014 at 09:17:42 UTC, trgy wrote: Hello, is there a german D community? I cannot find a forum/wiki or something else. I hope you can help me. :) Thanks in advance. Best regards trgy There is a german community. Most of them are here :) As far as I know there is no

Re: German D Community?

2014-12-01 Thread trgy via Digitalmars-d-announce
On Monday, 1 December 2014 at 09:22:47 UTC, Stefan Koch wrote: On Monday, 1 December 2014 at 09:17:42 UTC, trgy wrote: Hello, is there a german D community? I cannot find a forum/wiki or something else. I hope you can help me. :) Thanks in advance. Best regards trgy There is a german

Re: German D Community?

2014-12-01 Thread Stefan Koch via Digitalmars-d-announce
On Monday, 1 December 2014 at 09:38:35 UTC, trgy wrote: Thank you for this information. Would nobody of the german community prefer to have a forum/wiki in german? Best regards trgy If you want one, go ahead and create one. Though a german forum would most likely be quite small. just look at

Re: German D Community?

2014-12-01 Thread Foo via Digitalmars-d-announce
On Monday, 1 December 2014 at 09:38:35 UTC, trgy wrote: On Monday, 1 December 2014 at 09:22:47 UTC, Stefan Koch wrote: On Monday, 1 December 2014 at 09:17:42 UTC, trgy wrote: Hello, is there a german D community? I cannot find a forum/wiki or something else. I hope you can help me. :)

Re: German D Community?

2014-12-01 Thread Dicebot via Digitalmars-d-announce
On Monday, 1 December 2014 at 09:17:42 UTC, trgy wrote: Hello, is there a german D community? I cannot find a forum/wiki or something else. I hope you can help me. :) Thanks in advance. Best regards trgy D community isn't big enough to make local branches worthwhile in general.

Re: undeaD - zombie phobos modules back from the grave

2014-12-01 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 1 December 2014 at 07:53:05 UTC, Walter Bright wrote: Well, I had tagged 1.0.0, then fixed a problem :-) Well 1.0.0 is reserved for the first stable release, usually you'd begin with 0.1.0 or so. Good idea BTW.

Re: undeaD - zombie phobos modules back from the grave

2014-12-01 Thread ketmar via Digitalmars-d-announce
On Mon, 01 Dec 2014 12:33:29 + Martin Nowak via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Monday, 1 December 2014 at 07:53:05 UTC, Walter Bright wrote: Well, I had tagged 1.0.0, then fixed a problem :-) Well 1.0.0 is reserved for the first stable release,

Re: German D Community?

2014-12-01 Thread qznc via Digitalmars-d-announce
On Monday, 1 December 2014 at 11:27:21 UTC, Dicebot wrote: On Monday, 1 December 2014 at 09:17:42 UTC, trgy wrote: Hello, is there a german D community? I cannot find a forum/wiki or something else. I hope you can help me. :) Thanks in advance. Best regards trgy D community isn't big

Re: undeaD - zombie phobos modules back from the grave

2014-12-01 Thread Walter Bright via Digitalmars-d-announce
On 12/1/2014 4:33 AM, Martin Nowak wrote: On Monday, 1 December 2014 at 07:53:05 UTC, Walter Bright wrote: Well, I had tagged 1.0.0, then fixed a problem :-) Well 1.0.0 is reserved for the first stable release, usually you'd begin with 0.1.0 or so. Good idea BTW. Since these are former

Re: undeaD - zombie phobos modules back from the grave

2014-12-01 Thread Brad Anderson via Digitalmars-d-announce
On Monday, 1 December 2014 at 04:07:06 UTC, Walter Bright wrote: http://code.dlang.org/packages/undead https://github.com/DigitalMars/undeaD [snip] This was a great idea.

Re: d-apt source changed!

2014-12-01 Thread Brad Anderson via Digitalmars-d-announce
On Sunday, 30 November 2014 at 02:20:04 UTC, Jordi Sayol via Digitalmars-d-announce wrote: d-apt http://d-apt.sourceforge.net/ changed the distribution name from dmd to d-apt. Download the last d-apt.list to update: $ sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list

Re: undeaD - zombie phobos modules back from the grave

2014-12-01 Thread Walter Bright via Digitalmars-d-announce
On 12/1/2014 2:19 PM, Brad Anderson wrote: This was a great idea. Aw, shucks! :-)

Re: Request for Recursive Warnings as Message DUB Flag

2014-12-01 Thread Nordlöw
On Sunday, 30 November 2014 at 15:48:14 UTC, Nordlöw wrote: I really think DUB lacks an important flag/option namely a variant of allowWarnings that *recursively* affects all the sub packages of a dub.json project description. Otherwise developers who want to try out D will think its

Re: d-apt source changed!

2014-12-01 Thread Jordi Sayol via Digitalmars-d-announce
El 01/12/14 a les 23:23, Brad Anderson via Digitalmars-d-announce ha escrit: On Sunday, 30 November 2014 at 02:20:04 UTC, Jordi Sayol via Digitalmars-d-announce wrote: d-apt http://d-apt.sourceforge.net/ changed the distribution name from dmd to d-apt. Download the last d-apt.list to

Re: Request for Recursive Warnings as Message DUB Flag

2014-12-01 Thread Daniel Murphy via Digitalmars-d-announce
Nordlöw wrote in message news:iswbimvzcxegthnxg...@forum.dlang.org... Crap, I should of course have posted this on digitalmars.D. You should probably post it on dub's issue tracker or forums.

Re: d-apt source changed!

2014-12-01 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2014-12-01 at 23:50 +0100, Jordi Sayol via Digitalmars-d-announce wrote: […] Thank you all to create this incredible compiler and the related tools. I only wrap them on d-apt. A product is only as good as its channel to market. Having downloadable things is fine but not really a good

Re: Phobos - breaking existing code

2014-12-01 Thread Jacob Carlborg via Digitalmars-d
On 2014-12-01 00:03, Walter Bright wrote: Keeping around a deprecated alias translating the old symbol to the new one is a good approach. For a more detailed message, instead of the @disabled enhancement, a simpler way is: void fnmatch()(...) { static assert(0, use globMatch instead of

Re: Phobos - breaking existing code

2014-12-01 Thread Jacob Carlborg via Digitalmars-d
On 2014-12-01 00:03, Walter Bright wrote: 3. there's no documentation for fnmatch anymore. He has no idea what fnmatch is supposed to do. Now he's got to embark on some sort of forensic search through old versions of the compiler, and not having much clue which ones to look at $ git log -S

Re: Phobos - breaking existing code

2014-12-01 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 30, 2014 07:28:57 H. S. Teoh via Digitalmars-d wrote: On Sun, Nov 30, 2014 at 03:03:23AM -0800, Jonathan M Davis via Digitalmars-d wrote: To really have full stability, we'd pretty much have to freeze everything and change nothing beyond bug fixes, and we're definitely

Re: Phobos - breaking existing code

2014-12-01 Thread Walter Bright via Digitalmars-d
On 12/1/2014 12:22 AM, Jacob Carlborg wrote: On 2014-12-01 00:03, Walter Bright wrote: 3. there's no documentation for fnmatch anymore. He has no idea what fnmatch is supposed to do. Now he's got to embark on some sort of forensic search through old versions of the compiler, and not having

Re: Reference Counting and Static Checker

2014-12-01 Thread Gary Willoughby via Digitalmars-d
On Monday, 1 December 2014 at 07:47:20 UTC, Suminda Dharmasena wrote: Hi, I am wondering if there is interest in the community to introduce alternatives to GC. E.g. reference counting and a static analysis system which traces allocation / deallocation points which can be used to insert the

Segmentation fault building druntime head on OS X

2014-12-01 Thread Paolo Invernizzi via Digitalmars-d
Hi, Just to know if someone else has the same issue: OS X 10.10.1 Xcode 6.1 (6a1052d) cc --version Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) DMD is builded just fine: DMD64 D Compiler v2.067-devel-e17631e But the dmd crash on building druntime: semantic3 treap

Re: Phobos - breaking existing code

2014-12-01 Thread bearophile via Digitalmars-d
Walter Bright: Thanks! I like pressing existing features into use over inventing new ones :-) The existing feature to be used is @deprecated, it's more self-documenting and it was designed for that purpose. Using that special assert is just a workaround. No one was suggesting to invent new

Re: Segmentation fault building druntime head on OS X

2014-12-01 Thread John Colvin via Digitalmars-d
On Monday, 1 December 2014 at 09:48:20 UTC, Paolo Invernizzi wrote: Hi, Just to know if someone else has the same issue: OS X 10.10.1 Xcode 6.1 (6a1052d) cc --version Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) DMD is builded just fine: DMD64 D Compiler

Re: Phobos - breaking existing code

2014-12-01 Thread Jacob Carlborg via Digitalmars-d
On 2014-11-30 16:36, H. S. Teoh via Digitalmars-d wrote: I thought dlang.org already has a page that lists language library changes for each of the recent releases? We have only had that for a couple of releases and not the latest release. No one wrote that document for the latest release

Re: Phobos - breaking existing code

2014-12-01 Thread Jonathan M Davis via Digitalmars-d
On Monday, December 01, 2014 09:57:33 bearophile via Digitalmars-d wrote: Walter Bright: Thanks! I like pressing existing features into use over inventing new ones :-) The existing feature to be used is @deprecated, it's more self-documenting and it was designed for that purpose. Using

Re: Phobos - breaking existing code

2014-12-01 Thread bearophile via Digitalmars-d
Jonathan M Davis: but it's still better than leaving something as deprecated permanently. Right, sorry, I meant disabled. But I don't like to keep those things disabled permanently, they eventually should be removed. Bye, bearophile

Re: Phobos - breaking existing code

2014-12-01 Thread Jonathan M Davis via Digitalmars-d
On Monday, December 01, 2014 11:21:23 bearophile via Digitalmars-d wrote: Jonathan M Davis: but it's still better than leaving something as deprecated permanently. Right, sorry, I meant disabled. But I don't like to keep those things disabled permanently, they eventually should be

Re: Function with same name as a module name

2014-12-01 Thread Daniel Kozak via Digitalmars-d
On Saturday, 29 November 2014 at 22:25:46 UTC, Xinok wrote: On Saturday, 29 November 2014 at 19:35:52 UTC, Daniel Kozak wrote: module main; import std.stdio; struct A {} static A a; void main() { writeln(main.a); } this code does not work, because it try to use main function

Re: Phobos - breaking existing code

2014-12-01 Thread Jacob Carlborg via Digitalmars-d
On 2014-11-29 00:33, Walter Bright wrote: Just for fun, I've decided to try and get MicroEmacs in D added to the dub registry. The last time it compiled was 2 years ago. I wound up with at least a dozen references to Phobos names that have disappeared. No corrective action was indicated, just

Re: Need help deciphering posix.mak

2014-12-01 Thread Martin Nowak via Digitalmars-d
On Thursday, 27 November 2014 at 20:17:55 UTC, Dmitry Olshansky wrote: What I know(?) so far: 1. First we build library in one go - trivial to reproduce. 2. Then we compile each unittest with -c and -deps to dump actual dependencies. Yes, we compile one object file per module because memory

Re: Need help deciphering posix.mak

2014-12-01 Thread Martin Nowak via Digitalmars-d
On Thursday, 27 November 2014 at 21:41:41 UTC, H. S. Teoh via Digitalmars-d wrote: On Thu, Nov 27, 2014 at 11:30:49PM +0200, ketmar via Digitalmars-d wrote: On Thu, 27 Nov 2014 23:17:34 +0300 Dmitry Olshansky via Digitalmars-d digitalmars-d@puremagic.com wrote: Okay, so I'm prepping up a

Re: Phobos - breaking existing code

2014-12-01 Thread Steven Schveighoffer via Digitalmars-d
On 11/30/14 6:03 PM, Walter Bright wrote: On 11/30/2014 7:28 AM, H. S. Teoh via Digitalmars-d wrote: I think the complaint was not so much the fact that the code broke, but the fact that it broke *without any clue as to how to fix it*. Yup. Consider the fnmatch = globMatch change. Just edit

Re: Phobos - breaking existing code

2014-12-01 Thread H. S. Teoh via Digitalmars-d
On Mon, Dec 01, 2014 at 03:51:48AM -0800, Jonathan M Davis via Digitalmars-d wrote: On Monday, December 01, 2014 11:21:23 bearophile via Digitalmars-d wrote: Jonathan M Davis: but it's still better than leaving something as deprecated permanently. Right, sorry, I meant disabled.

Re: Phobos - breaking existing code

2014-12-01 Thread Wyatt via Digitalmars-d
On Monday, 1 December 2014 at 11:52:04 UTC, Jonathan M Davis via Digitalmars-d wrote: On Monday, December 01, 2014 11:21:23 bearophile via Digitalmars-d wrote: Right, sorry, I meant disabled. But I don't like to keep those things disabled permanently, they eventually should be removed. I

Re: Segmentation fault building druntime head on OS X

2014-12-01 Thread Sean Kelly via Digitalmars-d
A few years back, clang was generating an invalid copy ctor for a struct in DMD. I assume this has long since been fixed, but clearly clang still has a few bugs.

Re: Function with same name as a module name

2014-12-01 Thread Jeremy DeHaan via Digitalmars-d
I don't think you can specify look ups with the name of the module in the same module like you can with imported ones. If you want to specify that it is a variable in module scope, use the module scope operator. writeln(.a); // the leading '.' specifies module scope

Re: Reference Counting and Static Checker

2014-12-01 Thread Jonathan Marler via Digitalmars-d
On Monday, 1 December 2014 at 07:47:20 UTC, Suminda Dharmasena wrote: Hi, I am wondering if there is interest in the community to introduce alternatives to GC. E.g. reference counting and a static analysis system which traces allocation / deallocation points which can be used to insert the

Re: Does RTTI and exceptions work in dlls on windows?

2014-12-01 Thread MrSmith via Digitalmars-d
On Saturday, 29 November 2014 at 13:52:11 UTC, Martin Nowak wrote: On Thursday, 27 November 2014 at 21:52:27 UTC, MrSmith wrote: Can you suggest a good way to design mod system? Where each mod can depend on others and use their real functionality. All mods should be in form of dlls. No DLL

Re: Phobos - breaking existing code

2014-12-01 Thread Walter Bright via Digitalmars-d
On 12/1/2014 1:57 AM, bearophile wrote: Walter Bright: Thanks! I like pressing existing features into use over inventing new ones :-) The existing feature to be used is @deprecated, it's more self-documenting and it was designed for that purpose. Using that special assert is just a

Re: Phobos - breaking existing code

2014-12-01 Thread Walter Bright via Digitalmars-d
On 12/1/2014 8:17 AM, Wyatt wrote: Thinking along these lines, would it be possible to have something like a deprecation module (core.deprecations?) that you can import (temporarily) for updating old code? At the very least, it seems it would be possible to alias and warn with pragma for some

Re: Phobos - breaking existing code

2014-12-01 Thread Walter Bright via Digitalmars-d
On 12/1/2014 5:36 AM, Jacob Carlborg wrote: Every single release since at least DMD 2.050 has broken DWT. Most of these issues were language changes and not renamed symbols in Phobos. My experience with upgrading old D code, even D1 code, is that language changes were easier to deal with than

Re: Function with same name as a module name

2014-12-01 Thread Daniel Kozak via Digitalmars-d
Dne Mon, 01 Dec 2014 18:10:35 +0100 Jeremy DeHaan via Digitalmars-d digitalmars-d@puremagic.com napsal(a): I don't think you can specify look ups with the name of the module in the same module like you can with imported ones. If you want to specify that it is a variable in module scope,

Re: Segmentation fault building druntime head on OS X

2014-12-01 Thread Jacob Carlborg via Digitalmars-d
On 2014-12-01 18:03, Sean Kelly wrote: A few years back, clang was generating an invalid copy ctor for a struct in DMD. I assume this has long since been fixed, but clearly clang still has a few bugs. Lately I've only been able to successfully run the whole test suite for DMD if it was

Re: Segmentation fault building druntime head on OS X

2014-12-01 Thread Sean Kelly via Digitalmars-d
On Monday, 1 December 2014 at 20:42:06 UTC, Jacob Carlborg wrote: On 2014-12-01 18:03, Sean Kelly wrote: A few years back, clang was generating an invalid copy ctor for a struct in DMD. I assume this has long since been fixed, but clearly clang still has a few bugs. Lately I've only been

Re: 2 types of D users, both can live together happily if we adjust

2014-12-01 Thread Jarrett Tierney via Digitalmars-d
I think there have been many good points here. But I'd like to reiterate with any language of any size, it comes down to what you use in the language. Yes there are experimental features in D that are more influx than others, but depending on those features are really up to you and your team.

Re: Function with same name as a module name

2014-12-01 Thread Jeremy DeHaan via Digitalmars-d
On Monday, 1 December 2014 at 20:29:48 UTC, Daniel Kozak via Digitalmars-d wrote: Dne Mon, 01 Dec 2014 18:10:35 +0100 Jeremy DeHaan via Digitalmars-d digitalmars-d@puremagic.com napsal(a): I don't think you can specify look ups with the name of the module in the same module like you can with

Re: Phobos - breaking existing code

2014-12-01 Thread Andrei Alexandrescu via Digitalmars-d
On 11/29/14 8:09 AM, bearophile wrote: H. S. Teoh: Huh??! I *really* don't know what you're talking about, because in the last few months, I've seen a dramatic *increase* in Phobos activity. OK, if I was mistaken then I am happy ::) Sometimes it's good to be wrong. Might be because my

Re: Phobos - breaking existing code

2014-12-01 Thread Sean Kelly via Digitalmars-d
On Tuesday, 2 December 2014 at 00:13:03 UTC, Andrei Alexandrescu wrote: I wonder if there's some way to filter out robots, build machines etc. Ideas? The User-Agent header would be a good place to start.

Re: Phobos - breaking existing code

2014-12-01 Thread Martin Nowak via Digitalmars-d
On Tuesday, 2 December 2014 at 00:13:03 UTC, Andrei Alexandrescu wrote: I wonder if there's some way to filter out robots, build machines etc. Ideas? We should probably do something to identify all the downloads coming from Travis-CI and other CI solutions.

Re: Phobos - breaking existing code

2014-12-01 Thread MattCoder via Digitalmars-d
On Tuesday, 2 December 2014 at 00:13:03 UTC, Andrei Alexandrescu wrote: One interesting tidbit is that downloads have been rising sharply through mid-November, to have a bit of a pullback recently: http://erdani.com/d/downloads.daily.png One note about this: I'm using D in my projects since

Re: Phobos - breaking existing code

2014-12-01 Thread Rikki Cattermole via Digitalmars-d
On Tuesday, 2 December 2014 at 00:13:03 UTC, Andrei Alexandrescu wrote: On 11/29/14 8:09 AM, bearophile wrote: H. S. Teoh: Huh??! I *really* don't know what you're talking about, because in the last few months, I've seen a dramatic *increase* in Phobos activity. OK, if I was mistaken then

Re: Phobos - breaking existing code

2014-12-01 Thread Walter Bright via Digitalmars-d
On 12/1/2014 6:19 PM, Rikki Cattermole wrote: Just a thought but, its pretty close to end of year. Projects will be slowing down/stopping ext. People going on holiday. That also could screw the results a lot. In many organizations, nothing happens from Thanksgiving to the New Years.

Re: Phobos - breaking existing code

2014-12-01 Thread Rikki Cattermole via Digitalmars-d
On 2/12/2014 3:26 p.m., Walter Bright wrote: On 12/1/2014 6:19 PM, Rikki Cattermole wrote: Just a thought but, its pretty close to end of year. Projects will be slowing down/stopping ext. People going on holiday. That also could screw the results a lot. In many organizations, nothing happens

Re: Mixin declarations not showing up in ModuleInfo

2014-12-01 Thread bitwise via Digitalmars-d
On Monday, 1 December 2014 at 07:28:28 UTC, Daniel Kozák via Digitalmars-d wrote: V Mon, 01 Dec 2014 00:07:10 + bitwise via Digitalmars-d digitalmars-d@puremagic.com napsáno: But I just try to say you can omit mixin word in template declaration. Because it doesn't have any effect.

Re: Mixin declarations not showing up in ModuleInfo

2014-12-01 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 1 December 2014 at 07:28:28 UTC, Daniel Kozák via Digitalmars-d Yes and no :) huh, it isn't supposed to be and I'm pretty sure it was made an error at some point...

Re: Move dsource WindowsAPI to github?

2014-12-01 Thread sara736 via Digitalmars-d
Where 'data' and 'destination' [url=http://www.pass4-sure.me]http://www.pass4-sure.me[/url] are any variables. I use such setup in my projects and it helps greatly to identify what went wrong when not using a debugger.

Re: GtkD

2014-12-01 Thread sara736 via Digitalmars-d
Whether this is http://www.pass4-sure.me good design or not, is debatable, I had some use cases. where it made sense for me. Regardless, I don't see why the language. should disallow it, except for performance reasons because virtual is the default. If this default is changed, I really see no

Re: Mixin declarations not showing up in ModuleInfo

2014-12-01 Thread Daniel Kozák via Digitalmars-d
V Tue, 02 Dec 2014 04:05:16 + bitwise via Digitalmars-d digitalmars-d@puremagic.com napsáno: On Monday, 1 December 2014 at 07:28:28 UTC, Daniel Kozák via Digitalmars-d wrote: V Mon, 01 Dec 2014 00:07:10 + bitwise via Digitalmars-d digitalmars-d@puremagic.com napsáno: But I

Re: Mixin declarations not showing up in ModuleInfo

2014-12-01 Thread Daniel Kozak via Digitalmars-d
On Tuesday, 2 December 2014 at 04:17:08 UTC, Adam D. Ruppe wrote: On Monday, 1 December 2014 at 07:28:28 UTC, Daniel Kozák via Digitalmars-d Yes and no :) huh, it isn't supposed to be and I'm pretty sure it was made an error at some point...

Re: general questions on reference types versus value types...

2014-12-01 Thread WhatMeWorry via Digitalmars-d-learn
Wow. This is great stuff! And diagrams are always appreciated. You should write a book. I'm off to play with emplace.

Re: curl: catching exception on connect.

2014-12-01 Thread Ali Çehreli via Digitalmars-d-learn
On 11/30/2014 10:38 PM, Suliman wrote: Am I right understand all exception are derived from assertThrown http://dlang.org/phobos/std_exception.html No, all exceptions are derived from Throwable. It has two descendants: - Error, representing conditions that are irrecoverable, and -

Re: general questions on reference types versus value types...

2014-12-01 Thread bearophile via Digitalmars-d-learn
H. S. Teoh: you *can* allocate by-value types on the heap, e.g., `MyStruct* ptr = new MyStruct(...)`. But it's rare to want to do that; usually if you need to do that, you should just use a class instead. If I create data structures that contain many pointers, like some kinds of trees, I

Re: Problem interfacing with GSL

2014-12-01 Thread Arjan via Digitalmars-d-learn
On Sunday, 30 November 2014 at 16:26:53 UTC, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: On 30/11/14 13:21, Arjan via Digitalmars-d-learn wrote: Hi! D noob here. I'm trying to call this function from the GSL lib: Out of curiosity (since your question has already been answered),

Re: Problem interfacing with GSL

2014-12-01 Thread John Colvin via Digitalmars-d-learn
On Monday, 1 December 2014 at 12:17:46 UTC, Arjan wrote: On Sunday, 30 November 2014 at 16:26:53 UTC, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: On 30/11/14 13:21, Arjan via Digitalmars-d-learn wrote: Hi! D noob here. I'm trying to call this function from the GSL lib: Out of

Re: curl: catching exception on connect.

2014-12-01 Thread Suliman via Digitalmars-d-learn
Big thanks Ali! Only the small last question: why: string link = dlang.org; writeln(connect(link)); cause crash: std.net.curl.CurlException@C:\DMD\dmd2\windows\bin\..\..\src\phobos\std\net\curl .d(779): HTTP request returned status code 400 0x00404263

Transform a sorted range to a range of ranges of equal elements

2014-12-01 Thread Tobias Pankrath via Digitalmars-d-learn
Basically I need std.algorithm.uniq or std.algorithm.group, but instead of a single element or an element and a number I want ranges that each contain consecutive elements considered equal. Example: [1,1, 2,2,2,3,4,4] - [1, 1], [2,2,2], [3], [4,4]. Let's call this uniqRange. This way

Re: Transform a sorted range to a range of ranges of equal elements

2014-12-01 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Dec 01, 2014 at 06:37:13PM +, Tobias Pankrath via Digitalmars-d-learn wrote: Basically I need std.algorithm.uniq or std.algorithm.group, but instead of a single element or an element and a number I want ranges that each contain consecutive elements considered equal. Example:

Re: curl: catching exception on connect.

2014-12-01 Thread Ali Çehreli via Digitalmars-d-learn
On 12/01/2014 10:25 AM, Suliman wrote: why: string link = dlang.org; writeln(connect(link)); cause crash: (To be pedantic: An unhandled exception is not a crash. ;) ) std.net.curl.CurlException@C:\DMD\dmd2\windows\bin\..\..\src\phobos\std\net\curl .d(779): HTTP request

Re: curl: catching exception on connect.

2014-12-01 Thread Suliman via Digitalmars-d-learn
My guess is that you have to use HTTPS for CONNECT and that you have to have credentials for it. (?) Ali dlang.org should work on HTTP, but not HTTPS. Also I do not think that when I connect to HTTPS I should have any credentials. It's mostly like issue with curl...

Re: general questions on reference types versus value types...

2014-12-01 Thread Ali Çehreli via Digitalmars-d-learn
On 12/01/2014 12:06 AM, WhatMeWorry wrote: Wow. This is great stuff! And diagrams are always appreciated. You should write a book. Agreed! H. S. Teoh, should I translate this post for the Turkish audience or should I wait for an article version of it first? ;) We can even reddit it

Re: general questions on reference types versus value types...

2014-12-01 Thread Suliman via Digitalmars-d-learn
Could anybody explain why there is opinion that stack is fast and the heap is slow. All of them are located in the same memory. So the access time should be equal.

Re: general questions on reference types versus value types...

2014-12-01 Thread ketmar via Digitalmars-d-learn
On Mon, 01 Dec 2014 20:22:59 + Suliman via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Could anybody explain why there is opinion that stack is fast and the heap is slow. All of them are located in the same memory. So the access time should be equal. could anybody

Re: general questions on reference types versus value types...

2014-12-01 Thread bearophile via Digitalmars-d-learn
Suliman: Could anybody explain why there is opinion that stack is fast and the heap is slow. All of them are located in the same memory. So the access time should be equal. Often the access speed is not exactly the same, because the stack memory is usually hotter, this means it's more often

Re: general questions on reference types versus value types...

2014-12-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/1/14 3:22 PM, Suliman wrote: Could anybody explain why there is opinion that stack is fast and the heap is slow. All of them are located in the same memory. So the access time should be equal. Measure it :) But short answer is twofold: 1. stack is usually hot in the local processor

Re: general questions on reference types versus value types...

2014-12-01 Thread H. S. Teoh via Digitalmars-d-learn
On Mon, Dec 01, 2014 at 08:22:59PM +, Suliman via Digitalmars-d-learn wrote: Could anybody explain why there is opinion that stack is fast and the heap is slow. All of them are located in the same memory. So the access time should be equal. That may be true 15 years ago, it's not true

Re: general questions on reference types versus value types...

2014-12-01 Thread via Digitalmars-d-learn
On Monday, 1 December 2014 at 20:23:00 UTC, Suliman wrote: Could anybody explain why there is opinion that stack is fast and the heap is slow. All of them are located in the same memory. So the access time should be equal. Yes, the problem is that if you load from a memory area (of 64 bytes)

Re: Transform a sorted range to a range of ranges of equal elements

2014-12-01 Thread Tobias Pankrath via Digitalmars-d-learn
Phobos git HEAD has a new range adaptor called groupBy that does what you want: assert([1,1,2,2,2,3,4,4].groupBy!((a)=a).equal( [[1,1], [2,2,2], [3], [4,4]] )) T Thanks! I wonder if this works with all input ranges. As I see it, every implementation will

Re: Transform a sorted range to a range of ranges of equal elements

2014-12-01 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 02, 2014 at 01:03:12AM +, Tobias Pankrath via Digitalmars-d-learn wrote: Phobos git HEAD has a new range adaptor called groupBy that does what you want: assert([1,1,2,2,2,3,4,4].groupBy!((a)=a).equal( [[1,1], [2,2,2], [3], [4,4]] )) T

[Issue 13775] Broken explicit casting of dynamic array slices of known size to static array of different type

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13775 Jonathan M Davis issues.dl...@jmdavisprog.com changed: What|Removed |Added CC|

[Issue 13595] Extend std.algorithm.groupBy to support non-equivalence relations

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13595 --- Comment #7 from bearophile_h...@eml.cc --- As second try I've used groupBy to find the longest anagrams in a dictionary of words. words.txt is a text file that contains one different word each line. void main() { import std.stdio,

[Issue 13744] Cannot pass private symbol as alias parameter

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13744 Dicebot pub...@dicebot.lv changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment #2

[Issue 13795] DMD ICE segfault compiling druntime

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13795 Paolo Invernizzi paolo.inverni...@gmail.com changed: What|Removed |Added CC|

[Issue 13803] New: Improve pretty-print result for the wstring an dstring types

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13803 Issue ID: 13803 Summary: Improve pretty-print result for the wstring an dstring types Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 13802] New: Improve pretty-print result for the const(string) type

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13802 Issue ID: 13802 Summary: Improve pretty-print result for the const(string) type Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic

[Issue 13803] Improve pretty-print result for the wstring an dstring types

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

[Issue 13802] Improve pretty-print result for the const(string) type

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13802 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment

[Issue 13802] Improve pretty-print result for the const(string) type

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13802 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #2 from

[Issue 13595] Extend std.algorithm.groupBy to support non-equivalence relations

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13595 --- Comment #8 from hst...@quickfur.ath.cx --- It looks like a compiler bug, in both cases the type returned by schwartzSort is exactly the same, but somehow the compiler treats it differently. --

[Issue 13595] Extend std.algorithm.groupBy to support non-equivalence relations

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13595 --- Comment #9 from bearophile_h...@eml.cc --- (In reply to hsteoh from comment #8) It looks like a compiler bug, in both cases the type returned by schwartzSort is exactly the same, but somehow the compiler treats it differently. Yes, it looks

[Issue 13595] Extend std.algorithm.groupBy to support non-equivalence relations

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13595 --- Comment #10 from hst...@quickfur.ath.cx --- Here's a somewhat reduced case: - void main() { import std.algorithm, std.string; auto anags = [abc, def] .map!((a) = a) .groupBy!((w1, w2) =

[Issue 13595] Extend std.algorithm.groupBy to support non-equivalence relations

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13595 --- Comment #11 from hst...@quickfur.ath.cx --- P.S. the groupBy predicate can also be simplified to just: .groupBy!((w1, w2) = w1 == w2) --

[Issue 13804] New: BigInt have no binary interface to be used in crypto

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13804 Issue ID: 13804 Summary: BigInt have no binary interface to be used in crypto Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 13805] New: Nested struct initialization error

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13805 Issue ID: 13805 Summary: Nested struct initialization error Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Keywords: rejects-valid

[Issue 13804] BigInt have no binary interface to be used in crypto

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13804 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment

[Issue 13805] Nested struct initialization error

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13805 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Component|DMD |Phobos

[Issue 13802] Improve pretty-print result for the const(string) type

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13802 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13803] Improve pretty-print result for the wstring an dstring types

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13803 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13802] Improve pretty-print result for the const(string) type

2014-12-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13802 --- 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/20e0c679fd468bdc288ab04380a854c85890 fix Issue 13802 - Improve

  1   2   >