Re: The Problem With DIPs

2016-06-08 Thread Pie? via Digitalmars-d
On Wednesday, 8 June 2016 at 21:15:20 UTC, deadalnix wrote: On Wednesday, 8 June 2016 at 19:59:27 UTC, Walter Bright wrote: On 6/7/2016 1:32 PM, Jack Stouffer wrote: a lousy 28% of DIPs are either definitively closed or accepted. I understand that is frustrating. It happens to mine as well,

Re: The Problem With DIPs

2016-06-08 Thread Pie? via Digitalmars-d
On Wednesday, 8 June 2016 at 19:59:27 UTC, Walter Bright wrote: On 6/7/2016 1:32 PM, Jack Stouffer wrote: a lousy 28% of DIPs are either definitively closed or accepted. There are currently 34 issues on it, where we implemented a feature and inadvertently broke something. There are constant

Re: Parse File at compile time, but not embedded

2016-06-06 Thread Pie? via Digitalmars-d-learn
If I use an enum dmd DOES remove it in release build. But I'm not sure for the general case yet.

Re: Parse File at compile time, but not embedded

2016-06-06 Thread Pie? via Digitalmars-d-learn
On Tuesday, 7 June 2016 at 02:04:41 UTC, Mithun Hunsur wrote: On Monday, 6 June 2016 at 21:57:20 UTC, Pie? wrote: On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote: [...] This doesn't seem to be the case. In a release build, even though I never "use" the string, it is embedded. I

Re: Parse File at compile time, but not embedded

2016-06-06 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 21:31:32 UTC, Alex Parrill wrote: On Monday, 6 June 2016 at 17:31:52 UTC, Pie? wrote: Is it possible to parse a file at compile time without embedding it into the binary? I have a sort of "configuration" file that defines how to create some objects. I'd like to be

Parse File at compile time, but not embedded

2016-06-06 Thread Pie? via Digitalmars-d-learn
Is it possible to parse a file at compile time without embedding it into the binary? I have a sort of "configuration" file that defines how to create some objects. I'd like to be able to read how to create them but not have that config file stick around in the binary. e.g., (simple

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread Pie? via Digitalmars-d
On Monday, 6 June 2016 at 05:28:58 UTC, ketmar wrote: On Monday, 6 June 2016 at 05:13:11 UTC, Daniel Kozak wrote: You can still unregister your critical thread from GC. exactly. that's what i did in my sound engine, and it works like a charm: i can enjoy hiccup-less ogg replaying on the

Re: Embed files into binary.

2016-06-06 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 06:10:35 UTC, rikki cattermole wrote: On 06/06/2016 6:06 PM, Pie? wrote: On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote: On 06/06/2016 5:07 PM, Pie? wrote: [...] Then I would say go get a new image library as that one isn't a very good one.

Re: Embed files into binary.

2016-06-06 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote: On 06/06/2016 5:07 PM, Pie? wrote: [...] Then I would say go get a new image library as that one isn't a very good one. ..snip.. Right got rid of all that text. If you want to make the filesystem appear to have files it

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 03:23:02 UTC, rikki cattermole wrote: On 06/06/2016 3:11 PM, Pie? wrote: On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I believe the essentially converted the file into a ubyte or something and then

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this seems a bit of a kludge to me. They

Re: Andrei's list of barriers to D adoption

2016-06-05 Thread Pie? via Digitalmars-d
On Monday, 6 June 2016 at 02:20:52 UTC, Walter Bright wrote: Andrei posted this on another thread. I felt it deserved its own thread. It's very important. - I go to conferences. Train and consult at large companies.

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 02:18:48 UTC, docandrew wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I saw somewhere someone explaining how to embed resources into a binary using the import keyword. I believe the essentially converted the file into a ubyte or something and then wrote

Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
I saw somewhere someone explaining how to embed resources into a binary using the import keyword. I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this seems a bit of a kludge to me. Is it possible to

User Sub-Forms

2016-06-05 Thread Pie? via Digitalmars-d
Maybe it would be interesting to have a forum for users, by their name. e.g., Users Andrei Alexandrescu Walter Bright Users can petition to have themselves added. Works by these people can then be discussed in these groups. It will also make them feel special ;) Which may or

Re: Generalized Ranges

2016-06-05 Thread Pie? via Digitalmars-d
On Sunday, 5 June 2016 at 03:17:43 UTC, Joakim wrote: On Sunday, 5 June 2016 at 00:28:36 UTC, Pie? wrote: [...] D can be made to do so, but I don't think ranges can, as they assume linear traversal. [...] For structures where a consistent linear traversal can be specified, perhaps you

Generalized Ranges

2016-06-04 Thread Pie? via Digitalmars-d
In a mathematical space we can define operators that allow us to move around in it. Take your typical Euclidean N space. We can define a set of orthogonal motions for each dimension. These can be represented by vectors(your typical orthogonal matrix), derivatives(infinitesimal differential

Re: Writing adaptor/wrappers with most scalability and least work

2016-06-04 Thread Pie? via Digitalmars-d-learn
On Saturday, 4 June 2016 at 02:10:57 UTC, Adam D. Ruppe wrote: On Saturday, 4 June 2016 at 01:04:08 UTC, Pie? wrote: alias this pImage; It is actually `alias pImage this;` That should do what you want right here. Then you can add your own methods or wrap/disable the image ones one by

Re: adamdruppe: Drawing scaled image

2016-06-04 Thread Pie? via Digitalmars-d-learn
On Saturday, 4 June 2016 at 02:22:37 UTC, Adam D. Ruppe wrote: On Friday, 3 June 2016 at 20:06:50 UTC, Pie? wrote: Thanks! It is working. A few issues with my images being clipped and not throwing when file doesn't exist... That's weird.. I don't know what's going on there. BTW have you seen

Writing adaptor/wrappers with most scalability and least work

2016-06-03 Thread Pie? via Digitalmars-d-learn
I would like to temporarily write some adapters or wrappers for various types that allow the most extensibility with the least amount of work. The goal is to get moving quickly as possible and not try to implement all future needs. The wrappers will slowly turn into full their own types and

Cool D tricks resources?

2016-06-03 Thread Pie? via Digitalmars-d
Has anyone gathered up all the cool tricks one can do in D? There are a ton of things D can do differently that are optimal in some cases but I never remember them. A sort of cook book of D tricks for different applications would be nice

Re: adamdruppe: Drawing scaled image

2016-06-03 Thread Pie? via Digitalmars-d-learn
On Friday, 3 June 2016 at 15:47:16 UTC, Adam D. Ruppe wrote: On Thursday, 2 June 2016 at 04:01:03 UTC, Pie? wrote: Thanks, I'll look into it. I have tried OpenGL with simpledisplay but I cannot draw to the window. I assume other drawing methods are required? Yeah, you have to use the OpenGL

Re: Why I won't fix phobos bugs anymore

2016-06-02 Thread Pie? via Digitalmars-d
On Friday, 3 June 2016 at 05:18:49 UTC, Patrick Schluter wrote: On Thursday, 2 June 2016 at 20:20:58 UTC, Andrei Alexandrescu wrote: On 06/02/2016 03:41 PM, Basile B. wrote: Yesterday I've took the decision not to propose anymore PR for Phobos bugfixes, even if most of the time it's easy. 1)

Re: [OT] Things I like about Andrei

2016-06-02 Thread Pie? via Digitalmars-d
He's also very good looking!! That makes a difference! ;)

Re: Derive interface from class?

2016-06-02 Thread Pie? via Digitalmars-d-learn
On Thursday, 2 June 2016 at 16:14:47 UTC, Pie? wrote: Since D uses the single inheritance model for classes, I wonder if it is possible to write a class then extract the interface from it? e.g., class myclass { public void foo() { writeln("adf"); } } mixin!(extractInterface!(myclass,

Derive interface from class?

2016-06-02 Thread Pie? via Digitalmars-d-learn
Since D uses the single inheritance model for classes, I wonder if it is possible to write a class then extract the interface from it? e.g., class myclass { public void foo() { writeln("adf"); } } mixin!(extractInterface!(myclass, myinterface)); Where the mixin creates the interface as

Re: Asio Bindings?

2016-06-02 Thread Pie? via Digitalmars-d-learn
On Thursday, 2 June 2016 at 11:15:59 UTC, Guillaume Piolat wrote: On Thursday, 2 June 2016 at 06:28:51 UTC, Pie? wrote: On Thursday, 2 June 2016 at 04:52:50 UTC, Mithun Hunsur wrote: On Thursday, 2 June 2016 at 04:02:36 UTC, Pie? wrote: Does anyone know if there is any Asio bindings or direct

Re: Asio Bindings?

2016-06-02 Thread Pie? via Digitalmars-d-learn
On Thursday, 2 June 2016 at 04:52:50 UTC, Mithun Hunsur wrote: On Thursday, 2 June 2016 at 04:02:36 UTC, Pie? wrote: Does anyone know if there is any Asio bindings or direct D available that allows for IO? Check out vibe.d: https://vibed.org/ - it includes a fairly complete implementation of

Asio Bindings?

2016-06-01 Thread Pie? via Digitalmars-d-learn
Does anyone know if there is any Asio bindings or direct D available that allows for IO?

Re: adamdruppe: Drawing scaled image

2016-06-01 Thread Pie? via Digitalmars-d-learn
On Thursday, 2 June 2016 at 03:37:01 UTC, Adam D. Ruppe wrote: On Thursday, 2 June 2016 at 03:19:20 UTC, Pie? wrote: I'm curious about how to draw a scaled image. There's a few general options: 1) Scale it yourself in-memory then draw. This is a pain, I don't think my public libraries have

adamdruppe: Drawing scaled image

2016-06-01 Thread Pie? via Digitalmars-d-learn
I found your git hub and tried simpledisplay and png. I had virtually no problems getting them working from the get go! Thanks for your hard work!!! You deserve a cookie, or a million bucks! I'm curious about how to draw a scaled image. I would like to have a "global" scale for my image