Re: [Factor-talk] OpenGL3.0+

2021-05-21 Thread Doug Coleman
It's just C ffi calls right? On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > It is VERY outdated. I need OpenGL3.0+ > https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle >

Re: [Factor-talk] Integer to Bytes

2020-06-05 Thread Doug Coleman
primitive_nano_count(); On Fri, Jun 5, 2020 at 5:14 PM Alexander Ilin wrote: > Does it also return 8 bytes in 32-bit Windows? > > 06.06.2020, 01:09, "Doug Coleman" : > > Actually, I can be more helpful. ``nano-count`` returns a ``uint64_t`` so > you need 8 bytes.

Re: [Factor-talk] Integer to Bytes

2020-06-05 Thread Doug Coleman
t)t.tv_sec * 10 + t.tv_nsec; } On Fri, Jun 5, 2020 at 5:00 PM Doug Coleman wrote: > As long as you can fully round-trip the integer, it doesn't matter how > many bytes you use. > > nano-count dup 4 >be be> = . > f > > nano-count dup 8 >be be> = . > t >

Re: [Factor-talk] Integer to Bytes

2020-06-05 Thread Doug Coleman
without leading zeroes: > > Value -- MinSize > 0 -- 1 > 255 -- 1 > 256 -- 2 > 65535 -- 2 > 65536 -- 3 > etc. > > I would expect such information to be available somewhere without doing > the power of two calculations in a loop. > > 23.03.2020, 05:41

Re: [Factor-talk] Integer to Bytes

2020-03-22 Thread Doug Coleman
For Factor, integers are either fixnum or bignum size. For C, you tell it how many bytes it occupies according to the C header. Generally the sizes are the same across platforms. If they aren't, you might need two different STRUCT: declarations like in basis/unix/stat/linux/32/32.factor and

Re: [Factor-talk] Platform Max Int

2020-03-22 Thread Doug Coleman
You could do this: : SODIUM_SIZE_MAX ( -- x ) cell-bits on-bits ; where cell-bits gives 32/64 and on-bits turns them to ones. On Sun, Mar 22, 2020 at 6:44 PM Alexander Ilin wrote: > Hello! > > I'm creating the sodium library FFI for Factor, and I found the > following definition in the

Re: [Factor-talk] partition-by?

2019-12-04 Thread Doug Coleman
Here's the first example from the clojure docs for partition-by: { 1 2 3 4 5 } [ [ 3 = not ] bi@ and ] monotonic-split { { 1 2 } { 3 } { 4 5 } } Also you could do this if the function is expensive so you only apply it once: { 1 2 3 4 5 } [ 3 = ] map-zip [ [ second ] bi@ = ] monotonic-split [

[Factor-talk] github now syncs to factorcode

2019-11-16 Thread Doug Coleman
Hi all, Until today, Factor has maintained a git repository on factorcode.org and force-pushed to github every five minutes. This behavior breaks github PRs because the git log is overwritten and changes look like they never merged. Going forward, there is now a git hook that POSTs to

Re: [Factor-talk] Escapable each

2019-09-22 Thread Doug Coleman
Honestly, I remember asking the same question a long time ago. Haha. On Sun, Sep 22, 2019 at 8:17 PM KUSUMOTO Norio wrote: > > 2019/09/22 22:41、Doug Coleman のメール: > > > > You can use 'find' itself as an 'each'. Do whatever you each would do > before checking the stop cond

Re: [Factor-talk] Escapable each

2019-09-22 Thread Doug Coleman
You can use 'find' itself as an 'each'. Do whatever you each would do before checking the stop condition and return true when your stop condition is met. Then drop what you found if you don't need it. On Sun, Sep 22, 2019, 6:21 AM Alexander Ilin wrote: > I use `loop` or `while`, depending on

Re: [Factor-talk] Building an Image File

2019-09-10 Thread Doug Coleman
make-my-image make-images On Tue, Sep 10, 2019 at 10:14 AM KUSUMOTO Norio wrote: > Hello, everyone. > > > Is it possible to build an image file by myself, for example, by executing > some word? > The image file I'm using seems to have gone wrong. > > -- > KUSUMOTO Norio > > > > > >

Re: [Factor-talk] Transparent background texts and Windows Factor

2019-06-08 Thread Doug Coleman
Merged. Thank you all for working on this! On Sat, Jun 8, 2019 at 8:24 AM Alexander Ilin wrote: > > 08.06.2019, 16:11, "Alexander Ilin" : > > I have also pushed an experimental commit to support transparency in the > foreground text color. > > It seems there is still an issue with the correct

Re: [Factor-talk] key-down/up event issues on gtk backend Factor

2019-04-07 Thread Doug Coleman
Hi, I think you can still use the x11 backend on any unix system. Try ``USE: ui.backend.x11`` Relevant line: basis\ui\backend\x11\x11.factor:x11-ui-backend ui-backend set-global I'm taking a look at the Windows key changes. Cheers, Doug On Sun, Apr 7, 2019 at 4:57 PM Alexander Ilin wrote:

Re: [Factor-talk] Kungfuguration Files

2019-03-19 Thread Doug Coleman
USE: ini-file :p On Tue, Mar 19, 2019 at 1:09 PM Alexander Ilin wrote: > Hello! > > I need to load a configuration from a simple text file. > I would not want to employ anything too complex (XML), and the thing > must work in a deployed application, into which I would not want to include >

Re: [Factor-talk] [ drop ] if

2018-12-24 Thread Doug Coleman
It seems more like something for ``when`` and ``unless`` than for ``if`` since the balancing quotation can be first or second. [ drop ] [ . ] if -> [ . ] 1unless [ + . ] [ 2drop ] if -> [ + . ] 2when Maybe that works? On Mon, Dec 24, 2018 at 1:57 PM Alexander Ilin wrote: > Hello! > > I

[Factor-talk] Gitter Chat for Factor

2018-09-10 Thread Doug Coleman
Hi, I created a gitter to chat about Factor. Let's see how it goes. I've been using the Kitten gitter and it's nice to have messages notifications in email. We still have #concatenative on freenode IRC, but it's pretty dead lately. Gitter Link:

Re: [Factor-talk] printf documentation

2018-01-18 Thread Doug Coleman
Oops. MACRO: printf ( string -- quot: ( ..a string -- ..b ) ) MACRO: sprintf ( string -- quot: ( ..a string -- ..b string ) ) On Thu, Jan 18, 2018 at 3:02 PM John Benediktsson wrote: > MACRO: always produces a quot. > > But when it's "called" it's whatever the stack effect

Re: [Factor-talk] printf documentation

2018-01-18 Thread Doug Coleman
rintf ( ... string -- ) > MACRO: sprintf ( ... string -- result ) > ``` > > > 18.01.2018, 23:44, "Doug Coleman" <doug.cole...@gmail.com>: > > Stack effects on macros are not checked. We have the convention of lying > that the stack effect is ( input -- quot ) but even

Re: [Factor-talk] printf documentation

2018-01-18 Thread Doug Coleman
Stack effects on macros are not checked. We have the convention of lying that the stack effect is ( input -- quot ) but even that is wrong, as the macro is called immediately so you don't get a quot on the stack. The quot could have a stack effect of its own but it's variable arity, as you are

Re: [Factor-talk] Secure Memory

2018-01-17 Thread Doug Coleman
We actually had a command-line argument to the vm to optionally zero the gc after collection but we removed the feature somewhere around when we dropped BSD support. It's probably better than nothing but if they could read your memory after a gc why not just read it before gc instead? Doug On

Re: [Factor-talk] supremum

2017-06-21 Thread Doug Coleman
[ random ] map [ sift ] time Running time: 0.251810384 seconds On Wed, Jun 21, 2017 at 10:58 AM Alexander Ilin <ajs...@yandex.ru> wrote: > In that case the behavior would be identical to the current one. > > 21.06.2017, 18:55, "Doug Coleman" <doug.cole...@gmail.com&g

Re: [Factor-talk] supremum

2017-06-21 Thread Doug Coleman
What should supremum do if you have no elements in the sequence? numpy throws an error too: In [1]: import numpy as np In [2]: np.max(np.array([])) ValueError: zero-size array to reduction operation maximum which has no identity On Wed, Jun 21, 2017 at 10:52 AM Alex Vondrak

Re: [Factor-talk] """

2017-05-15 Thread Doug Coleman
You can do something like this: USING: multiline ; SYNTAX: [[ "]]" parse-multiline-string suffix! ; SYNTAX: [=[ "]=]" parse-multiline-string suffix! ; SYNTAX: [==[ "]==]" parse-multiline-string suffix! ; [[ asdf]] [=[ asdf]=] [==[ asdf]==] Lua-style or magic strings can contain any payload. You

Re: [Factor-talk] Search Files by Name

2016-10-29 Thread Doug Coleman
You can do things like: USE: io.directories.search "/Users/erg/factor" [ file-name >lower "factor" head? ] find-all-files On Sat, Oct 29, 2016 at 9:55 AM John Benediktsson wrote: > I hit send before I had a chance to finish that thought -- > > You can use ``file-info

Re: [Factor-talk] Factor As Scripting Language

2016-10-25 Thread Doug Coleman
, 2016 at 4:35 PM, Alexander Ilin <ajs...@yandex.ru> wrote: > > > > 25.10.2016, 23:13, "Doug Coleman" <doug.cole...@gmail.com>: > > > > You should be able to call the Windows APIs directly (if you can figure > out > > which ones!) and avoid usin

Re: [Factor-talk] Factor As Scripting Language

2016-10-25 Thread Doug Coleman
You should be able to call the Windows APIs directly (if you can figure out which ones!) and avoid using a script to call a binary. On Tue, Oct 25, 2016 at 1:02 PM Alexander Ilin wrote: > The same, but a bit more elaborate (and hopefully more readable): > > USING:

[Factor-talk] New parser discussion (continued)

2016-08-17 Thread Doug Coleman
(disclaimer: sourceforge only accepts 40kb message bodies without approval, i might have forgotten the admin password, this email might be sent 3+ times, google inbox confuses me with hidden text bloating my replies...) Hi Александр, I'm finally able to contain enough rage to answer you! ;)

Re: [Factor-talk] SHA1 Test

2016-07-09 Thread Doug Coleman
end up spamming everyone when my fixes are incorrect and I have to keep updating you on the status. :) Doug On Sat, Jul 9, 2016 at 2:53 PM Alexander Ilin <ajs...@yandex.ru> wrote: > Hello, Doug! > > 09.07.2016, 22:47, "Doug Coleman" <doug.cole...@gmail.com>: > >

Re: [Factor-talk] SHA1 Test

2016-07-09 Thread Doug Coleman
Actually it's still broken...fixing again On Sat, Jul 9, 2016 at 2:42 PM Alexander Ilin <ajs...@yandex.ru> wrote: > Hello, Doug! > > 09.07.2016, 22:15, "Doug Coleman" <doug.cole...@gmail.com>: > > I debugged it -- when adding new bytes, it was taking th

Re: [Factor-talk] SHA1 Test

2016-07-09 Thread Doug Coleman
It took two patches. I got confused with two Factor instances running when everything seemed to work. Bah. On Sat, Jul 9, 2016 at 2:14 PM Doug Coleman <doug.cole...@gmail.com> wrote: > Hi Alex, > > I debugged it -- when adding new bytes, it was taking the length of all > the by

Re: [Factor-talk] SHA1 Test

2016-07-09 Thread Doug Coleman
Hi Alex, I debugged it -- when adding new bytes, it was taking the length of all the bytes that have been added since checksumming the last block instead of the new bytes only. So it reports the lengths as 8, 24 instead of 8,16. This should be fixed in a patch. Sorry! Doug On Sat, Jul 9, 2016

[Factor-talk] New "Modern" Factor parser

2016-07-03 Thread Doug Coleman
Hi All, I wrote a new parser after bouncing a ton of emails off John (thanks!). It's ready enough to be worked on by other people. There's a branch called locals-and-roots that has locals/fry/macros/memoize/stack-checker in core, has a new vocab roots layout for

Re: [Factor-talk] Hooking the Back End

2016-06-14 Thread Doug Coleman
an "object" > (instead of windows, unix, etc.) so that the code you quoted is actually > executed? > > Is it the default implementation in case "windows" has no "copy-file" > method? > > 14.06.2016, 22:37, "Doug Coleman" <doug.cole...@g

Re: [Factor-talk] Hooking the Back End

2016-06-14 Thread Doug Coleman
Hey Alexander, We have a copy-file implemented with stream-copy already. It's non-blocking and it might be fast enough, or we could optimize it. I haven't looked at CopyFile for a long time, but maybe we shouldn't use that and should use the default stream-copy version instead. Then you don't

Re: [Factor-talk] Build Factor on Windows with Win7 SDK

2016-05-26 Thread Doug Coleman
Hey Alexander, We started using C++11 or C++14 features and this requires a newer compiler. Can you try with the latest Visual Studio? The wiki is outdated and I can change it but I'm not sure why new users can't or why the email/password reset system is broken. I can check it out later. Doug

Re: [Factor-talk] Unit Testing

2016-05-03 Thread Doug Coleman
Hey, You're using the ${ } correctly but the $[ ] actually expands at parse-time into just plain old ``5``. unit-test expects a quotation, but it gets ``5`` instead and fails. You can see this by trying: ${ five } $[ five ] ! now hit enter, or ctrl-m to macro-expand things (kind of a hack

Re: [Factor-talk] move collect-by out of math.statistics

2016-02-18 Thread Doug Coleman
Words in core/ are only supposed to be there if other vocabularies in core/ use them, or if they're really useful. I'd rather move words to core/ before releasing if we know they belong there. On Thu, Feb 18, 2016 at 10:20 AM, John Benediktsson wrote: > I think that sounds

Re: [Factor-talk] Corruption in the GitHub mirro

2016-02-16 Thread Doug Coleman
Force pushing doesn't fix it, so I want to delete the master branch and then force push again. My current guess is that there are stale objects that github isn't pruning and that force pushing doesn't exactly mirror the object packs on disk, and that cloning pulls down the bad objects. But I'm

Re: [Factor-talk] factorlang.org and concatenative.org down

2015-10-27 Thread Doug Coleman
The hosting provider did a security update and reset the machine. Everything should be back up shortly. Thanks for the notice! On Tue, Oct 27, 2015 at 2:36 PM, Bill Sun wrote: > Looks like www.factorlang.org and www.concatenative.org are both down for > me. > > -Bill > > > >

Re: [Factor-talk] potential memory issue --- Fwd: how to error trapping 'link-info'

2015-10-01 Thread Doug Coleman
You can run your code in the leaks combinator and it will show you what leaked. I suspect that you're just using a lot of memory though. [ { 1 2 3 } [ malloc drop ] each ] leaks members . { ~malloc-ptr~ ~malloc-ptr~ ~malloc-ptr~ } On Thu, Oct 1, 2015 at 12:31 PM, HP wei

Re: [Factor-talk] Factor on OS X El Capitan broken?

2015-10-01 Thread Doug Coleman
Try the latest one. On Thu, Oct 1, 2015, 19:30 Sankaranarayanan Viswanathan < rationalrev...@gmail.com> wrote: > Hello, > > I just upgraded my macbook to El Capitan today, and the opening the > factor help browser seems broken. I get the message: > > An error occurred while drawing the world T{

Re: [Factor-talk] Factor on OS X El Capitan broken?

2015-10-01 Thread Doug Coleman
I'm not sure why the permissions got broken. It should work now though. On Thu, Oct 1, 2015 at 9:08 PM, John Benediktsson wrote: > Sorry, looks like a permissions error on the downloads server. > > Hopefully we can get that resolved soon. > > El Capitan introduced a GL Error

Re: [Factor-talk] A bug ?

2015-09-30 Thread Doug Coleman
You can do link-info instead. On Wed, Sep 30, 2015, 13:42 HP wei wrote: > While trying out the word each-file, I bumped into presumably > a bug in > > file-info ( path -- info ) > > Under linux, > if the path is a softlink (symbolic link), > > path file-info symbolic-link? >

Re: [Factor-talk] gcc versions

2015-08-14 Thread Doug Coleman
Interesting. Both versions work with my clang. ergmac:factor erg$ [master*] clang --version Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.4.0 Thread model: posix So if the fix is correct, then we are all good. Doug On Fri, Aug 14, 2015 at

Re: [Factor-talk] gcc versions

2015-08-14 Thread Doug Coleman
Maybe gcc should spend more time implementing C++14 and fixing bugs and less time worrying about someone stealing their AST. You can use clang and it should work. CC=clang CXX=clang++ make I'll patch the implicit this but I don't know what else to say. :) Doug On Fri, Aug 14, 2015 at 10:00 AM,

Re: [Factor-talk] gcc versions

2015-08-14 Thread Doug Coleman
to support 2012's compilers ? Jon On Fri, Aug 14, 2015 at 7:54 PM, Doug Coleman doug.cole...@gmail.com wrote: Interesting. Both versions work with my clang. ergmac:factor erg$ [master*] clang --version Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple

Re: [Factor-talk] gcc versions

2015-08-14 Thread Doug Coleman
Cool. Here's an issue for it: https://github.com/slavapestov/factor/issues/1440 On Fri, Aug 14, 2015 at 1:31 PM, Jon Harper jon.harpe...@gmail.com wrote: I started this discussion because I thought that not everybody was aware of the impact of the recent c++11 changes. We now have stronger

Re: [Factor-talk] new parser

2015-08-07 Thread Doug Coleman
[[This is kind of a brain-dump and not completely organized, but I'm going to send it.]] The proposed new-parser is a lexer and parser with specific roles for each. SYNTAX: words that execute arbitrary code should be replaced with PARSER: words that only parse text, and a compile pass The main

Re: [Factor-talk] new parser

2015-08-07 Thread Doug Coleman
I just now added the ![[ ]] comment syntax and fixed !comments. Force-pushed to the erg/modern4 branch. On Fri, Aug 7, 2015 at 5:27 PM, Doug Coleman doug.cole...@gmail.com wrote: [[This is kind of a brain-dump and not completely organized, but I'm going to send it.]] The proposed new-parser

Re: [Factor-talk] dead link at concatenative.org

2015-07-16 Thread Doug Coleman
Thanks for the report; I fixed it. You should be able to create a new account, but I guess that's not the case? Doug On Thu, Jul 16, 2015 at 12:28 AM, Georg Simon georg.si...@auge.de wrote: At http://concatenative.org/wiki/view/Factor/Running%20Factor there is a dead link for command line

Re: [Factor-talk] What do we call a collection of vocabs?

2015-07-09 Thread Doug Coleman
I think ``dictionary`` would be the Factor way. Issue 641 talks about renaming words to functions etc. On Thu, Jul 9, 2015 at 6:19 PM, John Benediktsson mrj...@gmail.com wrote: The only names we have right now are vocab-root (vocabularies that share a common file directory they are loaded

Re: [Factor-talk] Not a Win32 Application?

2015-06-12 Thread Doug Coleman
, Dec 19, 2014 at 4:50 PM, Alexander Iljin ajs...@yandex.ru wrote: Hi, Doug! 20.12.2014, 03:38, Doug Coleman doug.cole...@gmail.com: All the previous releases are here: http://downloads.factorcode.org/releases/ I'm not sure which version was last built for winxp though, but probably .95

Re: [Factor-talk] osx emacs FUEL

2015-06-03 Thread Doug Coleman
You need to set the path to the full path of the emacsclient binary. ```factor USING: editors.emacs namespaces ; /usr/bin/emacsclient \ emacsclient-path set-global ``` You can debug what's happening because the array in the ``command`` slot of ``process`` is what Factor is launching. ```

Re: [Factor-talk] Desperate UI help

2015-02-21 Thread Doug Coleman
Hey Mark, Have you tried the ``watch`` word to print the stack before and after calling a word? I would look at your code if you pastebin something that doesn't work. The problem with putting a breakpoint in the UI thread is that it starves the single thread that Factor runs in and the UI can't

Re: [Factor-talk] How to call up a terminal process to run script in OS X ?

2014-12-24 Thread Doug Coleman
Here's another one that prints directly to the console: current-directory get . / IN: scratchpad rake try-output-process Process: T{ process { command rake } { environment H{ } } { environment-mode +append-environment+ } { stdin +closed+ } { stdout T{ fd { disposed t } { fd 37

Re: [Factor-talk] How to call up a terminal process to run script in OS X ?

2014-12-23 Thread Doug Coleman
Hey, You don't need to call ``cd`` manually, you can use a combinator for this: /Users [ ls try-process ] with-directory same as /Users [ { ls } try-process ] with-directory OSX has problems with the PATH variable when run from the launcher. You can see what your path is by doing: PATH os-env

Re: [Factor-talk] Architecting a UI

2014-12-22 Thread Doug Coleman
Hi Mark, The vocab ui.tools.inspector is already a gadget that edits tuples. Check it out if you haven't: TUPLE: foo a b c ; foo new ! click foo ! click slot c in tuple so it's highlighted blue ! click edit slot, 3rd button at top Check out that vocabulary and see if it helps. If not, I can

Re: [Factor-talk] Not a Win32 Application?

2014-12-19 Thread Doug Coleman
Hi, I just downloaded the release from your link and it works for me on Windows 8.1, on the computer that generated the release to begin with. I guess that's no surprise.. Does anyone else have Windows XP to try it on? I can make a VM soon if not. The reason for having .com and .exe is that

Re: [Factor-talk] Not a Win32 Application?

2014-12-19 Thread Doug Coleman
nothing to do with file extension. The fact that com-file works (though not for me) is probably due to Windows recognizing the new format in the contents despite the extension. Anyway, as I said below, both exe- and com-file produce the same error message for me. 20.12.2014, 02:58, Doug

Re: [Factor-talk] Changing global variables at parse time

2014-12-16 Thread Doug Coleman
You can call set-global and get-global instead of set and get. The words are executing in the dynamic scope of the parser and the values getting lost when parsing returns. Doug On Tue, Dec 16, 2014 at 8:55 AM, Andrea Ferretti ferrettiand...@gmail.com wrote: Hi, I am trying to define some

Re: [Factor-talk] Changing global variables at parse time

2014-12-16 Thread Doug Coleman
To understand what's going on with quotations you have to understand the difference between run-time, compile-time, how the stack checker works, and a few other details. Run-time is after your code has been compiled and you have started to execute it--it's your program. Compile-time is when the

Re: [Factor-talk] Factor 0.97 now available

2014-11-03 Thread Doug Coleman
Try this from factor.sh: udo apt-get --yes install libc6-dev libpango1.0-dev libx11-dev xorg-dev libgtk2.0-dev gtk2-engines-pixbuf libgtkglext1-dev wget git git-doc rlwrap clang gcc make screen tmux libssl-dev On Nov 3, 2014 9:17 PM, mr wzrd wzr...@gmail.com wrote: On 11/03/2014 11:54 PM,

Re: [Factor-talk] Can't open graphical listener in Ubuntu 12.04

2014-09-12 Thread Doug Coleman
Hi, Do you happen to have a Radeon card? One of the libraries required by Factor pulls in the OpenGL Mesa driver which shadows the Radeon driver. You can make sure to load the binary Radeon driver: LD_LIBRARY_PATH=/usr/lib/fglrx ./factor This should link to your Radeon driver and not Mesa: ls

Re: [Factor-talk] Dollar amounts

2014-08-27 Thread Doug Coleman
Try the table. word. On Aug 27, 2014 10:48 PM, mr wzrd wzr...@gmail.com wrote: What is the best way to get an array of arrays to look like a spreadsheet? -- Slashdot TV. Video for Nerds. Stuff that matters.

Re: [Factor-talk] cleave combinator

2014-08-26 Thread Doug Coleman
You can use outputarray in combinators.smart. On Aug 26, 2014 8:09 PM, mr wzrd wzr...@gmail.com wrote: Hello list. How would one use the cleave combinator to accumulate results into a sequence instead of onto the stack? Initially I have one object on the stack and five quotations to apply

Re: [Factor-talk] Dollar amounts

2014-08-26 Thread Doug Coleman
Try the decimals and money vocabularies. On Aug 26, 2014 8:14 PM, mr wzrd wzr...@gmail.com wrote: Also, was wondering if there is planned future support for dollar amounts. Wondering how dollar amounts could be defined using the existing number classes. The dollar amounts I was working with

Re: [Factor-talk] cleave combinator

2014-08-26 Thread Doug Coleman
:10 PM, Doug Coleman doug.cole...@gmail.com wrote: You can use outputarray in combinators.smart. On Aug 26, 2014 8:09 PM, mr wzrd wzr...@gmail.com wrote: Hello list. How would one use the cleave combinator to accumulate results into a sequence instead of onto the stack

Re: [Factor-talk] Multiuser Deployment of Factor

2014-08-19 Thread Doug Coleman
Hi Mark, Factor was not designed with multiuser Windows systems in mind. It would be best to have each user install their own copy of Factor in their home directory. We could try to fix all of the problems for .98 if make a list of them in an issue on github. For the second issue, are you using

Re: [Factor-talk] Fatal error LNK1123 (?) on Windows build

2014-06-15 Thread Doug Coleman
Have you googled the error? I've compiled Factor on Windows on at least 20 machines over the years and have never run into this error. Looks like this might solve it? http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval Lemme

Re: [Factor-talk] Error on installation (Random number generator)

2014-04-03 Thread Doug Coleman
Hi, I believe this problem is fixed in git. I'm going to try and get the automatic builds working again this weekend, but if you have time, building it yourself should fix the problem. [To build it yourself: Install Visual Studio Express 2013 or the like; git clone the repository; Open a Visual

Re: [Factor-talk] [ planet-factor ] site down

2014-03-18 Thread Doug Coleman
The site seems up. We had a regression that made it very unreliable, crashing every few hours. It should be back to crashing every couple months now. If you want to read the docs offline, you can do this (takes several minutes to run, Factor will hang in the meantime): USE: help.html

Re: [Factor-talk] installation packages for CI?

2014-02-07 Thread Doug Coleman
We could do that if we automate the entire process. That would entail someone writing some code to generate those packages and possibly automatically submitting them to the package managers. Is that possible? Doug On Fri, Feb 7, 2014 at 1:00 PM, Andrew Pennebaker andrew.penneba...@gmail.com

Re: [Factor-talk] docs.factorcode.org not doing a `load-all`?

2013-11-18 Thread Doug Coleman
I moved the server over to Rackspace and tried to generate the docs manually. I regenerated the docs just now with load-all. The build machines are broken, but once I fix them we'll have automatic docs builds again. Cheers, Doug On Sun, Nov 17, 2013 at 5:26 PM, Alex Vondrak ajvond...@gmail.com

Re: [Factor-talk] i18n

2013-07-17 Thread Doug Coleman
We don't have anything that solves your problem. It would be nice to have full internationalisation and localization support. Doug On Wed, Jul 17, 2013 at 1:24 AM, Georg Simon georg.si...@auge.de wrote: Is there any mechanism in Factor to translate hard coded strings to the user's language?

Re: [Factor-talk] Cookbook and Learning

2013-06-18 Thread Doug Coleman
`` and ``USE: system image``. Make sure they're what you want. Doug On Tue, Jun 18, 2013 at 12:22 PM, Gabriel Kerneis gabr...@kerneis.infowrote: On Tue, Jun 18, 2013 at 11:20:41AM -0700, Doug Coleman wrote: In your home directory, do: git clone g...@github.com:slavapestov/factor.git cd factor

Re: [Factor-talk] RFC: AES implementation

2013-06-06 Thread Doug Coleman
Nice job! The ``inv-sbox`` problem is that ``sbox`` is not compiled yet. You can use a hack to get it to compile: CONSTANT: sbox H{ ... } The makes a compilation-unit at parse time. Doug On Thu, Jun 6, 2013 at 6:22 AM, Gabriel Kerneis gabr...@kerneis.infowrote: On Thu, Jun 06, 2013 at

Re: [Factor-talk] Constraints on sequence functions

2013-06-05 Thread Doug Coleman
How about [ sum 100 = ] filter On Jun 4, 2013 9:57 PM, graham telfer gakouse...@hotmail.com wrote: Maybe happiness! Perhaps the math.combinatorics vocabulary has what I need. Sent from my iPad On 5 Jun 2013, at 12:45, graham telfer gakouse...@hotmail.com wrote: I am trying to define a

Re: [Factor-talk] UNIX signal #8 (SIGFPE) when using iota

2013-03-05 Thread Doug Coleman
You are dividing by zero. 100 0 mod - SIGFPE On Tue, Mar 5, 2013 at 11:31 AM, Loryn Jenkins lor...@gmail.com wrote: Hi I've got a bunch of very similar words, several of which work, and some fail. Each failure throws a UNIX signal #8 (SIGFPE). I'm struggling to see the difference between

Re: [Factor-talk] matrices

2013-02-07 Thread Doug Coleman
I started an n-dimensional array implementation in extra/arrays/shaped. Check out this paper on numpy's nd-array: http://arxiv.org/pdf/1102.1523.pdf The key concepts are having a continuous underlying array, using a shape slot that can reshape to any other shape with the same product without

Re: [Factor-talk] matrices

2013-02-05 Thread Doug Coleman
If you interested in finding the determinant of a matrix, the easiest way is probably to bind to LAPACK or LINPACK using our Fortran FFI. Take a look at extra/math/blas/ffi for an example. I ended up writing the whole thing... It's really inefficient, as it makes temporary matrices. You'd

Re: [Factor-talk] matrices

2013-02-05 Thread Doug Coleman
, Feb 5, 2013 at 3:03 PM, Leonard P leonard14...@gmail.com wrote: On Tue, Feb 5, 2013 at 5:58 PM, Doug Coleman doug.cole...@gmail.comwrote: If you interested in finding the determinant of a matrix, the easiest way is probably to bind to LAPACK or LINPACK using our Fortran FFI. Take a look at extra

Re: [Factor-talk] PostgreSQL and async SQL queries

2013-02-05 Thread Doug Coleman
Hi Alexey, I am responsible for the Postgres library. I have an updated version in the works but I haven't finished it yet. Sorry for the inconvenience. Doug On Tue, Feb 5, 2013 at 3:15 PM, Alexey V. Litvinov lialsoft...@mail.ruwrote: Hello! I'm trying to write multiuser accounting webapp

Re: [Factor-talk] Quotation stack effect

2012-12-26 Thread Doug Coleman
How about 'map'? On Dec 26, 2012 10:48 AM, Samuel Proulx proulxsam...@gmail.com wrote: Hi, I just have a quick question. Is it possible to make an each quotation have a stack effect such as ( x -- x ) or do we have to stick with the standard ( x -- ) ? Thanks in advance, Samuel

Re: [Factor-talk] editors

2012-12-17 Thread Doug Coleman
USE: tools.scaffold On Mon, Dec 17, 2012 at 11:42 AM, Leonard P leonard14...@gmail.com wrote: On Mon, Dec 17, 2012 at 10:53 AM, Alex Vondrak ajvond...@gmail.com wrote: What about it didn't work? Did you get an error? Otherwise, what actually happened, and how did that differ from what

Re: [Factor-talk] Border-button quotation

2012-12-16 Thread Doug Coleman
You can print to the global namespace and it should show up in the terminal (Windows, Linux) or in Console (Mac). Press [ *drop [ *The button has been pressed. print ] with-global ] border-button gadget. Doug On Sun, Dec 16, 2012 at 4:58 PM, Samuel Proulx proulxsam...@gmail.comwrote: Thank

Re: [Factor-talk] Two quick questions

2012-11-06 Thread Doug Coleman
For 1) you can either use ``name`` or ``unparse``. Doug On Tue, Nov 6, 2012 at 2:50 PM, PGGB grizzlysc...@gmail.com wrote: 1. Is there a way to unparse a word, turn a word into a string (basically a reverse parse-word)? 2. Is there a way to force my world to swap buffers? I am subclassing

Re: [Factor-talk] length

2012-08-29 Thread Doug Coleman
Which platform? On Tue, Aug 28, 2012 at 6:38 PM, graham telfer gakouse...@hotmail.com wrote: Using sequences in Factor 0.95 I type something like { 1 2 3 } length in the Listener but get nothing returned. The stack is not empty though because ' .s ' does not report stack underflow. It prints

Re: [Factor-talk] Out of memory error

2012-08-25 Thread Doug Coleman
Are you running it in the shell listener? It might save memory. ./factor -run=listener load-all test-all Doug On Sat, Aug 25, 2012 at 1:36 PM, Alexander J. Vondrak ajvond...@csupomona.edu wrote: Just did a load-all test-all with 0.94, and that crashes, too. I know that I've run those tests

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

2012-08-24 Thread Doug Coleman
Python's package management is terrible. They have easy_install, distribute, distribute2, pip, and virtualenv, in addition to having binaries/interpreters/libraries for python2 and python3. I tried pip but it couldn't install one of the packages I needed, so I wiped them all and went back to

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

2012-08-24 Thread Doug Coleman
- or was it SML? or both?) To me the biggest problem with package systems is dependencies. I don't know why you folks are discussing Linux to be honest. - rien On Fri, Aug 24, 2012 at 2:46 PM, Doug Coleman doug.cole...@gmail.com wrote: Python's package management is terrible. They have easy_install

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

2012-08-24 Thread Doug Coleman
We have a code coverage tool. If we started using it, one could at least be guaranteed that every code path is at least hit by the unit tests. Doug On Fri, Aug 24, 2012 at 12:27 PM, P. uploa...@gmail.com wrote: I remember your describing that idea! I think it's great - it would allow us to

Re: [Factor-talk] Out of memory error

2012-08-24 Thread Doug Coleman
How much ram? On Aug 24, 2012 6:01 PM, Alexander J. Vondrak ajvond...@csupomona.edu wrote: Hey all, Mini-update: got the unit tests for the global value numbering pass more up-to-snuff awhile ago (it's like test-driven development in reverse!). Still seems like I should be doing more to

Re: [Factor-talk] Out of memory error

2012-08-24 Thread Doug Coleman
8gb outta be enough for anybody. But It's not, I guess. Try with more RAM or patch the part that grows to only grow to as much as you have. Maybe something is using way too much On Aug 24, 2012 6:01 PM, Alexander J. Vondrak ajvond...@csupomona.edu wrote: Hey all, Mini-update: got the

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-15 Thread Doug Coleman
1) Factor loads a ~/.factor-rc file every time it starts. You can put things there: USE: tools.scaffold scaffold-factor-rc Click it, edit it and add: USING: prettyprint.config namespaces ; 16 number-base set-global 2) Alternately, there's a boot rc file that gets loaded after bootstrap:

Re: [Factor-talk] cannot add new word to factor file

2012-08-15 Thread Doug Coleman
You have to add the word to the file in a text editor. Then you can press f2 or palindrome reload. I'll make the tutorial more clear. Doug On Wed, Aug 15, 2012 at 7:56 AM, Market 0ne-Source.com mar...@0ne-source.com wrote: Hi, Going through palindrome sample on Windows XP resource:work

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-13 Thread Doug Coleman
Is this you? http://www.clarkprosecutor.org/html/death/US/clagett651.htm On Mon, Aug 13, 2012 at 9:46 AM, Michael Clagett mclag...@hotmail.com wrote: Thank you, Joe, for the quick response. It was actually the information in the such as clause of your last sentence that I was looking for. I

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-10 Thread Doug Coleman
You can do this: ./factor in the repl: die then in the shell: words It dumps a list of word addresses in Factor. This works for words, but not quotations. Hope this helps. Doug On Fri, Aug 10, 2012 at 2:55 PM, Michael Clagett mclag...@hotmail.com wrote: One more question before I disappear.

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-10 Thread Doug Coleman
./factor starts Factor from the command-line. If you're on mac, you get a terminal listener (to start it right, you want to run it from the app: ./Factor.app/Contents/MacOS/factor); if you're on linux, you get the UI. In Windows, you run factor.com and it launches the UI. So in whatever REPL

Re: [Factor-talk] scripting excel / office on windows with IDispatch / COM

2012-08-06 Thread Doug Coleman
Hi Naveen, There's a library for making COM interfaces in basis/windows/com/com.factor. It doesn't look like we have an IDispatch interface, but you can make one. The docs are kind of minimal, so follow the example in the -tests.factor file. As far as scripting Word, I doubt anyone has done so.

Re: [Factor-talk] Stack Depth

2012-06-19 Thread Doug Coleman
] while suffix accomplishes the task. Marshall On Tue, Jun 19, 2012 at 10:50 PM, Graham Telfer gakouse...@hotmail.com wrote: Doug Coleman doug.coleman@... writes: In general, you shouldn't want to do this, as all Factor words (besides the one I'm about to show you) need a fixed

  1   2   3   >