[26644] in Perl-Users-Digest
Perl-Users Digest, Issue: 8751 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Dec 10 03:05:45 2005
Date: Sat, 10 Dec 2005 00:05:06 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 10 Dec 2005 Volume: 10 Number: 8751
Today's topics:
Can device drivers be written in Perl? robic0
Re: FAQ 2.11 Perl Books (Anno Siegel)
re: Having fun <Fred@fred.net>
How can I use Image::Magick moduel on Windows system ? <smilebang@dreamwiz.com.nospam>
Re: How can I use Image::Magick moduel on Windows syste robic0
Re: How can I use Image::Magick moduel on Windows syste <sisyphus1@nomail.afraid.org>
Re: How can I use Image::Magick moduel on Windows syste <smilebang@dreamwiz.com.nospam>
Re: How can I use Image::Magick moduel on Windows syste robic0
threads <ves@ves.net>
Re: threads robic0
Win32 thread vs fork <barryg@highstream.net>
Re: Win32 thread vs fork robic0
Re: Win32 thread vs fork robic0
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 09 Dec 2005 21:55:03 -0800
From: robic0
Subject: Can device drivers be written in Perl?
Message-Id: <p6rkp1l1638or5vjj0mpu75diipdj3oenm@4ax.com>
???????
------------------------------
Date: 10 Dec 2005 01:06:39 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: FAQ 2.11 Perl Books
Message-Id: <dnd9mv$o1i$1@mamenchi.zrz.TU-Berlin.DE>
Eric J. Roode <sdn.girths00869@zoemail.net> wrote in comp.lang.perl.misc:
> -----BEGIN xxx SIGNED MESSAGE-----
> Hash: SHA1
>
> anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) wrote in
> news:dnc2lj$o6$1@mamenchi.zrz.TU-Berlin.DE:
[...]
> > That would allow users to say, for instance
> >
> > my @NAMES;
> > use Readonly \ @names => qw( Ida Otto Erich);
> >
> > and have the assignment happen at compile time.
>
> That's... a really great idea. I had never thought of that.
> I will definitely implement that, or something very like that.
I'm glad you like it. Looking forward to the next version.
Anno
--
If you want to post a followup via groups.google.com, 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.
------------------------------
Date: Fri, 09 Dec 2005 20:04:23 -0600
From: "Fred@fred.net" <Fred@fred.net>
Subject: re: Having fun
Message-Id: <v9dkp1t8dnegq1brkk4r3ful3aoqp8d5gd@4ax.com>
print " ________ .
/\\ / \\ \\ \\ / \\
/ \\ / . \\ _____ \\ ____ \\ / .
\\
/ | \ \\ / / \___\\ / / | | \\ | / /
\___\\
| | \ | | | / / | | | | | |
| | \ | | | / /_____ | | | | | |
| |____| | | | / / | | | | | |
| ______ | | | /_____ / | | | | | |
| | | | | | / / | | | | | |
| | | | | | ___ / / | | / | | | ___
| | | | \\ \./ / / / | |__/ | \\ \./
/
/ \\ / \\ \\ / / / / / \\
/
\\./ \\./ \\./ / /________/
\\./";
It will run and render the ascii art. You might need to add a space
here and there, depending on your configuration.... I recommend
courier fonts for viewing. That renders best. Actually I am persuaded
most ascii art is rendered via the courier font... I'm sure there is a
good reason for it.
Fred
------------------------------
Date: Sat, 10 Dec 2005 15:38:43 +0900
From: "Lee, Bangrae" <smilebang@dreamwiz.com.nospam>
Subject: How can I use Image::Magick moduel on Windows system ?
Message-Id: <dndsv8$nb5$1@news2.kornet.net>
Dear Sir!
I'm a real beginner on Perl programming.
I use Active Perl(V.5.8.6) on Windows XP Home Edition.
And I want to use Image::Magick to create image.
On the dos prompt, I typed as follows
>ppm rep add threoryx http://theoryx5.uwinnipeg.ca/ppms/
>ppm install Image
Maybe no packages exist for Image::Magick
How can I use the module on Windows system?
------------------------------
Date: Fri, 09 Dec 2005 22:59:56 -0800
From: robic0
Subject: Re: How can I use Image::Magick moduel on Windows system ?
Message-Id: <usukp1d710jtnpa7gfv3sghg4pgbk8o0lv@4ax.com>
On Sat, 10 Dec 2005 15:38:43 +0900, "Lee, Bangrae"
<smilebang@dreamwiz.com.nospam> wrote:
>Dear Sir!
>
>I'm a real beginner on Perl programming.
>
>I use Active Perl(V.5.8.6) on Windows XP Home Edition.
>
>And I want to use Image::Magick to create image.
>
>On the dos prompt, I typed as follows
>
>>ppm rep add threoryx http://theoryx5.uwinnipeg.ca/ppms/
>
>>ppm install Image
>
>Maybe no packages exist for Image::Magick
>
>How can I use the module on Windows system?
>
>
>
I don't know, but I'm getting sick of the constant
"I'm so new" plead to get a question answered.
If your so new to Perl, shouldn't you start with
something simple like, what a variable is?
Maybe you should get the random phrase, Perl code
generator (check Cpan) and put in "Image::Magick"
seed, and test it. Works for some..
------------------------------
Date: Sat, 10 Dec 2005 18:29:14 +1100
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: How can I use Image::Magick moduel on Windows system ?
Message-Id: <439a8428$0$9291$afc38c87@news.optusnet.com.au>
"Lee, Bangrae" <smilebang@dreamwiz.com.nospam> wrote in message
news:dndsv8$nb5$1@news2.kornet.net...
> Dear Sir!
>
> I'm a real beginner on Perl programming.
>
> I use Active Perl(V.5.8.6) on Windows XP Home Edition.
>
> And I want to use Image::Magick to create image.
>
> On the dos prompt, I typed as follows
>
> >ppm rep add threoryx http://theoryx5.uwinnipeg.ca/ppms/
>
> >ppm install Image
>
> Maybe no packages exist for Image::Magick
>
Doesn't seem to be one at the uwinnipeg site, but this should work:
ppm install http://www.bribes.org/perl/ppm/Image-Magick.ppd
Visit http://www.bribes.org/perl/ppmdir.html for a full list of what's
available there.
Cheers,
Rob
------------------------------
Date: Sat, 10 Dec 2005 16:38:40 +0900
From: "Lee, Bangrae" <smilebang@dreamwiz.com.nospam>
Subject: Re: How can I use Image::Magick moduel on Windows system ?
Message-Id: <dne0fn$ohq$1@news2.kornet.net>
Thank you Sir!
"Sisyphus" <sisyphus1@nomail.afraid.org> wrote in message
news:439a8428$0$9291$afc38c87@news.optusnet.com.au...
>
> "Lee, Bangrae" <smilebang@dreamwiz.com.nospam> wrote in message
> news:dndsv8$nb5$1@news2.kornet.net...
>> Dear Sir!
>>
>> I'm a real beginner on Perl programming.
>>
>> I use Active Perl(V.5.8.6) on Windows XP Home Edition.
>>
>> And I want to use Image::Magick to create image.
>>
>> On the dos prompt, I typed as follows
>>
>> >ppm rep add threoryx http://theoryx5.uwinnipeg.ca/ppms/
>>
>> >ppm install Image
>>
>> Maybe no packages exist for Image::Magick
>>
>
> Doesn't seem to be one at the uwinnipeg site, but this should work:
>
> ppm install http://www.bribes.org/perl/ppm/Image-Magick.ppd
>
> Visit http://www.bribes.org/perl/ppmdir.html for a full list of what's
> available there.
>
> Cheers,
> Rob
>
>
------------------------------
Date: Fri, 09 Dec 2005 23:44:25 -0800
From: robic0
Subject: Re: How can I use Image::Magick moduel on Windows system ?
Message-Id: <bq1lp1don7v71t1emquhkr3isr2fkjg27i@4ax.com>
On Sat, 10 Dec 2005 16:38:40 +0900, "Lee, Bangrae"
<smilebang@dreamwiz.com.nospam> wrote:
Your welcome !!
>Thank you Sir!
>
>"Sisyphus" <sisyphus1@nomail.afraid.org> wrote in message
>news:439a8428$0$9291$afc38c87@news.optusnet.com.au...
>>
>> "Lee, Bangrae" <smilebang@dreamwiz.com.nospam> wrote in message
>> news:dndsv8$nb5$1@news2.kornet.net...
>>> Dear Sir!
>>>
>>> I'm a real beginner on Perl programming.
>>>
>>> I use Active Perl(V.5.8.6) on Windows XP Home Edition.
>>>
>>> And I want to use Image::Magick to create image.
>>>
>>> On the dos prompt, I typed as follows
>>>
>>> >ppm rep add threoryx http://theoryx5.uwinnipeg.ca/ppms/
>>>
>>> >ppm install Image
>>>
>>> Maybe no packages exist for Image::Magick
>>>
>>
>> Doesn't seem to be one at the uwinnipeg site, but this should work:
>>
>> ppm install http://www.bribes.org/perl/ppm/Image-Magick.ppd
>>
>> Visit http://www.bribes.org/perl/ppmdir.html for a full list of what's
>> available there.
>>
>> Cheers,
>> Rob
>>
>>
>
------------------------------
Date: Sat, 10 Dec 2005 06:56:57 GMT
From: Vespasian <ves@ves.net>
Subject: threads
Message-Id: <bvukp150aiaveuum4fu4gbdal303hp84br@4ax.com>
The CPAN documentation on perl threads state the overhead of creating
a thread is rather large. Anyone know why or could point me to a
website that explains the reason.
TIA,
ves
------------------------------
Date: Fri, 09 Dec 2005 23:12:24 -0800
From: robic0
Subject: Re: threads
Message-Id: <favkp11ouvdb4scb8rflgi4b7h58ij8pbm@4ax.com>
On Sat, 10 Dec 2005 06:56:57 GMT, Vespasian <ves@ves.net> wrote:
>The CPAN documentation on perl threads state the overhead of creating
>a thread is rather large. Anyone know why or could point me to a
>website that explains the reason.
>
>TIA,
>ves
Less than a process. I can only imagine the win32 api on that
platform. Its all about state and context, as the threads
switch, the manager has to save the execution state of the
leaving thread, then install the newly running thread state.
State is all the things you don't want to know about.
Low level stuff like the adresses of the currently running
and newly running code address (IP) and things like where
data is, like the Stack and also the registers. So, it basically
takes an image of the state of the cpu registers and all of the
segment pointers relating to code path and data, then reinstates
the new one. Back and forth it goes. On windows I think theres
64k threads that state can be saved for.
You should take a course on assembly to fully understand
machine mechanics. Others will bullshit this out forever
just wait and see....
------------------------------
Date: Sat, 10 Dec 2005 01:02:05 -0600
From: "Barry" <barryg@highstream.net>
Subject: Win32 thread vs fork
Message-Id: <11pkvvq9bi7hr53@corp.supernews.com>
Is it true the port of fork() is faked by using threads? If so why?
I haven't been able to find a good explanation.
------------------------------
Date: Fri, 09 Dec 2005 23:30:49 -0800
From: robic0
Subject: Re: Win32 thread vs fork
Message-Id: <6f0lp191a5olpuqfso63lpd6afqacujuce@4ax.com>
On Sat, 10 Dec 2005 01:02:05 -0600, "Barry" <barryg@highstream.net>
wrote:
>Is it true the port of fork() is faked by using threads? If so why?
>
>I haven't been able to find a good explanation.
>
Hahahaha, fork() is a Unix word and it looks like a Perl word.
In windwos, you CreateProcess(), wheather you pass on handles
to the child, or you wait for termination is arbitrary, ie:
sync/asynch, doing other things and waiting for an end
signal (your event queue is signaled) or just wait.
There is no other options. No matter what Perl says it truly
is that simple. Funny thing in windows, the only IO that happens
is CreateFile(), ReadFile(), WriteFile(). Thats the extent of
windows IO et all !!! There is no other io in windows,
file io, drivers, services, anything. No matter what hack
wrappers do for you (ie:Perl and others) it distills to this.
I used to write NT 3.50/1 device drivers. I wrote alot of em.
------------------------------
Date: Fri, 09 Dec 2005 23:42:52 -0800
From: robic0
Subject: Re: Win32 thread vs fork
Message-Id: <4c1lp159jkm4dciqdfgb1bhg20e9u8unbh@4ax.com>
On Fri, 09 Dec 2005 23:30:49 -0800, robic0 wrote:
>On Sat, 10 Dec 2005 01:02:05 -0600, "Barry" <barryg@highstream.net>
>wrote:
>
>>Is it true the port of fork() is faked by using threads? If so why?
>>
>>I haven't been able to find a good explanation.
>>
>Hahahaha, fork() is a Unix word and it looks like a Perl word.
>In windwos, you CreateProcess(), wheather you pass on handles
>to the child, or you wait for termination is arbitrary, ie:
>sync/asynch, doing other things and waiting for an end
>signal (your event queue is signaled) or just wait.
>There is no other options. No matter what Perl says it truly
>is that simple. Funny thing in windows, the only IO that happens
>is CreateFile(), ReadFile(), WriteFile(). Thats the extent of
>windows IO et all !!! There is no other io in windows,
>file io, drivers, services, anything. No matter what hack
>wrappers do for you (ie:Perl and others) it distills to this.
>I used to write NT 3.50/1 device drivers. I wrote alot of em.
Followup, fork() will create a new process on any platform.
"fork()" is a terrible acronymn. If you ever go beyond and
drill down you will find these are all macro's and not
language intrinsics. After 25 years at this, I can truly
tell you anybody says they know what "fork()" is, is a
goddamed liar!!
------------------------------
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 V10 Issue 8751
***************************************