Re: syntax sugar: std.path::buildPath instead of from!"std.path".buildPath

2017-02-16 Thread ZombineDev via Digitalmars-d
On Thursday, 16 February 2017 at 07:48:37 UTC, Jacob Carlborg wrote: On 2017-02-16 01:40, John Colvin wrote: Slightly OT, but it is related so bear with me: Design by introspection is great and prevent having to make new names for every possible combo of features. Unfortunately, it doesn't

Re: syntax sugar: std.path::buildPath instead of from!"std.path".buildPath

2017-02-16 Thread ZombineDev via Digitalmars-d
On Thursday, 16 February 2017 at 07:34:02 UTC, Jacob Carlborg wrote: On 2017-02-16 01:37, ZombineDev wrote: BTW, shouldn't we use `enum`, instead of `auto`, since everywhere else `enum` means guaranteed to be computed at compile-time whereas `auto` means the opposite? Far enough, since

Re: syntax sugar: std.path::buildPath instead of from!"std.path".buildPath

2017-02-16 Thread ZombineDev via Digitalmars-d
On Thursday, 16 February 2017 at 00:40:19 UTC, John Colvin wrote: On Wednesday, 15 February 2017 at 19:39:52 UTC, Andrei Alexandrescu wrote: On 02/15/2017 06:20 AM, Daniel N wrote: On Wednesday, 15 February 2017 at 09:22:14 UTC, Daniel N wrote: template every(T...) { template

Re: syntax sugar: std.path::buildPath instead of from!"std.path".buildPath

2017-02-15 Thread ZombineDev via Digitalmars-d
On Thursday, 16 February 2017 at 00:08:12 UTC, Walter Bright wrote: On 2/15/2017 12:31 PM, Jonathan M Davis via Digitalmars-d wrote: It's one of those features that I was surprised when you couldn't do it. It was an oversight. We just never thought of it. What do you think about

Re: memcpy() comparison: C, Rust, and D

2017-01-31 Thread ZombineDev via Digitalmars-d
On Tuesday, 31 January 2017 at 02:18:23 UTC, Mike wrote: On Tuesday, 31 January 2017 at 02:01:05 UTC, Walter Bright wrote: On 1/30/2017 5:53 PM, Mike wrote: One in particular prevents me from using D, period! - https://issues.dlang.org/show_bug.cgi?id=14758 The -betterC switch is the

Re: foreach over pointers OR foreach that mutates the iterator

2017-01-26 Thread ZombineDev via Digitalmars-d
On Thursday, 26 January 2017 at 12:03:39 UTC, guest wrote: On Thursday, 26 January 2017 at 11:32:09 UTC, ZombineDev wrote: Not sure if this is a bug in isInputRange or foreach, but they should work consistently. Copy/paste from primitives.d: template isInputRange(R) { enum bool

Re: foreach over pointers OR foreach that mutates the iterator

2017-01-26 Thread ZombineDev via Digitalmars-d
On Wednesday, 25 January 2017 at 16:15:49 UTC, Las wrote: So the reference says that (when range has the properties) `foreach (e; range) { ... }` is equivalent to: for (auto __r = range; !__r.empty; __r.popFront()) { auto e = __r.front; ... } Though this isn't always true, as when I

Re: @safe containers with std.experimental.allocator

2017-01-21 Thread ZombineDev via Digitalmars-d
On Saturday, 21 January 2017 at 09:56:29 UTC, ZombineDev wrote: On Saturday, 21 January 2017 at 02:47:49 UTC, bitwise wrote: When std.experimental.allocator was created, I was under the impression it was meant to be used to make containers. But since allocate() returns void[], casts are

Re: @safe containers with std.experimental.allocator

2017-01-21 Thread ZombineDev via Digitalmars-d
On Saturday, 21 January 2017 at 02:47:49 UTC, bitwise wrote: When std.experimental.allocator was created, I was under the impression it was meant to be used to make containers. But since allocate() returns void[], casts are required before using that memory, which is unsafe. Is my only

Re: Merging two arrays in a uniform order

2017-01-13 Thread ZombineDev via Digitalmars-d-learn
On Friday, 13 January 2017 at 06:32:02 UTC, aberba wrote: Unlike array1 + array2, how can i merge arrays such that: [a1, a1, a2, a1, a1, a2, a1] //uniform order where a1 = child of array1, a2 = child of array2 using a built-in function/algorithm (is/are there anything(s) in Phobos for

Re: code.dlang.org package readme.md

2017-01-06 Thread ZombineDev via Digitalmars-d-learn
On Tuesday, 3 January 2017 at 11:51:56 UTC, Alexandru Ermicioi wrote: Hi all. How it is possible to show readme.md from github repository in code.dlang.org for a particular project? Thanks. Yes, code.dlang.org will display the readme file of the package if and only if it is named

Re: ThinLTO is there. I think that should settle the final/virtual debate

2016-12-04 Thread ZombineDev via Digitalmars-d
On Sunday, 4 December 2016 at 01:36:50 UTC, deadalnix wrote: First, presentation: https://www.youtube.com/watch?v=9OIEZAj243g Some of this is available in LLVM today, and everything presented here will be in 4.0 . The long story short: ThinLTO can do most of what LTO does but with a price

Re: What is going on with the ubuntu/debian debacle ?

2016-11-23 Thread ZombineDev via Digitalmars-d
On Tuesday, 22 November 2016 at 21:19:13 UTC, H. S. Teoh wrote: On Sat, Nov 19, 2016 at 11:03:05PM +, deadalnix via Digitalmars-d wrote: A lot of users are reporting errors on debian and ubuntu. .o generated by dmd do not link and libphobos.a is unusable. This is very bad and we should

Re: the best language I have ever met(?)

2016-11-21 Thread ZombineDev via Digitalmars-d-learn
On Monday, 21 November 2016 at 12:08:30 UTC, Patric Dexheimer wrote: On Saturday, 19 November 2016 at 00:47:00 UTC, ketmar wrote: On Saturday, 19 November 2016 at 00:28:36 UTC, Stefan Koch wrote: Please don't post non-d. it slipped accidentally, sorry. ;-) for OP: `uint[2] a = [42, 69];` is

Re: tour.dlang

2016-11-17 Thread ZombineDev via Digitalmars-d
On Thursday, 17 November 2016 at 10:53:22 UTC, Chris wrote: Sorry, no time for a PR right now. Just found this funny mistake: "In D, string, wstring, and dstring are UTF-8, UTF-16, and UTF-32 encoded strings respectfully. Their character types are char, wchar, and dchar."

Re: Namespace for a module defined by its import path

2016-11-08 Thread ZombineDev via Digitalmars-d
On Tuesday, 8 November 2016 at 18:33:13 UTC, Jeff Thompson wrote: On Tuesday, 8 November 2016 at 17:00:44 UTC, Jeff Thompson wrote: On Wednesday, 26 October 2016 at 17:12:30 UTC, Jonathan Marler wrote: On Wednesday, 26 October 2016 at 09:53:35 UTC, Jeff Thompson wrote: [...] I've thought

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread ZombineDev via Digitalmars-d
On Friday, 4 November 2016 at 17:12:42 UTC, Andrei Alexandrescu wrote: [...] $ PATH=~/bin/ldc2-1.1.0-beta3-linux-x86/bin:$PATH $ dub test --compiler=ldc2 [...] BTW, you should try out the install script (from http://dlang.org/download): curl -fsS https://dlang.org/install.sh | bash -s

Re: How to use dub with a manual ldc installation?

2016-11-04 Thread ZombineDev via Digitalmars-d
On Friday, 4 November 2016 at 17:40:05 UTC, Andrei Alexandrescu wrote: On 11/04/2016 01:12 PM, Andrei Alexandrescu wrote: So I'm working on the checkedint pull request (really need to get that in...) and was trying to get some benchmarks going with ldc. The stock ldc on mint is outdated and it

Re: Static Length Propagation of Ranges

2016-10-21 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 20 October 2016 at 12:38:40 UTC, Nordlöw wrote: On Wednesday, 19 October 2016 at 19:39:46 UTC, Nordlöw wrote: On Wednesday, 19 October 2016 at 19:01:50 UTC, Meta wrote: https://goo.gl/t9m3YK I'm actually pretty impressed that this kind of code can be written in D. Thanks! Add

Re: Static Length Propagation of Ranges

2016-10-20 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 20 October 2016 at 16:25:53 UTC, Meta wrote: On Thursday, 20 October 2016 at 13:05:05 UTC, Nordlöw wrote: On Thursday, 20 October 2016 at 12:38:40 UTC, Nordlöw wrote: ElementType!R[n] arrayN(size_t n, R)(R r) { assert(r.length == n); typeof(return) dst; import

Re: d.godbolt.org compiler explorer now has LDC too

2016-10-20 Thread ZombineDev via Digitalmars-d-announce
On Thursday, 20 October 2016 at 08:23:33 UTC, Johan Engelen wrote: https://twitter.com/mattgodbolt/status/788890061949509632 The compiler explorer at https://d.godbolt.org now also features LDC! Now you can view the assembly output of GDC and LDC side-by-side, for example:

Re: I close BIP27. I won't be pursuing BIPs anymore

2016-10-17 Thread ZombineDev via Digitalmars-d
On Monday, 17 October 2016 at 05:02:52 UTC, Walter Bright wrote: On 10/16/2016 3:17 PM, deadalnix wrote: Long story short, it si clearly a waste of time. Qualifying the process would be an understatement. Some specifically DIP27 has been written in Feb 2913, following various discussion at

Re: debugging mixins

2016-10-05 Thread ZombineDev via Digitalmars-d
On Wednesday, 5 October 2016 at 02:45:53 UTC, Stefan Koch wrote: On Tuesday, 4 October 2016 at 01:59:11 UTC, Stefan Koch wrote: On Tuesday, 4 October 2016 at 01:20:01 UTC, Manu wrote: On 4 October 2016 at 04:21, Stefan Koch via Digitalmars-d wrote: On Monday, 3

Re: :end to terminate attribute:

2016-09-28 Thread ZombineDev via Digitalmars-d
On Wednesday, 28 September 2016 at 09:48:27 UTC, ZombineDev wrote: On Wednesday, 28 September 2016 at 09:43:38 UTC, Mike Parker wrote: [...] AFAIR, last year or so, Andrei approved the proposal for attr(bool expr), eg: @nogc: // no gc code here @nogc(false): // code that's allowed to

Re: :end to terminate attribute:

2016-09-28 Thread ZombineDev via Digitalmars-d
On Wednesday, 28 September 2016 at 09:43:38 UTC, Mike Parker wrote: Let's try this again. This attribute block can be terminated by a corresponding protection attribute block: // Begin private private: void foo() {} // End private public: void bar() {} But not all attributes have a

Re: Linking D code into existing C programs

2016-09-28 Thread ZombineDev via Digitalmars-d
On Monday, 26 September 2016 at 23:32:05 UTC, Walter Bright wrote: Linking C libraries and object code into D programs has always worked easily in D. The other way around, not so well. Consider the following C program: main.c extern int foo(); void main(int argc, char* argv[])

Re: how to access struct member using [] operator?

2016-09-26 Thread ZombineDev via Digitalmars-d-learn
On Sunday, 25 September 2016 at 04:54:31 UTC, grampus wrote: Dear all For example, I have a struct struct point{int x;int y} point a; Is there an easy way to access x and y by using a["x"] and a["y"] I guess I need to overload [], but can't figure out how. Someone can help? Thank you very

Re: Argumnentation against external function operator overloading is unconvincing

2016-09-25 Thread ZombineDev via Digitalmars-d
On Sunday, 25 September 2016 at 10:58:24 UTC, pineapple wrote: It gets under my skin that length and opIndex and opSlice produce different results in phobos' ranges depending on one's current position in the range. This doesn't make sense to me, and the only reason I can conceive of it having

Re: Mir GLAS vs Intel MKL: which is faster?

2016-09-24 Thread ZombineDev via Digitalmars-d
On Saturday, 24 September 2016 at 17:46:07 UTC, Ilya Yaroshenko wrote: On Saturday, 24 September 2016 at 13:49:35 UTC, Andrei Alexandrescu wrote: On 9/24/16 9:18 AM, John Colvin wrote: On Saturday, 24 September 2016 at 12:52:09 UTC, Andrei Alexandrescu wrote: Could you also add a comparison

Re: Eh, bit faster sort

2016-09-24 Thread ZombineDev via Digitalmars-d
On Saturday, 24 September 2016 at 15:45:56 UTC, Andrei Alexandrescu wrote: On 09/24/2016 11:38 AM, Andrei Alexandrescu wrote: [...] https://issues.dlang.org/show_bug.cgi?id=16534 Andrei https://github.com/dlang/phobos/pull/4817

Re: ndslice and RC containers

2016-09-22 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 22 September 2016 at 12:38:57 UTC, Nordlöw wrote: Is ndslice' Slice() prepared for integration with containers with reference counting semantics? I wonder because according to the docs they internally store a pointer and an offset. What is that pointer supposed to point to

Re: Ah, simple solution to unittests inside templates

2016-09-18 Thread ZombineDev via Digitalmars-d
On Sunday, 18 September 2016 at 11:10:22 UTC, ZombineDev wrote: On Saturday, 17 September 2016 at 17:22:52 UTC, Andrei Alexandrescu wrote: [...] This solution is used extensively by ndslice [1] and I agree that it's quite flexible. [1]:

Re: Ah, simple solution to unittests inside templates

2016-09-18 Thread ZombineDev via Digitalmars-d
On Saturday, 17 September 2016 at 17:22:52 UTC, Andrei Alexandrescu wrote: Recall the discussion a few days ago about unittests inside templates being instantiated with the template. Often that's desirable, but sometimes not - for example when you want to generate nice ddoc unittests and avoid

Re: Template-style polymorphism in table structure

2016-09-04 Thread ZombineDev via Digitalmars-d-learn
On Sunday, 4 September 2016 at 09:55:53 UTC, data pulverizer wrote: I am trying to build a data table object with unrestricted column types. The approach I am taking is to build a generic interface BaseVector class and then a subtype GenericVector(T) which inherits from the BaseVector. I then

Re: phobos unit tests

2016-09-04 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 17:16:24 UTC, Jonathan M Davis wrote: On Saturday, September 03, 2016 16:56:08 ZombineDev via Digitalmars-d wrote: You can just enable the unittests for a single instance that you know for sure that it will be used. For example: 1) https://github.com/dlang

Re: ADL

2016-09-04 Thread ZombineDev via Digitalmars-d
On Sunday, 4 September 2016 at 01:34:47 UTC, Walter Bright wrote: On 9/3/2016 5:36 PM, Timon Gehr wrote: Does not work. Local overloads are not supported. Yeah, you're right, should have tested that: void abc(int); void def(uint); void foo() { alias func = abc; alias func =

Re: ADL

2016-09-03 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 17:05:35 UTC, Tobias M wrote: On Saturday, 3 September 2016 at 16:32:16 UTC, ZombineDev wrote: No you're wrong. There's no need for interfaces or for generic constraints. It's not static vs duck typing. It's just a method lookup issue. See for yourself:

Re: phobos unit tests

2016-09-03 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 15:58:51 UTC, Jonathan M Davis wrote: On Saturday, September 03, 2016 07:48:14 H. S. Teoh via Digitalmars-d wrote: > In any case, for now, I never put non-generic unit tests in > templates, and I reject PRs that have them. Sure, having to > copy-paste your

Re: phobos unit tests

2016-09-03 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 15:54:31 UTC, Jonathan M Davis wrote: On Saturday, September 03, 2016 15:06:33 Andrei Alexandrescu via Digitalmars-d wrote: On 9/3/16 5:36 AM, Manu via Digitalmars-d wrote: > This document: https://wiki.dlang.org/Contributing_to_Phobos > > States: "Avoid

Re: ADL

2016-09-03 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 14:05:11 UTC, Tobias M wrote: On Saturday, 3 September 2016 at 12:40:26 UTC, ZombineDev wrote: No, LINQ doesn't work because of interfaces, but because of extension methods (C#'s variant of UFCS). The IEnumerable interface defines only a single method. All the

Re: ADL

2016-09-03 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 10:33:22 UTC, Walter Bright wrote: On 9/3/2016 3:14 AM, Timon Gehr wrote: On 03.09.2016 10:37, Walter Bright wrote: None of the algorithms used in std.algorithm or elsewhere in Phobos have this particular issue. Yes they do. It is not possible to implement

Re: ADL

2016-09-03 Thread ZombineDev via Digitalmars-d
On Saturday, 3 September 2016 at 10:56:20 UTC, Tobias M wrote: On Saturday, 3 September 2016 at 10:33:22 UTC, Walter Bright wrote: I don't think it is a template issue. It's a name lookup issue. There's LINQ in C#, for example. I think it is. The problem is lookup of dependent symbols (see

Re: Is it a bug in unittest ?

2016-09-02 Thread ZombineDev via Digitalmars-d
On Thursday, 1 September 2016 at 18:11:55 UTC, angel wrote: If one creates a unittest block in a templated class (or struct), the unittest block will be multiplied per class specialization, which might turn out to be quite large number. E.g. struct A(T) { ... unittest {

Re: Low level unit test library in druntime

2016-09-01 Thread ZombineDev via Digitalmars-d
On Thursday, 1 September 2016 at 16:38:15 UTC, Dicebot wrote: On 09/01/2016 07:17 PM, ZombineDev wrote: On Thursday, 1 September 2016 at 12:06:21 UTC, Dicebot wrote: On 08/31/2016 01:01 PM, Atila Neves wrote: And never mind that any such low level library would suffer from the same problem

Re: Low level unit test library in druntime

2016-09-01 Thread ZombineDev via Digitalmars-d
On Thursday, 1 September 2016 at 12:06:21 UTC, Dicebot wrote: On 08/31/2016 01:01 PM, Atila Neves wrote: And never mind that any such low level library would suffer from the same problem unit-threaded did until dub fixed it: D can't reflect on packages so a program must be written that

Re: DIP1000

2016-08-31 Thread ZombineDev via Digitalmars-d
On Tuesday, 30 August 2016 at 16:12:19 UTC, Andrei Alexandrescu wrote: I'd like to initiate collaboration on an effort to do DIP1000 rigorously. First we need to reduce D to a bare subset that only has integers, structs, pointers, and functions. That's a working subset of actual D code. The

Re: Why D is not popular enough?

2016-08-30 Thread ZombineDev via Digitalmars-d
On Wednesday, 31 August 2016 at 01:12:10 UTC, Walter Bright wrote: On 8/30/2016 2:41 PM, mate wrote: [...] Thanks for your help! https://github.com/dlang-tour/english/pull/91 Your change just went live http://tour.dlang.org ;)

Re: std.functional.compose compilation error

2016-08-28 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 25 August 2016 at 21:01:29 UTC, Antonio Corbi wrote: On Thursday, 25 August 2016 at 14:30:00 UTC, Meta wrote: On Thursday, 25 August 2016 at 14:06:32 UTC, Antonio Corbi wrote: Hello, Trying to compile this example from Chuck Allison: ---

Re: Allows the use of part of the language keywords?

2016-08-27 Thread ZombineDev via Digitalmars-d
On Friday, 26 August 2016 at 18:58:25 UTC, Jonathan M Davis wrote: On Friday, August 26, 2016 17:59:39 Cauterite via Digitalmars-d wrote: On Friday, 26 August 2016 at 14:16:27 UTC, Brian wrote: > package application.module.user.model; I get "Error: identifier expected following '.' instead of

Re: Proper concurrent nearly lock free efficient nogc storage structures?

2016-08-27 Thread ZombineDev via Digitalmars-d-learn
On Friday, 26 August 2016 at 23:38:02 UTC, Illuminati wrote: Does D have any such thing? I'm having to recreate the wheel here and it isn't fun ;/ Getting in the way of real work ;/ Surely you would think that with the power D has such things would exist by now? Here's two popular

Re: Examples block

2016-08-21 Thread ZombineDev via Digitalmars-d
On Saturday, 20 August 2016 at 20:39:13 UTC, Engine Machine wrote: We have a unittest, what about an examples? Examples are self contained short programs, each block acts as a "main" function. One can run all the examples and spit out all the output consecutively. It also allows for more

Re: ggplotd version 1.0.0 released

2016-08-21 Thread ZombineDev via Digitalmars-d-announce
On Saturday, 20 August 2016 at 16:47:07 UTC, Edwin van Leeuwen wrote: On Saturday, 20 August 2016 at 16:37:29 UTC, Edwin van Leeuwen wrote: I just wanted to announce the 1.0.0 version release of ggplotd [1]. The main addition is support for legends. Other than that the release focused on

Re: Binderoo - we're open sourcing our binding system

2016-08-16 Thread ZombineDev via Digitalmars-d
On Tuesday, 16 August 2016 at 12:30:14 UTC, Ethan Watson wrote: https://github.com/Remedy-Entertainment/binderoo So I just announced at GDC Europe in my talk. We're open sourcing our binding system. It's currently a complete reengingeering of the system, and it's incomplete at the moment.

Re: Fact checking for my talk

2016-08-16 Thread ZombineDev via Digitalmars-d
On Monday, 15 August 2016 at 14:40:14 UTC, Chris Wright wrote: On Mon, 15 Aug 2016 06:43:11 +, ZombineDev wrote: Well, I guess it would hard for me to convince you if you don't know what Design by Introspection means. Some years ago I was on #d on freenode and someone made a reference to

Re: Fact checking for my talk

2016-08-16 Thread ZombineDev via Digitalmars-d
On Tuesday, 16 August 2016 at 06:13:18 UTC, Ethan Watson wrote: [snip] At this point, the only thing I still haven't found concrete information on is function inspection in Swift and Rust, which should be a mark against the languages if it's not easily Googlable. From what I could find,

Re: DIP1000: Scoped Pointers

2016-08-15 Thread ZombineDev via Digitalmars-d-announce
On Monday, 15 August 2016 at 10:27:00 UTC, Dicebot wrote: On Monday, 15 August 2016 at 07:19:00 UTC, lobo wrote: When was it deprecated? I use it a lot and DMD 2.071.1 gives no warning. It was planned for removal because it was very un-@safe (no escaping checks whatsoever) and as such was

Re: From the D Blog: Martin Nowak on the DMD release process

2016-08-15 Thread ZombineDev via Digitalmars-d-announce
On Monday, 15 August 2016 at 07:32:34 UTC, Ilya Yaroshenko wrote: On Monday, 15 August 2016 at 06:55:18 UTC, Suliman wrote: On Friday, 29 July 2016 at 12:09:46 UTC, Mike Parker wrote: It was time for another Core Team Update on the D Blog. This time around, Martin Nowak shares how he got

Re: DIP1000: Scoped Pointers

2016-08-15 Thread ZombineDev via Digitalmars-d-announce
On Monday, 15 August 2016 at 07:19:00 UTC, lobo wrote: On Monday, 15 August 2016 at 07:10:00 UTC, ZombineDev wrote: On Monday, 15 August 2016 at 04:56:07 UTC, Joseph Rushton Wakeling wrote: On Sunday, 14 August 2016 at 10:11:25 UTC, Guillaume Chatelet wrote: Isn't it what a scoped class is

Re: DIP1000: Scoped Pointers

2016-08-15 Thread ZombineDev via Digitalmars-d-announce
On Monday, 15 August 2016 at 04:56:07 UTC, Joseph Rushton Wakeling wrote: On Sunday, 14 August 2016 at 10:11:25 UTC, Guillaume Chatelet wrote: Isn't it what a scoped class is supposed to provide? class Rnd {} void foo() { scope rnd = new Rnd; // reference semantic and stack allocated }

Re: Fact checking for my talk

2016-08-15 Thread ZombineDev via Digitalmars-d
On Sunday, 14 August 2016 at 23:50:23 UTC, Enamex wrote: On Sunday, 14 August 2016 at 18:57:14 UTC, ZombineDev wrote: Ok, maybe it's a matter of taste and opinion, but I consider them to be bad design (idea-wise, not implementation-wise) because they're sort of the opposite of DbI and

Re: Fact checking for my talk

2016-08-14 Thread ZombineDev via Digitalmars-d
On Sunday, 14 August 2016 at 18:17:58 UTC, Enamex wrote: On Sunday, 14 August 2016 at 18:05:12 UTC, ZombineDev wrote: [...] OTOH, they're used in more places in their standard library, than mixins are used in Phobos, because of the lack of variadic templates, because in Rust you can't

Re: Fact checking for my talk

2016-08-14 Thread ZombineDev via Digitalmars-d
On Saturday, 13 August 2016 at 12:47:40 UTC, Ethan Watson wrote: So I fly to Cologne tomorrow morning, and will be presenting on Tuesday. Got my talk written, gave it a dry run at the office and got feedback on it. Seems to be in a good spot. But before I go up and feature compare to other

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-11 Thread ZombineDev via Digitalmars-d
On Thursday, 11 August 2016 at 08:07:08 UTC, Jacob Carlborg wrote: On 10/08/16 22:36, Dicebot wrote: http://forum.dlang.org/post/pqsiqmkxenrwxoruz...@forum.dlang.org The first DIP has just landed into the new queue. It is a proposal from language authors and thus it bypasses usual nitpicking

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-11 Thread ZombineDev via Digitalmars-d
On Thursday, 11 August 2016 at 07:13:34 UTC, ZombineDev wrote: On Wednesday, 10 August 2016 at 20:36:38 UTC, Dicebot wrote: http://forum.dlang.org/post/pqsiqmkxenrwxoruz...@forum.dlang.org The first DIP has just landed into the new queue. It is a proposal from language authors and thus it

Re: DIP1000: Scoped Pointers (Discussion)

2016-08-11 Thread ZombineDev via Digitalmars-d
On Wednesday, 10 August 2016 at 20:36:38 UTC, Dicebot wrote: http://forum.dlang.org/post/pqsiqmkxenrwxoruz...@forum.dlang.org The first DIP has just landed into the new queue. It is a proposal from language authors and thus it bypasses usual nitpicking process and proceeds straight to

Re: Windows 10 Linux Bash Shell: Compiling linux app on windows

2016-08-06 Thread ZombineDev via Digitalmars-d-learn
On Saturday, 6 August 2016 at 17:18:51 UTC, Andre Pany wrote: Hi, I play around with the new windows 10 feature to run a linux sub system on windows. -> Installing dmd is working fine with the command curl -fsS https://dlang.org/install.sh | bash -s dmd -> Activating dmd is also working

Re: [DIP] In-place struct initialization

2016-08-05 Thread ZombineDev via Digitalmars-d
On Thursday, 4 August 2016 at 08:23:59 UTC, ketmar wrote: On Thursday, 4 August 2016 at 07:22:27 UTC, ZombineDev wrote: On Thursday, 4 August 2016 at 05:15:56 UTC, Patrick Schluter wrote: This said, in C++ compound initialiser are implemented in some compiler as extension and are really

Re: The Computer Language Benchmarks Game

2016-08-04 Thread ZombineDev via Digitalmars-d
On Thursday, 4 August 2016 at 20:15:35 UTC, Ali Çehreli wrote: We don't hear about the following site here any more: http://benchmarksgame.alioth.debian.org/ How relevant is that site for us? Should D be represented there as well? Would someone (you? :p) be interested in adding D to the

Re: [DIP] In-place struct initialization

2016-08-04 Thread ZombineDev via Digitalmars-d
On Thursday, 4 August 2016 at 05:15:56 UTC, Patrick Schluter wrote: On Wednesday, 3 August 2016 at 21:35:58 UTC, ZombineDev wrote: On Wednesday, 3 August 2016 at 20:30:07 UTC, deadalnix wrote: On Sunday, 31 July 2016 at 14:38:33 UTC, Lodovico Giaretta wrote: I support this idea of extending

Re: [DIP] In-place struct initialization

2016-08-03 Thread ZombineDev via Digitalmars-d
On Wednesday, 3 August 2016 at 20:30:07 UTC, deadalnix wrote: On Sunday, 31 July 2016 at 14:38:33 UTC, Lodovico Giaretta wrote: I support this idea of extending curly-brace initializers. It would be very useful and less ambiguous than parenthesized initializers. Curly braces are already

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread ZombineDev via Digitalmars-d
On Friday, 29 July 2016 at 17:57:04 UTC, Adam D. Ruppe wrote: On Friday, 29 July 2016 at 17:53:35 UTC, ZombineDev wrote: Is this what you are looking for: http://www.lunesu.com/uploads/ModernCOMProgramminginD.pdf ? that link isn't working for me but i think this is the same content

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread ZombineDev via Digitalmars-d
On Friday, 29 July 2016 at 18:26:18 UTC, Nick Sabalausky wrote: On 07/29/2016 01:53 PM, ZombineDev wrote: Is this what you are looking for: http://www.lunesu.com/uploads/ModernCOMProgramminginD.pdf ? Ah, yes, that's it, thanks. Glad I could help :)

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread ZombineDev via Digitalmars-d
On Friday, 29 July 2016 at 17:45:58 UTC, Nick Sabalausky wrote: A few years ago there was a presentation, or maybe only slides were posted (I don't recall), that demonstrated D putting C++ and even C# to absolute shame for interfacing with COM using some closed in-house D library. I'm trying

Re: Verifying the arguments of a function with ref parameters?

2016-07-28 Thread ZombineDev via Digitalmars-d-learn
On Thursday, 28 July 2016 at 21:49:00 UTC, pineapple wrote: On Thursday, 28 July 2016 at 20:28:39 UTC, jdfgjdf wrote: "Parameters!dgref.init" does not yield a reference. The real error is not displayed. In a normal context it would be "stuff is not callable with" What would be a better

Re: Long term @nogc / allocators usage

2016-07-25 Thread ZombineDev via Digitalmars-d
On Sunday, 24 July 2016 at 17:04:43 UTC, Seb wrote: On Sunday, 24 July 2016 at 15:34:55 UTC, Lodovico Giaretta wrote: DISCLAIMER: although I've been occasionally using D for a lot of time, I only recently started to follow the forums and use it intensively, so I may miss part of the history /

Re: Is there a way to "see" source code generated by templates after a compile?

2016-07-20 Thread ZombineDev via Digitalmars-d-learn
On Tuesday, 19 July 2016 at 20:19:53 UTC, WhatMeWorry wrote: On Sunday, 17 July 2016 at 05:57:52 UTC, WhatMeWorry wrote: I don't suppose there's a way to "see" source code generated by templates after a compile but before execution? Or does the compiler generate it to a lower level on the

Re: UDAs on enum members

2016-07-16 Thread ZombineDev via Digitalmars-d
On Thursday, 14 July 2016 at 07:05:08 UTC, Jacob Carlborg wrote: On 2016-07-13 13:57, Tomer Filiba wrote: It would be really nice if I could put UDAs on enum members as well, e.g., I think it should be supported, if nothing else for "turtles all the way"/completeness. I agree. Another

Re: Go's march to low-latency GC

2016-07-09 Thread ZombineDev via Digitalmars-d
On Saturday, 9 July 2016 at 21:25:34 UTC, Dejan Lekic wrote: On Saturday, 9 July 2016 at 17:41:59 UTC, Andrei Alexandrescu wrote: I wish we could amass the experts able to make similar things happen for us. I humbly believe it is not just about amassing experts, but also making it easy to do

Re: Announcing new DIP handling process

2016-07-09 Thread ZombineDev via Digitalmars-d-announce
On Saturday, 9 July 2016 at 21:21:54 UTC, Dicebot wrote: On 07/09/2016 09:11 PM, ZombineDev wrote: Can the new DIP process be used to evaluate library proposals? That way a high level design could be fleshed out and approved before the contributor goes too far with implementing a design which

Re: Announcing new DIP handling process

2016-07-09 Thread ZombineDev via Digitalmars-d-announce
On Saturday, 9 July 2016 at 12:56:48 UTC, Dicebot wrote: After quite some preliminary discussions and preparations, new D Improvement Proposals handling process is finally happenning. Please read description and explanation here: https://github.com/dlang/DIPs ## Rationale There are two main

Re: Second class pointers

2016-07-08 Thread ZombineDev via Digitalmars-d-learn
On Friday, 8 July 2016 at 06:17:43 UTC, Nicholas Wilson wrote: On Friday, 8 July 2016 at 05:53:21 UTC, Nicholas Wilson wrote: So as part of my effort to get D running on GPUs I need to make a "second class" pointer type that I can alter in the backend of LDC to the correct address space. to

Re: First dmd nightly shipping with dub

2016-07-06 Thread ZombineDev via Digitalmars-d-announce
On Wednesday, 6 July 2016 at 09:28:44 UTC, Martin Nowak wrote: This is the first nightly dmd build that includes dub binaries. http://nightlies.dlang.org/dmd-2016-07-06/ They will also be part of the upcoming 2.072.y releases. We will sync the dub and dmd release cycles, but not the versioning.

Re: Should templates have the instantiating scope's protection access rights?

2016-07-06 Thread ZombineDev via Digitalmars-d
On Wednesday, 6 July 2016 at 08:45:25 UTC, Tofu Ninja wrote: On Wednesday, 6 July 2016 at 08:05:38 UTC, Lodovico Giaretta wrote: Thinking about this, maybe the choice about attributes should be made by the user, so that if I want to give emplace access to private ctors of my structs, I have to

Re: Should templates have the instantiating scope's protection access rights?

2016-07-06 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 July 2016 at 19:00:14 UTC, Tofu Ninja wrote: On Tuesday, 5 July 2016 at 18:48:05 UTC, Tofu Ninja wrote: Also there could be code re-use wherever the access rights match. So if an argument is marked as opt-in, only the instantiation scope's access to that argument would need to be

Re: Battle-plan for CTFE

2016-07-06 Thread ZombineDev via Digitalmars-d-announce
On Tuesday, 5 July 2016 at 21:11:39 UTC, deadalnix wrote: On Monday, 4 July 2016 at 07:29:49 UTC, ZombineDev wrote: Nice work! Any chance that you could also improve AliasSeq algorithms, like those in std.meta to compile faster and use less memory during compilation? Or is that too different

Re: D is crap

2016-07-05 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 July 2016 at 12:40:57 UTC, ketmar wrote: On Tuesday, 5 July 2016 at 11:27:33 UTC, ZombineDev wrote: https://dlang.org/spec/simd.html and the list of intrinsics core.simd is completely unusable on any 32-bit targets except hipsteros. Why? I only found this issue:

Re: D is crap

2016-07-05 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 July 2016 at 12:59:27 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 5 July 2016 at 11:27:33 UTC, ZombineDev wrote: Have you put any enhancement request on https://issues.dlang.org or written a DIP? If not, I can guarantee with almost 100% that it will not get worked because no one

Re: D is crap

2016-07-05 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 July 2016 at 09:51:01 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 5 July 2016 at 09:23:42 UTC, ZombineDev wrote: https://gist.github.com/9il/a167e56d7923185f6ce253ee14969b7f https://gist.github.com/9il/58c1b80110de2db5f2eff6999346a928 available today with LDC ;) I meant good

Re: D is crap

2016-07-05 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 July 2016 at 06:44:55 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 5 July 2016 at 06:38:18 UTC, ketmar wrote: On Tuesday, 5 July 2016 at 06:27:17 UTC, Ola Fosheim Grøstad wrote: Sounds like a good project. A non-optimizing backend that retains type information and asserts could be

Re: Initializing static array with contents of (static and dynamic) arrays

2016-07-04 Thread ZombineDev via Digitalmars-d-learn
On Monday, 4 July 2016 at 14:31:41 UTC, Johannes Loher wrote: In a project I am currently working on, I have lot's of code of the following form: static immutable ubyte[4] sigma0 = [101, 120, 112, 97]; static immutable ubyte[4] sigma1 = [110, 100, 32, 51]; static immutable ubyte[4] sigma2

Re: Battle-plan for CTFE

2016-07-04 Thread ZombineDev via Digitalmars-d-announce
On Monday, 4 July 2016 at 07:29:49 UTC, ZombineDev wrote: On Monday, 4 July 2016 at 01:54:29 UTC, Stefan Koch wrote: On Thursday, 30 June 2016 at 14:26:29 UTC, Stefan Koch wrote: On Thursday, 30 June 2016 at 14:17:30 UTC, Timon Gehr wrote: Sorry, I had missed this. I see you were able to

Re: Battle-plan for CTFE

2016-07-04 Thread ZombineDev via Digitalmars-d-announce
On Monday, 4 July 2016 at 01:54:29 UTC, Stefan Koch wrote: On Thursday, 30 June 2016 at 14:26:29 UTC, Stefan Koch wrote: On Thursday, 30 June 2016 at 14:17:30 UTC, Timon Gehr wrote: Sorry, I had missed this. I see you were able to make progress. It's fine. Honestly the hardest thing was to

Re: Stacking policies

2016-07-02 Thread ZombineDev via Digitalmars-d
On Saturday, 2 July 2016 at 21:37:12 UTC, ZombineDev wrote: On Saturday, 2 July 2016 at 20:48:51 UTC, Andrei Alexandrescu wrote: So I'm working on this checked integral thing and starting to really get into the possibilities offered by DbI. One core operation is "stacking" two policies on top

Re: Stacking policies

2016-07-02 Thread ZombineDev via Digitalmars-d
On Saturday, 2 July 2016 at 20:48:51 UTC, Andrei Alexandrescu wrote: So I'm working on this checked integral thing and starting to really get into the possibilities offered by DbI. One core operation is "stacking" two policies on top of each other, i.e. an operation is first offered to the

Re: Does a Interpretation-Engine fit in phobos ?

2016-06-30 Thread ZombineDev via Digitalmars-d
On Thursday, 30 June 2016 at 14:14:41 UTC, Wyatt wrote: On Thursday, 30 June 2016 at 10:36:44 UTC, qznc wrote: Ok, seriously, it sounds like an awesome feat, but I don't think it is necessary to put it into Phobos. First, a dub package, please. Agree. Does Java even have something like

Re: Does a Interpretation-Engine fit in phobos ?

2016-06-30 Thread ZombineDev via Digitalmars-d
On Thursday, 30 June 2016 at 10:28:03 UTC, Stefan Koch wrote: Hi, I recently had a breakthrough in my CTFE work. Though because habits die hard. I am writing the bytecode-engine in a CTFEable style. Therefore I can be used as a quite comfortable IR for CTFE things as well. It should be

Re: Minor feature request

2016-06-28 Thread ZombineDev via Digitalmars-d
On Tuesday, 28 June 2016 at 15:03:01 UTC, Steven Schveighoffer wrote: On 6/28/16 10:07 AM, Ola Fosheim Grøstad wrote: On Tuesday, 28 June 2016 at 13:50:42 UTC, Steven Schveighoffer wrote: On 6/28/16 7:35 AM, Ola Fosheim Grøstad wrote: alias func = (int i) => i*i; ? Is that valid in the

Re: Optimizations and performance

2016-06-26 Thread ZombineDev via Digitalmars-d
On Sunday, 26 June 2016 at 23:27:41 UTC, Jadbox wrote: On Saturday, 25 June 2016 at 16:05:08 UTC, ZombineDev wrote: Overall DMD completes mandel.b for 75.5% of the time of the previous version, LDC for 62.6% and GDC for 88.1%. The code is 64.9% of the original (in terms of LOC). This is what

Re: Optimizations and performance

2016-06-25 Thread ZombineDev via Digitalmars-d
On Friday, 17 June 2016 at 16:51:04 UTC, Jack Stouffer wrote: On Wednesday, 8 June 2016 at 22:19:47 UTC, Bauss wrote: D definitely needs some optimizations, I mean look at its benchmarks compared to other languages: https://github.com/kostya/benchmarks Welp, I tried making it faster and I

Re: Project Highlight: The PowerNex Kernel

2016-06-25 Thread ZombineDev via Digitalmars-d-announce
On Friday, 24 June 2016 at 21:36:27 UTC, Wild wrote: On Friday, 24 June 2016 at 14:11:43 UTC, Mike Parker wrote: On Friday, 24 June 2016 at 14:09:12 UTC, Mike Parker wrote: Not that long ago, Dan Printzell announced his D OS Kernel, PowerNex [1], in this forum. It is now the subject of the

  1   2   3   4   5   >