For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2007 > Perl for hardware driver









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Perl for hardware driver
Solidzh

2007-08-22, 6:59 pm

Hello,

My boss asked me to learn some Java but I said Perl can do anything
that Java can do.So he asked me to write a driver for his wireless
network card on Linux with Perl.I'm faint but,is there a way to do
this?

Thanks helps.
Uri Guttman

2007-08-22, 6:59 pm

>>>>> "S" == Solidzh <solidzh@gmail.com> writes:

S> My boss asked me to learn some Java but I said Perl can do anything
S> that Java can do.So he asked me to write a driver for his wireless
S> network card on Linux with Perl.I'm faint but,is there a way to do
S> this?

ask him if he can do that in java.

and get a better boss.

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
Yitzle

2007-08-22, 6:59 pm

On 8/22/07, Solidzh <solidzh@gmail.com> wrote:
> Hello,
>
> My boss asked me to learn some Java but I said Perl can do anything
> that Java can do.So he asked me to write a driver for his wireless
> network card on Linux with Perl.I'm faint but,is there a way to do
> this?
>
> Thanks helps.


I may be completely wrong, but I don't think Perl can do such low
level jobs. And even if it could, a driver probably would be better
with the speed and memory management that C provides. However, I don't
think Java can be used either.

But then again, I believe in knowing many languages. Learning a new
language (especially one as wide spread as Java) is a great
opportunity. And if you get paid to learn, well, you're lucky!
Chas Owens

2007-08-22, 6:59 pm

On 8/22/07, Solidzh <solidzh@gmail.com> wrote:
> Hello,
>
> My boss asked me to learn some Java but I said Perl can do anything
> that Java can do.So he asked me to write a driver for his wireless
> network card on Linux with Perl.I'm faint but,is there a way to do
> this?
>
> Thanks helps.


Yes, and it is as easy or easier than it in Java: that is to say it
isn't easy at all in either language. Please remind him that that is
a job for C not Java or Perl (I am pretty sure you can't write a
kernel module in either Java or Perl, this is not a limitation of
either language, but of the kernel itself).

All of that said you should learn many languages. It will make you
more marketable and you never know when you will have to deal with
someone else's code. Except Cobol, that language just stinks.
Chas Owens

2007-08-22, 6:59 pm

On 8/22/07, yitzle <yitzle@users.sourceforge.net> wrote:
> On 8/22/07, Solidzh <solidzh@gmail.com> wrote:
>
> I may be completely wrong, but I don't think Perl can do such low
> level jobs. And even if it could, a driver probably would be better
> with the speed and memory management that C provides. However, I don't
> think Java can be used either.
>
> But then again, I believe in knowing many languages. Learning a new
> language (especially one as wide spread as Java) is a great
> opportunity. And if you get paid to learn, well, you're lucky!


To clarify*, any Turing Equivalent** language*** can replace any other
Turing Equivalent language****, but sometimes implementation details
get in the way (in this case the Linux Kernel expects a certain
interface that neither Java not Perl can provide without giving up
their essential nature).

* or confuse, I can't decide which I am doing
** http://en.wikipedia.org/wiki/Turing_complete
*** This even includes Conway's***** Game of Life:
http://www.cs.ualberta.ca/~bulitko/...rs/tm_words.pdf
**** but is not guaranteed to be as efficient in terms of time and space
***** John not Damian
Jenda Krynicky

2007-08-27, 7:23 pm

From: Solidzh <solidzh@gmail.com>
> Hello,
>
> My boss asked me to learn some Java but I said Perl can do anything
> that Java can do.So he asked me to write a driver for his wireless
> network card on Linux with Perl.I'm faint but,is there a way to do
> this?


Ahhh, those pointy haired bosses that read the business magazines,
would not know code if you printed it out and banged it over their
head, yet decide what tool you should use to do your job. I wonder
whether the managers of construction companies annoy their hardhats
with trying to tell them what tool to use when. Based on something
they just overheard.

I'd really love to see a device driver written in that marketing
campaign that by accident contains as its minor and almost completely
irrelevant ingredience a programming language.

Find a better boss.

Jenda
== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think? :-)
-- Larry Wall in <199808071736.KAA12738@wall.org>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com