[31095] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 2340 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Apr 15 14:09:45 2009

Date: Wed, 15 Apr 2009 11:09:11 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 15 Apr 2009     Volume: 11 Number: 2340

Today's topics:
        out of memory <hirenshah.05@gmail.com>
    Re: out of memory <jurgenex@hotmail.com>
    Re: out of memory <hirenshah.05@gmail.com>
    Re: Pipe Between Programs <edgrsprj@ix.netcom.com>
    Re: Pipe Between Programs <edgrsprj@ix.netcom.com>
    Re: Pipe Between Programs <ben@morrow.me.uk>
    Re: Pipe Between Programs <edgrsprj@ix.netcom.com>
    Re: Pipe Between Programs <edgrsprj@ix.netcom.com>
    Re: Pipe Between Programs <edgrsprj@ix.netcom.com>
    Re: Pipe Between Programs <kkeller-usenet@wombat.san-francisco.ca.us>
    Re: Pipe Between Programs <edgrsprj@ix.netcom.com>
    Re: Pipe Between Programs <tadmc@seesig.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 15 Apr 2009 08:10:34 -0700 (PDT)
From: "friend.05@gmail.com" <hirenshah.05@gmail.com>
Subject: out of memory
Message-Id: <f6651f3b-5e2c-4195-ad57-85a3cd7d1644@u8g2000yqn.googlegroups.com>

I am dealing with large data.

I am creating one hash table for my data.

But when I try to access the value in hash table it is giving me out
of memory.

can anyone suggest what can be problem and how can I slove it.


------------------------------

Date: Wed, 15 Apr 2009 08:46:50 -0700
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: out of memory
Message-Id: <g50cu4lje9cvess0ap1mblkd944li17upl@4ax.com>

"friend.05@gmail.com" <hirenshah.05@gmail.com> wrote:
>I am dealing with large data.
>
>I am creating one hash table for my data.
>
>But when I try to access the value in hash table it is giving me out
>of memory.
>
>can anyone suggest what can be problem and how can I slove it.

Problem: Your program is using more memory than ulimit allows. 
Solution: either reduce the memory footprint of your program or increase
your ulimit.

There is also the off-chance that you found a bug in Perl, but you will
need very strong evidence to support that theory.

jue


------------------------------

Date: Wed, 15 Apr 2009 11:00:49 -0700 (PDT)
From: "friend.05@gmail.com" <hirenshah.05@gmail.com>
Subject: Re: out of memory
Message-Id: <cbdfe198-4251-4bf3-9612-1a0532c361ce@e21g2000yqb.googlegroups.com>

On Apr 15, 11:46=A0am, J=FCrgen Exner <jurge...@hotmail.com> wrote:
> "friend...@gmail.com" <hirenshah...@gmail.com> wrote:
> >I am dealing with large data.
>
> >I am creating one hash table for my data.
>
> >But when I try to access the value in hash table it is giving me out
> >of memory.
>
> >can anyone suggest what can be problem and how can I slove it.
>
> Problem: Your program is using more memory than ulimit allows.
> Solution: either reduce the memory footprint of your program or increase
> your ulimit.
>
> There is also the off-chance that you found a bug in Perl, but you will
> need very strong evidence to support that theory.
>
> jue

but when I am creating tht hash table there is no error.

it gives error when I try to access tht hash array.



------------------------------

Date: Wed, 15 Apr 2009 07:57:37 -0500
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Pipe Between Programs
Message-Id: <jtadnSNHcasgRHjUnZ2dnUVZ_r2dnZ2d@earthlink.com>

"Ben Morrow" <ben@morrow.me.uk> wrote in message 
news:tlmcb6-9dr2.ln1@osiris.mauzo.dyndns.org...

You are correct about the '|pgnuplot.exe' statement.  I decided to remove 
the full physical address for that program when reporting that code and 
somehow also erased the | as well.

The extent of my formal programming training involves opening and closing 
files for read, write, and append, using readline and IsKeyPressed type 
statements, and using the clipboard.  The rest involves standard commands 
for processing data, creating arrays etc.

Information regarding Filehandles, Sockets, and three argument opens etc. is 
beyond my programming skill level.  And the people that I am working with 
know even less than I do.

What is needed here is just some simple code that can be inserted into 
already running programs to improve their performance.

---  Open a pipe from program A to program B while both are running.

---  In program A, send information to program B.

---  In program B, receive information from program A and let program A know 
when B is ready to receive more information.

It is my intention to improve my knowledge of programming so that the other 
concepts are understandable.  But the computer programming is just one part 
of a larger disaster mitigation effort.  And it has to wait in a priority 
line.  The main program involved with this effort is already fully 
operational and downloadable.  So these improvements are largely to get 
things to work better.

As I said elsewhere, one of the high priority goals of these efforts is to 
get governments and other major groups to take over the programming efforts. 
But it is first necessary to provide them with demo programs that show what 
the programs they will actually eventually be using are supposed to do.



------------------------------

Date: Wed, 15 Apr 2009 08:14:56 -0500
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Pipe Between Programs
Message-Id: <DKmdnWnlesFWQHjUnZ2dnUVZ_ridnZ2d@earthlink.com>

"Charlton Wilbur" <cwilbur@chromatico.net> wrote in message 
news:86myanm0wy.fsf@mithril.chromatico.net...

> The value of the newsgroup is directly proportional to the participation
> of experts.  If you let non-experts discuss whatever they like with
> non-experts, you will get the blind leading the blind, in a great
> assortment of anti-help.

What you are saying sounds reasonable.  However, one of the main reasons to 
have an another Perl Newsgroup would actually be to get away from the 
"experts."

With many Newsgroups and in particular this one, people can be strongly 
criticized for submitting "dumb" questions that waste the time of the 
experts.  With another Newsgroup people could post dumb questions without 
having someone tell them to stop.  If they were given inaccurate information 
for their program questions then their programs would simply not work.  The 
theory that this would somehow destroy the Perl language is I believe 
unfounded.  It might eventually work even better because more people around 
the world would be willing to use it.  At the moment many people probably 
choose other languages in part because they are afraid to post "dumb" 
questions to this Newsgroup.

Is Perl intended only for the use of experts?  I thought that one of the 
original goals was to create a highly versatile and powerful language that 
anyone could use.



------------------------------

Date: Wed, 15 Apr 2009 14:17:41 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Pipe Between Programs
Message-Id: <lc3hb6-5r21.ln1@osiris.mauzo.dyndns.org>


Quoth "E.D.G." <edgrsprj@ix.netcom.com>:
> "Ben Morrow" <ben@morrow.me.uk> wrote in message 
> news:tlmcb6-9dr2.ln1@osiris.mauzo.dyndns.org...

Please learn to quote properly.

> You are correct about the '|pgnuplot.exe' statement.  I decided to remove 
> the full physical address for that program when reporting that code and 
> somehow also erased the | as well.

Please only post code you have *actually* *run*.

> The extent of my formal programming training involves opening and closing 
> files for read, write, and append, using readline and IsKeyPressed type 
> statements, and using the clipboard.  The rest involves standard commands 
> for processing data, creating arrays etc.
> 
> Information regarding Filehandles, Sockets, and three argument opens etc. is 
> beyond my programming skill level.  And the people that I am working with 
> know even less than I do.
> 
> What is needed here is just some simple code that can be inserted into 
> already running programs to improve their performance.

Then you need to hire a programmer. As a general rule, people here are
interested in helping others to learn. We are not interested in
providing code snippets for free.

> It is my intention to improve my knowledge of programming so that the other 
> concepts are understandable.  But the computer programming is just one part 
> of a larger disaster mitigation effort.  And it has to wait in a priority 
> line.

This is your problem, not ours. The fact you keep mentioning it is not
likely to make anyone more sympathetic.

Ben



------------------------------

Date: Wed, 15 Apr 2009 08:24:53 -0500
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Pipe Between Programs
Message-Id: <ZNmdnQtrYMC8fXjUnZ2dnUVZ_qqdnZ2d@earthlink.com>

"Nick Wedd" <nick@maproom.co.uk> wrote in message 
news:B8I$CV3m4O5JFAFk@maproom.demon.co.uk...

> If this group could be abandoned to those experts, and a new one set up 
> where people could get helpful answers, it wouldn't really help. The 
> experts would soon realise that there was a new supply of victims for them 
> to torment.

If the charter for the Newsgroup specifically stated that it is acceptable 
for people to ask any type of Perl programming related question they wished 
without first reading the FAQ files etc. or using any special posting format 
then I believe that the "experts" would probably leave them alone.  What 
could they do?  They couldn't complain to the poster's Internet server. 
Numerous junk advertisements etc. would probably get posted to that 
Newsgroup.  But I think that it would still be worth the effort.

As I asked in one of my other posts, "Is Perl intended only for Perl 
programming experts?  Or is it also intended for the general public, people 
such as myself?"



------------------------------

Date: Wed, 15 Apr 2009 08:32:51 -0500
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Pipe Between Programs
Message-Id: <U5idnaFlSoNjfHjUnZ2dnUVZ_gednZ2d@earthlink.com>

"Charlton Wilbur" <cwilbur@chromatico.net> wrote in message 
news:86myanm0wy.fsf@mithril.chromatico.net...

> learn and understand, or you can hire a programmer.  Having code written
> for you for free is simply not an option.

All of this work is actually presently being done by volunteers.  And that 
will have to continue to be the case for at least the near future.  I myself 
am a volunteer who is writing code.  And I created a rather extraordinary 
Perl language program that contains more than 5000 lines of code.  Part of 
it was formally copyrighted years ago.

One of the people who is developing the code is a retired professional 
computer programmer who is doing all of the work for free and who has been 
extremely helpful.  But he refuses to learn Perl.  And so it is necessary to 
develop data sharing routines so that his programs can communicate with the 
ones I myself write.



------------------------------

Date: Wed, 15 Apr 2009 08:51:16 -0500
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Pipe Between Programs
Message-Id: <XvednbCC6JTSe3jUnZ2dnUVZ_oydnZ2d@earthlink.com>

"Ben Morrow" <ben@morrow.me.uk> wrote in message 
news:lc3hb6-5r21.ln1@osiris.mauzo.dyndns.org...

Your comments are not being disputed.  Regarding asking people for code, the 
only way to determine if they are willing to supply it is to ask.  That does 
not appear to be the case.  So then, that is the answer to the question to a 
certain extent for this Newsgroup.

I don't object to that myself if that is what people want to do.  But as I 
have been proposing, it might be productive to create another Perl Newsgroup 
that would allow a wider range of programming questions.  Several years ago 
I myself decided to go with Perl for a programming language for a variety of 
reasons.  One of the most important ones was that it looked like it was a 
language intended for the general public.  If there is some other language 
that is actively supported and that contains most of the important features 
of Perl then I would be happy to advise the people that I am working with to 
start using that one.

That subject was recently explored in a Fortran Newsgroup.  My main 
programming colleague did not like any of the available freeware versions of 
Fortran that he tested.  And we are now evaluating freeware Basic programs.



------------------------------

Date: Wed, 15 Apr 2009 07:22:04 -0700
From: Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us>
Subject: Re: Pipe Between Programs
Message-Id: <d57hb6xh2t.ln2@goaway.wombat.san-francisco.ca.us>

On 2009-04-15, E.D.G. <edgrsprj@ix.netcom.com> wrote:
>
> If the charter for the Newsgroup specifically stated that it is acceptable 
> for people to ask any type of Perl programming related question they wished 
> without first reading the FAQ files etc. or using any special posting format 
> then I believe that the "experts" would probably leave them alone.

The Posting Guidelines refer people to the FAQ and docs for very good
reasons: the "experts" would probably leave the newsgroup, leaving it to
devolve into the blind-leading-the-blind scenario another poster
described.

> As I asked in one of my other posts, "Is Perl intended only for Perl 
> programming experts?  Or is it also intended for the general public, people 
> such as myself?"

Perl is intended for people who are willing and able to put in the
effort to learn Perl.  Part of this effort involves reading
documentation.  (So I suppose I'd have to answer "no" to your last
part of your question.)

--keith

-- 
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information



------------------------------

Date: Wed, 15 Apr 2009 10:51:48 -0500
From: "E.D.G." <edgrsprj@ix.netcom.com>
Subject: Re: Pipe Between Programs
Message-Id: <fY2dnYq8oOATn3vUnZ2dnUVZ_umdnZ2d@earthlink.com>

"Keith Keller" <kkeller-usenet@wombat.san-francisco.ca.us> wrote in message 
news:d57hb6xh2t.ln2@goaway.wombat.san-francisco.ca.us...

> Perl is intended for people who are willing and able to put in the
> effort to learn Perl.  Part of this effort involves reading
> documentation.  (So I suppose I'd have to answer "no" to your last
> part of your question.)

I don't have any personal objection to that.  There are other languages that 
are probably more for the general public.  And several of us are searching 
for one right now.  FreeBasic is presently being evaluated.  However, 
several years ago it was quite important that I find a versatile and 
powerful free download language for a specific application.  And although 
the programming effort was neither easy nor fast, Perl did get the job done.



------------------------------

Date: Wed, 15 Apr 2009 11:00:37 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Pipe Between Programs
Message-Id: <slrnguc155.f8a.tadmc@tadmc30.sbcglobal.net>

E.D.G. <edgrsprj@ix.netcom.com> wrote:

> If the charter for the Newsgroup specifically stated that it is acceptable 
> for people to ask any type of Perl programming related question they wished 
> without first reading the FAQ files etc. or using any special posting format 
> then I believe that the "experts" would probably leave them alone.


Because no experts would be reading that newsgroup.

In fact, no one with measurable competence would be reading that newsgroup.

Are you familiar with the concept of signal vs. noise?

What you describe would have such a low S/N ratio that folks
with the ability to answer questions would not participate.

A group full of questions with no answers will not help anyone.


> As I asked in one of my other posts, "Is Perl intended only for Perl 
> programming experts?  


Perl is intended only for Perl programmers.

Fortran is intended only for Fortran programmers.

Spanish is intended only for Spanish speakers.

This concept seems self-evident to most folks...


> Or is it also intended for the general public, people 
> such as myself?"

If you want to write Perl programs, it is a necessary condition
that you become a Perl programmer.

If you want someone else to write your Perl programs for you,
it will be a very hard sell...


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 2340
***************************************


home help back first fref pref prev next nref lref last post