[Factor-talk] embedding factor

2012-11-30 Thread Naveen Garg
Hey guys,
I am playing around with factor again, and getting some useful work done.
I am trying to use factor embedded...
Unfortunately, the function init_factor_from_args that is mentioned in
the documentation is no longer in the source...
There is a new function: start_standalone_factor in master.hpp.
Has anyone used it successfully to embed factor ?
Thanks,
Naveen
--
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] embedding factor

2012-11-30 Thread Michael Clagett
Also interested in this.


Sent from my iPhone

On Nov 30, 2012, at 3:25 PM, Naveen Garg naveen.g...@gmail.com wrote:

 Hey guys, 
 I am playing around with factor again, and getting some useful work done.
 I am trying to use factor embedded...
 Unfortunately, the function init_factor_from_args that is mentioned in the 
 documentation is no longer in the source...
 There is a new function: start_standalone_factor in master.hpp.
 Has anyone used it successfully to embed factor ? 
 Thanks,
 Naveen
 --
 Keep yourself connected to Go Parallel: 
 TUNE You got it built. Now make it sing. Tune shows you how.
 http://goparallel.sourceforge.net
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk
--
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk
--
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] Embedding factor in C results in seg fault; all I want is to have call factor_eval_string() work

2010-02-12 Thread Zack Brannigan
Hi, everyone:

All I want to do is to do a simple string eval against an embedded VM. I always 
get a seg fault calling factor_eval_string(). The example from the factor 
documentation seems out of date with respect to the API.

I tested against a compilation I did from a build about 2 weeks ago, so it's 
recent. I am using Ubuntu 8.10 on a 32-bit system, compiling with gcc 4.3.2.

Any help would be *deeply* appreciated.

My little snippet can be found here
http://pastebin.com/m949c3aa

Thanks.




  --
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Embedding factor in C results in seg fault; all I want is to have call factor_eval_string() work

2010-02-12 Thread Adam
Your eval string at a minimum needs: USING: math prettyprint ;

Not sure if that will fix it though!  You only get the syntax vocab by
default in an eval call.  You can add the with-interactive-vocabs instead if
you want.  See eval-vocabs help in the listener.


I don't know if this will fix your situation but it's worth a try.

-Adam


On Fri, Feb 12, 2010 at 10:20 AM, Zack Brannigan srwences...@yahoo.comwrote:

 Hi, everyone:

 All I want to do is to do a simple string eval against an embedded VM. I
 always get a seg fault calling factor_eval_string(). The example from the
 factor documentation seems out of date with respect to the API.

 I tested against a compilation I did from a build about 2 weeks ago, so
 it's recent. I am using Ubuntu 8.10 on a 32-bit system, compiling with gcc
 4.3.2.

 Any help would be *deeply* appreciated.

 My little snippet can be found here
 http://pastebin.com/m949c3aa

 Thanks.




 --
 SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
 Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
 http://p.sf.net/sfu/solaris-dev2dev
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Embedding factor in C results in seg fault; all I want is to have call factor_eval_string() work

2010-02-12 Thread Zack Brannigan
Hi, Adam:

Thanks for your response. It tried what you suggested, but I still get a seg 
fault.

--- Sarino

--- On Fri, 2/12/10, Adam hiat...@gmail.com wrote:

From: Adam hiat...@gmail.com
Subject: Re: [Factor-talk] Embedding factor in C results in seg fault; all I  
want is to have call factor_eval_string() work
To: factor-talk@lists.sourceforge.net
Date: Friday, February 12, 2010, 2:40 PM

Your eval string at a minimum needs: USING: math prettyprint ;

Not sure if that will fix it though!  You only get the syntax vocab by default 
in an eval call.  You can add the with-interactive-vocabs instead if you want.  
See eval-vocabs help in the listener.



I don't know if this will fix your situation but it's worth a try.

-Adam


On Fri, Feb 12, 2010 at 10:20 AM, Zack Brannigan srwences...@yahoo.com wrote:


Hi, everyone:

All I want to do is to do a simple string eval against an embedded VM. I always 
get a seg fault calling factor_eval_string(). The example from the factor 
documentation seems out of date with respect to the API.


I tested against a compilation I did from a build about 2 weeks ago, so it's 
recent. I am using Ubuntu 8.10 on a 32-bit system, compiling with gcc 4.3.2.

Any help would be *deeply* appreciated.

My little snippet can be found here

http://pastebin.com/m949c3aa

Thanks.




  
--

SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,

Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW

http://p.sf.net/sfu/solaris-dev2dev
___

Factor-talk mailing list

Factor-talk@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/factor-talk





-Inline Attachment Follows-

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
-Inline Attachment Follows-

___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk



  --
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Embedding factor in C results in seg fault; all I want is to have call factor_eval_string() work

2010-02-12 Thread Slava Pestov
Hi Zack,

The embedding API is not currently supported, sorry. I'll get back to
working on it at some point in the near future.

Slava

On Sat, Feb 13, 2010 at 7:20 AM, Zack Brannigan srwences...@yahoo.comwrote:

 Hi, everyone:

 All I want to do is to do a simple string eval against an embedded VM. I
 always get a seg fault calling factor_eval_string(). The example from the
 factor documentation seems out of date with respect to the API.

 I tested against a compilation I did from a build about 2 weeks ago, so
 it's recent. I am using Ubuntu 8.10 on a 32-bit system, compiling with gcc
 4.3.2.

 Any help would be *deeply* appreciated.

 My little snippet can be found here
 http://pastebin.com/m949c3aa

 Thanks.




 --
 SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
 Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
 http://p.sf.net/sfu/solaris-dev2dev
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Embedding factor in C results in seg fault; all I want is to have call factor_eval_string() work

2010-02-12 Thread Zack Brannigan
Thanks for the reply. Looking forward.


--- On Fri, 2/12/10, Slava Pestov sl...@factorcode.org wrote:

From: Slava Pestov sl...@factorcode.org
Subject: Re: [Factor-talk] Embedding factor in C results in seg fault; all I  
want is to have call factor_eval_string() work
To: factor-talk@lists.sourceforge.net
Date: Friday, February 12, 2010, 9:49 PM

Hi Zack,
The embedding API is not currently supported, sorry. I'll get back to working 
on it at some point in the near future.
Slava

On Sat, Feb 13, 2010 at 7:20 AM, Zack Brannigan srwences...@yahoo.com wrote:

Hi, everyone:


All I want to do is to do a simple string eval against an embedded VM. I always 
get a seg fault calling factor_eval_string(). The example from the factor 
documentation seems out of date with respect to the API.

I tested against a compilation I did from a build about 2 weeks ago, so it's 
recent. I am using Ubuntu 8.10 on a 32-bit system, compiling with gcc 4.3.2.


Any help would be *deeply* appreciated.

My little snippet can be found here
http://pastebin.com/m949c3aa

Thanks.





  
--

SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,

Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW

http://p.sf.net/sfu/solaris-dev2dev
___

Factor-talk mailing list

Factor-talk@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/factor-talk





-Inline Attachment Follows-

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
-Inline Attachment Follows-

___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk



  --
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk