Re: DIP60: @nogc attribute

2014-04-15 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 15, 2014 at 07:57:58PM +, monarch_dodra via Digitalmars-d wrote: [...] I have an issue related to adding an extra attribute: Attributes of non-template functions. Currently, you have to mark most functions as already pure, nothrow and @safe. If we are adding another attribute.

Re: DIP60: @nogc attribute

2014-04-15 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 15, 2014 at 01:40:07PM -0700, Walter Bright via Digitalmars-d wrote: On 4/15/2014 1:37 PM, Walter Bright wrote: On 4/15/2014 1:19 PM, monarch_dodra wrote: On Tuesday, 15 April 2014 at 20:13:19 UTC, Walter Bright wrote: On 4/15/2014 1:10 PM, H. S. Teoh via Digitalmars-d wrote

Re:

2014-04-16 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 16, 2014 at 01:58:32AM -0700, Jonathan M Davis via Digitalmars-d wrote: On Monday, April 14, 2014 20:47:06 Brad Roberts via Digitalmars-d wrote: Another flurry of bounces floated through today (which I handled by removing the suspensions, again). The only practical choice is a

Re: Finally full multidimensional arrays support in D

2014-04-17 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 17, 2014 at 03:16:20PM +, CJS via Digitalmars-d wrote: On Monday, 17 March 2014 at 21:25:34 UTC, bearophile wrote: Jared Miller: And yes, I think that a matrix / linear algebra library, as well as NumPy-style ND-Arrays are great candidates for future Phobos modules. I

Re: DIP60: @nogc attribute

2014-04-17 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 17, 2014 at 03:52:10PM -0700, Walter Bright via Digitalmars-d wrote: On 4/17/2014 3:18 PM, Steven Schveighoffer wrote: During the entire processing, you never increment/decrement a reference count, because the caller will have passed data to you with an incremented count. Just

Re: DIP60: @nogc attribute

2014-04-17 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 17, 2014 at 05:34:34PM -0700, Walter Bright via Digitalmars-d wrote: On 4/17/2014 5:09 PM, H. S. Teoh via Digitalmars-d wrote: I thought that whole point of *A*RC is for the compiler to know when ref count updates can be skipped? Or are you saying this is algorithmically

Re: SCons and D

2014-04-19 Thread H. S. Teoh via Digitalmars-d
On Sat, Apr 19, 2014 at 06:21:10PM +0100, Russel Winder via Digitalmars-d wrote: My changes to SCons to support gdc and ldc2 as well as dmd, and to integrate D as a peer to C++ appear to have been merged into SCons mainline/default. Yay! This means it is time to retire the SCons_D_Tooling

assumeSafeAppend on slice of static array?

2014-04-22 Thread H. S. Teoh via Digitalmars-d
I'm going through some code and thinking of ways to reduce GC pressure, and came across a bit that needed to append some items to an array: T[] args; lex.expect((); args ~= parseSingleItem(lex); while (!lex.empty) { lex.expect(,);

Re: Compile-time memory footprint of std.algorithm

2014-04-22 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 22, 2014 at 06:09:11PM +, Iain Buclaw via Digitalmars-d wrote: Testing a 2.065 pre-release snapshot against GDC. I see that std.algorithm now surpasses 2.1GBs of memory consumption when compiling unittests. This is bringing my laptop down to its knees for a painful 2/3

Re: assumeSafeAppend on slice of static array?

2014-04-22 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 22, 2014 at 02:24:41PM -0400, Steven Schveighoffer via Digitalmars-d wrote: On Tue, 22 Apr 2014 14:10:30 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: I'm going through some code and thinking of ways to reduce GC pressure, and came across a bit

Re: assumeSafeAppend on slice of static array?

2014-04-22 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 22, 2014 at 06:59:05PM +, monarch_dodra via Digitalmars-d wrote: On Tuesday, 22 April 2014 at 18:47:16 UTC, Dmitry Olshansky wrote: 22-Apr-2014 22:10, H. S. Teoh via Digitalmars-d пишет: [...] The question is, is there a way to take a slice of the static array, set the length

Re: Redesign of dlang.org

2014-04-23 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 23, 2014 at 04:28:30PM +, Dicebot via Digitalmars-d wrote: [...] Gosh now I finally know what researches to blame for my eyes bleeding upon most web site restylings (Facebook *caugh-caugh*). If anything it just shows that overall reading skills are decreasing and no one care

Re: Redesign of dlang.org

2014-04-23 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 23, 2014 at 05:32:00PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/23/2014 2:12 PM, Walter Bright wrote: On 4/23/2014 10:02 AM, H. S. Teoh via Digitalmars-d wrote: On the contrary, I find almost all websites have broken layouts because I enforce a minimal font size

Re: Redesign of dlang.org

2014-04-23 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 23, 2014 at 06:08:52PM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] But I have noticed a lot of the sites that use anchor links to switch to completely different pages are basically broken. Since the very *beginning* of HTML, links have always been downright trivial to

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 04:58:06AM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/23/2014 6:19 PM, H. S. Teoh via Digitalmars-d wrote: [...] Usually when I run into a site with (1) microscopic fonts, (2) giant (often multicolored) fonts, (3) no whitespace, or (4) has more ads/filler

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 03:59:17PM +, via Digitalmars-d wrote: On Thursday, 24 April 2014 at 15:55:36 UTC, Sönke Ludwig wrote: Am 24.04.2014 17:34, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: According to the CCS 2.1 standard 1 px == 0.75pt.

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 08:21:04PM +0100, Alix Pexton via Digitalmars-d wrote: On 24/04/2014 9:44 AM, Dicebot wrote: Considering the very same size 9 fonts are used as default everywhere else in my desktop system and it feels just fine.. yeah, you must be right. It must be small font and not

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Fri, Apr 25, 2014 at 01:54:29AM +, bearophile via Digitalmars-d wrote: Walter Bright: I've recently seen some academic research PDF's where the font is so small that even if I go full screen on them they are very hard to read. Some combinations of PDF readers and PDF files support

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 11:46:16PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/24/2014 9:54 PM, bearophile wrote: Walter Bright: I don't get the reason for doing this. Are they trying to save paper or something? They are often trying to save paper. Some conferences (and sometimes

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Fri, Apr 25, 2014 at 12:24:47AM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/25/2014 12:00 AM, H. S. Teoh via Digitalmars-d wrote: OTOH, I believe journals nowadays actually give you a LaTeX template that you're supposed to follow, and they greatly frown upon submissions

Re: DIP61: Add namespaces to D

2014-04-26 Thread H. S. Teoh via Digitalmars-d
On Sat, Apr 26, 2014 at 04:32:29PM -0700, Walter Bright via Digitalmars-d wrote: Since the namespace keyword doesn't seem to be gaining much traction, an alternative syntax would be: extern (C++, N.M) { void foo(); } which would be semantically equivalent to the previous: extern

Re: D For A Web Developer

2014-04-29 Thread H. S. Teoh via Digitalmars-d
On Tue, Apr 29, 2014 at 11:55:11AM -0400, Etienne via Digitalmars-d wrote: On 2014-04-29 11:27 AM, Adam D. Ruppe wrote: I recently started a Ruby on Rails job and using it makes me really, really miss the high productivity and ease of use D offers. (And, of course, a dynamic site in D runs

Re: D For A Web Developer

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 02:25:05PM +, Dicebot via Digitalmars-d wrote: On Wednesday, 30 April 2014 at 14:18:37 UTC, Ary Borenszweig wrote: When I have a bug in my code I usually add a test for it so it never happens again. Because it's a bug, I might need to debug it. So I add a couple

Re: Parallel execution of unittests

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 08:43:31AM -0700, Andrei Alexandrescu via Digitalmars-d wrote: [...] Last but not least, virtually nobody I know runs unittests and then main. This is quickly becoming an idiom: version(unittest) void main() {} else void main() { ... } I think it's time to

Re: static unittest

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 04:57:12PM +, Meta via Digitalmars-d wrote: On Wednesday, 30 April 2014 at 16:55:06 UTC, Andrei Alexandrescu wrote: Walter and I also discussed static unittest a while ago - yes, another use of static :o). Yeah I think 'static' is getting a little too overloaded in

Re: More radical ideas about gc and reference counting

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 02:13:32PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 4/30/14, 2:09 PM, Timon Gehr wrote: On 04/30/2014 10:58 PM, Andrei Alexandrescu wrote: On 4/30/14, 1:56 PM, Timon Gehr wrote: struct S{ ~this(){ /* ... */ } /* ... */ } class C{ S

Re: Parallel execution of unittests

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 02:48:38PM -0700, Jonathan M Davis via Digitalmars-d wrote: On Wed, 30 Apr 2014 21:09:14 +0100 Russel Winder via Digitalmars-d digitalmars-d@puremagic.com wrote: [...] In which case D is wrong to allow them in the unittest blocks and should introduce a new way of

Re: Parallel execution of unittests

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 02:25:22PM -0700, Jonathan M Davis via Digitalmars-d wrote: [...] Sure, that helps, but it's trivial to write a unittest block which depends on a previous unittest block, and as soon as a unittest block uses an external resource such as a socket or file, then even if a

Re: More radical ideas about gc and reference counting

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 02:30:05PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 4/30/14, 2:15 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, Apr 30, 2014 at 02:13:32PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 4/30/14, 2:09 PM, Timon Gehr wrote: On 04/30/2014 10:58

Re: More radical ideas about gc and reference counting

2014-04-30 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 03:55:38PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 4/30/14, 3:47 PM, H. S. Teoh via Digitalmars-d wrote: [...] I don't like the sound of that. I haven't found myself in a place where I needed to do something like this, but if I had to, I'd be very

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 06:30:16PM -0700, Walter Bright via Digitalmars-d wrote: On 4/30/2014 4:17 PM, H. S. Teoh via Digitalmars-d wrote: If we're going to have dtors at all, let's do it *right*. Guarantee they always work, and reject all usages that break this guarantee (like putting

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Thu, May 01, 2014 at 10:06:17AM +, monarch_dodra via Digitalmars-d wrote: On Wednesday, 30 April 2014 at 23:19:18 UTC, H. S. Teoh via Digitalmars-d wrote: On Wed, Apr 30, 2014 at 03:55:38PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 4/30/14, 3:47 PM, H. S. Teoh via

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 30, 2014 at 04:33:23PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 4/30/14, 4:17 PM, H. S. Teoh via Digitalmars-d wrote: [...] and they stop working as one might expect. Wasn't this whole fiasco the whole reason std.stdio.ByLine was recently rewritten to use ref

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Thu, May 01, 2014 at 01:37:28AM -0700, Jonathan M Davis via Digitalmars-d wrote: On Wed, 30 Apr 2014 13:21:33 -0700 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: [...] First off, we're considering eliminating destructor calls from within the GC entirely. It

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Thu, May 01, 2014 at 01:03:06PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 5/1/14, 12:52 PM, Nordlöw wrote: into a class. I'm inclined to say that we should outright prohibit that, That can't happen. Why is that? (1) Too much breakage, (2) would disallow a ton of correct

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Thu, May 01, 2014 at 02:19:17PM -0700, Walter Bright via Digitalmars-d wrote: On 5/1/2014 7:01 AM, H. S. Teoh via Digitalmars-d wrote: The proposal was to get rid of class dtors, in which case this code will no longer work. Is that really the direction we want to move in? My point

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Thu, May 01, 2014 at 02:29:22PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 5/1/14, 1:19 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, May 01, 2014 at 01:03:06PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 5/1/14, 12:52 PM, Nordlöw wrote: into a class. I'm

Re: More radical ideas about gc and reference counting

2014-05-01 Thread H. S. Teoh via Digitalmars-d
On Thu, May 01, 2014 at 03:10:04PM -0700, Walter Bright via Digitalmars-d wrote: On 5/1/2014 3:02 PM, H. S. Teoh via Digitalmars-d wrote: I'm confused. Andrei's original proposal was to deprecate class dtors, with the view to eventually getting rid of them altogether. If indeed that's going

D equivalent of the X macro?

2014-05-01 Thread H. S. Teoh via Digitalmars-d
I was reading this article of Walter's: http://www.drdobbs.com/cpp/the-x-macro/228700289 Which is a neat trick that I wish I'd known back when I was writing C/C++. But the thought crossed my mind: what's the D equivalent of the X macro, since D doesn't have macros? Any ideas? T --

Re: More radical ideas about gc and reference counting

2014-05-02 Thread H. S. Teoh via Digitalmars-d
On Fri, May 02, 2014 at 09:03:15PM +, monarch_dodra via Digitalmars-d wrote: On Friday, 2 May 2014 at 15:06:59 UTC, Andrei Alexandrescu wrote: So now it looks like dynamic arrays also can't contain structs with destructors :o). -- Andrei Well, that's always been the case, and even worst,

Re: More radical ideas about gc and reference counting

2014-05-02 Thread H. S. Teoh via Digitalmars-d
On Fri, May 02, 2014 at 11:44:47PM +0200, Jonathan M Davis via Digitalmars-d wrote: On Fri, 02 May 2014 21:03:15 + monarch_dodra via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 2 May 2014 at 15:06:59 UTC, Andrei Alexandrescu wrote: So now it looks like dynamic arrays

Re: More radical ideas about gc and reference counting

2014-05-03 Thread H. S. Teoh via Digitalmars-d
On Sat, May 03, 2014 at 11:12:36AM -0700, Andrei Alexandrescu via Digitalmars-d wrote: [...] Anyhow, just to clarify, it seems like eliminating destructor calls during GC is not a viable option. I'll define std.allocator to allow users to define such a GC if they so want, without prescribing

Re: More radical ideas about gc and reference counting

2014-05-04 Thread H. S. Teoh via Digitalmars-d
On Sat, May 03, 2014 at 10:48:47PM -0500, Caligo via Digitalmars-d wrote: [...] Last but not least, currently there are two main ways for new features to make it into D/Phobos: you either have to belong to the inner circle, or have to represent some corporation that's doing something with D.

Re: More radical ideas about gc and reference counting

2014-05-05 Thread H. S. Teoh via Digitalmars-d
On Mon, May 05, 2014 at 06:16:34AM +, Arlen via Digitalmars-d wrote: On Sunday, 4 May 2014 at 22:56:41 UTC, H. S. Teoh via Digitalmars-d wrote: On Sat, May 03, 2014 at 10:48:47PM -0500, Caligo via Digitalmars-d wrote: [...] Last but not least, currently there are two main ways for new

Re: More radical ideas about gc and reference counting

2014-05-05 Thread H. S. Teoh via Digitalmars-d
On Mon, May 05, 2014 at 03:55:12PM +, bearophile via Digitalmars-d wrote: Andrei Alexandrescu: I think the needs to support BigInt argument is not a blocker - we can release std.rational to only support built-in integers, and then adjust things later to expand support while keeping

Re: API

2014-05-05 Thread H. S. Teoh via Digitalmars-d
On Tue, May 06, 2014 at 12:28:19AM +, bearophile via Digitalmars-d wrote: Andrei Alexandrescu: So I'm looking at creation functions and in particular creation functions for arrays. 1. Follow the new int[n] convention: auto a = allok.make!(int[])(42); assert(a.length == 42);

Re: From fields missing names in mailing list

2014-05-07 Thread H. S. Teoh via Digitalmars-d
On Wed, May 07, 2014 at 07:19:06AM -0700, Jonathan M Davis via Digitalmars-d wrote: Ever since the mailing list software was changed to say sender via Digitalmars-d, a number of the messages have been from via Digitalmars-d - they're missing the actual sender. And for many of them, the person

Re: Parallel execution of unittests

2014-05-07 Thread H. S. Teoh via Digitalmars-d
On Wed, May 07, 2014 at 04:55:25PM +0200, Jacob Carlborg via Digitalmars-d wrote: On 07/05/14 16:05, Dicebot wrote: Have never liked that fancy description syntax of smart testing frameworks. I hate plain unit test blocks with just a bunch of asserts. It's impossible to know that's being

Re: A Briefer Syntax for Using Concepts

2014-05-07 Thread H. S. Teoh via Digitalmars-d
On Wed, May 07, 2014 at 08:09:34PM +, w0rp via Digitalmars-d wrote: On Wednesday, 7 May 2014 at 14:49:17 UTC, Orvid King via Digitalmars-d wrote: On 5/7/14, w0rp via Digitalmars-d digitalmars-d@puremagic.com wrote: void foo(InputRange range); How to make it accept multiple types?

Re: From slices to perfect imitators: opByValue

2014-05-08 Thread H. S. Teoh via Digitalmars-d
On Thu, May 08, 2014 at 11:05:19AM +, monarch_dodra via Digitalmars-d wrote: On Thursday, 8 May 2014 at 07:09:24 UTC, Sönke Ludwig wrote: Just a general note: This is not only interesting for range/slice types, but for any user defined reference type (e.g. RefCounted!T or Isolated!T).

Re: Ranges of char and wchar

2014-05-08 Thread H. S. Teoh via Digitalmars-d
On Thu, May 08, 2014 at 10:46:12AM -0700, Andrei Alexandrescu via Digitalmars-d wrote: A discussion is building around https://github.com/D-Programming-Language/phobos/pull/2149, which is a nice initiative by Walter to allow Phobos users to avoid or control memory allocation. First

Re: Ranges of char and wchar

2014-05-08 Thread H. S. Teoh via Digitalmars-d
On Thu, May 08, 2014 at 11:27:54AM -0700, Walter Bright via Digitalmars-d wrote: On 5/8/2014 10:46 AM, Andrei Alexandrescu wrote: A discussion is building around https://github.com/D-Programming-Language/phobos/pull/2149, which is a nice initiative by Walter to allow Phobos users to avoid or

Re: Ranges of char and wchar

2014-05-08 Thread H. S. Teoh via Digitalmars-d
On Thu, May 08, 2014 at 02:38:18PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 5/8/14, 1:41 PM, Luís Marques l...@luismarques.eu wrote: On Thursday, 8 May 2014 at 18:21:32 UTC, H. S. Teoh via Digitalmars-d wrote: I've thought about input ranges vs. output ranges for a bit. I

Re: Ranges of char and wchar

2014-05-08 Thread H. S. Teoh via Digitalmars-d
On Thu, May 08, 2014 at 02:54:32PM -0700, H. S. Teoh via Digitalmars-d wrote: On Thu, May 08, 2014 at 02:38:18PM -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 5/8/14, 1:41 PM, Luís Marques l...@luismarques.eu wrote: [...] I agree with H. S. Teoh. Indeed, I was thinking of trying

Re: radical ideas about GC and ARC : need to be time driven?

2014-05-10 Thread H. S. Teoh via Digitalmars-d
On Sat, May 10, 2014 at 09:16:54PM +0200, Xavier Bigand via Digitalmars-d wrote: [...] My concerns as Dlang user are : - Even if GC is the solution, how long I need suffer with destructor's issues (calls order)? Dtor calling order and GC are fundamentally incompatible. I don't think this

Druntime regression

2014-05-12 Thread H. S. Teoh via Digitalmars-d
The latest git HEAD druntime has broken existing code: https://issues.dlang.org/show_bug.cgi?id=12738 :-( I'm no longer so sure it's a *regression*, strictly speaking, but it is definitely a breakage that's going to cause users pain. I.e., it better be in large bold print in the

Re: range behaviour

2014-05-13 Thread H. S. Teoh via Digitalmars-d
On Tue, May 13, 2014 at 09:58:09AM -0700, Jonathan M Davis via Digitalmars-d wrote: On Tue, 13 May 2014 18:38:44 +0200 Benjamin Thaut via Digitalmars-d digitalmars-d@puremagic.com wrote: I know that there was a recent discussion about how the methods of ranges should behave. E.g.

Re: range behaviour

2014-05-13 Thread H. S. Teoh via Digitalmars-d
On Tue, May 13, 2014 at 01:29:32PM -0400, Steven Schveighoffer via Digitalmars-d wrote: [...] I don't agree there was a consensus. I think empty should not have to be called if it's already logically known that the range is not empty. I only partially agree with this, up to the point where

Re: Bug in Phobos' process.d: Executable file not found is supposed to show executabloe name but fails

2014-05-14 Thread H. S. Teoh via Digitalmars-d
On Wed, May 14, 2014 at 01:02:26PM +, Van de Bugger via Digitalmars-d wrote: I found a bug in Phobos library, but failed to find a way to report it. I do not see Issues tab on page https://github.com/D-Programming-Language/phobos, so I'll report the bug here. Please report bugs to:

Re: Memory allocation purity

2014-05-15 Thread H. S. Teoh via Digitalmars-d
On Thu, May 15, 2014 at 03:22:25PM -0700, Walter Bright via Digitalmars-d wrote: On 5/15/2014 2:41 PM, Timon Gehr wrote: On 05/15/2014 11:33 PM, Walter Bright wrote: On 5/15/2014 9:07 AM, Timon Gehr wrote: Why? A memoizable function is still memoizable if it is changed internally to memoize

Re: D to ASM.js vs D to Dart (VM)

2014-05-16 Thread H. S. Teoh via Digitalmars-d
On Fri, May 16, 2014 at 03:20:33PM +, Chris via Digitalmars-d wrote: [...] Yep. Look at the open source communities, all the forks and fights. There used to be Tango vs Phobos. On the other hand, it's good that people can just do their own thing, if they're not happy with an existing

Re: New opportunities for D = ASM.js

2014-05-16 Thread H. S. Teoh via Digitalmars-d
On Fri, May 16, 2014 at 02:52:43PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 5/16/2014 2:21 AM, Paulo Pinto wrote: The ideas behind the browser are great, when looked from the Xerox PARC hypermedia research, the implementation however leaves a lot to be desired. The problem is

Re: borrowed pointers vs ref

2014-05-16 Thread H. S. Teoh via Digitalmars-d
On Fri, May 16, 2014 at 11:57:36AM -0700, Walter Bright via Digitalmars-d wrote: On 5/16/2014 10:33 AM, Dicebot wrote: On Friday, 16 May 2014 at 17:22:21 UTC, Walter Bright wrote: On 5/16/2014 9:43 AM, Dicebot wrote: Transitive borrowing solves certain class of issues that currently rely on

Re: New opportunities for D = ASM.js

2014-05-16 Thread H. S. Teoh via Digitalmars-d
On Fri, May 16, 2014 at 12:15:40PM -0700, David Gileadi via Digitalmars-d wrote: On 5/16/14, 11:52 AM, Nick Sabalausky wrote: But then using it as a GUI engine and software platform is like abusing Latex or PDF to make software run inside Acrobat Viewer. All the effort, bloat and

Re: Memory allocation purity

2014-05-18 Thread H. S. Teoh via Digitalmars-d
On Sat, May 17, 2014 at 11:51:44AM -0700, Jonathan M Davis via Digitalmars-d wrote: On Thu, 15 May 2014 08:43:11 -0700 Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/15/14, 6:28 AM, Dicebot wrote: This is not true. Because of such code you can't ever

Re: Why is there still a web archive for the newsgroup?

2014-05-23 Thread H. S. Teoh via Digitalmars-d
On Fri, May 23, 2014 at 11:35:18AM +, w0rp via Digitalmars-d wrote: I wonder what effect this has on PageRank. I have been told that Google can identify a site as an originator of content some times, and could reduce the rank of another site based on that, something like that. Then again,

Re: Why is there still a web archive for the newsgroup?

2014-05-23 Thread H. S. Teoh via Digitalmars-d
On Fri, May 23, 2014 at 02:30:56PM +, Chris via Digitalmars-d wrote: On Friday, 23 May 2014 at 14:12:38 UTC, H. S. Teoh via Digitalmars-d wrote: [...] I've always been skeptical of SEO. Google is known to implement changes to their ranking algorithm specifically to counter artificially

Re: Associative Arrays max length? 32bit/64bit

2014-05-24 Thread H. S. Teoh via Digitalmars-d
On Sat, May 24, 2014 at 06:05:49PM -0700, Steven Schveighoffer via Digitalmars-d wrote: On Sat, 24 May 2014 02:54:01 -0700, FG h...@fgda.pl wrote: [...] Really? Then what does TypeInfo.compare(void*, void*) use? For example here: auto key_hash = keyti.getHash(pkey); Entry *e; /*

Re: Associative Arrays max length? 32bit/64bit

2014-05-26 Thread H. S. Teoh via Digitalmars-d
On Sat, May 24, 2014 at 11:54:47PM -0700, Steven Schveighoffer via Digitalmars-d wrote: On Sat, 24 May 2014 21:39:14 -0700, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sat, May 24, 2014 at 06:05:49PM -0700, Steven Schveighoffer via Digitalmars-d wrote: On Sat, 24 May

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread H. S. Teoh via Digitalmars-d
On Tue, May 27, 2014 at 08:17:26AM -1000, Andrei Alexandrescu via Digitalmars-d wrote: On 5/27/14, 7:51 AM, Meta wrote: On Tuesday, 27 May 2014 at 17:22:43 UTC, Andrei Alexandrescu wrote: I think there was either or both a discussion and a bug report on this, but can't find either. Basically

Re: D Language Version 3

2014-05-29 Thread H. S. Teoh via Digitalmars-d
On Thu, May 29, 2014 at 08:46:25AM -0400, Steven Schveighoffer via Digitalmars-d wrote: On Thu, 29 May 2014 02:30:05 -0400, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Wednesday, 28 May 2014 at 22:48:22 UTC, Jonathan M Davis via Digitalmars-d wrote: Please configure your

Re: std.experimental – DConf?

2014-05-29 Thread H. S. Teoh via Digitalmars-d
On Thu, May 29, 2014 at 10:47:26AM -0400, Steven Schveighoffer via Digitalmars-d wrote: [...] javax was the experimental branch for Java's experimental code. Now javax.xml is PERMANENT. I think experimental spells out This is subject to immediate and frequent change. IT MAY BREAK YOUR CODE

Re: Ref counting for CTFE?

2014-05-29 Thread H. S. Teoh via Digitalmars-d
On Thu, May 29, 2014 at 01:13:39PM -0300, Ary Borenszweig via Digitalmars-d wrote: On 5/29/14, 12:22 PM, Steven Schveighoffer wrote: One subject that frequented the talks at dconf was the poor performance of CTFE and mixins. The major issue as I understand it (maybe I'm wrong) is the vast

Re: std.experimental – DConf?

2014-05-29 Thread H. S. Teoh via Digitalmars-d
On Thu, May 29, 2014 at 12:03:43PM -0400, Steven Schveighoffer via Digitalmars-d wrote: On Thu, 29 May 2014 11:12:00 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thu, May 29, 2014 at 10:47:26AM -0400, Steven Schveighoffer via Digitalmars-d wrote: [...] I think

Re: D Users Survey: Primary OS?

2014-05-29 Thread H. S. Teoh via Digitalmars-d
On Thu, May 29, 2014 at 10:53:22AM -0500, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. [...] I also use Debian Linux

Re: D Users Survey: Primary OS?

2014-05-29 Thread H. S. Teoh via Digitalmars-d
On Thu, May 29, 2014 at 03:24:13PM -0500, Tom Browder via Digitalmars-d wrote: On Thu, May 29, 2014 at 10:53 AM, Tom Browder tom.brow...@gmail.com wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if

Re: D Users Survey: Primary OS?

2014-05-30 Thread H. S. Teoh via Digitalmars-d
On Fri, May 30, 2014 at 02:37:28PM +, Dicebot via Digitalmars-d wrote: On Friday, 30 May 2014 at 14:07:23 UTC, Chris wrote: Do you have a link to Walter's article? Thanks. I remember reading it on Dr. Dobbs but don't see it right now in Walters article list :( Is it this one?

Re: [OT] Extra time spent

2014-05-30 Thread H. S. Teoh via Digitalmars-d
On Fri, May 30, 2014 at 03:25:59PM +, Adam D. Ruppe via Digitalmars-d wrote: On Friday, 30 May 2014 at 15:09:00 UTC, Chris wrote: Plus, if there's a bug, you're stuck. I like to re-invent the wheel too, because existing wheels might not be fit for your purpose. That's why I swore off

Re: std.experimental – DConf?

2014-05-30 Thread H. S. Teoh via Digitalmars-d
On Fri, May 30, 2014 at 12:06:34PM -0400, Steven Schveighoffer via Digitalmars-d wrote: [...] By saying up front this is experimental, expect breakage, the policy is clear, and complaints are shrugged off, nobody has anyone to blame but themselves. You may argue Yeah, but javax was supposed

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-02 Thread H. S. Teoh via Digitalmars-d
On Mon, Jun 02, 2014 at 08:37:30PM +, Paulo Pinto via Digitalmars-d wrote: On Monday, 2 June 2014 at 20:07:00 UTC, Nordlöw wrote: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-02 Thread H. S. Teoh via Digitalmars-d
On Mon, Jun 02, 2014 at 04:23:47PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 6/2/2014 3:49 PM, Steven Schveighoffer wrote: On Mon, 02 Jun 2014 15:45:28 -0400, Paulo Pinto pj...@progtools.org wrote: More information now made available https://developer.apple.com/swift/ Memory

(git HEAD) std.datetime spewing deprecation messages

2014-06-03 Thread H. S. Teoh via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=12846 Since when is x.hours, x.minutes, etc., deprecated? Well, in any case, looks like std.datetime needs to be fixed. --T

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-03 Thread H. S. Teoh via Digitalmars-d
On Tue, Jun 03, 2014 at 01:05:24PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 6/3/2014 5:03 AM, Chris wrote: After all it was created by God, er, Apple. (Mind you, it was because of an apple that God evicted humans from paradaise :-) Heh heh :) Why has that never occurred to me

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-04 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 04, 2014 at 02:27:10PM +0100, Iain Buclaw via Digitalmars-d wrote: On 4 June 2014 13:21, Temtaime via Digitalmars-d digitalmars-d@puremagic.com wrote: The main problem is that ldc is outdated because there is no support from community. Likewise. All I see is everyone

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-04 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 04, 2014 at 03:53:59PM +0100, Iain Buclaw via Digitalmars-d wrote: [...] Not even remotely true. DMD isn't easy to set-up either. 1) There's no documentation on build dependencies/prerequesites (that I have come across) http://wiki.dlang.org/Building_DMD 2) While there's no

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-04 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 04, 2014 at 04:23:31PM +0100, Iain Buclaw via Digitalmars-d wrote: On 4 June 2014 16:07, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wed, Jun 04, 2014 at 03:53:59PM +0100, Iain Buclaw via Digitalmars-d wrote: [...] Not even remotely true. DMD isn't

Re: [OT] Extra time spent

2014-06-04 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 04, 2014 at 09:30:32AM -0700, Walter Bright via Digitalmars-d wrote: On 6/3/2014 11:38 PM, Jacob Carlborg wrote: I can't have music on at work I understand that. But can you have it on at a barely perceptible volume at your desk? That's usually enough for me. I find that music

Re: [OT] Extra time spent

2014-06-04 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 04, 2014 at 01:57:13PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 6/4/2014 7:59 AM, Dejan Lekic wrote: I humbly believe programmer who does not spend spare time reading literature related to his/her work is most likely going to lose the job at some point, as people who

Re: [OT] Extra time spent

2014-06-04 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 04, 2014 at 11:51:04AM -0700, Walter Bright via Digitalmars-d wrote: On 6/4/2014 11:36 AM, H. S. Teoh via Digitalmars-d wrote: On Wed, Jun 04, 2014 at 09:30:32AM -0700, Walter Bright via Digitalmars-d wrote: On 6/3/2014 11:38 PM, Jacob Carlborg wrote: I can't have music

Re: [OT] Extra time spent

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 11:49:38AM +0200, Jacob Carlborg via Digitalmars-d wrote: On 2014-06-04 21:02, H. S. Teoh via Digitalmars-d wrote: It's strange, I find that even ambient music distracts me, yet the loud noise of an occasional passing train doesn't. Similarly, even whispers

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 01:23:47AM -0700, Jonathan M Davis via Digitalmars-d wrote: On Wed, 04 Jun 2014 09:12:06 +0200 Sönke Ludwig via Digitalmars-d digitalmars-d@puremagic.com wrote: Just a minor note: What about just .only!minutes, analogous .total!minutes? Removing both the .minutes

Re: [OT] Extra time spent

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 10:07:59AM -0700, Walter Bright via Digitalmars-d wrote: On 6/5/2014 2:49 AM, Jacob Carlborg wrote: On 2014-06-04 21:02, H. S. Teoh via Digitalmars-d wrote: It's strange, I find that even ambient music distracts me, yet the loud noise of an occasional passing train

Re: What can I do?

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 06:01:32PM +, Jeremy DeHaan via Digitalmars-d wrote: Hey all, I've been using D for a while now and I would very much like to contribute to the development of the language. Here's the problem: I know next to nothing about compilers or anything related to language

Re: [OT] Extra time spent

2014-06-06 Thread H. S. Teoh via Digitalmars-d
On Fri, Jun 06, 2014 at 01:24:20PM +, Dejan Lekic via Digitalmars-d wrote: [...] A typical scenario is when (top-level) manager (M) want thing yesterday, and tell senior engineer (SE) M: How long will it take? SE: Well, we did not even analyse the requirements for this feature. Let's

Re: [OT] Extra time spent

2014-06-06 Thread H. S. Teoh via Digitalmars-d
On Fri, Jun 06, 2014 at 05:14:34PM +0200, Timon Gehr via Digitalmars-d wrote: On 06/06/2014 04:37 PM, H. S. Teoh via Digitalmars-d wrote: Yeah that sounds very familiar. A typical situation at my job goes something like this: Customer: I want feature X! Sales rep: OK, we'll implement X in 1

Re: [OT] Extra time spent

2014-06-06 Thread H. S. Teoh via Digitalmars-d
On Fri, Jun 06, 2014 at 02:01:38PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 6/6/2014 1:06 PM, H. S. Teoh via Digitalmars-d wrote: On Fri, Jun 06, 2014 at 05:14:34PM +0200, Timon Gehr via Digitalmars-d wrote: Isn't the fundamental problem here that the customer will pay a billion

Re: [OT] Extra time spent

2014-06-06 Thread H. S. Teoh via Digitalmars-d
On Fri, Jun 06, 2014 at 07:49:47PM +, deadalnix via Digitalmars-d wrote: On Friday, 6 June 2014 at 19:37:47 UTC, H. S. Teoh via Digitalmars-d wrote: Techie A: Hey dude, this morning I got this crazy kewl idea on how to make our spreadsheet app play a flight simulator! Techie B

Re: foreach

2014-06-12 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 12, 2014 at 01:11:12PM -0400, Steven Schveighoffer via Digitalmars-d wrote: On Thu, 12 Jun 2014 11:00:11 -0400, Manu via Digitalmars-d digitalmars-d@puremagic.com wrote: I often find myself wanting to write this: foreach(; 0..n) {} In the case that I just want to do something

UFCS overloaded property getters/setters

2014-06-13 Thread H. S. Teoh via Digitalmars-d
I'm not sure if this is a bug, or an anti-pattern, or what, but I ran into this issue yesterday: class Base { int propImpl; final @property int prop() { return propImpl; } @property void prop(int newVal) { propImpl = newVal; }

Re: foreach

2014-06-13 Thread H. S. Teoh via Digitalmars-d
On Fri, Jun 13, 2014 at 12:54:44PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 6/13/2014 5:15 AM, Jonathan M Davis via Digitalmars-d wrote: I'd honestly rather see for(;;) {} removed than have foreach(; 0..n) {} added. I don't like special cases like like these. Disallowing

  1   2   3   4   5   6   7   8   9   10   >