[Factor-talk] Exporting a C API

2015-02-07 Thread Marmaduke Woodman
Hi I'm curious as to the feasability of exporting a C API for a library written in Factor. >From the FFI docs, I expect that it would be possible for a small stub library in C to initialize the VM and populate a table of alien callbacks which could be used from another language... in theory. Doe

[Factor-talk] State of OpenCL bindings

2015-02-07 Thread Marmaduke Woodman
Hi I'd like to use OpenCL, but the tests for Factor's bindings fail on two machines (Win 7 & Mac OS X) both with proper OpenCL support. Do they work for anyone else? Thanks, Marmaduke -- Dive into the World of Parallel P

Re: [Factor-talk] Naive loop optimization

2015-02-06 Thread Marmaduke Woodman
types (its unsafe > and in a private vocabulary because if you declare the wrong type you can > hard crash and we don't it to be mis-used): > > { float float } declare > > Anyway, hope that helps, and sorry for the spam on the paste site, > reCAPTCHA isn't what it

[Factor-talk] Naive loop optimization

2015-02-06 Thread Marmaduke Woodman
Hi, I've attempted to write a perhaps naive ODE integration loop in Factor, http://paste.factorcode.org/paste?id=3428 but it seems quite slow: the `bench1` word reports running time of ~3 s, which is an order of magnitude off equivalent OCaml & Haskell, so I imagine due to my lack of Factor ex

[Factor-talk] How to contribute

2013-08-10 Thread Marmaduke Woodman
Hi I put together an FFI to PortAudio. If anyone would find it useful, how would I contribute it? On Github? cheers, Marmaduke -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting

Re: [Factor-talk] Modules/packages for Factor

2012-08-24 Thread Marmaduke Woodman
Python's package management is (typically) on a system basis while afaik npm and gem is per project and user respectively, so this seems to be comparing apples and oranges. For example, there is no standard way to download a Python project and do the equivalent of npm install. Some Linux distros d

Re: [Factor-talk] Is there a Factor.js ?

2012-08-23 Thread Marmaduke Woodman
On Thu, Aug 23, 2012 at 6:27 PM, John Porubek wrote: > trying to google "Factor" I have found it effective to use "factor stack" or "factor language" to avoid the typical incorrect results. "factor word" always seemed to bring up Bill O'Reilly's news show fwiw. --

[Factor-talk] Illegal instruction

2012-08-22 Thread Marmaduke Woodman
Hi I have tried both 32-bit and 64-bit versions of the stable and development releases on Mac 10.6.8. On executing ./factor, I have immediately "Illegal instruction". Have I missed something? On Linux or Win, there's no problem.. thanks, Marmaduke ---

Re: [Factor-talk] Understanding FFI

2011-09-14 Thread Marmaduke Woodman
pattern is simple, this could work fine. In more complicated situations, locks can cause a lot of headaches. Good luck ! On Sep 14, 2011 10:38 PM, "Patrick Mc(avery" wrote: On 11-09-14 04:20 PM, Marmaduke Woodman wrote: > > Hi > > I just joined this list, and being new t

Re: [Factor-talk] Understanding FFI

2011-09-14 Thread Marmaduke Woodman
Hi I just joined this list, and being new to factor, I don't want to comment on factor specific details, but I want to point out that a general problem in this situation is coordinating reads and writes of a common data structure. Typically you'd want the data structure to have a consistent state