[ACT-R-users] ACT-R-users Digest, Vol 48, Issue 3
Jeffrey Sander
jeffreysander at gmail.com
Fri Jul 3 11:53:07 EDT 2009
>From a programming point of view, code of any one language can execute code
from any other language using a Foreign Function Interface
(FFI<http://en.wikipedia.org/wiki/Foreign_function_interface>).
These are generally language specific and often not well documented, but
with a little tinkering and a few questions one can get them to work well
enough. I made use of Allegro Common Lisp's Java FFI to have the full
version of ACT-R 6.0 run in ACL, but make use of Java code to evaluate the
strength of poker hands. This was particularly useful since certain
programming languages will perform computations much faster than others.
Lisp itself is a functional and interpreted language which fundamentally
limits its speed in various situations. Memory usage may also be a factor.
If interested, this <http://shootout.alioth.debian.org/> website provides a
range of bench marks for different computations in various programming
languages. It should help decide which language is best for a given task.
The benchmarks were computed on a machine running Debian Linux, but should
be comparable for a Windows or Macintosh OS.
I've seen other members of the lab use other techniques, but I don't want to
let out any trade secrets...
Hope this is of general use and that the weather is as nice in pittsburgh as
it is here.
Jeffrey Sander
Human Cortical Physiology and Stroke Neurorehabilitation Section
Medical Neurology Branch, NINDS
Building 10, Room 5N226
10 Center Drive MSC 1430
Bethesda, MD 20892-1430
Telephone (973) 495-1717
On Fri, Jul 3, 2009 at 12:00 PM, <act-r-users-request at act-r.psy.cmu.edu>wrote:
> Send ACT-R-users mailing list submissions to
> act-r-users at act-r.psy.cmu.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://act-r.psy.cmu.edu/mailman/listinfo/act-r-users
> or, via email, send a message with subject or body 'help' to
> act-r-users-request at act-r.psy.cmu.edu
>
> You can reach the person managing the list at
> act-r-users-owner at act-r.psy.cmu.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ACT-R-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Act-r in C++ (UNCLASSIFIED) (Marc Halbr?gge)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 02 Jul 2009 22:38:03 +0200
> From: "Marc Halbr?gge" <marc.halbruegge at gmx.de>
> Subject: Re: [ACT-R-users] Act-r in C++ (UNCLASSIFIED)
> To: "Kelley, Troy (Civ,ARL/HRED)" <tkelley at arl.army.mil>,
> act-r-users at act-r.psy.cmu.edu
> Message-ID: <20090702203803.52620 at gmx.net>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> > Is there any thought, or have there been any discussions, of porting
> ACT-R
> > over to C++? I know I can see Christian rolling his eyes from here ;-)..
> > But I think it would be a useful project for someone.
>
> Calling C++ code from ACT-R is quite easy, here's an example:
> http://act-cv.sourceforge.net/
>
> Running ACT-R from within C++ is not that complicated, either. If you're
> interested, I can put up a source code example for that as well (I don't
> have that much time for this kind of stuff at the moment, though).
>
> Porting ACT-R itself to C++ would be a hard task, and I don't really see a
> benefit.
>
> Greetz from Germany
> Marc
> --
> Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> f?r nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
>
>
> ------------------------------
>
> _______________________________________________
> ACT-R-users mailing list
> ACT-R-users at act-r.psy.cmu.edu
> http://act-r.psy.cmu.edu/mailman/listinfo/act-r-users
>
>
> End of ACT-R-users Digest, Vol 48, Issue 3
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.srv.cs.cmu.edu/pipermail/act-r-users/attachments/20090703/a76c8ef5/attachment.html>
More information about the ACT-R-users
mailing list