Really easy optimization with std.experimental.allocator

2016-09-17 Thread Ryan via Digitalmars-d-learn
I've been learning about allocators in D. Much easier than C++, and this little program shows a really easy optimization. Just use the IAllocator interface with the GC. --- import std.datetime; import std.experimental.allocator;

Re: Window x64, LDC, Derelict : unable to compile

2016-09-17 Thread Guillaume Piolat via Digitalmars-d-learn
On Thursday, 15 September 2016 at 22:03:12 UTC, Patric Dexheimer wrote: LLVM D compiler (1a7070): based on DMD v2.071.2-b2 and LLVM 3.9.0git-fbbabf3 command: dub run --build=release --arch=x86_64 --compiler=D:/ldc/bin/ldc2.exe Output: Performing "release" build using D:/ldc/bin/ldc2.exe

Re: seg fault, now what?

2016-09-17 Thread Ryan via Digitalmars-d-learn
On Saturday, 17 September 2016 at 22:48:49 UTC, ag0aep6g wrote: On 09/17/2016 11:58 PM, Ryan wrote: On Saturday, 17 September 2016 at 21:44:22 UTC, Stefan Koch wrote: [...] Post the program somewhere otherwise we cannot help. [... code ...] Reduced and filed:

Re: seg fault, now what?

2016-09-17 Thread ag0aep6g via Digitalmars-d-learn
On 09/17/2016 11:58 PM, Ryan wrote: On Saturday, 17 September 2016 at 21:44:22 UTC, Stefan Koch wrote: [...] Post the program somewhere otherwise we cannot help. [... code ...] Reduced and filed: https://issues.dlang.org/show_bug.cgi?id=16506

Re: seg fault, now what?

2016-09-17 Thread Ryan via Digitalmars-d-learn
On Saturday, 17 September 2016 at 21:44:22 UTC, Stefan Koch wrote: On Saturday, 17 September 2016 at 21:12:08 UTC, Ryan wrote: Is there an alternative to reporting bugs via bugzilla? I tried to open an account, but they recommend not using your main e-mail address because it will be posted to

Re: seg fault, now what?

2016-09-17 Thread Stefan Koch via Digitalmars-d-learn
On Saturday, 17 September 2016 at 21:12:08 UTC, Ryan wrote: Is there an alternative to reporting bugs via bugzilla? I tried to open an account, but they recommend not using your main e-mail address because it will be posted to the web for all the spammers to find. But I don't have another

seg fault, now what?

2016-09-17 Thread Ryan via Digitalmars-d-learn
Is there an alternative to reporting bugs via bugzilla? I tried to open an account, but they recommend not using your main e-mail address because it will be posted to the web for all the spammers to find. But I don't have another e-mail address, and it seems a bit much to create a fake e-mail

Re: Embed glade file into a binary

2016-09-17 Thread Geert via Digitalmars-d-learn
On Saturday, 17 September 2016 at 19:07:33 UTC, Lodovico Giaretta wrote: addFromFile expects the *name* of the file. Because you already have the *contents* of the file, you should change method. Maybe addFromString is the correct one, but I'm not sure. "g.addFromString(fileContent);" It

Re: Embed glade file into a binary

2016-09-17 Thread Lodovico Giaretta via Digitalmars-d-learn
On Saturday, 17 September 2016 at 19:01:10 UTC, Geert wrote: On Saturday, 17 September 2016 at 18:36:52 UTC, llmp wrote: On Saturday, 17 September 2016 at 18:18:37 UTC, Geert wrote: I've compiled a small application, and it runs when i execute it at the same directory where is the glade file.

Re: Embed glade file into a binary

2016-09-17 Thread Geert via Digitalmars-d-learn
On Saturday, 17 September 2016 at 18:36:52 UTC, llmp wrote: On Saturday, 17 September 2016 at 18:18:37 UTC, Geert wrote: I've compiled a small application, and it runs when i execute it at the same directory where is the glade file. Is there a way to embed a glade file into a binary? enum

Re: Embed glade file into a binary

2016-09-17 Thread llmp via Digitalmars-d-learn
On Saturday, 17 September 2016 at 18:18:37 UTC, Geert wrote: I've compiled a small application, and it runs when i execute it at the same directory where is the glade file. Is there a way to embed a glade file into a binary? enum fileContent = import(file); fileContent is a static array of

Embed glade file into a binary

2016-09-17 Thread Geert via Digitalmars-d-learn
I've compiled a small application, and it runs when i execute it at the same directory where is the glade file. Is there a way to embed a glade file into a binary?

Re: Draw math formulas with ggplotd

2016-09-17 Thread John Colvin via Digitalmars-d-learn
On Saturday, 17 September 2016 at 12:09:04 UTC, Edwin van Leeuwen wrote: On Saturday, 17 September 2016 at 11:57:17 UTC, John Colvin wrote: On Saturday, 17 September 2016 at 11:45:07 UTC, Edwin van Leeuwen wrote: But I assumed he meant adding the formula onto the plot. Hah, yes, I should

Re: Draw math formulas with ggplotd

2016-09-17 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Saturday, 17 September 2016 at 11:57:17 UTC, John Colvin wrote: On Saturday, 17 September 2016 at 11:45:07 UTC, Edwin van Leeuwen wrote: But I assumed he meant adding the formula onto the plot. Hah, yes, I should have read the question better. Rereading the question I am actually not

Re: Draw math formulas with ggplotd

2016-09-17 Thread John Colvin via Digitalmars-d-learn
On Saturday, 17 September 2016 at 11:45:07 UTC, Edwin van Leeuwen wrote: On Saturday, 17 September 2016 at 11:22:04 UTC, John Colvin wrote: On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote: How do I draw math formulas programmatically? I want to do on screen what latex does on

Re: Draw math formulas with ggplotd

2016-09-17 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Saturday, 17 September 2016 at 11:22:04 UTC, John Colvin wrote: On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote: How do I draw math formulas programmatically? I want to do on screen what latex does on .pdf. And I want to draw a math formula in the image generated with

Re: Draw math formulas with ggplotd

2016-09-17 Thread John Colvin via Digitalmars-d-learn
On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote: How do I draw math formulas programmatically? I want to do on screen what latex does on .pdf. And I want to draw a math formula in the image generated with ggplotd. Generate data from those formulas (I like to do this with

Re: Draw math formulas with ggplotd

2016-09-17 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Saturday, 17 September 2016 at 09:56:09 UTC, Edwin van Leeuwen wrote: On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote: How do I draw math formulas programmatically? I want to do on screen what latex does on .pdf. And I want to draw a math formula in the image generated with

Re: Draw math formulas with ggplotd

2016-09-17 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote: How do I draw math formulas programmatically? I want to do on screen what latex does on .pdf. And I want to draw a math formula in the image generated with ggplotd. You can't at the moment. Parsing latex equations is not a

Re: dub: how to update package?

2016-09-17 Thread Intersteller via Digitalmars-d-learn
On Saturday, 17 September 2016 at 07:37:23 UTC, Suliman wrote: On Saturday, 17 September 2016 at 07:25:29 UTC, Intersteller wrote: I have a dub project, is there a way to update to get the latest package? dub upgrade Ok, thanks. Thought that would upgrade dub for some reason.

Re: dub: how to update package?

2016-09-17 Thread Intersteller via Digitalmars-d-learn
On Saturday, 17 September 2016 at 07:37:23 UTC, Suliman wrote: On Saturday, 17 September 2016 at 07:25:29 UTC, Intersteller wrote: I have a dub project, is there a way to update to get the latest package? dub upgrade I mean, I would like to update the packages used by a project. Not dub

Re: dub: how to update package?

2016-09-17 Thread Suliman via Digitalmars-d-learn
On Saturday, 17 September 2016 at 07:25:29 UTC, Intersteller wrote: I have a dub project, is there a way to update to get the latest package? dub upgrade

dub: how to update package?

2016-09-17 Thread Intersteller via Digitalmars-d-learn
I have a dub project, is there a way to update to get the latest package?