[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

[Factor-talk] regexp words on string slices

2012-11-30 Thread Naveen Garg
Any reason slices are not allowed to be passed to regexp words like first-match ? I tried modifiying the word: : check-string ( string -- string ) ! Make this configurable ! dup string? [ String required throw ] unless ; dup dup string? swap regexp? or [ String required throw ]

Re: [Factor-talk] regexp words on string slices

2012-11-30 Thread Naveen Garg
Oops, I had a typo, i was checking for regexp? instead of slice? : check-string ( string -- string ) ! Make this configurable !dup string? [ String required throw ] unless ; dup dup string? swap slice? or [ String required throw ] unless ; 0 4 foo bar slice R/ foo/

Re: [Factor-talk] regexp words on string slices

2012-11-30 Thread Naveen Garg
Awesome. Thanks John. For my specific project, the current weaker link is memory usage compared to speed. On Fri, Nov 30, 2012 at 8:03 PM, John Benediktsson mrj...@gmail.com wrote: Probably the restrictions to strings were a performance optimization...? It should be pretty easy to get the

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

2012-08-23 Thread Naveen Garg
smooth integration with non-Factor runtimes like the JVM or the CLR Have a look at cat which runs on the CLR: http://www.cat-language.com/intro.html . -- Live Security Virtual Conference Exclusive live event will

Re: [Factor-talk] scripting excel / office on windows with IDispatch / COM

2012-08-07 Thread Naveen Garg
There's a library for making COM interfaces in basis/windows/com/com.factor. It doesn't look like we have an IDispatch interface, but you can make one. ... Let me know if you have problems with the COM binding. Thanks Doug. I think I have an idea on how to proceed. I will let you know if I

Re: [Factor-talk] changing help browser font size

2012-08-07 Thread Naveen Garg
If you look in help.stylesheet, there are styles used for various parts of the help system. You can see font-family and font-sizes that are used. Thanks, that works great. -- Live Security Virtual Conference Exclusive

Re: [Factor-talk] Factor on multicores

2012-05-29 Thread Naveen Garg
What I couldn't figure out is how Factor programmers deal with today's multicore processors. For GPUs, have a look at the cuda bindings: http://docs.factorcode.org/content/vocab-cuda.html IMHO, best way to deal with multi-cores is with multiple processes instead of threads. Can always use