Re: GDC ARM beta #1 (with binary releases!)

2014-03-17 Thread inout
On Monday, 17 March 2014 at 14:07:13 UTC, Johannes Pfau wrote: I'm happy to announce the first GDC ARM beta on behalf of the GDC team :) ARM support is now at a point where the automated tests (test suite, unit tests) pass and we're ready for feedback from real world usage. All changes have

Re: Bounty for -minimal compiler flag

2014-02-17 Thread inout
On Monday, 17 February 2014 at 06:40:54 UTC, Paulo Pinto wrote: On Sunday, 16 February 2014 at 23:40:58 UTC, 1100110 wrote: On 2/16/14, 10:18, Elie Morisse wrote: IMHO an approach that would not involve making a binary choice between full D and minimal D is to add an option to make the

Re: Bounty for -minimal compiler flag

2014-02-16 Thread inout
On Sunday, 16 February 2014 at 16:18:13 UTC, Elie Morisse wrote: On Thursday, 13 February 2014 at 23:14:20 UTC, 1100110 wrote: I think it's about time I gave back to this wonderful community. I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.)

Re: D as A Better C?

2014-02-13 Thread inout
On Tuesday, 11 February 2014 at 19:43:00 UTC, Walter Bright wrote: I've toyed with this idea for a while, and wondered what the interest there is in something like this. The idea is to be able to use a subset of D that does not require any of druntime or phobos - it can be linked merely with

Re: D as A Better C?

2014-02-13 Thread inout
On Thursday, 13 February 2014 at 19:47:33 UTC, Paulo Pinto wrote: Am 13.02.2014 19:06, schrieb inout: On Tuesday, 11 February 2014 at 19:43:00 UTC, Walter Bright wrote: I've toyed with this idea for a while, and wondered what the interest there is in something like this. The idea

Re: On exceptions in D

2014-02-09 Thread inout
On Monday, 10 February 2014 at 01:16:27 UTC, Jonathan M Davis wrote: On Sunday, February 09, 2014 21:57:13 Dmitry Olshansky wrote: Split out of List of Phobos functions that allocate memory?. To reiterate, here is some critique, compiled: 1. Exceptions are class instances, hence (by default)

Re: Typed variadic template syntax?

2014-01-29 Thread inout
On Wednesday, 29 January 2014 at 07:02:00 UTC, Andrei Alexandrescu wrote: On 1/28/14 4:14 PM, bearophile wrote: This is not an enhancement request, but it presents a potential enhancement. This is C++11 code: templateint... digits struct value; template struct value { static const int v

Re: Non-null objects, the Null Object pattern, and T.init

2014-01-16 Thread inout
On Friday, 17 January 2014 at 02:52:15 UTC, bearophile wrote: deadalnix: Most object don't have a sensible init value. That is just hiding the problem under the carpet. If there's desire to solve this problem I think that improving the type system to avoid nulls where they are not desired

Re: This forum is often slow, not responding

2013-12-17 Thread inout
On Tuesday, 17 December 2013 at 21:28:35 UTC, John J wrote: On 12/16/2013 01:38 AM, Dfr wrote: Sorry for posting it here, but this is really issue for me. This forum is cool and works very fast, but often it kinda overloaded ? Sometimes pages are opening very slow or 502 Gateway timeout error

Re: Use case: eliminate hidden allocations in buildPath

2013-12-05 Thread inout
On Wednesday, 4 December 2013 at 23:14:48 UTC, Andrei Alexandrescu wrote: Hello, Walter and I were talking about eliminating the surreptitious allocations in buildPath: http://dlang.org/phobos/std_path.html#.buildPath We'd need to keep the existing version working, so we're looking at

Re: Checking function parameters in Phobos

2013-11-26 Thread inout
On Monday, 25 November 2013 at 13:01:43 UTC, Simen Kjærås wrote: On 2013-11-25 13:00, Marco Leise wrote: Am Fri, 22 Nov 2013 02:55:44 +0100 schrieb Simen Kjærås simen.kja...@gmail.com: On 22.11.2013 00:50, Meta wrote: On Thursday, 21 November 2013 at 22:51:43 UTC, inout wrote: What if you

Re: Checking function parameters in Phobos

2013-11-21 Thread inout
on. May I suggest: struct Validated(alias fn, T) { private T value; @property inout T get() { return value; } } Validated!(fn, T) validate(alias fn, T)(T value) { Validated!(fn, T) result; fn(value); result.value = value; return result; } void

Re: Enums - probably an old subject

2013-11-21 Thread inout
On Thursday, 21 November 2013 at 17:19:18 UTC, inout wrote: On Thursday, 21 November 2013 at 07:22:39 UTC, Steve Teale wrote: import std.stdio; enum Intention { EVIL, NEUTRAL, GOOD, SAINTLY } void foo(Intention rth) { if (rth == EVIL) writeln(Road to hell); } void main

Re: Enums - probably an old subject

2013-11-21 Thread inout
On Thursday, 21 November 2013 at 07:22:39 UTC, Steve Teale wrote: import std.stdio; enum Intention { EVIL, NEUTRAL, GOOD, SAINTLY } void foo(Intention rth) { if (rth == EVIL) writeln(Road to hell); } void main() { foo(EVIL); } Why does the compiler complain in both

Re: Precedences of unary minus and dot operators

2013-11-08 Thread inout
On Friday, 8 November 2013 at 12:49:38 UTC, bearophile wrote: This is something that has come out of a thread I have opened in D.learn. In the thread qznc has answered me: Operator precedence of . is higher than unary minus. That's right: double foo(in double x) { assert (x = 0);

Re: BigInt -- a challenge for std.allocator

2013-10-29 Thread inout
On Tuesday, 29 October 2013 at 21:59:38 UTC, Joseph Rushton Wakeling wrote: On 29/10/13 15:58, Dmitry Olshansky wrote: Can't it use ref-counted COW? Then since there is only 1 reference to the original block it may mutate it in-place else it creates new chunk with refs=1 and decrements the

Re: std.allocator ready for some abuse

2013-10-24 Thread inout
On Thursday, 24 October 2013 at 19:53:56 UTC, Andrei Alexandrescu wrote: Hello, I know it's been a long wait. Hopefully it was worth it. The alpha release of untyped allocators is ready for tire-kicking and a test drive. Code:

Re: Should we distribute a Dutmite binary in the zipped package?

2013-10-21 Thread inout
On Sunday, 20 October 2013 at 12:16:14 UTC, Andrej Mitrovic wrote: It's a pretty useful tool after all (and it's strange how many people don't even know it exists, judging from IRC conversations). It's already in the tools repo. The issue is filed as:

Re: [Proposal] Weak reference implementation for D

2013-10-15 Thread inout
On Tuesday, 15 October 2013 at 23:20:39 UTC, Sean Kelly wrote: On Tuesday, 15 October 2013 at 22:09:17 UTC, Robert wrote: The problem is that destructors and thus the registered hooks for the dispose events are called when threads are already resumed. If this wasn't the case there would

Re: draft proposal for ref counting in D

2013-10-11 Thread inout
On Thursday, 10 October 2013 at 08:55:00 UTC, Robert Schadek wrote: On 10/10/2013 03:45 AM, Walter Bright wrote: Rainer Schuetze wrote: You have to put the lock around the pair of AddRef and Release, but if the compiler already splits this into two function calls, this cannot be done in the