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
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
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
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 ;
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
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 _
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
22 matches
Mail list logo