Hi Antti,

I’m going to be de-CCing some mailing lists for reasons of my own. In any case,
please hit Reply to all to reply to the list.

On Sun, 5 Jan 2014 00:46:00 -0500
Antti Heikkinen <antti.heikkine...@gmail.com> wrote:

> To Dear Perl and LINUX kernel development community:
> 
> My propose to you at your list: is possible to write operate system in
> PERL? I am student in university, looked for interest project to
> conclude my study on LINUX kernel.

I should note that "Linux" and "Perl" are not spelled in all-uppercase-letters.
See:

http://perl-begin.org/learn/Perl-perl-but-not-PERL/

Regarding your question - Perl does not support many of the low-level
constructs that make C (and C++) attractive to kernel developers. Perl 5 is
also much slower than C (see
http://groups.yahoo.com/neo/groups/hackers-il/conversations/messages/5130 ;
http://groups.yahoo.com/neo/groups/hackers-il/conversations/messages/5133 - a
gross 24 times speedup when translating from perl 5 to C ), and consumes much
more RAM. Furthermore, some operations in Perl may not have a predictable and
bounded time-to-finish, which is often a problem that kernels need to address.

The closest thing I know to an operating system in Perl is
http://perllinux.sourceforge.net/ , which is a distribution based on the Linux
kernel, where the only compiled (and written in C) parts are the Linux kernel,
uClibc and perl 5 itself. But the kernel is still written in Perl.

> 
> This semester, I take beginner PERL course and learn power of
> procedural language. I automate many daily task with use of it. Very
> impressive ability to make many thing work, interpret or can compile
> also.

One should note that Perl 5 is a multi-paradigm language and aside from
procedural programming, also support object-oriented programming, functional
programming, and many other programming paradigms. 

> 
> Also about LINUX, I talk to much fellow students and professors, and
> take a operate system course use FreeBSD and LINUX. FreeBSD okay, but
> they say LINUX kernel is too big and bloat, run poor with too many
> developer. And too much quick decision from leader with ego is too big
> and bloat too, kekeke.

Writing parts of the Linux kernel in Perl (assuming it is possible), will make
it slower and consume more RAM. Note that you can still use Perl for
https://en.wikipedia.org/wiki/Filesystem_in_Userspace filesystems, USB
handlers, and other things that can run in user-land.

> 
> LINUX kernel can perform more good if written in not C and C++ but
> Perl? 

That would be extremely unlikely.

> Just certain portion of LINUX kernel to rewrite? For instant,
> schedule or support of multithread? 

Do you mean the scheduler or the multithreading support?

> If so, should use Perl5 or Perl6,
> focus to x86 or x86-64? 

Perl 6’s implementations are still incomplete and are still quite slow (though
it's been getting a lot better). One can play with them, but they should not be
used for production.

> Can you want to join me this my project? But
> to hear your expertise.
> 
> Am excited to learn and begin study project. Can you want to join this
> my project? Please direct reply of email to myself.
> 

I suggest you take a more realistic and acceptable project on yourself.

A final note - some kernels have been written in C++ - see OSv for example -
http://haifux.org/lectures/310/ . On the other hand, Linus Torvalds (the
leader of the Linux kernel project) has voiced his sentiments against using C++
and it's quoted here:
http://warp.povusers.org/OpenLetters/ResponseToTorvalds.html .

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

Vizzini: He didn’t fall?! Inconceivable!
Inigo Montoya: You keep using that word. I do not think it means what you
think it means.
    — http://en.wikiquote.org/wiki/The_Princess_Bride_%28film%29

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to