Re: [Factor-talk] Wikipedia page flagged for notability and possible deletion

2011-02-14 Thread Kobi Lurie
for what it's worth, I listed factor in my resume, as programming language knowledge. the truth is there are many programming languages, and most of them are good. it's a matter of pluralism of opinions, not a competition. I like that factor can inherently extend and improve in basic language

[Factor-talk] aspects and querying factor code

2010-12-29 Thread Kobi Lurie
Hi guys, does anyone know where I can find jamesnvc 's aspects vocabulary? I think it really fits in with factor. james used annotate to implement it, don't know if it was finished. Thanks, Kobi PS: why is it of interest? I recently read about aop: (but haven't tried yet) In addition to

[Factor-talk] partial http

2010-08-28 Thread Kobi Lurie
Hi everyone, I needed partial http get requests, and it wasn't in the library so I used http's range header. this seems like a common need, so I'm sharing with you. here's what I have so far: : partial-get-request ( url #bytes -- request ) [ get-request ] dip numberstring bytes=0- prepend

Re: [Factor-talk] partial http

2010-08-28 Thread Kobi Lurie
hmm, some things can fail. 404, bad domain .. try to get a response if possible. : safer-http-request ( request -- response/f data/f ) [ http-request ] [ dup download-failed? [ response f ] [ drop f f ] if ] recover ;

Re: [Factor-talk] partial http

2010-08-28 Thread Kobi Lurie
this list with code snippets :) signing off, kobi On 28/08/2010 14:16, Kobi Lurie wrote: hmm, some things can fail. 404, bad domain .. try to get a response if possible. : safer-http-request ( request -- response/f data/f ) [ http-request ] [ dup download-failed? [ response

Re: [Factor-talk] sequence operations

2010-08-13 Thread Kobi Lurie
Hi Jon, thanks for your reply. inspired by your use of flip, here's what I came up with: :: enlarge-seq ( seq item to -- seq' ) to seq length - : gap seq gap 0 [ gap item array append ] when ; : distribute-groups ( seq^2 -- seq ) dup [ length ] [ max ] map-reduce '[ f _

[Factor-talk] question

2010-08-11 Thread Kobi Lurie
Hello please tell how to intercept the command line arguments that are passed to a deployed application. for example: application.exe filename.txt thanks, Kobi -- China: stop persecuting Falun Gong! http://faluninfo.net URGENT: Innocent people are being persecuted for their belief inside

[Factor-talk] information request about ui part

2010-07-16 Thread Kobi Lurie
Hey guys, I'm looking to do more serious 'factor'ing, and want to build a complete app. But the documentation for the gui part, is very limited. (I also like the portable nature of the gui and that it looks the same - and would like to create something) Are there any tutorials I missed, or

Re: [Factor-talk] multi dimensional arrays and console

2010-06-07 Thread Kobi Lurie
Good suggestion On 04/06/2010 14:08, Miles Gould wrote: On Fri, Jun 04, 2010 at 12:48:27AM +0300, Kobi Lurie wrote: there are two versions, one is based on an array, the other on a hashtable. I'd suggest calling these dense-multiarray and sparse-multiarray. Both could be useful in different

Re: [Factor-talk] multi dimensional arrays and console

2010-06-03 Thread Kobi Lurie
Hi guys, so I took it up on Slava's words, and tried. http://paste.factorcode.org/paste?id=1713 I haven't tested much as I just wrote it. But it seems like it works. (i think the calculation is ok too, but my math is lousy so..) there are two versions, one is based on an array, the other on a

[Factor-talk] multi dimensional arrays and console

2010-06-02 Thread Kobi Lurie
Hi guys, 1) In C sharp, multi dimensional arrays are built into the language, and I find them very useful for representing a board, or a board with a few layers. the syntax is also pretty nice: int[,,] cube = new int[3,3,3]; for example. but you can also do int[] (if you have the ram

Re: [Factor-talk] Factor and the Google Summer of Code

2010-02-26 Thread Kobi Lurie
Hi Joe and all, I have a few ideas, but you guys should approve if they're acceptable: - improve debugging in the ide, so that the walker walks the written code and not the inlined representation. - better error reporting - when possible, try to pinpoint the exact problem. for example, if

Re: [Factor-talk] Vocab for comparing complex data types

2010-02-21 Thread Kobi Lurie
On 21/2/2010 16:28, Jim mack wrote: I have some complicated datastructure, mixing containers tuples, like an ast. I would like to get a report on what's different between two of them, say for a test. Is there an existing vocab for that? It won't need to be fast. My first thought was

[Factor-talk] playing audio files on factor

2009-11-16 Thread Kobi Lurie
Hi all, is there a way to play a wav file from within factor? the OpenAL dlls never worked for me on Windows pcs. I know we can hook to the windows API -- I think there's a function called PlaySound. but haven't tried yet. Are there plans to support audio playing on all the platforms? maybe I

Re: [Factor-talk] documentation, examples and help...

2009-10-01 Thread Kobi Lurie
For what it's worth, I wrote a little exercise tutorial you can see it at: http://my.opera.com/kwakodile/blog/2009/09/26/a-tribute-to-factor-a-small-tutorial enjoy Kobi I think what's needed, and what a lot of people have asked for, is more cookbook style documentation and tutorials. Quick

Re: [Factor-talk] Interleaving two arrays?

2009-06-18 Thread Kobi Lurie
I've come up with this: { 1 2 3 } { 3 2 1 } [ 2array ] 2map concat but is there a more elegant/efficient/idiomatic way of doing what I want? Looks great in my opinion. Kobi -- Crystal Reports - New Free

[Factor-talk] your ideas welcome

2009-04-16 Thread Kobi Lurie
Dear factor list, thought to ask for your opinion and learn something on the way: sort of the weekly factor challenge with code I actually intend to use :) so I'm dusting some old code, and trying to finish this last word 'replace-all' Thought it would be atleast a nice exercise for the

Re: [Factor-talk] new_ui, binaries, etc

2009-03-13 Thread Kobi Lurie
Great news, kudos to littledan :) Slava, is regexp the only or main way to get text processing on factor? I've created some utilities for text processing which are more low level and also less complete, but they might be faster, or simply more ready out of the box. (if anyone is less familiar with

Re: [Factor-talk] r and r removed

2008-12-19 Thread Kobi Lurie
may they rest in peace. this is a forth feature, that factor departed from. I think this indicates that factor is becoming more structured and less hackable/flexible. In general, it is good for designing code and keeping it clean, or good practices. OTOH, it might take more mental work to start

Re: [Factor-talk] Faster loading of sequence implementations

2008-09-03 Thread Kobi Lurie
Hey slava, for perceived speed, what about loading the factor code in the environment and loading the documentation in a spawned thread? (which will end later in its own time) This way, it would return immediately after the factor code was loaded. which is what the user was probably waiting

Re: [Factor-talk] RESOLVE: form

2008-09-01 Thread Kobi Lurie
, in my opinion. what do you think of the above syntax for using? a bonus of the approach could be a warning/note about unused words. please :) thanks, Kobi Kobi Lurie wrote: You know, forth also has this problem, and I agree it should be taken care of, but seems like you can't entirely solve

Re: [Factor-talk] help for help

2008-08-20 Thread Kobi Lurie
hi slava and all, I think it would be neat to have such statistics generated dynamically on the website. (263/700 documented examples, click here to see the list..) Then, factor programmers would know what is needed and where to fill in, (aiming for clear clean code). like a todo list for