473,854 Members | 1,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Boost process and C


Is there any group in the manner of the C++ Boost group that works on
the evolution of the C language? Or is there any group that performs an
equivalent function?


Apr 29 '06
335 11964
Robert Latest wrote:
On 2006-04-29, jacob navia <ja***@jacob.re mcomp.fr> wrote:

Operator overloading is a well known technique, no need to swallow
all C++ to get it. Thank you

What's so great about operator overloading?

Nothing that justifies adding it to C.

Ian Collins.
May 2 '06 #171
we******@gmail. com wrote:
Ian Collins wrote:
Where would you draw the line on topicality?

My interpretation is

Off topic:

Platform specific issues.
Product specific issues.

On topic:

The current language and its use.

This contradicts both of the two Off topic categories that you cite.

How and where?

Ian Collins.
May 2 '06 #172
On Mon, 01 May 2006 23:40:44 +0200, in comp.lang.c , jacob navia
<ja***@jacob.re mcomp.fr> wrote:
Keith Thompson a écrit :
comp.lang.c++ in effect tried a similar experiment some years ago. It
barely survived. As it drowned in a flood of discussions of
system-specific C++ programming, the regulars who wanted to talk about
the language itself drifted away.

But that's the point Keith.

The point is that you want the regulars to drift away? Stop taking
acid please.
Not just the narrow definition of "The language as it was in 1989" or
"The language as specified in the C standard",
but that *is* the language.
but including discussions
like this discussion, that is the first in many years that touches
topics that go beyond
your idea is like creating a group specially to discuss the French
language, but insisting to also discuss Franglais, patois, lingala,
and all the other derivants of French.
Everything is frozen here, like in a museum.

You're quite wrong, but then I don't expect you to see this, since you
have a twisted and bizarre view of CLC. Please go away and play
somewhere else.
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
May 2 '06 #173
On Tue, 02 May 2006 14:06:50 +0200, in comp.lang.c , jacob navia
<ja***@jacob.re mcomp.fr> wrote:
Yes, because in this polemic situation it is difficult to discuss
It is only polemic because you make inflammatory statements like this:
Everything is frozen here, like in a museum.
Neither you nor anyone else has any authority to tell me what I should do or not do.
And make false statements such as
Substantive discussions about software constructions, pro/cons of
specific ways of writing in C, or discussions about the language itself
and its direction, new proposals etc, are
"beyond the scope of this group".

The first three of these are entirely topical here and are frequently
discussed. The last is indeed offtopic, since its the subject of

I really do find it hard to see why you can't understand this. Perhaps
you ought to stop being so "gallic" and feeling insulted about it, and
try to listen to the advice you receive instead. Is it /really/ so
difficult to restrict your posts to topical material, and avoid
wandering off into discussions about how lcc's extensions work, or dos
assembly language or whatever?
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
May 2 '06 #174
On Tue, 02 May 2006 15:36:16 +0200, in comp.lang.c , jacob navia
<ja***@jacob.re mcomp.fr> wrote:
C should be kept as dead as
Yup, its dead. You can move on now, nothing to see.Usenet is there to allow people interchange ideas, proposals, ways of
working, etc

indeed. So why don't you interchange some, instead of trying to force
everyone to agree with you? :-)

Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
May 2 '06 #175
On Tue, 02 May 2006 15:27:59 +0200, in comp.lang.c , jacob navia
<ja***@jacob.re mcomp.fr> wrote:
Robert Latest a écrit :

What's so great about operator overloading?
It is a technique for defining new numeric types and new kinds of
operations for numeric types.

And? Whats so great about that?
This is not possible in standard C.

Yes. And?

Whats your point? That other environments have features that are
useful? Great. In that case will you please add the sys$system
routines to lcc immediately, they were handy features too, like
whenever I need to rewind a DEC tape or dismount a cluster member in
my 8800s.
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
May 2 '06 #176
On Tue, 02 May 2006 15:53:55 +0200, in comp.lang.c , jacob navia
<ja***@jacob.re mcomp.fr> wrote:
Richard Heathfield a écrit :
jacob navia said:
It is a technique for defining new numeric types and new kinds of
operations for numeric types.

He didn't ask what it is. He asked what's so great about it.

Consider that the MMX instruction set is around 10 years old now,

Can you point out where in my 80386 and in my 68000 the MMX
instructions are to be found? Please don't claim that these chips are
no longer used. How about in the IA-64 core or in the chip driving my
(and probably your) router? Or in my palmtop PC or DVD recorder?
and that we have yet to see a mapping of those operations into C.

perhaps because not all the world's a pentium?
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
May 2 '06 #177
On 2 May 2006 06:37:47 -0700, in comp.lang.c , we******@gmail. com
Ben Pfaff wrote:
jacob navia <ja***@jacob.re mcomp.fr> writes:
> Ben Pfaff a icrit :
>> we******@gmail. com writes:
>>>You are saying you should throw out an entire language because you
>>>don't like the way it handles strings?
>> It depends on your priorities. I wouldn't want to rewrite a Perl
>> program that does complex string processing in C.
> You mean then in substance:
> "Since C strings are completely screwed up, do NOT try to change that,
> but learn Perl".

No. I mean that some string operations can be expressed shorter
and with more clarity in Perl than in C. No new string library will change

That's a pretty wishy washy premise on which to base an implied
disapproval of Bstrlib.

Ben did not say that, you made it up to provoke a reaction. Please
don't do that, it detracts from the quality of your arguments and
causes people to apply hostile filters.
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
May 2 '06 #178
Bill Pursell wrote:
Operator overloading is, IMHO, a really, really bad idea. I've only
been coding C for just under a year, and 11 months ago I was really
bent out of shape that I couldn't write:
struct foo A,B,C;
A = B + C;
but I'm really glad now that I can't, and I would hate to see operater
overloading be expanded in C. Operator overloading in C is the root
cause of a very large number of bugs already. How many bugs are a
result of "3+4" being different that "3.0 + 4.0"? Those bugs would
have been avoided had the programmer been required to type
"int_add(3, 4)" or "float_add(3,4) ". Now, I'm not arguing that the '+'
symbol be dropped for arithmetic on basic numeric types, but expanding
the language to allow '+' as an infix operator on user-defined structs
is just asking for trouble. The only gain is (arguably) cleaner code,
but quite frankly "A = foo_add(B,C)" is more informative than "A =
B+C" and less prone to error.

without operator overloading, how about just an infix notation
for 2-ary functions (with, e.g., functions evaluated left to right,
all with the same priority) ?

typedef struct Vect { double x, y; } Vect;

infix Vect Vect_Sub (Vect u, Vect v) {
return (Vect) { .x= u.x - v.x, .y= u.y - v.y };
infix Vect Vect_Scale (double lambda, Vect u) {
return (Vect) { .x= lambda*u.x, .y= lambda*u.y };
infix double Vect_Dot (Vect u, Vect v) {
return u.x * v.x + u.y * v.y;
int main (void) {
Vect u, v, w, p, q, r, s, t;
t= ((v Vect_Sub u) Vect_Dot (w Vect_Sub v))
Vect_Scale (p Vect_Sub q Vect_Sub r Vect_Sub s);
May 2 '06 #179
Ian Collins wrote:
Robert Latest wrote:
On 2006-04-30, jacob navia <ja***@jacob.re mcomp.fr> wrote:
.... snip ...

Until they have to port it to a new environment. Then they will
see how easy is to port the libc. Basically you do not port it.

And the STL is easier to port?

I think the point was you don't have to, because it is part of the
language, the compiler vendor does this.

And, if you write the library in truly portable C, without any
silly extensions and/or entanglements, you just compile the library
module. All the compiler vendor need to do is meet the
specifications of the C standard.

Simple, huh?

"If you want to post a followup via groups.google.c om, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell. org/google/>
Also see <http://www.safalra.com/special/googlegroupsrep ly/>
May 3 '06 #180

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++ language. A C++ interface installation IS ABOUT THE C++ LANGUAGE! The language does not possess the ability to handle even simple file directory manipulation. Those wise people that created it did not take care of it. So, BOOST is a portable...
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
by: Howard Gardner | last post by:
/* If I am using boost, then how should I write this program? As it sits, this program is using SFINAE to determine whether or not a type supports particular syntax. I suspect that there is functionality in boost to do this. I have found mpl::has_xxx, which I suspect of being part of the solution. I've also found type_traits::has_nothrow_constructor
by: smith4894 | last post by:
{ not sure you're aware of that but there are the newsgroups for all major operating systems. you might want to try asking in the forum 'comp.os.linux.development.apps', since memory-mapped files are not a language-supported structure, they are platform-specific. -mod } I'm trying to use boost serialization to serialize/deserialize data to and from a mmap'd file. I have my own ostream/istream classes that essentially read/write bytes...
by: linyanhung | last post by:
I used a boost multi thread in VS 2005 on a Duo Core PC, and made a two thread process. The code is something like this: #include <boost/thread/thread.hpp> void fun1() { //do something
by: Matt England | last post by:
My team currently using Boost Threads, but we are considering switching to ZThreads. (We seek cross-platform, C++ multithreading capabilities in an external library.) ZThread(s): http://zthread.sourceforge.net/ http://www.inf.uni-konstanz.de/dbis/members/vinnik/zsim/doc/ Can anyone share their ZThreads experience, either good, bad, or
by: ironpingwin | last post by:
Hi! I'd like to make few threads which will run in the same time in C++. I try to use boost library v 1.34.1 (it can't be newest, because I compile on remote machine, which is not administrated by me). In this version there isn't detach() function. How to run functions from two different class in the same time?
by: brad | last post by:
Still learning C++. I'm writing some regex using boost. It works great. Only thing is... this code seems slow to me compared to equivelent Perl and Python. I'm sure I'm doing something incorrect. Any tips? #include <boost/regex.hpp> #include <iostream> // g++ numbers.cpp -o numbers -I/usr/local/include/boost-1_35 /usr/local/lib/libboost_regex-gcc41-mt-s.a // g++ numbers.cpp -o numbers.exe
by: ameyav | last post by:
Hi All, I am converting some C code into C++ code. The objective is to improve throughput. I have some code written in C which serially parses through a list of files, opens each one of them, processes the data and closes the file. All the files are processed one by one. The obvious performance bottleneck that i could think of is the wasted cpu cycles for file i/o. *My solution* was to spawn multiple threads to do the file i/o. For...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.