On 10/3/05, Mark Johnathan Greenaway <[EMAIL PROTECTED]> wrote: > On Mon, Oct 03, 2005 at 08:42:17PM +1000, O Plameras wrote: > > Ok, I'd like to learn another High Level Language, specifically perl6. > > And I'd like to make a living from it. > > I'd like to write a Linux Version 2.6 kernel module.(Linux Version 2.4 > > kernel is different.) > > This is quite easy with C-language should I do it. As an illustration I > > have a very simple > > kernel module for Linux V2.6. as follows: > *example code snipped* > > Simple with C, isn't it ? How can I do this in Perl6 ? > > This example is ludicrously contrived. For kernel modules, I think C is > probably the superior choice. However, the measure of a programming > language shouldn't be whether you can write kernel modules in it > effectively unless that is the sole programming task that is important > to you. And unless you're a paid kernel developer, I'd sincerely hope > that you don't write the majority of your code to run in kernelspace - > the seperation between the kernel's memory space and the user memory > space exists for a very good reason.
It's not about being a superior choice in comparison with Perl 6. It's that you really *can't* write a module using the language (not for Linux, and not for any Unix I know). Unless somebody comes up with a kernel hook to a Perl interpreter (or embed Perl in it, which would be crazy to say the least), it won't be possible, ever. So it's beyond opinion. It seems to me Oscar was showing how simple it is to write a LKM. Now, no matter how simpler/shorter/more efficient your code would be when using Perl, in this particular case, it's pointless. As it's pointless to use Python, bash, or whatever interpreted language for that, simply because there's no interpreter in the kernel, for obvious reasons. > > -- > Mark > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- Julio C. Ody http://rootshell.be/~julioody -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
