Re: Review: std.msgpack

2010-06-24 Thread Masahiro Nakagawa
Sorry for the delay. On Tue, 22 Jun 2010 13:47:19 +0900, Robert Jacques wrote: Other little things, -Why isn't nil mapped to null? Where? MsgPack has a nil type which I assume is equivalent to null. So why isn't it simply included in the object serializer (and arguably also in the

Re: The X Macro

2010-06-24 Thread Walter Bright
Yao G. wrote: http://www.reddit.com/r/programming/comments/ciq5w/the_x_macro/ Even with it banned, it has gotten 5 downvotes, so it must be lurkers here. Any downvoters care to say what's wrong with it?

Re: The X Macro

2010-06-24 Thread Walter Bright
MIURA Masahiro wrote: On 06/25/2010 07:10 AM, Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Interesting technique that I haven't heard of. However one of my friends, a lead programmer at Sega, says they use similar technique extensively in C++; actually

Re: The X Macro

2010-06-24 Thread Walter Bright
Bernard Helyer wrote: On Thu, 24 Jun 2010 19:09:36 -0700, Walter Bright wrote: Why don't we just give up on reddit and go with http://news.ycombinator.com/ ? I prefer the reddit community, and the way reddit handles conversation threading. Perhaps you could email the Reddit guys and see why t

Re: The X Macro

2010-06-24 Thread Bernard Helyer
On Thu, 24 Jun 2010 19:09:36 -0700, Walter Bright wrote: > Yao G. wrote: >> :'( >> >> On Thu, 24 Jun 2010 18:55:52 -0500, Walter Bright >> wrote: >> >>> Yao G. wrote: http://www.reddit.com/r/programming/comments/ciq5w/the_x_macro/ I hope I don't screw up this time :D >>> >>> Autoba

Re: enforce()?

2010-06-24 Thread Sean Kelly
Lutger wrote: > Sean Kelly wrote: > >> Sean Kelly Wrote: >>> >>> While I've never worked on systems where lives hang in the balance, > > > I have >>> worked on systems where 100% uptime is required. I favor the Erlang > > > approach >>> where a system is a web of interconnected, redundant proce

Re: Mac OS X Installation

2010-06-24 Thread Nick Sabalausky
"Justin Spahr-Summers" wrote in message news:mpg.268da2399e25e4f9989...@news.digitalmars.com... > On Thu, 24 Jun 2010 13:30:31 -0400, Nick Sabalausky wrote: >> >> No, "/etc/../" is root. "/etc/../../" is "/.." (ie parent of root), which >> is >> nonsensical. >> >> --

Re: The X Macro

2010-06-24 Thread MIURA Masahiro
On 06/25/2010 07:10 AM, Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Interesting technique that I haven't heard of. However one of my friends, a lead programmer at Sega, says they use similar technique extensively in C++; actually they avoid overusing it

Re: The X Macro

2010-06-24 Thread Walter Bright
Yao G. wrote: :'( On Thu, 24 Jun 2010 18:55:52 -0500, Walter Bright wrote: Yao G. wrote: http://www.reddit.com/r/programming/comments/ciq5w/the_x_macro/ I hope I don't screw up this time :D Autobanned again, sigh. Why don't we just give up on reddit and go with http://news.ycombi

Re: cent/ucent

2010-06-24 Thread bearophile
Jonathan M Davis: > cent and ucent are not currently implemented and Isn't changeset 557 showing some work to implement them? Bye, bearophile

Re: std.functional.curry isn't

2010-06-24 Thread bearophile
Andrei Alexandrescu: > I think it would be even better to redefine curry to do actual currying. Right. > I'm finding them quite useful, particularly in conjunction with e.g. map. Oh, OK. Then let's keep them :-) What do you think about the apply? Bye, bearophile

Re: cent/ucent

2010-06-24 Thread Jonathan M Davis
bearophile wrote: > This is one of the last dmd changes: > http://www.dsource.org/projects/dmd/changeset/557 > > cent/ucent are probably easy to implement, their implementation can > require little code on 64 bit systems, and operations done among them are > probably fast on 64 bit systems. > >

Re: @property

2010-06-24 Thread Jussi Jumppanen
Max Samukha Wrote: > I don't think the rule applies universally. For example, .NET is full of > functions starting with Set/Get that are not properties because they > perform complex/lengthy computations or for some other washy reason. In .Net it is generally not a good idea to write a getter p

Re: std.functional.curry isn't

2010-06-24 Thread Andrei Alexandrescu
On 06/24/2010 07:37 PM, bearophile wrote: Graham Fawcett: If this were a real curry, you would write it like this: int fun(int a, int b) { return a + b; } assert(curry!(fun)(5)(6) == 11); Right. Better to change the name. I think it would be even better to redefine curry to do actual curryin

Re: std.functional.curry isn't

2010-06-24 Thread Andrei Alexandrescu
On 06/24/2010 07:06 PM, Graham Fawcett wrote: Hi folks, The template "std.functional.curry(alias fun, alias arg)" claims to "curry fun by tying its first argument to a particular value." That is not currying; it is partial application. [...] Confusing curring and partial application is a ve

Re: Mac OS X Installation

2010-06-24 Thread Justin Spahr-Summers
On Thu, 24 Jun 2010 13:30:31 -0400, Nick Sabalausky wrote: > > "Justin Spahr-Summers" wrote in message > news:mpg.268ca23b487143c5989...@news.digitalmars.com... > > On Thu, 24 Jun 2010 01:29:53 -0500, Andrei Alexandrescu > > wrote: > >> > >> On 06/23/2010 11:52 PM, ch...@freshsources.com wrote

Re: @property

2010-06-24 Thread Robert Jacques
On Thu, 24 Jun 2010 16:21:37 -0400, Pelle wrote: As heard around these parts, a lot of people want property-style function calls to require the function to be declared with @property, like this: @property foo(); //getter @property foo(int); //setter foo; //getter foo = 13; //setter While

Re: cent/ucent

2010-06-24 Thread bearophile
Stewart Gordon: > Unfortunately it's now too late for libraries targeting D 1.0 to make > use of it. But still, would it make sense to drop the fix into D1, > given that there is still work to do on the spec anyway? D1 is mostly in debug mode now. In my opinion specs and other more complex jobs

Re: std.functional.curry isn't

2010-06-24 Thread bearophile
Graham Fawcett: > If this were a real curry, you would write it like this: > int fun(int a, int b) { return a + b; } > assert(curry!(fun)(5)(6) == 11); Right. Better to change the name. Regarding std.functional, are the HOF adjoin(), compose() and pipe() useful? I don't think I'll use compose()

Question about the validness of code examples in the docs

2010-06-24 Thread Andrej Mitrovic
Hi, I'm doing a review of the language reference documentation. What I've noticed in a lot of the example code is that it is not syntactically correct. Sometimes, this is wanted behavior. For example, take this Array Length code example: int[4] foo; int[] bar = foo; int* p = &fo

Re: The X Macro

2010-06-24 Thread Yao G.
:'( On Thu, 24 Jun 2010 18:55:52 -0500, Walter Bright wrote: Yao G. wrote: http://www.reddit.com/r/programming/comments/ciq5w/the_x_macro/ I hope I don't screw up this time :D Autobanned again, sigh. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Re: std.functional.curry isn't

2010-06-24 Thread Bill Baxter
On Thu, Jun 24, 2010 at 5:06 PM, Graham Fawcett wrote: > Hi folks, > > The template "std.functional.curry(alias fun, alias arg)" claims to > "curry fun by tying its first argument to a particular value." > > That is not currying; it is partial application. In particular, it is a > kind of partial

Re: GUI Library for D2+Phobos

2010-06-24 Thread Adrian Matoga
It seems to me that dfl is bold in a way. I built simple app with single window and the footprint about 1 mb. also it has a lot of dll dependencies. I compared it with winx C++ Gui library - footprint is about 50 k. Still smaller than wxWidgets' one, still less dependent than in VCL. I agree

std.functional.curry isn't

2010-06-24 Thread Graham Fawcett
Hi folks, The template "std.functional.curry(alias fun, alias arg)" claims to "curry fun by tying its first argument to a particular value." That is not currying; it is partial application. In particular, it is a kind of partial application called a "left section," because the argument provide

Re: The X Macro

2010-06-24 Thread Walter Bright
Yao G. wrote: http://www.reddit.com/r/programming/comments/ciq5w/the_x_macro/ I hope I don't screw up this time :D Autobanned again, sigh.

Re: @property

2010-06-24 Thread Jesse Phillips
Steven Schveighoffer Wrote: > Save is not as obvious, but that's because the author decided the name > without considering whether it should be a property. If it should be > considered a property, it should be a noun (not a hard rule, but it makes > more sense that way). I'd say something

Re: cent/ucent

2010-06-24 Thread Stewart Gordon
bearophile wrote: This is one of the last dmd changes: http://www.dsource.org/projects/dmd/changeset/557 cent/ucent are probably easy to implement, their implementation can require little code on 64 bit systems, and operations done among them are probably fast on 64 bit systems. Whether it'

Re: The X Macro

2010-06-24 Thread bearophile
Walter Bright: > Even though D doesn't have a text macro preprocessor, this can be done using > string mixins and a bit of CTFE. Static introspection to the rescue! :-) Bye, bearophile

Re: @property

2010-06-24 Thread bearophile
Pelle: > Is split a property? It doesn't mutate a string, and totally could be an > instance variable for every given string, but isn't. It doesn't really > feel property-like, but writing "a b c".split without parentheses works > better than with them. "a b c".split() is better. Bye, bearophi

Re: @property

2010-06-24 Thread Jonathan M Davis
Max Samukha wrote: > On 06/25/2010 12:51 AM, Jonathan M Davis wrote: > >> >> writeln() isn't a property because it makes no sense to replace it with a >> getter or setter. The same goes for save() or popFront() on a range. >> However, things like length() and empty() are properties because they >

Re: @property

2010-06-24 Thread Max Samukha
On 06/25/2010 12:51 AM, Jonathan M Davis wrote: writeln() isn't a property because it makes no sense to replace it with a getter or setter. The same goes for save() or popFront() on a range. However, things like length() and empty() are properties because they could be replaced with functions l

Re: @property

2010-06-24 Thread Jonathan M Davis
Jonathan M Davis wrote: > writeln() isn't a property because it makes no sense to replace it with a > getter or setter. The same goes for save() or popFront() on a range. > However, things like length() and empty() are properties because they > could be replaced with functions like getLength() and

Re: The X Macro

2010-06-24 Thread Ellery Newcomer
On 06/24/2010 05:10 PM, Walter Bright wrote: Even though D doesn't have a text macro preprocessor, this can be done using string mixins and a bit of CTFE. an example, taken to horrible extremes: http://www.dsource.org/projects/dexcelapi/browser/trunk/src/dxl/biff/Enums.d

Re: The future of DWT

2010-06-24 Thread theambient
i see. what'd you say about developing DFL and porting it to other platforms? but there is no connection with java in DFL as far as I know. -- -- Ruslan Mullakhmetov "Nick Sabalausky" wrote in message news:i00dnn$2j8...@digitalmars.com... "theambient" wrote in message news:i00ct8$2ho...@dig

Re: The X Macro

2010-06-24 Thread Yao G.
http://www.reddit.com/r/programming/comments/ciq5w/the_x_macro/ I hope I don't screw up this time :D On Thu, 24 Jun 2010 17:10:35 -0500, Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Even though D doesn't have a text macro preprocessor, this can be do

Re: @property

2010-06-24 Thread Pelle
On 06/24/2010 11:38 PM, Steven Schveighoffer wrote: This is why you are confused -- @property *is* a naming issue. The difference between the hackish D current syntax and the sane @property syntax is that in hackish D, the caller gets to decide how to name the function, which doesn't make any sen

The X Macro

2010-06-24 Thread Walter Bright
http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Even though D doesn't have a text macro preprocessor, this can be done using string mixins and a bit of CTFE.

Re: @property

2010-06-24 Thread bearophile
Steven Schveighoffer: > How about we get rid of case-sensitivity, so people who like to use all > caps can have their say in how they call your functions. Does it make any > sense? Case-insensitive languages make sense. In many natural languages written words usually mean the same thing rega

Re: @property

2010-06-24 Thread Jonathan M Davis
My apologies if this ends up being sent twice. I'm having problems with my client at the moment. On Thursday, June 24, 2010 14:15:22 Pelle wrote: > On 06/24/2010 10:43 PM, Jonathan M Davis wrote: > > Other than legacy, code I see 0 benefit to allowing non-property > > functions to be called as if

Re: @property

2010-06-24 Thread Steven Schveighoffer
On Thu, 24 Jun 2010 17:11:08 -0400, Pelle wrote: On 06/24/2010 10:45 PM, Steven Schveighoffer wrote: How is this confusing? It's a read-only property. They are used in countless design patterns. The confusion isn't their existence, but rather deciding what is a property and what is not.

Re: @property

2010-06-24 Thread div0
On 24/06/2010 22:15, Pelle wrote: A benefit to the current situation is that fewer parentheses means less line noise, and prettier code. That's only in your opinion and this discussion has been done to far beyond death. For gods sake just stop. -- My enormous talent is exceeded only by my o

Re: @property

2010-06-24 Thread Pelle
On 06/24/2010 10:43 PM, Jonathan M Davis wrote: Other than legacy, code I see _0_ benefit to allowing non-property functions to be called as if they were properties. They aren't properties and shouldn't be treated that way. Now, a programmer is free to use @property as they please in the code and

Re: D1 is such a nice little language

2010-06-24 Thread strtr
== Quote from Jesse Phillips (jessekphillip...@gmail.com)'s article > strtr Wrote: > > In relation to the recently decease request: > > How much of D1 won't compile on D2? > > Is there a D1-to-D2 guide and how about a comparison chart? > There is a page that covers the language changes from D1 to D

Re: @property

2010-06-24 Thread Pelle
On 06/24/2010 10:45 PM, Steven Schveighoffer wrote: How is this confusing? It's a read-only property. They are used in countless design patterns. The confusion isn't their existence, but rather deciding what is a property and what is not. Furthermore, how will allowing any no-arg function

Re: @property

2010-06-24 Thread Steven Schveighoffer
On Thu, 24 Jun 2010 16:21:37 -0400, Pelle wrote: As heard around these parts, a lot of people want property-style function calls to require the function to be declared with @property, like this: @property foo(); //getter @property foo(int); //setter foo; //getter foo = 13; //setter While

Re: @property

2010-06-24 Thread Jonathan M Davis
Pelle wrote: > Also to disable writeln = 13; > > But I want to keep paren-less calls and remove silly call-as-assignment, > except for when marked as to make sense. As I understand it, the whole point of properties in general is that they allow you to exchange public member variables and functi

Re: @property

2010-06-24 Thread Pelle
On 06/24/2010 10:25 PM, Jonathan M Davis wrote: Pelle wrote: As heard around these parts, a lot of people want property-style function calls to require the function to be declared with @property, like this: @property foo(); //getter @property foo(int); //setter foo; //getter foo = 13; //sette

Re: @property

2010-06-24 Thread Jonathan M Davis
Pelle wrote: > As heard around these parts, a lot of people want property-style > function calls to require the function to be declared with @property, > like this: > > @property foo(); //getter > @property foo(int); //setter > > foo; //getter > foo = 13; //setter > > While this seems quite rea

@property

2010-06-24 Thread Pelle
As heard around these parts, a lot of people want property-style function calls to require the function to be declared with @property, like this: @property foo(); //getter @property foo(int); //setter foo; //getter foo = 13; //setter While this seems quite reasonable, in practice I and others

Intel Concurrent Collections for Haskell [OT]

2010-06-24 Thread bearophile
>From the first blog post: >Well, it happens that the CnC notion of a step is a pure function. A step does >nothing but read its inputs and produce tags and items as output. This design >was chosen to bring CnC to that elusive but wonderful place called >deterministic parallelism. The decision

Re: The future of DWT

2010-06-24 Thread Nick Sabalausky
"theambient" wrote in message news:i00ct8$2ho...@digitalmars.com... > Is there any sense in developing DWT cause there are many others gui > libraries for d as dfl, GtkD, QtD ??? > Yes. DFL: Windows-only. GtkD: It's GTK. GTK is shit. QtD: AIUI, still needs work and some compiler improvements.

Re: Errors in TDPL

2010-06-24 Thread Alix Pexton
Does anyone else feel that the following is a fair clarification? Page 396 ... This means that communicating processors "forget" the exact order in which data was written: one tread writes x and then y and for a while another thread sees the new y but only the old x. vvv This means that co

Re: The future of DWT

2010-06-24 Thread theambient
Is there any sense in developing DWT cause there are many others gui libraries for d as dfl, GtkD, QtD ??? -- -- Ruslan Mullakhmetov On Thu, 24 Jun 2010 10:25:28 -0400, Jacob Carlborg wrote: Additional things that can be done are: * Add additional ports (like WPF, 64bit versions) Sadly, WP

Re: guide for building DMD/Phobos from SVN (on Linux)?

2010-06-24 Thread Graham Fawcett
Hi Sean, On Thu, 24 Jun 2010 15:13:38 -0400, Sean Kelly wrote: > Here's the druntime one: > > > #!/bin/bash > sudo rm -f /usr/local/include/d/object.* sudo rm -fr > /usr/local/include/d/core pushd ./trunk > make -fposix.mak > popd > sudo mkdir -p /usr/local/include/d/core sudo cp -f > ./trunk

Re: GUI Library for D2+Phobos

2010-06-24 Thread theambient
It seems to me that dfl is bold in a way. I built simple app with single window and the footprint about 1 mb. also it has a lot of dll dependencies. I compared it with winx C++ Gui library - footprint is about 50 k. -- -- Ruslan Mullakhmetov "Robert Jacques" сообщил(а) в новостях следующее:o

cent/ucent

2010-06-24 Thread bearophile
This is one of the last dmd changes: http://www.dsource.org/projects/dmd/changeset/557 cent/ucent are probably easy to implement, their implementation can require little code on 64 bit systems, and operations done among them are probably fast on 64 bit systems. 128 bit unsigned numbers can repr

Re: I'd like to try D, but...

2010-06-24 Thread Sean Kelly
Jacob Carlborg Wrote: > On 2010-06-23 15:42, Neal Becker wrote: > > My main interest is building python-callable modules (which I currently do > > with C++/boost::python). Problem is, D can't be used for this, because it > > can't produce shared libraries (except on i386). This is, as I understa

Re: Mac OS X Installation

2010-06-24 Thread Sean Kelly
Um, if your zipfile is named dmd.2.047.zip, run it as "dmdinstall 2.047" assuming the script file is named "dmdinstall".

Re: guide for building DMD/Phobos from SVN (on Linux)?

2010-06-24 Thread Sean Kelly
The weird thing about building phobos is that it depends on druntime being accessible. I publish everything to /usr/local/include/d and /usr/local/lib. I have a script at the top-level of each SVN tree to take care of everything for me. Hopefully they'll clue you into what you're missing. H

Re: Mac OS X Installation

2010-06-24 Thread Sean Kelly
I wrote a simple script to automate my DMD installs. If the zipfile is named dmd.2.047.zip it will install the data into /opt/dmd-2.047 and then create the symbolic link /opt/dmd2 (I have /opt/dmd2/bin in my path). I also have it copy my dmd.conf from the previous install, since I'm not using

Re: Mac OS X Installation

2010-06-24 Thread Nick Sabalausky
"Justin Spahr-Summers" wrote in message news:mpg.268ca23b487143c5989...@news.digitalmars.com... > On Thu, 24 Jun 2010 01:29:53 -0500, Andrei Alexandrescu > wrote: >> >> On 06/23/2010 11:52 PM, ch...@freshsources.com wrote: >> > I have successfully installed D 2.0 on a number of Macs. However, th

Re: D1 is such a nice little language

2010-06-24 Thread Jesse Phillips
strtr Wrote: > In relation to the recently decease request: > How much of D1 won't compile on D2? > Is there a D1-to-D2 guide and how about a comparison chart? There is a page that covers the language changes from D1 to D2[1] Which actually points to a Migration Page[2] which I have not seen bef

Public code reviews of Phobos code

2010-06-24 Thread Andrei Alexandrescu
I encourage those of you who are interested in keeping score about Phobos and D in general to subscribe to the Phobos mailing list (http://lists.puremagic.com) or watch the NNTP stream off server news.gmane.org, newsgroup gmane.comp.lang.d.phobos. That way you get to see each commit separately

guide for building DMD/Phobos from SVN (on Linux)?

2010-06-24 Thread Graham Fawcett
Hi folks, Is there a guide somewhere on building DMD/Phobos from SVN? I wanted to try my hand at fixing a few bugs, but I suspect the environment I built is broken. On a Linux box, I checked out dmd, druntime and phobos from SVN; twiddled the makefiles to fix paths; built them in that order; and

Re: is Expression, Type Identifier : TypeSpecialization

2010-06-24 Thread Trass3r
You are right. Even this doesn't work: import std.stdio; class one { } class two : one { } void main() { static if ( is(two T : one) ) writeln("test"); } Additionally it's really strange dmd doesn't complain about TWO and ONE if the aliases are omitted. Seems like

Re: is expression

2010-06-24 Thread Andrei Alexandrescu
On 06/24/2010 10:48 AM, Clemens wrote: Andrei Alexandrescu Wrote: On 06/24/2010 10:01 AM, Ellery Newcomer wrote: Hey, in std.container, line 2623, I'm seeing static if (is(_store.insertBack(value))) The spec doesn't mention allowing expressions as far as I can remember, so what's the deal?

Re: Errors in TDPL

2010-06-24 Thread Lars T. Kyllingstad
On Wed, 23 Jun 2010 11:51:40 -0500, Andrei Alexandrescu wrote: > On 06/23/2010 11:40 AM, Walter Bright wrote: >> Jonathan M Davis wrote: >>> Well, while I, personally, would put a semicolon there (it feels naked >>> to me without one), dmd doesn't actually seem to require it. But TDPL >>> says tha

Re: is expression

2010-06-24 Thread Clemens
Andrei Alexandrescu Wrote: > On 06/24/2010 10:01 AM, Ellery Newcomer wrote: > > Hey, > > > > in std.container, line 2623, I'm seeing > > > > static if (is(_store.insertBack(value))) > > > > The spec doesn't mention allowing expressions as far as I can remember, > > so what's the deal? Yes, the arg

Re: is expression

2010-06-24 Thread Ellery Newcomer
On 06/24/2010 10:02 AM, Andrei Alexandrescu wrote: On 06/24/2010 10:01 AM, Ellery Newcomer wrote: Hey, in std.container, line 2623, I'm seeing static if (is(_store.insertBack(value))) The spec doesn't mention allowing expressions as far as I can remember, so what's the deal? Yes, the argument

D1 is such a nice little language

2010-06-24 Thread strtr
In relation to the recently decease request: How much of D1 won't compile on D2? Is there a D1-to-D2 guide and how about a comparison chart? Is D2 worse as a first language, difficulty wise? Or is maybe the D2 safe subset a good first language?

Re: The status of D2

2010-06-24 Thread dsimcha
== Quote from Mike James (f...@bar.com)'s article > Now that TDPL has been published and is now out in the wild what is the > status of D2. > Have all the features added been settled and now D2 is in the debug phase? > Are all future releases now of D2 just going to be bug fixes? > Is it worthwhile

The status of D2

2010-06-24 Thread Mike James
Now that TDPL has been published and is now out in the wild what is the status of D2. Have all the features added been settled and now D2 is in the debug phase? Are all future releases now of D2 just going to be bug fixes? Is it worthwhile to start a largish project in D2? The website makes out D

Re: is expression

2010-06-24 Thread Andrei Alexandrescu
On 06/24/2010 10:01 AM, Ellery Newcomer wrote: Hey, in std.container, line 2623, I'm seeing static if (is(_store.insertBack(value))) The spec doesn't mention allowing expressions as far as I can remember, so what's the deal? Yes, the argument is ambiguous with type at parse time, but it has to

is expression

2010-06-24 Thread Ellery Newcomer
Hey, in std.container, line 2623, I'm seeing static if (is(_store.insertBack(value))) The spec doesn't mention allowing expressions as far as I can remember, so what's the deal? Yes, the argument is ambiguous with type at parse time, but it has to get converted to an expression at some point.

Re: The future of DWT

2010-06-24 Thread Robert Jacques
On Thu, 24 Jun 2010 10:25:28 -0400, Jacob Carlborg wrote: Additional things that can be done are: * Add additional ports (like WPF, 64bit versions) Sadly, WPF is C# only, as far as I know.

Re: GUI Library for D2+Phobos

2010-06-24 Thread Robert Jacques
On Thu, 24 Jun 2010 05:19:48 -0400, Adrian Matoga wrote: What is the recommended GUI library for D2+ Phobos for Windows/Linux? Looking at the Wiki4D GUI page shows a number of them but none appear to be fully released. DWT seems to be the official one, but AFAIK it's currently only for T

Re: finding a circular dependency

2010-06-24 Thread Steven Schveighoffer
On Thu, 24 Jun 2010 10:27:29 -0400, Ellery Newcomer wrote: On 06/21/2010 01:51 PM, Steven Schveighoffer wrote: I've been trying to get a modified version of std.process to compile (with Lars K's changes) for windows, and phobos finally compiled. So I built a little test program, compiled it

Re: Errors in TDPL

2010-06-24 Thread Simen kjaeraas
Andrei Alexandrescu wrote: I mistakingly assumed D followed C in that regard. Given the argument stated in this thread (that absent semicolons require more context to be absorbed while reading), do you agree that D should make the semicolon required? Yes -- Simen

Re: finding a circular dependency

2010-06-24 Thread Ellery Newcomer
On 06/21/2010 01:51 PM, Steven Schveighoffer wrote: I've been trying to get a modified version of std.process to compile (with Lars K's changes) for windows, and phobos finally compiled. So I built a little test program, compiled it, and I get the following error message: object.Exception: circ

The future of DWT

2010-06-24 Thread Jacob Carlborg
I've recently been in contact with Frank Benoit, the original author of DWT (the tango version), and he says he has abandoned DWT (and D completely what it seems like). I think DWT is a great library and would hate to see it completely abandoned. I myself is currently updating the Mac version t

Re: More on StringToken

2010-06-24 Thread Simen kjaeraas
Ben Hanson wrote: It seems like the best way to go is to use dchar for strings (i.e. not have the struct as a template) as I need real characters for intersection purposes. When it comes to lookup, any input will need converting to dchars (I expect this can be done on the fly). In C++ yo

Re: More on StringToken

2010-06-24 Thread Ellery Newcomer
On 06/24/2010 06:35 AM, Ben Hanson wrote: It seems like the best way to go is to use dchar for strings (i.e. not have the struct as a template) as I need real characters for intersection purposes. When it comes to lookup, any input will need converting to dchars (I expect this can be done on the

Re: More on StringToken

2010-06-24 Thread Jesse Phillips
On Thu, 24 Jun 2010 11:35:50 +, Ben Hanson wrote: > It seems like the best way to go is to use dchar for strings (i.e. not > have the struct as a template) as I need real characters for > intersection purposes. When it comes to lookup, any input will need > converting to dchars (I expect this

Re: GUI Library for D2+Phobos

2010-06-24 Thread Adrian Matoga
Max Samukha pisze: On 06/24/2010 12:19 PM, Adrian Matoga wrote: QtD looks very interesting, but I didn't manage to build it. Other users had same issue and noone wished to help, see QtD forums. QtD has 1.5 active developers. It is being tested only on 32-bit WinXP and linux. The build system

Re: GUI Library for D2+Phobos

2010-06-24 Thread Jacob Carlborg
On 2010-06-23 22:21, Jesse Phillips wrote: Mike James Wrote: What is the recommended GUI library for D2+ Phobos for Windows/Linux? Looking at the Wiki4D GUI page shows a number of them but none appear to be fully released. -=mike=- Personally I have had issue with GTKD and DWT. The only one

Re: is Expression, Type Identifier : TypeSpecialization

2010-06-24 Thread Andrej Mitrovic
Trass3r Wrote: > > class one { } > > class two : one { } > >alias one ONE; > > alias two TWO; > >static if ( is(TWO T : ONE) ) > > writeln("test"); > > > > Is this a bug, or am I doing it wrong? > > If it works without the aliases this is another strange alias bug. D

Re: I'd like to try D, but...

2010-06-24 Thread Jacob Carlborg
On 2010-06-23 15:42, Neal Becker wrote: My main interest is building python-callable modules (which I currently do with C++/boost::python). Problem is, D can't be used for this, because it can't produce shared libraries (except on i386). This is, as I understand it, because the D library/librar

More on StringToken

2010-06-24 Thread Ben Hanson
It seems like the best way to go is to use dchar for strings (i.e. not have the struct as a template) as I need real characters for intersection purposes. When it comes to lookup, any input will need converting to dchars (I expect this can be done on the fly). In C++ you would use iterators to do

Re: is Expression, Type Identifier : TypeSpecialization

2010-06-24 Thread Trass3r
class one { } class two : one { } alias one ONE; alias two TWO; static if ( is(TWO T : ONE) ) writeln("test"); Is this a bug, or am I doing it wrong? If it works without the aliases this is another strange alias bug.

Re: Is it time for D1 to die of natural causes?

2010-06-24 Thread Bane
SiegeLord Wrote: > Justin Johansson Wrote: > > > Now that Andrei's much anticipated publication of TDPL is out, is it > > time that D1 should now perish? > > > > My personal feeling is that by cremating D1, time and effort can then be > > better expended and focused on solidifying D2. > > > >

Re: GUI Library for D2+Phobos

2010-06-24 Thread Trass3r
I don't have much time either but I might help testing on Win7 x64.

Re: GUI Library for D2+Phobos

2010-06-24 Thread Max Samukha
On 06/24/2010 12:19 PM, Adrian Matoga wrote: QtD looks very interesting, but I didn't manage to build it. Other users had same issue and noone wished to help, see QtD forums. QtD has 1.5 active developers. It is being tested only on 32-bit WinXP and linux. The build system and the library its

Re: GUI Library for D2+Phobos

2010-06-24 Thread Max Samukha
On 06/24/2010 02:08 AM, Graham Fawcett wrote: On Wed, 23 Jun 2010 23:30:16 +0200, Trass3r wrote: http://www.dsource.org/projects/qtd ! I would omit the exclamation mark for now. What's the story on the DMD patch in the QTD project? Can we expect to see this in a future DMD release, or is i

Re: GUI Library for D2+Phobos

2010-06-24 Thread Adrian Matoga
What is the recommended GUI library for D2+ Phobos for Windows/Linux? Looking at the Wiki4D GUI page shows a number of them but none appear to be fully released. DWT seems to be the official one, but AFAIK it's currently only for Tango (I've seen some attempts to port it to Phobos, I'll probab

Re: Errors in TDPL

2010-06-24 Thread Jonathan M Davis
Alix Pexton wrote: > On 24/06/2010 09:09, Jonathan M Davis wrote: >> Alix Pexton wrote: >> >>> Can someone sanity check me on the code on pages 334-5? >>> >>> Does the method push really need !empty in its in contract? >>> >>> I might not be fully awake yet>< >>> >>> A... >> >> It has to be an err

Re: Errors in TDPL

2010-06-24 Thread Alix Pexton
On 24/06/2010 09:09, Jonathan M Davis wrote: Alix Pexton wrote: Can someone sanity check me on the code on pages 334-5? Does the method push really need !empty in its in contract? I might not be fully awake yet>< A... It has to be an error. If you couldn't push onto an empty stack, then yo

Re: Is it time for D1 to die of natural causes?

2010-06-24 Thread Bernard Helyer
On Wed, 23 Jun 2010 19:53:33 +0200, Lutger wrote: > Do you > think D1 harms D2? I does in so far as people making libraries and wrappers don't support D2. I think getting Tango onto D2 would be a very positive step. Unfortunately, I don't think the maintainers are interested at all in this, th

Re: Errors in TDPL

2010-06-24 Thread Jonathan M Davis
Alix Pexton wrote: > Can someone sanity check me on the code on pages 334-5? > > Does the method push really need !empty in its in contract? > > I might not be fully awake yet >< > > A... It has to be an error. If you couldn't push onto an empty stack, then you'd never be able to put anything

Re: Errors in TDPL

2010-06-24 Thread Alix Pexton
Can someone sanity check me on the code on pages 334-5? Does the method push really need !empty in its in contract? I might not be fully awake yet >< A...

Re: DMD Backend Long-term

2010-06-24 Thread Kagamin
bearophile Wrote: > Leandro Lucarella: > > Yes, I don't think "copying with 'cosmetic changes'" works, legally > > speaking. Otherwise everybody would be doing it. > > If 10% of changes is not legally enough, they LLVM dev can copy it and then > change the 15% of it or even 20%. There must exist

  1   2   >