Re: Compiling vibe.d application for Amazon ec2 instance

2016-09-14 Thread Seb via Digitalmars-d-learn
On Monday, 12 September 2016 at 02:14:08 UTC, Jonathan M Davis wrote: On Sunday, September 11, 2016 23:12:15 crimaniak via Digitalmars-d-learn wrote: [...] I've never used EC2, so I don't know what it would take to be able to build in the same environment locally (though I would certainly

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread ketmar via Digitalmars-d-announce
p.p.s. yep, VT-100 had only 4 functional keys, so we still enjoying having 'em encoded separately from the others.

refRange and @disable this(this);

2016-09-14 Thread Jerry via Digitalmars-d
I got a range which disables copy construction and I want to loop the range within another loop using the same range. So I thought I can mark the struct range with @disable this(this) and then use refRange to initialize the loop. So with something like this: void main() { auto

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread ketmar via Digitalmars-d-announce
On Wednesday, 14 September 2016 at 05:58:51 UTC, Vadim Lopatin wrote: Thank you! Now dlangui terminal mode supports only 16 colors. Some refactoring is required to support RGB colors. in my editor i'm simply using rgb in [0..255] range, and mapping that to what terminal has. yet it is

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread ketmar via Digitalmars-d-announce
On Wednesday, 14 September 2016 at 13:04:40 UTC, ketmar wrote: On Wednesday, 14 September 2016 at 05:58:51 UTC, Vadim Lopatin CSI-with-modifier codes: \e[1; this is common format for keys with modifiers, actually. let me quote my rawtty2: bool xtermMods (uint mci) @nogc { switch (mci) {

Re: What is the most stable D compiler

2016-09-14 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 14 September 2016 at 12:13:33 UTC, eugene wrote: On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote: On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? because it's slightly before DMD the answer is: LDC.

Re: iPhone vs Android

2016-09-14 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 14 September 2016 at 13:28:45 UTC, finalpatch wrote: On Tuesday, 13 September 2016 at 18:24:26 UTC, deadalnix wrote: No you don't, as how often the GC kicks in depend of the rate at which you produce garbage, which is going to be very low with an hybrid approach. This is simply

Re: What is the most stable D compiler

2016-09-14 Thread eugene via Digitalmars-d
On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote: On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most of the

Beta D 2.071.2-b5

2016-09-14 Thread Martin Nowak via Digitalmars-d-announce
Fifth and hopefully last beta for the 2.071.2 release. This comes with two more fixes for Issue 16031 and 16460. http://dlang.org/changelog/2.071.2.html http://dlang.org/download.html#dmd_beta Please report any bugs at https://issues.dlang.org -Martin

Re: iPhone vs Android

2016-09-14 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, September 13, 2016 16:13:05 H. S. Teoh via Digitalmars-d wrote: > On Tue, Sep 13, 2016 at 03:19:54PM -0700, Jonathan M Davis via Digitalmars-d > wrote: [...] > > > But none of the code that's marked @nogc can throw an exception unless > > you're either dealing with pre-allocated

Re: iPhone vs Android

2016-09-14 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 14 September 2016 at 06:33:59 UTC, Shachar Shemesh wrote: On 14/09/16 09:05, Walter Bright wrote: On 9/13/2016 10:38 PM, Shachar Shemesh wrote: But if you do want to allow it, then my original problem comes back. You have to scan the malloced memory because you are not sure

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread ketmar via Digitalmars-d-announce
On Wednesday, 14 September 2016 at 13:04:40 UTC, ketmar wrote: in my editor i'm simply using rgb in [0..255] range, and mapping that to what terminal has. yet it is probably not the best way to make something nice looking when only 16 colors are available. heh, i should try and see how it will

Re: vibe.d PaaS

2016-09-14 Thread llaine via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 09:40:47 UTC, wobbles wrote: On Wednesday, 14 September 2016 at 09:01:11 UTC, Guillaume Piolat wrote: Is there vibe.d hosting sold anywhere? Not that I know, but any VPS you rent would be capable of hosting it. I guess you don't want to deal with all of

Re: What is the most stable D compiler

2016-09-14 Thread rikki cattermole via Digitalmars-d
On 14/09/2016 11:34 PM, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? Which can be used in production? Why there are 3(maybe more) compilers and not just one? What exactly do you define as stable?

[Issue 14414] allow to set hash seed

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14414 --- Comment #1 from Sobirari Muhomori --- Another possibility is to change the hash algorithm adaptively by counting collisions. --

Re: What is the most stable D compiler

2016-09-14 Thread Johan Engelen via Digitalmars-d
On Wednesday, 14 September 2016 at 12:13:33 UTC, eugene wrote: On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote: On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? because it's slightly before DMD the answer is: LDC.

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Sep 14, 2016 at 3:11 PM, ketmar via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Wednesday, 14 September 2016 at 13:08:18 UTC, Rory McGuire wrote: > >> Screenshots here are what can be done with terminal/ascii: >> http://caca.zoy.org/wiki/libcaca >> > >

Re: Virtual Methods hurting performance in the DMD frontend

2016-09-14 Thread Johan Engelen via Digitalmars-d
On Tuesday, 13 September 2016 at 21:01:34 UTC, Stefan Koch wrote: On Monday, 12 September 2016 at 08:03:45 UTC, Stefan Koch wrote: On Sunday, 11 September 2016 at 21:48:56 UTC, Stefan Koch wrote: Those are indirect class I meant indirect calls! @Jacob Yes that is my indented solution.

What is the most stable D compiler

2016-09-14 Thread eugene via Digitalmars-d
What is the most reliable D compiler: dmd, ldc, gdc? Which can be used in production? Why there are 3(maybe more) compilers and not just one?

Re: Beta D 2.071.2-b5

2016-09-14 Thread Johan Engelen via Digitalmars-d-announce
On Wednesday, 14 September 2016 at 12:16:51 UTC, Martin Nowak wrote: Fifth and hopefully last beta for the 2.071.2 release. This comes with two more fixes for Issue 16031 and 16460. LDC master is up-to-date with 2.071.2-b5!

Re: What is the most stable D compiler

2016-09-14 Thread Klmp via Digitalmars-d
On Wednesday, 14 September 2016 at 11:52:00 UTC, Klmp wrote: On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? because it's slightly before DMD the answer is: LDC. I meant slightly "behind", "before" is not appropriated. i

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread ketmar via Digitalmars-d-announce
On Wednesday, 14 September 2016 at 13:08:18 UTC, Rory McGuire wrote: Screenshots here are what can be done with terminal/ascii: http://caca.zoy.org/wiki/libcaca still, you can't use shading charaters to color text, so 16 colors for text output won't look that impressive. ;-)

Re: colour lib needs reviewers

2016-09-14 Thread Meta via Digitalmars-d
On Wednesday, 14 September 2016 at 13:28:23 UTC, Manu wrote: Cheers. Yeah, I need to do better with ddoc. ... I'm just gonna go on the record and say that I am really, really not enjoying ddoc ;) I can't say I'm a fan either.

Re: ddoc latex/formulas?

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 9/14/16 1:50 AM, Manu via Digitalmars-d wrote: Can we produce formulas, or latex in ddoc? Are there any examples in phobos I can refer to? https://github.com/dlang/dlang.org/blob/master/latex.ddoc That's the macros file for generating the language spec in LaTeX format. Andrei

Re: What is the most stable D compiler

2016-09-14 Thread eugene via Digitalmars-d
On Wednesday, 14 September 2016 at 11:35:46 UTC, rikki cattermole wrote: On 14/09/2016 11:34 PM, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? Which can be used in production? Why there are 3(maybe more) compilers and not just one? What exactly do you define as stable?

Re: I hate new DUB config format

2016-09-14 Thread Suliman via Digitalmars-d
Sönke Ludwig, really sorry. It's look my big mistake. I looked at SDL more detail, and this format is much better than JSON. I hope a lot of people is changed their position too.

Re: colour lib needs reviewers

2016-09-14 Thread Meta via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I added packed-RGB support, including weird micro-float and shared-exponent formats. They're important for interacting with any real-time

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Sep 14, 2016 at 3:04 PM, ketmar via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Wednesday, 14 September 2016 at 05:58:51 UTC, Vadim Lopatin wrote: > >> Thank you! >> Now dlangui terminal mode supports only 16 colors. >> Some refactoring is required to

Re: colour lib needs reviewers

2016-09-14 Thread Manu via Digitalmars-d
On 14 September 2016 at 22:47, Meta via Digitalmars-d wrote: > On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: >> >> I think I'm about as happy with my colour lib as I'm going to be. It >> really needs reviews. >> >> I added packed-RGB support, including

Re: colour lib needs reviewers

2016-09-14 Thread Marco Leise via Digitalmars-d
Am Wed, 14 Sep 2016 11:36:12 +1000 schrieb Manu via Digitalmars-d : > On 14 September 2016 at 04:34, Marco Leise via Digitalmars-d > wrote: > > JavaScript's canvas works that way for > > example. I.e. the only pixel format is RGBA for

Re: What is the most stable D compiler

2016-09-14 Thread rikki cattermole via Digitalmars-d
On 14/09/2016 11:37 PM, eugene wrote: On Wednesday, 14 September 2016 at 11:35:46 UTC, rikki cattermole wrote: On 14/09/2016 11:34 PM, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? Which can be used in production? Why there are 3(maybe more) compilers and not just one?

Re: What is the most stable D compiler

2016-09-14 Thread Klmp via Digitalmars-d
On Wednesday, 14 September 2016 at 11:34:22 UTC, eugene wrote: What is the most reliable D compiler: dmd, ldc, gdc? because it's slightly before DMD the answer is: LDC. GDC is too far behind DMD is at the front LDC has most of the DMD fixes but sometimes without the regressions coming from

Re: iPhone vs Android

2016-09-14 Thread finalpatch via Digitalmars-d
On Tuesday, 13 September 2016 at 18:24:26 UTC, deadalnix wrote: No you don't, as how often the GC kicks in depend of the rate at which you produce garbage, which is going to be very low with an hybrid approach. This is simply not true. Assume in a pure GC program the GC heap can grow up to X

Re: ddoc latex/formulas?

2016-09-14 Thread Manu via Digitalmars-d
On 14 September 2016 at 21:36, Andrei Alexandrescu via Digitalmars-d wrote: > On 9/14/16 1:50 AM, Manu via Digitalmars-d wrote: >> >> Can we produce formulas, or latex in ddoc? Are there any examples in >> phobos I can refer to? > > >

Re: vibe.d PaaS

2016-09-14 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 09:40:47 UTC, wobbles wrote: On Wednesday, 14 September 2016 at 09:01:11 UTC, Guillaume Piolat wrote: Is there vibe.d hosting sold anywhere? Not that I know, but any VPS you rent would be capable of hosting it. I guess you don't want to deal with all of

Re: What is the most stable D compiler

2016-09-14 Thread eugene via Digitalmars-d
yes, speed is a second matter, so the first matter is reliability, i.e.: the less bugs compiler has, the more it is stable, which of them is the most stable one?

Re: Critque of Rust's collection types

2016-09-14 Thread Kagamin via Digitalmars-d
On Wednesday, 14 September 2016 at 00:36:39 UTC, Walter Bright wrote: Of particular interest is the advocacy of collision attack resistance. Is anyone interested in exploring this w.r.t. D's builtin hashes? Perl's approach is probably good enough

Re: Binary heap: obtain a _reference_ to the front of the heap

2016-09-14 Thread Johan Engelen via Digitalmars-d-learn
On Tuesday, 13 September 2016 at 08:55:15 UTC, Nicholas Wilson wrote: On Tuesday, 13 September 2016 at 08:19:04 UTC, Johan Engelen wrote: In the binary heap documentation, I read that `BinaryHeap.front()` "Returns a copy of the front of the heap". [1] Is there no function to access the front

Re: refRange and @disable this(this);

2016-09-14 Thread Jerry via Digitalmars-d
On Wednesday, 14 September 2016 at 12:39:16 UTC, Jerry wrote: It feels strange that refRange ever want to copy. Bug or feature? Or more specificly, shouldn't save only be defined if the range defines it instead of using copy? Which is presume is the problem.

Re: ddoc latex/formulas?

2016-09-14 Thread jmh530 via Digitalmars-d
On Wednesday, 14 September 2016 at 13:38:21 UTC, Manu wrote: I'm just gonna come out and say that I really don't feel like taking the few hours it might take me to try and understand what's going on here. I really have better things to do... Considering I don't really know latex either, I

Re: Beta D 2.071.2-b5

2016-09-14 Thread Ali Çehreli via Digitalmars-d-announce
On 09/14/2016 05:58 AM, Johan Engelen wrote: On Wednesday, 14 September 2016 at 12:16:51 UTC, Martin Nowak wrote: Fifth and hopefully last beta for the 2.071.2 release. This comes with two more fixes for Issue 16031 and 16460. LDC master is up-to-date with 2.071.2-b5! Wow! LDC is just 42

Re: refRange and @disable this(this);

2016-09-14 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, September 14, 2016 12:39:16 Jerry via Digitalmars-d wrote: > I got a range which disables copy construction and I want to loop > the range within another loop using the same range. > So I thought I can mark the struct range with @disable this(this) > and then use refRange to

Re: Beta D 2.071.2-b5

2016-09-14 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Sep 14, 2016 at 4:04 PM, Ali Çehreli via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On 09/14/2016 05:58 AM, Johan Engelen wrote: > >> On Wednesday, 14 September 2016 at 12:16:51 UTC, Martin Nowak wrote: >> >>> Fifth and hopefully last beta for the 2.071.2

Re: vibe.d PaaS

2016-09-14 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 10:56:57 UTC, llaine wrote: No PaaS service, but you can pretty simply use Heroku to deploy any vibe.d application. Check the tour.dlang.io http://tour.dlang.io/tour/en/vibed/deploy-on-heroku where everything is explained :) Thanks!

vibe.d maxRequestSize

2016-09-14 Thread Chris via Digitalmars-d-learn
The vibe.d server rejects `XMLHttpRequest`s that are too long (in the eyes of the server). In the docs it says "maxRequestSize ulong Maximum number of transferred bytes per request after which the connection is closed with [sic!]" However, when you go to

Re: iPhone vs Android

2016-09-14 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, September 14, 2016 07:43:29 H. S. Teoh via Digitalmars-d wrote: > > But the fact that the workarounds either require that you don't have > > unique, independent exceptions or that you know that you need to > > manually free the exception after catching it is a serious problem. > >

Re: ddoc latex/formulas?

2016-09-14 Thread bachmeier via Digitalmars-d
On Wednesday, 14 September 2016 at 13:38:21 UTC, Manu wrote: On 14 September 2016 at 21:36, Andrei Alexandrescu via Digitalmars-d wrote: On 9/14/16 1:50 AM, Manu via Digitalmars-d wrote: Can we produce formulas, or latex in ddoc? Are there any examples in phobos

Re: refRange and @disable this(this);

2016-09-14 Thread Mathias Lang via Digitalmars-d
You should be able to work around this by using `for` loop instead of `foreach`. IMO that's a design bug in `foreach`: https://issues.dlang.org/show_bug.cgi?id=15413 2016-09-14 14:39 GMT+02:00 Jerry via Digitalmars-d < digitalmars-d@puremagic.com>: > I got a range which disables copy

Re: iPhone vs Android

2016-09-14 Thread H. S. Teoh via Digitalmars-d
On Wed, Sep 14, 2016 at 05:19:45AM -0700, Jonathan M Davis via Digitalmars-d wrote: > On Tuesday, September 13, 2016 16:13:05 H. S. Teoh via Digitalmars-d wrote: > > On Tue, Sep 13, 2016 at 03:19:54PM -0700, Jonathan M Davis via Digitalmars-d > > wrote: [...] > > > > > But none of the code that's

Re: Can vibe d leverage existing web technologies?

2016-09-14 Thread Intersteller via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 04:22:02 UTC, Brad Anderson wrote: On Tuesday, 13 September 2016 at 23:45:18 UTC, Intersteller wrote: vibe.d does not have much lateral support as the most commons web technologies do. Can vibe.d leverage pre-existing techs such as php, ruby/rails, etc?

[Issue 16493] New: Request for an OS-independent interface to access cryptographically secure pseudo random number generators

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16493 Issue ID: 16493 Summary: Request for an OS-independent interface to access cryptographically secure pseudo random number generators Product: D Version: D2

Null references and access violation

2016-09-14 Thread Bauss via Digitalmars-d
Can someone riddle me this, why D gives an access violation instead of ex. a null reference exception? Like let's say you have a field that's a class and you forget to give it a value. Now that will cause an access violation, but generally access violations are an indication that you're

Re: Using OpenGL

2016-09-14 Thread Darren via Digitalmars-d-learn
Kind of resurrecting this thread; hope that's okay. I'm working through this tutorial: http://www.learnopengl.com/#!Getting-started/Textures It uses SOIL to load images, but I haven't seen any SOIL bindings in dub. I tried using SDL and SDL_Image but when the program ran it just crashed.

Re: Critque of Rust's collection types

2016-09-14 Thread cym13 via Digitalmars-d
On Wednesday, 14 September 2016 at 11:59:13 UTC, Kagamin wrote: On Wednesday, 14 September 2016 at 00:36:39 UTC, Walter Bright wrote: Of particular interest is the advocacy of collision attack resistance. Is anyone interested in exploring this w.r.t. D's builtin hashes? Perl's approach is

Re: vibe.d PaaS

2016-09-14 Thread wobbles via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 16:03:50 UTC, Guillaume Piolat wrote: On Wednesday, 14 September 2016 at 10:56:57 UTC, llaine wrote: No PaaS service, but you can pretty simply use Heroku to deploy any vibe.d application. Check the tour.dlang.io

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-14 Thread earthfront via Digitalmars-d
On Saturday, 3 September 2016 at 16:52:50 UTC, Martin Nowak wrote: On Tuesday, 30 August 2016 at 22:24:12 UTC, Ali Çehreli wrote: I don't agree with the current solution: Well let's come up with a better solution then. Let's start by finding some proper use-cases that require introspection

Re: Null references and access violation

2016-09-14 Thread Marco Leise via Digitalmars-d
Am Wed, 14 Sep 2016 16:52:19 + schrieb Bauss : > Can someone riddle me this, why D gives an access violation > instead of ex. a null reference exception? Access violations cost exactly 0. Noone needs to do anything extra for this check that isn't done by the CPU already.

Re: colour lib needs reviewers

2016-09-14 Thread Marco Leise via Digitalmars-d
Am Wed, 14 Sep 2016 13:47:43 + schrieb Meta : > On Wednesday, 14 September 2016 at 13:28:23 UTC, Manu wrote: > > Cheers. > > Yeah, I need to do better with ddoc. > > > > ... I'm just gonna go on the record and say that I am really, > > really not enjoying ddoc ;) > > I

Re: Critque of Rust's collection types

2016-09-14 Thread Klmp via Digitalmars-d
On Wednesday, 14 September 2016 at 03:49:35 UTC, Basile B. wrote: On Wednesday, 14 September 2016 at 00:36:39 UTC, Walter Bright wrote: On 9/13/2016 4:47 PM, Walter Bright wrote: http://ticki.github.io/blog/horrible/ Some worthwhile insights into what makes a good collection type.

Re: ddoc latex/formulas?

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 09/14/2016 09:38 AM, Manu via Digitalmars-d wrote: On 14 September 2016 at 21:36, Andrei Alexandrescu via Digitalmars-d wrote: On 9/14/16 1:50 AM, Manu via Digitalmars-d wrote: Can we produce formulas, or latex in ddoc? Are there any examples in phobos I can

Re: iPhone vs Android

2016-09-14 Thread deadalnix via Digitalmars-d
On Wednesday, 14 September 2016 at 13:28:45 UTC, finalpatch wrote: On Tuesday, 13 September 2016 at 18:24:26 UTC, deadalnix wrote: No you don't, as how often the GC kicks in depend of the rate at which you produce garbage, which is going to be very low with an hybrid approach. This is simply

Re: DIP1000

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
Some progress with the DIP1000 semantics. So I made a few changes to the grammar of the mini-language (call it MiniD1000), which is at http://erdani.com/d/DIP1000-grammar.html. Notable aspects: * Programs are a sequence of function definitions, struct definitions, and global variable

Re: iPhone vs Android

2016-09-14 Thread deadalnix via Digitalmars-d
On Wednesday, 14 September 2016 at 07:55:24 UTC, John Colvin wrote: On Tuesday, 13 September 2016 at 22:28:09 UTC, deadalnix wrote: On Tuesday, 13 September 2016 at 22:19:54 UTC, Jonathan M Davis wrote: The big problem with exceptions being allocated by the GC isn't really the GC but @nogc.

Re: Null references and access violation

2016-09-14 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, September 14, 2016 16:52:19 Bauss via Digitalmars-d wrote: > Can someone riddle me this, why D gives an access violation > instead of ex. a null reference exception? > > Like let's say you have a field that's a class and you forget to > give it a value. Now that will cause an access

Re: Null references and access violation

2016-09-14 Thread pineapple via Digitalmars-d
On Wednesday, 14 September 2016 at 18:36:46 UTC, Jonathan M Davis wrote: If you don't want to have problems with dereferencing null pointers or references, then check for null in the cases where a pointer or reference might be null. - Jonathan M Davis Writing your functions that disallow

[Issue 14125] @trusted nested helper functions in std.file

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14125 --- Comment #79 from Walter Bright --- This pull request: https://github.com/dlang/phobos/pull/4786 will help simplify things in std.file by making some of the machinations to work with both arrays and ranges unnecessary.

Re: colour lib needs reviewers

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 09/14/2016 09:47 AM, Meta wrote: On Wednesday, 14 September 2016 at 13:28:23 UTC, Manu wrote: Cheers. Yeah, I need to do better with ddoc. ... I'm just gonna go on the record and say that I am really, really not enjoying ddoc ;) I can't say I'm a fan either. Why? -- Andrei

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread Stefan Koch via Digitalmars-d
On Wednesday, 14 September 2016 at 20:24:13 UTC, Stefan Koch wrote: I would like to see users of fullyQualifiedName because apart from binderoo code which seems to work, I have none. That was supposed to say : I would like to see [test cases from] users of fullyQulifiedName.

The worst Phobos template (in binderoo)

2016-09-14 Thread Stefan Koch via Digitalmars-d
Hi Guys, I recently had a closer look at the templates that cost the most time to instantiate in the frontend. and there is one clear winner. FullyQualified name from std.traits. It takes a whooping 500 milliseconds(on my test-case) for it's semantic phase. this is because this template is

Re: colour lib needs reviewers

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 09/14/2016 09:28 AM, Manu via Digitalmars-d wrote: ... I'm just gonna go on the record and say that I am really, really not enjoying ddoc ;) I was using ddoc today for the Greeks in DIP1000 and was musing about what makes it annoying. I think a major part is the macro invocation syntax:

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 09/14/2016 04:52 PM, Stefan Koch wrote: On Wednesday, 14 September 2016 at 20:24:13 UTC, Stefan Koch wrote: It takes a whooping 500 milliseconds Ahm... I misread my performance graph it's 138ms for the first instanciation. and around 5ms for every following one. the total time spent on it

Re: Compiling vibe.d application for Amazon ec2 instance

2016-09-14 Thread David Nadlinger via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 12:13:58 UTC, Seb wrote: You should try -static in ldc, it's works like a dream for me :) Yep, LDC supports fully static linking on Linux (and is currently the only compiler to do so). — David

Re: vibe.d maxRequestSize

2016-09-14 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/14/16 9:58 AM, Chris wrote: The vibe.d server rejects `XMLHttpRequest`s that are too long (in the eyes of the server). In the docs it says "maxRequestSize ulong Maximum number of transferred bytes per request after which the connection is closed with [sic!]" However, when you go to

[Issue 16494] New: cannot find source code for runtime library after brew install in custom directory

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16494 Issue ID: 16494 Summary: cannot find source code for runtime library after brew install in custom directory Product: D Version: D2 Hardware: x86 OS: Linux

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread Stefan Koch via Digitalmars-d
On Wednesday, 14 September 2016 at 20:24:13 UTC, Stefan Koch wrote: It takes a whooping 500 milliseconds Ahm... I misread my performance graph it's 138ms for the first instanciation. and around 5ms for every following one. the total time spent on it was 500ms

Re: colour lib needs reviewers

2016-09-14 Thread Walter Bright via Digitalmars-d
On 9/14/2016 5:47 AM, Meta wrote: DDOC sections such as Returns, Args, etc. s/Args/Params/

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread Stefan Koch via Digitalmars-d
On Wednesday, 14 September 2016 at 21:06:10 UTC, Andrei Alexandrescu wrote: On 09/14/2016 04:52 PM, Stefan Koch wrote: [...] (Disclaimer: I didn't run any speed tests.) By looking at the definition of fullyQualifiedName it seems to me we can go a long way with traditional optimization

[Issue 16492] support @nogc in debug{} blocks

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16492 --- Comment #2 from Manu --- It already does that... no? --

Getting a String Literal From an Aliased Template Mixin Parameter

2016-09-14 Thread jsako via Digitalmars-d-learn
I was making a quick mocking infrastructure for internal mocks so I wouldn't have to pass in objects to constructors all the time and came up with this: [code] mixin template internalMockRig(alias _var, string _varName, alias _varStandard, alias _varMock) { version(unittest)

Re: colour lib needs reviewers

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 9/14/16 7:04 PM, bachmeier wrote: On Wednesday, 14 September 2016 at 21:31:51 UTC, Andrei Alexandrescu wrote: Please add your own ideas. Andrei One thing that I didn't like when I used DDOC was that I couldn't find a way to add a block of text directly to the output file. I know that

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread Atila Neves via Digitalmars-d
On Wednesday, 14 September 2016 at 20:28:13 UTC, Stefan Koch wrote: On Wednesday, 14 September 2016 at 20:24:13 UTC, Stefan Koch wrote: I would like to see users of fullyQualifiedName because apart from binderoo code which seems to work, I have none. That was supposed to say : I would like

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread David Nadlinger via Digitalmars-d
On Wednesday, 14 September 2016 at 22:48:29 UTC, Pierre Krafft wrote: I've had to use fullyQualifiedName in some string mixins. Unless there is more to the example than what meets the eye, "had to" isn't quite true, and even with the `import moduleName!…` hack, your code is still

Re: colour lib needs reviewers

2016-09-14 Thread Andrei Alexandrescu via Digitalmars-d
On 09/14/2016 05:31 PM, Andrei Alexandrescu wrote: After writing it for a few dozen times today, I figured it's objectively awkward to type (at least on the US keyboard): the dollar sign followed by the left paren is just unpleasant for mechanical reasons. The resulting look is alien too, as

[Issue 16494] cannot find source code for runtime library after brew install in custom directory

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16494 Timothee Cour changed: What|Removed |Added CC|

Re: DIP1000

2016-09-14 Thread Timon Gehr via Digitalmars-d
On 14.09.2016 21:49, Andrei Alexandrescu wrote: Some progress with the DIP1000 semantics. So I made a few changes to the grammar of the mini-language (call it MiniD1000), which is at http://erdani.com/d/DIP1000-grammar.html. Notable aspects: * Programs are a sequence of function definitions,

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread Vadim Lopatin via Digitalmars-d-announce
On Tuesday, 13 September 2016 at 13:40:32 UTC, ketmar wrote: On Tuesday, 13 September 2016 at 12:29:47 UTC, Vadim Lopatin wrote: Screenshots on imgur: http://imgur.com/a/eaRiT btw. please note that on most GNU/Linux terminals you can use simple RGB colors (with each component in [0..5]

[Issue 16031] [REG2.071] stale DW.ref.name EH symbol used with -lib and -fPIC

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16031 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/253b94371378a1acdaca26b515366be74b4f35bd fix Issue 16031 - symbol idx out of bounds w/ multilib and

Re: Beta D 2.071.2-b4

2016-09-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-09-13 16:00, Martin Nowak wrote: There will be another beta tomorrow or so to include at least one more fix (for Issue 16460) and we'll soon release 2.071.2. This is a good moment to double check whether all the deprecation warnings for your project caused by the import changes are

Re: iPhone vs Android

2016-09-14 Thread Walter Bright via Digitalmars-d
On 9/13/2016 10:38 PM, Shachar Shemesh wrote: But if you do want to allow it, then my original problem comes back. You have to scan the malloced memory because you are not sure where that memory might contain pointers to GC managed memory. If mallocing for types that are statically known at

Re: DlangUI 0.9.0: Console backend added

2016-09-14 Thread Vadim Lopatin via Digitalmars-d-announce
On Tuesday, 13 September 2016 at 12:50:02 UTC, Rory McGuire wrote: Did you get my post about the keyboard thing? You can test it by running dub --single filename.d output looks like: kp: [27, 91, 49, 59, 50, 68] kp: [27, 91, 49, 59, 53, 68] kp: [27, 91, 49, 59, 51, 68] kp: [27, 91, 68] if I

Re: Critque of Rust's collection types

2016-09-14 Thread NVolcz via Digitalmars-d
On Wednesday, 14 September 2016 at 00:36:39 UTC, Walter Bright wrote: On 9/13/2016 4:47 PM, Walter Bright wrote: http://ticki.github.io/blog/horrible/ Some worthwhile insights into what makes a good collection type. https://news.ycombinator.com/item?id=12488233 Of particular interest is

Re: Should debug{} allow GC?

2016-09-14 Thread Walter Bright via Digitalmars-d
On 9/13/2016 7:40 PM, Manu via Digitalmars-d wrote: https://issues.dlang.org/show_bug.cgi?id=16492 Thanks!

[Issue 16031] [REG2.071] stale DW.ref.name EH symbol used with -lib and -fPIC

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16031 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: iPhone vs Android

2016-09-14 Thread deadalnix via Digitalmars-d
On Wednesday, 14 September 2016 at 05:38:38 UTC, Shachar Shemesh wrote: On 14/09/16 02:59, Walter Bright wrote: Memory allocated with malloc() is unknown to the GC. This works fine unless a reference to the GC memory is inserted into malloc'd data, which is why there's an API to the GC to

Re: Virtual Methods hurting performance in the DMD frontend

2016-09-14 Thread Jacob Carlborg via Digitalmars-d
On 2016-09-13 23:01, Stefan Koch wrote: However much of dmd's code especially in dtemplate could be simpified if it could just switch on a value. instead of doing method calls and null checks. At least to me, it would be very useful for debugging purpose as well. -- /Jacob Carlborg

Re: vibe.d PaaS

2016-09-14 Thread wobbles via Digitalmars-d-learn
On Wednesday, 14 September 2016 at 09:01:11 UTC, Guillaume Piolat wrote: Is there vibe.d hosting sold anywhere? Not that I know, but any VPS you rent would be capable of hosting it. I guess you don't want to deal with all of the other services you'd need? (nginx / security / dbs etc etc ?)

Re: iPhone vs Android

2016-09-14 Thread Jacob Carlborg via Digitalmars-d
On 2016-09-13 20:40, Steven Schveighoffer wrote: Swift doesn't support exceptions AFAIK. It supports weird error handling that looks similar to exceptions, but is really just a standard return. i.e. this: do { try someFunctionThatErrors(arg) } catch(Exception ex) { // handle ex }

[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907 --- Comment #10 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b2d0226d4845d69b60ea26f54c1edec36ad08b11 supplemental change for Issue 15907 fix

[Issue 13615] stable sort not usable in @safe code

2016-09-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13615 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

Re: Beta D 2.071.2-b4

2016-09-14 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Sep 14, 2016 at 9:30 AM, Ali Çehreli via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On 09/12/2016 12:47 AM, Martin Nowak wrote: > > > This comes with a different fix for Issue 15907 than 2.071.2-b3. > > Kisses and hugs! :) > > Ali > > +1, this is _way_ better.

  1   2   >