473,778 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UNIX, C, Perl

Given that UNIX, including networking, is almost entirely coded in C,
how come so many things are almost impossible in ordinary C? Examples:
Network and internet access, access to UNIX interprocess controls and
communication, locale determination, EBCDIC/ASCII discrimination, etc.

Almost all of these are easy in Perl. Why isn't there a mechanism like
perl modules to allow easy extentions for facilities like these? Isn't
anyone working on this problem? or is it all being left for proprietary
systems?
Sep 2 '08
223 7359
Ian Collins <ia******@hotma il.comwrites:
Richard Heathfield wrote:
>Ian Collins said:

<snip>
>>C has lost the
mindshare in hosted applications programming and there's little point in
trying to win it back.

Am I the only one who isn't particularly bothered about this? Let people
write applications in whatever language /they/ want, as long as they leave
me to write them in whatever language /I/ want. I choose C (often - not
always). If they want to use C# or F# or Eb or D minor, that's up to them
- who cares?
No me. I just use the most appropriate tool for the job.
The difference being that Heathfield often uses C when it might not be
the most appropriate tool for the job.

One must always think of maintainability and the workforce required to
perform that maintenance. The likes of RH will not always be in ones
employ.
Sep 6 '08 #121
Willem <wi****@stack.n lwrites:
jacob navia wrote:
) Richard Heathfield wrote:
)
) [snip]
)
) I asked you a question Heathfield, a question that you conveniently
) snipped away.
)
) I repeat it:
) How would *you* solve the above problem?

You're begging the question.
Richard never claimed (in this thread at least) that your
solution was bad in any way.

And here's the question *you* never answered.
The question that *is* relevant:

Why do you argue about changing C *here*, in this newsgroup ?

Because its called comp.lang.c and experienced "standard" C programmers
with an opinion reside here? Simple really. I am astonished you could
not draw that conclusion yourself.
Sep 6 '08 #122
ja*********@ver izon.net writes:
jacob navia wrote:
>Willem wrote:
...
Why do you argue about changing C *here*, in this newsgroup ?

Because this group discusses the C language obviously.

I presented my ideas to the comp.std.c group, many times.

I discuss them there too.

While such a suggestion is on-topic in that group, it is still not the
right place to make your proposal. Only a small number of committee
members participate in that group. If you really want anything to
change, you have to present your proposal to the committee, or at
least convince one of the committee members that your ideas have
sufficient merit to for that committee member to present them for you.
The committee members ore the ONLY ones who can actually make it
happen - nothing you say to anyone else will have much effect.
All may be true. But to discuss it here is easily the best thing to do
since real programmers can dissect ideas "in the real world".

Sep 6 '08 #123
In article <g9**********@r egistered.motza rella.org>,
Richard <rg****@gmail.c omwrote in response to some chump:
....
>Why do you argue about changing C *here*, in this newsgroup ?


Because its called comp.lang.c and experienced "standard" C programmers
with an opinion reside here? Simple really. I am astonished you could
not draw that conclusion yourself.
It really is amazing. The problem is that this newsgroup is totally,
100%, hung-up on the idea of what C "is". As has been pointed out many
times, it is a dogmatic position not found in any other subspecies of
the computing profession. It is, of course, much more at home in a
religious context.

I know of no other comp.* newsgroup where this sort of obsession (*) exists.

(*) Obsession with things as they are and absolute paranoia about
discussing how things might be (i.e., what they could evolve into).

Sep 6 '08 #124
Richard wrote:
Willem <wi****@stack.n lwrites:
....
And here's the question *you* never answered.
The question that *is* relevant:

Why do you argue about changing C *here*, in this newsgroup ?


Because its called comp.lang.c and experienced "standard" C programmers
with an opinion reside here? Simple really. I am astonished you could
not draw that conclusion yourself.
If his arguments were intended to promote a discussion in which he
would hear differing opinions about his proposed changes to the
standard and take them into consideration when putting together his
presentation for the committee, that would make a certain amount of
sense. But we're talking about jacob navia; he's apparently incapable
of tolerating (or even reading clearly and correctly) opinions that
differ from his own. He also seems, based upon the examples we've
seen, to be incapable of putting together a proposal that's
sufficiently complete and detailed to be taken seriously by the
committee; and unwilling to take the steps needed to actually place
his proposal before them.

In any event, the original question was posed by Richard Heathfield:
... I'm just curious as to why you propose it here, since nobody here has any authority to change the language
definition (except Larry, perhaps, since he's actually a voting member of the ISO C Committee). It seems
rather pointless.
In reference to jacob's comment:
That is why I have been insisting that we adopt the operator overloading feature that would allow using the '['
and ']' notation for general containers.
The point of the matter is, "insisting" on it here won't do any good.
"insisting" on it in a discussion with committee members actually has
a chance of success, however slim that chance might be. The chances
would be better if he'd replace the word "insist" with something like
"suggest", which more accurately reflects his position in the scheme
of things. No one (except possibly the ISO secretariat) has the
authority to "insist" that the committee do anything other than what
the committee itself thinks is the best thing for it to do.

Sep 6 '08 #125
Richard wrote:
ja*********@ver izon.net writes:
jacob navia wrote:
Willem wrote:
...
Why do you argue about changing C *here*, in this newsgroup ?


Because this group discusses the C language obviously.

I presented my ideas to the comp.std.c group, many times.

I discuss them there too.
While such a suggestion is on-topic in that group, it is still not the
right place to make your proposal. Only a small number of committee
members participate in that group. If you really want anything to
change, you have to present your proposal to the committee, or at
least convince one of the committee members that your ideas have
sufficient merit to for that committee member to present them for you.
The committee members ore the ONLY ones who can actually make it
happen - nothing you say to anyone else will have much effect.

All may be true. But to discuss it here is easily the best thing to do
since real programmers can dissect ideas "in the real world".
But he doesn't want his ideas dissected - the only thing he's open to
is unthinking uncritical acceptance of the "fact" that his ideas are
both sufficiently good that they should be approved without
modification, and sufficiently important that they should be approved
immediately. Present him with any disagreement, no matter how trivial,
and all you'll receive in response is a stream of vituperation.

Granted, he won't get uncritical acceptance from the Committee,
either. However, at least from the committee he has some vanishingly
small chance of getting his ideas approved; something that this
newsgroup has no authority to do (and neither does comp.std.c).
Sep 6 '08 #126
ja*********@ver izon.net writes:
Richard wrote:
>ja*********@ver izon.net writes:
jacob navia wrote:
Willem wrote:
...
Why do you argue about changing C *here*, in this newsgroup ?
Because this group discusses the C language obviously.

I presented my ideas to the comp.std.c group, many times.

I discuss them there too.

While such a suggestion is on-topic in that group, it is still not the
right place to make your proposal. Only a small number of committee
members participate in that group. If you really want anything to
change, you have to present your proposal to the committee, or at
least convince one of the committee members that your ideas have
sufficient merit to for that committee member to present them for you.
The committee members ore the ONLY ones who can actually make it
happen - nothing you say to anyone else will have much effect.

All may be true. But to discuss it here is easily the best thing to do
since real programmers can dissect ideas "in the real world".

But he doesn't want his ideas dissected - the only thing he's open to
is unthinking uncritical acceptance of the "fact" that his ideas are
both sufficiently good that they should be approved without
modification, and sufficiently important that they should be approved
immediately. Present him with any disagreement, no matter how trivial,
and all you'll receive in response is a stream of vituperation.

Total and utter nonsense.

He rises to Heathfield's arrogant posturing now and again but more often
than not Jacob is willing to discuss.
Sep 6 '08 #127
Richard<rg****@ gmail.comwrites :
ja*********@ver izon.net writes:
>Richard wrote:
>>ja*********@ver izon.net writes:
<snip>
>While such a suggestion is on-topic in that group, it is still not the
right place to make your proposal.
<snip>
>>All may be true. But to discuss it here is easily the best thing to do
since real programmers can dissect ideas "in the real world".

But he doesn't want his ideas dissected - the only thing he's open to
is unthinking uncritical acceptance of the "fact" that his ideas are
both sufficiently good that they should be approved without
modification , and sufficiently important that they should be approved
immediately. Present him with any disagreement, no matter how trivial,
and all you'll receive in response is a stream of vituperation.

Total and utter nonsense.

He rises to Heathfield's arrogant posturing now and again but more often
than not Jacob is willing to discuss.
Odd, then, that your contribution to this mature debate was:

| I would sooner boil my nuts in a vat of sun flower oil than agree
| that operator overloading in C is a good idea.

to which Jacob simply suggested supplying an alternative oil. Why did
you not think Jacob would be receptive to a more technical critique at
the time?

--
Ben.
Sep 6 '08 #128
Ben Bacarisse <be********@bsb .me.ukwrites:
Richard<rg****@ gmail.comwrites :
>ja*********@ver izon.net writes:
>>Richard wrote:
ja*********@ver izon.net writes:
<snip>
>>While such a suggestion is on-topic in that group, it is still not the
right place to make your proposal.
<snip>
>>>All may be true. But to discuss it here is easily the best thing to do
since real programmers can dissect ideas "in the real world".

But he doesn't want his ideas dissected - the only thing he's open to
is unthinking uncritical acceptance of the "fact" that his ideas are
both sufficiently good that they should be approved without
modificatio n, and sufficiently important that they should be approved
immediately . Present him with any disagreement, no matter how trivial,
and all you'll receive in response is a stream of vituperation.

Total and utter nonsense.

He rises to Heathfield's arrogant posturing now and again but more often
than not Jacob is willing to discuss.

Odd, then, that your contribution to this mature debate was:

| I would sooner boil my nuts in a vat of sun flower oil than agree
| that operator overloading in C is a good idea.

to which Jacob simply suggested supplying an alternative oil. Why did
you not think Jacob would be receptive to a more technical critique at
the time?
Its called a joke. We had discussed it before and I explained my
"practical" objections to operator overloading in any language. i
realise I am in a minority. I remember when I thought they were
"kewl". Then I had to maintain and extend poorly written code which
absolutely thrashed the use of them. It was horrific.
--
Sep 6 '08 #129
Ben Bacarisse said:

<snip>
Why did
you not think Jacob would be receptive to a more technical critique at
the time?
What makes you think Richard Riley is capable of a more technical critique?
From what I can recall of those articles of his that I read before
plonking him, he rarely posted anything even remotely to do with C, and on
the few occasions when he did he was typically wrong. He sticks to
bitching because bitching is all he knows how to do, and (unless he has
improved remarkably in recent times) he doesn't do that terribly well
either, poor chap. Perhaps we should organise a whip-round or something.

No, if you want a critique of operator overloading in C, you'll have to
look elsewhere. And unfortunately there's no point looking in my direction
for such a critique, because I kind of like the idea!

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 6 '08 #130

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

Similar topics

3
6557
by: dpackwood | last post by:
Hello, I have two different scripts that do pretty much the same thing. The main perl script is on Windows. It runs and in the middle of it, it then calls out another perl script that then should run on a Unix box I have. Both scripts run ok, except for the part when Windows try's to call out the Unix script. I have it set up where the Unix is mapped through a drive letter and can drop stuff into the Unix box. It is going through another...
2
5672
by: Mohsin | last post by:
Hi all, I have a perl program which makes a user exit to the O/S (unix, solaris) to issue a O/S command. I know that the shell it invokes is NOT a korn shell, because I captured the shell info into a file with a 'ps' command. My question is "How to explicitly specify a Korn shell to be used by perl?" Eg of my perl code: ## Begin code snippet..
0
6448
by: Danny Jensen | last post by:
I need to test if certain processes on a unix box were running. I wanted to use whatsup gold to do the testing. First I needed to go to the whatsup configure>monitors & services menu to add this tcp/ip port 1555 service with the folowing lines: Send=psef /dj/myco/rf.monitor\r\n Expect=~1 the psef above is a command that the unix server executes. The unix box communicates back a 1 if the test is successful and a 0 if it is
1
17721
by: Al Belden | last post by:
Hi all, I've been working on a problem that I thought might be of interest: I'm trying to replace some korn shell scripts that search source code files with perl scripts to gain certain features such as: More powerful regular expressions available in perl Ability to print out lines before and after matches (gnu grep supports this but is not availble on our Digital Unix and AIX platforms) Make searches case insensitive by default (yes, I...
6
1671
by: asimorio | last post by:
Hi folks, Recently, I am investigatin a memory leak issue. I have written a simple C++ program and a Perl script to test on UNIX environment machine. I do a for loop to new up 20 char of size 32768 bytes, then delete them. Please see below: //// part of the code start //// for (i=0; i<20; i++) { ptrA = new (std::nothrow) char;
2
4275
by: perlnewbie | last post by:
Hi everyone I am new to perl and I am writing a perl script to invoke a set of commands on UNIX clearcase vob however I am having trouble after setting the view and mounting the vob I want to change the directory into the vob and then using Cwd or pwd to confirm I am in the vob to continue the CC functions. Sample code in perl : $Result = system 'cleartool setview admin_view'; $Result = system ('cleartool mount /vobs/test');
4
3790
by: jane007 | last post by:
Hello everybody: I am having a problem. On Unix platform, there is a script that need user to input data from console, then when I call Unix perl script from Windows, these is an issue occurs, when I input data and enter "enter" so fast, the Windows console is freezed, I don't know why, does anybody know?Thank you very much. My code like follows:
4
4274
by: mdshafi01 | last post by:
Hi , I am trying to send mail from unix perl. I am using following code to send mail. It is not triggering mail and also it is not giving any error. please tell me any special settings are required or this program should be executed from special user with higher permission or something. please tell me.
1
3983
by: dxz | last post by:
I have a perl script to run on both UNIX and Windows. How should I write the Shabang line: On UNIX, it is #!/usr/bin/perl On Windows, it is #!C:\perl\bin\perl.exe Which one should I use? Should I combine them? If yes, how?
0
9629
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10296
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
10127
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
10068
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
9923
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
5370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5497
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4031
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
3
2863
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.