Re: Finalizing D2

2009-06-04 Thread dolive
Andrei Alexandrescu дµ½: > Jason House wrote: > > Andrei Alexandrescu Wrote: > > > >> Jason House wrote: > >>> BCS wrote: > >>> > Hello Jason, > > > Should the final freezing of D2 be delayed until major D1 libraries > > port to D2? I'm mostly thinking of Tango, but I bet there

Re: Finalizing D2

2009-05-25 Thread Lionello Lunesu
Andrei Alexandrescu wrote: grauzone wrote: * std.mmfile: integrate with the garbage collector. It should be there. Why should the GC know about it? To add: in all sane situations, the mmaped region won't contain any pointers, and the GC doesn't have to scan it. Allocating address space is

Re: Finalizing D2

2009-05-24 Thread Daniel Keep
Michel Fortin wrote: > ... > > A callback API isn't necessarily SAX. A callback API doesn't necessarily > have to parse everything until completion, it could parse only the next > token and call the appropriate callback. When I talk "callback api," I mean something fundamentally like SAX. The r

Re: Finalizing D2

2009-05-24 Thread Michel Fortin
On 2009-05-24 03:22:47 -0400, Daniel Keep said: Callbacks are "easier" to set up, but are incredibly complicated for any sort of structured parsing. The problem is that you can't easily change the behaviour of the parser once it's started. I had to write a SAX parser for a structured data for

Re: Finalizing D2

2009-05-24 Thread Daniel Keep
Michel Fortin wrote: > On 2009-05-23 01:25:49 -0400, Andrei Alexandrescu > said: > >> * std.xml: replace with something that moves faster than molasses. > > I started to write an XML parser using D1 and a pseudo-range > implementation a little while ago, but never finished it. (I was > undecid

Re: Finalizing D2

2009-05-23 Thread Michel Fortin
On 2009-05-23 01:25:49 -0400, Andrei Alexandrescu said: * std.xml: replace with something that moves faster than molasses. I started to write an XML parser using D1 and a pseudo-range implementation a little while ago, but never finished it. (I was undecided about the API, and that somewha

Re: Finalizing D2

2009-05-23 Thread Andrei Alexandrescu
Denis Koroskin wrote: On Sat, 23 May 2009 22:20:14 +0400, Andrei Alexandrescu wrote: * std.socket, std.socketstream: We need a real networking library. what would it do on top of what that does? I haven't studied it, but Walter said he doesn't like it and I trust him. Anyhow, we'd need

Re: Finalizing D2

2009-05-23 Thread Denis Koroskin
On Sat, 23 May 2009 22:20:14 +0400, Andrei Alexandrescu wrote: * std.socket, std.socketstream: We need a real networking library. what would it do on top of what that does? I haven't studied it, but Walter said he doesn't like it and I trust him. Anyhow, we'd need to create at least ful

Re: Finalizing D2

2009-05-23 Thread Georg Wrede
Andrei Alexandrescu wrote: But ranges aren't everything, Georg :o). :-)

Re: Finalizing D2

2009-05-23 Thread BLS
std.dtl std.pattern (hoped that a least the singleton made it to the moon ) Björn

Re: Finalizing D2

2009-05-23 Thread Leandro Lucarella
bearophile, el 23 de mayo a las 14:12 me escribiste: > Andrei Alexandrescu: > >Some of them may be dropped.< > > My suggestion, for D2, is to assume all minimally serious D2 programmers will > have both Phobos2 and Tango2 installed. > So Phobos can contain core functionality and Tango the utiliti

Re: Finalizing D2

2009-05-23 Thread Christopher Wright
Walter Bright wrote: Christopher Wright wrote: Walter would say that the number of bug reports for a compiler is an indication of its popularity. Yes, I would say that (!) In fact, you did say that!

Re: Finalizing D2

2009-05-23 Thread BCS
Hello Andrei, BCS wrote: Hello Andrei, * std.date: unnecessarily clunky and low-level. Also, somehow Walter thinks that std.dateparse has absolutely nothing to do with date. My company has this little project that I wrote in c#: http://precisionsoftware.blogspot.com/2009/03/natural-langua

Re: Finalizing D2

2009-05-23 Thread Andrei Alexandrescu
BCS wrote: Hello Andrei, * std.date: unnecessarily clunky and low-level. Also, somehow Walter thinks that std.dateparse has absolutely nothing to do with date. My company has this little project that I wrote in c#: http://precisionsoftware.blogspot.com/2009/03/natural-language-net-date-parse

Re: Finalizing D2

2009-05-23 Thread bearophile
Andrei Alexandrescu: >Some of them may be dropped.< My suggestion, for D2, is to assume all minimally serious D2 programmers will have both Phobos2 and Tango2 installed. So Phobos can contain core functionality and Tango the utilities, higher level things, more data structures, etc, reducing the

Re: Finalizing D2

2009-05-23 Thread BCS
Hello Andrei, grauzone wrote: Because the only way to make memory-mapped files safe is to have the GC handle them. Care to explain? mmhandle h = mapFile("test.txt"); char[] x = cast(char[]) h.ptr; h.unmapFile; Any attempt to use x will crash the program. So it's the gc who needs to unmap f

Re: Finalizing D2

2009-05-23 Thread BCS
Hello Andrei, * std.date: unnecessarily clunky and low-level. Also, somehow Walter thinks that std.dateparse has absolutely nothing to do with date. My company has this little project that I wrote in c#: http://precisionsoftware.blogspot.com/2009/03/natural-language-net-date-parser.html Woul

Re: Finalizing D2

2009-05-23 Thread Walter Bright
Christopher Wright wrote: Walter would say that the number of bug reports for a compiler is an indication of its popularity. Yes, I would say that (!)

Re: Finalizing D2

2009-05-23 Thread dsimcha
== Quote from Christopher Wright (dhase...@gmail.com)'s article > Brad Roberts wrote: > > Don wrote: > >> bearophile wrote: > >>> Andrei Alexandrescu: > there's been a sharp increase in bug reports and patches recently. > Walter and I are still scratching our head over that (it's not like

Re: Finalizing D2

2009-05-23 Thread Andrei Alexandrescu
Jason House wrote: Andrei Alexandrescu wrote: grauzone wrote: How about giving these up to Tango? The only problem is, it has not been ported to D2 yet. That's not an option. Licensing reasons? Not-Invented-Here-Syndrome? You love reinventing the wheel? Licensing and the love for reading sn

Re: Finalizing D2

2009-05-23 Thread Jason House
Andrei Alexandrescu wrote: > grauzone wrote: How about giving these up to Tango? The only problem is, it has not been ported to D2 yet. >>> >>> That's not an option. >> >> Licensing reasons? Not-Invented-Here-Syndrome? You love reinventing the >> wheel? > > Licensing and the love for r

Re: Finalizing D2

2009-05-23 Thread Jason House
Would it be a good idea to transcribe this list onto a "Phobos Help Wanted" page? I'm thinking they should be categorized into 4 basic categories. Theoretically, as time goes on higher numbered items should be convertible to lower numbered items. 1. Pure library work -> Should include basi

Re: Finalizing D2

2009-05-23 Thread Andrei Alexandrescu
grauzone wrote: * std.mmfile: integrate with the garbage collector. It should be there. Why should the GC know about it? To add: in all sane situations, the mmaped region won't contain any pointers, and the GC doesn't have to scan it. Allocating address space is already done by the OS. Free

Re: Finalizing D2

2009-05-23 Thread Denis Koroskin
On Sat, 23 May 2009 17:33:10 +0400, Andrei Alexandrescu wrote: * std.xml: replace with something that moves faster than molasses. * std.zip: rewrite > * std.socket, std.socketstream: We need a real networking library. > * std.md5: we should add more such encryption devices. > * std.base64:

Re: Finalizing D2

2009-05-23 Thread grauzone
* std.mmfile: integrate with the garbage collector. It should be there. Why should the GC know about it? To add: in all sane situations, the mmaped region won't contain any pointers, and the GC doesn't have to scan it. Allocating address space is already done by the OS. Freeing the mmaped re

Re: Finalizing D2

2009-05-23 Thread Andrei Alexandrescu
grauzone wrote: * std.bind: eliminate? Unneeded, because D2 has real closures. (That modules still make a lot of sense in D1, but now it's only a collection of awkward template hacks.) * std.metastrings: I hate the name. Merge into std.string using ctfe Sounds like fun. I hope you'll prov

Re: Finalizing D2

2009-05-23 Thread grauzone
* std.bind: eliminate? Unneeded, because D2 has real closures. (That modules still make a lot of sense in D1, but now it's only a collection of awkward template hacks.) * std.metastrings: I hate the name. Merge into std.string using ctfe Sounds like fun. I hope you'll provide Walter with s

Re: Finalizing D2

2009-05-23 Thread Daniel Keep
Andrei Alexandrescu wrote: > ... > > * std.base64: doesn't deserve a separate module The joys of a flat module hierarchy: it has to go *somewhere*. :P > ... > > * std.conv: define operations to stream data out and in in binary and > text formats. What do you mean by "stream data"? Are we t

Re: Finalizing D2

2009-05-23 Thread Christopher Wright
Brad Roberts wrote: Don wrote: bearophile wrote: Andrei Alexandrescu: there's been a sharp increase in bug reports and patches recently. Walter and I are still scratching our head over that (it's not like dmd got much crappier overnight). I can only infer that more people have started using mo

Re: Finalizing D2

2009-05-23 Thread Frits van Bommel
Brad Roberts wrote: Don wrote: bearophile wrote: Andrei Alexandrescu: there's been a sharp increase in bug reports and patches recently. Walter and I are still scratching our head over that (it's not like dmd got much crappier overnight). I can only infer that more people have started using mo

Re: Finalizing D2

2009-05-23 Thread Tomas Lindquist Olsen
On Sat, May 23, 2009 at 7:25 AM, Andrei Alexandrescu wrote: > Jason House wrote: >> >> Andrei Alexandrescu Wrote: >> >>> Jason House wrote: BCS wrote: > Hello Jason, > >> Should the final freezing of D2 be delayed until major D1 libraries >> port to D2? I'm mostly th

Re: Finalizing D2

2009-05-23 Thread Don
Brad Roberts wrote: Don wrote: bearophile wrote: Andrei Alexandrescu: there's been a sharp increase in bug reports and patches recently. Walter and I are still scratching our head over that (it's not like dmd got much crappier overnight). I can only infer that more people have started using mo

Re: Finalizing D2

2009-05-22 Thread Andrei Alexandrescu
Jason House wrote: Andrei Alexandrescu Wrote: Jason House wrote: BCS wrote: Hello Jason, Should the final freezing of D2 be delayed until major D1 libraries port to D2? I'm mostly thinking of Tango, but I bet there are others. It may even be good if major libraries could use a Phobos-compa

Re: Finalizing D2

2009-05-22 Thread Brad Roberts
Don wrote: > bearophile wrote: >> Andrei Alexandrescu: >>> there's been a sharp increase in bug reports and patches recently. >>> Walter and I are still scratching our head over that (it's not like >>> dmd got much crappier overnight). I can only infer that more people >>> have started using more o

Re: Finalizing D2

2009-05-22 Thread Don
bearophile wrote: Andrei Alexandrescu: there's been a sharp increase in bug reports and patches recently. Walter and I are still scratching our head over that (it's not like dmd got much crappier overnight). I can only infer that more people have started using more of D. I think it's mostly

Re: Finalizing D2

2009-05-22 Thread Jason House
Andrei Alexandrescu Wrote: > Jason House wrote: > > BCS wrote: > > > >> Hello Jason, > >> > >>> Should the final freezing of D2 be delayed until major D1 libraries > >>> port to D2? I'm mostly thinking of Tango, but I bet there are others. > >>> It may even be good if major libraries could use a

Re: Finalizing D2

2009-05-22 Thread bearophile
Andrei Alexandrescu: > there's been a sharp > increase in bug reports and patches recently. Walter and I are still > scratching our head over that (it's not like dmd got much crappier > overnight). I can only infer that more people have started using more of D. I think it's mostly a complex con

Re: Finalizing D2

2009-05-22 Thread Andrei Alexandrescu
Jason House wrote: BCS wrote: Hello Jason, Should the final freezing of D2 be delayed until major D1 libraries port to D2? I'm mostly thinking of Tango, but I bet there are others. It may even be good if major libraries could use a Phobos-compatible license and become part of the releases by

Re: Finalizing D2

2009-05-22 Thread Jason House
Robert Clipsham wrote: > My main thought is that this is a bit early to be thinking about this. > D2 is still in alpha, with lots of feature and bug changes in each > release. Until its feature set begins to settle I don't think it is too > important to think about how to manage a release. I get

Re: Finalizing D2

2009-05-22 Thread Jason House
BCS wrote: > Hello Jason, > >> Should the final freezing of D2 be delayed until major D1 libraries >> port to D2? I'm mostly thinking of Tango, but I bet there are others. >> It may even be good if major libraries could use a Phobos-compatible >> license and become part of the releases by digital

Re: Finalizing D2

2009-05-22 Thread Jason House
dsimcha wrote: > == Quote from Jason House (jason.james.ho...@gmail.com)'s article >> Andrei has indicated that the current plan is to finalize D2 when his >> book comes > out. >> Given this, I'm interested in what _community_ activity should be done as >> part > of this. >> Should there be a form

Re: Finalizing D2

2009-05-22 Thread Robert Clipsham
Jason House wrote: Andrei has indicated that the current plan is to finalize D2 when his book comes out. Given this, I'm interested in what _community_ activity should be done as part of this. Should there be a formal review and polishing of the D spec? More than just criticizing faults, people

Re: Finalizing D2

2009-05-22 Thread BCS
Hello Jason, Should the final freezing of D2 be delayed until major D1 libraries port to D2? I'm mostly thinking of Tango, but I bet there are others. It may even be good if major libraries could use a Phobos-compatible license and become part of the releases by digital mars. Maybe it should b

Re: Finalizing D2

2009-05-22 Thread dsimcha
== Quote from Jason House (jason.james.ho...@gmail.com)'s article > Andrei has indicated that the current plan is to finalize D2 when his book > comes out. > Given this, I'm interested in what _community_ activity should be done as part of this. > Should there be a formal review and polishing of t

Finalizing D2

2009-05-22 Thread Jason House
Andrei has indicated that the current plan is to finalize D2 when his book comes out. Given this, I'm interested in what _community_ activity should be done as part of this. Should there be a formal review and polishing of the D spec? More than just criticizing faults, people should submit pa