Re: how to propagate computed type during CTFE?

2018-02-22 Thread Simen Kjærås via Digitalmars-d
On Friday, 23 February 2018 at 00:54:34 UTC, Timothee Cour wrote: in example below, how do I propagate RET (or even `typeof(a)`) to the result value of `inferType`? does this need a language change to allow this? No can do. Consider what would happen if you added put(1); inside fun - what sh

Re: NNTP client configuration

2018-02-22 Thread Seb via Digitalmars-d
On Friday, 23 February 2018 at 05:09:23 UTC, Nick Sabalausky (Abscissa) wrote: On 02/21/2018 01:21 AM, Manu wrote: Incidentally... I was kinda hoping it'd be back in the states this year, since I'm actually in the states now... but I'm still holding out to see if I can get to Germany. I've h

Re: NNTP client configuration

2018-02-22 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 02/21/2018 01:21 AM, Manu wrote: Incidentally... I was kinda hoping it'd be back in the states this year, since I'm actually in the states now... but I'm still holding out to see if I can get to Germany. I've had fingers crossed for another San Fransico DConf, too. I'm at the other end of t

Re: how to propagate computed type during CTFE?

2018-02-22 Thread rikki cattermole via Digitalmars-d
On 23/02/2018 1:54 PM, Timothee Cour wrote: in example below, how do I propagate RET (or even `typeof(a)`) to the result value of `inferType`? does this need a language change to allow this? ``` template inference(alias emitter) { auto inference(){ auto inferType(){ emitter!((a)

Re: any svg d-man art out there?

2018-02-22 Thread Seb via Digitalmars-d
On Friday, 23 February 2018 at 01:38:34 UTC, Adam D. Ruppe wrote: On Thursday, 22 February 2018 at 23:54:48 UTC, Adam D. Ruppe wrote: any of those in svg format? There is an svg one in here!! https://github.com/dlang-community/d-mans Yes, d-mans is an collective effort at collecting all the

Re: any svg d-man art out there?

2018-02-22 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 22 February 2018 at 23:54:48 UTC, Adam D. Ruppe wrote: any of those in svg format? There is an svg one in here!! https://github.com/dlang-community/d-mans

Re: Learning D Programming

2018-02-22 Thread psychoticRabbit via Digitalmars-d
On Thursday, 22 February 2018 at 14:29:23 UTC, Ali wrote: this account, seem to be going around programming forums asking the same question https://discuss.ocaml.org/t/ocaml-is-helpful-for-me/1603 not sure what this mean, but .. not a good sign A company that 'supposedly' provides training

Re: Annotation of functions

2018-02-22 Thread psychoticRabbit via Digitalmars-d
On Thursday, 22 February 2018 at 14:50:37 UTC, Seb wrote: On Wednesday, 21 February 2018 at 01:58:17 UTC, psychoticRabbit wrote: On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: dmd -X spits out the json file with a list of functions and classes and other stuff. Then you can

how to propagate computed type during CTFE?

2018-02-22 Thread Timothee Cour via Digitalmars-d
in example below, how do I propagate RET (or even `typeof(a)`) to the result value of `inferType`? does this need a language change to allow this? ``` template inference(alias emitter) { auto inference(){ auto inferType(){ emitter!((a){ enum RET=typeof(a).stringof; // type is

any svg d-man art out there?

2018-02-22 Thread Adam D. Ruppe via Digitalmars-d
You know, D-man, like https://dlang.org/images/d5.gif any of those in svg format?

Re: D for microservices

2018-02-22 Thread aberba via Digitalmars-d
On Thursday, 22 February 2018 at 08:54:04 UTC, Joakim wrote: On Monday, 23 October 2017 at 18:18:28 UTC, Jacob Carlborg wrote: [...] Yuxuan Shui has ported druntime to Musl over the last couple months: https://github.com/dlang/druntime/pulls?q=is%3Apr+author%3Ayshui+is%3Aclosed With his ch

Re: Why std_data_json is not default in phobos

2018-02-22 Thread aberba via Digitalmars-d
On Thursday, 22 February 2018 at 07:56:12 UTC, Jonathan M Davis wrote: On Thursday, February 22, 2018 07:24:30 aberba via Digitalmars-d wrote: [...] I did use Java in previous jobs, but I don't curently use it. In recent years, I've done far more with C++ and D, and my current job mostly inv

Re: Typedef.toString?

2018-02-22 Thread Meta via Digitalmars-d
On Thursday, 22 February 2018 at 19:56:13 UTC, Denis F wrote: Hello! After replacing native type by std.typecons.Typedef I am faced with fact what all typeDefValue.to!string was silently changed its output to output of Typedef struct itself. It was too hard find all this inclusions. Maybe it

Typedef.toString?

2018-02-22 Thread Denis F via Digitalmars-d
Hello! After replacing native type by std.typecons.Typedef I am faced with fact what all typeDefValue.to!string was silently changed its output to output of Typedef struct itself. It was too hard find all this inclusions. Maybe it is need to implement simple toString method inside of Typedef

Re: PackedAliasSeq?

2018-02-22 Thread Seb via Digitalmars-d
On Thursday, 22 February 2018 at 19:26:54 UTC, Andrei Alexandrescu wrote: After coding https://github.com/dlang/phobos/pull/6192 with AliasSeq, the experience has been quite pleasurable. However, in places the AliasSeq tends to expand too eagerly, leading to a need to "keep it together" e.g. wh

PackedAliasSeq?

2018-02-22 Thread Andrei Alexandrescu via Digitalmars-d
After coding https://github.com/dlang/phobos/pull/6192 with AliasSeq, the experience has been quite pleasurable. However, in places the AliasSeq tends to expand too eagerly, leading to a need to "keep it together" e.g. when you need to pass two of those to a template. I worked around the issue

Re: Dub, Cargo, Go, Gradle, Maven

2018-02-22 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 22, 2018 at 09:24:05AM +, Russel Winder via Digitalmars-d wrote: > On Wed, 2018-02-21 at 09:30 -0800, H. S. Teoh via Digitalmars-d wrote: [...] > Dub, Cargo, and to a great extent Maven, give you tools to specify > declaratively the project and nothing else. All actions are pre-defi

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 22, 2018 at 03:53:59PM +0100, Timon Gehr via Digitalmars-d wrote: > On 22.02.2018 08:13, Timothee Cour wrote: > > Advantages of splitting: > > ... > > * easier to edit (no need to scroll much to see entirety of module > > we're editing) > > I don't think this particular point is true.

Re: Annotation of functions

2018-02-22 Thread Seb via Digitalmars-d
On Wednesday, 21 February 2018 at 01:58:17 UTC, psychoticRabbit wrote: On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: dmd -X spits out the json file with a list of functions and classes and other stuff. Then you can just filter that. 'dmd -X' looks like the perfect solu

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread Timon Gehr via Digitalmars-d
On 22.02.2018 08:13, Timothee Cour wrote: Advantages of splitting: ... * easier to edit (no need to scroll much to see entirety of module we're editing) I don't think this particular point is true. Splitting can actually make editing slightly harder. Scrolling is an inefficient way to find the

Re: Annotation of functions

2018-02-22 Thread psychoticRabbit via Digitalmars-d
On Thursday, 22 February 2018 at 13:17:42 UTC, ag0aep6g wrote: You don't have to remove the brackets. You just have to process the result correctly. It's not an object but an array with an object as its first element. ok. I think I demonstrated that I don't know what I'm doing with the js

dip1000 state

2018-02-22 Thread Radu via Digitalmars-d
Whould like to know what's the state of dip1000? Lately I haven't noticed much activity on it, and at least on the bug front there are about 28 entries opened: https://issues.dlang.org/buglist.cgi?quicksearch=dip1000%20OR%20%5Bscope%5D&list_id=219758 I'm asking this as I am eagerly waiting fo

Re: Learning D Programming

2018-02-22 Thread Seb via Digitalmars-d
On Thursday, 22 February 2018 at 14:29:23 UTC, Ali wrote: On Thursday, 22 February 2018 at 10:31:05 UTC, Lianamelissa wrote: Hi this is liana working on[url=https://mindmajix.com/big-data-on-aws-training] big data on aws[/url],my question is D-programming is useful for the big data developers.

Re: Learning D Programming

2018-02-22 Thread Ali via Digitalmars-d
On Thursday, 22 February 2018 at 10:31:05 UTC, Lianamelissa wrote: Hi this is liana working on[url=https://mindmajix.com/big-data-on-aws-training] big data on aws[/url],my question is D-programming is useful for the big data developers. this account, seem to be going around programming forums

Re: New forum section under ecosystem?

2018-02-22 Thread bachmeier via Digitalmars-d
On Thursday, 22 February 2018 at 12:11:18 UTC, JN wrote: Right now, there is no place to share projects being work in progress. Even if they never go anywhere, it could generate some nice activity. General is more for language related issues. Announce works pretty much only for finished projec

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Seb via Digitalmars-d
On Thursday, 22 February 2018 at 10:32:34 UTC, JN wrote: I believe it's a common practice in other languages to do something like testing the compiler against top 20 (or more) most popular packages, while I doubt this package would make it to top 20 (do we even have such metrics from dub?), do

Re: Annotation of functions

2018-02-22 Thread ag0aep6g via Digitalmars-d
On 02/22/2018 12:54 PM, psychoticRabbit wrote: module test; import std.stdio, std.file, std.json; void main() {     string myFile= "source.json"; // a file produced by: dmd -o- -X source.d     string js = readText(myFile);     JSONValue j = parseJSON( js[1..$-1] ); // why do I have to do

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Seb via Digitalmars-d
On Thursday, 22 February 2018 at 10:40:11 UTC, Jonathan M Davis wrote: There is some testing that is done against a set of projects on code.dlang.org, though I get the impression that it's not very reliable (it frequently seems to fail due to reasons unrelated to the PRs being tested), and for

Re: New forum section under ecosystem?

2018-02-22 Thread rikki cattermole via Digitalmars-d
We tend to share them on IRC and Discord in-person while in development. Not as cool, but it does take a lot of pressure off :) After all, I bet ya didn't know about SPEW[0] or the fact that I'm toying with writing my own little language. [0] https://github.com/Devisualization/spew

New forum section under ecosystem?

2018-02-22 Thread JN via Digitalmars-d
I was wondering, perhaps this forum could use additional section under Ecosystem, something like "Projects"? Look at old dsource projects section: http://dsource.org/projects/ and the forums http://dsource.org/forums/ . All of that is dead now, as is dsource, but it looks so exciting. So many

Re: Annotation of functions

2018-02-22 Thread psychoticRabbit via Digitalmars-d
On Thursday, 22 February 2018 at 11:32:59 UTC, rjframe wrote: On Thu, 22 Feb 2018 10:41:48 +, psychoticRabbit wrote: On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: dmd -X spits out the json file with a list of functions and classes and other stuff. Then you can just fil

Re: Annotation of functions

2018-02-22 Thread rjframe via Digitalmars-d
On Thu, 22 Feb 2018 10:41:48 +, psychoticRabbit wrote: > On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: >> dmd -X spits out the json file with a list of functions and classes and >> other stuff. Then you can just filter that. > > do you know why the first and last characte

Re: Learning D Programming

2018-02-22 Thread psychoticRabbit via Digitalmars-d
On Thursday, 22 February 2018 at 10:31:05 UTC, Lianamelissa wrote: Hi this is liana working on... big data on aws ..,my question is D-programming is useful for the big data developers. Nice try.

Re: Annotation of functions

2018-02-22 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 15:26:12 UTC, Adam D. Ruppe wrote: dmd -X spits out the json file with a list of functions and classes and other stuff. Then you can just filter that. do you know why the first and last character of the output from "dmd -o- -X somefile.d" are [ and ] with all

Re: Why std_data_json is not default in phobos

2018-02-22 Thread rikki cattermole via Digitalmars-d
On 22/02/2018 11:32 PM, JN wrote: On Thursday, 22 February 2018 at 09:45:25 UTC, Jonathan M Davis wrote: Well, while that's definitely a problem, it really has nothing to do with why it's not in Phobos (no attempt to get it into Phobos has occurred since well before 2.077.1 was released), and i

Re: Learning D Programming

2018-02-22 Thread bauss via Digitalmars-d
On Thursday, 22 February 2018 at 10:31:05 UTC, Lianamelissa wrote: Hi this is liana working on[url=https://mindmajix.com/big-data-on-aws-training] big data on aws[/url],my question is D-programming is useful for the big data developers. Yes.

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Jonathan M Davis via Digitalmars-d
On Thursday, February 22, 2018 10:32:34 JN via Digitalmars-d wrote: > On Thursday, 22 February 2018 at 09:45:25 UTC, Jonathan M Davis > > wrote: > > Well, while that's definitely a problem, it really has nothing > > to do with why it's not in Phobos (no attempt to get it into > > Phobos has occurre

Re: Why std_data_json is not default in phobos

2018-02-22 Thread JN via Digitalmars-d
On Thursday, 22 February 2018 at 09:45:25 UTC, Jonathan M Davis wrote: Well, while that's definitely a problem, it really has nothing to do with why it's not in Phobos (no attempt to get it into Phobos has occurred since well before 2.077.1 was released), and if it _were_ in Phobos, then the re

Learning D Programming

2018-02-22 Thread Lianamelissa via Digitalmars-d
Hi this is liana working on[url=https://mindmajix.com/big-data-on-aws-training] big data on aws[/url],my question is D-programming is useful for the big data developers.

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Jonathan M Davis via Digitalmars-d
On Thursday, February 22, 2018 09:35:06 Atila Neves via Digitalmars-d wrote: > On Tuesday, 20 February 2018 at 09:20:15 UTC, aberba wrote: > > I've taken a close look at the Api and its looks good. Its been > > around for a while. Why is it not yet in phobos? > > > > https://code.dlang.org/packages

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Atila Neves via Digitalmars-d
On Tuesday, 20 February 2018 at 09:20:15 UTC, aberba wrote: I've taken a close look at the Api and its looks good. Its been around for a while. Why is it not yet in phobos? https://code.dlang.org/packages/std_data_json A good reason is that a dmd regression broke it: https://issues.dlang.org

Re: Debian support [was D source code formatter]

2018-02-22 Thread Russel Winder via Digitalmars-d
On Thu, 2018-02-22 at 07:00 +, Seb via Digitalmars-d wrote: > […] > Though Sociomantic has recently taken over the release process of > dfmt and currently provides APT packages at bintray: > > https://bintray.com/dlang-community/apt/dfmt So now we have both: http://d-apt.sourceforge.net/ a

Re: D for microservices

2018-02-22 Thread rikki cattermole via Digitalmars-d
On 22/02/2018 10:17 PM, Suliman wrote: It would be nice if anyone will rewrite Musl to betterC :) Combine it with dmc's libc and we're starting to get a reasonable state.

Re: Dub, Cargo, Go, Gradle, Maven

2018-02-22 Thread Russel Winder via Digitalmars-d
On Wed, 2018-02-21 at 09:30 -0800, H. S. Teoh via Digitalmars-d wrote: > > […] > I think the ideal situation straddles the divide between declarative > build specs and a full-fledged general programming language. You > don't > want it to get too general, lest you end up with the build equivalent

Re: D for microservices

2018-02-22 Thread Suliman via Digitalmars-d
It would be nice if anyone will rewrite Musl to betterC :)

Re: Dub, Cargo, Go, Gradle, Maven

2018-02-22 Thread Russel Winder via Digitalmars-d
On Wed, 2018-02-21 at 12:05 -0700, David Gileadi via Digitalmars-d wrote: > […] > > Working in the Java world, I was extremely happy when I discovered > Gradle. It looks declarative thanks to the Groovy language, but you > can > easily mix 'n' match more imperative code inline. It is worth poin

Re: D for microservices

2018-02-22 Thread Joakim via Digitalmars-d
On Monday, 23 October 2017 at 18:18:28 UTC, Jacob Carlborg wrote: On 2017-10-23 17:35, Joakim wrote: I'm sure someone could put these together if the above stuff worked. The question is who's interested in volunteering to help put this all together? Yeah, exactly. My plate if already full a

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread Seb via Digitalmars-d
On Thursday, 22 February 2018 at 08:04:19 UTC, Timothee Cour wrote: it actually does reduce compilation times if the imports go directly to the module in question rather than to a module that publicly imports the symbols time1=compilation time of `import std.algorithm : find;` before split ti

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread Timothee Cour via Digitalmars-d
> that doesn't help anyone who's actually reading the documentation and trying > to find stuff that way how about the following fix for that: having a DDOC token on a package.d to indicate merging the submodules in the documentation, eg: ``` /// MERGE_SUBMODULES std/aglorithm/package.d ``` when

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread Timothee Cour via Digitalmars-d
> it actually does reduce compilation times if the imports go directly to the > module in question rather than to a module that publicly imports the symbols time1=compilation time of `import std.algorithm : find;` before split time21=compilation time of `import std.algorithm : find;` after split

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, February 21, 2018 23:44:49 Timothee Cour via Digitalmars-d wrote: > > it's harder to find symbols > > i don't understand this argument. > > ``` > dscanner --declaration startsWith > ./std/algorithm/searching.d(4105:6) > ./std/algorithm/searching.d(4195:6) > ./std/algorithm/searching

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Seb via Digitalmars-d
On Tuesday, 20 February 2018 at 15:08:04 UTC, aberba wrote: On Tuesday, 20 February 2018 at 12:10:35 UTC, Jonathan M Davis wrote: [...] Hmm. I'm glad its available in dub. Not helpful to those not using dub though. Beginners too. Well, you could vote for this PR: https://github.com/dlang/p

Re: what are guidelines for when to split a module into a package?

2018-02-22 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, February 21, 2018 23:48:32 Timothee Cour via Digitalmars-d wrote: > ``` > import std.algorithm.searching : find; > > not > > import std.algorithm : find; > ``` > > that's just a missed opportunity to benefit from the split; we're in > no way worse after the split than before the spli

Re: Why std_data_json is not default in phobos

2018-02-22 Thread Jonathan M Davis via Digitalmars-d
On Thursday, February 22, 2018 07:24:30 aberba via Digitalmars-d wrote: > On Tuesday, 20 February 2018 at 21:53:59 UTC, Jonathan M Davis > > wrote: > > On Tuesday, February 20, 2018 15:08:04 aberba via Digitalmars-d > > > > wrote: > >> [...] > > > > Well, ideally, std.json would be replaced with so