Re: dmd 1.069 and 2.054 release

2011-07-14 Thread #1052; #1080; #1093; #1072; #1080; #1083; #1057; #1090; #1088; #1072; #1096; #1091; #1085;
Is there any reason for linux.mak to still exist there then? http://www.digitalmars.com/d/2.0/dmd-linux.html#compiling_dmd seems outdated then and I really would like to get it right - maintaining dmd2 in Arch Linux User Repository is my responsibility ( and I was using linux.mak till now ).

Re: dmd 1.069 and 2.054 release

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 12:44:29 #1052; #1080; #1093; #1072; #1080; #1083; #1057; #1090; #1088; #1072; #1096; #1091; #1085; wrote: Is there any reason for linux.mak to still exist there then? http://www.digitalmars.com/d/2.0/dmd-linux.html#compiling_dmd seems outdated then and I really would

DPortAudio

2011-07-14 Thread Andrej Mitrovic
This is a direct D binding of the PortAudio C library, meaning it's not OOP but a plain D conversion of its headers. PortAudio is MIT-licensed, and these bindings are Boost-licensed. There are already two bindings that exist for PortAudio. One is at

Re: dmd 1.069 and 2.054 release

2011-07-14 Thread bearophile
Walter: I was forgetting, DMD 2.054 has fulfilled this enhancement request too: http://d.puremagic.com/issues/show_bug.cgi?id=5250 Bye, bearophile

Byte Order Swapping Function

2011-07-14 Thread Andrew Wiley
Hey, does anyone else thing a function like this belongs in Phobos, and if so, where do you think it should go? T ntoh(T)(T val) if (__traits(isArithmetic, T)) { version(BigEndian) { return val; } else version (LittleEndian) { ubyte[] arr = (cast(ubyte*)val)[0 .. T.sizeof]; ubyte temp; for(int

Re: Re Build system requirements [ was Re: Prototype buildsystem Drake ]

2011-07-14 Thread Russel Winder
On Wed, 2011-07-13 at 20:32 +0200, Jacob Carlborg wrote: [ . . . ] I think that one of the problem with these language independent build tools is that they don't make it as easy as it could, because they usually don't know enough about a given language. This is generally due to incomplete

Re: Prototype buildsystem Drake

2011-07-14 Thread Russel Winder
Nick, On Wed, 2011-07-13 at 17:41 -0400, Nick Sabalausky wrote: [ . . . ] Yea, D is likely to be a little more verbose than what could be done in Ruby (or Python). Personally, I think that's well worth it, though. I don't know how many others would agree or not. [ . . . ] You might want to

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On Wednesday 13 July 2011 23:37:02 Andrew Wiley wrote: Hey, does anyone else thing a function like this belongs in Phobos, and if so, where do you think it should go? T ntoh(T)(T val) if (__traits(isArithmetic, T)) { version(BigEndian) { return val; } else version (LittleEndian) {

Garbage collector throwing during collection

2011-07-14 Thread Sönke Ludwig
On DMD I got some strange out-of-memory errors with the current 2.054 version. I tracked it down to allocations happening during garbage collection. Has something fundamental in the GC implementation changed in the latest release? It used to work, but seems to be completely disallowed now. I

Re: Byte Order Swapping Function

2011-07-14 Thread Andrew Wiley
On Wed, Jul 13, 2011 at 11:59 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Wednesday 13 July 2011 23:37:02 Andrew Wiley wrote: Hey, does anyone else thing a function like this belongs in Phobos, and if so, where do you think it should go? T ntoh(T)(T val) if (__traits(isArithmetic,

Re: Byte Order Swapping Function

2011-07-14 Thread Andrew Wiley
On Thu, Jul 14, 2011 at 12:03 AM, Andrew Wiley wiley.andre...@gmail.comwrote: On Wed, Jul 13, 2011 at 11:59 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Wednesday 13 July 2011 23:37:02 Andrew Wiley wrote: Hey, does anyone else thing a function like this belongs in Phobos, and if so,

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 00:03:23 Andrew Wiley wrote: On Wed, Jul 13, 2011 at 11:59 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Wednesday 13 July 2011 23:37:02 Andrew Wiley wrote: Hey, does anyone else thing a function like this belongs in Phobos, and if so, where do you

Re: Orbit - Package Manager - Specification/ideas

2011-07-14 Thread Jacob Carlborg
On 2011-07-13 22:14, Nick Sabalausky wrote: Andrej Mitrovicandrej.mitrov...@gmail.com wrote in message news:mailman.1613.1310586759.14074.digitalmar...@puremagic.com... Just curious, why do people prefer using extensionless files? I mean, I can easily open them up in an editor, but I can't set

Re: Orbit - Package Manager - Specification/ideas

2011-07-14 Thread Jacob Carlborg
On 2011-07-13 22:20, jdrewsen wrote: Den 13-07-2011 21:19, Jacob Carlborg skrev: I've written a more formal specification of my ideas for a package manager for D. https://github.com/jacob-carlborg/orbit/wiki/Orbit-Package-Manager-for-D Note that I am exploring the possibility of using D as

Re: Garbage collector throwing during collection

2011-07-14 Thread Daniel Murphy
Yes, they're currently disallowed. Something about memory corruption in the gc. This will probably be fixed eventually, but I wouldn't hold your breath. Sönke Ludwig lud...@informatik.uni-luebeck.de wrote in message news:ivm4bo$2fsc$1...@digitalmars.com... On DMD I got some strange

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-13 23:41, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:ivke5k$2m78$1...@digitalmars.com... First I have to say that I know you are doing this because you want to use D as the language for the build scripts. The reason I did choose Ruby because I think D

Re: Prototype buildsystem Drake

2011-07-14 Thread Alix Pexton
On 14/07/2011 03:53, Andrej Mitrovic wrote: Why build a tool anyway? Why not make a build library that we can use in our build scripts? Then we just import the library in our `build.d` script, write the build script with the help of those library functions, and let the user run `rdmd build.d`.

Re: Byte Order Swapping Function

2011-07-14 Thread Johannes Pfau
Andrew Wiley wrote: Hey, does anyone else thing a function like this belongs in Phobos, and if so, where do you think it should go? T ntoh(T)(T val) if (__traits(isArithmetic, T)) { version(BigEndian) { return val; } else version (LittleEndian) { ubyte[] arr = (cast(ubyte*)val)[0 .. T.sizeof];

Re: Orbit - Package Manager - Specification/ideas

2011-07-14 Thread Johannes Pfau
jdrewsen wrote: Den 13-07-2011 21:19, Jacob Carlborg skrev: I've written a more formal specification of my ideas for a package manager for D. https://github.com/jacob-carlborg/orbit/wiki/Orbit-Package-Manager-for-D Note that I am exploring the possibility of using D as the language for all

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-13 23:41, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message Most of the functions called in the build script should be instance methods, this will allow to use threading, possible invoke multiple targets/tasks simultaneously and running several build scripts

Re: toStringz or not toStringz

2011-07-14 Thread Regan Heath
On Wed, 13 Jul 2011 19:31:42 +0100, Steven Schveighoffer schvei...@yahoo.com wrote: On Wed, 13 Jul 2011 13:32:56 -0400, Regan Heath re...@netmail.co.nz wrote: On Wed, 13 Jul 2011 17:00:39 +0100, Steven Schveighoffer schvei...@yahoo.com wrote: How does your proposal know that a char *

Re: Byte Order Swapping Function

2011-07-14 Thread Regan Heath
On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday 14 July 2011 00:03:23 Andrew Wiley wrote: On Wed, Jul 13, 2011 at 11:59 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Wednesday 13 July 2011 23:37:02 Andrew Wiley wrote: Hey, does anyone else

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 10:55:49 Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday 14 July 2011 00:03:23 Andrew Wiley wrote: On Wed, Jul 13, 2011 at 11:59 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Wednesday 13

Re: Garbage collector throwing during collection

2011-07-14 Thread Vladimir Panteleev
On Thu, 14 Jul 2011 09:58:09 +0300, Sönke Ludwig lud...@informatik.uni-luebeck.de wrote: On DMD I got some strange out-of-memory errors with the current 2.054 version. I tracked it down to allocations happening during garbage collection. Has something fundamental in the GC implementation

Re: Byte Order Swapping Function

2011-07-14 Thread Piotr Szturmaj
Jonathan M Davis wrote: I did have to create a 64-bit version for std.datetime, so it has a private function called endianSwap64 to do the job. So, it's not like I'm saying that the situation couldn't be improved, but druntime and Phobos do currently give you the exact same thing that C and C++

Re: Byte Order Swapping Function

2011-07-14 Thread David Nadlinger
On 7/14/11 12:12 PM, Piotr Szturmaj wrote: Yesterday, I had to write my own bswap for ulong because intrinsic version supports only uints. Is there any implementation obstacle preventing ulong and ushort bswap in core.bitop? Btw. How compiler intrinsics work? I see there's only bswap

Re: Byte Order Swapping Function

2011-07-14 Thread David Nadlinger
On 7/14/11 12:05 PM, Jonathan M Davis wrote: On Thursday 14 July 2011 10:55:49 Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davisjmdavisp...@gmx.com wrote: I did have to create a 64-bit version for std.datetime, so it has a private function called endianSwap64 to do the

Re: Byte Order Swapping Function

2011-07-14 Thread Piotr Szturmaj
Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: I did have to create a 64-bit version for std.datetime, so it has a private function called endianSwap64 to do the job. So, it's not like I'm saying that the situation couldn't be improved, but

D2 Web-Framework

2011-07-14 Thread Robert M. Münch
Hi, is there a matured framework for building the server side part of web-apps in D2? I don't need totally fancy things, session handling, dynamic content and simple output generation. -- Robert M. Münch http://www.robertmuench.de

Re: Byte Order Swapping Function

2011-07-14 Thread Regan Heath
On Thu, 14 Jul 2011 11:05:07 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday 14 July 2011 10:55:49 Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday 14 July 2011 00:03:23 Andrew Wiley wrote: On Wed, Jul 13, 2011

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 11:51:14 Regan Heath wrote: On Thu, 14 Jul 2011 11:05:07 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday 14 July 2011 10:55:49 Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday 14

Re: Byte Order Swapping Function

2011-07-14 Thread Regan Heath
On Thu, 14 Jul 2011 11:44:23 +0100, Piotr Szturmaj bncr...@jadamspam.pl wrote: Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: I did have to create a 64-bit version for std.datetime, so it has a private function called endianSwap64 to do

Re: Byte Order Swapping Function

2011-07-14 Thread Steven Schveighoffer
On Thu, 14 Jul 2011 06:16:37 -0400, David Nadlinger s...@klickverbot.at wrote: On 7/14/11 12:05 PM, Jonathan M Davis wrote: On Thursday 14 July 2011 10:55:49 Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davisjmdavisp...@gmx.com wrote: I did have to create a 64-bit

Re: Byte Order Swapping Function

2011-07-14 Thread Steven Schveighoffer
On Thu, 14 Jul 2011 06:12:00 -0400, Piotr Szturmaj bncr...@jadamspam.pl wrote: Btw. How compiler intrinsics work? I see there's only bswap declaration (without body) in core.bitop. Where can I find compiler code which actually substitutes bswap() into real instructions? A complier

Re: D2 Web-Framework

2011-07-14 Thread Trass3r
http://arsdnet.net/dcode/

Re: Byte Order Swapping Function

2011-07-14 Thread Andrei Alexandrescu
On 7/14/11 5:51 AM, Regan Heath wrote: That's my point. I need 8/16/32/64/128 bit versions and it really would be better if there were general variants. My version are less than optimal, but do use intrinsics where possible. Someone else can do a far better job than I, and it really should be

Re: toStringz or not toStringz

2011-07-14 Thread Steven Schveighoffer
On Thu, 14 Jul 2011 05:53:47 -0400, Regan Heath re...@netmail.co.nz wrote: On Wed, 13 Jul 2011 19:31:42 +0100, Steven Schveighoffer schvei...@yahoo.com wrote: On Wed, 13 Jul 2011 13:32:56 -0400, Regan Heath re...@netmail.co.nz wrote: On Wed, 13 Jul 2011 17:00:39 +0100, Steven

Re: Byte Order Swapping Function

2011-07-14 Thread Piotr Szturmaj
Steven Schveighoffer wrote: On Thu, 14 Jul 2011 06:12:00 -0400, Piotr Szturmaj bncr...@jadamspam.pl wrote: Btw. How compiler intrinsics work? I see there's only bswap declaration (without body) in core.bitop. Where can I find compiler code which actually substitutes bswap() into real

Re: Garbage collector throwing during collection

2011-07-14 Thread Sean Kelly
On Jul 14, 2011, at 3:12 AM, Vladimir Panteleev wrote: On Thu, 14 Jul 2011 09:58:09 +0300, Sönke Ludwig lud...@informatik.uni-luebeck.de wrote: On DMD I got some strange out-of-memory errors with the current 2.054 version. I tracked it down to allocations happening during garbage

Re: D users on Google+

2011-07-14 Thread Tyro[a.c.edwards]
On 7/14/2011 10:58 AM, Mike Parker wrote: On 7/14/2011 9:10 AM, Tyro[a.c.edwards] wrote: On 7/13/2011 5:52 PM, simendsjo wrote: Are there any D users on Google+ I can stalk? The only one I found was Andrei Alexandrescu, but as he works at Facebook, I doubt he'll be posting much. An invite

Re: Byte Order Swapping Function

2011-07-14 Thread Piotr Szturmaj
Regan Heath wrote: On Thu, 14 Jul 2011 11:44:23 +0100, Piotr Szturmaj bncr...@jadamspam.pl wrote: Regan Heath wrote: On Thu, 14 Jul 2011 08:14:10 +0100, Jonathan M Davis jmdavisp...@gmx.com wrote: I did have to create a 64-bit version for std.datetime, so it has a private function called

Re: D2 Web-Framework

2011-07-14 Thread Adam Ruppe
http://arsdnet.net/dcode/ In there, you'll find most my files for the websites I create in D. The basic one is cgi.d. It gives easy access to things like get and post variables, uploaded files, and writing out responses. I think it works standing alone, but it might require the sha.d in there

Re: D2 Web-Framework

2011-07-14 Thread Adam Ruppe
Oh I forgot to mention what it *doesn't* do - session handling. Over the last year and a half that I've been using it for real sites every day, I just haven't felt the need for that beyond the most basic cookie thing and the database. If I need something like a session, I've always just done it

Re: Garbage collector throwing during collection

2011-07-14 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article I started on the rewrite, but it's a pretty big change so I'm considering trying out Leandro's GC instead. It would require some work as well, but the code is cleaner and it already supports precise scanning, so it may be a better

Re: Garbage collector throwing during collection

2011-07-14 Thread Robert Jacques
On Thu, 14 Jul 2011 08:39:06 -0400, Sean Kelly s...@invisibleduck.org wrote: On Jul 14, 2011, at 3:12 AM, Vladimir Panteleev wrote: On Thu, 14 Jul 2011 09:58:09 +0300, Sönke Ludwig lud...@informatik.uni-luebeck.de wrote: On DMD I got some strange out-of-memory errors with the current 2.054

Re: D2 Web-Framework

2011-07-14 Thread Long Chang
I create one , fastcgi template is done , but I need dynamic link lib of posix support , http://d.puremagic.com/issues/show_bug.cgi?id=6014 also block the jade template engine . https://github.com/sleets/oak

Re: Ask for help about Internal error: e2ir.c 5007

2011-07-14 Thread zhang
* SHAMELESS PLUG WARNING * Until a compiler developer can look at this, you can use DustMite to help identify the cause of uninformative compiler error messages: https://github.com/CyberShadow/DustMite It seems a interesting tool. Thanks for your information. -- Zhang

Re: Byte Order Swapping Function

2011-07-14 Thread Regan Heath
On Thu, 14 Jul 2011 14:20:24 +0100, Piotr Szturmaj bncr...@jadamspam.pl wrote: I implemented all of those except for Whirlpool. I still have the originals, which I started to tidy for inclusion into phobos .. at least that was the plan, I don't have a lot of spare time for this soft of thing

Re: Byte Order Swapping Function

2011-07-14 Thread Regan Heath
On Thu, 14 Jul 2011 12:27:47 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 7/14/11 5:51 AM, Regan Heath wrote: That's my point. I need 8/16/32/64/128 bit versions and it really would be better if there were general variants. My version are less than optimal, but do use

Re: Google +1 button for dpl.org?

2011-07-14 Thread Simen Kjaeraas
On Thu, 14 Jul 2011 05:55:04 +0200, Jerry Quinn jlqu...@optonline.net wrote: Hi folks, This seemed like the right place to toss this out... What do folks think of adding a google +1 button to d-programming-language.org? I just created a google+ account and discovered it. Gawds, I

Re: toStringz or not toStringz

2011-07-14 Thread Regan Heath
On Thu, 14 Jul 2011 12:30:24 +0100, Steven Schveighoffer schvei...@yahoo.com wrote: On Thu, 14 Jul 2011 05:53:47 -0400, Regan Heath re...@netmail.co.nz wrote: On Wed, 13 Jul 2011 19:31:42 +0100, Steven Schveighoffer schvei...@yahoo.com wrote: On Wed, 13 Jul 2011 13:32:56 -0400, Regan

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 06:27:47 Andrei Alexandrescu wrote: On 7/14/11 5:51 AM, Regan Heath wrote: That's my point. I need 8/16/32/64/128 bit versions and it really would be better if there were general variants. My version are less than optimal, but do use intrinsics where possible.

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 09:02:12 Jonathan M Davis wrote: On Thursday 14 July 2011 06:27:47 Andrei Alexandrescu wrote: On 7/14/11 5:51 AM, Regan Heath wrote: That's my point. I need 8/16/32/64/128 bit versions and it really would be better if there were general variants. My version are

Re: D2 Web-Framework

2011-07-14 Thread Robert Clipsham
On 14/07/2011 11:49, Robert M. Münch wrote: Hi, is there a matured framework for building the server side part of web-apps in D2? I don't need totally fancy things, session handling, dynamic content and simple output generation. I recommend Adam's given that he's using it in production. I

Re: D2 Web-Framework

2011-07-14 Thread Masahiro Nakagawa
Hi Robert, On Thu, 14 Jul 2011 19:49:10 +0900, Robert M. Münch robert.mue...@robertmuench.de wrote: dynamic content and simple output generation. In this point, I implement simple template engine called Mustache(Pure D and single file).

Re: Garbage collector throwing during collection

2011-07-14 Thread Sönke Ludwig
Hi! I see, that could also explain some earlier crashes. I can definitely work around it for now and was just worrying that this could have been part of the general plan for the GC. Regards, Sönke Am 14.07.2011 12:12, schrieb Vladimir Panteleev: On Thu, 14 Jul 2011 09:58:09 +0300, Sönke

Re: Byte Order Swapping Function

2011-07-14 Thread Andrew Wiley
On Thu, Jul 14, 2011 at 9:02 AM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Thursday 14 July 2011 06:27:47 Andrei Alexandrescu wrote: On 7/14/11 5:51 AM, Regan Heath wrote: That's my point. I need 8/16/32/64/128 bit versions and it really would be better if there were general

Re: Byte Order Swapping Function

2011-07-14 Thread Jonathan M Davis
On 2011-07-14 10:26, Andrew Wiley wrote: On Thu, Jul 14, 2011 at 9:02 AM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Thursday 14 July 2011 06:27:47 Andrei Alexandrescu wrote: On 7/14/11 5:51 AM, Regan Heath wrote: That's my point. I need 8/16/32/64/128 bit versions and it really

Expose underlying Mutex in Condition?

2011-07-14 Thread David Nadlinger
A quick idea I just had, feel free to shoot it down if I missed something obvious: I have been writing some »old-school« multi-threading code lately, and it occurred to me that most of the time, I am using condition variables like this: --- auto fooMutex = new Mutex; auto fooCondition = new

Re: Ask for help about Internal error: e2ir.c 5007

2011-07-14 Thread zhang
If you trust me, dropping the dmd.exe I emailed you in place of your existing one should give you a line number and file. Thanks for your dmd.exe. You are so kind. I got the error using it. I have filed a bug at here http://d.puremagic.com/issues/show_bug.cgi?id=6317 -- Zhang

Re: Expose underlying Mutex in Condition?

2011-07-14 Thread Steven Schveighoffer
On Thu, 14 Jul 2011 14:26:04 -0400, David Nadlinger s...@klickverbot.at wrote: A quick idea I just had, feel free to shoot it down if I missed something obvious: I have been writing some »old-school« multi-threading code lately, and it occurred to me that most of the time, I am using

Re: Prototype buildsystem Drake

2011-07-14 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:ivme1u$31i8$1...@digitalmars.com... [...snip...] In D, with this syntax: target(foo.d, { buildflags ~= -L-ldwt; }); target(main.d { buildflags ~= -release }); buildflags would probably be a global function or an instance

Re: d-p-l.org statement.html

2011-07-14 Thread Loopback
While speaking of the website, how come http://d-programming-language.org/language_reference.html; just redirects one instantly to the lexical section? language-reference.html html head titleD Runtime Library/title meta http-equiv=Refresh content=0; URL=lex.html /head body /body /html

Re: Prototype buildsystem Drake

2011-07-14 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:ivm9lq$2q1d$1...@digitalmars.com... On 2011-07-13 23:41, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:ivke5k$2m78$1...@digitalmars.com... The drakfile function seems unnecessary. I would use a string import (or

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-13 23:03, jdrewsen wrote: Den 13-07-2011 03:02, Nick Sabalausky skrev: The recent discussions about package managers and buildsystems has prompted me to get off my ass (or rather, *on* my ass as per how programming is usually performed...) and start on the D-based rake-inspired

Re: Prototype buildsystem Drake

2011-07-14 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:ivnfk8$2v3p$1...@digitalmars.com... On 2011-07-13 23:03, jdrewsen wrote: A good start I think. The first thing that I think should be fixed is the naming. Drake should be called dbuild Orb should be called dpack You read the name and you

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-13 23:52, Nick Sabalausky wrote: Hmm, yea, configure didn't even occur to me. I think it could acually be done as just another File target that everything else depends on. Only thing is then you'd have to save/load the configuration file manually, so maybe there should be some

Re: Prototype buildsystem Drake

2011-07-14 Thread Jonathan M Davis
On Thursday 14 July 2011 15:18:46 Nick Sabalausky wrote: Jacob Carlborg d...@me.com wrote in message news:ivnfk8$2v3p$1...@digitalmars.com... On 2011-07-13 23:03, jdrewsen wrote: A good start I think. The first thing that I think should be fixed is the naming. Drake should be called

Re: Prototype buildsystem Drake

2011-07-14 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.1624.1310612000.14074.digitalmar...@puremagic.com... Why build a tool anyway? Why not make a build library that we can use in our build scripts? Then we just import the library in our `build.d` script, write the build

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-14 00:29, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:ivkpdp$8dj$1...@digitalmars.com... FWIW, my Drake system takes that as a high priority, too. For example, if you have project foo, then you can get the cross-platform binary filename, object filename,

Re: Prototype buildsystem Drake

2011-07-14 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:ivng77$305d$1...@digitalmars.com... On 2011-07-13 23:52, Nick Sabalausky wrote: Hmm, yea, configure didn't even occur to me. I think it could acually be done as just another File target that everything else depends on. Only thing is then

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-14 00:54, David Nadlinger wrote: On 7/13/11 11:41 PM, Nick Sabalausky wrote: getDCompiler seems unnecessary, both ldc and gdc have a dmd compatible wrapper, ldmd and gdmd. These wrappers takes the same flags as dmd and translate them to the correct native flags. That's great, I

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-14 00:32, Ulrik Mikaelsson wrote Not trying to be argumentative, but what exactly do you see as the gains in having a D-buildtool built in D (or D-specific build-tool in any language, for that matter)? Seriously, I'm really asking, since I'm having a hard time seeing it? Personally, I

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-14 04:37, Andrei Alexandrescu wrote: On 7/13/11 5:32 PM, Ulrik Mikaelsson wrote: Not trying to be argumentative, but what exactly do you see as the gains in having a D-buildtool built in D (or D-specific build-tool in any language, for that matter)? I think it's a matter of

Re: Prototype buildsystem Drake

2011-07-14 Thread Jacob Carlborg
On 2011-07-14 04:53, Andrej Mitrovic wrote: Why build a tool anyway? Why not make a build library that we can use in our build scripts? Then we just import the library in our `build.d` script, write the build script with the help of those library functions, and let the user run `rdmd build.d`.

Re: Re Build system requirements [ was Re: Prototype buildsystem Drake ]

2011-07-14 Thread Jacob Carlborg
On 2011-07-14 08:48, Russel Winder wrote: On Wed, 2011-07-13 at 20:32 +0200, Jacob Carlborg wrote: [ . . . ] I think that one of the problem with these language independent build tools is that they don't make it as easy as it could, because they usually don't know enough about a given language.

Re: Prototype buildsystem Drake

2011-07-14 Thread David Nadlinger
On 7/14/11 9:53 PM, Jacob Carlborg wrote: On 2011-07-14 00:54, David Nadlinger wrote: Be aware though that neither of them supports the -lib switch. By the way, does anyone have a wrapper emulating it for LDC lying around? That way, the Phobos build system wouldn't have to be duplicated for it,

Midterm GSoC 2011 status

2011-07-14 Thread Andrei Alexandrescu
Allow me to quickly report news of potential interest to the community. Recall we have three students working on D under the Google Summer of Code (GSoC) 2011 program: Cristi Cobzarenco (mentor David Simcha): linear algebra Dmitry Olshansky (mentor Fawzi Mohamed): regular expressions David

Re: Prototype buildsystem Drake

2011-07-14 Thread Andrej Mitrovic
On 7/14/11, Jacob Carlborg d...@me.com wrote: I think a few dozen lines is way to much for a build script. If I choose to use all default configurations I want to only need to write one line: target(main.d); I'm not talking about simple projects. I'm talking about libraries which might use

Re: Strange gtkd behaviour

2011-07-14 Thread Mike Wey
On 07/14/2011 07:53 AM, maarten van damme wrote: when I leave destroy out the inputbox always stays visible even after I've pressed ok. here are the other files http://dl.dropbox.com/u/15024434/Main.d http://dl.dropbox.com/u/15024434/InputBox.d http://dl.dropbox.com/u/15024434/MessageBox.d I

Re: Re Build system requirements [ was Re: Prototype buildsystem Drake ]

2011-07-14 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:ivniga$2lt$1...@digitalmars.com... On 2011-07-14 08:48, Russel Winder wrote: On Wed, 2011-07-13 at 20:32 +0200, Jacob Carlborg wrote: [ . . . ] I think that one of the problem with these language independent build tools is that they don't make

Re: Byte Order Swapping Function

2011-07-14 Thread Andrew Wiley
On Thu, Jul 14, 2011 at 10:45 AM, Jonathan M Davis jmdavisp...@gmx.comwrote: On 2011-07-14 10:26, Andrew Wiley wrote: On Thu, Jul 14, 2011 at 9:02 AM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Thursday 14 July 2011 06:27:47 Andrei Alexandrescu wrote: On 7/14/11 5:51 AM, Regan Heath

Re: Strange gtkd behaviour

2011-07-14 Thread maarten van damme
Thanks a lot for clarifying it for me. It runs perfectly now. I should've used gtk.(message)dialog but I got terribly lost in the gtk documentation and so I missed it. 2011/7/14 Mike Wey mike-...@example.com On 07/14/2011 07:53 AM, maarten van damme wrote: when I leave destroy out the

Re: D2 Web-Framework

2011-07-14 Thread Nick Sabalausky
Adam Ruppe destructiona...@gmail.com wrote in message news:ivms0h$s8p$1...@digitalmars.com... Finally, web.d builds on top of dom and cgi to provide a higher level interface; instead of manually parsing the cgi object, it tries to do it automatically, to call your functions with reflection.

Re: Prototype buildsystem Drake

2011-07-14 Thread Timon Gehr
Nick Sabalausky wrote: Ultimately, I think going with a rake/scons-like build-system approach just allows for a little bit more boilerplate to be removed, which is good for something like a buildscript. For example, if done as a library, once you've defined all your targets, you'd have to call

Re: Prototype buildsystem Drake

2011-07-14 Thread Andrei Alexandrescu
On 7/14/11 3:09 PM, Jacob Carlborg wrote: On 2011-07-14 08:56, Russel Winder wrote: Nick, On Wed, 2011-07-13 at 17:41 -0400, Nick Sabalausky wrote: [ . . . ] Yea, D is likely to be a little more verbose than what could be done in Ruby (or Python). Personally, I think that's well worth it,

Re: D2 Web-Framework

2011-07-14 Thread Adam D. Ruppe
Nick Sabalausky wrote: I'm having trouble figuring out how to use the executable. You'll need to make sure the program is set to run as CGI and that the stuff after the path is forwarded to the program. In Apache, dropping it in cgi-bin does both for you, or you can do a SetHandler cgi-script

simplistic package/build tool

2011-07-14 Thread Martin Nowak
Because the discussion is rising up, I just added some help/information to a small tool I wrote some month ago. It's raison d'être was the ability to develop a larger project out of smaller libraries. It can: - compactly specify build targets - install packages with imports/documentation

Re: simplistic package/build tool

2011-07-14 Thread Trass3r
It can't: - build import graphs and do partial rebuilds (waste of time with D) dmd, not D! ;)

Re: simplistic package/build tool

2011-07-14 Thread David Nadlinger
On 7/15/11 12:29 AM, Trass3r wrote: It can't: - build import graphs and do partial rebuilds (waste of time with D) dmd, not D! ;) And only for smaller projects. David

Re: Prototype buildsystem Drake

2011-07-14 Thread Timon Gehr
Timon Gehr wrote: Nick Sabalausky wrote: Ultimately, I think going with a rake/scons-like build-system approach just allows for a little bit more boilerplate to be removed, which is good for something like a buildscript. For example, if done as a library, once you've defined all your targets,

Re: d-p-l.org statement.html

2011-07-14 Thread Jonathan M Davis
On 2011-07-14 12:12, Loopback wrote: While speaking of the website, how come http://d-programming-language.org/language_reference.html; just redirects one instantly to the lexical section? language-reference.html html head titleD Runtime Library/title meta http-equiv=Refresh content=0;

About using C++ for kernel drivers

2011-07-14 Thread bearophile
An article about the problems in using C++ to write Windows drivers, C++ for Kernel Mode Drivers: Pros and Cons (February 2007): http://msdn.microsoft.com/en-us/windows/hardware/gg487420.aspx The article shows why C++ is not so fit for this purpose. Is D even worse for this purpose? If this is

Coding Standards

2011-07-14 Thread bearophile
Mark Chu-Carroll is a first class programmer and more. He's leaving Google and writes about what's good in it. Here he explains in a very simple way why coding standards are good: http://scientopia.org/blogs/goodmath/2011/07/14/stuff-everyone-should-do-part-2-coding-standards/ He talks just

Re: Coding Standards

2011-07-14 Thread Adam D. Ruppe
I'm fine with any coding standard. As long as it tells everyone else to follow my lead :)

Re: D2 Web-Framework

2011-07-14 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:ivnq7e$1244$1...@digitalmars.com... Nick Sabalausky wrote: I'm having trouble figuring out how to use the executable. [...helpful info...] Cool, thanks. On the cmdline, setting the env PATH_INFO to / makes it work. In the

Re: simplistic package/build tool

2011-07-14 Thread Martin Nowak
Well in D the semantics of a module are independent of where it is imported from. So you can parse/analyze a module once and reuse that information, while with single object builds you'll have to redo this work for each import. On Fri, 15 Jul 2011 00:29:02 +0200, Trass3r u...@known.com

Re: D2 Web-Framework

2011-07-14 Thread Adam D. Ruppe
Nick Sabalausky wrote: (Not sure why IIS changes the redirect's / to localstart.asp, probably just IIS trying to be smart, but I usually only use IIS locally, so I don't really care right now). It's possible I messed up... the line of code is specifically:

Re: Next in Review Queue: The New std.path

2011-07-14 Thread dsimcha
...And now I'll do the honors and be the first to review. Overall this looks solid and well documented but I have a few nitpicks and questions 1. Do we really need currentDirSymbol and parentDirSymbol? AFAIK they're standard across all operating systems that anyone cares about and everyone

Re: Next in Review Queue: The New std.path

2011-07-14 Thread Andrej Mitrovic
Lars, is normalize basically that feature request (toNativePath) I asked for? It does seem to do more than that though.

  1   2   >