Re: Looking for documentation of D's lower-level aspects.

2011-10-19 Thread Jacob Carlborg
On 2011-10-20 00:59, Trass3r wrote: Am 20.10.2011, 00:06 Uhr, schrieb Sean Silva : == Quote from Jesse Phillips (jessekphillip...@gmail.com)'s article Right now D isn't ready to be used in this fashion It looks there's a more-or-less functional kernel written in D (and pretty well documented

Re: Implicit cast to immutable

2011-10-19 Thread Steven Schveighoffer
On Wed, 19 Oct 2011 21:39:47 -0400, Daniel Murphy wrote: "Steven Schveighoffer" wrote in message news:op.v3lug2q2eav7ka@localhost.localdomain... On Tue, 18 Oct 2011 02:40:12 -0400, Daniel Murphy wrote: "Steven Schveighoffer" wrote in message news:op.v3h06olweav7ka@localhost.localdomain

Re: Implicit cast to immutable

2011-10-19 Thread Daniel Murphy
"Steven Schveighoffer" wrote in message news:op.v3lug2q2eav7ka@localhost.localdomain... > On Tue, 18 Oct 2011 02:40:12 -0400, Daniel Murphy > wrote: > >> "Steven Schveighoffer" wrote in message >> news:op.v3h06olweav7ka@localhost.localdomain... >>> >>> That sounds like an incorrect restriction

Re: Looking for documentation of D's lower-level aspects.

2011-10-19 Thread Trass3r
Am 20.10.2011, 00:06 Uhr, schrieb Sean Silva : == Quote from Jesse Phillips (jessekphillip...@gmail.com)'s article Right now D isn't ready to be used in this fashion It looks there's a more-or-less functional kernel written in D (and pretty well documented too): http://wiki.xomb.org/index.php?

Re: Looking for documentation of D's lower-level aspects.

2011-10-19 Thread Sean Silva
== Quote from Jesse Phillips (jessekphillip...@gmail.com)'s article > Right now D isn't ready to be used in this fashion It looks there's a more-or-less functional kernel written in D (and pretty well documented too): http://wiki.xomb.org/index.php?title=Main_Page

Re: xml Bible for conversion for D

2011-10-19 Thread Joel Christensen
Thanks Adam. :-) It seems to be working now, with the stuff you gave me. I was thinking of making a text file from it that my programs can load from. avoiding the xml file, so they load faster. But I think I'll have my program(s) use the xml file each time they're run, in the mean time.

Re: use of D for ropes data structures

2011-10-19 Thread bls
On 10/19/2011 06:22 AM, Jay Norwood wrote: can someone propose the appropriate D features or libraries that would support a native D implementation of the ropes structures described in this Sgi C++ library. http://www.sgi.com/tech/stl/Rope.html From the library std.range -Iteration std.co

Re: FastCGI binding or implementation?

2011-10-19 Thread Jacob Carlborg
On 2011-10-19 16:36, Adam Ruppe wrote: Jacob Carlborg: Why not just cache the generated HTML and let Apache handle it. That sounds hard... configuring Apache to do anything beyond the most trivial of tasks is a huge pain to me. No, it's not that hard. Just add a couple of rewrite-rules that

Re: Implicit cast to immutable

2011-10-19 Thread Steven Schveighoffer
On Tue, 18 Oct 2011 02:40:12 -0400, Daniel Murphy wrote: "Steven Schveighoffer" wrote in message news:op.v3h06olweav7ka@localhost.localdomain... That sounds like an incorrect restriction. The implicit cast to immutable should depend on whether the function being *called* qualifies, not if

Re: FastCGI binding or implementation?

2011-10-19 Thread Adam Ruppe
Jacob Carlborg: > Why not just cache the generated HTML and let Apache handle it. That sounds hard... configuring Apache to do anything beyond the most trivial of tasks is a huge pain to me. It is easy to call "cgi.setCache(true);" though. > Then it doesn't even need to start the application if

Re: xml Bible for conversion for D

2011-10-19 Thread Adam Ruppe
I found std.xml useless too, so I wrote my own lib. https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff Grab dom.d from there. First, convert your file to UTF-8. My lib might work for you, but it assumes utf-8 so it will throw if it actually encounters a non-ascii

Re: xml Bible for conversion for D

2011-10-19 Thread Jesse Phillips
On Wed, 19 Oct 2011 18:21:22 +1300, Joel Christensen wrote: > I think I want to stick with the current std xml library for now. > > I think the books example is too different for me to work for what I > want. std.xml has had many bugs, and hasn't had most of them fixed. It might work for your d

Re: FastCGI binding or implementation?

2011-10-19 Thread Adam Ruppe
Andrea Fontana: > other http methods have nothing special Indeed. The only thing that might get you is if the data's content type is different than the default. That's possible on POST too, though, so still nothing special. My cgi library has an enum to tell you what the requestMethod is, and it

use of D for ropes data structures

2011-10-19 Thread Jay Norwood
can someone propose the appropriate D features or libraries that would support a native D implementation of the ropes structures described in this Sgi C++ library. http://www.sgi.com/tech/stl/Rope.html

Re: FastCGI binding or implementation?

2011-10-19 Thread Andrea Fontana
AFAIK other http methods have nothing special. You have just to implement on your code: if (request.method == "PUT") { ... ... } if you need them. Am i wrong? Il giorno mer, 19/10/2011 alle 08.36 +0200, Jacob Carlborg ha scritto: > On 2011-10-18 19:24, Jeremy Sandell wrote: > > On Mon, Oct 17

Re: xml Bible for conversion for D

2011-10-19 Thread Bernard Helyer
On Wed, 19 Oct 2011 21:45:29 +1300, Joel Christensen wrote: > I don't care to learn xml at this stage. What do you mean by "learn xml"? I'm saying std.xml is a terrible library, and furthermore will be deprecated sooner or later. Use another library. There is already a suggestion in this threa

Re: xml Bible for conversion for D

2011-10-19 Thread Joel Christensen
I don't care to learn xml at this stage. I just want to use it on that Bible file. On 19-Oct-11 8:03 PM, Bernard Helyer wrote: I think I want to stick with the current std xml library for now.

Re: xml Bible for conversion for D

2011-10-19 Thread Bernard Helyer
On Wed, 19 Oct 2011 07:04:53 +, Bernard Helyer wrote: > meen Just not my day, is it?

Re: xml Bible for conversion for D

2011-10-19 Thread Bernard Helyer
On Wed, 19 Oct 2011 07:03:05 +, Bernard Helyer wrote: > and the power of Satan* Err, I can see how that could be construed as in poor taste, considering the subject matter of the XML document. I meen no offense. >_<

Re: xml Bible for conversion for D

2011-10-19 Thread Bernard Helyer
On Wed, 19 Oct 2011 18:21:22 +1300, Joel Christensen wrote: > I think I want to stick with the current std xml library for now. No, you don't. It's a terrible library, held together by lashings of hate and the power of Satan* *only half kidding