comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: run-time function creation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: run-time function creation [message #83868 is a reply to message #83867] Thu, 11 April 2013 08:35 Go to previous messageGo to previous message
rtk is currently offline  rtk
Messages: 22
Registered: September 2008
Junior Member
With IDL 8.x's new list and hash routines the idea of dynamically defined functions makes sense (consider implementing higher-order functions, like Python's map and reduce).

I have a lambda.pro routine, and a make_function routine, that pull off the trick Craig mentioned. What would be best is to define a function from a string and to be able to remove that function from memory. Still, dumping to a temporary file and compiling it on the fly is really quite fast with modern OSes. A couple of milliseconds typically.

Send me an email (rkneusel at exelisvis com) and I'll send them out to whoever is interested along with some higher-order function routines.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: replacing "NAN" values using interpolation in IDL
Next Topic: CMIP5 model output

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:30:25 PDT 2025

Total time taken to generate the page: 0.00453 seconds