D styled data format, Json failed

2009-05-03 Thread Saaa
I looked at the JSON format and it seems very inefficient at loading arrays as it isn't limited to one type per array. This is nice when you want to save a small array with different typed elements but for my purposes this is kind of a performance problem. This is why I will try and get suggest

Re: line drawing package?

2009-05-03 Thread BCS
Hello Daniel, Cairo is good for drawing; it has a very easy to learn API. I had a binding, but haven't touched it in ages; it's in bindings on dsource.org if you want to take a crack at it. Failing that, the C api isn't that hard to learn. Some URLs: Cairo: http://www.cairographics.org/ Old

Re: line drawing package?

2009-05-03 Thread BCS
Hello Daniel, I don't think you're going to get away without using a library. Libs are fine (if they run without to much trouble) Cairo is good for drawing; it has a very easy to learn API. I had a binding, but haven't touched it in ages; it's in bindings on dsource.org if you want to take

Re: line drawing package?

2009-05-03 Thread BCS
Hello John, Had you ruled out CreateWindowEx, LineTo and DrawText from the Win32 API? The time it would take me to figure out how to use the windows API at all would soak up most of my time budget. I have neved done GUI outside c#.

Re: How-to: input/output "Japanese Characters"?

2009-05-03 Thread Carlos Smith
"Georg Wrede" Sorry, somebody else has to help, I'm not using Windows. :/ LOL! You actualy helped a lot. You are not using Windows ! It works on Linux but not on Windows. Now, it may work on Windows too. But stream.d must be modified to take care of the differences between the following case

Re: How-to: input/output "Japanese Characters"?

2009-05-03 Thread Georg Wrede
Carlos Smith wrote: "Georg Wrede" a écrit dans le message de news: import std.stdio; void main() { auto lin = readln(); writeln(lin); } Works with your Japanese strings. It just works(tm). I am trying this on a North American WinXP station. I am using DMD V1. Sorry, somebody els

Re: isatty and Pavel stream.d

2009-05-03 Thread Georg Wrede
Carlos Smith wrote: "Jarrett Billingsley" a écrit dans le message de > extern(C) int isatty(int); And you should be able to use it. You shouldn't get any linking errors, at least I don't think. It worked fine.no link error. isatty is sometimes used like this: isatty(fileno(fp)) So i used

Re: How-to: input/output "Japanese Characters"?

2009-05-03 Thread Carlos Smith
"Georg Wrede" a écrit dans le message de news: import std.stdio; void main() { auto lin = readln(); writeln(lin); } Works with your Japanese strings. It just works(tm). I am trying this on a North American WinXP station. I am using DMD V1. You will find a small program at the end o

Re: line drawing package?

2009-05-03 Thread Jacob Carlborg
Bill Baxter wrote: On Sun, May 3, 2009 at 5:15 AM, John C wrote: BCS Wrote: I find my self in need of a line drawing package. I need to pop a window and draw lines and points. Text would be nice but I can live without it. Most importantly, I need something that is dirt simple to get running.

Re: line drawing package?

2009-05-03 Thread Bill Baxter
On Sun, May 3, 2009 at 5:15 AM, John C wrote: > BCS Wrote: > >> I find my self in need of a line drawing package. I need to pop a window >> and draw lines and points. Text would be nice but I can live without it. >> Most importantly, I need something that is dirt simple to get running. I >> don't

Re: line drawing package?

2009-05-03 Thread John C
BCS Wrote: > I find my self in need of a line drawing package. I need to pop a window > and draw lines and points. Text would be nice but I can live without it. > Most importantly, I need something that is dirt simple to get running. I > don't have time to dink around with libs (if I did have t

Re: line drawing package?

2009-05-03 Thread Christopher Wright
BCS wrote: I find my self in need of a line drawing package. I need to pop a window and draw lines and points. Text would be nice but I can live without it. Most importantly, I need something that is dirt simple to get running. I don't have time to dink around with libs (if I did have time I'd

Re: line drawing package?

2009-05-03 Thread bearophile
BCS Wrote: > I find my self in need of a line drawing package. I need to pop a window > and draw lines and points. Text would be nice but I can live without it. You may try this, the second test requires random numbers that are not included: http://www.fantascienza.net/leonardo/graphics.rar (Tha

Re: Unable to run dmd from a Makefile under MacOSX

2009-05-03 Thread Grzegorz Adam Hankiewicz
Grzegorz Adam Hankiewicz escribió: Hi. I'm finding trouble running dmd inside a Makefile. For some reason the dmd binary is never found, even though it is in my PATH and can be run from the commandline. I've read the Makefile documentation but I haven't found anything about commands using t