Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: On Scripting versus Compiled solutions

by adrianh (Chancellor)
on Mar 12, 2004 at 08:18 UTC ( [id://336107]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: On Scripting versus Compiled solutions
in thread On Scripting versus Compiled solutions

Whichever VHLL does this will lack eval, which will make it distinctly less HL...

Not necessarily so. You just need to include your compiler with the binary. Languages like Lisp and Pop-11 have been doing that for years.

  • Comment on Re^3: On Scripting versus Compiled solutions

Replies are listed 'Best First'.
Re: Re^3: On Scripting versus Compiled solutions
by tilly (Archbishop) on Mar 12, 2004 at 20:49 UTC
    Go back to Re: On Scripting versus Compiled solutions and read the following sentence, ...I don't think a bundlemonkey approach (binding the interpreter and the bytecode together into an executable package) will do the trick.

    The approach that you suggest (including the compiler with the binary) is exactly the "bundlemonkey" approach that jonadab ruled out. And my claim is that if you rule that out, then you run into problems with eval.

    Well..I'm not sure what he would think of Squeak's approach (decompile the running environment into C++ code which, when compiled again, gives you the same environment again). That isn't the usual "bundlemonkey" approach, but it isn't totally dissimilar either...

      The approach that you suggest (including the compiler with the binary) is exactly the "bundlemonkey" approach that jonadab ruled out. And my claim is that if you rule that out, then you run into problems with eval.
      Actually, tilly, what adrianh is suggesting is not the bundlemonkey approach. There's an important middle ground: include optimized native code, not bytecode, and also include a compiler that generates optimized native code on the fly when necessary. This is significantly different from producing bytecode and a bound interpreter.

      On further reflection, including the compiler (which converts source to bytecode or native code) or not and having code as bytecode + interpreter (bundlemonkey) or as native code are really orthogonal choices. Many commercial lisp variants produce output that has the compiler but also uses (mostly) native code, whereas Visual Basic programs take the opposite approach: classic bundlemonkey but without runtime access to the compiler.

      The approach that you suggest (including the compiler with the binary) is exactly the "bundlemonkey" approach that jonadab ruled out. And my claim is that if you rule that out, then you run into problems with eval.

      I had assumed that jonadab meant that the building-the-interpereter technique wouldn't do the trick because it still wouldn't be a "real" program and you would still suffer from the speed issues that interpreted code would suffer in comparison to optimised native code.

      Personally I don't think it would solve the problem in any case. A language bigot of whatever colour will remain a language bigot. Minor things like evidence never seem to change anything.

Log In?
Username:
Password:

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

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

    No recent polls found