Re: [Factor-talk] Request for testing: math.vectors.simd

2009-09-23 Thread Jon Harper
; http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

Re: [Factor-talk] Request for testing: math.vectors.simd

2009-09-23 Thread Jon Harper
must math.vectors.simd require first. Please try again! Slava On Wed, Sep 23, 2009 at 9:16 AM, Jon Harper jon.harpe...@gmail.com wrote: Hi, hope this is what you wanted. This is from latest build. My processor is a pentium M. This is with linux-x86.32 Checking for multimedia extensions

Re: [Factor-talk] math.vectors.simd and different SSE versions

2009-09-24 Thread Jon Harper
://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing

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

2009-09-25 Thread Jon Harper
___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper -- Come build with us! The BlackBerryreg; Developer

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

2009-10-01 Thread Jon Harper
and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

Re: [Factor-talk] Parsing data files with fixed-length field

2009-10-06 Thread Jon Harper
and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

[Factor-talk] Brian's brain

2009-10-17 Thread Jon Harper
for this hehe). What do you think ? -- Jon Harper -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take

Re: [Factor-talk] LC53 encryption cracking

2009-10-18 Thread Jon Harper
Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need

Re: [Factor-talk] Newbie questions: refresh, work directory, middle-click paste

2009-10-19 Thread Jon Harper
us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

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

2009-10-19 Thread Jon Harper
patch on top of my changes? Slava On Mon, Oct 19, 2009 at 4:07 PM, Jon Harper jon.harpe...@gmail.com wrote: Hey, I just looked through the EBNF docs, and although the content is really great, it doesn't look great in the ui browser. Here's a patch that fixes a typo, replaces $subsection

Re: [Factor-talk] Newbie questions: Objects in Factor

2009-10-22 Thread Jon Harper
___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper -- Come build with us! The BlackBerry(R) Developer Conference in SF

Re: [Factor-talk] Remove [let, [let*, [wlet and leave : to simplify locals?

2009-10-24 Thread Jon Harper
, 2009. Register now! http://p.sf.net/sfu/devconference ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

Re: [Factor-talk] Simplified locals: [let ] for scoping, : for binding (NEW! with multiple bindings)

2009-10-28 Thread Jon Harper
and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

Re: [Factor-talk] Bug Report

2009-10-29 Thread Jon Harper
/lists/listinfo/factor-talk -- Jon Harper -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry

Re: [Factor-talk] LC53 --- volunteers needed for porting

2009-11-04 Thread Jon Harper
___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

Re: [Factor-talk] System time vs monotonic counters

2009-11-21 Thread Jon Harper
/sfu/bobj-july ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper -- Let Crystal Reports

[Factor-talk] A question about threaded-servers

2009-11-23 Thread Jon Harper
in advance. -- Jon Harper -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application

[Factor-talk] Documentation problem for button-pen

2009-12-02 Thread Jon Harper
to have a class and a word have the same name anyway ? -- Jon Harper -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from

Re: [Factor-talk] Documentation problem for button-pen

2009-12-02 Thread Jon Harper
of symbol) - In the ui.gadgets.buttons vocabulary page, the button-pen word appears with the ordinary words, but links to the class description instead of the word definition On Wed, Dec 2, 2009 at 11:13 PM, Slava Pestov sl...@factorcode.org wrote: Hi Jon, On Wed, Dec 2, 2009 at 7:50 AM, Jon Harper

[Factor-talk] docs.factorcode.org weird article

2009-12-03 Thread Jon Harper
When clicking on Article Index and scrolling all the way down, the last link is crap is Factor linking to http://docs.factorcode.org/content/article-crap.html Is it a long forgotten joke or something ? -- Jon Harper

Re: [Factor-talk] Parsing jquery with peg.javascript

2009-12-08 Thread Jon Harper
Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk -- Jon Harper

[Factor-talk] Rosettacode and amb

2009-12-08 Thread Jon Harper
://paste.factorcode.org/paste?id=1053#568 thanks in advance -- Jon Harper -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev

Re: [Factor-talk] Newbie question on customizing gadgets

2010-01-19 Thread Jon Harper
Hi, did you get any help with your problem ? Here's what I could come up with.. On Sat, Jan 16, 2010 at 11:41 PM, Matt Gushee m...@gushee.net wrote: Hello, folks-- First post, sort of (I made an attempt to learn Factor early last year, and didn't get very far, but now I'm trying again--maybe

Re: [Factor-talk] Newbie question on customizing gadgets

2010-01-20 Thread Jon Harper
new-button my-pen interior ; Hope this helps :) Jon Harper On Wed, Jan 20, 2010 at 3:01 AM, Matt Gushee m...@gushee.net wrote: Hi, Jon-- On Tue, 19 Jan 2010 18:22 +0100, Jon Harper jon.harpe...@gmail.com wrote: Hi, did you get any help with your problem ? Here's what I could come up

[Factor-talk] Bug in locals

2010-01-27 Thread Jon Harper
k hanoi i j move h' k j hanoi ] if ; Replacing i j other by 6 i j + - in hanoi removes the bug. Let me know if you need more information. Cheers, Jon Harper -- The Planet: dedicated and managed hosting, cloud storage

Re: [Factor-talk] SVG

2010-02-08 Thread Jon Harper
If you like emacs, I recommend you look into fuel. Here's a good starting point : http://blip.tv/file/1658806 There's also a vim mode for factor, which you can find in factor/misc/vim Jon Harper On Mon, Feb 8, 2010 at 8:20 PM, Hugh Aguilar hughaguila...@yahoo.com wrote: I have been reading

Re: [Factor-talk] test runs fine when manually typed into listener but fails when invoked

2010-02-26 Thread Jon Harper
Could the problem be the word next ? You're not specifying which vocab it comes from, and it's defined in many vocabs. The listener has many vocabs loaded and it's probably calling a different word than the one you think. Jon Harper On Fri, Feb 26, 2010 at 3:56 PM, Terrence Brannon scheme

Re: [Factor-talk] Adding a stack effect to a quotation

2010-02-26 Thread Jon Harper
of call( x -- x ). I find it easier to understand when extra arguments are currified in the quotation rather than left on the stack behind the object with with anyway. And that makes it work with dynamic quotations. Jon Harper On Fri, Feb 26, 2010 at 6:31 PM, Samuel Tardieu s...@rfc1149.net wrote

Re: [Factor-talk] printing a sequence to STDERR

2010-03-01 Thread Jon Harper
You have to currify the sequence in the quotation with with { and a bottle of rum yo ho ho } [ error-stream get stream-print ] with each Jon Harper On Mon, Mar 1, 2010 at 4:44 PM, Terrence Brannon scheme...@gmail.com wrote: This isnt working either - { af df } error-stream get [ [ print

[Factor-talk] Factored Robot

2010-03-03 Thread Jon Harper
already using Factor to make it follow walls through it's SHARP sensors (through the FFI and a library given by the vendor). I'll let you know about future developpements ! Cheers, Jon Harper -- Download Intel#174

Re: [Factor-talk] Factor and the Google Summer of Code

2010-03-18 Thread Jon Harper
Hi everyone, the list of accepted organizations for the GSoC is now available : http://socghop.appspot.com/gsoc/program/accepted_orgs/google/gsoc2010 Unfortunately, I haven't seen Factor on the list (correct me if I'm wrong)... Too bad :( Jon Harper On Fri, Feb 26, 2010 at 11:35 PM, Joe Groff

Re: [Factor-talk] Factor and the Google Summer of Code

2010-03-22 Thread Jon Harper
Hi Michael, I'm also interested in working on this arm port. My goal is to have factor run on a N900. I'm a student and I'm doing this to learn stuff, so I probably won't give you any support, but I'd be glad to pair with you. I'll be hanging out in #concatenative as jonenst. Jon Harper On Mon

[Factor-talk] real numbers as array indices

2010-04-21 Thread Jon Harper
now, they're silently cast to fixnums before accesing the array, so the index used is the floor of the real. What do you think ? Jon Harper -- ___ Factor-talk mailing list

[Factor-talk] displaying a video feed

2010-05-05 Thread Jon Harper
to update the texture ? Thanks in advance Jon Harper -- ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

[Factor-talk] Factor and the google codejam

2010-05-09 Thread Jon Harper
in the codejam, using factor as their programming language? Last year I was the only one using factor, and since we've been rejected from the google summer of code, having some people participating is a good way of showing google how good the language is :) Cheers, Jon Harper

Re: [Factor-talk] displaying a video feed

2010-05-09 Thread Jon Harper
different vocabs to handle textures ? Jon Harper On Thu, May 6, 2010 at 12:52 AM, Joe Groff arc...@gmail.com wrote: On May 5, 2010, at 9:58 AM, Slava Pestov wrote: Hi Jon, Instead of just setting the texture to f, what you need to do is deallocate it. Constantly allocating

Re: [Factor-talk] FUNCTOR: and syntax evaluation

2010-05-27 Thread Jon Harper
I don't fully understand your C++ example, but FUNCTOR: test1 ( NAME -- ) NAME IS ${NAME} WHERE TUPLE: NAME ; ;FUNCTOR does create the tuple, but now when the functor is parsed. It's when the functor is called (in the following example, you can call the functor directly instead of using the

Re: [Factor-talk] multi dimensional arrays and console

2010-06-02 Thread Jon Harper
thoughts ? Jon Harper On Wed, Jun 2, 2010 at 8:10 AM, Slava Pestov sl...@factorcode.org wrote: On Wed, Jun 2, 2010 at 1:47 AM, Kobi Lurie k_lu...@gbrener.org.il wrote: 1) In C sharp, multi dimensional arrays are built into the language, and I find them very useful for representing a board

Re: [Factor-talk] multi dimensional arrays and console

2010-06-04 Thread Jon Harper
On Fri, Jun 4, 2010 at 4:32 AM, Slava Pestov sl...@factorcode.org wrote: Hi Kobi, Do not override the nth and set-nth generic words for this purpose. These words should only be used for collections with integer indices 0..length-1. Even if bounds-check is also overriden to correctly handle

Re: [Factor-talk] newbie: cannot follow a tutorial

2010-07-28 Thread Jon Harper
Hi, Like they said in the comments, you need to set the message slot of the response. USING: http http.server threads furnace.actions ; [ httpd ] in-thread action [ response 200 code text/plain content-type Hello World body Success message ] display main-responder set-global

[Factor-talk] Pull request

2010-08-02 Thread Jon Harper
slide and slide numbers yourself as it greatly improves the presentation quality. - git://github.com/jonenst/factor.git tools.scaffold 2 small fixes Here's the commit log: $git log origin/master..github/slides commit 594f42b1316754e18d98042204f3e85b6b59b135 Author: Jon Harper jon.harpe

[Factor-talk] [PATCH] divisors returns empty list for 0

2010-08-08 Thread Jon Harper
This is mainly for consistency with other words (factors, group-factors, unique-factors) --- basis/math/primes/factors/factors.factor |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/basis/math/primes/factors/factors.factor b/basis/math/primes/factors/factors.factor

Re: [Factor-talk] datastack

2010-08-09 Thread Jon Harper
Hi, You generally don't want a word like datastack-to-sequence. You should read the factor cookbook (available online at http://docs.factorcode.org/content/article-cookbook.html or in the listener by pressing F1). Here's a quote : If you find yourself wishing you could iterate over the datastack,

Re: [Factor-talk] Lazy logops Newbie question

2010-08-11 Thread Jon Harper
Hi, here's my modest implementation of the mighty bubble-sort : http://paste.factorcode.org/paste?id=1858 If you want to look at it, I think it's a more idiomatic solution. But it can surely be improved. Cheers, Jon 2010/8/11 Vladimir Darmanian vladimir.darman...@gmail.com: Hi Ander

Re: [Factor-talk] Difference between MACRO: and define-transform

2010-08-17 Thread Jon Harper
stack effect . The expansion quotation produced by the macro has a static stack effect Again, words without static stack effect ? Jon On Tue, Aug 17, 2010 at 7:20 PM, Jon Harper jon.harpe...@gmail.com wrote: Hi, I looked at the implementation of cond and case, and I saw the define-transform

[Factor-talk] Outdated docs and talks

2010-08-19 Thread Jon Harper
Hi again, the basis/math/vectors/simd/simd-docs.factor talks about test-mr mr. which I believe was replaced with test-regs cfgs. or just regs.. This is also the case in the galois-talk, the google-tech-talk and the vpri-talk, but i'm not sure if these should be updated... Jon

Re: [Factor-talk] Difference between MACRO: and define-transform

2010-08-23 Thread Jon Harper
Hi, The random.combinators vocabulary (with tests and docs) is ready for review : git://github.com/jonenst/factor.git random-combinators Jon On Wed, Aug 18, 2010 at 4:29 AM, Slava Pestov sl...@factorcode.org wrote: On Tue, Aug 17, 2010 at 10:20 AM, Jon Harper jon.harpe...@gmail.com wrote: Hi

Re: [Factor-talk] Difference between MACRO: and define-transform

2010-09-12 Thread Jon Harper
Hi, extra/random.combinators hasn't been merged in. Should I change something, or just keep it in my work/ directory ? Jon On Mon, Aug 23, 2010 at 9:40 PM, Jon Harper jon.harpe...@gmail.com wrote: Hi, The random.combinators vocabulary (with tests and docs) is ready for review : git

Re: [Factor-talk] Newbie question about handbook

2010-09-19 Thread Jon Harper
You can see this post for an explanation : http://duriansoftware.com/joe/Improving-Factor%27s-error-messages.html On 9/19/10, Jim mack j...@less2do.com wrote: The simplest way of describing the pure stack effects of if, for a situation like this: t [ ] [ ] if would be ( ? quot quot -- )

Re: [Factor-talk] The image refers to a library or symbol that was not found at load time

2010-10-05 Thread Jon Harper
Do you have the required librairies listed here ? http://concatenative.org/wiki/view/Factor/Requirements Jon On Tue, Oct 5, 2010 at 5:51 PM, doug.cole...@gmail.com wrote: Run it in the command line: ./factor -run=listener Then run the ui word: ui Then hit :c to hopefully see the error.  

[Factor-talk] sequences.product

2010-10-19 Thread Jon Harper
dbc2f33cda0e3a8b89cda6c51aee4a110c4d7332 Mon Sep 17 00:00:00 2001 From: Jon Harper jon.harpe...@gmail.com Date: Tue, 19 Oct 2010 18:03:05 +0200 Subject: [PATCH] cleanup --- basis/sequences/product/product.factor |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/basis/sequences/product

Re: [Factor-talk] erato off-by-one error.

2010-10-21 Thread Jon Harper
The doc says that n should be an odd number. For example, 2011 2011 sieve marked-prime? works But maybe the word should be changed to work with even number as well. Also, there's a typo in the documentation. Here's a patch that fixes it: diff --git

Re: [Factor-talk] erato off-by-one error.

2010-11-02 Thread Jon Harper
with any integer 0 with no performance penalty, and change the documentation for sieve and marked-prime? to remove the restriction that the number should be odd. Samuel, what do you think ? Jon On Thu, Oct 21, 2010 at 3:11 PM, Jon Harper jon.harpe...@gmail.com wrote: The doc says that n should

Re: [Factor-talk] erato off-by-one error.

2010-11-02 Thread Jon Harper
0 0 0 2drop ] if ; -: init-sieve ( n -- arr ) 29 + 30 /i 255 array byte-array ; +: init-sieve ( n -- arr ) 30 /i 1 + 255 array byte-array ; PRIVATE -- 1.7.0.4 From 682d0bf3d51d726e3ba7ed5e4f843225e6c7f442 Mon Sep 17 00:00:00 2001 From: Jon Harper jon.harpe...@gmail.com Date

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

2010-11-09 Thread Jon Harper
Shaping, have you read this page : http://concatenative.org/wiki/view/Concatenative%20language ? Jon On Tue, Nov 9, 2010 at 10:44 AM, Shaping shap...@charter.net wrote: Thanks Chris.  I'm working on this now. I managed to get the Browser looking really good with the stylesheet tweak that

Re: [Factor-talk] Factor GUI

2010-11-12 Thread Jon Harper
I never have understood the exact difference between dispatcher and responder, but somehow still can get things working. A responder is any tuple that implements the call-responder* generic word. A dispatcher is a responder. Its call-responder* implementation is to dispatch the request to its

[Factor-talk] Arrow models patch

2010-11-14 Thread Jon Harper
2001 From: Jon Harper jon.harpe...@gmail.com Date: Sun, 14 Nov 2010 17:20:19 +0100 Subject: [PATCH] Remove unecessary slot from arrow models --- basis/models/arrow/arrow.factor |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/basis/models/arrow/arrow.factor b/basis

Re: [Factor-talk] Factor DLS2010 Paper

2010-12-23 Thread Jon Harper
I failed miserably trying to join the #concatenative IRC channel (I could join and read, but couldn't post, Cannot send to channel... I can post to other channels alright). You need to register to be allowed to talk on #concatenative. You can find instructions here for example :

[Factor-talk] nths' output class

2011-01-17 Thread Jon Harper
Hi, shouldn't nths output a sequence of the same class as the original sequence ? Something like : nths ( indices seq -- seq' ) -[ nth ] curry map ; +[ [ nth ] curry ] keep map-as ; I ask this because I want the all-permutations word to output an array of strings when the input is a

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

2011-02-13 Thread Jon Harper
One argument is that factor is recognized by github, and has many tasks implemented on rosettacode.org. Also there's this website which runs code pastes (cant remember the name though, there was a mail on this list) that supports factor. Le 14 févr. 2011 01:25, Ed Keith e_...@yahoo.com a écrit :

Re: [Factor-talk] command line arguments

2011-03-13 Thread Jon Harper
Hi Vladimir, sorry for the late response. The code you gave works fine on linux (development branch) ! cmd2.factor USING: command-line namespaces prettyprint ; IN: cmd2 : cmd-line ( -- ) command-line get . ; MAIN: cmd-line Here are the deploy flags I used to deploy the app: USING:

Re: [Factor-talk] newbie: understanding inline and call

2011-05-06 Thread Jon Harper
Hi Matt, first of all, just in case you didn't know, the words you are trying to write already exist in the library in the sets vocabulary. Also, instead of reducing your sequence and pushing it to a vector, you can just use map. Regarding your question on call: .The reason for the difference

[Factor-talk] Google codejam

2011-05-08 Thread Jon Harper
Hi everyone, Good news this year, factor has been used by 2 users (including me) to solve problems in the codejam, twice as many as last year :) Are there any factor users on this list that advanced to round 1 and didn't use factor? Cheers, Jon

Re: [Factor-talk] newbie question again: how to put a sequence (or array) back onto stack

2011-05-19 Thread Jon Harper
If the sequence has a known length, you can use 'firstn'. If you want to use the contents of an arbitrary sequence as the stack, you can use 'with-datastack'. However, idiomatic code rarely use these words. Cheers, Jon Le 19 mai 2011 20:43, Zhe Hu iammegat...@gmail.com a écrit :

Re: [Factor-talk] Namespaces and the UI

2011-06-14 Thread Jon Harper
Is this a UI backend implementation detail?  Why (and where) does this new namespace and/or thread get created? I would guess that it's the start-ui-thread word from ui.private ? Regarding your namespace problem, is it ok to use global variables ? Jon

Re: [Factor-talk] Namespaces and the UI

2011-06-15 Thread Jon Harper
On Wed, Jun 15, 2011 at 6:42 PM, Joe Groff arc...@gmail.com wrote: On Jun 14, 2011, at 1:14 PM, Fred Alger wrote: I'm fine with putting this kind of setup into `begin-world` for now. I'm just wondering if there's a better way to handle this, as it'd handy to be able to set a bunch of

Re: [Factor-talk] Problem with property setter inside vocabulary

2011-07-20 Thread Jon Harper
The setters, getters and writers are in the accessors vocabulary which you need to add to your USING: line Jon On Wed, Jul 20, 2011 at 10:21 AM, Bjarke Dahl Ebert b...@trebe.dk wrote: Hi Factor-talk, I have a problem with a factor vocabulary that I am trying to write. The problem can be

Re: [Factor-talk] Data Flow Noob

2011-08-16 Thread Jon Harper
On Tue, Aug 16, 2011 at 2:07 PM, Mute clown withnom...@gmail.com wrote: Never used a mailing list before, got kinda pushed into using it since for some reason i cant talk in IRC. You need to register a name and identify yourself to be able to talk on the irc channel. = I am trying to learn

[Factor-talk] Factor arm port

2011-08-21 Thread Jon Harper
Hi list, I saw on the irc logs some talks about reviving the factor arm port. Are there people working (or willing to work) on this ? I'd be interested in participating. Also, I have recently bought an ARM laptop and I could set up a remote access if needed. Cheers, Jon

[Factor-talk] pull request

2011-08-24 Thread Jon Harper
at: g...@github.com:jonenst/factor.git master Jon Harper (1): sequences, fix stack effect of (accumulate) core/sequences/sequences.factor |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/core/sequences/sequences.factor b/core/sequences/sequences.factor index 493365d

Re: [Factor-talk] Unlucky experiment

2011-09-16 Thread Jon Harper
When running your code in the listener, it doesn't get killed immediately here. What version are you using ? Also, a better way to share code on this list is to use the pastebin: http://paste.factorcode.org/ As for your checkbox problem, I think you have 2 issues: - variable scope: the

Re: [Factor-talk] Unlucky experiment

2011-09-16 Thread Jon Harper
dies when I click on the quit button. I use the 0.94 version on vista32 On 16/09/2011 15.53, Jon Harper wrote: When running your code in the listener, it doesn't get killed immediately here. What version are you using ? Also, a better way to share code on this list is to use the pastebin

Re: [Factor-talk] Teaching myself Factor - code review, please?

2012-02-20 Thread Jon Harper
It all depends on what you want to do: As Joe suggested, handling packets one at a time with a combinator is better than reading the whole stream and then writing the whole result. Your each-window combinator should implement the increasing index logix. However this won't work if you want to

Re: [Factor-talk] Beginner question about style and stack shuffling

2012-03-12 Thread Jon Harper
What about using local only to implement the difficult stack shuffling that you named ? :: ( a b c d e h -- d b c a e h ) d b c a e h ; : swap-element ( i1 array1 i2 array2 -- ) [ [ nth ] 2keep ] 2bi@ [ set-nth ] 2 smart-apply ; And you could name (swap-element) which

Re: [Factor-talk] Plotting

2012-03-20 Thread Jon Harper
There's something toi connect to Google chart apis by mrjbq7: http://docs.factorcode.org:8080/content/vocab-google.charts.html Jon Le 21 mars 2012 00:26, Luke Worth l...@worth.id.au a écrit : Hello, Is there a library for plotting a dataset on a graph? If not, I'm inclined towards producing

[Factor-talk] format-float and locale decimal point

2012-05-20 Thread Jon Harper
Hi list, using a french locale (fr_FR.UTF-8) breaks printing of floats: IN: scratchpad 3.5 . 3,5.0 This is because the decimal point in french is ,, so the output of (format-float) is 3,5 and fix-float explicitly checks for . The locale is forced by gtk to the environnement variables. However,

Re: [Factor-talk] format-float and locale decimal point

2012-05-21 Thread Jon Harper
On Mon, May 21, 2012 at 5:31 PM, John Benediktsson mrj...@gmail.com wrote: Perhaps another approach would be to add a check in fix-float for a , similar to the current . check? On Sun, May 20, 2012 at 8:24 AM, Jon Harper jon.harpe...@gmail.com wrote: Hi list, using a french locale

Re: [Factor-talk] format-float and locale decimal point

2012-05-21 Thread Jon Harper
              /* marks end */ On Mon, May 21, 2012 at 9:13 AM, Jon Harper jon.harpe...@gmail.com wrote: Only allowing . seems a lot simpler. If we use the locale dependant decimal point when we print numbers, what should we do when parsing numbers ? If the parser also uses the locale decimal

Re: [Factor-talk] sqlite on linux

2012-06-18 Thread Jon Harper
On debian-ish distributions, you need to install the *dev package to use sqlite. Jon On Mon, Jun 18, 2012 at 11:19 PM, John Benediktsson mrj...@gmail.com wrote: Where is the open-db word defined? Are you doing something like:     USE: db.sqlite     /path/to/db sqlite-db Do you have the

[Factor-talk] literals

2012-08-01 Thread Jon Harper
Hi list, playing with literals, I think we need to clarify the documentation and maybe change the code. - 1) The following commit changed the $ word: commit ddce0e0a107ffdb295b02363c553d562641b72b9 Author: Joe Groff arc...@gmail.com Date: Wed Feb 18 16:57:20 2009 -0600

Re: [Factor-talk] Modules/packages for Factor

2012-08-23 Thread Jon Harper
That's awesome ! I wonder if such a system could be used with not only factor code, but by interfacing to other package management systems. For example requiring factor bindings to a C library would setup both the bindings and the library through the operating system's package management system.

Re: [Factor-talk] Literate Programming

2012-08-29 Thread Jon Harper
Short answer: no. The factor documentation system is described here: http://docs.factorcode.org/content/article-writing-help.html Interestingly, the documentation system is written in factor and documented using itself, so this html page is a good example of the output it produces. Jon On Wed,

Re: [Factor-talk] mrjbq7's thesaurus

2012-09-18 Thread Jon Harper
Is this what you want ? http://re-factor.blogspot.fr/2011/08/thesaurus.html Jon On Tue, Sep 18, 2012 at 10:51 PM, CW Alston cwalsto...@gmail.com wrote: Greetings - I'm trying to suss out the structure of the binary encoded thesaurus.dat file that accompanies the thesaurus.factor code in

Re: [Factor-talk] OpenGL version in OSX

2012-10-12 Thread Jon Harper
The last argument appears to be a pointer. In c++, you can just pass in 0 to specify the null pointer. In factor, this can be done by passing f. This is documented here http://docs.factorcode.org/content/article-alien.html (and more precisely here:

Re: [Factor-talk] OpenGL version in OSX

2012-10-12 Thread Jon Harper
For the debian users on this list, calling gdk_gl_get_proc_address (which factor does when creating shaders for example) results in a segfault if you use proprietary drivers under certain conditions (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663684). A workaround or a patched version

[Factor-talk] Factor new icons

2012-12-02 Thread Jon Harper
Hi list, and more specifically John, I think uploading the .psd files on factorcode.org would be really nice. Also, I was wondering how these icons were made. Did you have to pay for them ? Did the artist transfer the copyright to you ? cheers, Jon

Re: [Factor-talk] Vector logo

2012-12-06 Thread Jon Harper
For the record, on ubuntu 12.04, the following setup works when invoking factor from the command line or through unity lenses. By works, I mean that an icon with the correct resolution is displayed during alt-tab and in the left launcher bar. I don't know much about icons and .desktop files, so

Re: [Factor-talk] Running factor

2012-12-07 Thread Jon Harper
What system are you running ? Is your system fully updated ? Jon On Thu, Dec 6, 2012 at 11:25 PM, Leonard X leonard14...@gmail.com wrote: Had factor running before. Recently downloaded it again. This time, got this ... $ ./factor ./factor: /lib/libc.so.6: version `GLIBC_2.14' not found

Re: [Factor-talk] Include resources in a deployed application

2013-01-03 Thread Jon Harper
Are you using GNU/linux ? If so, you might be experiencing this issue: https://github.com/slavapestov/factor/issues/678 Regards, Jon Jon On Thu, Jan 3, 2013 at 11:07 PM, John Benediktsson mrj...@gmail.com wrote: I think for your example you would have a resources.txt in your x vocabulary

Re: [Factor-talk] Include resources in a deployed application

2013-01-03 Thread Jon Harper
. How do I do that? 2013/1/3 Jon Harper jon.harpe...@gmail.com Are you using GNU/linux ? If so, you might be experiencing this issue: https://github.com/slavapestov/factor/issues/678 Regards, Jon Jon On Thu, Jan 3, 2013 at 11:07 PM, John Benediktsson mrj...@gmail.comwrote: I think

Re: [Factor-talk] What a tangled webapp I weave

2013-01-05 Thread Jon Harper
Hi Charles, the wiki webapp is not meant to be the main-responder: the xml templates are child templates. You can see that because no template in wiki/ has a body or head tag. Also they use chloe tags like t:style, which are child tags. So you need another level of boilerplate which will be the

[Factor-talk] Iterating over arrays and string

2013-01-19 Thread Jon Harper
Hi list, after some experiments, I was surprised with how the optimizing compiler could infer types. Not sure if all those behaviors are expected.. If anyone has some explanations, that would be great. Please see this paste for code: https://paste.factorcode.org/paste?id=2836 Here are my

[Factor-talk] YAML

2013-03-02 Thread Jon Harper
Hi list, There have been discussions about using YAML recently (for example to use in the package system described here https://gist.github.com/jckarter/3440892) As a first step, I just wrote a simple test to call LibYAMLthrough the FFI. You can view the code here:

Re: [Factor-talk] RFC: AES implementation

2013-05-26 Thread Jon Harper
Hi Gabriel, I created a paste with your code at https://paste.factorcode.org/paste?id=2949 so that long snippets of code can be posted there instead of the mailing list. Here's what I would change at first glance: - rot-word is similar to rotate in sequences.extras, maybe use that one instead - 1

[Factor-talk] ui crash on startup

2013-07-14 Thread Jon Harper
Hi list, using ubuntu 12.04 and ATI proprietary driver, factor crashed at startup. The crash happened because glGetString(GL_VERSION) returned a null pointer. I traced it to 7616d5d6877f327f2331fe8a8d830e71101402d9 which added a dlopen for libGL.so Why was this changed ? Note that I got it to

Re: [Factor-talk] ui crash on startup

2013-07-15 Thread Jon Harper
. On Sun, Jul 14, 2013 at 3:56 PM, Jon Harper jon.harpe...@gmail.comwrote: Hi list, using ubuntu 12.04 and ATI proprietary driver, factor crashed at startup. The crash happened because glGetString(GL_VERSION) returned a null pointer. I traced it to 7616d5d6877f327f2331fe8a8d830e71101402d9 which

Re: [Factor-talk] Some UI questions

2013-11-13 Thread Jon Harper
Hi Manuel, On Wed, Nov 13, 2013 at 9:15 PM, bidon12...@free.fr wrote: Could you please tell me how to detect when a value pane is already opened so that I don't open a second one ? How would I give it focus ? I have seen the find-window word but I have not been able to do it. you could

Re: [Factor-talk] Some UI questions

2013-11-13 Thread Jon Harper
Another question : for app distribution, can all the factor internal goodies be turned off ( inspect, Prettyprint, etc ... ) ? those things you get from right clicking on a object come from http://docs.factorcode.org/content/article-ui-presentations.html Looking at the implementation of

Re: [Factor-talk] [Beginner/UI] How to subset a table gadget and change the underlying data model

2013-11-14 Thread Jon Harper
You can use the pastebin http://paste.factorcode.org/ to share with the list. Most of the other resources are blog posts, maybe you can get your vocab featured in someone's blog if you don't have one ? For the right click, you did what I had in mind. You could have used set-gestures instead of

Re: [Factor-talk] Presentation and installation issues on Slackware64-14.1 Linux

2013-12-08 Thread Jon Harper
The reason factor needs *-dev packages is that factor needs a plain .so symlink in a directory searched by dlopen and Debian packages typically put these in dev packages whereas normal packages only install a *.so.soversion symlink. I don't know about Slackware but your error means you are

  1   2   3   >