Re: Ready to make page-per-item ddocs the default?

2015-01-08 Thread John Colvin via Digitalmars-d
On Thursday, 8 January 2015 at 12:18:37 UTC, Steven Schveighoffer wrote: On 1/6/15 8:16 PM, Andrei Alexandrescu wrote: On 1/6/15 3:44 PM, weaselcat wrote: On Tuesday, 6 January 2015 at 22:43:45 UTC, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from

Re: Ready to make page-per-item ddocs the default?

2015-01-07 Thread John Colvin via Digitalmars-d
On Tuesday, 6 January 2015 at 22:43:45 UTC, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Andrei I don't think I have to point out the problems with http://dlang.org/library/std/algorithm/find.html

Re: Ready to make page-per-item ddocs the default?

2015-01-07 Thread John Colvin via Digitalmars-d
On Tuesday, 6 January 2015 at 22:43:45 UTC, Andrei Alexandrescu wrote: Let's crowdsource the review. Please check the entries linked from here: http://dlang.org/library/index.html. Andrei I think there needs to a clear separation between the end of the overview (e.g. the cheat sheet in std.a

Re: Phobos colour module?

2015-01-06 Thread John Colvin via Digitalmars-d
On Monday, 5 January 2015 at 23:39:17 UTC, Manu via Digitalmars-d wrote: On 6 January 2015 at 04:11, via Digitalmars-d wrote: On Monday, 5 January 2015 at 16:08:27 UTC, Adam D. Ruppe wrote: Yeah, in my misc repo, there used to be stand along image.d and simpledisplay.d. Now, they both depend

Re: @api: One attribute to rule them All

2015-01-06 Thread John Colvin via Digitalmars-d
On Tuesday, 6 January 2015 at 09:12:43 UTC, John Colvin wrote: On Monday, 5 January 2015 at 21:15:00 UTC, Zach the Mystic wrote: Hello everybody. My name is Zach, and I have a suggestion for the improvement of D. I've been looking at the following stalled pull request for a while now: https:/

Re: @api: One attribute to rule them All

2015-01-06 Thread John Colvin via Digitalmars-d
On Monday, 5 January 2015 at 21:15:00 UTC, Zach the Mystic wrote: Hello everybody. My name is Zach, and I have a suggestion for the improvement of D. I've been looking at the following stalled pull request for a while now: https://github.com/D-Programming-Language/dmd/pull/1877 ...in which Wa

Re: Improving ddoc

2015-01-02 Thread John Colvin via Digitalmars-d
On Friday, 2 January 2015 at 21:03:44 UTC, Walter Bright wrote: On 1/2/2015 1:34 AM, Andrei Alexandrescu wrote: On 1/1/15 1:59 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: I do however still think that using $( ) to delineate start and end of macro blocks is a bad choice given the preva

Re: http://wiki.dlang.org/DIP25

2014-12-29 Thread John Colvin via Digitalmars-d
On Monday, 29 December 2014 at 04:13:18 UTC, Andrei Alexandrescu wrote: There is a rub though. Not only you're telling what we'd need to do to be more successful, you're also telling us how to do it. Please don't. We are not adding type qualifiers to D if we can avoid it, and generally we want

Re: using unmerged PRs

2014-12-25 Thread John Colvin via Digitalmars-d
On Thursday, 25 December 2014 at 20:15:11 UTC, Vlad Levenfeld wrote: I was looking at some of the PRs for DIPs and was wondering how to go ahead and use them in my code. A few of the forum regulars have mentioned applying their own patches before, and so I would like to ask those of you that do,

Re: Lost a new commercial user this week :(

2014-12-19 Thread John Colvin via Digitalmars-d
On Friday, 19 December 2014 at 06:47:31 UTC, Manu via Digitalmars-d wrote: On 19 December 2014 at 00:55, Chris via Digitalmars-d wrote: On Thursday, 18 December 2014 at 14:34:10 UTC, Manu via Digitalmars-d wrote: So to sum things up 1. you blindly walked into something you had no real exper

Re: Lost a new commercial user this week :(

2014-12-18 Thread John Colvin via Digitalmars-d
On Thursday, 18 December 2014 at 10:24:46 UTC, Manu via Digitalmars-d wrote: On 17 December 2014 at 20:33, ketmar via Digitalmars-d wrote: On Wed, 17 Dec 2014 09:48:26 + Tobias Pankrath via Digitalmars-d wrote: std.container.Array(T) if(is(Unqual!T == bool)) vs. std.container.Array(T)

Re: i want my bounty!

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 19:39:08 UTC, ketmar via Digitalmars-d wrote: On Mon, 15 Dec 2014 19:01:19 + Jeremy DeHaan via Digitalmars-d wrote: I don't understand your desire to avoid github, but what ever your reasons if you are willing to write updates for D there should be a way f

Re: i want my bounty!

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 15:26:57 UTC, Mengu wrote: On Monday, 15 December 2014 at 14:44:03 UTC, John Colvin wrote: On Monday, 15 December 2014 at 11:27:30 UTC, Mengu wrote: p.s. i know i have your sympathy because of my all lower-case writing despite the hate we get. :-) Ah! That's why

Re: Bug in compiler?

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 15:00:56 UTC, Marc Schütz wrote: On Monday, 15 December 2014 at 14:33:51 UTC, ketmar via Digitalmars-d wrote: On Mon, 15 Dec 2014 16:01:35 +0200 Shachar Shemesh via Digitalmars-d wrote: Please consider the following program: import std.exception; void main()

Re: i want my bounty!

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 11:27:30 UTC, Mengu wrote: p.s. i know i have your sympathy because of my all lower-case writing despite the hate we get. :-) Ah! That's why I can never parse ketmar's posts at a glance and keep getting lost. Full stops followed by capital letters make great vis

dmd source download

2014-12-15 Thread John Colvin via Digitalmars-d
Is there an official download available that has the source for dmd, druntime, phobos and tools, but not the binaries as well? Github releases provide this, but of course that bypasses the download counters, which isn't ideal.

Re: i want my bounty!

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 10:52:04 UTC, Artem Tarasov wrote: On Monday, 15 December 2014 at 10:37:23 UTC, Dicebot wrote: it is simply too far away effort-wise from something that can be used. Contributing something new to C++ standard library - now THAT is hard :) In D is simply a matter

Re: i want my bounty!

2014-12-15 Thread John Colvin via Digitalmars-d
On Monday, 15 December 2014 at 08:54:24 UTC, ketmar via Digitalmars-d wrote: On Mon, 15 Dec 2014 13:19:01 +1100 Daniel Murphy via Digitalmars-d wrote: "ketmar via Digitalmars-d" wrote in message news:mailman.3160.1418550079.9932.digitalmar...@puremagic.com... > but talking seriously, i do

Re: DIP69 - Implement scope for escape proof references

2014-12-15 Thread John Colvin via Digitalmars-d
On Sunday, 14 December 2014 at 23:27:15 UTC, Walter Bright wrote: I think I said that clearly: "What do you get when you take a pointer of a function with an auto-ref arg? ...an error, because it's not actually a function!" What's baffling to me is why even declare a function pointer paramete

Re: DIP69 - Implement scope for escape proof references

2014-12-11 Thread John Colvin via Digitalmars-d
On Thursday, 11 December 2014 at 21:41:11 UTC, Walter Bright wrote: On 12/11/2014 4:47 AM, Manu via Digitalmars-d wrote: On 8 December 2014 at 07:29, Walter Bright via Digitalmars-d wrote: On 12/7/2014 6:12 AM, Dicebot wrote: But from existing cases it doesn't seem working good enough. For

Re: DIP69 - Implement scope for escape proof references

2014-12-11 Thread John Colvin via Digitalmars-d
On Thursday, 11 December 2014 at 13:55:55 UTC, Marc Schütz wrote: On Thursday, 11 December 2014 at 12:48:05 UTC, Manu via Digitalmars-d wrote: On 8 December 2014 at 07:29, Walter Bright via Digitalmars-d wrote: On 12/7/2014 6:12 AM, Dicebot wrote: But from existing cases it doesn't seem work

Re: Do everything in Java…

2014-12-11 Thread John Colvin via Digitalmars-d
On Thursday, 11 December 2014 at 09:07:18 UTC, ketmar via Digitalmars-d wrote: On Thu, 11 Dec 2014 08:57:56 + Tobias Pankrath via Digitalmars-d wrote: >> >> Storing it as body IR accomplishes nothing practical over >> storing it as source file, i.e. .di files. > except that there's no n

Re: Any SIMD experts?

2014-12-10 Thread John Colvin via Digitalmars-d
On Wednesday, 10 December 2014 at 15:53:40 UTC, Martin Nowak wrote: On 12/09/2014 05:22 PM, John Colvin wrote: which of course Kenji already has a pull for, less than 3 hours later :) It's right on time, it's right on time Still doesn't work though: https://issues.dlang.org/show_bug.cgi?i

Re: Which optimisations are are easier or perhaps only possible in the frontend ?

2014-12-10 Thread John Colvin via Digitalmars-d
On Wednesday, 10 December 2014 at 11:07:34 UTC, Stefan Koch wrote: Hello guys, I want to work on optimisations in the semantic analysis stage. Could you chime in with thoughts about what can only be there and not in llvm-ir for example ? Thanks Stefan Well it really depends how descriptive

Re: No runtime attribute?

2014-12-10 Thread John Colvin via Digitalmars-d
On Wednesday, 10 December 2014 at 12:04:13 UTC, Daniel Murphy wrote: "bearophile" wrote in message news:pibnlncyjzetohcnw...@forum.dlang.org... The #[no_std] attribute is used to avoid the runtime in Rust. Do we have any use for a @noruntime attribute in D? All @noruntime functions are also

Re: Any SIMD experts?

2014-12-09 Thread John Colvin via Digitalmars-d
On Tuesday, 9 December 2014 at 12:36:29 UTC, John Colvin wrote: On Monday, 8 December 2014 at 22:10:09 UTC, Martin Nowak wrote: On 12/08/2014 06:05 PM, John Colvin wrote: Well gcc gives me: Tried that with dmd, it gave me. bug.d(5): Error: incompatible types for ((a) >= (l)): '__vector(ulon

Re: Any SIMD experts?

2014-12-09 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 22:10:09 UTC, Martin Nowak wrote: On 12/08/2014 06:05 PM, John Colvin wrote: Well gcc gives me: Tried that with dmd, it gave me. bug.d(5): Error: incompatible types for ((a) >= (l)): '__vector(ulong[4])' and '__vector(ulong[4])' bug.d(5): Error: incompatible typ

Re: Any SIMD experts?

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 23:40:21 UTC, Martin Nowak wrote: On 12/08/2014 06:20 PM, John Colvin wrote: To conceptually get what it's doing here, the trick is that it's offsetting the values so as to simulate unsigned comparisons using signed instructions. All too easy, but would've tak

Re: Any SIMD experts?

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 17:05:09 UTC, John Colvin wrote: On Monday, 8 December 2014 at 16:32:50 UTC, Martin Nowak wrote: I want to do bounds checking of 2 (4 on avx) ulongs (64-bit) at a time. ulong2 vval = [v0, v1]; ulong2 vlow = [low, low]; ulong2 vhigh = [high, high]; int res = PMOVM

Re: Any SIMD experts?

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 16:32:50 UTC, Martin Nowak wrote: I want to do bounds checking of 2 (4 on avx) ulongs (64-bit) at a time. ulong2 vval = [v0, v1]; ulong2 vlow = [low, low]; ulong2 vhigh = [high, high]; int res = PMOVMSKB(vval >= vlow & vval < vhigh); I figured out sort of a solut

Re: Any SIMD experts?

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 16:32:50 UTC, Martin Nowak wrote: I want to do bounds checking of 2 (4 on avx) ulongs (64-bit) at a time. ulong2 vval = [v0, v1]; ulong2 vlow = [low, low]; ulong2 vhigh = [high, high]; int res = PMOVMSKB(vval >= vlow & vval < vhigh); I figured out sort of a solut

Re: Type.stringof is removing alias and bitmanip

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 08:25:36 UTC, deadalnix wrote: As a result, it is impossible to use thing like bitfields in templates. I'm trying to do something like struct MySuperStruct(E) { enum DataSize = ulong.sizeof * 8 - EnumSize!E; import std.bitmanip; mi

Re: D semantics, shared as a heap storage specifier

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 14:48:28 UTC, Etienne wrote: So, nobody is in favor of extending the shared attribute for heap storage? I think people are a bit distracted with the scope proposal at the moment.

Re: Do everything in Java…

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 12:09:20 UTC, Kagamin wrote: On Monday, 8 December 2014 at 10:31:46 UTC, John Colvin wrote: After changing the benchmark to more carefully measure the integration function (ldc was unfairly taking advantage of knowing a and b at compile-time), scala does indeed win

Re: Do everything in Java…

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 11:02:21 UTC, Rene Zwanenburg wrote: On Monday, 8 December 2014 at 10:31:46 UTC, John Colvin wrote: On Sunday, 7 December 2014 at 22:46:02 UTC, Dmitry Olshansky wrote: 08-Dec-2014 01:38, John Colvin пишет: On Sunday, 7 December 2014 at 22:13:50 UTC, Dmitry Olshansk

Re: DIP69: problem with scope grammar - need a new keyword

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 09:46:03 UTC, Walter Bright wrote: I thought I could make this work, but it's a problem. There are two meanings for scope when attached to a function: T func() scope; // the 'this' pointer is 'scope' scope T func(); // the function returns a 'scope' T

Re: Do everything in Java…

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 11:40:25 UTC, John Colvin wrote: On Monday, 8 December 2014 at 11:02:21 UTC, Rene Zwanenburg wrote: On Monday, 8 December 2014 at 10:31:46 UTC, John Colvin wrote: On Sunday, 7 December 2014 at 22:46:02 UTC, Dmitry Olshansky wrote: 08-Dec-2014 01:38, John Colvin пи

Re: Do everything in Java…

2014-12-08 Thread John Colvin via Digitalmars-d
On Sunday, 7 December 2014 at 22:46:02 UTC, Dmitry Olshansky wrote: 08-Dec-2014 01:38, John Colvin пишет: On Sunday, 7 December 2014 at 22:13:50 UTC, Dmitry Olshansky wrote: 08-Dec-2014 00:36, John Colvin пишет: On Sunday, 7 December 2014 at 19:56:49 UTC, Dmitry Olshansky wrote: 06-Dec-2014 1

Re: DIP69: problem with scope grammar - need a new keyword

2014-12-08 Thread John Colvin via Digitalmars-d
On Monday, 8 December 2014 at 09:52:02 UTC, deadalnix wrote: On Monday, 8 December 2014 at 09:46:03 UTC, Walter Bright wrote: I thought I could make this work, but it's a problem. There are two meanings for scope when attached to a function: T func() scope; // the 'this' pointer is 'scope

Re: Do everything in Java…

2014-12-07 Thread John Colvin via Digitalmars-d
On Sunday, 7 December 2014 at 22:13:50 UTC, Dmitry Olshansky wrote: 08-Dec-2014 00:36, John Colvin пишет: On Sunday, 7 December 2014 at 19:56:49 UTC, Dmitry Olshansky wrote: 06-Dec-2014 18:33, H. S. Teoh via Digitalmars-d пишет: On Sat, Dec 06, 2014 at 03:26:08PM +, Russel Winder via Digit

Re: Do everything in Java…

2014-12-07 Thread John Colvin via Digitalmars-d
On Sunday, 7 December 2014 at 19:56:49 UTC, Dmitry Olshansky wrote: 06-Dec-2014 18:33, H. S. Teoh via Digitalmars-d пишет: On Sat, Dec 06, 2014 at 03:26:08PM +, Russel Winder via Digitalmars-d wrote: [...] primitive are passed by value; arrays and user defined types are passed by refer

Re: Do everything in Java…

2014-12-07 Thread John Colvin via Digitalmars-d
On Sunday, 7 December 2014 at 15:44:55 UTC, Ola Fosheim Grøstad wrote: On Sunday, 7 December 2014 at 15:41:12 UTC, H. S. Teoh via Digitalmars-d wrote: Haha, oops. I meant 40 hours * 5 days a week * 50 people = 1 man hours of work. Still a lot. The long work hours is why the US is ahead of

Re: Do everything in Java...

2014-12-06 Thread John Colvin via Digitalmars-d
On Friday, 5 December 2014 at 21:21:49 UTC, Ola Fosheim Grøstad wrote: On Friday, 5 December 2014 at 20:32:54 UTC, H. S. Teoh via Digitalmars-d wrote: I agree. It's not just about conservation of resources and power, though. It's also about maximizing the utility of our assets and extending ou

Re: DIP69 - Implement scope for escape proof references

2014-12-04 Thread John Colvin via Digitalmars-d
On Thursday, 4 December 2014 at 09:25:11 UTC, Walter Bright wrote: http://wiki.dlang.org/DIP69 Despite its length, this is a fairly simple proposal. It adds the missing semantics for the 'scope' storage class in order to make it possible to pass a reference to a function without it being poss

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 v2.067-devel

Re: 'int' is enough for 'length' to migrate code from x86 to x64

2014-11-21 Thread John Colvin via Digitalmars-d
On Friday, 21 November 2014 at 16:12:19 UTC, Don wrote: On Friday, 21 November 2014 at 15:50:05 UTC, H. S. Teoh via Digitalmars-d wrote: On Fri, Nov 21, 2014 at 03:36:01PM +, Don via Digitalmars-d wrote: [...] Suppose D had a type 'natint', which could hold natural numbers in the range 0.

Re: "Named parameter builder" pattern for template parameters

2014-11-21 Thread John Colvin via Digitalmars-d
On Friday, 21 November 2014 at 13:39:43 UTC, monarch_dodra wrote: I trust everyone here knows about the "builder" pattern (http://en.wikipedia.org/wiki/Builder_pattern)? It can be very useful when the number of (optional) arguments in a function start to run rampant, and you know the user only wa

Re: 'int' is enough for 'length' to migrate code from x86 to x64

2014-11-20 Thread John Colvin via Digitalmars-d
On Thursday, 20 November 2014 at 15:40:40 UTC, Araq wrote: Most of the statements I disagreed with were opinions. "unsigned" means "I want to use modulo 2^^n arithmetic". It does not mean, "this is an integer which cannot be negative". Opinion. Using modulo 2^^n arithmetic is *weird*. Op

Re: 'int' is enough for 'length' to migrate code from x86 to x64

2014-11-19 Thread John Colvin via Digitalmars-d
On Wednesday, 19 November 2014 at 11:04:05 UTC, Matthias Bentrup wrote: On Wednesday, 19 November 2014 at 10:03:35 UTC, Don wrote: On Tuesday, 18 November 2014 at 18:23:52 UTC, Marco Leise wrote: Am Tue, 18 Nov 2014 15:01:25 + schrieb "Frank Like" <1150015...@qq.com>: > but now ,'int' is e

Re: 'int' is enough for 'length' to migrate code from x86 to x64

2014-11-18 Thread John Colvin via Digitalmars-d
On Tuesday, 18 November 2014 at 13:35:46 UTC, ketmar via Digitalmars-d wrote: On Tue, 18 Nov 2014 12:33:51 + FrankLike via Digitalmars-d wrote: If you migrate your projct from x86 to x64,you will find the length is error,you must modify it ,such as: int i= (something).length to size

Re: D & NumPy

2014-11-14 Thread John Colvin via Digitalmars-d
On Friday, 14 November 2014 at 16:28:41 UTC, Chris wrote: Any work done in D regarding NumPy? pyd[1] has the ability to convert to/from d slices from/to numpy arrays as part of its quite comprehensive python-D interface. [1] https://bitbucket.org/ariovistus/pyd

shared libraries on OS X

2014-11-11 Thread John Colvin via Digitalmars-d
what's the status? I tried building druntime with 'make -f posix.mak dll' and got src/rt/sections.d(52): Error: static assert (is(typeof(__error) == void* function())) is false I'd be happy to put in some work to improve the situation, but a brief overview of the status quo would be useful

Re: Found by Coverty in LibreOffice

2014-11-10 Thread John Colvin via Digitalmars-d
On Monday, 10 November 2014 at 10:23:09 UTC, Rikki Cattermole wrote: On 10/11/2014 11:04 p.m., bearophile wrote: Some of the bugs that the static analysis tool Coverty has found in the C++ code of LibreOffice: http://cgit.freedesktop.org/libreoffice/core/log/?qt=grep&q=coverity Cases like th

Re: toString refactor in druntime

2014-11-08 Thread John Colvin via Digitalmars-d
On Monday, 3 November 2014 at 16:02:23 UTC, Steven Schveighoffer wrote: On 10/31/14 3:07 PM, H. S. Teoh via Digitalmars-d wrote: On Fri, Oct 31, 2014 at 12:04:24PM -0700, Walter Bright via Digitalmars-d wrote: On 10/27/2014 12:42 AM, Benjamin Thaut wrote: I'm planning on doing a pull request fo

Re: Interfacing with C in 2.066.1

2014-11-08 Thread John Colvin via Digitalmars-d
On Saturday, 8 November 2014 at 10:03:51 UTC, Jason den Dulk wrote: When upgrading my compiler from 2.065 to 2.066.1 I have encountered problems with some of my extern(C) code. My declarations (in a .di file) are wrapped in an extern(C) declaration. The code compiled fine in 2.065. In 2.066.1

Re: Is this a bug? `static if` fails silently.

2014-11-04 Thread John Colvin via Digitalmars-d
On Tuesday, 4 November 2014 at 09:54:44 UTC, John Colvin wrote: On Tuesday, 4 November 2014 at 09:07:10 UTC, deadalnix wrote: On Tuesday, 4 November 2014 at 09:00:12 UTC, Meta wrote: struct Test(T) { static if (is(typeof(T) == int)) { pragma(msg, "test");

Re: Is this a bug? `static if` fails silently.

2014-11-04 Thread John Colvin via Digitalmars-d
On Tuesday, 4 November 2014 at 09:07:10 UTC, deadalnix wrote: On Tuesday, 4 November 2014 at 09:00:12 UTC, Meta wrote: struct Test(T) { static if (is(typeof(T) == int)) { pragma(msg, "test"); this(T t) {

Re: toString refactor in druntime

2014-11-03 Thread John Colvin via Digitalmars-d
On Tuesday, 4 November 2014 at 04:34:09 UTC, Jonathan Marler wrote: On Tuesday, 4 November 2014 at 02:49:55 UTC, Steven Schveighoffer wrote: On 11/3/14 6:05 PM, Jonathan Marler wrote: In many cases templates are good because they provide the a way for the programmer to use a library optimized f

Re: What IDE/EDITOR do you use for D?

2014-10-30 Thread John Colvin via Digitalmars-d
On Wednesday, 29 October 2014 at 19:38:16 UTC, dan wrote: What IDE/EDITOR do you use for D? What plugins if you use Vim? Vim with dutyl and a few other odds and ends. I'm not really a fan of IDEs, I like syntax highlighting, auto-completion and go-to-definition etc. but I don't see why I sho

Re: DIP67: Associative Ranges

2014-10-29 Thread John Colvin via Digitalmars-d
On Wednesday, 29 October 2014 at 17:36:41 UTC, H. S. Teoh via Digitalmars-d wrote: On Wed, Oct 29, 2014 at 05:23:07PM +, Brad Anderson via Digitalmars-d wrote: On Wednesday, 29 October 2014 at 06:59:09 UTC, bearophile wrote: >This is very false. I have tons of cases where you only >iterate

Re: Deimos library interfaces needed for these

2014-10-28 Thread John Colvin via Digitalmars-d
On Monday, 27 October 2014 at 17:18:06 UTC, Dicebot wrote: On Monday, 27 October 2014 at 07:48:16 UTC, Vladimir Panteleev wrote: On Saturday, 25 October 2014 at 20:49:26 UTC, Walter Bright wrote: https://github.com/D-Programming-Deimos http://en.docsity.com/news/programming-2/free-libraries-fo

Re: Algorithms to solve programming contest problems

2014-10-27 Thread John Colvin via Digitalmars-d
On Monday, 27 October 2014 at 13:24:26 UTC, Marc Schütz wrote: On Monday, 27 October 2014 at 09:19:26 UTC, John Colvin wrote: On Monday, 27 October 2014 at 09:10:41 UTC, Russel Winder via Digitalmars-d wrote: On Sun, 2014-10-26 at 23:42 +0100, Martin Nowak via Digitalmars-d wrote: […] Seriousl

Re: Algorithms to solve programming contest problems

2014-10-27 Thread John Colvin via Digitalmars-d
On Monday, 27 October 2014 at 09:10:41 UTC, Russel Winder via Digitalmars-d wrote: On Sun, 2014-10-26 at 23:42 +0100, Martin Nowak via Digitalmars-d wrote: […] Seriously, internet connection, well you can fetch packages and use them locally. […] Yes seriously, having to have an Internet conne

Re: DIP66 - Multiple alias this

2014-10-24 Thread John Colvin via Digitalmars-d
On Friday, 24 October 2014 at 13:17:28 UTC, Meta wrote: On Friday, 24 October 2014 at 13:05:54 UTC, IgorStepanov wrote: On Friday, 24 October 2014 at 06:04:24 UTC, Andrei Alexandrescu wrote: On 10/19/14 2:00 PM, IgorStepanov wrote: Bump. I've made a few grammar and fluency edits to the DIP,

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread John Colvin via Digitalmars-d
On Friday, 24 October 2014 at 07:29:24 UTC, tcak wrote: Most of us print out codes in posts, especially D codes. I use tabs instead of spaces in my code editor, and I directly copy codes from there into a post. Problem is that when a line is too long, it becomes multiline mostly due to the very

Re: Value Range Propigation Spec

2014-10-23 Thread John Colvin via Digitalmars-d
On Wednesday, 22 October 2014 at 20:32:39 UTC, Walter Bright wrote: On 10/22/2014 2:31 AM, Shammah Chancellor wrote: A couple of us working on SDC are trying to get ValueRange propigation implemented. I was wonder if someone could offer some insight as to how VRP works in DMD. If for exampl

Re: C++ Ranges proposal for the Standard Library

2014-10-18 Thread John Colvin via Digitalmars-d
On Saturday, 18 October 2014 at 11:56:15 UTC, Ola Fosheim Grøstad wrote: On Saturday, 18 October 2014 at 11:43:32 UTC, John Colvin wrote: iota(101L).map!((x) => pi * x^^9), iota(101L).map!((x) => -pi * x^^9) Shouldn't the last expression be "-pi * (100-x)^^9" ? Yeah, my

Re: C++ Ranges proposal for the Standard Library

2014-10-18 Thread John Colvin via Digitalmars-d
On Saturday, 18 October 2014 at 10:44:59 UTC, Ola Fosheim Grøstad wrote: On Saturday, 18 October 2014 at 08:21:47 UTC, eles wrote: On Saturday, 18 October 2014 at 05:54:01 UTC, Ola Fosheim Grøstad wrote: On Saturday, 18 October 2014 at 04:35:07 UTC, Walter Bright wrote: Larger mantissa can h

Re: C++ Ranges proposal for the Standard Library

2014-10-18 Thread John Colvin via Digitalmars-d
On Saturday, 18 October 2014 at 08:21:47 UTC, eles wrote: On Saturday, 18 October 2014 at 05:54:01 UTC, Ola Fosheim Grøstad wrote: On Saturday, 18 October 2014 at 04:35:07 UTC, Walter Bright wrote: Larger mantissa can help a little bit, but only a little bit. https://en.wikipedia.org/wiki/K

code.dlang.org down

2014-10-17 Thread John Colvin via Digitalmars-d
and vibed.org and forum.rejectedsoftware.com what up with your servers Sönke?

Re: code.dlang.org down

2014-10-17 Thread John Colvin via Digitalmars-d
On Friday, 17 October 2014 at 21:15:47 UTC, John Colvin wrote: and vibed.org and forum.rejectedsoftware.com what up with your servers Sönke? and the dub repository itself...

Re: Wouldn't it be nice (case range statements)

2014-10-15 Thread John Colvin via Digitalmars-d
On Tuesday, 14 October 2014 at 21:33:36 UTC, Adam D. Ruppe wrote: On Tuesday, 14 October 2014 at 21:29:59 UTC, John Colvin wrote: You have to duplicate the case keyword when declaring case ranges. Why? Case ranges are inclusive at both ends of the range, unlike in foreach. Again, why? It co

Wouldn't it be nice (case range statements)

2014-10-14 Thread John Colvin via Digitalmars-d
if code like this worked: http://dpaste.dzfl.pl/7ea4eb03f02e A few reasons why it doesn't: You have to duplicate the case keyword when declaring case ranges. Why? Case ranges are inclusive at both ends of the range, unlike in foreach. Again, why? exponential notation (e.g. `2e9`) returns a

Re: Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

2014-10-14 Thread John Colvin via Digitalmars-d
On Tuesday, 14 October 2014 at 16:11:34 UTC, Daniel Murphy wrote: "John Colvin" wrote in message news:ljjtmnnckwzenvhaw...@forum.dlang.org... [2] By easily managed I don't mean sed-able, or even tooling-fixable. For me it pivots on being able to maintain one code-base that will compile with

Re: Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

2014-10-13 Thread John Colvin via Digitalmars-d
On Sunday, 12 October 2014 at 11:24:17 UTC, Joseph Rushton Wakeling via Digitalmars-d wrote: On 12/10/14 12:53, Joseph Rushton Wakeling via Digitalmars-d wrote: D2 is, for the most part, excellent in this respect, but it could and should be even better. Well-managed, well-documented and well-p

Re: Will D ever get optional named parameters?

2014-10-13 Thread John Colvin via Digitalmars-d
On Monday, 13 October 2014 at 08:48:11 UTC, Walter Bright wrote: On 10/13/2014 1:29 AM, "岩倉 澪" wrote: Are there good reasons not to add something like this to the language, or is it simply a matter of doing the work? Has it been discussed much? Named parameters interact badly with overloading

PSA for D project maintainers

2014-10-09 Thread John Colvin via Digitalmars-d
Please test your work with (at least) a few different D compiler versions. There have been some recent changes that cause somewhat trivial incompatibilities between compiler versions, which can be almost entirely avoided with some care. A few simple simple considerations to help your code b

Re: RFC: moving forward with @nogc Phobos

2014-09-30 Thread John Colvin via Digitalmars-d
On Monday, 29 September 2014 at 10:49:53 UTC, Andrei Alexandrescu wrote: Back when I've first introduced RCString I hinted that we have a larger strategy in mind. Here it is. The basic tenet of the approach is to reckon and act on the fact that memory allocation (the subject of allocators) is

Re: Local functions infer attributes?

2014-09-30 Thread John Colvin via Digitalmars-d
On Tuesday, 30 September 2014 at 07:10:08 UTC, Manu via Digitalmars-d wrote: On 30 September 2014 16:06, Daniel N via Digitalmars-d wrote: On Monday, 29 September 2014 at 04:23:08 UTC, Timon Gehr wrote: On 09/29/2014 04:43 AM, Walter Bright wrote: You're right that tuples in D cannot conta

Re: Local functions infer attributes?

2014-09-30 Thread John Colvin via Digitalmars-d
On Tuesday, 30 September 2014 at 13:47:22 UTC, John Colvin wrote: On Tuesday, 30 September 2014 at 07:10:08 UTC, Manu via Digitalmars-d wrote: On 30 September 2014 16:06, Daniel N via Digitalmars-d wrote: On Monday, 29 September 2014 at 04:23:08 UTC, Timon Gehr wrote: On 09/29/2014 04:43 AM,

Re: So what exactly is coming with extended C++ support?

2014-09-30 Thread John Colvin via Digitalmars-d
On Tuesday, 30 September 2014 at 10:06:47 UTC, Szymon Gatner wrote: On Tuesday, 30 September 2014 at 09:32:05 UTC, Chris wrote: It's good to hear that. Maybe you could write a short article about that once you've moved to D. "Porting games to D" or something like that. With D you can develop

Re: Creeping Bloat in Phobos

2014-09-28 Thread John Colvin via Digitalmars-d
On Sunday, 28 September 2014 at 14:38:57 UTC, H. S. Teoh via Digitalmars-d wrote: On Sun, Sep 28, 2014 at 12:06:16PM +, Uranuz via Digitalmars-d wrote: On Sunday, 28 September 2014 at 00:13:59 UTC, Andrei Alexandrescu wrote: >On 9/27/14, 3:40 PM, H. S. Teoh via Digitalmars-d wrote: >>If we

Re: [Semi OT] Language for Game Development talk

2014-09-28 Thread John Colvin via Digitalmars-d
On Saturday, 27 September 2014 at 22:06:00 UTC, H. S. Teoh via Digitalmars-d wrote: On Sat, Sep 27, 2014 at 02:51:14PM -0700, Walter Bright via Digitalmars-d wrote: [...] The only interesting thing is he describes a way that functions (and blocks) can specify what global data they access, and t

Re: Read-only property without @property

2014-09-26 Thread John Colvin via Digitalmars-d
On Friday, 26 September 2014 at 19:47:15 UTC, Steven Schveighoffer wrote: I wanted to bring this over from D.learn, because I've never seen this before, and it's an interesting solution to creating a property without much boilerplate. So here it is: class Foo { union { private int

Re: What are the worst parts of D?

2014-09-24 Thread John Colvin via Digitalmars-d
On Wednesday, 24 September 2014 at 11:20:24 UTC, Kagamin wrote: On Wednesday, 24 September 2014 at 06:29:20 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/4021 That can be a good case to start with dfix. Its first task can be rewrite of C-style declarations to D-

Re: Integral literals with Exp?

2014-09-15 Thread John Colvin via Digitalmars-d
On Monday, 15 September 2014 at 00:54:40 UTC, Walter Bright wrote: On 9/13/2014 12:23 AM, bearophile wrote: Is it a good idea to accept code like this, to shorten some constants? void main() { int x = 1e6; } 1_000_000 solves that problem. How does adding extra _s help with shortening

Re: Escaping the Tyranny of the GC: std.rcstring, first blood

2014-09-15 Thread John Colvin via Digitalmars-d
On Monday, 15 September 2014 at 02:26:19 UTC, Andrei Alexandrescu wrote: Walter, Brad, myself, and a couple of others have had a couple of quite exciting ideas regarding code that is configurable to use the GC or alternate resource management strategies. One thing that became obvious to us is w

Re: Can I pass a function by parameter?

2014-09-07 Thread John Colvin via Digitalmars-d
On Sunday, 7 September 2014 at 20:47:47 UTC, AsmMan wrote: I'm trying to use a bit of function programming. In a function like this: int f(in int[] arr, bool delegate(int) func); call using: bool g(int n) { ... } f(arr, g); instead of: f(arr, x => x == 0); it is possible? bool g(int n) {

Re: zero-ing is not enough

2014-09-07 Thread John Colvin via Digitalmars-d
On Sunday, 7 September 2014 at 17:24:46 UTC, Paulo Pinto wrote: Am 07.09.2014 19:00, schrieb John Colvin: http://www.daemonology.net/blog/2014-09-06-zeroing-buffers-is-insufficient.html D could incorporate something like this, no? There are some posts on the HN discussion, stating that the

zero-ing is not enough

2014-09-07 Thread John Colvin via Digitalmars-d
http://www.daemonology.net/blog/2014-09-06-zeroing-buffers-is-insufficient.html D could incorporate something like this, no?

Re: Destroying structs (literally)

2014-08-29 Thread John Colvin via Digitalmars-d
On Friday, 29 August 2014 at 14:24:34 UTC, Peter Alexander wrote: On Friday, 29 August 2014 at 02:21:07 UTC, Andrei Alexandrescu wrote: Dear community, are you ready for this? Yes. This is a significant change of behavior. Should we provide a temporary flag or attribute to disable it? I do

Re: RFC: std.json sucessor

2014-08-22 Thread John Colvin via Digitalmars-d
On Friday, 22 August 2014 at 20:02:41 UTC, Sönke Ludwig wrote: Am 22.08.2014 21:48, schrieb Christian Manning: On Friday, 22 August 2014 at 17:45:03 UTC, Sönke Ludwig wrote: Am 22.08.2014 19:27, schrieb "Marc Schütz" ": On Friday, 22 August 2014 at 16:56:26 UTC, Sönke Ludwig wrote: Am 22.08.2

Re: Fun with range deprecations

2014-08-13 Thread John Colvin via Digitalmars-d
On Tuesday, 12 August 2014 at 19:15:48 UTC, H. S. Teoh via Digitalmars-d wrote: On the positive side, if these "optional" range methods are templatized, they will reduce template bloat in code that doesn't need to use them. AFAIK, if you have a template struct with 10 methods, all 10 will get i

Re: Compare TypeTuple element with another type

2014-08-01 Thread John Colvin via Digitalmars-d
On Friday, 1 August 2014 at 12:08:23 UTC, John Colvin wrote: On Friday, 1 August 2014 at 11:55:02 UTC, Tudor Berariu wrote: On Friday, 1 August 2014 at 10:34:02 UTC, Rene Zwanenburg wrote: On Friday, 1 August 2014 at 10:25:39 UTC, Tudor Berariu wrote: Is it possible to compare at compile time a

Re: Compare TypeTuple element with another type

2014-08-01 Thread John Colvin via Digitalmars-d
On Friday, 1 August 2014 at 11:55:02 UTC, Tudor Berariu wrote: On Friday, 1 August 2014 at 10:34:02 UTC, Rene Zwanenburg wrote: On Friday, 1 August 2014 at 10:25:39 UTC, Tudor Berariu wrote: Is it possible to compare at compile time an element from a TypeTuple with another type? This code fai

Re: Compare TypeTuple element with another type

2014-08-01 Thread John Colvin via Digitalmars-d
On Friday, 1 August 2014 at 10:25:39 UTC, Tudor Berariu wrote: Is it possible to compare at compile time an element from a TypeTuple with another type? This code fails: alias T = Tuple!(int, bool); static assert(is(T[0] == int)); Error: static assert (is(Tuple!(int, bool)[0] ==

Re: checkedint call removal

2014-08-01 Thread John Colvin via Digitalmars-d
On Friday, 1 August 2014 at 03:17:06 UTC, Walter Bright wrote: In fact, the whole reason assert is a core language feature rather than a library notion is I was anticipating making use of assert for optimization hints. So why is this not documented? Frankly, it never occurred to me that it

Re: assume, assert, enforce, @safe

2014-07-31 Thread John Colvin via Digitalmars-d
On Thursday, 31 July 2014 at 17:40:45 UTC, Daniel Gibson wrote: Am 31.07.2014 18:29, schrieb Andrei Alexandrescu: On 7/31/14, 8:37 AM, Daniel Gibson wrote: When I tell it to write something, I want it to do that, even if it might look like nonsense (if anything, it could create a warning). I

Re: assume, assert, enforce, @safe

2014-07-31 Thread John Colvin via Digitalmars-d
On Thursday, 31 July 2014 at 15:26:27 UTC, Artur Skawina via Digitalmars-d wrote: On 07/31/14 15:44, Daniel Gibson via Digitalmars-d wrote: And don't forget this (rather old) case: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537 (I really don't get why anyone would want such an optimization:

Re: assume, assert, enforce, @safe

2014-07-31 Thread John Colvin via Digitalmars-d
On Thursday, 31 July 2014 at 15:37:23 UTC, Daniel Gibson wrote: Am 31.07.2014 17:26, schrieb Artur Skawina via Digitalmars-d: On 07/31/14 15:44, Daniel Gibson via Digitalmars-d wrote: And don't forget this (rather old) case: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537 (I really don't get

<    2   3   4   5   6   7   8   9   >