Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 19:32, Walter Bright via Digitalmars-d wrote: > On 2/20/2018 6:00 PM, Manu wrote: >> >> I'm a bit tired of being a bad guy for unknowingly committing a crime >> by using my email client in the default and completely normal way ;) > > > We'll forgive you if you show up at DCo

Re: New abstraction: Layout

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, February 21, 2018 05:53:31 Basile B. via Digitalmars-d wrote: > On Saturday, 17 February 2018 at 00:04:16 UTC, Andrei > > Alexandrescu wrote: > > I've been long bothered that the builtin .tupleof and our own > > abstractions Fields and RepresentationTypeTuple in std.traits - > > all o

Re: New abstraction: Layout

2018-02-20 Thread Basile B. via Digitalmars-d
On Saturday, 17 February 2018 at 00:04:16 UTC, Andrei Alexandrescu wrote: I've been long bothered that the builtin .tupleof and our own abstractions Fields and RepresentationTypeTuple in std.traits - all omit the essential information of field offsets. That makes types that use align() to have

Re: -libpath?

2018-02-20 Thread Mike Franklin via Digitalmars-d
On Tuesday, 6 February 2018 at 17:49:33 UTC, Jonathan Marler wrote: What do people think of adding an argument to DMD to add library search paths? Currently the only way I know how to do this would be via linker-specific flags, i.e. GCC: -L-L/usr/lib MSVC: -L-libpath:C:\mylibs OPTLINK: -L+C:\

Re: NNTP client configuration

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 19:51:54 Brad Roberts via Digitalmars-d wrote: > On 2/20/2018 7:43 PM, Jonathan M Davis via Digitalmars-d wrote: > > On Tuesday, February 20, 2018 19:20:27 Walter Bright via Digitalmars-d > > > > wrote: > >> On 2/20/2018 4:26 PM, Manu wrote: > >>> I shouldn't have your

Re: New abstraction: Layout

2018-02-20 Thread Andrei Alexandrescu via Digitalmars-d
On 02/20/2018 07:34 AM, Steven Schveighoffer wrote: On 2/18/18 4:52 AM, Dmitry Olshansky wrote: On Saturday, 17 February 2018 at 19:37:12 UTC, Steven Schveighoffer wrote: On 2/17/18 9:59 AM, Andrei Alexandrescu wrote: On 02/17/2018 09:03 AM, Steven Schveighoffer wrote: I found this also works

Re: NNTP client configuration

2018-02-20 Thread Brad Roberts via Digitalmars-d
On 2/20/2018 7:43 PM, Jonathan M Davis via Digitalmars-d wrote: On Tuesday, February 20, 2018 19:20:27 Walter Bright via Digitalmars-d wrote: On 2/20/2018 4:26 PM, Manu wrote: I shouldn't have your email address in the reply-to header (as Jonathan has noted multiple times). I do that delibera

Re: NNTP client configuration

2018-02-20 Thread Brad Roberts via Digitalmars-d
On 2/20/2018 6:00 PM, Manu wrote: Hey Brad; is it possible to strip out the HTML copy from emails before distribution? I'm a bit tired of being a bad guy for unknowingly committing a crime by using my email client in the default and completely normal way ;) Yes, mailman can filter messages and

Re: NNTP client configuration

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 19:20:27 Walter Bright via Digitalmars-d wrote: > On 2/20/2018 4:26 PM, Manu wrote: > > I shouldn't have your email > > address in the reply-to header (as Jonathan has noted multiple times). > > I do that deliberately as a service to those who wish to contact me > pri

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 5:09 PM, Brad Roberts wrote: Jonathan alerted me to the issue a couple days ago and I've been looking into this today.  It's due to a behavior change between versions of mailman used on the old (being a relative term.. been a few months now) mail server and the current mail server.

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 4:32 PM, Manu wrote: It's configurable... what seems to happen though, is that occasionally my setting resets. Perhaps google updates gmail and it resets some settings like that? I dunno. I don't notice when the setting resets, but Walter does. I notice because the Thunderbird news

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 6:00 PM, Manu wrote: I'm a bit tired of being a bad guy for unknowingly committing a crime by using my email client in the default and completely normal way ;) We'll forgive you if you show up at DConf so I can buy you a good Bavarian beer!

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 4:26 PM, Manu wrote: I shouldn't have your email address in the reply-to header (as Jonathan has noted multiple times). I do that deliberately as a service to those who wish to contact me privately about something I posted, which happens now and then. I subscribe to the mailin

Re: Throwing D exceptions through C++ call stack

2018-02-20 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 20 February 2018 at 21:31:03 UTC, Timothee Cour wrote: https://github.com/Syniurge/Calypso now allows catch C++ exceptions from D handlers (on OSX and linux at least) On Tue, Feb 20, 2018 at 1:04 PM, H. S. Teoh via Digitalmars-d wrote: I'm piecewise migrating one of my old C++ pr

Re: -libpath?

2018-02-20 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 6 February 2018 at 17:49:33 UTC, Jonathan Marler wrote: What do people think of adding an argument to DMD to add library search paths? Currently the only way I know how to do this would be via linker-specific flags, i.e. GCC: -L-L/usr/lib MSVC: -L-libpath:C:\mylibs OPTLINK: -L+C:\

Re: Annotation of functions

2018-02-20 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. 'dmd -X' looks like the perfect solution for my need. thanks.

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 17:09, Brad Roberts via Digitalmars-d wrote: > On 2/20/2018 4:53 PM, Seb via Digitalmars-d wrote: >> >> On Wednesday, 21 February 2018 at 00:32:54 UTC, Manu wrote: >>> >>> On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d >>> wrote: Now, the do

Re: Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 13:40:16 UTC, bauss wrote: I should probably have put an example usage to show how it's used: This makes we want to go back and program in C again ;-) (but thanks for taking the time to demo/explain)

Re: NNTP client configuration

2018-02-20 Thread Brad Roberts via Digitalmars-d
On 2/20/2018 4:53 PM, Seb via Digitalmars-d wrote: On Wednesday, 21 February 2018 at 00:32:54 UTC, Manu wrote: On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d wrote: Now, the double-posting with both text and html is another matter entirely but if the NG really doesn't want

Re: NNTP client configuration

2018-02-20 Thread Seb via Digitalmars-d
On Wednesday, 21 February 2018 at 00:32:54 UTC, Manu wrote: On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d wrote: Now, the double-posting with both text and html is another matter entirely but if the NG really doesn't want the html version of the email, it would be easy for

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 02:05, Jonathan M Davis via Digitalmars-d wrote: > > Now, the double-posting with both text and html is another matter entirely > and certainly something that's the fault of the e-mail client. I don't know > how configurable that is with gmail though. Webmail tends to want t

Re: NNTP client configuration

2018-02-20 Thread Manu via Digitalmars-d
On 20 February 2018 at 01:23, Walter Bright via Digitalmars-d wrote: > > It's annoying because I do not know if he intended to send me private email > or intended it to be public on the forum. It doesn't sound like he intended > to send these private emails, making it a problem with his client. I

Re: Annoyance with new integer promotion deprecations

2018-02-20 Thread Manu via Digitalmars-d
On 19 February 2018 at 21:16, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: > > On 02/19/2018 03:52 AM, Manu wrote: >> >> On 18 Feb. 2018 10:25 pm, "Walter Bright via Digitalmars-d" < >> digitalmars-d@puremagic.com> wrote: >> >> On 2/18/2018 7:52 PM, Nick Sabalausky (Abscissa) wrote: >> >>>

Re: NNTP client configuration

2018-02-20 Thread H. S. Teoh via Digitalmars-d
On Tue, Feb 20, 2018 at 03:08:37PM -0800, Walter Bright via Digitalmars-d wrote: > On 2/20/2018 2:05 AM, Jonathan M Davis wrote: > > Does gmail even have an NNTP client? > > He wrote: "Apparently gmail has a new trick... reply to thread == > reply-all." AFAIK, Google Groups has an NNTP interface

Re: NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 2:05 AM, Jonathan M Davis wrote: Does gmail even have an NNTP client? He wrote: "Apparently gmail has a new trick... reply to thread == reply-all."

Re: Annoyance with new integer promotion deprecations

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/20/2018 6:23 AM, Steven Schveighoffer wrote: P.S. yes, Walter, I created a bugzilla for this :) https://issues.dlang.org/show_bug.cgi?id=18380 You da man, Steve! :-)

Re: Why std_data_json is not default in phobos

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 15:08:04 aberba via Digitalmars-d 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, ideally, std.json would be replaced

Re: Throwing D exceptions through C++ call stack

2018-02-20 Thread Timothee Cour via Digitalmars-d
https://github.com/Syniurge/Calypso now allows catch C++ exceptions from D handlers (on OSX and linux at least) On Tue, Feb 20, 2018 at 1:04 PM, H. S. Teoh via Digitalmars-d wrote: > I'm piecewise migrating one of my old C++ projects to D, and one of the > major issues right now is exception han

Throwing D exceptions through C++ call stack

2018-02-20 Thread H. S. Teoh via Digitalmars-d
I'm piecewise migrating one of my old C++ projects to D, and one of the major issues right now is exception handling. What's the state of C++ exception support right now? Is it safe for a D function (called from C++ code) to throw an exception, and have the stack unwind through the C++ call stack

Re: How to represent multiple files in a forum post?

2018-02-20 Thread Basile B. via Digitalmars-d
On Tuesday, 20 February 2018 at 18:41:08 UTC, Seb wrote: On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? ... and now it's available on run.dlang.io: https

Re: variable destructuring in D (tuples and ranges)

2018-02-20 Thread Timothee Cour via Digitalmars-d
see https://forum.dlang.org/post/p3bdp1$2b4e$1...@digitalmars.com [Tuple DIP] On Tue, Feb 20, 2018 at 11:01 AM, valmat via Digitalmars-d wrote: > Hi there! > I just started learn D. > First it is greatful language. > But unfortunatly it doesn't have variable destructuring syntax. > Like this: > `

variable destructuring in D (tuples and ranges)

2018-02-20 Thread valmat via Digitalmars-d
Hi there! I just started learn D. First it is greatful language. But unfortunatly it doesn't have variable destructuring syntax. Like this: ``` auto x,y,z = tuple(26, "hi", 'a'); auto x,y,z = [1,2,3]; auto x,y,z = anyRange; ``` Because it is convenient i wrote my own implementation of this opport

Re: How to represent multiple files in a forum post?

2018-02-20 Thread Seb via Digitalmars-d
On Wednesday, 14 February 2018 at 18:33:23 UTC, Jonathan Marler wrote: @timotheecour and I came up with a solution to a common problem: How to represent multiple files in a forum post? ... and now it's available on run.dlang.io: https://run.dlang.io/is/ZHm2Xe This means that it can be used

Re: Annotation of functions

2018-02-20 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 20 February 2018 at 13:27:08 UTC, psychoticRabbit wrote: so.. in that case..another idea...how about a compiler option to output a list of functions. (I don't really expect many will warm to that idea.) Does anyone know of any tool that could do such a thing? I just want of a list

Re: Annotation of functions

2018-02-20 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 20 February 2018 at 12:15:57 UTC, psychoticRabbit wrote: I've noticed that Go and Rust annotate functions. func (in go) fn (in rust) I was kind of wondering why they made that choice, given compilers in many languages do not. A lot of dynamic languages do too def foo(): # python

Re: Why std_data_json is not default in phobos

2018-02-20 Thread aberba via Digitalmars-d
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.

Re: Annoyance with new integer promotion deprecations

2018-02-20 Thread Steven Schveighoffer via Digitalmars-d
On 2/18/18 3:01 PM, Jonathan M Davis wrote: On Sunday, February 18, 2018 19:42:07 Johan Engelen via Digitalmars-d wrote: There are hundreds of lines I need to molest to make the compiler shut up. I won't type another line of code on my colour library until this noise is gone... I will not mainta

Re: Annotation of functions

2018-02-20 Thread jmh530 via Digitalmars-d
On Tuesday, 20 February 2018 at 12:15:57 UTC, psychoticRabbit wrote: I've noticed that Go and Rust annotate functions. func (in go) fn (in rust) I was kind of wondering why they made that choice, given compilers in many languages do not. Would this be a useful feature in D? Everything else

Re: Annotation of functions

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 13:04:42 psychoticRabbit via Digitalmars-d wrote: > On Tuesday, 20 February 2018 at 12:55:31 UTC, psychoticRabbit > > wrote: > > fn string creater() pure { > > > > return "void func() {}"; > > > > } > > > > so now I'm just looking for lines that begin with fn. the

Re: Annotation of functions

2018-02-20 Thread bauss via Digitalmars-d
On Tuesday, 20 February 2018 at 13:39:17 UTC, bauss wrote: On Tuesday, 20 February 2018 at 12:55:31 UTC, psychoticRabbit wrote: On Tuesday, 20 February 2018 at 12:45:25 UTC, rikki cattermole wrote: string creater() pure { return "void func() {}"; } mixin(creator()); That is why. Ther

Re: Annotation of functions

2018-02-20 Thread bauss via Digitalmars-d
On Tuesday, 20 February 2018 at 12:55:31 UTC, psychoticRabbit wrote: On Tuesday, 20 February 2018 at 12:45:25 UTC, rikki cattermole wrote: string creater() pure { return "void func() {}"; } mixin(creator()); That is why. There are plenty of functions, classes and structs that simply

Re: Annotation of functions

2018-02-20 Thread ketmar via Digitalmars-d
psychoticRabbit wrote: On Tuesday, 20 February 2018 at 12:18:47 UTC, rikki cattermole wrote: So the point is moot. ok. I've come around... and the point reall is moot. so.. in that case..another idea...how about a compiler option to output a list of functions. (I don't really expect many w

Re: Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 12:18:47 UTC, rikki cattermole wrote: So the point is moot. ok. I've come around... and the point reall is moot. so.. in that case..another idea...how about a compiler option to output a list of functions. (I don't really expect many will warm to that idea.)

Re: Which language futures make D overcompicated?

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Friday, 9 February 2018 at 07:54:49 UTC, Suliman wrote: I like D, but sometimes it's look like for me too complicated. Go have a lot of fans even it not simple, but primitive. But some D futures make it very hard to learning. Small list by me: 1. mixins 2. inout 3. too many attributes like:

Re: Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 12:55:31 UTC, psychoticRabbit wrote: fn string creater() pure { return "void func() {}"; } so now I'm just looking for lines that begin with fn. the mixin doesn't matter. oh... I think I might have misunderstood your point ... due to not understanding

Re: Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 12:45:25 UTC, rikki cattermole wrote: string creater() pure { return "void func() {}"; } mixin(creator()); That is why. There are plenty of functions, classes and structs that simply won't exist in the form of syntax until you execute CTFE. I think I

Re: Annotation of functions

2018-02-20 Thread rikki cattermole via Digitalmars-d
On 20/02/2018 12:35 PM, psychoRabbit wrote: On Tuesday, 20 February 2018 at 12:18:47 UTC, rikki cattermole wrote: You need a fully implemented frontend to get anything proper in terms of parsing for D. We're not talking about syntax highlighting here. So the point is moot. Why is the point (

Re: Annotation of functions

2018-02-20 Thread psychoRabbit via Digitalmars-d
On Tuesday, 20 February 2018 at 12:18:47 UTC, rikki cattermole wrote: You need a fully implemented frontend to get anything proper in terms of parsing for D. We're not talking about syntax highlighting here. So the point is moot. Why is the point (about being able to more easily find function

Re: New abstraction: Layout

2018-02-20 Thread Steven Schveighoffer via Digitalmars-d
On 2/18/18 4:52 AM, Dmitry Olshansky wrote: On Saturday, 17 February 2018 at 19:37:12 UTC, Steven Schveighoffer wrote: On 2/17/18 9:59 AM, Andrei Alexandrescu wrote: On 02/17/2018 09:03 AM, Steven Schveighoffer wrote: I found this also works: static foreach(alias x; S.tupleof) {     writeln(x

Re: New abstraction: Layout

2018-02-20 Thread Steven Schveighoffer via Digitalmars-d
On 2/19/18 6:18 AM, Nathan S. wrote: On Saturday, 17 February 2018 at 12:49:07 UTC, Andrei Alexandrescu wrote: On 02/16/2018 10:10 PM, rikki cattermole wrote: Could use the name for the field as well. At the minimum useful for debugging purposes. That would be tricky because fields are decomp

Re: Annotation of functions

2018-02-20 Thread rikki cattermole via Digitalmars-d
On 20/02/2018 12:15 PM, psychoticRabbit wrote: I've noticed that Go and Rust annotate functions. func (in go) fn (in rust) I was kind of wondering why they made that choice, given compilers in many languages do not. Would this be a useful feature in D? Everything else seems to have an annot

Annotation of functions

2018-02-20 Thread psychoticRabbit via Digitalmars-d
I've noticed that Go and Rust annotate functions. func (in go) fn (in rust) I was kind of wondering why they made that choice, given compilers in many languages do not. Would this be a useful feature in D? Everything else seems to have an annotation (e.g structs, classes.) So why not functi

Re: Why std_data_json is not default in phobos

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 11:55:54 bauss 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/std_da

Re: Why std_data_json is not default in phobos

2018-02-20 Thread bauss 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 As far as I remember it's because Andrei isn't satisfied with the impleme

Re: Why std_data_json is not default in phobos

2018-02-20 Thread aberba 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 To add some context, it was proposed in 2015 for review [1] and some ins

Re: Being Positive

2018-02-20 Thread Jimmy Jar via Digitalmars-d
On Wednesday, 14 February 2018 at 01:19:55 UTC, psychoticRabbit wrote: On Tuesday, 13 February 2018 at 16:04:11 UTC, Abdulhaq wrote: Psychotic rabbit disturbed by programming related video. In other news don't poke the rabbit. To keep positive mind you should try to increase your follow

Re: NNTP client configuration

2018-02-20 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, February 20, 2018 01:23:32 Walter Bright via Digitalmars-d wrote: > On 2/19/2018 10:40 PM, Tobias Müller wrote: > > Is he even using NNTP? Or maybe the mailing list Interface? > > He's using gmail's NNTP client. It's simply not possible for us to control > it, any more than we can fix

Why std_data_json is not default in phobos

2018-02-20 Thread aberba via Digitalmars-d
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

NNTP client configuration

2018-02-20 Thread Walter Bright via Digitalmars-d
On 2/19/2018 10:40 PM, Tobias Müller wrote: > Nick Sabalausky (Abscissa) wrote: >> On 02/19/2018 03:52 AM, Manu wrote: >>> On 18 Feb. 2018 10:25 pm, "Walter Bright via Digitalmars-d" < >>> digitalmars-d@puremagic.com> wrote: >>> On 2/18/2018 7:52 PM, Nick Sabalausky (Abscissa) wrote: Well, i

Re: How to run d app as service ?

2018-02-20 Thread aberba via Digitalmars-d
On Monday, 19 February 2018 at 12:29:12 UTC, Jayam wrote: In production server, we need to run Dlang app as service. The Heroku tour Seb wrote about above is one easy way to host a serverside app (if that's what you're looking for). However, serverside apps need someone sort of database so y