Re: Lisp security



John Thingstad wrote:
Obviously Lisp is not prone to buffer overfow controls. (unless optimations turn bounds checking off)
But there is the question of Java.final.
Apperaently there is no equivalence in Lisp.
Simularly there is the possibility to change inheritance after runtime.
Also decaring code after runtime.
Obviously if you get trough the outer defenses Lisp is chanseless.
Any chance of anyone (Allegro) deveoping a 'sandbox' for lisp?



I think that final classes and sandboxes are two distinct things. To construct a sandbox you need to create an environment in which the running program has no access to the "outer" world, like access to the filesystem and operating system calls - remove all corresponding functions from the environment.
Final classes come IMO from the same paranoid object philosophy that brought us private variables/methods. They are supposed to enforce the
clean usage of libraries - in practise more often create encumberments than are beneficial to the code quality. One of the worst misdesigns of the Java language was making String a final class instead of an interface and letting the current String and StringBuffer classes just implement that interface. This is one of the reasons, that while the Hotspot JVM is basically very fast, many Java programs are slow, because you can't get around this (inefficient) string implementation.


Peter


-- Ltk, the easy lisp gui http://www.peter-herth.de/ltk/ .



Relevant Pages

  • Re: Is anything easier to do in java than in lisp?
    ... And any experienced lisp ... in java generally you hardly ever use ... static String showInputDialog(Component parentComponent, ... which was about generic sequences (lists ...
    (comp.lang.java)
  • Re: Is anything easier to do in java than in lisp?
    ... And any experienced lisp ... in java generally you hardly ever use ... static String showInputDialog(Component parentComponent, ... which was about generic sequences (lists ...
    (comp.lang.lisp)
  • Re: (In)Efficient snmpwalk parsing...
    ... I've written some lisp which does stuff with switch forwarding ... I want to extract the port number and the MAC address (do- ... (parse-integer (fourth spline)) ... to parse the string. ...
    (comp.lang.lisp)
  • Re: Lisp puns considered good style?
    ... > While transcribing, I've run across another punning example, so I ... Yes, the Lisp system can disambiguate, and yes, ... Ask yourself a similar question about poetry. ... How is poetry like (string string)? ...
    (comp.lang.lisp)
  • Re: static, dynamic and implicitely typed languages
    ... (char "sure I'm a string" 1) ... That is instead of declaring the type of the argument, Lisp language ... Functions like char and car have to check that the type of the passed argument is correct. ...
    (comp.lang.lisp)