Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-28 22:59, Atila Neves wrote: In their defence, that was far more surprising ;) Yes, for me as well. Unfortunately that took the spotlight away from D :( -- /Jacob Carlborg

Re: More exception classes into Phobos?

2017-03-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-28 22:10, Jonathan M Davis via Digitalmars-d wrote: And how would you ever handle a permission error? If you don't have the permissions for the file, you don't have permissions for the file. The application can ask for a password, i.e. "sudo". That is what TextMate is doing. And

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread XavierAP via Digitalmars-d
On Tuesday, 28 March 2017 at 18:16:49 UTC, Jacob Carlborg wrote: I create a test at work, compared an existing Ruby implementation of an API end point to a Go implementation and a D implementation. The D implementation was five times faster. Unfortunately my colleagues paid more attention to

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread bauss via Digitalmars-d
On Tuesday, 28 March 2017 at 07:32:15 UTC, Suliman wrote: I found very interesting Python async framework japronto https://github.com/squeaky-pl/japronto Test show that in some cases japronto may work as fast as Go. Can vibed be competitor (or even better) than Go and Python for micro-service

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 28 March 2017 at 08:08:11 UTC, Russel Winder wrote: On Tue, 2017-03-28 at 07:32 +, Suliman via Digitalmars-d wrote: I found very interesting Python async framework japronto https://github.com/squeaky-pl/japronto Test show that in some cases japronto may work as fast as Go. Can

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 28 March 2017 at 18:16:49 UTC, Jacob Carlborg wrote: On 2017-03-28 09:32, Suliman wrote: Can vibed be competitor (or even better) than Go and Python for micro-services? I create a test at work, compared an existing Ruby implementation of an API end point to a Go implementation an

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Atila Neves via Digitalmars-d
On Tuesday, 28 March 2017 at 18:16:49 UTC, Jacob Carlborg wrote: On 2017-03-28 09:32, Suliman wrote: Can vibed be competitor (or even better) than Go and Python for micro-services? I create a test at work, compared an existing Ruby implementation of an API end point to a Go implementation an

Re: More exception classes into Phobos?

2017-03-28 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, March 28, 2017 20:07:01 Jacob Carlborg via Digitalmars-d wrote: > On 2017-03-28 11:25, Walter Bright wrote: > > If you received an IOException instead, you're no better off. > > No, I agree. But I have not argued for or against a standardize > exception hierarchy. I've argued that we ne

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread Walter Bright via Digitalmars-d
On 3/28/2017 11:12 AM, Jacob Carlborg wrote: As far as I understand, D can link with C++ templates if they're instantiated on the C++ side. It would link with the instantiated template not the actual template. Recall that dmd itself connected to C++ templates when the front end was not full i

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-28 09:32, Suliman wrote: Can vibed be competitor (or even better) than Go and Python for micro-services? I create a test at work, compared an existing Ruby implementation of an API end point to a Go implementation and a D implementation. The D implementation was five times faster.

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-28 00:30, kinke wrote: Yep, so there are no libs my D code can link to, so how am I supposed to use C++ templates from D (as you're using that as argument for the `const T *const` mangling)? As far as I understand, D can link with C++ templates if they're instantiated on the C++ si

Re: More exception classes into Phobos?

2017-03-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-28 11:25, Walter Bright wrote: If you received an IOException instead, you're no better off. No, I agree. But I have not argued for or against a standardize exception hierarchy. I've argued that we need more specific error types (either as a hierarchy or flat structure). As And

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread kinke via Digitalmars-d
On Tuesday, 28 March 2017 at 14:11:16 UTC, deadalnix wrote: I understand you point and showed you why it isn't a mangling problem at all, and gave you direction you may want to dig in to make a proposal that may actually get traction. If you really did get my point, it should be clear that I d

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread deadalnix via Digitalmars-d
On Tuesday, 28 March 2017 at 13:18:57 UTC, kinke wrote: You don't seem to get my point, I don't know why it's apparently that hard. It's hard because you assume I did not understood you point and you keep repeating the same thing. I understand you point and showed you why it isn't a mangling

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread kinke via Digitalmars-d
On Tuesday, 28 March 2017 at 12:55:02 UTC, deadalnix wrote: On Tuesday, 28 March 2017 at 08:30:43 UTC, kinke wrote: What I don't get is why it's considered important to have a matching C++ mangling for templates across D and C++ - what for? I only care about mangling wrt. If you still think t

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread deadalnix via Digitalmars-d
On Tuesday, 28 March 2017 at 08:30:43 UTC, kinke wrote: What I don't get is why it's considered important to have a matching C++ mangling for templates across D and C++ - what for? I only care about mangling wrt. If you still think this is a mangling problem, please reread my first response i

Re: More exception classes into Phobos?

2017-03-28 Thread Walter Bright via Digitalmars-d
On 3/25/2017 6:44 AM, Jacob Carlborg wrote: Talk about just providing a generic exception type. Take this error message, using std.file.copy: std.file.FileException@d.d(3354): /tmp/bar/foo.txt: Permission denied It doesn't tell if the failed permission is for the source or for the target. If fa

Re: More exception classes into Phobos?

2017-03-28 Thread Георгий via Digitalmars-d
On Tuesday, 28 March 2017 at 08:29:44 UTC, Георгий wrote: I meant such cases in the first place Well, I lie, I meant both.

Re: const(Class) is mangled as Class const* const

2017-03-28 Thread kinke via Digitalmars-d
On Tuesday, 28 March 2017 at 02:14:25 UTC, Jonathan M Davis wrote: Realistically, unless D fully supports C++ (which pretty much means that it has to become C++ on some level), you're almost always going to be stuck with some sort of glue layer between D code and C++ code. There's no reasonable

Re: More exception classes into Phobos?

2017-03-28 Thread Георгий via Digitalmars-d
On Thursday, 23 March 2017 at 16:44:51 UTC, Jonathan M Davis wrote: Classes should not be implementing interfaces only to throw exceptions when they don't really want to be implementing some of the functionality of that interface. That's just plain bad design. There are the cases, when No

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Russel Winder via Digitalmars-d
On Tue, 2017-03-28 at 07:32 +, Suliman via Digitalmars-d wrote: > I found very interesting Python async framework japronto  > https://github.com/squeaky-pl/japronto > > Test show that in some cases japronto may work as fast as Go. > > Can vibed be competitor (or even better) than Go and Pytho

Re: Can vibed be fast as Go or Python?

2017-03-28 Thread Daniel Kozak via Digitalmars-d
Dne 28.3.2017 v 09:32 Suliman via Digitalmars-d napsal(a): I found very interesting Python async framework japronto https://github.com/squeaky-pl/japronto Test show that in some cases japronto may work as fast as Go. Can vibed be competitor (or even better) than Go and Python for micro-servi

Can vibed be fast as Go or Python?

2017-03-28 Thread Suliman via Digitalmars-d
I found very interesting Python async framework japronto https://github.com/squeaky-pl/japronto Test show that in some cases japronto may work as fast as Go. Can vibed be competitor (or even better) than Go and Python for micro-services?

Re: OpenSSL to switch licenses to Apache 2.0

2017-03-28 Thread Andrea Fontana via Digitalmars-d
On Tuesday, 28 March 2017 at 05:37:11 UTC, Nick Sabalausky (Abscissa) wrote: On 03/26/2017 11:25 PM, Adam Wilson wrote: Hi Everyone, I know that the licensing around OpenSSL has been a somewhat controversial topic around the D world. So I though that you might find this bit of news interestin