Re: Any chance to call Tango as Extended Standard Library

2009-01-24 Thread Sean Kelly
Benji Smith wrote: Don wrote: Lars Ivar Igesund wrote: Don wrote: druntime should certainly not become any bigger (in scope), as that would defeat the purpose of separating the runtime from userspace in the first place. The topic of common userspace functionality should be kept separate from

Re: Any chance to call Tango as Extended Standard Library

2009-01-24 Thread Sergey Gromov
Thu, 22 Jan 2009 21:53:02 -0500, Michel Fortin wrote: > On 2009-01-19 18:11:15 -0500, Sergey Gromov said: > >> I think "can't" is a bit strong a statement. Let's see: >> >> With opApply: >> >> class progressUpdater(Collection) >> { >> this(Collection c) >> { >> collection_ = c; >> }

Re: Any chance to call Tango as Extended Standard Library

2009-01-24 Thread Benji Smith
Don wrote: Lars Ivar Igesund wrote: Don wrote: druntime should certainly not become any bigger (in scope), as that would defeat the purpose of separating the runtime from userspace in the first place. The topic of common userspace functionality should be kept separate from the topic of drunti

Re: Any chance to call Tango as Extended Standard Library

2009-01-23 Thread Don
Lars Ivar Igesund wrote: Don wrote: John Reimer wrote: Hello Johan, As a user of D primarily and of the standard libraries secondly I see this reluctance to solve the library situation as the single biggest threat to D. It creates a division in the community and an uncertainty of which libr

Re: Any chance to call Tango as Extended Standard Library

2009-01-23 Thread Christopher Wright
Lars Ivar Igesund wrote: druntime should certainly not become any bigger (in scope), as that would defeat the purpose of separating the runtime from userspace in the first place. The topic of common userspace functionality should be kept separate from the topic of druntime. Okay, how about a

Re: Any chance to call Tango as Extended Standard Library

2009-01-23 Thread Lars Ivar Igesund
Don wrote: > John Reimer wrote: >> Hello Johan, >> >> >>> As a user of D primarily and of the standard libraries secondly I see >>> this reluctance to solve the library situation as the single biggest >>> threat to D. It creates a division in the community and an uncertainty >>> of which library

Re: Any chance to call Tango as Extended Standard Library

2009-01-23 Thread Jason House
Denis Koroskin Wrote: > On Thu, 22 Jan 2009 23:38:04 +0300, Jason House > wrote: > > > Denis Koroskin Wrote: > > > >> I think believe we could take advantage of current state of both > >> libraries in D2 - they are both incomplete and being redesigned to fit > >> D2 better. > >> We could re

Re: Any chance to call Tango as Extended Standard Library

2009-01-23 Thread Denis Koroskin
On Thu, 22 Jan 2009 23:38:04 +0300, Jason House wrote: Denis Koroskin Wrote: I think believe we could take advantage of current state of both libraries in D2 - they are both incomplete and being redesigned to fit D2 better. We could revisit both Tango and Phobos, and clean them up by remo

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Michel Fortin
On 2009-01-19 18:11:15 -0500, Sergey Gromov said: I think "can't" is a bit strong a statement. Let's see: With opApply: class progressUpdater(Collection) { this(Collection c) { collection_ = c; } int opApply(int delegate(ref ElementType!(Collection)) dg) { composed_ = dg;

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Jarrett Billingsley
On Thu, Jan 22, 2009 at 8:13 PM, Stewart Gordon wrote: > Don wrote: > >> >> The other option (which I would prefer) is for druntime to get bigger, and >> encompass more of the common code from both. So that both Phobos and Tango >> became (crucial) extension libraries over a small core. And the b

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Stewart Gordon
Don wrote: The other option (which I would prefer) is for druntime to get bigger, and encompass more of the common code from both. So that both Phobos and Tango became (crucial) extension libraries over a small core. And the bigger that common core becomes, the smaller the library problem beco

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Jason House
Denis Koroskin Wrote: > I think believe we could take advantage of current state of both libraries in > D2 - they are both incomplete and being redesigned to fit D2 better. > We could revisit both Tango and Phobos, and clean them up by removing > outdated modules and modules with same functional

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Simen Kjaeraas
On Thu, 22 Jan 2009 18:11:02 +0100, Jarrett Billingsley wrote: On Thu, Jan 22, 2009 at 1:53 AM, Alexander Pánek wrote: John Reimer wrote: Don wrote: The other option (which I would prefer) is for druntime to get bigger, and encompass more of the common code from both. So that both Phobo

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Andrei Alexandrescu
Sergey Gromov wrote: Mon, 19 Jan 2009 06:15:06 -0800, Andrei Alexandrescu wrote: Michel Fortin wrote: Other possible things involves a rudimentary profiler (checking for the elapsed time at each loop iteration), or a progress monitoring template (notifying another thread of the progress of a

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Jarrett Billingsley
On Thu, Jan 22, 2009 at 1:53 AM, Alexander Pánek wrote: > John Reimer wrote: >> >> Don wrote: >>> >>> The other option (which I would prefer) is for druntime to get bigger, >>> and encompass more of the common code from both. So that both Phobos >>> and Tango became (crucial) extension libraries o

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Andrei Alexandrescu
Don wrote: Daniel Keep wrote: Andrei Alexandrescu wrote: Don wrote: [snip] It means that any code which uses a library based on both Tango and a library based on Phobos will end up with two copies of all of the functions, and they'll have different name mangling etc. You end up with two inco

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Don
Daniel Keep wrote: Andrei Alexandrescu wrote: Don wrote: [snip] It means that any code which uses a library based on both Tango and a library based on Phobos will end up with two copies of all of the functions, and they'll have different name mangling etc. You end up with two incompatible Big

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Don
Andrei Alexandrescu wrote: Don wrote: Andrei Alexandrescu wrote: Don wrote: Andrei Alexandrescu wrote: IUnknown wrote: Regarding Phobos + Tango, the minimum I expect is things like containers, algorithm and common math stuff to be in one core module. This is already bound to be an issue be

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Daniel Keep
Andrei Alexandrescu wrote: > Don wrote: >> [snip] >> >> It means that any code which uses a library based on both Tango and a >> library based on Phobos will end up with two copies of all of the >> functions, and they'll have different name mangling etc. You end up >> with two incompatible Bigint

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Andrei Alexandrescu
Don wrote: Andrei Alexandrescu wrote: Don wrote: Andrei Alexandrescu wrote: IUnknown wrote: Regarding Phobos + Tango, the minimum I expect is things like containers, algorithm and common math stuff to be in one core module. This is already bound to be an issue because there is disagreement

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Frits van Bommel
Don wrote: Andrei Alexandrescu wrote: Don wrote: Can we work out the math stuff at least? There's no difference between Phobos and Tango there. All we need is an agreement on common module naming (eg, create core.math). That would be great. I don't think that's a major issue anyway. If I we

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Aarti_pl
Denis Koroskin pisze: On Thu, 22 Jan 2009 09:18:52 +0300, Benji Smith wrote: IUnknown wrote: Agree. Which is why I said the problems you are facing seem to be non-technical. I'm suggesting that the D library developers should pick one and axe the other. *I* think what more important is to h

Re: Any chance to call Tango as Extended Standard Library

2009-01-22 Thread Denis Koroskin
On Thu, 22 Jan 2009 09:18:52 +0300, Benji Smith wrote: IUnknown wrote: Agree. Which is why I said the problems you are facing seem to be non-technical. I'm suggesting that the D library developers should pick one and axe the other. *I* think what more important is to have one single set

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Alexander Pánek
John Reimer wrote: > > Don wrote: The other option (which I would prefer) is for druntime to get bigger, and encompass more of the common code from both. So that both Phobos and Tango became (crucial) extension libraries over a small core. And the bigger that common core becomes, the smaller the

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Benji Smith
IUnknown wrote: Agree. Which is why I said the problems you are facing seem to be non-technical. I'm suggesting that the D library developers should pick one and axe the other. *I* think what more important is to have one single set of containers in a single style rather than have two separate one

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread John Reimer
Hello Don, John Reimer wrote: Hello Johan, As a user of D primarily and of the standard libraries secondly I see this reluctance to solve the library situation as the single biggest threat to D. It creates a division in the community and an uncertainty of which library to base my own librari

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Don
John Reimer wrote: Hello Johan, As a user of D primarily and of the standard libraries secondly I see this reluctance to solve the library situation as the single biggest threat to D. It creates a division in the community and an uncertainty of which library to base my own libraries on. If I u

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Don
Andrei Alexandrescu wrote: Don wrote: Andrei Alexandrescu wrote: IUnknown wrote: Regarding Phobos + Tango, the minimum I expect is things like containers, algorithm and common math stuff to be in one core module. This is already bound to be an issue because there is disagreement on how e.g.

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread John Reimer
Hello Johan, As a user of D primarily and of the standard libraries secondly I see this reluctance to solve the library situation as the single biggest threat to D. It creates a division in the community and an uncertainty of which library to base my own libraries on. If I use one and the other

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Andrei Alexandrescu
Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: Lars Ivar Igesund wrote: No, you misunderstand. I said safely call, not exceptionally efficient. To me a virtual call would be accep

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Lars Ivar Igesund
Andrei Alexandrescu wrote: > Lars Ivar Igesund wrote: >> Andrei Alexandrescu wrote: >> >>> Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: > Lars Ivar Igesund wrote: >> No, you misunderstand. I said safely call, not exceptionally >> efficient. To me a virtual call would

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Andrei Alexandrescu
Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: Lars Ivar Igesund wrote: No, you misunderstand. I said safely call, not exceptionally efficient. To me a virtual call would be acceptable. However, at least in my cases, there would norma

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Lars Ivar Igesund
Andrei Alexandrescu wrote: > Lars Ivar Igesund wrote: >> Andrei Alexandrescu wrote: >> >>> Lars Ivar Igesund wrote: No, you misunderstand. I said safely call, not exceptionally efficient. To me a virtual call would be acceptable. However, at least in my cases, there would normally

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Johan Granberg
Don wrote: > John Reimer wrote: >> Hello dsimcha, >> >>> == Quote from Daniel Keep (daniel.keep.li...@gmail.com)'s article >>> Piotrek wrote: > Lars Ivar Igesund wrote: > >> Tango will stay Tango (and tango.*). The above naming assumes that >> Tango will depend on Phobos

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Andrei Alexandrescu
Don wrote: Andrei Alexandrescu wrote: IUnknown wrote: Regarding Phobos + Tango, the minimum I expect is things like containers, algorithm and common math stuff to be in one core module. This is already bound to be an issue because there is disagreement on how e.g. containers should look like

Re: Any chance to call Tango as Extended Standard Library

2009-01-21 Thread Don
Andrei Alexandrescu wrote: IUnknown wrote: Regarding Phobos + Tango, the minimum I expect is things like containers, algorithm and common math stuff to be in one core module. This is already bound to be an issue because there is disagreement on how e.g. containers should look like (Java-style

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Andrei Alexandrescu
Lars Ivar Igesund wrote: Andrei Alexandrescu wrote: Lars Ivar Igesund wrote: No, you misunderstand. I said safely call, not exceptionally efficient. To me a virtual call would be acceptable. However, at least in my cases, there would normally not be more than one imlemented interface and suc

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Alexander Pánek
Lars Ivar Igesund wrote: Steven Schveighoffer wrote: "Lars Ivar Igesund" wrote Steven Schveighoffer wrote: I can't really understand whether it is required to distribute the source code of a derivative work under the Academic Free License, so I don't really understand that. It is not require

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Yigal Chripun
Bill Baxter wrote: On Wed, Jan 21, 2009 at 6:29 AM, Lars Ivar Igesund wrote: I thought the license page (.../wiki/License) was pretty clear ... even if the licenses themselves aren't. Actually this was something I meant to bring up. I couldn't actually find that page when I was looking fo

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Alexander Pánek
Bill Baxter wrote: On Wed, Jan 21, 2009 at 6:29 AM, Lars Ivar Igesund wrote: I thought the license page (.../wiki/License) was pretty clear ... even if the licenses themselves aren't. Actually this was something I meant to bring up. I couldn't actually find that page when I was looking fo

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Bill Baxter
On Wed, Jan 21, 2009 at 6:29 AM, Lars Ivar Igesund wrote: > I thought the license page (.../wiki/License) was pretty clear ... even if > the licenses themselves aren't. Actually this was something I meant to bring up. I couldn't actually find that page when I was looking for it. I ended up d

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Steven Schveighoffer wrote: > "Lars Ivar Igesund" wrote >> Steven Schveighoffer wrote: >>> I can't really understand whether it is required to distribute the >>> source code of a derivative work under the Academic Free License, so I >>> don't really >>> understand that. >> >> It is not required, A

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Steven Schveighoffer
"Lars Ivar Igesund" wrote > Steven Schveighoffer wrote: >> I can't really understand whether it is required to distribute the source >> code of a derivative work under the Academic Free License, so I don't >> really >> understand that. > > It is not required, AFAIK only LGPL and GPL of the common l

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Steven Schveighoffer wrote: > "Lars Ivar Igesund" wrote >> Steven Schveighoffer wrote: >> >>> "Piotrek" wrote Hello! It's just an idea. After reading about issues on disallowing DWT to stay in standardization area (Anomaly on Wiki4D GuiLibraries page) some question appeare

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Steven Schveighoffer
"Lars Ivar Igesund" wrote > Steven Schveighoffer wrote: > >> "Piotrek" wrote >>> Hello! >>> >>> It's just an idea. After reading about issues on disallowing DWT to stay >>> in standardization area (Anomaly on Wiki4D GuiLibraries page) some >>> question appeared in my mind. For propaganda sake isn't

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Steven Schveighoffer wrote: > "Piotrek" wrote >> Hello! >> >> It's just an idea. After reading about issues on disallowing DWT to stay >> in standardization area (Anomaly on Wiki4D GuiLibraries page) some >> question appeared in my mind. For propaganda sake isn't it better to not >> make such a bi

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Don wrote: > Steven Schveighoffer wrote: >> Let's not forget the licensing issues. Tango is incompatible with some >> developers license wise, as you must include attribution for Tango in any >> derivative works (i.e. compiled binaries). > > Are you sure? Where is that written down? I can't find

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Jason House
dsimcha Wrote: > Yeah, but we also want decent performance and even compared to opApply, > coroutines/fibers are slow as molasses in January at the North Pole during the > last Ice Age. One type of coroutine optimization was mentioned previously on this list: http://www.digitalmars.com/d/archives

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Jarrett Billingsley
On Tue, Jan 20, 2009 at 12:50 PM, Lars Ivar Igesund wrote: >>> There doesn't really need to be anything wrong with them. What's wrong >>> with head/toe? >> >> It sounds stupid. > > Wholeheartedly agree. Agreed too, what's wrong with first/last? They're completely obvious and have no connotations

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Sean Kelly
== Quote from Steven Schveighoffer (schvei...@yahoo.com)'s article > "Sean Kelly" wrote > > Steven Schveighoffer wrote: > >> "Don" wrote > >>> Bill Baxter wrote: > On Tue, Jan 20, 2009 at 3:00 PM, Don wrote: > > Steven Schveighoffer wrote: > >> Let's not forget the licensing issues.

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Andrei Alexandrescu wrote: > Lars Ivar Igesund wrote: >> No, you misunderstand. I said safely call, not exceptionally >> efficient. To me a virtual call would be acceptable. However, at >> least in my cases, there would normally not be more than one >> imlemented interface and such it would be a t

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Christopher Wright wrote: > Walter Bright wrote: >> Yigal Chripun wrote: >>> Walter Bright wrote: Lars Ivar Igesund wrote: > toe() ?! tail() good, rear() not so good, toe() sucks. tail() is no good because it has a well-established meaning in programming of being everything

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Lars Ivar Igesund
Steven Schveighoffer wrote: > "Jason House" wrote >> Walter Bright wrote: >> >>> Druntime is there, and it's up to the Tango team now. >> >> As I understand it, the biggest fear of the Tango team is to make an >> official D2 version and then have to chase after a moving standard. If >> an officia

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Steven Schveighoffer
"Sean Kelly" wrote > Steven Schveighoffer wrote: >> "Don" wrote >>> Bill Baxter wrote: On Tue, Jan 20, 2009 at 3:00 PM, Don wrote: > Steven Schveighoffer wrote: >> Let's not forget the licensing issues. Tango is incompatible with >> some >> developers license wise, as you mu

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Sean Kelly
Steven Schveighoffer wrote: "Don" wrote Bill Baxter wrote: On Tue, Jan 20, 2009 at 3:00 PM, Don wrote: Steven Schveighoffer wrote: Let's not forget the licensing issues. Tango is incompatible with some developers license wise, as you must include attribution for Tango in any derivative wo

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Steven Schveighoffer
"John Reimer" wrote > Hello Steven, >> I don't see Tango and Phobos becoming more like one or the other, but >> as others have said, there are definite sections of code that can be >> used from both without interference. I/O is not one of them, and I >> don't see that changing. But due to the ope

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Steven Schveighoffer
"Don" wrote > Bill Baxter wrote: >> On Tue, Jan 20, 2009 at 3:00 PM, Don wrote: >>> Steven Schveighoffer wrote: Let's not forget the licensing issues. Tango is incompatible with some developers license wise, as you must include attribution for Tango in any derivative works (i

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Don
Bill Baxter wrote: On Tue, Jan 20, 2009 at 3:00 PM, Don wrote: Steven Schveighoffer wrote: Let's not forget the licensing issues. Tango is incompatible with some developers license wise, as you must include attribution for Tango in any derivative works (i.e. compiled binaries). Are you sure?

Re: Any chance to call Tango as Extended Standard Library

2009-01-20 Thread Bill Baxter
On Tue, Jan 20, 2009 at 3:00 PM, Don wrote: > Steven Schveighoffer wrote: >> >> Let's not forget the licensing issues. Tango is incompatible with some >> developers license wise, as you must include attribution for Tango in any >> derivative works (i.e. compiled binaries). > > Are you sure? Where

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Walter Bright
Jason House wrote: Walter Bright wrote: Druntime is there, and it's up to the Tango team now. As I understand it, the biggest fear of the Tango team is to make an official D2 version and then have to chase after a moving standard. If an official port of Tango 0.99.7 was ported to work with dm

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Don
Steven Schveighoffer wrote: Let's not forget the licensing issues. Tango is incompatible with some developers license wise, as you must include attribution for Tango in any derivative works (i.e. compiled binaries). Are you sure? Where is that written down? I can't find that anywhere in the

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread John Reimer
Hello Steven, "Piotrek" wrote Hello! It's just an idea. After reading about issues on disallowing DWT to stay in standardization area (Anomaly on Wiki4D GuiLibraries page) some question appeared in my mind. For propaganda sake isn't it better to not make such a big division between phobos and

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread bearophile
Sean Kelly: > This assumes that the easy approach is slow and the fast approach is > complex. I'd hope that we could find something that's both easy and > fast :-) I agree that certain times it's possible to have something that is both simple, safe, short and fast (but if that yield can be used

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Sean Kelly
== Quote from bearophile (bearophileh...@lycos.com)'s article > Andrei Alexandrescu: > > I know. Its popularity is part of what makes it dangerous. It's to good > > programming what fast food is to food :o). > I think that's a false analogy: fast food kills you slowly, while experience > shows me

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread bearophile
Andrei Alexandrescu: > I know. Its popularity is part of what makes it dangerous. It's to good > programming what fast food is to food :o). I think that's a false analogy: fast food kills you slowly, while experience shows me that in many programs a significant (large) percentage of lines of c

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Christopher Wright
Jason House wrote: void iterateOverArray(T)(T[] arr){ foreach (i; 0..arr.length) yield(arr[i]); } Coroutines are the slowest option, but the easiest to write. It takes 32 instructions or so to switch to or from a coroutine on x86. I'm not sure how that translates in terms of memory usag

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Sergey Gromov
Mon, 19 Jan 2009 06:15:06 -0800, Andrei Alexandrescu wrote: > Michel Fortin wrote: >> Other possible things involves a rudimentary profiler (checking for the >> elapsed time at each loop iteration), or a progress monitoring template >> (notifying another thread of the progress of a particular ta

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Rainer Deyke
aarti_pl wrote: > first - last > advance - retreat My preference: head - rhead next - rnext (or advance - radvance) The purpose of "retreat" and "toe" is to allow reverse iteration. "retreat" in not the opposite of "advance"/"next", it's the same operation applied to the other end of the rang

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread aarti_pl
Andrei Alexandrescu pisze: John Reimer wrote: Hello Christopher, Walter Bright wrote: Yigal Chripun wrote: Walter Bright wrote: Lars Ivar Igesund wrote: toe() ?! tail() good, rear() not so good, toe() sucks. tail() is no good because it has a well-established meaning in programming o

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread aarti_pl
Andrei Alexandrescu pisze: Steven Schveighoffer wrote: "Andrei Alexandrescu" wrote Steven Schveighoffer wrote: While we're on the subject of ditching, can we get rid of foreach_reverse? How hard is it for a range to just have a reverse property: foreach(element; myrange.reverse) Which simp

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread dsimcha
== Quote from Jason House (jason.james.ho...@gmail.com)'s article > Andrei Alexandrescu wrote: > > Jason House wrote: > >> Andrei Alexandrescu wrote: > >> > >>> Speed is a small part of the equation, in fact a perk only. Ranges > >>> are composable; you can combine them to e.g. do parallel iteratio

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Jason House
Andrei Alexandrescu wrote: > Jason House wrote: >> Andrei Alexandrescu wrote: >> >>> Speed is a small part of the equation, in fact a perk only. Ranges >>> are composable; you can combine them to e.g. do parallel iteration >>> over two ranges. Ranges really open std.algorithm to all data >>> stru

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Sean Kelly
== Quote from Michel Fortin (michel.for...@michelf.com)'s article > On 2009-01-18 10:21:55 -0500, Andrei Alexandrescu > said: > > It's been there for a while now (since 25 Nov 2008). > > > > http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement > .next move the left edge of the

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Steven Schveighoffer
"Jason House" wrote > Walter Bright wrote: > >> Druntime is there, and it's up to the Tango team now. > > As I understand it, the biggest fear of the Tango team is to make an > official D2 version and then have to chase after a moving standard. If an > official port of Tango 0.99.7 was ported to

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Jason House wrote: Andrei Alexandrescu wrote: Speed is a small part of the equation, in fact a perk only. Ranges are composable; you can combine them to e.g. do parallel iteration over two ranges. Ranges really open std.algorithm to all data structures. I find opApply incredibly obtuse and fost

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Jason House
Andrei Alexandrescu wrote: > Speed is a small part of the equation, in fact a perk only. Ranges are > composable; you can combine them to e.g. do parallel iteration over two > ranges. Ranges really open std.algorithm to all data structures. I find > opApply incredibly obtuse and fostering bad desi

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Jason House
Walter Bright wrote: > Druntime is there, and it's up to the Tango team now. As I understand it, the biggest fear of the Tango team is to make an official D2 version and then have to chase after a moving standard. If an official port of Tango 0.99.7 was ported to work with dmd v2.023 how willi

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: "Andrei Alexandrescu" wrote Steven Schveighoffer wrote: While we're on the subject of ditching, can we get rid of foreach_reverse? How hard is it for a range to just have a reverse property: foreach(element; myrange.reverse) Which simply reverses the order of tra

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Steven Schveighoffer
"Andrei Alexandrescu" wrote > Steven Schveighoffer wrote: >> While we're on the subject of ditching, can we get rid of >> foreach_reverse? How hard is it for a range to just have a reverse >> property: >> >> foreach(element; myrange.reverse) >> >> Which simply reverses the order of traversal? Th

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: "Piotrek" wrote Hello! It's just an idea. After reading about issues on disallowing DWT to stay in standardization area (Anomaly on Wiki4D GuiLibraries page) some question appeared in my mind. For propaganda sake isn't it better to not make such a big division bet

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: "Andrei Alexandrescu" wrote Bill Baxter wrote: On Mon, Jan 19, 2009 at 9:16 AM, Andrei Alexandrescu wrote: Unless it's a class you mean? Yah, ranges are meant to have value semantics. If you have a class container exposing ranges, define the range separately fro

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Steven Schveighoffer
"Piotrek" wrote > Hello! > > It's just an idea. After reading about issues on disallowing DWT to stay > in standardization area (Anomaly on Wiki4D GuiLibraries page) some > question appeared in my mind. For propaganda sake isn't it better to not > make such a big division between phobos and tang

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article Depends on how you define "fancy". If "fancy" includes "composable", opApply isn't that. Andrei Can you give an example of composable ranges, because I'm not sure exactly what you mean or how it works.

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Daniel Keep wrote: Don wrote: [snip] And in fact, a Tango2 floor plan would be a good idea, too. For example, now that D2 supports foreach ranges, Tango containers will almost certainly want to support them. For reference, from tango.util.collection.model.Iterator: public interface Iterator

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: "Andrei Alexandrescu" wrote It's been there for a while now (since 25 Nov 2008). http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement Strange that I never noticed that. I remember when 2.022 came out, I did not see it there, but I guess I could have o

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Steven Schveighoffer
"Andrei Alexandrescu" wrote > Bill Baxter wrote: >> On Mon, Jan 19, 2009 at 9:16 AM, Andrei Alexandrescu >> wrote: >> Unless it's a class you mean? >>> Yah, ranges are meant to have value semantics. If you have a class >>> container >>> exposing ranges, define the range separately from the c

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article > Depends on how you define "fancy". If "fancy" includes "composable", > opApply isn't that. > Andrei Can you give an example of composable ranges, because I'm not sure exactly what you mean or how it works.

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Daniel Keep
Don wrote: > [snip] > > And in fact, a Tango2 floor plan would be a good idea, too. For example, > now that D2 supports foreach ranges, Tango containers will almost > certainly want to support them. For reference, from tango.util.collection.model.Iterator: public interface Iterator(V) {

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Steven Schveighoffer
"Andrei Alexandrescu" wrote > It's been there for a while now (since 25 Nov 2008). > > http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement Strange that I never noticed that. I remember when 2.022 came out, I did not see it there, but I guess I could have overlooked it. It definitel

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Steven Schveighoffer
"Jason House" wrote > Andrei Alexandrescu wrote: > >> I'd be curious to find out more about a runtime queryable struct >> interface. How would it work? What idioms would it enable? > > I don't know what Lars is thinking of, but I think of struct interfaces as > a non-polymorphic / compile-time in

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
John Reimer wrote: Hello Christopher, Walter Bright wrote: Yigal Chripun wrote: Walter Bright wrote: Lars Ivar Igesund wrote: toe() ?! tail() good, rear() not so good, toe() sucks. tail() is no good because it has a well-established meaning in programming of being everything but the f

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Don
John Reimer wrote: Hello Don, dsimcha wrote: == Quote from Don (nos...@nospam.com)'s article I completely disagree. I think the two libraries is a disaster. I can see that so many people have been exposed to a lifetime of propaganda that "competition is a good thing", but it's just propaga

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread John Reimer
Hello Christopher, Walter Bright wrote: Yigal Chripun wrote: Walter Bright wrote: Lars Ivar Igesund wrote: toe() ?! tail() good, rear() not so good, toe() sucks. tail() is no good because it has a well-established meaning in programming of being everything but the first element of a li

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread John Reimer
Hello Don, dsimcha wrote: == Quote from Don (nos...@nospam.com)'s article I completely disagree. I think the two libraries is a disaster. I can see that so many people have been exposed to a lifetime of propaganda that "competition is a good thing", but it's just propaganda. Competition ine

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Andrei Alexandrescu
Michel Fortin wrote: On 2009-01-18 22:00:17 -0500, Andrei Alexandrescu said: dsimcha wrote: == Quote from Walter Bright (newshou...@digitalmars.com)'s article dsimcha wrote: One point of clarification: opApply isn't going to be deprecated anytime soon, is it? It seems like ranges still h

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Sergey Gromov
Mon, 19 Jan 2009 09:47:14 +0900, Bill Baxter wrote: > On Mon, Jan 19, 2009 at 9:16 AM, Andrei Alexandrescu > wrote: > >>> Unless it's a class you mean? >> >> Yah, ranges are meant to have value semantics. If you have a class container >> exposing ranges, define the range separately from the cont

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Michel Fortin
On 2009-01-18 22:00:17 -0500, Andrei Alexandrescu said: dsimcha wrote: == Quote from Walter Bright (newshou...@digitalmars.com)'s article dsimcha wrote: One point of clarification: opApply isn't going to be deprecated anytime soon, is it? It seems like ranges still have a bunch of rough e

Re: Any chance to call Tango as Extended Standard Library

2009-01-19 Thread Don
dsimcha wrote: == Quote from Don (nos...@nospam.com)'s article I completely disagree. I think the two libraries is a disaster. I can see that so many people have been exposed to a lifetime of propaganda that "competition is a good thing", but it's just propaganda. Competition inevitably means

Re: Any chance to call Tango as Extended Standard Library

2009-01-18 Thread Alexander Pánek
Alexander Pánek wrote: Stewart Gordon wrote: Alexander Pánek wrote: Stewart Gordon wrote: D already has ONE standard library. It's called Phobos. *yawn* Don’t you get tired of this? I do get tired of the misunderstanding of what Tango is that seems to have arisen from the misterminolo

Re: Any chance to call Tango as Extended Standard Library

2009-01-18 Thread Alexander Pánek
Stewart Gordon wrote: Alexander Pánek wrote: Stewart Gordon wrote: D already has ONE standard library. It's called Phobos. *yawn* Don’t you get tired of this? I do get tired of the misunderstanding of what Tango is that seems to have arisen from the misterminology. It didn’t arise fr

  1   2   >