Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: RE: TIMTOWTD Anything

by jolhoeft (Sexton)
on Sep 13, 2000 at 23:13 UTC ( [id://32329]=note: print w/replies, xml ) Need Help??


in reply to RE: TIMTOWTD Anything
in thread TIMTOWTD Anything

Device drivers in Perl - shudder.

Number crunching is something that Perl is not very great at right now. I recently prototyped an algorithm in Perl. Once I was happy with it, I rewrote the core as an XS module. I got a 60-fold speed increase.

I like python's trick for making making a module a script. I.e. if you execute a file, it runs a main routine, but if you include it, it just imports functions, etc.

Replies are listed 'Best First'.
RE (tilly) 3: TIMTOWTD Anything
by tilly (Archbishop) on Sep 14, 2000 at 02:40 UTC
    merlyn has mentioned a neat module called Inline to make this really easy. Rather than write XS, take Perl functions and write equivalents in C, then inline. The rest is taken care of for you. (Supposed to be.)

    I have not pushed it, but give it a shot.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://32329]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found