Re: [Factor-talk] Port on Z80 computers.

2021-11-24 Thread Chris Double
On Wed, Nov 24, 2021 at 9:30 PM yves gerey wrote: > > I'd like to port a lightweight language to a Z80-based computer older than > you (the Amstrad CPC 6128), and to CP/M as well if there is interest. A while back I played with using Factor to create and upload Z80 code to an MP3 player. I

Re: [Factor-talk] Peg Parsing Files

2020-11-23 Thread Chris Double
On Sun, Nov 22, 2020 at 6:15 AM Alexander Ilin wrote: > So, the question is, is it possible to use the peg vocab to create this > layered parsing architecture, where the first layer would consume a stream of > file input, and the second would consume a stream of tokens from the first > layer?

Re: [Factor-talk] Minimal VM?

2019-09-29 Thread Chris Double
On Sun, Sep 29, 2019 at 1:20 AM W-M wrote: > Are there any guides or other reference materials that > explain the architecture, setup and concepts behind the 'bootstrapping > compiler'? Slava's old blog might have some stuff, although keep in mind it could be out of date:

Re: [Factor-talk] ZeroMQ

2018-01-06 Thread Chris Double
On Sun, Jan 7, 2018 at 10:20 AM, Doug Coleman wrote: > You are right. You would have to use the zeromq nonblocking api, if it exists. There's zmq_poll which you could spawn in a factor thread and run with a low timeout to check if any zmq events are occurring:

Re: [Factor-talk] Wait for Thread

2017-12-20 Thread Chris Double
The easiest way might be to use futures: http://docs.factorcode.org/content/article-concurrency.futures.html eg: [ 42 ] future ?future . => 42 On Thu, Dec 21, 2017 at 10:44 AM, Alexander Ilin wrote: > Hello! > > If I spawn a thread using the threads:spawn word, is there a

Re: [Factor-talk] Shared Object File Not Found - Ubuntu 16.04

2017-05-02 Thread Chris Double
On Tue, May 2, 2017 at 9:05 PM, Kaveh Shahbazian wrote: > > Spent some time googling on the topic, so far failed to resolve this (not a > *nix Guru). > It seems fit to add instructions to resolve this for those who like to give > factor a spin. I think you need: sudo

Re: [Factor-talk] EBNF peg parser ensuring full parse

2017-01-17 Thread Chris Double
On Wed, Jan 18, 2017 at 4:24 AM, Jon Harper wrote: > > Should we add words to do this more easily ? > maybe > : parse* ( string parser -- ast remaining ) > : parse-all ( string parser -- ast ) ! throws when remaining not empty > > Maybe EBNF: can define several words ?

Re: [Factor-talk] maybe{

2016-12-24 Thread Chris Double
On Sun, Dec 25, 2016 at 12:21 AM, Alexander Ilin wrote: > > That's a very useful feature, and it seems to be there for five years! But > why is it not described or even mentioned? I don't know why it's not documented but it looks like an anonymous form of UNION:. The

Re: [Factor-talk] Headless Factor

2016-11-30 Thread Chris Double
On Thu, Dec 1, 2016 at 6:22 AM, John Benediktsson wrote: > I just removed the call to ``g_type_init``, which has been deprecated since > maybe glib 2.36. > > Want to give headless factor another try? That worked, thanks! -- http://bluishcoder.co.nz

[Factor-talk] Headless Factor

2016-11-29 Thread Chris Double
What libraries are needed for a headless Factor running on a VPS? I tried doing a "NO_UI=1 ./build.sh" but it fails at a point during the bootstrap wanting libgobject: 3: USING: io.pathnames sequences ui.images ; ^ Cannot resolve C library function

Re: [Factor-talk] Questions of a newcomer

2016-11-10 Thread Chris Double
On Thu, Nov 10, 2016 at 10:00 PM, wrote: > Any > more ideas why? Is run-process blocking everyone? Is there some FFI call > like you mentioned? Where could I start to debug this on my own? The only difference to what you are doing and what my test did was you're running as a

[Factor-talk] Distributed Messaging Fixes

2016-11-10 Thread Chris Double
I was working through my factor-articles document [1] to update with a recent Factor version and hit some issues with the distributed messaging functionality. I've done a pull request here: https://github.com/factor/factor/pull/1744 The issue was that for distributed messaging it really requires

Re: [Factor-talk] Questions of a newcomer

2016-11-08 Thread Chris Double
On Wed, Nov 9, 2016 at 4:02 AM, wrote: > > There are my last 2 attemps. The first, commented out version finishes > without waiting for the threads to finish (even with the ugly hack of > reading the state>> of the thread) while in the second the receiving > thread doesn't

Re: [Factor-talk] Chris Double's Weblog

2015-09-21 Thread Chris Double
On Mon, Sep 21, 2015 at 6:50 PM, Alexander Ilin wrote: > > I noticed your weblog is down. Are you going to bring it up, or is it dead > permanently? It's up for me: http://bluishcoder.co.nz What error are you getting? All the factor articles are back online now too. --

Re: [Factor-talk] connection to listener dropping in fuel mode in emacs

2015-02-09 Thread Chris Double
On Mon, Feb 9, 2015 at 5:30 PM, Michael Maul mike.m...@gmail.com wrote: Also seems I canont comment the #concatenative chennel on freenode I think #concatenative requires you to be a registered user on freenode. -- http://bluishcoder.co.nz

Re: [Factor-talk] Multithreading in Factor

2014-11-20 Thread Chris Double
On Thu, Nov 20, 2014 at 8:24 AM, Andrea Ferretti ferrettiand...@gmail.com wrote: I am trying to make this work, but I have issues with the line myhost.com 9001 start-server Looks like the API for starting servers/nodes has changed quite a bit. If you look at the following file you'll see

Re: [Factor-talk] Pattern matching and Algebraic Data Types

2014-10-19 Thread Chris Double
On Mon, Oct 20, 2014 at 7:55 AM, Michael Clagett mclag...@hotmail.com wrote: I am about to familiarize myself with whatever facilities exist for working with Algebraic Data Types and pattern matching in the vein of what Languages like Haskell and ML provide. Dan had a nice article from a

Re: [Factor-talk] Multithreading in Factor

2014-10-18 Thread Chris Double
ZeroMQ has a non-blocking mode. You can get a file descriptor that can be passed to select/epoll/kqueue. Factor has its own channel and serialization system to. See: http://docs.factorcode.org/content/article-remote-channels,remote-channels.html On Sun, Oct 19, 2014 at 4:30 AM, Andrea Ferretti

Re: [Factor-talk] Factor IO similar to Node?

2014-07-09 Thread Chris Double
A Factor instance runs in a single thread. Blocking operations are done either using non blocking sockets or similar async i/o methods. Task switching occurs on i/o wait or explicit yielding. APIs like ZeroMQ must be wrapped in Factor such that they use the non-block functionality of that API. In

Re: [Factor-talk] Running Factor under NixOS

2014-06-15 Thread Chris Double
On Fri, Jun 13, 2014 at 6:24 AM, John Porubek jporu...@gmail.com wrote: So my question for Chris, or anyone else who feels like chiming in, is: What problems am I likely to encounter in getting Factor to run under NixOS? You shouldn't have problems building from source. I just tested and it

Re: [Factor-talk] Serialisation with a JSON representation

2013-07-11 Thread Chris Double
On Thu, Jul 11, 2013 at 6:45 PM, Loryn Jenkins lor...@gmail.com wrote: 1. I'm using first4 to retrieve the members of the tuple from the JSON representation, placing them on the stack, so they can form an input to boa. How would I retrieve an arbitrary number of slots onto the stack? (i.e. For

Re: [Factor-talk] OAuth2 vocabulary?

2013-03-17 Thread Chris Double
On Mon, Mar 18, 2013 at 5:38 PM, Alexis Hazell alexis.haz...@gmail.com wrote: Do HTTPS requests require using the openssl vocab to manually wrap each request? To do https requests you need to first load the urls.secure vocab: USE: urls.secure Chris. -- http://www.bluishcoder.co.nz

[Factor-talk] Factor downloads broken

2012-10-16 Thread Chris Double
downloads.factorcode.org seems to be broken and there have been quite a few people asking in IRC how to get a working copy of factor - unfortunately there seems to be no way to get boot images other than from IRC lurkers. Is the download server recoverable? -- http://www.bluishcoder.co.nz

Re: [Factor-talk] Quick Question For Chris Double

2012-08-24 Thread Chris Double
On Fri, Aug 24, 2012 at 11:29 PM, Michael Clagett mclag...@hotmail.com wrote: Back in December of 2006 in one of your articles on Parser Combinators you reference a Chapter 5 on Parser Combinators from some larger work. This is a nice article and it leads to wonder what the source is that it

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

2012-08-22 Thread Chris Double
There also was fjsc. Not sure if it still works but the source is in the repository somewhere: http://www.bluishcoder.co.nz/2006/12/cross-domain-json-with-fjsc.html http://www.bluishcoder.co.nz/2006/12/continuations-added-to-fjsc.html

Re: [Factor-talk] Can't get Space Invaders to run

2011-09-20 Thread Chris Double
On Wed, Sep 21, 2011 at 9:45 AM, John Porubek jporu...@gmail.com wrote: I have libopenal1 installed on my Ubuntu 10.10 system. I checked in openal.factor and it's looking for libopenal.so. My file is libopenal.so.1, so I changed openal.factor to use this version. I also notice that openal.alut

Re: [Factor-talk] Can't get Space Invaders to run

2011-09-19 Thread Chris Double
On Tue, Sep 20, 2011 at 7:39 AM, John Porubek jporu...@gmail.com wrote: running run-invaders gives me the error message The image refers to a library or symbol that was not found at load time. Typing: rom-root :get The error message is probably referring to missing OpenAL sound libraries. Do

Re: [Factor-talk] TryRuby, etc.

2011-08-23 Thread Chris Double
On Wed, Aug 24, 2011 at 12:25 PM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Has anyone made an interactive online tutorial for Factor comparable to TryRuby? I used to run an Factor to JavaScript instance online. I think the code 'fjsc' still in the repository. Blog posts about it

Re: [Factor-talk] factorcode.org needs a favicon

2011-05-10 Thread Chris Double
On Tue, May 10, 2011 at 8:40 PM, Kartik Agaram a...@akkartik.com wrote: Ah I hadn't seen that. Yeah anything's fine. I did a quick try at fitting the raptor in 16x16, but if someone can pull that off, great! (misc/icons/Factor.ico is 48x48 - will browsers accept it?) They should accept it,

Re: [Factor-talk] factor scripts

2011-05-10 Thread Chris Double
On Tue, May 10, 2011 at 9:19 PM, Kartik Agaram a...@akkartik.com wrote: $ echo 2 2 + |./factor This runs the code piped to the listener, which has a number of vocabularies automatically USE:'d. $ echo 2 2 + x; ./factor x This reads the file and runs that. This never has vocabs automatically

Re: [Factor-talk] newbie question: clone

2011-05-06 Thread Chris Double
On Sat, May 7, 2011 at 3:12 AM, Zhe Hu iammegat...@gmail.com wrote: what's the difference between: V{ } clone 3 suffix! V{ } 3 suffix! I guess my question is why do we need clone, since it takes one object, but puts back just one object. V{ } creates a literal vector and pushes it on the

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

2011-02-13 Thread Chris Double
Just a heads up that the Factor wikipedia page has been flagged as possibly not being notable and may be deleted: http://en.wikipedia.org/wiki/Factor_%28programming_language%29 Someone is going on a crusade to delete non-notable languages with a few pages already deleted or up for deletion. See

Re: [Factor-talk] Number to String

2010-12-20 Thread Chris Double
On Tue, Dec 21, 2010 at 12:28 PM, beo wulf beow...@intamp.com wrote:   how do I convert a number to a string? The intuitive try is string, but this appears to only be seq - string, rather than a generic of: anything - string There's a 'numberstring' in math.parser. Chris. --

Re: [Factor-talk] Parsing problem in EBNF:

2010-12-12 Thread Chris Double
On Sun, Dec 12, 2010 at 10:17 PM, Shaping shap...@charter.net wrote: to have the parsing work correctly.  Can you fix this to allow the newline character to be parsed as whitespace? I tried to fix this once before but wasn't able to for reasons I don't quite remember. Feel free to attack it

Re: [Factor-talk] How do I construct a sequence from values onthestack

2010-11-17 Thread Chris Double
On Thu, Nov 18, 2010 at 12:52 PM, Jeff C. Britton j...@iteris.com wrote: I have a string that I want to match against a regular expression. However, group capture is not supported :( Here's an approach using peg.ebnf. You'll also need math.parser for 'stringnumber' and peg for 'ignore'. EBNF:

Re: [Factor-talk] How do I construct a sequence from valuesonthestack

2010-11-17 Thread Chris Double
On Thu, Nov 18, 2010 at 1:42 PM, Jim mack j...@less2do.com wrote: I'm having trouble with !  Is there some combination of ![a-zA-Z0-9]+ that will match white-space or punctuation? There's a few ways you can do it. You should be able to use parenthesis to use '!': alpha = [a-zA-Z0-9] rule =

Re: [Factor-talk] How do I construct a sequence from valuesonthestack

2010-11-17 Thread Chris Double
On Thu, Nov 18, 2010 at 1:53 PM, Jim mack j...@less2do.com wrote: ws = | \t = [[ string whitespace boa ]] Change this to: ws = ( | \t) = [[ string whitespace boa ]] In the first case the = is binding to the \t part of the clause. Chris. -- http://www.bluishcoder.co.nz

Re: [Factor-talk] Integrating Browser functionality into Listener: John Benediktsson's Syntax Highlighting

2010-11-16 Thread Chris Double
On Tue, Nov 16, 2010 at 11:07 PM, Shaping shap...@charter.net wrote: I can't find any info in Browser on quot:. http://docs.factorcode.org/content/article-effects.html Chris. -- http://www.bluishcoder.co.nz --

Re: [Factor-talk] How do I construct a sequence from values on the stack

2010-11-16 Thread Chris Double
On Wed, Nov 17, 2010 at 2:56 PM, Jeff C. Britton j...@iteris.com wrote: What “word” do I need? There are worlds like 1array, 2array, 3array and 4array to produce an array from that many items on the stack. There is also 'narray' which is a generalisation of these for any number. eg: 2 4 8 16 32

Re: [Factor-talk] Furnace on Windows

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 9:55 PM, Shaping shap...@charter.net wrote: Right now I need to recover from a fetch origin. You don't need to recover from a 'fetch'. What that does is it downloads the stuff you don't yet have and stores it internally in a 'remote' branch. It makes no changes at all to

Re: [Factor-talk] Furnace on Windows

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 10:01 PM, Shaping shap...@charter.net wrote: I know.  I'm concerned about possible collisions with modified stock code. I think the point Chris is making in his step 2 is that these changes need to be committed, first, but he did not mention old directories , only new

Re: [Factor-talk] Git

2010-11-14 Thread Chris Double
On Mon, Nov 15, 2010 at 12:55 PM, Shaping shap...@charter.net wrote: So Git GUI makes the master branch by default, but does not put you on it. Why is that a good thing to do? I have no idea, sorry. I stick with the command line. Chris. -- http://www.bluishcoder.co.nz

Re: [Factor-talk] Furnace

2010-11-13 Thread Chris Double
I tried it and got the same error.  :c shows this: Factor is not finding or loading the sqlite DLL. Are you sure you've installed the DLL that Factor is expecting? Chris. -- http://www.bluishcoder.co.nz -- Centralized

Re: [Factor-talk] Furnace on Windows

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 8:42 PM, Shaping shap...@charter.net wrote: I have not convince myself yet that Git will keep old changes separate from those from the new update. I only know the command line so I'll give you command line tips and you can translate them to equivalent GUI commands. 1)

Re: [Factor-talk] Furnace on Windows

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 8:52 PM, Chris Double chris.dou...@double.co.nz wrote: 2) In this repository you make your own changes, including adding stuff to the work directory, editing files, etc. Now you want to save those in git so you can update safely.  git add work/my-new-vocab/*  git add

Re: [Factor-talk] Furnace

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 8:45 PM, Shaping shap...@charter.net wrote: I placed all three files in the Factor directory. Are they Win 32 or Win 64 versions? Where did you get the files from? Do they have the same names as what the sqlite vocab is expecting? you can look in the sqlite.factor file

Re: [Factor-talk] PEGs

2010-11-11 Thread Chris Double
On Thu, Nov 11, 2010 at 9:26 PM, Shaping shap...@charter.net wrote: How do I use the keyboard keys to cycle back through old expressions? Currently I have to scroll to the old position and double-click to re-enter it. http://docs.factorcode.org/content/article-ui-listener.html Chris. --

Re: [Factor-talk] Docs and other topics

2010-11-11 Thread Chris Double
On Fri, Nov 12, 2010 at 8:01 PM, Shaping shap...@charter.net wrote Chris, I like your document, even though it is out of date. Just to be clear the handbook.pdf is Slava's document. I just generated it from the original source. I did produce this one which is a collection of my blog posts:

Re: [Factor-talk] PEGs

2010-11-10 Thread Chris Double
On Thu, Nov 11, 2010 at 1:18 AM, Shaping shap...@charter.net wrote: I've noticed that the online EBNF help is not the same as that in the local Help Browser. It is the same, except for possible minor differences between Factor versions. If you go: peg.ebnf about You will get the 'about' page

Re: [Factor-talk] Furnace, XStreams (PEGs) and some observations about Factor

2010-11-09 Thread Chris Double
On Tue, Nov 9, 2010 at 9:38 PM, Shaping shap...@charter.net wrote: I need to be able to write a parser in a straightforward way (XStreams-style maybe) using a PEG (collection of BNF productions) so that I can experiment efficiently with this idea.  Does anyone have any experience with PEGs in

Re: [Factor-talk] PEGs

2010-11-09 Thread Chris Double
On Wed, Nov 10, 2010 at 12:47 AM, Shaping shap...@charter.net wrote: I tried the first two yellow blocks in this article http://www.bluishcoder.co.nz/2007/11/embedded-grammars-in-factor.html The syntax has changed quite a bit since that post. The example would now be something like: EBNF:

Re: [Factor-talk] Factor text-editor text-styler and formatter; building Factor

2010-10-31 Thread Chris Double
On Sun, Oct 31, 2010 at 8:56 PM, Shaping shap...@charter.net wrote: Does anyone use a socket pair to connect two communicating VMs, whether they are running in one OS in two threads or in two OS processes?  If so, is there some example code? There are libraries for communicating across

Re: [Factor-talk] Building Factor

2010-10-31 Thread Chris Double
On Sun, Oct 31, 2010 at 10:56 PM, Shaping shap...@charter.net wrote: I'm still looking for the solution to my build problem.  The newly installed Windows 7 SDK and .NET 4.0 should be able to cooperate with newly installed Visual Studio 2010 Ultimate, but I cannot even get  nmake to acknowledge

Re: [Factor-talk] Wiki

2010-09-29 Thread Chris Double
On Wed, Sep 29, 2010 at 9:16 PM, John Sampson jrs@ntlworld.com wrote: Factor looks to an outsider as if it could be quite interesting but on trying to explore the Wiki on features there are only blank pages. Most of the good stuff is in the online docs: http://docs.factorcode.org Chris.

Re: [Factor-talk] Change click behavior for syntactic token to link to docs for main syntax word?

2010-09-23 Thread Chris Double
On Thu, Sep 23, 2010 at 10:48 PM, Joe Groff arc...@gmail.com wrote: I think this behavior would also suit closing delimiters, such as }, ], ;, and so on. The documentation for these words themselves is pretty useless—usually, people are going to want to see the documentation for the actual

Re: [Factor-talk] Web app examples - address already in use [newbe question]

2010-09-22 Thread Chris Double
2010/9/22 Damian Dobroczyński qoo...@gmail.com: My system is Ubuntu 10.04 and is sane. Did you have similar issues before? Please, help. I get this same issue on Ubuntu 10.04. Can you share the workaround you did to stop the ipv6 binding? Chris. -- http://www.bluishcoder.co.nz

Re: [Factor-talk] Channels vocab

2010-08-12 Thread Chris Double
On Thu, Aug 12, 2010 at 8:55 PM, Grisha Freilikhman grish...@gmail.com wrote: on the same channel with senders and receivers vectors are empty. S: checks if receivers vector empty = push itself to the senders vector, just before the suspend word processed     R thread get control. Factor

Re: [Factor-talk] Channels vocab

2010-08-12 Thread Chris Double
On Thu, Aug 12, 2010 at 9:53 PM, Grisha Freilikhman grish...@gmail.com wrote: And there is no way that two threads will be running simultaneously (On multi-core processors) ? Correct. The only way (at the moment) to utilize multiple cores is to fork or spawn another Factor instance. Chris. --

Re: [Factor-talk] A proof of concept: scripting Factor with jQuery

2010-04-08 Thread Chris Double
On 09/04/10 10:36, Henrik Huttunen wrote: For the lulz I created a simple jQuery interface for Factor-javascript interpreter. Instead of using text/html as the type attribute of the script element why not use something like application/x-factor or someother factor-ish tag? You can then select

Re: [Factor-talk] Factor educational tools

2010-03-27 Thread Chris Double
On 03/28/2010 2:26 AM, Henrik Huttunen wrote: A suggestion: did you have a look at the fjsc vocab? I don't know whether it's functional but it's in extra, so there may be some hope. I don't think I've familiar with that vocab. fjsc is a factor to javascript compiler. I have blog posts

Re: [Factor-talk] MS-SQL

2010-03-10 Thread Chris Double
On 03/11/2010 12:25 AM, Paul Moore wrote: Hmm, looks like I may have been wrong. I was working from http://www.bluishcoder.co.nz/2007/01/odbc-interface-for-factor.html but that looks like it's out of date as I can't find anything in the current factor codebase. It's in 'unmaintained/odbc' in

Re: [Factor-talk] Error deploying webapps.ip (Linux)

2009-11-23 Thread Chris Double
On Mon, Nov 23, 2009 at 11:09 PM, Stefan Scholl ste...@no-spoon.de wrote: Just the speed concerns me a bit. webapps.calculator uses the sqlite database backend which is quite slow (sqlite isn't slow but for some reason using it as the web database for Factor it is). Try either changing this to

Re: [Factor-talk] Error deploying webapps.ip (Linux)

2009-11-22 Thread Chris Double
On Mon, Nov 23, 2009 at 8:53 PM, Stefan Scholl ste...@no-spoon.de wrote: OK, thanks for the information. Listener it is then, instead of a deployed application. Maybe an image with all the web stuff already compiled in, to speed up server restarts. Yes, you definitely want to compile the web

[Factor-talk] Changes to concurrency.distributed and channels.remote

2009-10-29 Thread Chris Double
I've added some documentation for concurrency.distributed that includes an example on how to use it. This can be accessed when browsing the help for that vocab or through: concurrency.distributed.example help It is a reworking of the stuff I wrote in my original blog post to account for recent

[Factor-talk] Update to Factor Articles PDF

2009-10-29 Thread Chris Double
I've updated my Factor Articles PDF file to fix bitrot that has occurred since Factor 0.92. The first few articles now work with latest git. This includes a fixed up example of using remote channels. The PDF can be obtained from: http://bluishcoder.co.nz/factor-articles.pdf The LaTeX source for

Re: [Factor-talk] More consistent word names

2009-10-28 Thread Chris Double
On Thu, Oct 29, 2009 at 9:35 AM, Doug Coleman doug.cole...@gmail.com wrote: I removed a couple of unused words: remove-all and substitute-here. How do you know they're unused? Chris. -- http://www.bluishcoder.co.nz

Re: [Factor-talk] More consistent word names

2009-10-28 Thread Chris Double
On Thu, Oct 29, 2009 at 10:32 AM, Doug Coleman doug.cole...@gmail.com wrote: I used grep.  I can add substitute-here as substitute! if you'd like. Remove-all, if it's useful at all, should be renamed to something else since sequences:remove is something quite different, and the name was

Re: [Factor-talk] messaging between native vm threads

2009-10-26 Thread Chris Double
On Mon, Oct 26, 2009 at 8:37 PM, Bruce Breeanna Rennie bren...@dcsi.net.au wrote: Factor already has the ability to communicate with another server remotely using TCP/IP. There's a concurrency.distributed vocab allowing sending messages between VM's (uses sockets). Also a channels.remote

[Factor-talk] Documentation for the peg.ebnf vocabulary

2009-10-18 Thread Chris Double
I've finally written some documentation for the peg.ebnf vocabulary. This documents the various ways of using it (EBNF:, [EBNF ... ENBF] and EBNF ... EBNF) as well as the syntax for the EBNF language. Let me know (or provide patches!) if I left anything out or if anything is badly written. You

[Factor-talk] Fixed some unmaintained vocabs

2009-10-15 Thread Chris Double
I fixed the bitrot in some of the vocabs that were moved to unmaintained a while back. The first is fjsc, the Factor to JavaScript compiler. You can pull the fix from the 'fjsc' branch of git://double.co.nz/git/factor.git. This mainly fixes the webapp, porting it to the newer Furnace framework.

Re: [Factor-talk] Factor Versus Forth --- the book

2009-10-11 Thread Chris Double
On Mon, Oct 12, 2009 at 3:19 PM, Adam hiat...@gmail.com wrote: Somewhere in extra is an 8080 emulator written by Chris Double that can even play simple game ROMs like Space Invaders. I even had it running an 8080 Forth, inside Factor. If it has fallen out of maintenance

Re: [Factor-talk] Factor Versus Forth --- the book

2009-10-10 Thread Chris Double
On Sun, Oct 11, 2009 at 11:44 AM, Hugh Aguilar hugoagui...@rosycrew.com wrote: I have an updated version. Please read it through all the way, rather than just go to the new sections, as there is a lot of rewriting throughout. Thanks for your continued help in improving this documentation. Have

Re: [Factor-talk] append usage

2009-10-07 Thread Chris Double
On Thu, Oct 8, 2009 at 1:42 PM, Nicholas Spies nsp...@verizon.net wrote: All this is well and good, but since this use of 5 instead of a sequence doesn't seem to be documented, should this use be avoided, or celebrated as an undocumented feature :-)  ? Numbers implement the sequence protocol.

[Factor-talk] Amazon S3 vocab

2009-10-06 Thread Chris Double
A while back I wrote a vocab for using Amazon S3 (Simple Storage Service) from Factor so I could archive tinyvid videos on S3. I've tidied this up a bit and made it available. It's in the 's3' branch of my git repository: git://double.co.nz/git/factor.git Hopefully it can be included in the main

Re: [Factor-talk] Factor vs. Forth --- the book

2009-10-05 Thread Chris Double
On Tue, Oct 6, 2009 at 2:50 PM, Hugh Aguilar hugoagui...@rosycrew.com wrote: Well, I've taken a stab at writing some documentation comparing Factor to Forth. Take a look at this (www.rosycrew.org/FactorVsForth.dvi) and let me know if this is going in a direction that you think will be useful.

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

2009-09-26 Thread Chris Double
On Sat, Sep 26, 2009 at 5:16 PM, Jon Harper jon.harpe...@gmail.com wrote: A workaround to this problem is to use factor's online documentation docs.factorcode.org, which has all the vocabularies loaded.But this requires an Internet connection and the factor ui looks better. Another workaround

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

2009-09-26 Thread Chris Double
On Sat, Sep 26, 2009 at 5:46 PM, Alex A. Naanou alex.na...@gmail.com wrote: BTW, still on the documentation topic, a type/object registry or tagging of entities in the library/docs would also be a boost in productivity.right now, it is simpler to find a correct interface/protocol than a

Re: [Factor-talk] list

2009-09-26 Thread Chris Double
On Sun, Sep 27, 2009 at 1:44 PM, Hugh Aguilar hugoagui...@rosycrew.com wrote: None of the spliting functions take an index however. All of them are splitting on a particular subsequence. I think you want 'cut' or 'cut*'. This is in the Subsequences and Slices part of the help. Chris. --

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

2009-09-25 Thread Chris Double
On Sat, Sep 26, 2009 at 8:49 AM, Alex A. Naanou alex.na...@gmail.com wrote: so, as a relatively typical newcomer to the language I'll be stumbling on typical common pitfalls, IMHO, it would be useful to fix them, so, I'm offering to: 1) document my journey and learning process and 2) writeup

Re: [Factor-talk] Defeated by a sample loop

2009-07-28 Thread Chris Double
On Wed, Jul 29, 2009 at 2:30 AM, Darrin Thompsondarri...@gmail.com wrote: I was bothered by the nagging idea that there was probably an important utility somewhere I was missing. In cases like this I run screaming to the locals vocab thereby at least removing the unbalanced branches

Re: [Factor-talk] Hello world web app

2009-05-03 Thread Chris Double
On Sat, May 2, 2009 at 7:54 PM, Diego Martinelli martinelli.di...@gmail.com wrote: Also, how can I inspect such erroneous responses to see what's really happening? Set the global variable development? to true: t development? set-global Do this form the listener. It will result in a stack

Re: [Factor-talk] question about [] [] if

2009-05-01 Thread Chris Double
On Sat, May 2, 2009 at 9:21 AM, Hugh Aguilar hugoagui...@rosycrew.com wrote: My understanding is that the if function does the first combinator for nonzero numbers and the second combinator for zero numbers. The first combinator is run for true values and the second for false values. Instead of

[Factor-talk] Error starting factor GUI on Arch Linux

2009-04-17 Thread Chris Double
I have an error starting the Factor GUI on Arch since updating the latest code: $ ./factor X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 1 (X_CreateWindow) Serial number of failed request: 30 Current serial number in output stream: 31

Re: [Factor-talk] A helpful Google Alert search string for Factor

2009-04-12 Thread Chris Double
Slava should obviously have called the language something like 742f32c65ffd18b766fa307f8de2d47d. Actually that one's not so good either ;) Chris. -- http://www.bluishcoder.co.nz -- This SF.net email is sponsored by:

Re: [Factor-talk] Mnemonic for cleave/spread/etc?

2009-03-31 Thread Chris Double
On Wed, Apr 1, 2009 at 1:43 PM, Adam hiat...@gmail.com wrote: Slava's talk graphics help: Also this is useful: http://elasticdog.com/2008/12/beginning-factor-shufflers-and-combinators/ Chris. -- http://www.bluishcoder.co.nz

Re: [Factor-talk] Sequence initialisation.

2009-03-28 Thread Chris Double
On Sat, Mar 28, 2009 at 7:39 PM, Mariusz Nowostawski mari...@nowostawski.org wrote: How I can make the word myinit to always leave { 0 0 } on top of the stack, regardless of how that sequence is being later manipulated in-between? : myinit ( -- seq) { 0 0 } clone ;

[Factor-talk] Factor http cookie bug

2009-03-05 Thread Chris Double
My server was failing some HTTP requests, sending an error back to the client. Some investigation showed the following type of cookie being sent by the client was the problem: Cookie: __s=12345567; Note the ';' at the end. No space or anything following it. This causes a PEG parsing error that

Re: [Factor-talk] input, output and stack display panes in Factor.app

2009-03-05 Thread Chris Double
On Fri, Mar 6, 2009 at 1:41 AM, Svetoslav Agafonkin svet...@gmail.com wrote:  How can I configure Factor.app to use the 3 panes on startup? The UI changed a while ago and it no longer has the three panes. It's changing again soon apparently so don't get too familiar with the current look :-)

[Factor-talk] Bug in Furnace header handling

2009-03-01 Thread Chris Double
There appears to be a bug in the way Furnace is handling headers. I've attached a simple webapp that demonstrates it. Put this app in a extra/webapps/badapp directory. Then do: USE: webapps.badapp badapp main-responder set-global [ httpd ] in-thread From a shell: wget -S

[Factor-talk] Farkup and nofollow

2009-02-28 Thread Chris Double
While adding the ability to enter video descriptions in tinyvid I noticed what I think is a bug in Farkup. The t:farkup component has an option to make sure links have the 'nofollow' attribute. When the farkup is rendered this comes out as: a href=http://tinyvid.tv; nofollow=trueTinyVid!/a The

Re: [Factor-talk] multi-methods

2009-02-03 Thread Chris Double
On Wed, Feb 4, 2009 at 1:27 PM, Eduardo Cavazos wayo.cava...@gmail.com wrote: It's an important issue for me. The switch to multi-methods is going to be one of those tectonic shifts in the code base. I'm a little reluctant to begin a large project if this switch over is around the corner. I'd

Re: [Factor-talk] Vocabularies moved to unmaintained

2009-01-29 Thread Chris Double
On Fri, Jan 30, 2009 at 2:24 PM, Daniel Ehrenberg micro...@gmail.com wrote: Unfortunately, I had to move some vocabularies to unmaintained because help-lint has been broken on them for some time. Do the projects work and it's just warnings to do with their documentation? Chris. --

Re: [Factor-talk] Parsing - retain stack overflow

2009-01-18 Thread Chris Double
On Mon, Jan 19, 2009 at 3:35 AM, Paul Moore p.f.mo...@gmail.com wrote: Odd, since I'm running on Windows myself. I just downloaded the latest Windows x86 build and ran factor.exe no problem. It's an issue with my machine and the software on thinkpad laptops from what we can gather. Something

Re: [Factor-talk] Parsing - retain stack overflow

2009-01-18 Thread Chris Double
On Mon, Jan 19, 2009 at 2:22 PM, John Pallister j...@synchromesh.com wrote: Did you manage to incorporate everything you found interesting about OMeta into your Factor PEG code? I'm mainly looking at being able to parse streams of data and do partial parses. This is to allow parsing large

Re: [Factor-talk] Problem with regexp

2009-01-17 Thread Chris Double
On Sun, Jan 18, 2009 at 6:09 AM, Daniel Ehrenberg micro...@gmail.com wrote: Regexp group caputure hasn't been fully debugged yet. You should try using some other parsing mechanism, like pegs. Hopefully this will be fixed soon. For peg.ebnf it would look something like: em123/em [EBNF rule=em

Re: [Factor-talk] Parse time greeting?

2008-12-21 Thread Chris Double
On Sun, Dec 21, 2008 at 11:16 PM, Jon Kleiser jon.klei...@usit.uio.no wrote: ...$ ./Factor.app/Contents/MacOS/factor -run=listener ( scratchpad ) : hello Hello world print ; parsing ( scratchpad ) hello Hello world I believe that's how it's supposed to work. Now do: : foo hello ; and see

Re: [Factor-talk] Some more FUEL feedback

2008-12-13 Thread Chris Double
On Sun, Dec 14, 2008 at 2:09 PM, Slava Pestov sl...@factorcode.org wrote: In fact C: does not begin a form, it just reads the next two tokens, so it should not affect indent. I wonder if there's a way to embed this information in Factor itself. Maybe as word properties? Then any editor can

Re: [Factor-talk] http.client pull request

2008-12-10 Thread Chris Double
On Thu, Dec 11, 2008 at 6:56 PM, Slava Pestov [EMAIL PROTECTED] wrote: Also Doug is working on a big overhaul of the form submission code which supports multipart forms, as well as a better API for POST requests in general. Expect this to land in the next few days. Is there a description of

Re: [Factor-talk] A couple of new language features

2008-12-09 Thread Chris Double
On Tue, Dec 9, 2008 at 8:34 PM, Slava Pestov [EMAIL PROTECTED] wrote: Try doing that in Lisp or Haskell! Since you asked :-) Haskell's syntax actually makes this work quite nice enough to get pretty close. Given a function 'while' in Haskell: while s pred body tail And a function doo ('do' is

Re: [Factor-talk] An example for aspiring gadget writers

2008-11-27 Thread Chris Double
On Thu, Nov 27, 2008 at 11:34 PM, John Pallister [EMAIL PROTECTED] wrote: Creativity is great once you've mastered the idiom. Otherwise you just get bad poetry. Ed creates the idioms. Many of the idioms in Factor that we use today stem directly from things that Ed came up with and some of us

  1   2   >