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 wrote

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] Peg Parser Definition

2020-11-23 Thread Chris Double
On Sun, Nov 22, 2020 at 2:44 PM Alexander Ilin wrote: > 1. Is it possible to convert a word defined with EBNF: into a word > returning a parser, or to somehow extract the parser from inside it? Is there > maybe an undocumented word that could help with that, like by making a > wrapper? You c

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: http://factor-language.

Re: [Factor-talk] concurrency.distributed under Windows

2018-01-06 Thread Chris Double
On Sat, Jan 6, 2018 at 1:18 PM, Alexander Ilin wrote: > > It seems that I overloaded the system somehow, but I don't see me doing > anything illegal. Can you guys help me figure out what's going on? I suspect you are overloading the network stack on your machine since you are sending data as fas

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: http://api.zeromq.org/2-1:zmq-poll

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 way to wait > for

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 apt-get install libgtkglext1

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 ? (but it's bad for grepabilit

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 following is equivalent:

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 Librar

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 script. So I tried t

[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 read the messages as th

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. -- http://bluishcoder.c

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 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] Trouble to run Factor on Fedora on X11

2015-02-06 Thread Chris Double
On Fri, Feb 6, 2015 at 12:11 PM, John Benediktsson wrote: > Are you able to share what is on the error dialog? I suspect it's this: "An error occurred while drawing the world T{ world f ~array~ ~array~ f f ~vector~ ~array~ ~debugger~ t t f This world has been deactivated to prevent cascading

Re: [Factor-talk] Multithreading in Factor

2014-11-20 Thread Chris Double
On Thu, Nov 20, 2014 at 8:24 AM, Andrea Ferretti 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 examples of current usage

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 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 while back on Concat

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: 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 t

Re: [Factor-talk] Running Factor under NixOS

2014-06-15 Thread Chris Double
On Fri, Jun 13, 2014 at 6:24 AM, John Porubek 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 builds fine. Problem

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 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 > objects have

Re: [Factor-talk] OAuth2 vocabulary?

2013-03-17 Thread Chris Double
On Mon, Mar 18, 2013 at 5:38 PM, Alexis Hazell 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 -

Re: [Factor-talk] callbacks in Factor?

2013-02-19 Thread Chris Double
On Wed, Feb 20, 2013 at 12:45 PM, CW Alston wrote: > > Interesting. Puzzling! Any insights welcome. IIRC It was deprecated because the new Furnace framework provided the same functionality in the 'asides' and 'conversation' features. There seemed no point maintaining two frameworks. Chris. -- h

Re: [Factor-talk] continuations and Factor's Furnace?

2013-02-14 Thread Chris Double
On Thu, Feb 14, 2013 at 6:58 PM, CW Alston wrote: > Have folks done any further work in this direction? I used to have a continuation based web framework in Factor. I have and old document about it here: This was eventually replaced when Furnace was develop

[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 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 is taken from an

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:

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 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 is used an

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 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 you have OpenAL

Re: [Factor-talk] TryRuby, etc.

2011-08-23 Thread Chris Double
On Wed, Aug 24, 2011 at 12:25 PM, Andrew Pennebaker 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 here: http://www.bluishcoder

Re: [Factor-talk] factor scripts

2011-05-10 Thread Chris Double
On Tue, May 10, 2011 at 9:19 PM, Kartik Agaram 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 USE:'d. You

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 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, yes. Chris. -- h

Re: [Factor-talk] newbie question: clone

2011-05-06 Thread Chris Double
On Sat, May 7, 2011 at 3:12 AM, Zhe Hu 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 stack. When typing

[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 h

Re: [Factor-talk] Number to String

2010-12-20 Thread Chris Double
On Tue, Dec 21, 2010 at 12:28 PM, beo wulf 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 'number>string' in math.parser. Chris. -- http://www.bluishcoder.c

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

2010-12-12 Thread Chris Double
On Sun, Dec 12, 2010 at 10:17 PM, Shaping 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 yourself if you want.

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 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] 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 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 = (!(alpha) .)+ Not

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 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 'string>number' and peg for 'ignore'. EBNF: parse-line di

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

2010-11-16 Thread Chris Double
On Wed, Nov 17, 2010 at 3:56 PM, Jeff C. Britton wrote: > Thanks, but now I want to do the reverse. first1, first2, first3, first4, firstn Chris. -- http://www.bluishcoder.co.nz -- Beautiful is writing same markup. Int

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 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 4 narray => {

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 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 -- Beautiful is writing sam

Re: [Factor-talk] Git

2010-11-14 Thread Chris Double
On Mon, Nov 15, 2010 at 12:55 PM, Shaping 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] Git

2010-11-14 Thread Chris Double
On Mon, Nov 15, 2010 at 12:47 PM, Shaping wrote: > Some of the doc says that your default branch is "master".  This is not > correct.  I just did a "git status" and see "Not currently on a branch" What they mean is when you first clone a repository you get a default branch called 'master'. And th

Re: [Factor-talk] Git

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 11:19 PM, Shaping wrote: > ...stores the code but not in your repo directories.  The code is retained > in some Git data file in the installation direction, I suppose. Yes. > > origin == original clone?  I guess not. 'origin' is the remote repository you originally clone

Re: [Factor-talk] Git fetch

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 10:40 PM, Shaping wrote: > Are you saying that fetch downloads a model of some remote committed code, > so that I can somehow view an abbreviated representation of that code, so > that I can later, at my convenience, select some or all of it and then > actually download the

Re: [Factor-talk] Furnace on Windows

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 10:08 PM, Shaping wrote: > > So why does this thing called a "fetch" exist, if it does not change repo > state? > It downloads all commits from the remote repository that you don't already have and stores it in a remote branch in your repository. What it doesn't do is chan

Re: [Factor-talk] Furnace on Windows

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 10:01 PM, Shaping 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 > ones. 'git add'

Re: [Factor-talk] Furnace on Windows

2010-11-14 Thread Chris Double
On Sun, Nov 14, 2010 at 9:55 PM, Shaping 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 your checked out

Re: [Factor-talk] Furnace

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 8:45 PM, Shaping 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 and see the name of t

Re: [Factor-talk] Furnace on Windows

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 8:52 PM, Chris Double 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 a

Re: [Factor-talk] Furnace on Windows

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 8:42 PM, Shaping 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) Clone the factor res

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

2010-11-13 Thread Chris Double
On Sun, Nov 14, 2010 at 11:00 AM, Shaping wrote: > You were missing two vocabs, at least, pehaps more.  I can't be sure until I > get past this  error, which is not specific.  The current problem does not > mention a word or a vocabulary; so I don't know what to fix. When you get the error do a '

Re: [Factor-talk] Docs and other topics

2010-11-11 Thread Chris Double
On Fri, Nov 12, 2010 at 8:01 PM, Shaping 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: http://www.bluishcoder.

Re: [Factor-talk] Docs and other topics

2010-11-11 Thread Chris Double
On Fri, Nov 12, 2010 at 12:09 AM, Balazs Toth wrote: > - is there some accumulated, readable documentation of Factor somewhere? Or > at least a cheat sheet about the various features of the language? The help > system is really nice and sufficient as it is if someone already knows what > he is

Re: [Factor-talk] PEGs

2010-11-11 Thread Chris Double
On Thu, Nov 11, 2010 at 9:26 PM, Shaping 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. -- http://www.blu

Re: [Factor-talk] PEGs

2010-11-10 Thread Chris Double
On Thu, Nov 11, 2010 at 1:18 AM, Shaping 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 for the peg.ebnf

Re: [Factor-talk] PEGs

2010-11-10 Thread Chris Double
On Wed, Nov 10, 2010 at 10:24 PM, Shaping wrote: > > Doing the immediate eval leaves What is an 'immediate eval'? I ask because the following should only come from a usage, not a EBNF: ... ;EBNF usage: > T{ parser f ~action-parser~ f 4820 } > How am I expected to use this notation?.  I read: 

Re: [Factor-talk] PEGs

2010-11-09 Thread Chris Double
On Wed, Nov 10, 2010 at 12:47 AM, Shaping 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: expr digit = '1'

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 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 Factor? Read t

Re: [Factor-talk] Building Factor

2010-10-31 Thread Chris Double
On Sun, Oct 31, 2010 at 10:56 PM, Shaping 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 a > correct INCLU

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 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 processes. There's a dis

Re: [Factor-talk] Wiki

2010-09-29 Thread Chris Double
On Wed, Sep 29, 2010 at 9:16 PM, John Sampson 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 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 defin

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

2010-09-22 Thread Chris Double
2010/9/22 Damian Dobroczyński : > 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 9:53 PM, Grisha Freilikhman 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. -- http://www.blui

Re: [Factor-talk] Channels vocab

2010-08-12 Thread Chris Double
On Thu, Aug 12, 2010 at 8:55 PM, Grisha Freilikhman 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 threads are cooper

Re: [Factor-talk] Lazy logops & Newbie question

2010-08-11 Thread Chris Double
> Factor `and' operators are working just with booleans from stack. So im > interested whats an idiomatic way to do things like this? Maybe it could be > useful to have lazy left-to-right logical operators that work on quotations > in standart library? I think the && smart short cirtcuit combinato

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 selec

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 p

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'

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 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 one of the other ba

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 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 stuff into the im

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

2009-11-22 Thread Chris Double
On Mon, Nov 23, 2009 at 5:36 AM, Stefan Scholl wrote: > > With just 1 Factor process, or multiple processes? Just one. My Linode 360 also runs other stuff as well as a Factor listener though and the (very simple) Factor webapp running on that has never had an issue. Chris. -- http://www.bluishc

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

2009-11-22 Thread Chris Double
On Sun, Nov 22, 2009 at 11:13 PM, Stefan Scholl wrote: > It's OK for a full blown web application to use as much RAM (or > more) like a default Factor installation incl. the listener. But > for small gimmicks (aka Mickey Mouse programs) on a small VPS I > need some ballpark figures. I run Factor

[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 t

[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

Re: [Factor-talk] More consistent word names

2009-10-28 Thread Chris Double
On Thu, Oct 29, 2009 at 10:32 AM, Doug Coleman 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 > confusing. I don't use i

Re: [Factor-talk] More consistent word names

2009-10-28 Thread Chris Double
On Thu, Oct 29, 2009 at 9:35 AM, Doug Coleman 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 -- Come build with us!

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 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 which is currently br

[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 ) 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 can get it now f

[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. Yo

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

2009-10-11 Thread Chris Double
On Mon, Oct 12, 2009 at 3:19 PM, Adam 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 it will be in the unm

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 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 you read any of the p

Re: [Factor-talk] append usage

2009-10-07 Thread Chris Double
On Thu, Oct 8, 2009 at 1:42 PM, Nicholas Spies 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. This is why it

[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 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. It's an interesting re

Re: [Factor-talk] list

2009-09-26 Thread Chris Double
On Sun, Sep 27, 2009 at 1:44 PM, Hugh Aguilar 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. -- http://www.bluishcoder.co.

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

2009-09-25 Thread Chris Double
On Sat, Sep 26, 2009 at 5:46 PM, Alex A. Naanou 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 correct type -- still s

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

2009-09-25 Thread Chris Double
On Sat, Sep 26, 2009 at 5:16 PM, Jon Harper 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 is to do development

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 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 some of the docu

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

2009-07-28 Thread Chris Double
On Wed, Jul 29, 2009 at 2:30 AM, Darrin Thompson 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 difficulties :-) Chris. --

Re: [Factor-talk] ICON-style generators

2009-07-16 Thread Chris Double
On Fri, Jul 17, 2009 at 2:20 PM, Hugh Aguilar wrote: > Does Factor have anything akin to the generators in the ICON language? Yes, Factor has continuations and this can be used to build generators. See the extra/coroutines and extra/partial-continuations vocabs for example. For a description on ho

Re: [Factor-talk] OOP tutorial

2009-05-26 Thread Chris Double
On 5/27/09, Hugh Aguilar wrote: > I have experience with LaTeX. When you guys are ready to write a tutorial, I > could be the technical writer. Factor used to have a handbook written in LaTeX but it was superceded by the help. Here's an old copy: http://bluishcoder.co.nz/handbook.pdf Chris. -

Re: [Factor-talk] Changes to core/

2009-05-25 Thread Chris Double
On 5/26/09, Doug Coleman wrote: > > Nothing else uses these words. How does that look? > You mean nothing in the Factor repository uses these words. There's a whole bunch of Factor code not in the repository that is affected by word renamings, etc. Please take this into account when you consider

Re: [Factor-talk] Hello world web app

2009-05-03 Thread Chris Double
On Sat, May 2, 2009 at 7:54 PM, Diego Martinelli 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 trace on these errors. It wi

  1   2   3   >