On Thu, Nov 27, 2008 at 6:42 PM, Eduardo Cavazos [EMAIL PROTECTED] wrote:
For me, programming is about being creative, not following your rules.
Not to mention any example is better than no example. Let's not create
a culture where people decide not to post examples out of fear of not
doing
On Thu, Oct 30, 2008 at 6:27 AM, Douglas Felt [EMAIL PROTECTED] wrote:
Yes, this is a T60. So no one has tracked down what software is the culprit?
Not that I'm aware of. I have a workaround for my usage. I wrap calls
to PeekMessage in an [ ] ignore-errors. Search for PeekMessage in this
log
On Wed, Oct 29, 2008 at 5:52 PM, Douglas Felt [EMAIL PROTECTED] wrote:
I thought I'd give Factor a try so I downloaded the 2008-10-23
windows/32 binary. I can start up the executable and browse the docs,
but as soon as I try to type anything into the input window, it quits
with the signal 11
I've also hit this problem a few times and it's difficult to track
down. If there were a parse time error it would be easier.
If I change peg for example to add a new word that shadows something
in a users vocab, that user would probably like to know straight away
when they next update via a
On Fri, Jul 25, 2008 at 7:30 PM, Slava Pestov [EMAIL PROTECTED] wrote:
So Ed,
I don't like the ! suffix because it overlaps with comments.
Let's use something else for comments :-)
What about past tense to denote mutation?
I found these very hard to read/understand.
Chris.
--
On Thu, Jul 24, 2008 at 9:18 PM, Phil Dawes [EMAIL PROTECTED] wrote:
Gah! I need an apropos that corrects my spelling!
I use the following words occasionally for searching for existing words:
http://paste.factorcode.org/responder/pastebin/show-paste?n=70
: help-text ( word -- seq )
On Sat, Jun 28, 2008 at 3:21 PM, Slava Pestov [EMAIL PROTECTED] wrote:
TUPLE: color red|integer green|integer blue|integer ;
So '|' would no longer be a valid symbol in word names? Or just in tuple names?
1) Support a per-type notion of 'default value'. This would be roughly as
follows:
How
What do the 0, 1 and 2 signify?
On Tue, Jun 10, 2008 at 4:31 PM, Eduardo Cavazos [EMAIL PROTECTED] wrote:
Hello,
The combinators.lib vocabulary now has these combinators:
0||
1||
2||
0
1
2
They replace all the short-circuit combinators that
On Sun, Jun 1, 2008 at 9:13 AM, Slava Pestov [EMAIL PROTECTED] wrote:
Sounds good. I've merged your changes.
I thought someone rewrote json.reader using pegs a few months back,
fixing these issues as well. What happened to that?
Chris.
--
http://www.bluishcoder.co.nz
On Mon, Apr 28, 2008 at 7:18 AM, Phil Dawes [EMAIL PROTECTED] wrote:
I'm publishing to a public repo
on my laptop and then rsyncing that to my webspace, but get failures
pulling from the webspace where I don't from the local dir.
Lots of questions to try and track the problem down...
What
On Wed, Apr 23, 2008 at 11:59 AM, Slava Pestov [EMAIL PROTECTED] wrote:
I think this is a pretty nice use-case for 'fry' and its hard to
imagine how this code could be improved further.
Maybe use multimethods to get rid of the case and the
render-plain-list, render-ordered-list, etc? Or does
On Fri, Apr 11, 2008 at 2:18 PM, Eduardo Cavazos [EMAIL PROTECTED] wrote:
I couldn't find a 'unique' word (like UNIX 'uniq'). Here's what I used:
Is 'prune' what you want?
Chris.
-
This SF.net email is sponsored by the
On Wed, Mar 12, 2008 at 5:24 AM, William Tanksley, Jr
[EMAIL PROTECTED] wrote:
Well... maybe something could be better. One of the hard problems is
knowing what to put in your USING: clause. Nobody ever shows that when
showing code examples, but it's crucial, and a serious blocker for
On Sat, Mar 8, 2008 at 11:17 AM, Slava Pestov [EMAIL PROTECTED] wrote:
On the other hand, projects without strong leadership stagnate because
nothing ever gets done.
One of the reasons Factor hasn't stagnated is due to a strong base of
contributors who have provided important libraries
On Sat, Mar 8, 2008 at 2:32 PM, Slava Pestov [EMAIL PROTECTED] wrote:
Neither Dan or I anticipated this change would be so controversial.
Everything's controversial when it comes to Factor changes :-p
I don't mind the unicode changes personally, but I haven't had a
chance to use them in anger
On Mon, Mar 3, 2008 at 9:56 PM, Slava Pestov [EMAIL PROTECTED] wrote:
db.tuples unit tests were failing on PowerPC. Turns out
sqlite3_last_insert_rowid was defined to return an int but it
actually returns an int64. This worked on little endian but on big
endian things broke. I pushed a
On Feb 14, 2008 12:34 AM, Victor M. [EMAIL PROTECTED] wrote:
Thanks for the source code but I am surprised that there is nothing like
'find-and-replace' in the Factor library.
peg.search (or is it peg.replace) has a 'replace' word that lets you
search and replace in strings. The thing to search
On Feb 14, 2008 12:56 AM, Chris Double [EMAIL PROTECTED] wrote:
peg.search (or is it peg.replace) has a 'replace' word that lets you
search and replace in strings. The thing to search for needs to be a
combinator but you could use 'token' for a string. See the help for
the vocab.
Here's
Hi Ed,
I had test code in the factor file containing the distributed
concurrency implementation but it appears to have been removed. Pity.
receive
{
{ { ?from ?tag _ } [ `{ ?tag message received } ?from send process-1 ] }
{ _[ process-1 ] }
}
match-cond ;
Feel free to submit a patch to fix it.
Chris.
On Feb 6, 2008 9:39 PM, Eduardo Cavazos [EMAIL PROTECTED] wrote:
Chris,
This example is from the Synchronous Sends article in the Concurrency
documentation:
: pong-server ( -- )
receive {
{ { ?from ?tag ping } [ ?tag pong 2array ?from
It's a bug. It should do what promises do, and return the future value.
On Feb 6, 2008 9:56 PM, Eduardo Cavazos [EMAIL PROTECTED] wrote:
Chris,
Let's create this future:
[ 1 sleep hey ] future
Then dup it and wait for it:
dup ?future .
After a while I hey is printed. I still
On Feb 5, 2008 8:05 AM, Scott Brown [EMAIL PROTECTED] wrote:
Set 'rom-root' to the path containing the root of the 8080 ROM files.
Run this in the Factor listener:
space-invaders about
This explains what you need to do.
Chris.
--
http://www.bluishcoder.co.nz
On Dec 31, 2007 11:53 AM, Zed A. Shaw [EMAIL PROTECTED] wrote:
That sound like a good idea to anyone else? No offense to you Chris on
the code, it's just the one with the most usage and would be a good
test case.
Sure, go for it. Just don't commit it to the main repository since I
have a
On Dec 11, 2007 8:39 AM, Daniel Ehrenberg [EMAIL PROTECTED] wrote:
No, no one's tried to port Factor to Symbian OS, though the ARM
architecture is supported (for WinCE and Linux).
It's been awhile since I've done Symbian programming but I looked at
it a long long long time ago, back when Factor
On Nov 22, 2007 11:32 PM, Phil Dawes [EMAIL PROTECTED] wrote:
I noticed there's a regex engine in the unmaintained dir - is this the
best way of doing regexes in factor at the moment?
I generally use parser combinators to make up for the lack of regex
support. Doug is working on regexes though
On 10/24/07, Phil Dawes [EMAIL PROTECTED] wrote:
I was just wondering how other people develop code in factor to see if
I'm missing any tricks.
I do some quick testing/exploring in the REPL directly then when I'm
ready to actually develop a module I create the file under extra/ and
USE: it in
Looks like valid XML to me. Firefox parses it as XML.
Chris.
On 10/11/07, Slava Pestov [EMAIL PROTECTED] wrote:
Hi Samuel, Daniel and Chris:
Perhaps you guys can figure out what's wrong with this Atom feed. Is
it a bug in extra/xml or a bug in the blog software?
Any chance of:
boot.x86.32.image
boot.x86.64.image
etc
To make it easier to use the extension to get a list of images in a
directory, etc?
Chris.
On 7/30/07, Slava Pestov [EMAIL PROTECTED] wrote:
Hi all,
Boot images have been renamed:
boot.image.x86 = boot.image.x86.32
boot.image.amd64 =
On 5/24/07, Elie CHAFTARI [EMAIL PROTECTED] wrote:
I am releasing it because it can already serve the needs of a
web application. SMTP authentication and Base64 encoding will be by-products
of my upcoming work and will eventually be integrated.
Great stuff! Nice to see some new libraries
On 4/18/07, Csaba Henk [EMAIL PROTECTED] wrote:
Or maybe match-cond should be altered so
that the matching quotation is tail called?
Yes, this is an annoying problem and is the price to pay for the
convenience of being able to use ?foo to get the value of the 'foo'
pattern match in the
If all you want to test is coroutines, rather than the message passing
aspects of concurrency, you can use libs/coroutines:
libs/coroutines require
USE: coroutines
: gen ( -- co ) [ 10 [ over coyield 2drop ] each f swap coyield ] cocreate ;
: run ( co -- ) f swap coresume [ run ] [ drop ] if
I've pushed some code to my repository to allow playback of Ogg Theora
files (streaming video). It's a work in progress and has a few issues
but it at least displays some video on my machine.
Repository is http://www.bluishcoder.co.nz/repos/factor
Usage:
apps/ogg-player require
c:/test.ogg
Thanks Slava and Eduardo. Slava, I've made your changes and they work
fine. Eduardo, I used your forced redraw code and now the display
updates on slower machines. Thanks to both of you!
Patch pushed to my repository with these changes.
Chris.
--
http://www.bluishcoder.co.nz
There's no real 'factor' way of doing it. Feel free to work on however
you want to do it. At times I've used JQuery, Prototype and Yahoo's
libraries with Factor.
Fjsc uses jquery for example to send the factor code and receive the
compiled javascript code back. The continuation based web
On 3/22/07, Anton Rolls [EMAIL PROTECTED] wrote:
Oh no..! more trouble.
That's the joy of running of the darcs version. It's not always in a
runnable state. You might like to try checking on irc occasionally
before pulling darcs to see if it is stable.
Chris.
--
http://www.bluishcoder.co.nz
On 3/19/07, Anton Rolls [EMAIL PROTECTED] wrote:
: FSOUND_Init char fmod [EMAIL PROTECTED] { } alien-invoke ;
This says FSOUND_Init takes no arguments.
But the following you pass it three:
32000 64 0 FSOUND_Init . ! Problem here with Operating system signal 11
FSOUND_Init should probably
On 3/19/07, Anton Rolls [EMAIL PROTECTED] wrote:
Anton/fmod-version.factor run-file
Error
Assertion failed
assert-got3
assert-expect 2
This error means the code in the file left a value on the stack. Code
inside something that is run-filed should have an overall stack effect
of ( --
On another note, on Win32 with Factor 0.88. I tried several combinations to
get the httpd serve to run without the UI, no dice.
This is a known problem with the win32 implementation. It's best to
use the GUI from win32 as the console version doesn't work well with
socket i/o.
Ok, didnt know
On 3/6/07, Eduardo Cavazos [EMAIL PROTECTED] wrote:
The first time that foo.a is loaded from disk, the facts file is loaded too.
It would be nifty if the facts file could be loaded lazily. That is,
only when actually needed. I don't know how possible that is with the
current help system though.
On 1/20/07, bbrown [EMAIL PROTECTED] wrote:
Is there a MySQL factor driver in the works? I noticed the sqlite and
postgresql libs and those would be useful.
There is an odbc wrapper in libs/odbc. It has only been tested on
Windows but should be able to work under Linux with minor changes (the
In the system I changed it so foo is used as the variable.
Isn't using a symbol the right thing though? Using a string means you
can get clashes with any other file that uses the same string name as
a variable.
Chris.
--
http://www.bluishcoder.co.nz
On 1/10/07, Eduardo Cavazos [EMAIL PROTECTED] wrote:
If you have words like those and they mutate the foo in some way,
consider defining them with effects like so:
It really depends on usage. If you need to keep the results around,
using your convention it looks nice. If you don't then you get:
101 - 142 of 142 matches
Mail list logo