Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > C++ Archeology: Limits of OO paradigm

Reply
Thread Tools

C++ Archeology: Limits of OO paradigm

 
 
Grizlyk
Guest
Posts: n/a
 
      02-25-2008
Krice wrote:

> Be a man!


- hey, girl, can i ask ...
- i am not a girl!
- oh no, what is the reason to take pride?

And i am just about the beer and girls (or boys, probably, according to
sexual orientation). There are even no place where one can discuss C++
-related question, and it is distressing.

Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new


--
Message posted using http://www.talkaboutprogramming.com/...comp.lang.c++/
More information at http://www.talkaboutprogramming.com/faq.html

 
Reply With Quote
 
 
 
 
Krice
Guest
Posts: n/a
 
      02-25-2008
On 25 helmi, 13:38, "Grizlyk" <grizl...@yandex.ru> wrote:
> There are even no place where one can discuss C++
> -related question


You are such a drama queen.
 
Reply With Quote
 
 
 
 
Pavel Lepin
Guest
Posts: n/a
 
      02-25-2008

Grizlyk <> wrote in
< outprogramming.com>:
> Krice wrote:
>> Be a man!

>
> - hey, girl, can i ask ...
> - i am not a girl!
> - oh no, what is the reason to take pride?


You know, idioms and cultural references do not survive
direct translation all that well. And your English is
nowhere nearly good enough for literary translations.

Which means that your insistence on trying to use
Russian-specific rhetoric devices you've grown accustomed
to, in context of a very different language, and one you're
not particularly proficient with, renders your rants even
more incomprehensible than they could've been otherwise.

If you do want to be able to reach others I would strongly
advise sticking to the basics of English until you start
feeling more comfortable with it and get up to speed on
applicable phraseology. Meanwhile your attempts at irony
produce the impression of you being a couple of bricks
short of a full load instead.

--
When all you have is a transformation engine, everything
looks like a tree.
 
Reply With Quote
 
Puppet_Sock
Guest
Posts: n/a
 
      02-25-2008
On Feb 22, 4:03*pm, James Kanze <james.ka...@gmail.com> wrote:
> On Feb 22, 7:51 pm, Puppet_Sock <puppet_s...@hotmail.com> wrote:

[snip]
> > For example, if you really love
> > garbage collection you can implement it.

>
> You don't have to. *It's available as an option. *I use it
> systematically in all new applications.


Um... It's not standard is it? (He asked with some
trepidation, not having the standard at hand.)
That is, this is a compiler option with some
particular vendor, right?
Socks
 
Reply With Quote
 
Martin York
Guest
Posts: n/a
 
      02-25-2008

[snip]
> > > For example, if you really love
> > > garbage collection you can implement it.

>
> > You don't have to. It's available as an option. I use it
> > systematically in all new applications.

>
> Um... It's not standard is it? (He asked with some
> trepidation, not having the standard at hand.)
> That is, this is a compiler option with some
> particular vendor, right?
> Socks


<quote>
From: ISO C++0x: Complete Public Review Draft In October 2007?
Garbage collection [N2129] http://www.open-std.org/jtc1/sc22/wg...2006/n2129.pdf

A C++0x compiler must provide garbage collection, which the programmer
can use on request; "don't GC this region of code" is still the
default. This "opt-in" model leaves existing programs' semantics
unchanged, while providing real GC support for programs that want it.
It is also intended to enable garbage collection for objects allocated
and manipulated by most legacy libraries, which both makes it much
easier to convert existing code to a garbage-collected environment and
helps "repair" legacy code with deficient memory management. Of
course, any C++98/03/0x compiler is already free to garbage-collect
the whole C++ heap, and a number of current implementations do that;
but they aren't required to do so, and this change would require GC to
be available in a way that programmers can use and rely on. This work
has been primarily driven by Hans Boehm and Mike Spertus. You can find
a detailed paper here: N2128 (http://www.open-std.org/jtc1/sc22/wg21/
docs/papers/2006/n2128.pdf)
</quote>

Seems like it will be part of the next standard.

 
Reply With Quote
 
peter koch
Guest
Posts: n/a
 
      02-25-2008
On 25 Feb., 20:43, Puppet_Sock <puppet_s...@hotmail.com> wrote:
> On Feb 22, 4:03*pm, James Kanze <james.ka...@gmail.com> wrote:
>
> > On Feb 22, 7:51 pm, Puppet_Sock <puppet_s...@hotmail.com> wrote:

> [snip]
> > > For example, if you really love
> > > garbage collection you can implement it.

>
> > You don't have to. *It's available as an option. *I use it
> > systematically in all new applications.

>
> Um... It's not standard is it? (He asked with some
> trepidation, not having the standard at hand.)
> That is, this is a compiler option with some
> particular vendor, right?
> Socks


No, its not a compiler option but an add-on library. Should work on
many of the popular compilers out there e.g. MSVC, g++ and similar.
Look for Boehm garbage collector if you cant fin it otherwise.

/Peter
 
Reply With Quote
 
James Kanze
Guest
Posts: n/a
 
      02-26-2008
On Feb 25, 8:43 pm, Puppet_Sock <puppet_s...@hotmail.com> wrote:
> On Feb 22, 4:03 pm, James Kanze <james.ka...@gmail.com> wrote:


> > On Feb 22, 7:51 pm, Puppet_Sock <puppet_s...@hotmail.com> wrote:

> [snip]
> > > For example, if you really love
> > > garbage collection you can implement it.


> > You don't have to. It's available as an option. I use it
> > systematically in all new applications.


> Um... It's not standard is it? (He asked with some
> trepidation, not having the standard at hand.) That is, this
> is a compiler option with some particular vendor, right?


If it's an option, it's not standard, no. At least not ISO
standard. But it's readily available, and works with all of the
compilers I regularly use, on the systems I regularly work on.
(Note that installing it requires a fair bit of understanding,
as as options go, it has a lot of options itself. But I think
that there are also commercial implementations which might be
easier to install.)

--
James Kanze (GABI Software) email:
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
 
Reply With Quote
 
Grizlyk
Guest
Posts: n/a
 
      02-27-2008
Pavel Lepin wrote:

> And your English is nowhere nearly good
> enough for literary translations.


It is a kind of tragedy - my poor english. One can be sure, I have taken
the fact into account. I also agree, my literary translation is ugly by
form, but quite right by semantics. I am sure, any reader can guess what
have i said about sense of the advices about beer and girls (boys) here
and said about "reason to take pride". There is nothing "cultural" here.

Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new

--
Message posted using http://www.talkaboutprogramming.com/...comp.lang.c++/
More information at http://www.talkaboutprogramming.com/faq.html

 
Reply With Quote
 
Grizlyk
Guest
Posts: n/a
 
      02-27-2008
Thomas J. Gritzan wrote:

> In the 'r-value reference' proposal,
> a moveable variable is an object that
> can be _moved from_ and not _moved to_.
>
> I don't know why he wants to introduce
> such a moveable datatype thing, since
> it would be a nightmare to use variables
> that can only be used ....


All answers for questions like these one can find in my page
http://grizlyk1.narod.ru/cpp_new , articles:
#11 - #14 (including appendixes).

In addition to my page info, i can say, that i see now, that the terms and
conditions, that are used by current C++ development process, can not
produce any excepting "r-value references". The "r-value references" was a
next drop for my patience.

The idea came up to my mind, that there are three types of operations:

- copy |
- move | both classical semantics

- forward | C++ (auto memory type) specific

Forward (forwarding) is a way to pass _value_(not reference) over static
scope boundaries, can not represent move semantic, can have valueable
overhead in comparison with parameter passed by reference (or via
pointer). Forwarding is a kind of refinment of copy semantics and
_absolutely_ unrelated to "reference" semantics (and "reference" word).

By the way, r-value is a thing, that by definition of "r-value" has no
reference.

>> moveable type foo(const moveable type&);
>> type& boo(const type&);
>> moveable type& voo(const moveable type);
>>
>> The construction is clear, useful,
>> orthogonal with ordinary declarations
>> and upgradeable in future.

>
> Without explanation I would not understand ...


You, probably, represent another sort of users, who can not understand
goals and differences of declared constructions like this:

spec_type foo(const spec_type&);
spec_type foo(const spec_type);

and you should use complete description on my page befor.

Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new


--
Message posted using http://www.talkaboutprogramming.com/...comp.lang.c++/
More information at http://www.talkaboutprogramming.com/faq.html

 
Reply With Quote
 
Grizlyk
Guest
Posts: n/a
 
      02-27-2008
Martin York wrote:

> A C++0x compiler must provide garbage
> collection, which the programmer can
> use on request


The garbage collection could be, as option.

Some time ago i have beleived, that garbage collection is only way to
support OO paradigm - dynamically created objects.

Fortunatelly, exploring moveable semantics, i have realized, that the same
(support of ownership) can be done with auto memory, at compile time,
without any overhead (in comparison with garbage collection).

With moveable, any dynamically created objects will have in fact the same
performance and reliability, as ordinary statically created in auto memory
objects.

The only differences between "garbage collection" and "auto owners with
moveable semantics", that:
- with moveable, user must exlicitly declare scope, in with his object
will be alive, in other words, user must explicitly tell to compiler: does
he want to destroy the object just now or does not;
- with garbage collection user just drops object in hope, that compiler
will delete it somehow.

The "dropping" leads to valueable overhead, especially in the places,
where auto owners with moveable semantics can be successfully used.

Moveable semantics requires compile time support (a trivial kind of
metaprogramming), that temporary can be done for C++ with the help of
"compile time attributes". The better way can be "protocols (states)" -
meta properties of classes. The "protocols" requires too many changes to
C++ .

Maksim A. Polyanin
http://grizlyk1.narod.ru/cpp_new


--
Message posted using http://www.talkaboutprogramming.com/...comp.lang.c++/
More information at http://www.talkaboutprogramming.com/faq.html

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interested parties wanted for building paradigm shifting app Kallen Java 0 02-21-2006 05:49 AM
Enter to Win a Paradigm Seismic 10 Sub Diane Sherwin DVD Video 0 10-16-2004 12:40 AM
Question about ASP.NET Application Dev, a good development paradigm Rod ASP .Net 1 05-12-2004 05:09 PM
CTRL+ALT+PARADIGM SHIFT Roly Perera Java 0 04-22-2004 05:25 PM
Multi-paradigm design with C++ Florian Weimer C++ 3 11-23-2003 05:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57