Re: [Factor-talk] font sizes in browser und listener

2023-09-21 Thread John Benediktsson
https://discord.gg/QxJYZx3QDfOn Sep 21, 2023, at 10:48 AM, CW Alston wrote:Hi -- Just joined Discord! How do I find the Factor server there?On Thu, Sep 21, 2023 at 9:33 AM John Benediktsson <mrj...@gmail.com> wrote:Yes, and we would be happy to help assist.  A fair amount of dev

Re: [Factor-talk] font sizes in browser und listener

2023-09-21 Thread John Benediktsson
gt; > Do you think this issue would be a good starting point? > > Thanks, > Krisztián > > John Benediktsson mailto:mrj...@gmail.com>> ezt írta > (időpont: 2023. szept. 21., Cs, 17:24): >> I suspect if you put those font lines in your .factor-boot-rc and bootstrap &g

Re: [Factor-talk] font sizes in browser und listener

2023-09-21 Thread John Benediktsson
dow. > > For instance I can start the listener and enter "today". > I get an error message with two tiny lines. > I choose "Use the calendar vocabulary" and get some more tiny messages. > > Am Thu, 21 Sep 2023 08:04:48 > -0700 schrieb John Benediktsson : > > &g

Re: [Factor-talk] font sizes in browser und listener

2023-09-19 Thread John Benediktsson
The quickest way is to change the default-font-size in the fonts vocab to be larger. IN: fonts CONSTANT: default-font-size 36 “help.stylesheet” reload save > On Sep 19, 2023, at 12:56 AM, Georg Simon wrote: > > Using now 2560x1600 pixels I would like to change all font sizes > permanently,

[Factor-talk] Factor 0.99 now available

2023-08-24 Thread John Benediktsson
anks, Fred Alger, Giftpflanze, Ikko Ashimine, Jack Lucas, John Benediktsson, Jon Harper, Justin Hill, KUSUMOTO Norio, Keldan Chapman, Kevin Cope, Konrad Hinsen, Kye Shi, Mark Sweeney, Mohamed Akram, Nandeeka Nayak, Niklas Larsson, Raghu Ranganathan, Rudi Grinberg, Samuel Tardieu,

Re: [Factor-talk] Vocabulary sorting.slots disappeared ?

2023-05-30 Thread John Benediktsson
It was proposed to rename to sorting.specification, as part of a sorting cleanup:sorting.specification vocabulary - Factor Documentationdocs.factorcode.orgOn May 30, 2023, at 5:10 AM, Georg Simon wrote:InFactor 0.99 x86.64 (2165, heads/master-b0f39e3617, Feb 16 202217:53:17) [GCC 11.2.0] on

Re: [Factor-talk] Does calendar.format vocabulary need the UI ?

2022-10-03 Thread John Benediktsson
d no .factor-boot-rc > > Thanks, > Georg. > > Am Mon, 3 Oct 2022 09:25:06 -0700 > schrieb John Benediktsson : > > > I'm not aware of any dependency, and I can't reproduce it on linux or > > macOS just now. > > > > I opened an issue on GitHub to investiga

Re: [Factor-talk] Does calendar.format vocabulary need the UI ?

2022-10-03 Thread John Benediktsson
I'm not aware of any dependency, and I can't reproduce it on linux or macOS just now. I opened an issue on GitHub to investigate: https://github.com/factor/factor/issues/2697 Do you have any UI code in your .factor-rc or .factor-boot-rc? Thanks, John. On Mon, Oct 3, 2022 at 5:15 AM Georg

Re: [Factor-talk] The Listener's interface and screen readers

2022-08-18 Thread John Benediktsson
Hello! We do support a command line interface, you can run that from a command prompt, or power shell, by doing: factor -run=listener It is also possible the factor.com is command line and the factor.exe is the graphical listener. Unfortunately, for the user interface, we currently have it

Re: [Factor-talk] gml graphics vocabs unit tests fail

2022-06-12 Thread John Benediktsson
There's an issue with the tests not using what they need -- this works: "gml" load "gml" test On Sun, Jun 12, 2022 at 12:21 AM CW Alston wrote: > Hi - > Experimenting with Slava's ``gml'' (Generative Modeling Language) > 3D graphics vocabs in ``resource:extra'', I ran into a glitch involving >

Re: [Factor-talk] Compiler

2021-08-24 Thread John Benediktsson
Probably 2022. On Tue, Aug 24, 2021 at 2:33 PM dgpdx wrote: > I’d love to use factor. Any idea when the port to arm64 will be completed? > — > don > > > On Aug 24, 2021, at 14:29, John Benediktsson wrote: > > Contributions are welcome! > > (Also questions, if you

Re: [Factor-talk] Compiler

2021-08-24 Thread John Benediktsson
uot; in lambda-calculi, > but Pestov set types to "loop" and "while". I'll think about it:) > > вт, 24 авг. 2021 г. в 21:59, John Benediktsson : > >> You can see some curry declared and then defined as part of bootstrap in: >> >> >> http

Re: [Factor-talk] Compiler

2021-08-24 Thread John Benediktsson
You can see some curry declared and then defined as part of bootstrap in: https://github.com/factor/factor/blob/master/core/bootstrap/primitives.factor#L289 On Wed, Aug 18, 2021 at 3:01 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > Hi > Where are definitions of "curry"

Re: [Factor-talk] A new concatenative language (CL)

2021-08-20 Thread John Benediktsson
Factor works fine using Rosetta. The arm64 port of Factor hasn’t been finished yet. > On Aug 20, 2021, at 11:00 AM, dgpdx wrote: > > Hi, all — > > I cannot use factor as it is only for Intel architecture and I use arm64 on a > MacBook Pro. > > So, I’m implementing a CL in Julia, called

Re: [Factor-talk] Strange using of variables

2021-06-30 Thread John Benediktsson
Sometimes it's nice to not have to define a separate state variable, counter is the most often case that I've seen but there are others. On Tue, Jun 29, 2021 at 6:02 AM George Cherevichenko < george.chereviche...@gmail.com> wrote: > The vocab stack-checker/values line 7 > > : ( -- value ) \

Re: [Factor-talk] OpenGL 3.3 + Factor, the result

2021-06-22 Thread John Benediktsson
Why do you have to use platform specific image loader? On Tue, Jun 22, 2021 at 12:44 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > https://pastebin.com/faGJUH6v > https://www.imagevenue.com/ME13J21P > Put it to a new vocab "sphere" and run. If you will use deploy-tool, >

Re: [Factor-talk] Am I in the listener?

2021-06-22 Thread John Benediktsson
You can tell if you are running with the ui versus the command-line with "ui-running?". If you want to see if the listener is open, you can find it's window: [ listener-gadget? ] find-window And if you want to get a listener, opening one if it is not open, just call: get-listener

Re: [Factor-talk] May 5th

2021-05-12 Thread John Benediktsson
For anyone that missed the session, or is interested in looking at the 20 minute video portion of their presentation, you can look here: https://www.youtube.com/watch?v=lGWMNK5C5go Best, John. On Tue, Apr 20, 2021 at 9:04 AM John Benediktsson wrote: > Hi everyone, > > We ha

[Factor-talk] May 5th

2021-04-20 Thread John Benediktsson
Hi everyone, We have a team of college students from Harvey Mudd College working on some improvements to the Factor web frameworks, specifically implementing a Factor native GZIP vocabulary and a HTTP/2 web server. They are going to discuss and present their results on May 5th at 9am PST online

Re: [Factor-talk] How to validate different formats in an array?

2020-12-06 Thread John Benediktsson
You should be able to call dynamic quots by specifying their stack effect in the call, assuming your quotations take one input and produce a Boolean [ call( elt — ? ) ] 2map Or even use 2all? If you want to know if an input array passes all the tests. > On Dec 6, 2020, at 6:11 PM,

Re: [Factor-talk] Should we default to main?

2020-12-06 Thread John Benediktsson
to look cleaner than [ foo ] [ bar ] bi and I’d rather we had more consistency and fewer tokens possibly. > On Dec 6, 2020, at 10:39 AM, kevin wrote: > >  > I'm curious, what does higher level cleave/spread/apply syntax look like? > >> On Fri, Dec 4, 2020 at 9:48 AM Joh

Re: [Factor-talk] Introducing myself.

2020-12-04 Thread John Benediktsson
Hi Gordon, Welcome! I read your wiki page and bookmarked Quackery to play with later. Looks neat! Thanks for sharing! Best, John. > On Dec 4, 2020, at 6:40 PM, Gordon Charlton wrote: > >  > Hi, > > I just added a page to concatenative.org so I figure it would be polite to > introduce

Re: [Factor-talk] Should we default to main?

2020-12-04 Thread John Benediktsson
gt; Would be nice to get us to that milestone. > — > Dave Carlton > da...@polymicro.net > > > > > On Dec 4, 2020, at 09:06, John Benediktsson wrote: > > This whole thing is funny. Let’s postpone a discussion until after we have > Factor working on ARM. :-)

Re: [Factor-talk] Should we default to main?

2020-12-04 Thread John Benediktsson
This whole thing is funny. Let’s postpone a discussion until after we have Factor working on ARM. :-) > On Dec 4, 2020, at 6:24 AM, sf.alexi...@spamgourmet.com wrote: > >  > If I were to become a master of computer science or a master in a craft, that > would mean I've mastered it. > > It

Re: [Factor-talk] Should we default to main?

2020-12-02 Thread John Benediktsson
Hi Dave, I really don't disagree with you that much, however there is likely going to be an increasing shift to main over the next few years, here's some background by GitHub on the topic: https://github.com/github/renaming And some information about the change to support init.defaultBranch

Re: [Factor-talk] Should we default to main?

2020-12-02 Thread John Benediktsson
Whether or not you or I agree on the impetus for the change, git upstream is changing their defaultBranch to main for new projects and I see no reason not to migrate with them. On Wed, Dec 2, 2020 at 8:31 AM Zoltán Kéri via Factor-talk < factor-talk@lists.sourceforge.net> wrote: > Dear Lord, I

Re: [Factor-talk] Should we default to main?

2020-12-02 Thread John Benediktsson
Currently pushing to master, syncing to main. Hoping to make main the ... ahem... main branch as part of the git upstream defaultBranch changes. Not quite ready to switch over yet in our build CI environment but soon maybe? On Wed, Dec 2, 2020 at 8:11 AM Benjamin Pollack wrote: > I noticed

Re: [Factor-talk] Saving an image file with extra vocabularies loaded

2020-11-29 Thread John Benediktsson
The common ambiguity between math.ranges and math.intervals has also bothered us. I did like the syntax aside from that issue that, but we are experimenting with new range syntax: [a..b] (a..b] (a..b) [a..b) What do you think of that instead? Some other variants discussed from other

Re: [Factor-talk] font size in help browser

2020-11-27 Thread John Benediktsson
The easiest way, I suppose, to change all the font sizes is to increase this constant, and then refresh help.stylesheet, and restart: https://docs.factorcode.org/content/word-default-font-size,fonts.html We have a patch to make this a bit easier, but currently several of our libraries like the

Re: [Factor-talk] Peg Parser Performance

2020-11-23 Thread John Benediktsson
We can continue this discussion if you'd like on GitHub: https://github.com/factor/factor/issues/2377 On Sun, Nov 22, 2020 at 9:34 PM Alexander Ilin wrote: > If I remove all => actions, the time goes down to 120 seconds. > > > 23.11.2020, 00:18, "John Benediktsson" :

Re: [Factor-talk] Peg Parser Performance

2020-11-22 Thread John Benediktsson
] each-stream-line >] with-file-reader ] { } make ; > > > > In Listener: > > USE: log-db now "file-name.csv" parse now rot time- > > The resulting run time is 180 seconds, which is fewer than 200, but not that > much closer to 2. > Somehow

Re: [Factor-talk] Factor and MacOS arm64

2020-11-22 Thread John Benediktsson
with assembly output. More to come soon! Thanks for trying it out! > On Nov 22, 2020, at 12:09 PM, Steve Davies wrote: > >  > > >> On Sun, 22 Nov 2020 at 20:30, John Benediktsson wrote: >> It is being worked on in the arm64 branch on GitHub. >> > > A

Re: [Factor-talk] Peg Parser Performance

2020-11-22 Thread John Benediktsson
When you run that in the listener it uses the non optimizing compiler. You should use the EBNF: word [=[ ... ]=] form and then refer to word for it to be a compiled parser. It’ll be much faster. Or wrap all that in a : foo ( — ) ... ; > On Nov 22, 2020, at 11:49 AM, Alexander Ilin

Re: [Factor-talk] Factor and MacOS arm64

2020-11-22 Thread John Benediktsson
It is being worked on in the arm64 branch on GitHub. It requires some additional compiler support within Factor, but since Doug and I both now have shiny new M1 computers, we both have good incentive to get it working. If you have knowledge of ARM assembly and want to help, that would be

Re: [Factor-talk] Peg Parser Definition

2020-11-22 Thread John Benediktsson
Yes, here's how (currently depending on the implementation behavior, but this has worked for a long time). For example, in the urls.private vocabulary there's a parser for URLs, and you can get the peg parser from an EBNF: word. \ parse-url "ebnf-parser" word-prop main of Most of our EBNF:

Re: [Factor-talk] Peg Parsing Files

2020-11-22 Thread John Benediktsson
Right now this is true: binary stream-seekable? But none of the decoders allow stream-seeking. Maybe we should support that for ascii and other 8-bit encodings... On Sun, Nov 22, 2020 at 3:17 PM Jon Harper wrote: > I didn't know about the seekable streams implementation in factor: >

Re: [Factor-talk] MacOS build from source - where's the GUI?

2020-11-20 Thread John Benediktsson
There is a Factor.app in that same folder as the binary that you can open. Does that work? On Fri, Nov 20, 2020 at 11:40 AM Steve Davies wrote: > Hi, > > I'm new here. I cloned factor from Github onto my MacOS 10.15.7 box. > > I followed the Unix build instructions to build master (main?) -

Re: [Factor-talk] Problem with Gtk Installation

2020-10-26 Thread John Benediktsson
Hi Abraham, I'm sorry it's not working for you! Plenty of users have had some success with NixOS, but my personal experience with it is a little light. It's a little confusing seeing some of the messages about 32-bit in the log you posted. If Factor is build in a 64-bit environment, it should

Re: [Factor-talk] ?change-value for assocs

2020-08-17 Thread John Benediktsson
values set to false with unset values. See what you think! Best, John. On Mon, Aug 17, 2020 at 4:29 PM John Benediktsson wrote: > Ah, gotcha! > > That could be cool. I’ll push a commit later for that! > > > On Aug 17, 2020, at 9:22 AM, Jon Harper wrote: > > > > I thi

Re: [Factor-talk] ?change-value for assocs

2020-08-17 Thread John Benediktsson
es the newvalue in the assoc at the given key. > > Jon > >> On Mon, Aug 17, 2020 at 6:18 PM John Benediktsson wrote: >> >> https://docs.factorcode.org/content/word-change-at,assocs.html >> >> On Aug 17, 2020, at 8:31 AM, Alexander Ilin wrote: >> >> H

Re: [Factor-talk] ?change-value for assocs

2020-08-17 Thread John Benediktsson
https://docs.factorcode.org/content/word-change-at,assocs.html > On Aug 17, 2020, at 8:31 AM, Alexander Ilin wrote: > > Hello! > > I came up with this code, because I could not quickly find an existing word > for this. > Did I miss it? If not, would it be a useful addition to the assocs

Re: [Factor-talk] Default stack size and stack consumption

2020-08-12 Thread John Benediktsson
The Mac build machine seems to need to some attention. Maybe @erg and I can look at it in a bit. Thanks for pointing that out! Best, John. > On Aug 12, 2020, at 6:48 AM, KUSUMOTO Norio wrote: > > Hi, John and everyone! > I wish you all good health. > > >> 2020/08/1

Re: [Factor-talk] Default stack size and stack consumption

2020-08-10 Thread John Benediktsson
Hi, I recently changed the Factor command-line help to annotate with the default values for those parameters. See if that helps you. Regarding the profiler, you need to run a computation that takes longer. I'm not sure what the minimum threshold for observations is, but try something like

Re: [Factor-talk] Dwarf

2020-08-04 Thread John Benediktsson
I believe this one: https://en.wikipedia.org/wiki/DWARF On Tue, Aug 4, 2020 at 11:18 PM Alexander Ilin wrote: > What is extra/dwarf? I see no docs, not even a summary, and git-blame > reveals nothing useful. > Is it related to the ELF format? > > ---=--- > Александр > > > >

Re: [Factor-talk] concatenative.org

2020-08-04 Thread John Benediktsson
you could give me a pointer into which > vocabs implement the wiki authorization, I could give it a shot. > > 04.08.2020, 21:49, "John Benediktsson" : > > Have you integrated it with the http.server web responder login system? > That would be a nice feature to support! > &

Re: [Factor-talk] concatenative.org

2020-08-04 Thread John Benediktsson
Have you integrated it with the http.server web responder login system? That would be a nice feature to support! Thanks! John. > On Aug 4, 2020, at 11:28 AM, Alexander Ilin wrote: > > Now that we have TOTP working, would it be a nice idea to protect the > concatenative.org wiki with it? >

Re: [Factor-talk] Qualified identifiers

2020-08-01 Thread John Benediktsson
Good point. When that feature was added, probably the documentation was not improved in the places you mention. Let’s fix that! Best, John. > On Aug 1, 2020, at 6:29 AM, Alexander Ilin wrote: > > Hello! > > Is it documented anywhere that the Factor words can be qualified by > prefixing

Re: [Factor-talk] big float

2020-06-13 Thread John Benediktsson
The closest we have is the decimals vocabulary: https://docs.factorcode.org/content/vocab-decimals.html It might be nice to have a MPFR contribution or based on GMP or something. There has been recent interest in allowing our number tower to be expanded for such use cases with the basic math

Re: [Factor-talk] Fwd: fexpm1 missing in math.libm

2020-06-13 Thread John Benediktsson
The log1+ word uses flog1p and works well when numbers are small. The expm1 is provided as well, but not as a call the fexpm1: https://docs.factorcode.org/content/word-e%5E-1%2Cmath.functions.html It’s a one line change to add fexpm1 plus tests to make sure it works if you’d like to make a

Re: [Factor-talk] Integer to Bytes

2020-06-05 Thread John Benediktsson
Log2 is pretty fast. We use BSR if available. https://c9x.me/x86/html/file_module_x86_id_20.html > On Jun 5, 2020, at 3:01 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 >

Re: [Factor-talk] Factor future on Raspberry

2020-05-29 Thread John Benediktsson
Hi Alain! We have an ARM assembler that requires a bit of integration in the compiler backend, but we also hope ARM can be a big feature of the next 0.99 release. Best, John. > On May 29, 2020, at 3:32 AM, Alain EMPAIN wrote: > >  > Hello, > > I discovered Factor recently, and I am very

Re: [Factor-talk] Is there a default way to generate the k-partitions of a sequence?

2020-04-25 Thread John Benediktsson
bvious )(my knowledge is really > limited on combinatorics and other parts of mathematics for now ), so I > apologize if that is the case. > > > Il dom 26 apr 2020, 03:15 John Benediktsson ha scritto: >> Is “K partitions” the same as “K permutations”? >> >> https://d

Re: [Factor-talk] Is there a default way to generate the k-partitions of a sequence?

2020-04-25 Thread John Benediktsson
Is “K partitions” the same as “K permutations”? https://docs.factorcode.org/content/word-__lt__k-permutations__gt__,math.combinatorics.html > On Apr 25, 2020, at 6:46 PM, Luca Di Sera wrote: > >  > I was studying Unger's Parsers and was in need of a way to generate the > k-partitions of

Re: [Factor-talk] She-bang

2020-04-20 Thread John Benediktsson
Yes, if you put a she-bang at the top you can just run it. $ cat hello #!/path/to/factor USE: io ; “HELLO WORLD” print $ ./hello > On Apr 20, 2020, at 4:10 PM, Alexander Ilin wrote: > > Hey, guys! > > I could not find this in the help. Does Factor support she-bang style > scripts? > >

Re: [Factor-talk] Search time on Windows Factor

2020-02-07 Thread John Benediktsson
It's worth investigating, for sure. The time is largely taken up by this: IN: scratchpad gc [ "" disk-vocabs-recursive-for-prefix ] time If you want to make a GitHub issue we can track the conversation and improvements. Perhaps some of our directory traversal code could be improved in Windows.

Re: [Factor-talk] gcc_7.0.0 not found

2019-12-07 Thread John Benediktsson
Perhaps build your own? https://github.com/factor/factor#building-factor-from-source On Fri, Dec 6, 2019 at 9:54 PM Sanjay Jain via Factor-talk < factor-talk@lists.sourceforge.net> wrote: > Dear Sir, > > I am using Slackware 14.2 32 bit which has gcc v.5.3.0. When I run Factor > v. 0.98, it

Re: [Factor-talk] Round-off mode of x87 FPU

2019-11-23 Thread John Benediktsson
You can read about controlling the floating point environment: https://docs.factorcode.org/content/article-math.floats.env.html including the rounding mode here: https://docs.factorcode.org/content/word-with-rounding-mode%2Cmath.floats.env.html > On Nov 23, 2019, at 3:06 AM, Sanjay Jain via

Re: [Factor-talk] Fwd: Re: How to quit Factor - console

2019-11-08 Thread John Benediktsson
again without explicitly using any vocabularies, the same > routine gives all kinds of errors like word not found. What vocabularies > are implicitly loaded in factor-console when it is started, and where is > this specified? > > > > Original Message > From:

Re: [Factor-talk] expm1 function missing

2019-11-04 Thread John Benediktsson
We can add that, it's probably roughly equal to this: GENERIC: e^-1 ( x -- y ) M: object e^-1 e^ 1 - ; inline M: float e^-1 dup 0.7 < [ dup e^ dup 1.0 = [ drop ] [ [ 1.0 - * ] [ log / ] bi ] if ] [ e^ 1.0 - ] if ; inline {

Re: [Factor-talk] Escapable each

2019-10-04 Thread John Benediktsson
This works in the non-optimizing compiler (for example, the Listener): 3 [ f ] times But not in the optimizing compiler. I pushed a quick fix that makes your word work: https://github.com/factor/factor/commit/e17b9119293783728e193b29856d81ba5862c8eb On Fri, Oct 4, 2019 at 5:29 PM KUSUMOTO

Re: [Factor-talk] Escapable each

2019-10-02 Thread John Benediktsson
Logica seems pretty cool! Any desire to make it available for others to use? Best, John. > On Oct 2, 2019, at 9:15 AM, KUSUMOTO Norio wrote: > >  2019/09/23 18:03、Alexander Ilin のメール: >> >> >> Have you used the `backtrack` vocab for this? >>

Re: [Factor-talk] Generating symbols at runtime

2019-09-18 Thread John Benediktsson
Some small simplifications using ``counter`` and ``slots>tuple``: ``` SYMBOL: *anonymouse-var-no* 0 *anonymouse-var-no* set-global : reset-anonymouse-var-no ( -- ) 0 *anonymouse-var-no* set-global ; : generate-anonymouse-var ( -- var-symbol ) [ *anonymouse-var-no* counter

Re: [Factor-talk] Generating symbols at runtime

2019-09-18 Thread John Benediktsson
Yep, you can also use the syntax for it: << { "foo "bar" "baz" } [ create-word-in define-symbol ] each >> On Tue, Sep 17, 2019 at 7:13 AM KUSUMOTO Norio wrote: > > How do I code to generate symbols at runtime? "define-symbol" seems to > work > > only at compile time. > > Oh, I was able to do

Re: [Factor-talk] directly writing to pref-dim slot of gadget

2019-07-25 Thread John Benediktsson
It's probably to set the default / initial size of the gadget. Some gadgets do it by overriding the ``pref-dim*`` word like so: ./extra/tetris/tetris.factor:M: tetris-gadget pref-dim* drop { 200 400 } ; And a few do it by setting it like that... I think the ``pref-dim*`` approach was the

Re: [Factor-talk] Debug Information when Factor is down

2019-07-17 Thread John Benediktsson
If you start the program from the command line: ./Factor.app/Contents/MacOS/factor Then if it crashes like that you’ll get an opportunity to inspect the data stack and call stack etc. > On Jul 17, 2019, at 7:26 AM, KUSUMOTO Norio wrote: > > I found out about the existence of 'FEP' from

Re: [Factor-talk] Deploy Crashes

2019-06-20 Thread John Benediktsson
Try: delete-staging-images We don’t version them right now so major upgrades sometimes have stale images interfering with deploy. Best, John. > On Jun 20, 2019, at 8:43 AM, Alexander Ilin wrote: > > Hello! > > I'm trying to deploy an app, and the deploy tool crashes. I'm using a clean

Re: [Factor-talk] Executable version information

2019-06-18 Thread John Benediktsson
I don't think so, but that'd be a cool thing to add! https://docs.microsoft.com/en-us/windows/desktop/debug/pe-format On Tue, Jun 18, 2019 at 10:37 AM Alexander Ilin wrote: > Hello! > > Is there a vocab in Factor to extract the Version Information resource > from an executable file on

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

2019-06-05 Thread John Benediktsson
Or clear the cache each time, so you don’t have to be lower level code... > On Jun 5, 2019, at 4:24 AM, Alexander Ilin wrote: > > I think the pairs of {font, string} are cached and only drawn once by the GUI > framework. > I think you need to call the drawing code more directly to get real >

Re: [Factor-talk] How to describe variable stack effects for a call( ?

2019-06-01 Thread John Benediktsson
You will need at some point to specify the arity of your functions. You can call quotations "dynamically" like this... but if the stack checker can't infer what the quotation's stack effect is, you need to specify in the ``call(`` what the effect is so that it will be checked at runtime: IN:

Re: [Factor-talk] Too ambitious a project for a newbie?

2019-05-20 Thread John Benediktsson
Why are you limited to 32 bits? Factor provides 64-bit binaries? We do have some limitations to a single OS thread, although similar to how Python is doing a "sub interpreter" in their next version we have a multi-VM feature that was half completed, and could use some finishing touches. Best,

Re: [Factor-talk] karakuri, a hierarchical finite state machine library

2019-05-02 Thread John Benediktsson
The examples in the README are pretty nice, it would be great if you had those as runnable tests. e.g., "karakuri" test On Thu, May 2, 2019 at 7:58 AM John Benediktsson wrote: > Cool!! I’ll check it out in a bit! > > > On May 2, 2019, at 1:17 AM, KUSUMOTO Norio >

Re: [Factor-talk] make-pane with the prettyprinter

2019-03-20 Thread John Benediktsson
That's a fun idea, and probably not too hard, PR's welcome! On Tue, Mar 19, 2019 at 2:45 PM Alexander Ilin wrote: > Hello! > > The prettyprinter is pretty powerful, but can it be used to create > rich-text GUIs? > For example, is it possible to use the `flow` section to make the text > in

Re: [Factor-talk] key-up event on Windows Factor

2019-03-08 Thread John Benediktsson
t; -- > KUSUMOTO Norio > > > > > >> 2019/03/09 13:00、KUSUMOTO Norio のメール: >> >> Hi, >> >> >>> 2019/03/09 10:02、John Benediktsson のメール: >>> >>> If you'd like to play around with how Factor receives various inputs, >

Re: [Factor-talk] Mailing List

2019-03-08 Thread John Benediktsson
Fix it! On Tue, Feb 26, 2019 at 8:01 AM Alexander Ilin wrote: > Hello! > > This mailing list is not listed in the Community section of the > README.md (https://github.com/factor/factor/blob/master/README.md). > > Is this or purpose (to fight spam), or an omission that should be fixed? > >

Re: [Factor-talk] key-up event on Windows Factor

2019-03-08 Thread John Benediktsson
If you'd like to play around with how Factor receives various inputs, including the keyboard events, you can run the gesture-logger debug tool. It prints out a log of all gestures received by the window so you can see mouse movement, mouse clicks, key-up, key-down, etc: IN: scratchpad

Re: [Factor-talk] Finding helpful messages in stage 2 bootstrap

2019-02-05 Thread John Benediktsson
You might also find this informative: https://github.com/factor/factor/commit/8cf18d1a82f08d1e9edf20f38b42eb1699ca0e67 > On Feb 5, 2019, at 7:28 AM, Jack Lucas via Factor-talk > wrote: > > That’s perfect. I think this’ll set me back on track. Thanks Doug! > > Jack > > >> On Tue, Feb 5,

Re: [Factor-talk] send-email error

2019-01-20 Thread John Benediktsson
You need to define a smtp-config object showing what server to send email through: https://docs.factorcode.org/content/word-smtp-config%2Csmtp.html For example, configuring to use your GMail account: https://docs.factorcode.org/content/article-smtp-gmail.html > On Jan 19, 2019, at 4:57 PM,

Re: [Factor-talk] Factor UI and Input Method

2019-01-10 Thread John Benediktsson
I'm not familiar with that method of text entry. What's the best way to try it out on my macOS Mojave? Maybe we can improve it. Thanks, John. On Wed, Jan 9, 2019 at 9:36 PM 楠本紀雄 wrote: > Hello to all, > I'm a beginner of factor. > > I'm using Factor.app on MacOS. When Japanese strings are

Re: [Factor-talk] unexpected integer from a float sum

2018-12-19 Thread John Benediktsson
I’m surprised also. They should display the way they do in other languages examples. That seems like a bug. > On Dec 18, 2018, at 12:25 PM, Alexander Ilin wrote: > > USE: math.functions:round instead > > 18.12.2018, 15:14, "Georg Simon" : >> Below I pasted a result from my listener I do not

Re: [Factor-talk] unexpected integer from a float sum

2018-12-18 Thread John Benediktsson
Your number isn't quite 13799, represented as a floating point number, but maybe we could print it out with additional digits. See, for example, the same result in other languages: Here is Java: $ cat foo.java class foo { public static void main(String[] args) { double[] foo = { -13.8, -21.8,

Re: [Factor-talk] maximum of a seq

2018-12-11 Thread John Benediktsson
hey have related words ``supremum`` and ``infimum``. Maybe those need better names... Best, John. On Tue, Dec 11, 2018 at 8:22 AM wrote: > On 2018-12-10 16:40, John Benediktsson wrote: > > Using fry is convenient. Due to how we bootstrap factor, we can't use > > fry

Re: [Factor-talk] Path in graph, or something

2018-12-10 Thread John Benediktsson
We have some path finding stuff in the ``path-finding`` vocabulary, as well as some directed graph stuff in ``graphs`` vocabulary that is used by the compiler. On Mon, Dec 10, 2018 at 11:43 AM Alexander Ilin wrote: > Hey, guys! > > I have a new task, and I want to know if there are existing

Re: [Factor-talk] maximum of a seq

2018-12-10 Thread John Benediktsson
Using fry is convenient. Due to how we bootstrap factor, we can't use fry right now in "core" vocabularies, like sequences, so you'll see a fair amount of curry and compose which are more or less what fry is doing, just not as clean syntax. I love the REPL advent idea, go for it! And as you

Re: [Factor-talk] with-http-request* sometimes fails

2018-09-07 Thread John Benediktsson
It's a crappy error message for sure! Comes from not having a port specified, and the URL doesn't have a protocol so it doesn't default to 80. IN: scratchpad URL" /https://fussballimtv.de; describe url protocol f username f password f host f port f path "/https://fussballimtv.de;

Re: [Factor-talk] Factor 0.98 now available

2018-07-31 Thread John Benediktsson
Sorry about that! Fixed!! On Tue, Jul 31, 2018 at 1:55 PM Alexander Ilin wrote: > Hi, John! > > 31.07.2018, 20:12, "John Benediktsson" : > > > https://re-factor.blogspot.com/2018/07/factor-098-now-available.html > > > I think the line "ui.tools.list

[Factor-talk] Factor 0.98 now available

2018-07-31 Thread John Benediktsson
following individuals: Alexander Iljin, Arkady Rost, Benjamin Pollack, Björn Lindqvist, Cat Stevens, Chris Double, Dimage Sapelkin, Doug Coleman, Friedrich von Never, John Benediktsson, Jon Harper, Mark Green, Mark Sweeney, Nicolas Pénet, Philip Dexter, Robert Vollmert, Samu

Re: [Factor-talk] HOOK: Confusion

2018-07-28 Thread John Benediktsson
gt; I'm not sure it only chokes like that when I use my special backend. For some > reason I think it sometimes fails without it, but I can't prove it (even to > myself) at the moment. > > 28.07.2018, 01:29, "John Benediktsson" : >> It shouldn't fail like th

Re: [Factor-talk] Getting the vocabs named in a file's USING:

2018-02-01 Thread John Benediktsson
You could use regexp maybe. "resource:core/math/math.factor" utf8 file-contents R/ USING:(\s+[^;]+)+\s+;/ all-matching-subseqs [ "USING:" ?head drop ";" ?tail drop " " split harvest ] map concat We have the using list available at parse time but I don't think it's stored anywhere in

Re: [Factor-talk] Newbie problem with 'first program'

2018-01-19 Thread John Benediktsson
Usually you can press the Fn key and then F2 if it’s a dual-purpose button. Apple doesn’t think we need Function keys and keeps trying to make them harder to use. (I use a MacBook also). > On Jan 19, 2018, at 5:27 AM, Andrew McDowell wrote: > > OK, back with my next

Re: [Factor-talk] Newbie problem with 'first program'

2018-01-18 Thread John Benediktsson
You mounted the Factor DMG, which is normal, but it is read-only, so you are getting an error when trying to write files or create directories inside it. I recommend copying the factor folder from the DMG into somewhere else like /Applications and then it should work fine. On Thu, Jan 18, 2018

Re: [Factor-talk] printf documentation

2018-01-18 Thread John Benediktsson
il.com> wrote: > 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 <mrj...@gmail.com> > wrote: > >> MACRO:

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

2018-01-07 Thread John Benediktsson
If you look at ``M\ remote-thread send``, it uses ``send-remote-message`` which opens a TCP connection using ``with-client``, which sends a message, then closes the connection. For a high-throughput messaging application, you would probably want to re-use a TCP connections, or use UDP, and

Re: [Factor-talk] Backtracking

2017-10-07 Thread John Benediktsson
You should use with the latest pre-release of 0.98. Regarding unsafe-amb. You should use ``amb-lazy`` in compiled words. Here's a simple version that prints all solutions. There's no reason to use though if you disallow zero. You should just use numbers in range [1,9]. :: solve ( -- ) [

Re: [Factor-talk] Build Farm (was: Window Messages)

2017-08-21 Thread John Benediktsson
like we have a web server)? > > I'm currently thinking about hosting a Jenking build locally for myself. Does > anyone have any experience in that area? > > 21.08.2017, 16:44, "John Benediktsson" <mrj...@gmail.com>: >> >> As far as I know, it's an iss

Re: [Factor-talk] Build Farm (was: Window Messages)

2017-08-21 Thread John Benediktsson
to upload development snapshots yet. Best, John. > On Aug 21, 2017, at 3:39 AM, Alexander Ilin <ajs...@yandex.ru> wrote: > > This looks perfect, thanks a lot, John! > > Are there any news on fixing the Windows build? What is the issue with that? > Can I help? >

Re: [Factor-talk] Window Messages

2017-08-20 Thread John Benediktsson
I recommend reading ``basis/ui/backend/windows/windows.factor``. Particularly the ``add-wm-handler`` word. This probably requires a UI application, not just a console one. Best, John. On Sun, Aug 20, 2017 at 3:59 PM, Alexander Ilin wrote: > Hello! > > I'd like my app

Re: [Factor-talk] dragdrop-listener

2017-08-13 Thread John Benediktsson
Seems like most of that code should still work if the windows API's it uses are the ones you want to use. I think ui.tools.workspace is needed for getting the window handle: get-workspace parent>> handle>> hWnd>> Which is just (I think) ``world get handle>> hWnd>>``. On Sun, Aug 13, 2017

Re: [Factor-talk] supremum

2017-06-21 Thread John Benediktsson
Maybe contribute a `?supremum` to sequences.extras? You could define it to return `f` on empty sequence and ignore `f` elements? If it's useful we could change supremum or move to core. Add infimum also. And note that we use sift supremum in at least one place

Re: [Factor-talk] Word Wrapping

2017-06-19 Thread John Benediktsson
The ``ui.gadgets.paragraphs:paragraph`` does the wrapping. 300 dup [ 100 [ "hello " write ] times ] with-output-stream* gadget. On Mon, Jun 19, 2017 at 12:01 PM, Alexander Ilin wrote: > Hello! > > Do we have a control that performs word-wrapping of its

Re: [Factor-talk] How to introduce factor to java programmers?

2017-06-16 Thread John Benediktsson
t with no >> penalty. From the documentation: "For words that are not inline, only >> the number of inputs and outputs carries semantic meaning, and effect >> variables are ignored." >> >> http://docs.factorcode.org/content/article-effects.html >> &g

  1   2   3   4   5   6   >