Re: Bug? 0 is less than -10

2015-10-08 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Wednesday, 7 October 2015 at 16:25:02 UTC, Marc Schütz wrote: Lionello Lunesu posted a PR that should fix this: https://github.com/D-Programming-Language/dmd/pull/1913 See also the discussion in the linked bug report. Unfortunately it seems it's been forgotten since then... Meanwhile I

[Issue 15177] New: mixin + traits issue with 2.069 beta 1

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15177 Issue ID: 15177 Summary: mixin + traits issue with 2.069 beta 1 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Beta D 2.069.0-b1

2015-10-08 Thread lobo via Digitalmars-d-announce
On Thursday, 8 October 2015 at 09:17:16 UTC, Martin Nowak wrote: On Thursday, 8 October 2015 at 04:53:53 UTC, Suliman wrote: Is it DDMD based release? Yes. Is there any info on the benchmarking between DDMD and DMD? bye, lobo PS: Big thanks for the much improved release process that you

[Issue 12558] try/catch allows implicit catching of Errors without specifying any Exception type

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12558 --- Comment #12 from Andrej Mitrovic --- I'll recreate the pull today or tomorrow. I'll do the same for the other stale pulls of mine in the coming days. --

Re: Beta D 2.069.0-b1

2015-10-08 Thread Andrea Fontana via Digitalmars-d-announce
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at https://issues.dlang.org -Martin Got an issue:

Re: Tell GC to use shared memory

2015-10-08 Thread tcak via Digitalmars-d-learn
On Thursday, 8 October 2015 at 05:46:31 UTC, ketmar wrote: On Thursday, 8 October 2015 at 04:38:43 UTC, tcak wrote: Is it possible to modify GC (without rebuilding the compiler), so it uses a given shared memory area instead of heap for allocations? sure. you don't need to rebuild the

Re: D 2015/2016 Vision?

2015-10-08 Thread Kagamin via Digitalmars-d
On Tuesday, 6 October 2015 at 20:31:58 UTC, Jonathan M Davis wrote: I don't think the problem is with structs. The problem is that programmers coming from other languages default to using classes. The default in D should always be a struct. You use a class because you actually need inheritance

Voting for std.experimental.testing

2015-10-08 Thread Robert burner Schadek via Digitalmars-d
This is the voting thread for inclusion of std.experimental.testing into phobos. PR: https://github.com/D-Programming-Language/phobos/pull/3207 Dub: http://code.dlang.org/packages/unit-threaded Doc: See CyberShadow/DAutoTest for up-to-date documentation build Formal Review Thread:

D Language Implementation of DIgitalOcean API

2015-10-08 Thread Laeeth Isharc via Digitalmars-d-announce
I'm sorry, but I posted in the wrong group before. Digital Ocean provide cloud infrastructure (KVM servers). They serve a somewhat different market to Amazon's AWS and similar offering a much less complex product for a significantly lower price (especially if you pay the sticker price for

Re: D and microservices

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 03:12:03 UTC, Martin Nowak wrote: We might be able to reuse the existing delegate capture mechanism to create continuations. Then await would "simply" rewrite the rest of the body as delegate, similar to how the foreach body can be transformed into a delegate.

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread Trass3r via Digitalmars-d
Here's the original discussion with Eric's elaborate answer: http://ericniebler.com/2014/02/21/introducing-iterables/#comment-403 Because I want to leverage the vast amount of iterator-based code already written, and because in my experience, I don’t find that ranges as primitives solve all

Re: D and microservices

2015-10-08 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 7 October 2015 at 10:50:47 UTC, Russel Winder wrote: On Tue, 2015-10-06 at 18:56 +, Dicebot via Digitalmars-d wrote: On Tuesday, 6 October 2015 at 16:12:12 UTC, Russel Winder wrote: > Has anyone got a small example of microservices using D, > with Vibe.d or otherwise, that I

Re: Beta D 2.069.0-b1

2015-10-08 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 8 October 2015 at 04:53:53 UTC, Suliman wrote: Is it DDMD based release? Yes.

Check template parameter whether it has "length"

2015-10-08 Thread tcak via Digitalmars-d-learn
I am "trying" to write a function that takes an array of items, and returns the length of longest item. [code] size_t maxLength(A)( const A[] listOfString ) if( __traits( hasMember, A, "length" ) ) { return 0; // not implemented yet } [/code] I tried it with if( __traits( compiles,

Re: Beta D 2.069.0-b1

2015-10-08 Thread Andrea Fontana via Digitalmars-d-announce
On Thursday, 8 October 2015 at 04:14:59 UTC, extrawurst wrote: On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at

Re: D and microservices

2015-10-08 Thread Joakim via Digitalmars-d
On Thursday, 8 October 2015 at 06:43:24 UTC, Laeeth Isharc wrote: In any case, we have now inconceivable amounts of computing power on tap for very affordable prices and the tools to manage it. When a little instance is 0.7 cents an hour, and a usable one is 1.5 cents and you can scale up and

Voting for std.experimental.testing

2015-10-08 Thread Robert burner Schadek via Digitalmars-d-announce
http://forum.dlang.org/post/jnihyetudelpkvrxl...@forum.dlang.org

Re: Beta D 2.069.0-b1

2015-10-08 Thread Tourist via Digitalmars-d-announce
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at https://issues.dlang.org -Martin The "libcurl is now loaded dynamically" link is

Re: D and microservices

2015-10-08 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 7 October 2015 at 10:39:07 UTC, Russel Winder wrote: On Tue, 2015-10-06 at 15:07 -0400, Nick Sabalausky via (Kinda like how "cloud" sounds like a big fancy new revolution until you realize it's just the hip new word for "internet" or "hosted". Yes - technically it is nothing

Re: Voting for std.experimental.testing

2015-10-08 Thread Rikki Cattermole via Digitalmars-d
On 08/10/15 9:21 PM, Robert burner Schadek wrote: This is the voting thread for inclusion of std.experimental.testing into phobos. PR: https://github.com/D-Programming-Language/phobos/pull/3207 Dub: http://code.dlang.org/packages/unit-threaded Doc: See CyberShadow/DAutoTest for up-to-date

Re: Beta D 2.069.0-b1

2015-10-08 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at https://issues.dlang.org -Martin Thanks! Please add the PR about allocators for

Re: Moving back to .NET

2015-10-08 Thread Chris via Digitalmars-d
On Wednesday, 7 October 2015 at 05:36:15 UTC, Ola Fosheim Grøstad wrote: 1. Define the target, then you can figure out the features. 2. Solid non-gc memory management and ownership. 3. Clean up the type system. 4. Complete the language spec. 5. Clean up the syntax. That's very vague. Unless

Re: Check template parameter whether it has "length"

2015-10-08 Thread John Colvin via Digitalmars-d-learn
On Thursday, 8 October 2015 at 09:29:30 UTC, tcak wrote: I am "trying" to write a function that takes an array of items, and returns the length of longest item. [code] size_t maxLength(A)( const A[] listOfString ) if( __traits( hasMember, A, "length" ) ) { return 0; // not

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 10:05:53 UTC, Kagamin wrote: On Wednesday, 7 October 2015 at 00:17:37 UTC, bitwise wrote: If it takes long enough that C++ has reflection, modules, ranges, stackless coroutines, concepts, etc, then I gotta be honest, I'm gonna start worrying about investing too

Re: D 2015/2016 Vision?

2015-10-08 Thread Kagamin via Digitalmars-d
On Thursday, 8 October 2015 at 10:15:12 UTC, Ola Fosheim Grøstad wrote: You have to use weak pointers for back references. http://en.cppreference.com/w/cpp/memory/weak_ptr I suspected as much and the next question is how is it better than C# solution except that one used to cope with C++

Re: Moving back to .NET

2015-10-08 Thread Chris via Digitalmars-d
On Thursday, 8 October 2015 at 09:45:53 UTC, Ola Fosheim Grøstad wrote: On Thursday, 8 October 2015 at 09:24:50 UTC, Chris wrote: On Wednesday, 7 October 2015 at 05:36:15 UTC, Ola Fosheim Grøstad wrote: That's not vague at all. 1. Define the target, then you can figure out the features.

Re: Voting for std.experimental.testing

2015-10-08 Thread Per Nordlöw via Digitalmars-d
On Thursday, 8 October 2015 at 08:21:58 UTC, Robert burner Schadek wrote: This is the voting thread for inclusion of std.experimental.testing into phobos. Voting ends in 2 weeks, on Oktober 22. Sorry for being late with this but I added two comments in the PR: One more important:

Re: D 2015/2016 Vision?

2015-10-08 Thread Kagamin via Digitalmars-d
On Wednesday, 7 October 2015 at 00:17:37 UTC, bitwise wrote: If it takes long enough that C++ has reflection, modules, ranges, stackless coroutines, concepts, etc, then I gotta be honest, I'm gonna start worrying about investing too much time in D. You manage resources with reference

Re: Threading Questions

2015-10-08 Thread Kagamin via Digitalmars-d-learn
On Thursday, 8 October 2015 at 02:31:24 UTC, bitwise wrote: If you have System.Collections.Generic.List(T) static class member, there is nothing wrong with using it from multiple threads like this: The equivalent of your D example would be class Foo { static List numbers = new List();

Re: Beta D 2.069.0-b1

2015-10-08 Thread Andrea Fontana via Digitalmars-d-announce
On Thursday, 8 October 2015 at 09:17:16 UTC, Martin Nowak wrote: On Thursday, 8 October 2015 at 04:53:53 UTC, Suliman wrote: Is it DDMD based release? Yes. Are dmd 2.069b1 binaries compiled with dmd 2.069b1 or with dmd 2.068.2?

[Issue 15176] [REG2.069.0-b1] ICE(glue.c):separate compilation with -inline crash in glue.c

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15176 Kenji Hara changed: What|Removed |Added Keywords||pull

[Issue 7066] You can redefine .init and .stringof without error

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7066 --- Comment #8 from Sobirari Muhomori --- (In reply to timon.gehr from comment #6) > It would be better to have a specific feature here though. E.g. > > struct S{ @disable init; } struct S{ @disable void init(); } ? --

[Issue 15178] New: "Try D" widget on homepage mangles Unicode

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15178 Issue ID: 15178 Summary: "Try D" widget on homepage mangles Unicode Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal

Re: Moving back to .NET

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 11:34:51 UTC, Chris wrote: in D. Then again, I don't know how Go and Rust will fare in a couple of years' time. I think the C++ people are desperately trying to recapture the application market with some of the things that they propose for C++17/20. I think

Re: Moving back to .NET

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 09:24:50 UTC, Chris wrote: On Wednesday, 7 October 2015 at 05:36:15 UTC, Ola Fosheim Grøstad wrote: 1. Define the target, then you can figure out the features. 2. Solid non-gc memory management and ownership. 3. Clean up the type system. 4. Complete the

Re: Moving back to .NET

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 10:31:57 UTC, Chris wrote: On Thursday, 8 October 2015 at 09:45:53 UTC, Ola Fosheim Grøstad wrote: That's not vague at all. 1. Define the target, then you can figure out the features. Then define the target. Make some suggestions. I've already raised this

Re: Check template parameter whether it has "length"

2015-10-08 Thread Artur Skawina via Digitalmars-d-learn
On 10/08/15 11:29, tcak via Digitalmars-d-learn wrote: > I am "trying" to write a function that takes an array of items, and returns > the length of longest item. > > [code] > size_t maxLength(A)( const A[] listOfString ) if( __traits( hasMember, A, > "length" ) ) > { > return 0; // not

Re: Is Anything Holding you back?

2015-10-08 Thread Kagamin via Digitalmars-d
On Wednesday, 7 October 2015 at 16:09:37 UTC, Jan Johansson wrote: Yepp, that's the point of SOA :-) We are in agreement. :) Since the contract is known upfront, it can be processed at compile time and D can do it. C# has to do it at run time because it can't do a thing at compile time.

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 11:31:49 UTC, Kagamin wrote: cyclic graph. If you must manually verify the graph and put weak references appropriately - what kind of design in that? It's a system programming language design... If you plan your model before coding it is rather easy to detect

Re: Voting for std.experimental.testing

2015-10-08 Thread Per Nordlöw via Digitalmars-d
On Thursday, 8 October 2015 at 08:52:04 UTC, Rikki Cattermole wrote: Alright seriously? +/** + * Generate green coloured output on POSIX systems + */ +string green(in string msg) @safe pure const +{ +return escCode(Color.green) ~ msg ~ escCode(Color.cancel); +}

Re: Tell GC to use shared memory

2015-10-08 Thread Kagamin via Digitalmars-d-learn
GC is chosen at link time simply to satisfy unresolved symbols. You only need to compile your modified GC and link with it, it will be chosen instead of GC from druntime, no need to recompile anything else.

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 10:26:22 UTC, Kagamin wrote: On Thursday, 8 October 2015 at 10:15:12 UTC, Ola Fosheim Grøstad wrote: You have to use weak pointers for back references. http://en.cppreference.com/w/cpp/memory/weak_ptr I suspected as much and the next question is how is it

Re: Beta D 2.069.0-b1

2015-10-08 Thread Martin Nowak via Digitalmars-d-announce
On 10/08/2015 11:36 AM, lobo wrote: > > Is there any info on the benchmarking between DDMD and DMD? Still on the todo list to decide whether we need to use gdc to build ddmd. https://trello.com/c/OT6jlFNa/85-rebench-ddmd-vs-dmd-compiler-speed

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 7 October 2015 at 17:02:51 UTC, Paulo Pinto wrote: On Wednesday, 7 October 2015 at 15:42:57 UTC, Ola Fosheim Grøstad wrote: Are you thinking about Rust, or some other language? All of the ones that explore this area. Rust, ATS, Idris, F* Oh, yeah, sure. I wondered more if

Re: Moving back to .NET

2015-10-08 Thread Chris via Digitalmars-d
On Thursday, 8 October 2015 at 10:59:04 UTC, Ola Fosheim Grøstad wrote: On Thursday, 8 October 2015 at 10:31:57 UTC, Chris wrote: On Thursday, 8 October 2015 at 09:45:53 UTC, Ola Fosheim Grøstad wrote: That's not vague at all. 1. Define the target, then you can figure out the features.

Re: D 2015/2016 Vision?

2015-10-08 Thread Kagamin via Digitalmars-d
On Thursday, 8 October 2015 at 10:34:44 UTC, Ola Fosheim Grøstad wrote: I don't know. I don't like extensive reference counting and don't use weak_ptr. One can usually avoid cycles for resources by design. The required design is that a resource handle must reside in a non-resource object,

Re: Check template parameter whether it has "length"

2015-10-08 Thread Nicholas Wilson via Digitalmars-d-learn
On Thursday, 8 October 2015 at 09:29:30 UTC, tcak wrote: I am "trying" to write a function that takes an array of items, and returns the length of longest item. [code] size_t maxLength(A)( const A[] listOfString ) if( __traits( hasMember, A, "length" ) ) { return 0; // not

[Issue 7066] You can redefine .init and .stringof without error

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7066 Sobirari Muhomori changed: What|Removed |Added See Also|

[Issue 14237] Compiler should reject attempts to (re)define .init

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14237 Sobirari Muhomori changed: What|Removed |Added See Also|

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread John Colvin via Digitalmars-d
On Thursday, 8 October 2015 at 12:35:08 UTC, Kagamin wrote: Hmm... conceptually a bidirectional range should be able to iterate back and forth: void is_word_boundary(Bidi r) { bool is_word_prev = r.re.empty ? false : isword(r.re.back); bool is_word_this = r.empty ? false :

Re: Beta D 2.069.0-b1

2015-10-08 Thread Per Nordlöw via Digitalmars-d-announce
On Thursday, 8 October 2015 at 09:36:31 UTC, lobo wrote: PS: Big thanks for the much improved release process that you guys are maintaining. I agree. Thank you, Martin.

Re: Voting for std.experimental.testing

2015-10-08 Thread Rikki Cattermole via Digitalmars-d
On 09/10/15 1:12 AM, Per Nordlöw wrote: On Thursday, 8 October 2015 at 08:52:04 UTC, Rikki Cattermole wrote: Alright seriously? +/** + * Generate green coloured output on POSIX systems + */ +string green(in string msg) @safe pure const +{ +return escCode(Color.green)

Re: Moving back to .NET

2015-10-08 Thread Chris via Digitalmars-d
On Thursday, 8 October 2015 at 11:56:58 UTC, Ola Fosheim Grøstad wrote: On Thursday, 8 October 2015 at 11:34:51 UTC, Chris wrote: in D. Then again, I don't know how Go and Rust will fare in a couple of years' time. I think the C++ people are desperately trying to recapture the application

Re: D 2015/2016 Vision?

2015-10-08 Thread Paulo Pinto via Digitalmars-d
On Thursday, 8 October 2015 at 11:15:35 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 7 October 2015 at 17:02:51 UTC, Paulo Pinto wrote: On Wednesday, 7 October 2015 at 15:42:57 UTC, Ola Fosheim Grøstad wrote: Are you thinking about Rust, or some other language? All of the ones that explore

Re: Voting for std.experimental.testing

2015-10-08 Thread Atila Neves via Digitalmars-d
On Thursday, 8 October 2015 at 08:52:04 UTC, Rikki Cattermole wrote: On 08/10/15 9:21 PM, Robert burner Schadek wrote: [...] Yes, but: There is no way that could conflict with serializers/vibe.d's definitions. Let alone ORM's. ? std/experimental/testing/gen_ut_main_mixin.d Why is it

Re: D 2015/2016 Vision?

2015-10-08 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 8 October 2015 at 08:21:09 UTC, Kagamin wrote: On Tuesday, 6 October 2015 at 20:31:58 UTC, Jonathan M Davis wrote: I don't think the problem is with structs. The problem is that programmers coming from other languages default to using classes. The default in D should always be a

[Issue 15167] [REG2.069-devel] conflicting error with repeated alias declaration

2015-10-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15167 --- Comment #5 from Kenji Hara --- (In reply to Kenji Hara from comment #3) > Because today, two different alias declarations aliasing an identical type > are allowed if they're accessed beyond the import boundaries. Identical

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread Kagamin via Digitalmars-d
The backward range can have an input range interface, like retro: void is_word_boundary(Bidi r) { bool is_word_prev = r.prev.empty ? false : isword(r.prev.front); bool is_word_this = r.empty ? false : isword(r.front); return is_word_prev != is_word_this; }

Re: Threading Questions

2015-10-08 Thread bitwise via Digitalmars-d-learn
On Thursday, 8 October 2015 at 10:11:38 UTC, Kagamin wrote: On Thursday, 8 October 2015 at 02:31:24 UTC, bitwise wrote: If you have System.Collections.Generic.List(T) static class member, there is nothing wrong with using it from multiple threads like this: The equivalent of your D example

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread Kagamin via Digitalmars-d
On Wednesday, 7 October 2015 at 14:59:28 UTC, Trass3r wrote: On Tuesday, 6 October 2015 at 22:39:01 UTC, Ulrich Küttler wrote: Yes, this is an explanation. Thanks. So the argument being C++ customs. Now that you mention it, this seems to be the argument in Eric's D4128 paper, too. I was

Re: Bug? 0 is less than -10

2015-10-08 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/7/15 1:27 AM, Laeeth Isharc wrote: On Wednesday, 7 October 2015 at 02:53:32 UTC, Steven Schveighoffer wrote: On 10/6/15 7:21 PM, Laeeth Isharc wrote: could we have ssize_t defined in phobos somewhere so your code ends up being portable ;) (It's trivial to do, obviously). ptrdiff_t

Re: D 2015/2016 Vision?

2015-10-08 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 8 October 2015 at 12:10:24 UTC, Ola Fosheim Grøstad wrote: On Thursday, 8 October 2015 at 11:31:49 UTC, Kagamin wrote: cyclic graph. If you must manually verify the graph and put weak references appropriately - what kind of design in that? It's a system programming language

Re: Beta D 2.069.0-b1

2015-10-08 Thread Adam D. Ruppe via Digitalmars-d-announce
On Thursday, 8 October 2015 at 04:14:59 UTC, extrawurst wrote: Does that mean @property has no effect anymore ? @property never actually worked anyway. It is still my hope that it will be correctly implemented some day though - the hard problem it was meant to solve is still there (returning

Re: Moving back to .NET

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 13:15:18 UTC, Chris wrote: That's what I've been doing for 2-3 years now thanks to D. I use D as the core and everything else is glued onto the D core. D is actually pretty good at this. Since it's cross-platform, I can use the same code base everywhere. I don't

Re: Moving back to .NET

2015-10-08 Thread Chris via Digitalmars-d
On Thursday, 8 October 2015 at 13:45:43 UTC, Ola Fosheim Grøstad wrote: On Thursday, 8 October 2015 at 13:15:18 UTC, Chris wrote: That's what I've been doing for 2-3 years now thanks to D. I use D as the core and everything else is glued onto the D core. D is actually pretty good at this.

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 13:20:51 UTC, Paulo Pinto wrote: It is really hard to keep up with JVM, .NET and occasional look into C++. The languages are easy when compared to the whole ecosystem, hence why I went silent. I've found getting a good understanding of C++11/14 to be a serious

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread John Colvin via Digitalmars-d
On Thursday, 8 October 2015 at 14:36:03 UTC, Kagamin wrote: On Thursday, 8 October 2015 at 13:10:24 UTC, John Colvin wrote: What you're effectively describing is a trio of iterators wrapped to give an interface of two linked ranges. popFront grows the first one and shrinks the second. I'd be

Re: Beta D 2.069.0-b1

2015-10-08 Thread Jack Stouffer via Digitalmars-d-announce
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at https://issues.dlang.org -Martin I think it should be mentioned in the change log

Re: Beta D 2.069.0-b1

2015-10-08 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 8 October 2015 at 12:20:23 UTC, Andrea Fontana wrote: Are dmd 2.069b1 binaries compiled with dmd 2.069b1 or with dmd 2.068.2? The last released compiler, we don't have any bootstrap method (using a small C++ compiler or so).

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 14:13:30 UTC, Jonathan M Davis wrote: One advantage of using smart pointers with a GC is that the GC can then clean up circular references, and you don't necessarily even need weak pointers (though there are bound to be cases where they'd still be desirable). But

Re: Check template parameter whether it has "length"

2015-10-08 Thread tcak via Digitalmars-d-learn
On Thursday, 8 October 2015 at 09:50:12 UTC, John Colvin wrote: On Thursday, 8 October 2015 at 09:29:30 UTC, tcak wrote: [...] I'm 99% sure something like __traits(hasMember, int[], "length" ) should evaluate to true. Please file a bug at issues.dlang.org I notice it also doesn't work for

Re: Check template parameter whether it has "length"

2015-10-08 Thread John Colvin via Digitalmars-d-learn
On Thursday, 8 October 2015 at 15:22:02 UTC, tcak wrote: BTW, there is nothing like std.traits.hasLength. yeah, that's because __traits(hasMember, ...) should be good enough, but obviously not in this case at the moment.

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread Kagamin via Digitalmars-d
On Thursday, 8 October 2015 at 13:10:24 UTC, John Colvin wrote: What you're effectively describing is a trio of iterators wrapped to give an interface of two linked ranges. popFront grows the first one and shrinks the second. I'd be interested to see how to construct that, given a generic

Re: Beta D 2.069.0-b1

2015-10-08 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 8 October 2015 at 14:59:15 UTC, Jack Stouffer wrote: I think it should be mentioned in the change log the substantial improvements that were made to the docs since last release. After over 30 PRs were merged for improving the docs, they are WAY better than the 2.068 docs. Sure,

Re: Beta D 2.069.0-b1

2015-10-08 Thread David Nadlinger via Digitalmars-d-announce
On Thursday, 8 October 2015 at 15:01:31 UTC, Martin Nowak wrote: On Thursday, 8 October 2015 at 12:20:23 UTC, Andrea Fontana wrote: Are dmd 2.069b1 binaries compiled with dmd 2.069b1 or with dmd 2.068.2? The last released compiler, we don't have any bootstrap method (using a small C++

Re: Beta D 2.069.0-b1

2015-10-08 Thread anonymous via Digitalmars-d-announce
On Thursday 08 October 2015 06:14, extrawurst wrote: > `The -property switch has been deprecated.` Does that mean > @property has no effect anymore ? Yes. I've made a pull request to mention that (and put a note on the spec page). https://github.com/D-Programming-Language/dlang.org/pull/1119

Re: Beta D 2.069.0-b1

2015-10-08 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 8 October 2015 at 12:48:48 UTC, Adam D. Ruppe wrote: On Thursday, 8 October 2015 at 04:14:59 UTC, extrawurst wrote: Does that mean @property has no effect anymore ? @property never actually worked anyway. It is still my hope that it will be correctly implemented some day though

[Issue 15177] mixin + traits issue with 2.069 beta 1

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

Re: D 2015/2016 Vision?

2015-10-08 Thread bitwise via Digitalmars-d
On Wednesday, 7 October 2015 at 15:30:17 UTC, Jonathan M Davis wrote: On Wednesday, 7 October 2015 at 12:59:05 UTC, bitwise wrote: On Wednesday, 7 October 2015 at 09:49:27 UTC, Marc Schütz wrote: RefCounted isn't implemented for classes, but there's no reason why it shouldn't work. Really,

Re: Go, D, and the GC

2015-10-08 Thread Marco Leise via Digitalmars-d
Am Mon, 05 Oct 2015 13:42:50 + schrieb Adam D. Ruppe : > On Monday, 5 October 2015 at 07:40:35 UTC, deadalnix wrote: > > Not on the heap. There are many cases where the destructor > > won't run and it is allowed by spec. We should do better. > > To be fair, if you

Re: Shout out to D at cppcon, when talkign about ranges.

2015-10-08 Thread H. S. Teoh via Digitalmars-d
On Thu, Oct 08, 2015 at 02:46:05PM +, John Colvin via Digitalmars-d wrote: > On Thursday, 8 October 2015 at 14:36:03 UTC, Kagamin wrote: > >On Thursday, 8 October 2015 at 13:10:24 UTC, John Colvin wrote: > >>What you're effectively describing is a trio of iterators wrapped to > >>give an

Re: Moving back to .NET

2015-10-08 Thread Kagamin via Digitalmars-d
On Thursday, 8 October 2015 at 10:59:04 UTC, Ola Fosheim Grøstad wrote: I think D could do well if it focused on engine-level system programming and made sure it was absolutely top notch for that purpose. (Game engines, search engines, ray tracing engines, in memory database engines, business

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 16:38:31 UTC, Meta wrote: Why, because you can take their address? You or someone you call can take the address. If there is a way to distinguish instances one way or another then it isn't a value, it is an object. Doesn't mean your code is taking the address.

Re: Moving back to .NET

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 16:25:09 UTC, Kagamin wrote: Where do you think is a limit to applicability of a turing-complete language? ? Pointers are of little use for a type that is always reference type. You can have many different types of references. Make them not compile? @nogc

Re: Beta D 2.069.0-b1

2015-10-08 Thread anonymous via Digitalmars-d-announce
On Thursday 08 October 2015 16:34, anonymous wrote: > On Thursday 08 October 2015 06:14, extrawurst wrote: > >> `The -property switch has been deprecated.` Does that mean >> @property has no effect anymore ? > > Yes. Correction: @property has at least one effect without -property. typeof acts

Re: D 2015/2016 Vision?

2015-10-08 Thread bitwise via Digitalmars-d
On Thursday, 8 October 2015 at 10:05:53 UTC, Kagamin wrote: On Wednesday, 7 October 2015 at 00:17:37 UTC, bitwise wrote: If it takes long enough that C++ has reflection, modules, ranges, stackless coroutines, concepts, etc, then I gotta be honest, I'm gonna start worrying about investing too

Re: D 2015/2016 Vision?

2015-10-08 Thread bitwise via Digitalmars-d
On Thursday, 8 October 2015 at 14:05:07 UTC, Jonathan M Davis wrote: Maybe, but having classes be value generally makes no sense, because you can't use polymorphism with value types. This is a huge generalization, and is incorrect. You can still use inheritance. Classes are inherently

Re: D 2015/2016 Vision?

2015-10-08 Thread bitwise via Digitalmars-d
On Thursday, 8 October 2015 at 16:14:05 UTC, Jonathan M Davis wrote: On Thursday, 8 October 2015 at 15:59:23 UTC, bitwise wrote: Again, it's much easier to be careful about this when the author's intent is baked into the class. That may be, but my point was that it doesn't actually guarantee

Re: Go, D, and the GC

2015-10-08 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 8 October 2015 at 15:58:37 UTC, Marco Leise wrote: Am Mon, 05 Oct 2015 13:42:50 + schrieb Adam D. Ruppe : On Monday, 5 October 2015 at 07:40:35 UTC, deadalnix wrote: > Not on the heap. There are many cases where the destructor > won't run and it is

Re: D 2015/2016 Vision?

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 16:17:49 UTC, bitwise wrote: Classes are inherently reference types given their semantics. Incorrect. Inaccurate maybe, but something that has an identity is not a value type. Value types are by definition identity-less. The type system of C/C++/D doesn't

Re: Moving back to .NET

2015-10-08 Thread Kagamin via Digitalmars-d
On Wednesday, 7 October 2015 at 13:15:38 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 7 October 2015 at 10:18:16 UTC, Kagamin wrote: If you want to know what D is in details, see dlang.org for language spec. No, that is backwards. :-) The language spec is the product. What is needed is a

Re: D 2015/2016 Vision?

2015-10-08 Thread Meta via Digitalmars-d
On Thursday, 8 October 2015 at 16:29:58 UTC, Ola Fosheim Grøstad wrote: Inaccurate maybe, but something that has an identity is not a value type. Value types are by definition identity-less. The type system of C/C++/D doesn't really provide guarantees needed to have proper value types. Why,

Re: Go, D, and the GC

2015-10-08 Thread Marco Leise via Digitalmars-d
Am Mon, 5 Oct 2015 12:22:59 +0300 schrieb Shachar Shemesh : > On 05/10/15 10:01, Dmitry Olshansky wrote: > > >> When D structs has a destructor that is guaranteed to run for any > >> instance that finished construction, no matter what is the use case, > >> then we can have that

Re: Beta D 2.069.0-b1

2015-10-08 Thread ponce via Digitalmars-d-announce
On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. Weren't there codegen improvements in DMD?

Re: D 2015/2016 Vision?

2015-10-08 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 8 October 2015 at 15:51:44 UTC, Ola Fosheim Grøstad wrote: So I don't think there are _good_ reasons to call finalizers/destructors on the GC heap, it's a sign of a bad model where the responsibilities are unclear. GC objects should only "own" memory on the GC heap. As far as I

Re: D 2015/2016 Vision?

2015-10-08 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 8 October 2015 at 15:59:23 UTC, bitwise wrote: Again, it's much easier to be careful about this when the author's intent is baked into the class. That may be, but my point was that it doesn't actually guarantee that the object is going to be destroyed determinstically. That's

Re: Beta D 2.069.0-b1

2015-10-08 Thread ponce via Digitalmars-d-announce
On Thursday, 8 October 2015 at 04:14:59 UTC, extrawurst wrote: On Wednesday, 7 October 2015 at 22:33:09 UTC, Martin Nowak wrote: First beta for the 2.069.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.069.0.html Please report any bugs at

Re: Go, D, and the GC

2015-10-08 Thread Marco Leise via Digitalmars-d
Am Sun, 04 Oct 2015 23:28:47 + schrieb Jonathan M Davis : > On Sunday, 4 October 2015 at 21:41:00 UTC, rsw0x wrote: > > If D has no intentions of aiding the GC, then the GC should > > just be dropped because it's basically just slapping Boehm on > > C++ right now. > >

Re: Check template parameter whether it has "length"

2015-10-08 Thread Meta via Digitalmars-d-learn
On Thursday, 8 October 2015 at 15:22:02 UTC, tcak wrote: BTW, there is nothing like std.traits.hasLength. You're just looking in the wrong place =) http://dlang.org/phobos/std_range_primitives.html#hasLength

Re: Moving back to .NET

2015-10-08 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 8 October 2015 at 16:28:45 UTC, Kagamin wrote: What D lacks in comparison to C w.r.t. to writing an engine? C is not really a comparable option language wise, C has not changed a lot since the 70s. But if you started to make a list of what the C eco system offers then you get a

  1   2   >