[boost] Re: Fix for some Interval library tests

2003-02-08 Thread Dave Gomboc
> > > I suggest adding another boost defect: BOOST_BROKEN_ADL (or similar) > > > > How about BOOST_LIBRARY_IMPL_VULNERABLE_TO_ADL? It's not that the > > compiler's ADL implementation is broken, it's that the library > > implementation isn't protected against ADL lookups where it needs > > to be. >

[boost] Re: A new boost::thread implementation?

2003-02-08 Thread Alexander Terekhov
David Abrahams wrote: [...] > Oh, I'm not up on the new interface. How are we going to create a > new thread? "KISS": new_thread factories. Please. regards, alexander. ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boos

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: > David Abrahams said: >> "William E. Kempf" <[EMAIL PROTECTED]> writes: >> >>> David Abrahams said: >> ...and if it can't be default-constructed? > > That's what boost::optional<> is for ;). Yeeeh. Once the async_call returns, y

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread William E. Kempf
David Abrahams said: > "Peter Dimov" <[EMAIL PROTECTED]> writes: >> The line in the middle won't work, actually, but that's another story. >> boost::thread() creates a "handle" to the current thread. ;-) Score >> another one for defining concepts before using them. > > Oh, I'm not up on the new in

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
"William E. Kempf" <[EMAIL PROTECTED]> writes: >>> except that the async_call doesn't need to know about Executors. >> >> ...and that you don't need a special syntax to get the result out that >> isn't compatible with functional programming. If you want to pass a >> function object off from the a

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: >>> except that the async_call doesn't need to know about Executors. >> >> ...and that you don't need a special syntax to get the result out that >> isn't compatible with functional programming. If you want to pass a >> function object off from the above,

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
Alexander Terekhov <[EMAIL PROTECTED]> writes: > But I >>still insist<< ( ;-) ) on a rather simple interface > for creating a thread object (that shall kinda-"encapsulate" > that "async_call"-thing "representing" the thread routine > with its optional parameter(s) and return value... and which

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread William E. Kempf
David Abrahams said: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > >> David Abrahams wrote: >>> "Peter Dimov" <[EMAIL PROTECTED]> writes: >>> With the above AsyncCall: async_call f( bind(g, 1, 2) ); // can offer syntactic sugar here thread t(f); // or thread(f); for extra cuten

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread William E. Kempf
David Abrahams said: > "William E. Kempf" <[EMAIL PROTECTED]> writes: > >> David Abrahams said: > ...and if it can't be default-constructed? That's what boost::optional<> is for ;). >>> >>> Yeeeh. Once the async_call returns, you have a value, and should be >>> able to count on it.

Re: [Spirit-general] Re: [boost] Re: spirit and compile speed

2003-02-08 Thread Juan Carlos Arevalo-Baeza
On Fri, 10 Jan 2003 11:22:23 +, Vincent Finn wrote: >>>I have added 2 parsers to my code base and the compile time (VC6) has >>>gone from 10 mins to 30mins :-( >>At the very least, yes, you can separate the parsers from the project. >>How about writing some wrappers that *hides* the grammars i

[boost] Re: A new boost::thread implementation?

2003-02-08 Thread Alexander Terekhov
< repost [with repaired link] > Peter Dimov wrote: [...] > > Another alternative might allow all of the following: > > > > async_call f(create_thread(), bind(g,1,2)); > > int r = f(); > > > > async_call f(thread_pool(), bind(g,1,2)); > > int r = f(); > > Using an undefined-yet Ex

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread Peter Dimov
David Abrahams wrote: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > >> Using an undefined-yet Executor concept for the first argument. This >> is not much different from >> >> async_call f( bind(g, 1, 2) ); >> // execute f using whatever Executor is appropriate >> int r = f.result(); >> >> except t

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> "Peter Dimov" <[EMAIL PROTECTED]> writes: >> >>> With the above AsyncCall: >>> >>> async_call f( bind(g, 1, 2) ); // can offer syntactic sugar here >>> thread t(f); // or thread(f); for extra cuteness >>> int r = f.result(); >>>

[boost] Re: integral_c on g++2.95.3

2003-02-08 Thread Gennaro Prota
On Sat, 8 Feb 2003 03:06:02 -0600, Aleksey Gurtovoy <[EMAIL PROTECTED]> wrote: >Gennaro Prota wrote: >> However, if we agree that when having autonomous next/prior we will >> only use them to access next/prior< .. >::type and that the user >> *must* specialize them for everything else > >Nope, we

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread Peter Dimov
David Abrahams wrote: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > >> With the above AsyncCall: >> >> async_call f( bind(g, 1, 2) ); // can offer syntactic sugar here >> thread t(f); // or thread(f); for extra cuteness >> int r = f.result(); >> >> The alternative seems to be >> >> async_call f( bi

Re: [boost] Fix for some Interval library tests

2003-02-08 Thread David Abrahams
Guillaume Melquiond <[EMAIL PROTECTED]> writes: > On Fri, 7 Feb 2003, Dave Gomboc wrote: > >> > I suggest adding another boost defect: BOOST_BROKEN_ADL (or similar) >> >> How about BOOST_LIBRARY_IMPL_VULNERABLE_TO_ADL? It's not that the >> compiler's ADL implementation is broken, it's that the li

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: > >> That's the general idea. Of course we can haggle over the syntactic >> details, but the main question is whether you can get a return value >> from invoking a thread function or whether you have to declare some >> "global" sta

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread Peter Dimov
David Abrahams wrote: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > >> David Abrahams wrote: >> >> [...] >> >>> Well, I don't really feel like arguing about this much longer. >> >> I'd love to contribute to this discussion but there's no firm ground >> to stand on. What _are_ the concepts being

Re: [boost] Re: binding

2003-02-08 Thread Peter Dimov
Amélie et François Dumont wrote: > Just a little remark about the code that has nothing to do with the > bug that has been elucidated by Graig Henderson. When Greg Dehaas > wrote: [...] >> fncSelection = boost::bind(GenAlg::RouletteWheel> unsigned long>,_1); > > It seems to me that it would have be

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: > > [...] > >> Well, I don't really feel like arguing about this much longer. > > I'd love to contribute to this discussion but there's no firm ground to > stand on. What _are_ the concepts being discussed? I think I see > > AsyncCa

Re: [boost] Re: A new boost::thread implementation?

2003-02-08 Thread Peter Dimov
David Abrahams wrote: [...] > Well, I don't really feel like arguing about this much longer. I'd love to contribute to this discussion but there's no firm ground to stand on. What _are_ the concepts being discussed? I think I see AsyncCall AsyncCall(function f); void operator()(); // eff

Re: [boost] is_class

2003-02-08 Thread John Maddock
Thank. I must have a blind spot for the "is_scalar" line as I missed it several times, thus I wasn't able to understand how pointers got rejected from is_class (and I kept looking for is_pointer, etc. but it was implicit). Sorry for the noise. One reason for my blind spot may be that I used to thin

Re: [boost] [ublas] Weakness in large sparse matrices

2003-02-08 Thread Joerg Walter
Hi Johan, you wrote: [snip] > Let's look at just assembly for now. We start by creating an 1e5 x 1e5 > sparse matrix. We then successively insert 1e5 elements in the diagonal. > What happens is that the insertion speed is linear for the first ~5 > elements, and then grinds to a halt. The in

Re: [boost] Fix for some Interval library tests

2003-02-08 Thread Guillaume Melquiond
On Fri, 7 Feb 2003, Dave Gomboc wrote: > > I suggest adding another boost defect: BOOST_BROKEN_ADL (or similar) > > How about BOOST_LIBRARY_IMPL_VULNERABLE_TO_ADL? It's not that the > compiler's ADL implementation is broken, it's that the library > implementation isn't protected against ADL looku

RE: [boost] Re: integral_c on g++2.95.3

2003-02-08 Thread Aleksey Gurtovoy
Gennaro Prota wrote: > On Thu, 6 Feb 2003 06:05:23 -0600, Aleksey Gurtovoy > <[EMAIL PROTECTED]> wrote: > > It has 'next'/'prior' members because it's the easiest/most > > efficient way to implement 'next/prior< integral_c >::type' > > functionality on compilers that don't support partial template