Re: Making recursively-defined traits iterative using `static foreach`

2018-03-10 Thread Nordlöw via Digitalmars-d
On Saturday, 10 March 2018 at 09:47:55 UTC, Nordlöw wrote: static if (V[0] != Vi) { enum allSameIterative = false; } Perhaps even better to do static if (!is(typeof(allSameIterative) == bool) && // not yet defined

Re: LDC / BetterC / _d_run_main

2018-03-10 Thread Richard via Digitalmars-d-learn
On Saturday, 10 March 2018 at 07:54:33 UTC, Mike Franklin wrote: On Saturday, 10 March 2018 at 02:25:38 UTC, Richard wrote: Hi, I've been trying to see if I can get an mbed project to work with Dlang basically compiling D code for use on a Cortex-M Proccessor You might be interested in the

Why Pay For Learning a Foreign Language?

2018-03-10 Thread Globibo via Digitalmars-d-learn
A major rationale behind paying to learn a new foreign language in a good language school is to enjoy the prospect of greater job opportunity and an opportunity to earn more money. But is that perception really true? Will learning a new language enable a person to earn higher salary than

Re: Making recursively-defined traits iterative using `static foreach`

2018-03-10 Thread Nordlöw via Digitalmars-d
On Saturday, 10 March 2018 at 09:47:55 UTC, Nordlöw wrote: Now that we have `static foreach` I just realized we can start... My recent definition now looks like template allSameTypeIterative(V...) // TODO restrict `V` to types only { static if (V.length <= 1) { enum

What principle difference between structure and Tuple?

2018-03-10 Thread Suliman via Digitalmars-d-learn
writeln(is(Tuple!(string, int) == struct)); // true What is real user case where I should use Tuple instead of Struct?

Re: State of D 2018 Survey

2018-03-10 Thread Johannes Loher via Digitalmars-d-announce
Am 28.02.2018 um 14:41 schrieb Mike Parker: > About a month ago, Sebastian Wilzbach sent an email out to a few of the > core D folks asking for feedback on a survey he had put together. He > thought it would be useful for the Foundation to use in order to make > decisions about where to expend

Re: Making recursively-defined traits iterative using `static foreach`

2018-03-10 Thread Nordlöw via Digitalmars-d
On Saturday, 10 March 2018 at 13:30:18 UTC, Nordlöw wrote: On Saturday, 10 March 2018 at 09:47:55 UTC, Nordlöw wrote: Now that we have `static foreach` I just realized we can start... My recent definition now looks like template allSameTypeIterative(V...) // TODO restrict `V` to types only {

Re: DUB and Gtk-d reduce size of huge executable, build dynamic dependencies

2018-03-10 Thread Gerald via Digitalmars-d-learn
On Wednesday, 7 March 2018 at 10:51:49 UTC, CSim wrote: Hi, I'm trying to decide whether it is better to use DLang for Gtk development or Vala/Genie. When I make a simple Vala/Genie Gtk executable the file is tiny whereas the DLang file is huge. First I used the default Dub build and the

[Issue 18586] New: Eponymous mixin templates

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18586 Issue ID: 18586 Summary: Eponymous mixin templates Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1

Re: dpldocs now has cross-package search (experimental)

2018-03-10 Thread Martin Tschierschke via Digitalmars-d-announce
On Saturday, 10 March 2018 at 00:09:18 UTC, Adam D. Ruppe wrote: Looking for http libs? Behold: http://search.dpldocs.info/?q=http Oh my. Eats 2 GB of ram but with the newest patrons I sprung for the beefier host. Only searches projects already on the

Re: LDC / BetterC / _d_run_main

2018-03-10 Thread Uknown via Digitalmars-d-learn
On Saturday, 10 March 2018 at 12:00:12 UTC, Richard wrote: On Saturday, 10 March 2018 at 07:54:33 UTC, Mike Franklin wrote: On Saturday, 10 March 2018 at 02:25:38 UTC, Richard wrote: [snip] Based on the above this seems to work fine so I'll use this since it's the simplest option. ```

Re: Embedded Linux really needs Dlang for the IOT market

2018-03-10 Thread dangbinghoo via Digitalmars-d
On Friday, 9 March 2018 at 14:30:44 UTC, Radu wrote: On Friday, 9 March 2018 at 11:35:58 UTC, aberba wrote: [...] For LDC on ubuntu is is pretty straight forward 1. Get cross tools for ARM, let's say ARM HF (hardware floating point) [...] 2. Install LDC 3. Build cross libraries for

Re: LDC / BetterC / _d_run_main

2018-03-10 Thread Richard via Digitalmars-d-learn
On Saturday, 10 March 2018 at 10:57:05 UTC, Johan Engelen wrote: On Saturday, 10 March 2018 at 07:54:33 UTC, Mike Franklin wrote: On Saturday, 10 March 2018 at 02:25:38 UTC, Richard wrote: Hi, I've been trying to see if I can get an mbed project to work with Dlang basically compiling D code

Re: Vibe.d web interface tutorial

2018-03-10 Thread Martin Tschierschke via Digitalmars-d-announce
On Friday, 9 March 2018 at 16:34:52 UTC, aberba wrote: On Friday, 9 March 2018 at 16:32:28 UTC, aberba wrote: New blog post for the learning audience aberba.com/2018/using-vibe-d-web-interface http://aberba.com/2018/using-vibe-d-web-interface Thank you! I linke it.

Re: State of D 2018 Survey

2018-03-10 Thread rumbu via Digitalmars-d-announce
On Saturday, 10 March 2018 at 14:24:42 UTC, Johannes Loher wrote: Is there a way to directly view the results without taking the survey again? https://dlang.typeform.com/report/H1GTak/PY9NhHkcBFG0t6ig

Re: Embedded Linux really needs Dlang for the IOT market

2018-03-10 Thread Martin Tschierschke via Digitalmars-d
On Friday, 9 March 2018 at 12:41:52 UTC, Binghoo Dang wrote: On Friday, 9 March 2018 at 09:12:28 UTC, Radu wrote: [...] I'm working in BAS(Building Automation System) sector, and I use Dlang daily for some advance products targeting ARM/Mips boards. [...] That's great, it looks that

Re: dpldocs now has cross-package search (experimental)

2018-03-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 10 March 2018 at 16:03:39 UTC, Martin Tschierschke wrote: Cool, and if you are in the mood of using only arsd, for example find an example for a trigger on mouse request: http://search.dpldocs.info/search-docs.html?searchTerm=arsd+mouse Yup. You can also search inside a

[Issue 18587] New: Context pointer not set for delegate template parameter when declared in struct body

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18587 Issue ID: 18587 Summary: Context pointer not set for delegate template parameter when declared in struct body Product: D Version: D2 Hardware: x86 OS: Windows

Re: dpldocs now has cross-package search (experimental)

2018-03-10 Thread Martin Tschierschke via Digitalmars-d-announce
On Saturday, 10 March 2018 at 16:35:56 UTC, Adam D. Ruppe wrote: On Saturday, 10 March 2018 at 16:03:39 UTC, Martin Tschierschke wrote: Cool, and if you are in the mood of using only arsd, for example find an example for a trigger on mouse request:

Re: Compile-time variadic equality

2018-03-10 Thread Nordlöw via Digitalmars-d-learn
On Friday, 9 March 2018 at 22:13:39 UTC, Simen Kjærås wrote: static if (allEqual!(staticMap!(ElementEncodingType, Rs))) { // compare Rs byCodeUnit } NoDuplicates!V.length == 1 BTW, `NoDuplicates` can handle both types and values (mixed) opposite to my `allSame` and `allSameType` defined

Re: dpldocs now has cross-package search (experimental)

2018-03-10 Thread Nordlöw via Digitalmars-d-announce
On Saturday, 10 March 2018 at 00:09:18 UTC, Adam D. Ruppe wrote: Looking for http libs? Behold: http://search.dpldocs.info/?q=http Nice!

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC on the priority list? who cares what 'the majority' want... I mean really. stuff em! (ohh... that was in jest.. don't take that

Re: Vision document for H1 2018

2018-03-10 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC on the priority list? 1. The vision document was started before the survey and the survey isn't closed, so the survey results don't

Re: Vision document for H1 2018

2018-03-10 Thread Aurélien Plazzotta via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: On Friday, 9 March 2018 at 21:43:53 UTC, Andrei Alexandrescu wrote: Hello, the vision document of the Founation for the first six months of 2018 is here: https://wiki.dlang.org/Vision/2018H1 According to the State of D Survey, 71% of

Re: Vision document for H1 2018

2018-03-10 Thread Dukc via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC on the priority list? I believe it's because it's so important for the 29% who care. If you're doing an module for project written in

FALSE programming language: D implementation

2018-03-10 Thread snowCat via Digitalmars-d
Recently, the task of implementing the FALSE programming language on D has come up and I have faced the problem of splitting the FALSE expression into a list of strings from its typical elements: blocks of comments, numbers, strings and operators. How to properly implement such a partition,

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Saturday, 10 March 2018 at 11:45:25 UTC, rumbu wrote: I'm talking about the D Foundation priority list, not about the open source community surrounding it. I have nothing against betterC, the community is free to work on it, but I don't understand why it's a *priority* for the D

Making recursively-defined traits iterative using `static foreach`

2018-03-10 Thread Nordlöw via Digitalmars-d
Now that we have `static foreach` I just realized we can start making recursive implementations of traits such as template allSame(V...) if (isExpressions!V) { static if (V.length <= 1) { enum allSame = true; } else static if (V.length & 1) // odd count {

Re: Vision document for H1 2018

2018-03-10 Thread rumbu via Digitalmars-d-announce
On Saturday, 10 March 2018 at 11:07:56 UTC, psychoticRabbit wrote: On Saturday, 10 March 2018 at 10:47:09 UTC, Dylan Graham wrote: Yeah. Why should D worry about tying itself into C when it can't even interface with itself through DLLs? A reasonable point. But.. in any case.. people work

Re: Compile-time variadic equality

2018-03-10 Thread Nordlöw via Digitalmars-d-learn
On Saturday, 10 March 2018 at 08:49:19 UTC, Nordlöw wrote: How do I most conveniently merge these into one single `allSame` that can operate on mixtures of values and types? I found the privately defined `isSame` in std.meta that does this.

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: On Friday, 9 March 2018 at 21:43:53 UTC, Andrei Alexandrescu wrote: Hello, the vision document of the Founation for the first six months of 2018 is here: https://wiki.dlang.org/Vision/2018H1 According to the State of D Survey, 71% of

Re: LDC / BetterC / _d_run_main

2018-03-10 Thread Johan Engelen via Digitalmars-d-learn
On Saturday, 10 March 2018 at 07:54:33 UTC, Mike Franklin wrote: On Saturday, 10 March 2018 at 02:25:38 UTC, Richard wrote: Hi, I've been trying to see if I can get an mbed project to work with Dlang basically compiling D code for use on a Cortex-M Proccessor You might be interested in the

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Saturday, 10 March 2018 at 10:47:09 UTC, Dylan Graham wrote: Yeah. Why should D worry about tying itself into C when it can't even interface with itself through DLLs? A reasonable point. But.. in any case.. people work on what they are motivated to work on. That's really all there is

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Saturday, 10 March 2018 at 11:45:25 UTC, rumbu wrote: I'm talking about the D Foundation priority list, not about the open source community surrounding it. I have nothing against betterC, the community is free to work on it, but I don't understand why it's a *priority* for the D foundation.

[Issue 17892] Scope analysis with -dip1000 fails for templated structs

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17892 --- Comment #1 from Walter Bright --- https://github.com/dlang/dmd/pull/7993 --

Re: Vision document for H1 2018

2018-03-10 Thread rumbu via Digitalmars-d-announce
On Friday, 9 March 2018 at 21:43:53 UTC, Andrei Alexandrescu wrote: Hello, the vision document of the Founation for the first six months of 2018 is here: https://wiki.dlang.org/Vision/2018H1 According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC

Re: Do forum posts use any markup language?

2018-03-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 10 March 2018 at 18:02:48 UTC, Bogdan wrote: I'd like to distinguish between regular text and code, maybe have quotes, etc. You can write with email plain text conventions. The forum software recognizes just some of it, but the readers will know what you mean. So like quote

Re: Making recursively-defined traits iterative using `static foreach`

2018-03-10 Thread Simen Kjærås via Digitalmars-d
On Saturday, 10 March 2018 at 13:30:18 UTC, Nordlöw wrote: On Saturday, 10 March 2018 at 09:47:55 UTC, Nordlöw wrote: Now that we have `static foreach` I just realized we can start... My recent definition now looks like template allSameTypeIterative(V...) // TODO restrict `V` to types only {

Consume binary files

2018-03-10 Thread Bogdan via Digitalmars-d-learn
I'm working on a pet project which involves reading various structure types, or just multi-byte values (uin32_t, uint16_t, etc) from files, or just from ubyte arrays. Here's how I've been dealing with some of these situations so far: ``` /// Helper structure used to read each of the file

Do forum posts use any markup language?

2018-03-10 Thread Bogdan via Digitalmars-d-learn
I'd like to distinguish between regular text and code, maybe have quotes, etc.

Re: dpldocs now has cross-package search (experimental)

2018-03-10 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 10 March 2018 at 16:49:44 UTC, Martin Tschierschke wrote: There is a bug, I just tried "mouse event" in the search box and got a strange result. oh yikes a recursive javascript redirect. fixed that. The search still kinda sucks, but it is better than nothing. If you put in a

Re: Consume binary files

2018-03-10 Thread Bogdan via Digitalmars-d-learn
... I accidentally posted that before it was complete because I kept pressing TAB in order to indent ... Anyway, I'd like to know if there exists such a thing as ``` int a = stream.ReadInt32(); ```

Re: Consume binary files

2018-03-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, March 10, 2018 18:31:23 Bogdan via Digitalmars-d-learn wrote: > ... I accidentally posted that before it was complete because I > kept pressing TAB in order to indent ... > > Anyway, I'd like to know if there exists such a thing as > > ``` > int a = stream.ReadInt32(); > ```

UFCS in generic libraries, silent hijacking, and compile errors.

2018-03-10 Thread aliak via Digitalmars-d-learn
What are the recommended guidelines for using/not using UFCS in writing generic libraries? I ask because if you have an internal generic free function that you use on types in a generic algorithm via ufcs, then everything works fine until the type being operated on has a member function with

Re: Embedded Linux really needs Dlang for the IOT market

2018-03-10 Thread aberba via Digitalmars-d
On Saturday, 10 March 2018 at 19:52:50 UTC, Cym13 wrote: On Friday, 9 March 2018 at 11:35:58 UTC, aberba wrote: On Friday, 9 March 2018 at 09:12:28 UTC, Radu wrote: [...] A tutorial or guide on "cross tool-chain for your system" will be very helpful. Say in ARM. Not that obvious to someone

[Issue 16206] traits getOverloads fails when one of the overload is a templatized function

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16206 Adam D. Ruppe changed: What|Removed |Added CC|

Re: UFCS in generic libraries, silent hijacking, and compile errors.

2018-03-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, March 10, 2018 21:50:42 aliak via Digitalmars-d-learn wrote: > What are the recommended guidelines for using/not using UFCS in > writing generic libraries? > > I ask because if you have an internal generic free function that > you use on types in a generic algorithm via ufcs, then

Re: Implementing tail-const in D

2018-03-10 Thread sclytrack via Digitalmars-d
On Monday, 29 January 2018 at 13:07:05 UTC, Simen Kjærås wrote: On Thursday, 25 January 2018 at 21:33:10 UTC, Simen Kjærås wrote: On Thursday, 25 January 2018 at 19:54:55 UTC, H. S. Teoh wrote: In fact, if the standard implementation of opHeadMutable is basically the same across all types (or

Re: Forwarding arguments through a std.algorithm.map

2018-03-10 Thread ag0aep6g via Digitalmars-d-learn
On 03/10/2018 09:48 PM, Nordlöw wrote: If I have a function     bool f(Rs...)(Rs rs) is it somehow possible to map and forward all its arguments `rs` to another function     bool g(Rs...)(Rs rs); through a call to some map-and-forward-like-function `forwardMap` in something like    

Re: FALSE programming language: D implementation

2018-03-10 Thread Rémy Mouëza via Digitalmars-d
On Saturday, 10 March 2018 at 11:47:48 UTC, snowCat wrote: Recently, the task of implementing the FALSE programming language on D has come up and I have faced the problem of splitting the FALSE expression into a list of strings from its typical elements: blocks of comments, numbers, strings

Re: Embedded Linux really needs Dlang for the IOT market

2018-03-10 Thread Cym13 via Digitalmars-d
On Friday, 9 March 2018 at 11:35:58 UTC, aberba wrote: On Friday, 9 March 2018 at 09:12:28 UTC, Radu wrote: On Friday, 9 March 2018 at 03:09:16 UTC, dangbinghoo wrote: [...] I'm working in BAS(Building Automation System) sector, and I use Dlang daily for some advance products targeting

Granular GC

2018-03-10 Thread Amorphorious via Digitalmars-d
The GC sucks because it requires one to use it or jump through many hoops and unsafe techniques to get away from it. It would be better if we simply had more control over the GC. 1. Allow for granular GC - Multiple independent GC's that handle independent parts of the D ecosystem each of

[Issue 18588] New: alias this inside named mixin template

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18588 Issue ID: 18588 Summary: alias this inside named mixin template Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal

Re: Generic Property Implementation

2018-03-10 Thread Simen Kjærås via Digitalmars-d-learn
On Friday, 9 March 2018 at 23:34:56 UTC, Mike Franklin wrote: On Friday, 9 March 2018 at 14:46:04 UTC, Simen Kjærås wrote: 1) Wrong return type: unittest { S s; auto a = s.field; // Fails - typeof(a) is Property!((get) => this.n, (set) => this.n = set) assert(is(typeof(a) ==

Re: Consume binary files

2018-03-10 Thread Bogdan via Digitalmars-d-learn
On Saturday, 10 March 2018 at 18:49:48 UTC, Jonathan M Davis wrote: Check out https://dlang.org/phobos/std_bitmanip.html#peek https://dlang.org/phobos/std_bitmanip.html#read They can be used to read integral values from a range of ubytes. You can use either std.file.read or std.stdio.File

Forwarding arguments through a std.algorithm.map

2018-03-10 Thread Nordlöw via Digitalmars-d-learn
If I have a function bool f(Rs...)(Rs rs) is it somehow possible to map and forward all its arguments `rs` to another function bool g(Rs...)(Rs rs); through a call to some map-and-forward-like-function `forwardMap` in something like bool f(Rs...)(Rs rs) { alias

Re: Consume binary files

2018-03-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, March 10, 2018 19:22:43 Bogdan via Digitalmars-d-learn wrote: > On Saturday, 10 March 2018 at 18:49:48 UTC, Jonathan M Davis > > wrote: > > Check out > > > > https://dlang.org/phobos/std_bitmanip.html#peek > > https://dlang.org/phobos/std_bitmanip.html#read > > > > They can be used to

Re: Consume binary files

2018-03-10 Thread Mark Fisher via Digitalmars-d-learn
On Saturday, 10 March 2018 at 18:26:43 UTC, Bogdan wrote: I'm working on a pet project which involves reading various structure types, or just multi-byte values (uin32_t, uint16_t, etc) from files, or just from ubyte arrays. I think you should use ranged types.

Re: Vision document for H1 2018

2018-03-10 Thread Meta via Digitalmars-d-announce
On Friday, 9 March 2018 at 21:43:53 UTC, Andrei Alexandrescu wrote: Hello, the vision document of the Founation for the first six months of 2018 is here: https://wiki.dlang.org/Vision/2018H1 In addition to the expected items, we have a new top-level priority - locking down the language

Re: Making recursively-defined traits iterative using `static foreach`

2018-03-10 Thread Nordlöw via Digitalmars-d
On Saturday, 10 March 2018 at 18:26:48 UTC, Simen Kjærås wrote: Is there a way to break the `static foreach` loop prematurely as quickly as `allSameTypeIterative` becomes false? Sure: @property bool allSameTypeIterative(V...)() //if (allSatisfy!(isType, V)) { foreach (Vi; V) if

Re: Lazy caching map()?

2018-03-10 Thread aliak via Digitalmars-d
On Friday, 9 March 2018 at 19:41:46 UTC, H. S. Teoh wrote: Today I found myself needing a lazy, caching version of map() on an array. More precisely, given an array `T[] src` of source data and a function func(T) that's pretty expensive to compute, return an object `result` such that: -

Re: DUB and Gtk-d reduce size of huge executable, build dynamic dependencies

2018-03-10 Thread CSim via Digitalmars-d-learn
On Saturday, 10 March 2018 at 15:46:58 UTC, Gerald wrote: On Wednesday, 7 March 2018 at 10:51:49 UTC, CSim wrote: Hi, I'm trying to decide whether it is better to use DLang for Gtk development or Vala/Genie. When I make a simple Vala/Genie Gtk executable the file is tiny whereas the DLang

[Issue 16528] @safe inference does not work for mutually recursive functions

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16528 --- Comment #3 from Walter Bright --- A minimal test case: void fun1()() { fun2(); } void fun2()() { fun1(); } @safe void test() { fun1(); } --

List installed modules

2018-03-10 Thread Roberto via Digitalmars-d-learn
How do I list installed modules? dmd --list-modules datefmt dateparser std.algorithm std.array std.conv std.datetime std.digest std.exception std.file std.format std.getopt std.json std.math ...

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 00:36:19 UTC, Dylan Graham wrote: Every day D becomes more like C++ 2.0, why can't it just be D? Oddly enough, I think this is D's strength. Golang tried to draw the line, and look where that got it. Now it's a limited language for a specific domain (at least

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:06:08 UTC, R wrote: Point to the wall on the left side. That is what your talking to. D its focus on C++ as a bad plan has been made pushed by many people ( lots who left ). Its like asking Go for Generics. And its very nice to see the "71% in the poll do not

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:25:07 UTC, Dylan Graham wrote: I'm not sure what you mean at that last sentence. I mean, cause D is so compatible with C/C++/Java/C# - that you can easily switch between them. Whereas as Go and Rust have their own thing going, making those languages really

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:41:33 UTC, psychoticRabbit wrote: On Sunday, 11 March 2018 at 01:25:07 UTC, Dylan Graham wrote: I'm not sure what you mean at that last sentence. I mean, cause D is so compatible with C/C++/Java/C# - that you can easily switch between them. Whereas as Go and

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:36:51 UTC, Dylan Graham wrote: The D Language Foundation, being the leading body of D, should hold some responsibility to the interests of the majority. And also the minority. A lesson that humanity has to learn over and over again.

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:53:30 UTC, Dylan Graham wrote: That sentence was to counter psychoticRabbit. I didn't mean it literally. If you've read my earlier posts, it's not BetterC I have an issue with, it's the allocation of time. Well that should have been the basis of your

[Issue 17363] @safety hole due to $ caching in slice expressions

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17363 Walter Bright changed: What|Removed |Added CC|

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:06:08 UTC, R wrote: On Sunday, 11 March 2018 at 00:36:19 UTC, Dylan Graham wrote: Well, no. I'm more concerned with the fact that the D Language Foundation is focused on BetterC, yet does not mention DLLs at all. For God's sake, if D is the future, why does it

Re: Forwarding arguments through a std.algorithm.map

2018-03-10 Thread crimaniak via Digitalmars-d-learn
On Saturday, 10 March 2018 at 20:48:06 UTC, Nordlöw wrote: If I have a function bool f(Rs...)(Rs rs) is it somehow possible to map and forward all its arguments `rs` to another function bool g(Rs...)(Rs rs); docs: https://dlang.org/phobos/std_traits.html#.Parameters usage

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:10:28 UTC, psychoticRabbit wrote: On Sunday, 11 March 2018 at 00:36:19 UTC, Dylan Graham wrote: Every day D becomes more like C++ 2.0, why can't it just be D? Oddly enough, I think this is D's strength. I really don't. Golang tried to draw the line, and look

[Issue 18559] std.math.* should stop using `real` overloads by default

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18559 Nicholas Wilson changed: What|Removed |Added CC|

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:06:08 UTC, R wrote: And "scripting" language like PHP, that everybody criticizes just keeps growing and gained 11% market share in the last 7 years ( at now 83% ). Where as D its gain has been minimalist thanks to people leaving almost as fast as it gain.

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:46:09 UTC, Dylan Graham wrote: Rust was more popular and who could use that? Rust is popular because of its ideas, not because it pandered. I don't see "programmer" portability as being pandering. It common sense. Rust is good, in that it seeks to do

Re: List installed modules

2018-03-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, March 11, 2018 01:04:27 Roberto via Digitalmars-d-learn wrote: > How do I list installed modules? > > dmd --list-modules > datefmt > dateparser > std.algorithm > std.array > std.conv > std.datetime > std.digest > std.exception > std.file > std.format > std.getopt > std.json > std.math >

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:50:22 UTC, Mike Parker wrote: On Sunday, 11 March 2018 at 01:36:51 UTC, Dylan Graham wrote: The D Language Foundation, being the leading body of D, should hold some responsibility to the interests of the majority. Please read my post from earlier:

Re: Vision document for H1 2018

2018-03-10 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:36:51 UTC, Dylan Graham wrote: The D Language Foundation, being the leading body of D, should hold some responsibility to the interests of the majority. Please read my post from earlier: https://forum.dlang.org/post/chsqspkoxbcdqjcqb...@forum.dlang.org The

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 02:02:15 UTC, psychoticRabbit wrote: On Sunday, 11 March 2018 at 01:58:50 UTC, psychoticRabbit wrote: i.e. How can the D Foundation encourage new additional resoures to focus on things that also matter to the community. and btw. the mention about strengthing

Re: C++ launched its community survey, too

2018-03-10 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 27 February 2018 at 21:07:03 UTC, H. S. Teoh wrote: It would be nice if you could actually just copy-n-paste a C header into an extern(C) block in D and have it Just Work(tm), but practically all C headers are dependent on macros one way or another that it would require including

Re: List installed modules

2018-03-10 Thread Roberto via Digitalmars-d-learn
On Sunday, 11 March 2018 at 01:55:07 UTC, Jonathan M Davis wrote: On Sunday, March 11, 2018 01:04:27 Roberto via Digitalmars-d-learn wrote: [...] The compiler has no concept of installed modules any more than C/C++ has a concept of installed header files. It has paths that it looks in for

Re: List installed modules

2018-03-10 Thread psychoticRabbit via Digitalmars-d-learn
On Sunday, 11 March 2018 at 01:04:27 UTC, Roberto wrote: How do I list installed modules? dmd --list-modules datefmt dateparser std.algorithm std.array std.conv std.datetime std.digest std.exception std.file std.format std.getopt std.json std.math ... Presumably, you mean packages installed

Re: Vision document for H1 2018

2018-03-10 Thread Timothee Cour via Digitalmars-d-announce
IMO this should be the priority: 1. blockers (things that can't be worked around at all or not without jumping through a lot of hoops) 2. everything else dmd still doesn't support shared libraries on OSX (cf https://issues.dlang.org/show_bug.cgi?id=12190) That prevents a whole category of use

[Issue 17318] Delegates allow escaping reference to stack variable

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17318 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18576] Compiler not doing RVO with auto returns

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18576 Walter Bright changed: What|Removed |Added CC|

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Saturday, 10 March 2018 at 11:07:56 UTC, psychoticRabbit wrote: On Saturday, 10 March 2018 at 10:47:09 UTC, Dylan Graham wrote: Yeah. Why should D worry about tying itself into C when it can't even interface with itself through DLLs? A reasonable point. But.. in any case.. people work

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 00:36:19 UTC, Dylan Graham wrote: On Saturday, 10 March 2018 at 11:07:56 UTC, psychoticRabbit wrote: On Saturday, 10 March 2018 at 10:47:09 UTC, Dylan Graham wrote: [Omitted] I also would like to point out that I don't care if some open-source developers decide

Re: Vision document for H1 2018

2018-03-10 Thread R via Digitalmars-d-announce
On Sunday, 11 March 2018 at 00:36:19 UTC, Dylan Graham wrote: Well, no. I'm more concerned with the fact that the D Language Foundation is focused on BetterC, yet does not mention DLLs at all. For God's sake, if D is the future, why does it continue to leech off C/C++? Other languages like

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:21:27 UTC, psychoticRabbit wrote: On Sunday, 11 March 2018 at 01:06:08 UTC, R wrote: Point to the wall on the left side. That is what your talking to. D its focus on C++ as a bad plan has been made pushed by many people ( lots who left ). Its like asking Go for

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:45:01 UTC, psychoticRabbit wrote: On Sunday, 11 March 2018 at 01:36:51 UTC, Dylan Graham wrote: The D Language Foundation, being the leading body of D, should hold some responsibility to the interests of the majority. And also the minority. A lesson that

Re: Vision document for H1 2018

2018-03-10 Thread psychoticRabbit via Digitalmars-d-announce
On Sunday, 11 March 2018 at 01:58:50 UTC, psychoticRabbit wrote: i.e. How can the D Foundation encourage new additional resoures to focus on things that also matter to the community. and btw. the mention about strengthing the use of DIPS, does just that. there are many improvement to

Re: List installed modules

2018-03-10 Thread psychoticRabbit via Digitalmars-d-learn
On Sunday, 11 March 2018 at 01:04:27 UTC, Roberto wrote: How do I list installed modules? or.. https://dlang.org/phobos/index.html

Re: List installed modules

2018-03-10 Thread psychoticRabbit via Digitalmars-d-learn
On Sunday, 11 March 2018 at 03:52:19 UTC, psychoticRabbit wrote: Whether dub does that currently I do not know, as i don't use dub, or any additional packages outside of phobos. oh > dub list ;-)

Re: Vision document for H1 2018

2018-03-10 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 03/10/2018 05:47 AM, Dylan Graham wrote: On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC on the priority list? Yeah. Why should D worry about tying itself into C when it can't

[Issue 17363] @safety hole due to $ caching in slice expressions

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17363 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18576] Compiler not doing RVO with auto returns

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18576 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/94f0bd6af7120ff27968052ad5645a554db12bed fix Issue 18576 - Compiler not doing RVO with auto returns

[Issue 18576] Compiler not doing RVO with auto returns

2018-03-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18576 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Vision document for H1 2018

2018-03-10 Thread Dylan Graham via Digitalmars-d-announce
On Sunday, 11 March 2018 at 04:06:13 UTC, Nick Sabalausky (Abscissa) wrote: On 03/10/2018 05:47 AM, Dylan Graham wrote: On Saturday, 10 March 2018 at 10:05:49 UTC, rumbu wrote: According to the State of D Survey, 71% of the respondents don't care about betterC. Why is betterC on the priority

  1   2   >