[Factor-talk] embedding factor
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
[Factor-talk] regexp words on string slices
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 ] unless ; but doing a refresh-all doesn't change anything, running 0 4 foo slice R/ foo/ first-match still throws error string required For the curious, I am working on an optimized / space efficient version of the re-pair semi-static dictionary compression algorithm ( http://www.cbrc.jp/~rwan/en/restore.html) . I have it working in autohotkey, trying to port it to factor to see if I get any performance gains, and just for fun / learn factor. -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] regexp words on string slices
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/ first-match but now I get a memory access error: ... Naveen -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] regexp words on string slices
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 behavior you want: IN: scratchpad 0 4 foo slice R/ foo/ first-match . T{ slice { from 0 } { to 3 } { seq foo } } Using this diff makes it work, but causes the regexp benchmark to be 20-30% slower...: -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Is there a Factor.js ?
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 cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] scripting excel / office on windows with IDispatch / COM
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 get stuck. Meanwhile, I have been able to wrap a ffi to autohotkey in factor which can bridge the gap. https://github.com/tinku99/ahk-factor -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] changing help browser font size
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 live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Factor on multicores
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 memory mapped files if redundant memory usage is a concern. Simplifies scaling across machines later. There are a bunch of toy apps in the factor distribution. I haven't used it for any big projects yet, but I think it would be cool to create squeak / scratch IDE with factor. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk