473,804 Members | 3,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

After read a whole OS written by C, someone asks `What is the advantage of C'

After read a whole OS written by C (e.g. UNIX 6th Edition written by),
at the end (yes, at the last line of the text of the last chapter),
someone (sure, it's John Lions) asks `What is the advantage of C' (is
it your question also).

lovecreatesbeau ty

Jul 13 '06 #1
22 1435
"lovecreatesbea uty" <lo************ ***@gmail.comwr ites:
After read a whole OS written by C (e.g. UNIX 6th Edition written by),
at the end (yes, at the last line of the text of the last chapter),
someone (sure, it's John Lions) asks `What is the advantage of C' (is
it your question also).
Could you rephrase this question, in English this time?
--
Peter Seebach on C99:
"[F]or the most part, features were added, not removed. This sounds
great until you try to carry a full-sized printout of the standard
around for a day."
Jul 13 '06 #2

Ben Pfaff wrote:
"lovecreatesbea uty" <lo************ ***@gmail.comwr ites:
After read a whole OS written by C (e.g. UNIX 6th Edition written by),
at the end (yes, at the last line of the text of the last chapter),
someone (sure, it's John Lions) asks `What is the advantage of C' (is
it your question also).

Could you rephrase this question, in English this time?
I'll assume he's repeating the question from the text, "What is the
advantage of C" I have to ask compared to what?

I mean C lets you do manual computations easily. But so does any other
language. So without a context listing possible "advantages " is a bit
hard.

Tom

Jul 13 '06 #3
Tom St Denis wrote:
Ben Pfaff wrote:
>"lovecreatesbe auty" <lo************ ***@gmail.comwr ites:
>>After read a whole OS written by C (e.g. UNIX 6th Edition written
by), at the end (yes, at the last line of the text of the last
chapter), someone (sure, it's John Lions) asks `What is the
advantage of C' (is it your question also).

Could you rephrase this question, in English this time?

I'll assume he's repeating the question from the text, "What is the
advantage of C" I have to ask compared to what?

I mean C lets you do manual computations easily. But so does any
other language. So without a context listing possible "advantages "
is a bit hard.
I *think* he means the very last bit in 'Suggested Exercises':

6.2 "Discuss the merits of the "C" as a systems programming language. What
features are missing? or superflous?"
--
==============
Not a pedant
==============
Jul 13 '06 #4

Tom St Denis wrote:
I mean C lets you do manual computations easily. But so does any other
language. So without a context listing possible "advantages " is a bit
hard.
Do you have the book handy? Even John did not mention the contrary
language(s).

lovecreatesbeau ty

Jul 13 '06 #5

lovecreatesbeau ty wrote:
Tom St Denis wrote:
I mean C lets you do manual computations easily. But so does any other
language. So without a context listing possible "advantages " is a bit
hard.

Do you have the book handy? Even John did not mention the contrary
language(s).
No I don't. And I suspect many others don't either.

Why don't you provide more context for the question so we can all
participate.

Tom

Jul 13 '06 #6
pemo wrote:
I *think* he means the very last bit in 'Suggested Exercises':

6.2 "Discuss the merits of the "C" as a systems programming language. What
features are missing? or superflous?"
A "with" expression like found in Turbo Pascal would seriously rock.

e.g.

struct mystruct {
int this;
char that;
void *otherthing;
};

// ... code
struct mystruct *p;

with (*p) {
this = 3;
that = 4;
otherthing = "hello world";
}

That'd rock. Specially when dealing with nested structures e.g.

p[4]->this.item[3].value = 3

with (p[4]->this.item) {
value = 3;
key = "hello";
// blah
}

Now granted you can sorta emulate this with a macro, e.g.

#define SETALL2(p, k, v, k2, v2) \
do { \
(p) . k = v; \
(p) . k2 = v2; \
} while (0);

but that's less cool.

Tom

Jul 13 '06 #7
"lovecreatesbea uty" <lo************ ***@gmail.comwr ites:
Tom St Denis wrote:
>I mean C lets you do manual computations easily. But so does any other
language. So without a context listing possible "advantages " is a bit
hard.

Do you have the book handy? Even John did not mention the contrary
language(s).
There are hundreds, probably thousands, of other programming
languages. C has advantages with respect to each of them, and
disadvantages with respect to most of them.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 13 '06 #8

"Tom St Denis" <to********@gma il.comha scritto nel messaggio
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
pemo wrote:
I *think* he means the very last bit in 'Suggested Exercises':

6.2 "Discuss the merits of the "C" as a systems programming language.
What
features are missing? or superflous?"

A "with" expression like found in Turbo Pascal would seriously rock.

e.g.

struct mystruct {
int this;
char that;
void *otherthing;
};

// ... code
struct mystruct *p;

with (*p) {
this = 3;
that = 4;
otherthing = "hello world";
}

That'd rock. Specially when dealing with nested structures e.g.

p[4]->this.item[3].value = 3

with (p[4]->this.item) {
value = 3;
key = "hello";
// blah
}

Now granted you can sorta emulate this with a macro, e.g.

#define SETALL2(p, k, v, k2, v2) \
do { \
(p) . k = v; \
(p) . k2 = v2; \
} while (0);
I prefer

#define NEW_SETALL2(p, k, v, k2, v2) \
do { \
(p) . k = (v); \
(p) . k2 = (v2); \
} while (0)

without ';' and with parentheses around 'v' and 'v2'.

In this case you can use the macro as a function call

NEW_SETALL2(p,k ,v,k2,v2);

Giorgio Silvestri

Jul 13 '06 #9

Keith Thompson wrote:
"lovecreatesbea uty" <lo************ ***@gmail.comwr ites:
Tom St Denis wrote:
I mean C lets you do manual computations easily. But so does any other
language. So without a context listing possible "advantages " is a bit
hard.
Do you have the book handy? Even John did not mention the contrary
language(s).

There are hundreds, probably thousands, of other programming
languages. C has advantages with respect to each of them, and
disadvantages with respect to most of them.
It means nothing, it's too abstract. Could you go to some specific
facts? Thanks for concern.

lovecreatesbeau ty

Jul 13 '06 #10

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

Similar topics

10
1908
by: fabio de francesco | last post by:
Hi what do you think of the following? Why are we permitted to do that? And why the C++ Library doesn't stop someone willing to perfom that assignement (*a = 20)? #include <iostream> using std::cout;
4
2427
by: Stephen Poley | last post by:
I have a pair of tables (Applicaties en Releases) in a 1-to-N relation. I created and tested a report based on Applicaties. I then added a subreport based on Releases using the wizard. This displays the correct data. BUT: before it displays, it asks me to enter a parameter value for "Applicaties". It makes no apparent use of any value entered. I have seen similar messages before, requesting a field value to be entered - caused by...
55
3571
by: AnandaSim | last post by:
I just had a google through this NG but have not seen mention of Erik Rucker's blog entry and the new Jet: http://blogs.msdn.com/access/archive/2005/10/05/477549.aspx mentioned by Mike Gunderloy http://www.larkware.com/dg4/TheDailyGrind726.html Aside from the Sharepoint feature extension, amazing news.
11
26907
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as follows: private void SubmitButton_Click (object sender, System.EventArgs e) { // Set up the response to write the print file to the client Response.Clear (); Response.AppendHeader ("Content-Disposition", "filename=WebPrint.prn");
59
5031
by: Alan Silver | last post by:
Hello, This is NOT a troll, it's a genuine question. Please read right through to see why. I have been using Vusual Basic and Classic ASP for some years, and have now started looking at ASP.NET. At first glance, it looks excellent, albeit nothing that couldn't have been done to Classic ASP. I have been through a few tutorials and was impressed with how quickly you can get database info onto a page.
23
2176
by: Dennis Sjogren | last post by:
Hi! I have this medium sized solution with a couple of projects and stuff. The generated application has an <appname>.exe.manifest file to enable XP themes. In the main window of the application I have several group boxes, and even some group boxes within other group boxes. FlatStyle=System on these group boxes has always worked just fine. Round corners on the borders and blue caption text (standard Luna/Silver theme).
24
2990
by: David Mathog | last post by:
On a Solaris 8 system if a user "joe" logs in, for instance via ssh, cuserid() returns "joe". That's the expected behavior and so far so good. However if that user then does: % su - sally cuserid will still return "joe". However "sally" uses "tcsh" where whoami shows "sally". If the user running as "sally" creates a file the ownership is for "sally". "ps -ef" also shows the user shell running as "sally". While "sally"
13
2871
by: lithoman | last post by:
I'm stumped here. I run the procedure Batch_Select against the database with @ID=18 and I get the expected data. When it loads into a SqlDataReader, it gets messed up somehow. Initially, after the reader.Read(), it has a row with 13 data columns, but they're all empty. So, my GetInt() function throws an error. When it jumps to the catch(), reader's columns then show the proper data. What gives? I have reader._data (which is the ID...
10
8162
by: Hendri Adriaens | last post by:
Hi, I'm trying to automate the creation of an excel file via COM. I copied my code below. I read many articles about how to release the COM objects that I create. The code below runs just fine and excel is closed. But there are some commented lines: //xlSeries.XValues = xlWs.get_Range("B2", "B4"); // makes com objects, but which...
0
9579
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,...
0
10575
Oralloy
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...
0
10330
jinu1996
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...
1
10319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10076
tracyyun
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...
0
6851
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();...
1
4297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3816
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.