OpenBSD Journal

lang/arena

Contributed by mbalmer on from the we-really-need-more-languages dept.

Jasper Lievisse Adriaanse, <jasper at nedbsd.nl>, ported the arena language to OpenBSD:

The Arena language was designed with the following main features in mind, most of which were added on top of a very C-like core to support better ad-hoc scripting:

  • syntax similar to ANSI C
  • standard library similar to ANSI C
  • automatic memory management
  • runtime polymorphism
  • support for exceptions
  • support for anonymous functions

(lang/arena has been committed to the OpenBSD ports tree.)

(Comments are closed)


Comments
  1. By Anonymous Coward (66.11.66.41) on

    http://pike.ida.liu.se/
    It has a C style syntax, and is a real full featured scripting language like perl or python. Except it tends to be a little faster than those.

    Comments
    1. By Anonymous Coward (68.104.1.58) on

      GPL/LGPL or MPL are our license choices on that.

      Comments
      1. By Anonymous Coward (66.11.66.41) on

        > GPL/LGPL or MPL are our license choices on that.

        And? Nobody is suggesting adding it to the base system.

        Comments
        1. By Anonymous Coward (68.104.1.58) on

          > > GPL/LGPL or MPL are our license choices on that.
          >
          > And? Nobody is suggesting adding it to the base system.

          nope, they aren't. but a BSD license (like arena has), is preferable.

          Comments
          1. By Anonymous Coward (70.27.15.123) on

            > > > GPL/LGPL or MPL are our license choices on that.
            > >
            > > And? Nobody is suggesting adding it to the base system.
            >
            > nope, they aren't. but a BSD license (like arena has), is preferable.

            And a full featured general purpose scripting language (like pike is) may be preferable to some.

    2. By Anonymous Coward (69.18.177.10) on

      > http://pike.ida.liu.se/
      > It has a C style syntax, and is a real full featured scripting language like perl or python. Except it tends to be a little faster than those.

      An advantage that arena may have is size; pike is what, 14MB? Arena is only 180k, which might make the descion as well (besides the fact that Arena is more straight C whereas Pike has many powerful, but necessarily useful, features).

      Comments
      1. By Anonymous Coward (66.11.66.41) on

        > > http://pike.ida.liu.se/
        > > It has a C style syntax, and is a real full featured scripting language like perl or python. Except it tends to be a little faster than those.
        >
        > An advantage that arena may have is size; pike is what, 14MB? Arena is only 180k, which might make the descion as well (besides the fact that Arena is more straight C whereas Pike has many powerful, but necessarily useful, features).

        The source download of pike is 14MB because it includes dozens of modules, and the autoconf nightmare that comes along with all of them. You don't need to install all that though. It is certainly bigger than arena (the pike binary is ~1.5MB), but as I said, I recommend it if you want a "full featured C-like scripting language". If you want a minimal language, possibly for embedding in a C/C++ app, then arena is probably the way to go. Alot of people are looking to a scripting language for stuff like sysadmin tasks, log file parsing, web development, etc, etc. And for those tasks, pike is a better fit.

  2. By Anonymous Coward (213.113.27.69) on

    wow, I'm impressed, hardest port ever.

    like, hello?

    Comments
    1. By Anonymous Coward (68.104.1.58) on

      > wow, I'm impressed, hardest port ever.
      >
      > like, hello?

      at least it isn't {python,ruby,io}

    2. By corentin (81.56.152.193) on

      > wow, I'm impressed, hardest port ever.
      >
      > like, hello?

      Hard to port software is obviously much better.

      Comments
      1. By Anonymous Coward (128.138.207.49) on

        > > wow, I'm impressed, hardest port ever.
        > >
        > > like, hello?
        >
        > Hard to port software is obviously much better.

        IMHO, the point is... why is this on undeadly?

        Comments
        1. By Anonymous Coward (68.104.1.58) on

          a bsd licensed c-like scripting language in ports is good news, thats probably why. you don't have to read undeadly or run athena if you don't like it.

      2. By Anonymous Coward (82.94.1.57) on

        > > wow, I'm impressed, hardest port ever.
        > >
        > > like, hello?
        >
        > Hard to port software is obviously much better.
        <irony>
        If the original author writes unportable code it's indeed much better.
        </irony>

  3. By Anonymous Coward (69.18.177.10) on

    Does anyone know what was done to this to 'port' it to OpenBSD? The 0.9.2 package builds & tests successfully right off of the arena homepage. I presume that the 'porting' was to add the pkg* builds?

    Comments
    1. By Jasper (80.60.145.215) on http://humppa.nl

      > Does anyone know what was done to this to 'port' it to OpenBSD? The 0.9.2 package builds & tests successfully right off of the arena homepage. I presume that the 'porting' was to add the pkg* builds?
      >
      I started with 0.9.1, but there was a bug in the time code of Arena. This occured only on !(i386,sparc64). Neiter the author, nor valgrind catched it at first.
      Pascal Schmidt fixed this and released 0.9.2.

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]