473,769 Members | 2,063 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 7318
Ben Bacarisse <be********@bsb .me.ukwrote:
This is the elephant in the room as far as C is concerned. Because
there is no agreed way to program a flexible array, a list or a map,
everyone writes their own, or uses a published one that is
incompatible with all the other published ones out there. It is often
a lot of work just to coax two libraries to work together.
It's an elephant, all right: it's strong, it's intelligent, and if you
want to handle it professionally you'd better know what you're doing.
But if you want to go into the jungle, there's nothing better, not even
a military-designed vehicle.

Richard
Sep 5 '08 #101
"Bartc" <bc@freeuk.comw rote:
"James Kuyper" <ja*********@ve rizon.netwrote in message
Can you see the difference between my re-write and what he actually said?
Do you understand that your statements apply only to my rewrite, and not
to the original? I only changed a few words, but the result is that it
converts a legitimate point of view (which I don't fully share) into a
statement that could only be made by an idiot.

It's not too hard to read between the lines of the original. Clearly he has
the skills to put across what he thinks without making any hard and fast
commitments.
It's also not hard to read between the lines of those clamouring for
wholesale changes to the Standard, and seeing there that they're
compensating for their small reproductive members and the lack of love
they got from their mothers. But that would be equally unwarranted as
your jumping to conclusions about Doug Gwyn.
Tact and diplomacy I think it's called.
No, it's called post-modernism. It works in literary criticism, but not
in computer science, where we're supposed to get things done instead of
just stating our opinions again and again.

Richard
Sep 5 '08 #102
jacob navia <ja***@nospam.c omwrote:
la************@ siemens.com wrote:
jacob navia <ja***@nospam.c omwrote:
I need 10 thousand euros (15 000 US$) to buy the AFNOR
(French ISO organization) to present my proposal after
I got sponsored by some company.
That's not necessary -- committee meetings are open to the public.

If the public can afford the trip, obviously.

I proposed that they set up a web site or similar place
where we could propose things (since they do not bother
to read comp.std.c as I heard in that group in the last
discussion)
Whereas I propose that, since you get money from your C implementation
(however much or little - it really does not matter, it's a point of
principle, not centimes), you stop freeloading already and shell out for
the tools of your trade. It's easy to demand of others that they do your
will, but if you want to prosper by those demands, that's no longer
called arrogance, it's called slave-driving, and it's as illegal in
France as anywhere else. _You_ want this, _you_ use it for monetary
gain, _you_ stump up the ante. Nobody else.
No answer.
I wait without bating my breath.

Richard
Sep 5 '08 #103
Richard Bos wrote:
It's also not hard to read between the lines of those clamouring for
wholesale changes to the Standard, and seeing there that they're
compensating for their small reproductive members and the lack of love
they got from their mothers.
That was funny bos. Just keep the good work.

:-)
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Sep 5 '08 #104
On Sep 4, 8:12*pm, Richard Heathfield <r...@see.sig.i nvalidwrote:

<snip>
... [C is] also a really-nice-to-have for reading technical docs, since
they are often illustrated with C fragments (cases in point:
Aho-Sethi-Ullman (the Dragon Book), Petzold (Programming Windows), Knuth
(TAOCP)).
TAOCP uses C?

<snip>

--
Nick Keighley
Sep 5 '08 #105
On Sep 4, 6:32*pm, Antoninus Twink <nos...@nospam. invalidwrote:
On *4 Sep 2008 at 17:14, jacob navia wrote:
Antoninus Twink wrote:
And before you know it, you've got a horrible mess...
If you do not know how to stop!

Sure... unfortunately the main historical example is Bjarne Stroustoup,
who definitely didn't know how to stop!
what about Alogol-68!
Personally I see nothing wrong with writing
C-with-the-odd-nice-C++-feature and compiling it with a C++ compiler.
definitly not Jacob's view

--
Nick Keighley

Sep 5 '08 #106
Nick Keighley said:
On Sep 4, 8:12 pm, Richard Heathfield <r...@see.sig.i nvalidwrote:

<snip>
>... [C is] also a really-nice-to-have for reading technical docs, since
they are often illustrated with C fragments (cases in point:
Aho-Sethi-Ullman (the Dragon Book), Petzold (Programming Windows), Knuth
(TAOCP)).

TAOCP uses C?
Yes, albeit rarely. (That's how I got my cheque - by spotting a bug in C
code.)

--
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 5 '08 #107
On Fri, 2008-09-05 at 05:25 -0700, Nick Keighley wrote:
On Sep 4, 8:12 pm, Richard Heathfield <r...@see.sig.i nvalidwrote:

<snip>
... [C is] also a really-nice-to-have for reading technical docs, since
they are often illustrated with C fragments (cases in point:
Aho-Sethi-Ullman (the Dragon Book), Petzold (Programming Windows), Knuth
(TAOCP)).

TAOCP uses C?

<snip>
I think he did once in the chapter introducing MIX, when explaining
why he chose to make up a language instead of using one. (IIRC, he
said something like "There's a good argument for using C, but..."
and proceeded to say something that sounded reasonable the last time
I read it.)

--
Andrew Poelstra <ap*******@wpso ftware.com>
To email me, change .net to .com in the above address.

Sep 5 '08 #108
On Sep 4, 8:47*pm, "Malcolm McLean" <regniz...@btin ternet.comwrote :
"Richard Heathfield" <r...@see.sig.i nvalidwrote in message news
Malcolm McLean said:
I trust you are now joining the campaign for 64 bit ints.
Why? They're legal already. In any case, one day they will be too small..

Think the campaign for real ale rather than the campaign to free the weed..

I don't think we will actually run out of integers with 64 bits. With 32
bits yes, you can't quite give one to everyone in the world. But 64 bits
aren't going to have that problem for a long time yet.
so why did IPv6 use 128 bits?

--
Nick Keighley
Sep 5 '08 #109
jacob navia <ja***@nospam.c omwrote:
Richard Bos wrote:
It's also not hard to read between the lines of those clamouring for
wholesale changes to the Standard, and seeing there that they're
compensating for their small reproductive members and the lack of love
they got from their mothers.

That was funny bos. Just keep the good work.
My name, unlike yours, is spelled with an initial capital. Please have
the decency.

Richard
Sep 5 '08 #110

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
5671
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
1670
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
3788
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
9579
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
9416
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
10199
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
10032
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...
0
9849
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...
1
7393
isladogs
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...
0
6661
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();...
0
5433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3948
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

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.