Re: [Factor-talk] Factor and MacOS arm64

2020-11-23 Thread KUSUMOTO Norio
rked on the arm64 assembler and now we have to implement the compiler > hooks properly with assembly output. > > More to come soon! Wow! That's exciting information! -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourcefor

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

2020-08-12 Thread KUSUMOTO Norio
to be stagnant, especially the Mac version, which is currently on 2020-04-12. Is there a problem with this? -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

[Factor-talk] Default stack size and stack consumption

2020-03-09 Thread KUSUMOTO Norio
d when a quote was executed? - I don't know how to use 'profile'. I tried this with reference to the following page, but I got an error. What am I doing wrong? [ 1 2 + ] profile top-down profile. <https://docs.factorcode.org/content/article-tools.profiler.sampling.html> -- KU

Re: [Factor-talk] Factor and Python's generator

2020-03-05 Thread KUSUMOTO Norio
> 2020/03/04 22:02、KUSUMOTO Norio のメール: >>def gen(): >>for i in xrange(10**5): >>yield i >> >>for i in gen(): >>pass > > >> "libs/coroutines" require >> USE: coroutines >> : gen ( -

[Factor-talk] Factor and Python's generator

2020-03-04 Thread KUSUMOTO Norio
coyield 2drop ] each f swap coyield ] cocreate ; : run ( co -- ) f swap coresume dup [ run ] [ drop ] if ; IN: scratchpad [ gen run ] time Running time: 0.000414741 seconds How should I change that? -- KUSUMOTO Norio ___ Factor-talk mailing list Fa

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

2020-02-07 Thread KUSUMOTO Norio
ion and > improvements. > > Perhaps some of our directory traversal code could be improved in Windows. I understand. I'll report that as an issue. -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

[Factor-talk] Search time on Windows Factor

2020-02-06 Thread KUSUMOTO Norio
display the first search result. Why are there differences between platforms? Is there a way to do a quick first search with windows Factor? -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https

Re: [Factor-talk] logica -- a prolog-like library

2019-11-03 Thread KUSUMOTO Norio
lt;https://github.com/kusumotonorio/factlog> -- KUSUMOTO Norio > 2019/11/01 21:05、KUSUMOTO Norio のメール: > > Hi, Jack. > > > 2019/10/31 22:32、Jack Lucas via Factor-talk > のメール: >> >> -- Factual >> >> -- Factlog > > Both are good! Thank you.

Re: [Factor-talk] logica -- a prolog-like library

2019-11-01 Thread KUSUMOTO Norio
ent that you may port miniKanren to Factor. It would be great if this library could help with some of your plans, and if you decide to port miniKanren separately from this library, I hope I could help in some way. Oh, and I'm also looking forward to writing your boo

Re: [Factor-talk] logica -- a prolog-like library

2019-10-31 Thread KUSUMOTO Norio
ate to use the name "logic" in it. I hope it is not too long and there is a suitable name. -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] logica -- a prolog-like library

2019-10-12 Thread KUSUMOTO Norio
use it's an embedded language, so I wanted to use words that would not normally be used in factors. -- KUSUMOTO Norio > 2019/10/12 21:10、KUSUMOTO Norio のメール: > > > >> 2019/10/12 20:27、Alexander Ilin のメール: >> >> I like the idea, and I will definitely keep in mind

Re: [Factor-talk] logica -- a prolog-like library

2019-10-12 Thread KUSUMOTO Norio
terminology in computing before. Oh, did that mean that? That is a problem. "semper" means "always" in Latin. Semper avarus eget. https://eudict.com/?lang=lateng=semper%20avarus%20eget -- KUSUMOTO Norio ___ Factor-talk m

Re: [Factor-talk] logica -- a prolog-like library

2019-10-12 Thread KUSUMOTO Norio
Hello everyone. I wrote an explanation about logica. <https://github.com/kusumotonorio/logica> I would appreciate it if you could give me your opinions and comments. Also, I would appreciate it if you could think about how to use it. ;-) -- KUSUMOTO Norio > 2019/10/03 21:40、KUSUM

Re: [Factor-talk] Escapable each

2019-10-05 Thread KUSUMOTO Norio
Ouch, I correct the previous statement. > 2019/10/05 10:44、KUSUMOTO Norio のメール: > > Leave the code using while instead of nfind until the corresponding > code is included in the release build. *I* leave the code using while instead of nfind until the corresponding code

Re: [Factor-talk] Escapable each

2019-10-04 Thread KUSUMOTO Norio
Thank you for your quick response, John. Leave the code using while instead of nfind until the corresponding code is included in the release build. -- KUSUMOTO Norio > 2019/10/05 10:20、John Benediktsson のメール: > > This works in the non-optimizing compiler (for example, the Listener

Re: [Factor-talk] Escapable each

2019-10-04 Thread KUSUMOTO Norio
t am I wrong? -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

[Factor-talk] logica -- a prolog-like library

2019-10-03 Thread KUSUMOTO Norio
X Y } query . -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] Escapable each

2019-10-02 Thread KUSUMOTO Norio
> 2019/10/02 23:07、Alexander Ilin のメール: > > I like the LGBT reference, well done! : ) Oh, that's true. :-) -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listin

Re: [Factor-talk] Escapable each

2019-10-02 Thread KUSUMOTO Norio
> 2019/10/02 22:23、John Benediktsson のメール: > > Any desire to make it available for others to use? Yes, of course! -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists

Re: [Factor-talk] Escapable each

2019-10-02 Thread KUSUMOTO Norio
printf nl " " printf hash N of list>array [ "%d " printf ] each nl nl ] each ; IN: scratchpad [ { { moneyo N1 N2 N } { sumo N1 N2 N } } query S-and-M-can't-be-zero print-puzzle ] time 0 9 5 6 7 + 0 1 0 8 5 1 0 6 5 2 Running time: 0.

Re: [Factor-talk] Generating symbols at runtime

2019-09-27 Thread KUSUMOTO Norio
Oh, the single underline was used in 'fry' vocab. I consider using a double underline to represent anonymous variables... -- KUSUMOTO Norio > 2019/09/19 7:21、KUSUMOTO Norio のメール: > >> Yep, you can also use the syntax for it: >> >> << { "foo "bar

Re: [Factor-talk] Escapable each

2019-09-23 Thread KUSUMOTO Norio
preston/ruby-prolog The current number of lines, including a few built-in predicates, is 450. -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] Escapable each

2019-09-23 Thread KUSUMOTO Norio
2 seconds -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] Escapable each

2019-09-22 Thread KUSUMOTO Norio
he impression I got from Word's name. -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

[Factor-talk] Escapable each

2019-09-22 Thread KUSUMOTO Norio
something that satisfies the condition, but I don't know how to write 'each' that can escape. What code do you write for such a process? I use 'with-return' to handle such situations. But I suspect it's costing time. -- KUSUMOTO Norio ___ Factor-talk

Re: [Factor-talk] Generating symbols at runtime

2019-09-19 Thread KUSUMOTO Norio
wap set-global ] with-compilation-unit ; : replace-'_' ( before -- after ) { { [ dup _ = ] [ drop var-for-'_' ] } { [ dup sequence? ] [ [ replace-'_' ] map ] } { [ dup tuple? ] [ [ tuple-slots [ replace-'_' ] map ] [ class-of slots>tuple ] bi ]

Re: [Factor-talk] Generating symbols at runtime

2019-09-18 Thread KUSUMOTO Norio
] } { [ dup sequence? ] [ [ replace-anonymouse-vars ] map ] } { [ dup tuple? ] [ [ class-of 1array ] [ tuple-slots ] bi [ replace-anonymouse-vars ] map append >tuple ] } [ ] } cond ; -- KUSUMOTO Norio ___

Re: [Factor-talk] Generating symbols at runtime

2019-09-17 Thread KUSUMOTO Norio
> How do I code to generate symbols at runtime? "define-symbol" seems to work > only at compile time. Oh, I was able to do it as follows: [ "a-symbol" "factor-logica" create-word define-symbol ] with-compilation-unit -- KUSUMOTO Norio > 2019/09/17 19

[Factor-talk] Generating symbols at runtime

2019-09-17 Thread KUSUMOTO Norio
-logica/built-in/built-in.factor IN: scratchpad { zebrao X } query . { H{ { X japanese } } H{ { X japanese } } } -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] Building an Image File

2019-09-11 Thread KUSUMOTO Norio
Thank you very much. The information you gave me solved my problem. -- KUSUMOTO Norio > 2019/09/11 0:15、Doug Coleman のメール: > > make-my-image > make-images > ___ Factor-talk mailing list Factor-talk@lists.source

[Factor-talk] Building an Image File

2019-09-10 Thread KUSUMOTO Norio
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 ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https

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

2019-06-08 Thread KUSUMOTO Norio
und How wonderful! If it's this fast, it shouldn't be a problem in terms of speed to implement imperfectly transparent foreground text. -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

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

2019-06-08 Thread KUSUMOTO Norio
my machine, my code took 9 to 10 times longer to make a text image with a transparent background than it did with an opaque background. ! Copyright (C) 2019 KUSUMOTO Norio. ! See http://factorcode.org/license.txt for BSD license. USING: kernel accessors locals math formatting ui ui.gadgets.la

Re: [Factor-talk] Recourse to Composure

2019-06-06 Thread KUSUMOTO Norio
upted with some difficulties. I'm starting to think that it would be better to port Prolog to Factor. :-) -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

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

2019-06-03 Thread KUSUMOTO, Norio
to measure time by actually drawing a label with a transparent background over and over again, and that happens very quickly. Creating an image from text takes a long time (3: and 4:) , so it should actually take longer. What's wrong with my code? ! Copyright (C) 2019 KUSUMOTO Norio. ! See http

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

2019-05-30 Thread KUSUMOTO Norio
Thank you, Alexander! I will read it and study. I tried the idea I wrote earlier. I've only tried a little, but it seems to work well. Yay! <https://pbs.twimg.com/media/D70GEGkVUAUxgWb.png> -- KUSUMOTO Norio > 2019/05/30 20:19、Alexander Ilin のメール: > > Hello! > > I

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

2019-05-29 Thread KUSUMOTO Norio
019/05/30 1:59、Alexander Ilin のメール: > > Wow, you are making a very valuable contribution! > Thank you very much for the effort you are making! > > It would be really great to have a solution for this issue. > > 29.05.2019, 05:39, "KUSUMOTO Norio" : >> It seems

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

2019-05-28 Thread KUSUMOTO Norio
It seems that the direction to solve the problem is not wrong. But, we will need to transfer the appropriate data with the appropriate offset to the device context where Uniscribe writes a text. <https://pbs.twimg.com/media/D7s4qrTXYAIk8WF.png> -- KUSUMOTO

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

2019-05-28 Thread KUSUMOTO Norio
I seem to be a little too upset. I trusted machine translation too much. I'll fix it. My guess seems to be correct. Uniscribe seems to be able to draw characters which have a transparent background on top of images transferred by BitBlt. -- KUSUMOTO Norio > 2019/05/28 22:27、KUSUMOTO No

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

2019-05-28 Thread KUSUMOTO Norio
xt-transparent-2 } { T{ key-down { sym "5" } } com-screen-shot-with-text-transparent-3 } } define-command-map MAIN-WINDOW: hello-uniscribe { { title "გამარჯობა, uniscribe" } } >>gadgets ; > 2019/05/28 19:07、KUSUMOTO Norio のメール: > > Hi Alexander, > &

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

2019-05-28 Thread KUSUMOTO Norio
text-opaque } { T{ key-down { sym "3" } } com-screen-shot-with-text-transparent-1 } { T{ key-down { sym "4" } } com-screen-shot-with-text-transparent-2 } { T{ key-down { sym "5" } } com-screen-shot-with-text-transparent-3 } } define-command-map MAIN-WINDO

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

2019-05-28 Thread KUSUMOTO Norio
to create an image of a string with a transparent background unless you transfer the original window bitmap to the device context created by with-memory-dc. -- KUSUMOTO Norio > 2019/05/28 14:36、KUSUMOTO Norio のメール: > > Hello all, > > I've been researching for a while about W

[Factor-talk] Transparent background texts and Windows Factor

2019-05-27 Thread KUSUMOTO Norio
m reading Uniscribe.factor is that it renders characters in the device context given by with-memory-dc. However, if you create a bitmap from that dc, its background is black, regardless of the drawing on the current window. My guess is that you won't be able to create an image of a string with a tr

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

2019-05-26 Thread KUSUMOTO Norio
https://github.com/factor/factor/compare/master...kusumotonorio:cocoa-inline-input -- KUSUMOTO Norio > 2019/04/16 22:21、KUSUMOTO Norio のメール: > > The inline input/conversion has become stable because I understood the cause > of > the crash of Factor IDE. > > <https:/

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

2019-04-22 Thread KUSUMOTO Norio
king forward to opinion from you. https://github.com/kusumotonorio/factor/blob/windows-kn-plan2/basis/ui/backend/windows/windows.factor https://github.com/factor/factor/compare/master...kusumotonorio:windows-kn-plan2 -- KUSUMOTO Norio ___ Factor-

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

2019-04-16 Thread KUSUMOTO Norio
nction. -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] Cocoa in Factor

2019-04-15 Thread KUSUMOTO Norio
should I write it? NO at Cocoa is 0, so I should write it as: NSString -> class text swap -> isMemberOfClass: 0 = not [ Also, for my purpose, I should use "isKindOfClass" instead of "isMemberOfClass". -- KUSUMOTO Norio > 201

[Factor-talk] Cocoa in Factor

2019-04-14 Thread KUSUMOTO Norio
should I write it? -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

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

2019-04-11 Thread KUSUMOTO Norio
received the input that was not consumed, but it seems that the IM can't receive the input unless the Factor backend sends a key-down event. <https://user-images.githubusercontent.com/47816570/55955306-03357780-5c9c-11e9-98e8-e41b2fadaac0.png> -- KUSUMOTO

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

2019-04-11 Thread KUSUMOTO Norio
> 2019/04/11 7:23、Alexander Ilin のメール: > > nil is f, the canonical false value. Thank you! -- KUSUMOTO Norio > 2019/04/11 7:23、Alexander Ilin のメール: > > nil is f, the canonical false value. > > 10.04.2019, 15:52, "KUSUMOTO Norio" : >> Hmm, "text&

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

2019-04-07 Thread KUSUMOTO Norio
Thank you for your attention, Doug. I don't care that my code is not used as it is. Also, I am prepared to explain why I wrote the code that way. -- KUSUMOTO Norio > 2019/04/08 8:21、Doug Coleman のメール: > > Hi, > > I think you can still use the x11 backend on any unix s

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

2019-03-30 Thread KUSUMOTO Norio
} { 99 "F3" } { 118 "F4" } { 96 "F5" } { 97 "F6" } { 98 "F7" } { 100 "F8" } { 123 "LEFT" } { 124 "RIGHT" } { 125 "DOWN" } { 126 "UP

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

2019-03-28 Thread KUSUMOTO Norio
Sorry, I’ll correct my message. > 1. Why are send-key-up called by handle-wm-char? 1. Why are send-key-down called by handle-wm-char? -- KUSUMOTO Norio > 2019/03/29 9:49、KUSUMOTO Norio のメール: > > When I read the file, I have some questions. > These are: > 1. Why are

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

2019-03-09 Thread KUSUMOTO Norio
> 2019/03/09 20:36、KUSUMOTO Norio のメール: > > Yes, I can. > > Windows 7 Home Premium > Service Pack 1 32bit > > Japanese > > Japanese PS/2 keyboard (109) > > 32bit Factor factor-windows-x86-32-0.98 > This PC is im my office. After returning home, I t

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

2019-03-09 Thread KUSUMOTO Norio
Yes, I can. Windows 7 Home Premium Service Pack 1 32bit Japanese Japanese PS/2 keyboard (109) 32bit Factor factor-windows-x86-32-0.98 -- KUSUMOTO Norio > 2019/03/09 15:08、John Benediktsson のメール: > > Interesting! Okay. > > Any details of the keyboard type or la

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

2019-03-08 Thread KUSUMOTO Norio
not notifications about key-up. -- 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, >> including

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

2019-03-08 Thread KUSUMOTO Norio
User input: 1 per one hit. The other hand, when I hit normal 1 key, it showed : T{ key-down { sym “1” } } User input: 1 T{ key-up { sym “1” } } per one hit. -- KUSUMOTO Norio > 2019/03/09 10:02、John Benediktsson のメール: > > If you'd like to play around with how Factor receives var

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

2019-03-07 Thread KUSUMOTO Norio
ef-dim* drop { 800 50 } ; MAIN-WINDOW: key-up-window { { title "key-up testhit 1 key (RET: clear)" } { window-controls { normal-title-bar close-button minimize-button } } } >>gadgets ; -- KUSUMOTO Norio

Re: [Factor-talk] How to use local variable

2019-02-05 Thread 楠本紀雄 (KUSUMOTO Norio)
Hi, Thanks a lot! I understand how to use lexical variables because of your advice. -- KUSUMOTO Norio > 2019/02/05 2:50、Alexander Ilin のメール: > > This will work as you expected: > > USE: locals > :: fnc ( -- ) 0 :> i! 3 [ i 1 + i! i . ] times ; > fnc > > 1 >

Re: [Factor-talk] How to use local variable

2019-02-05 Thread 楠本紀雄 (KUSUMOTO Norio)
Hi, Thank you for your advice! It was very beneficial. -- KUSUMOTO Norio > 2019/02/04 22:19、Philip Dexter のメール: > > Hi, > > Check out the "Mutable bindings" example here: > https://docs.factorcode.org/content/article-locals-examples.html > > Note the

[Factor-talk] How to use local variable

2019-02-03 Thread KUSUMOTO, Norio
should I write them? -- KUSUMOTO Norio ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

Re: [Factor-talk] send-email error

2019-01-21 Thread 楠本紀雄 (KUSUMOTO Norio)
Thank you for giving me good advice! I could send a email with Factor. -- KUSUMOTO Norio > 2019/01/21 0:38、John Benediktsson のメール: > > You need to define a smtp-config object showing what server to send email > through: > > https://docs.factorcode.org/content/word-smtp-