[Factor-talk] pull request

2010-07-31 Thread Sam Anklesaria
Coming back to factor after a year, I found the majority of my old contributions had stopped working and were relegated to unmaintained. The updated and improved versions now live here: http://github.com/bogiebro/factor. Could this be pulled? Thanks, Sam --

Re: [Factor-talk] Immutable types?

2010-02-19 Thread Sam Anklesaria
Tuple slots can be declared immutable with the read-only word: TUPLE: foo { a read-only } ; I suppose if you wanted the entire tuple, you could do something like: SYNTAX: IMMUTABLE-TUPLE: parse-tuple-definition [ dup array? [ read-only suffix ] [ read-only 2array ] if ] map define-tuple-

[Factor-talk] bug in macosx services support

2010-02-09 Thread Sam Anklesaria
The "Evaluate in listener" and "Evaluate selection" services that factor offers in macosx have stopped working in a recent version. Is anyone else having this problem? Any idea why this might have occurred? -- SOLARIS 10

[Factor-talk] sequences.extra

2009-09-26 Thread Sam Anklesaria
Dan, I've made the cleanups you suggested to sequences.extras and combined them with the core sequences vocab. The reduce* word, by the way, only exists to give normal reduce a static stack effect. My git repo*, however, also contains some larger changes to the UI framework: I've replaced the man

Re: [Factor-talk] sequences.extra

2009-09-16 Thread Sam Anklesaria
Hello, Yes, I would be interested in cleaning up sequences.extras. That said, I won't be able to get around to it any time soon. Sam Daniel Ehrenberg wrote: > Sam, > > I noticed your sequences.extras vocab. It looks like it does some > useful things that aren't in the sequences vocab, but some

[Factor-talk] unifying incremental layouts

2009-08-10 Thread Sam Anklesaria
In trying to create a layout protocol (such that all layout gadgets could be added to with the same words) I've gotten rather stumped over the issue of incremental layouts. Although the protocol is very much a work in progress, and I don't know if this will ever actually be used, I would appreciat

Re: [Factor-talk] another basis/ui proposal

2009-08-07 Thread Sam Anklesaria
I changed my mind on some things when I experimented a bit. Here's a rough draft: http://paste.factorcode.org/paste?id=813 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify

[Factor-talk] another basis/ui proposal

2009-08-07 Thread Sam Anklesaria
Sorry, but I'm muddying the waters again- as before, please respond with feedback. Attempting to add a gadget to a layout agnostic to its type is currently impossible. This makes all general purpose gadget layout code a big hack (see my gadgets.layout for examples.) Why? Many layout gadgets ke

[Factor-talk] basis/ui questions

2009-08-06 Thread Sam Anklesaria
The extra vocab ui.gadgets.controls contains a lot of random stuff (with no relation to each other than concerting gadgets) which are each too small for a vocab of their own. Rather than unthinkingly moving all the pieces to their respective parents in basis (as I did before- sorry), I would like

[Factor-talk] inspector bug

2009-08-06 Thread Sam Anklesaria
Hello When inspecting the model of a slider of a scroller (which I think means the inspector receives model-changed calls), I was told "Cannot add/remove gadgets in layout*" It seems the layout* method for a scroller changed the model, which, if inspected, makes the inspector want to change his di

[Factor-talk] new ui gadget

2009-08-05 Thread Sam Anklesaria
I'm not sure how useful this is (I'm using it for a calendar app), but I made a gadget I call a popper. It's basically a track with some editor fields, one of which (the one in focus) always fills up the rest of the track, while the rest only show one line of their text. They work a bit like an e

[Factor-talk] textmate bundle improvements

2009-08-04 Thread Sam Anklesaria
I know fuel is sexy for factor editing right now, but there's no reason Textmate can't do the same thing. Now, the textmate bundle supports pretty much everything fuel does, and a wee bit more: Everything is on github at http://github.com/bogiebro/factor/tree/master Advantages over fuel: - auto

[Factor-talk] help with threaded-servers

2009-08-03 Thread Sam Anklesaria
Hello. Perhaps someone might assist me: I don't understand how to use threaded servers. The handler quot can read and write individually just fine, but can't seem to do them together. Say I want to add one and spit back the result: binary "addone" >>name [ deserialize 1 + serialize ] >>handler

[Factor-talk] revived vocab

2009-07-29 Thread Sam Anklesaria
Hi all A while ago, I made a syntax for loading remote vocabularies in "modules.using". It broke. Now it's back: http://github.com/bogiebro/factor/tree/master (Also included are a few changes to ui.frp) Sam -- Let Cr

[Factor-talk] pull request

2009-06-16 Thread Sam Anklesaria
changes include: - ui.frp allows gui layout through templates, and loads without restarts - the "pattern" class, when placed in a tuple used with the tuple database abstraction, will be used in an sql "LIKE" clause, allowing wildcards/ searching - the "persistency" vocabulary eliminates the need f

Re: [Factor-talk] closures changed

2009-05-27 Thread Sam Anklesaria
> In that case you should pass the needed state (current-directory, etc) > in a more explicit way than bundling the current namespace. The "closures" vocab now has only explicit naming of the variables you want to capture. Pull (as always) at git://github.com/bogiebro/factor.git

Re: [Factor-talk] pull request

2009-05-26 Thread Sam Anklesaria
I followed your advice. >> - modules.util allows reexporting other modules (see ui.frp for use example) > > I don't think this is necessary. It also won't work if one of the > vocabs you are exporting is reloaded and has new words. True. I've removed the module and changed others that use it.

[Factor-talk] pull request

2009-05-25 Thread Sam Anklesaria
new modules (some mentioned previously): - improvements, bugfixes, and documentation to ui.frp - an example app using ui.frp (extra/darcs-ui-demo) - modules.util allows reexporting other modules (see ui.frp for use example) - functors can create macros - fries generalizes fry's syntax for other dat

[Factor-talk] more on table view selection

2009-05-15 Thread Sam Anklesaria
It appears my implementation of multiple selections broke the error-list gadget. I can't see what the problem is, however, because the window simply is never drawn, without throwing any errors. Any debugging ideas? -- Cr

[Factor-talk] multiple selection in table views

2009-05-13 Thread Sam Anklesaria
Table views can now have more than one selection. Modifiers are like those on macosx: shift for selection up to a item, and command for arbitrary selection. Pull changes at git://github.com/bogiebro/factor.git -- The NEW

[Factor-talk] literals help

2009-05-05 Thread Sam Anklesaria
I've been attempting to build a gui for the darcs version control system with factor. My progress so far is at http://github.com/bogiebro/factor/tree/master I've run into a problem: My C[ parsing word (in the "closures" vocab under extra) makes a quotation that is called with the namespace it wa

[Factor-talk] file-trees

2009-05-03 Thread Sam Anklesaria
Browsing file hierarchies is a common enough task in a GUI. My "file-trees" vocab contains a file-tree class, along with a basic list view for file browsing. pull at git://github.com/bogiebro/factor.git -- Register Now &

Re: [Factor-talk] combo boxes

2009-05-01 Thread Sam Anklesaria
Fixed. Slava Pestov wrote: > Hi Sam, > > The ui.frp vocabulary has some help failures. Please run > > "ui.frp" help-lint -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reil

[Factor-talk] combo boxes

2009-04-29 Thread Sam Anklesaria
Factor's UI has so far lacked combo boxes (those half list, half text field things). I made some. They're available for a pull at git://github.com/bogiebro/factor.git -- Register Now & Save for Velocity, the Web Perfor

[Factor-talk] modules vocab updates

2009-04-26 Thread Sam Anklesaria
a few changes: - compiles with current version of factor - rpc vocabs can cache responses - vocab submitting as well as receiving (perhaps eventual package system) http://github.com/bogiebro/factor/tree/master >> On Fri, Apr 24, 2009 at 8:34 AM, wrote: >>> I put a few new vocabularies on >>

Re: [Factor-talk] new vocabularies

2009-04-25 Thread Sam Anklesaria
I've removed the image from history Slava Pestov wrote: > Looks like cool stuff Sam! > > I noticed you checked in a factor.image file, which is rather large. > Can you remove it first? > > Also I wonder if there is a way to remove it so that we don't end up > with a large patch containing your i

Re: [Factor-talk] peg for parsing words

2009-03-11 Thread Sam Anklesaria
h "peg-lexer" test; this is very convenient for > interactive development, I find.) Then I'll pull from you. > > Dan > > On Tue, Mar 10, 2009 at 6:36 PM, Sam Anklesaria wrote: >> Documentation, summary, authors, and tags have all been updated. >> >

Re: [Factor-talk] peg for parsing words

2009-03-10 Thread Sam Anklesaria
we can pull this into the Factor repository. > > Dan > > On Mon, Mar 9, 2009 at 8:52 PM, Sam Anklesaria wrote: >> I recently made a library that allows a peg parser to temporarily take over >> the >> lexer, which can be useful for implementing more complicated parsing

[Factor-talk] peg for parsing words

2009-03-09 Thread Sam Anklesaria
I recently made a library that allows a peg parser to temporarily take over the lexer, which can be useful for implementing more complicated parsing words. It's on github at http://github.com/bogiebro/factor/tree/master (called peg-lexer) How would I commit this to Factor's repository? -