Re: [Jprogramming] GitHub Copilot anyone used this with J?

2023-05-08 Thread Michal Wallace
I wrote a toy SAT solver in J, and tried getting ChatGPT4 to make the same thing. It worked eventually, but took quite a lot of feedback to make it sensible. The initial version looked plausible right off the bat, but there were lots of bugs and hallucinations going on... On Mon, May 8, 2023 at

Re: [Jprogramming] j.dll change in 9.4?

2023-04-22 Thread Michal Wallace
em. On Sat, Apr 22, 2023 at 10:48 PM bill lam wrote: > Without additional details, it is hard to guess what's wrong. You can PM me > scripts or files to reproduce the issue if you wish. > > On Sun, 23 Apr 2023 at 7:43 AM Michal Wallace > wrote: > > > When I try to run

[Jprogramming] j.dll change in 9.4?

2023-04-22 Thread Michal Wallace
When I try to run my J frontend in J9.4, it crashes when trying to run JInit. I don't know how to obtain any kind of error message. The same binary works just fine against j903 and j902. Has something changed? (I'm not seeing anything in the changelog. I see a new JInit2 was added recently in the

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Michal Wallace
then jqt won't be used at > all. You need to implement your own gui functions including gl2.. > > > On Tue, Apr 18, 2023, 12:57 AM Michal Wallace > wrote: > > > Thanks Bill. > > > > I have JWd working now, but I'm a little confused about what you'r

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Michal Wallace
be modified to export a reference for the > code which does that search.) > > I hope this helps, > > -- > Raul > > On Mon, Apr 17, 2023 at 12:56 PM Michal Wallace > > wrote: > > > > Thanks Bill. > > > > I have JWd working now, but I'm a little

[Jprogramming] can i record audio in jqt?

2023-04-17 Thread Michal Wallace
I see there is a qtaudio_wasapi.dll and qtaudio_windows.dll... And I see this on the QT site: https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiorecorder-example.html Could I have used this somehow to record audio from out-of-the-box J rather than making my own J frontend? (I don't regret makin

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-17 Thread Michal Wallace
C field. > The AR (rank) contains other information in its high bits so that you must > mask it to the lowest 7 bits only (though it seems safe enough to mask the > lowest 8 bits, Henry should know better here). > > You can browse the jandroid repository and also the io.c and andjnat

Re: [Jprogramming] docs for 11!:n (JWd)?

2023-04-15 Thread Michal Wallace
gate further. On Sat, Apr 15, 2023 at 5:01 PM Raul Miller wrote: > Jwd sounds like version 6 of J. This predates Jqt. > > There's some docs at > https://www.jsoftware.com/docs/help602/user/win_driver_cmd_ref_overview.htm > > I hope this helps, > > -- > Raul > &

[Jprogramming] docs for 11!:n (JWd)?

2023-04-15 Thread Michal Wallace
Hey all, I've been working on JPrez again -- a console-based presentation tool that can record and play back interactions with a J REPL. It also lets you specify text to be recorded for voice overs to narrate the interaction (for making videos), and over the past week I've embedded JPrez inside a

[Jprogramming] what is (or was) 'graph'?

2023-04-06 Thread Michal Wallace
https://code.jsoftware.com/wiki/Help/JforC/Graphics ... says you can do this to make an isigraph pop up: load 'graph' gopen '' but... a) the verb seems to have been renamed to `gdopen` since this was written and b) no window pops up when you call `gdopen` (tested in jQt for windows, j902

[Jprogramming] 2!:2 hasn't worked since j902?

2022-10-10 Thread Michal Wallace
I get a domain error evaluating (2!:2) on linux in both j903 and j904. It works as expected in j902. I'm running from the installation zips on Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-65-generic x86_64). JVERSION Engine: j904/j64/linux Beta-g: commercial/2022-10-04T00:00:39 Library: 9.04.04 Platfo

Re: [Jprogramming] lex / dev question

2022-04-21 Thread Michal Wallace
ve to meditate on (].~)@: for a while.. I see it, but I don't quite believe it. :D Thanks! On Thu, Apr 21, 2022 at 6:30 AM Elijah Stone wrote: > On Thu, 21 Apr 2022, Michal Wallace wrote: > > > I then thought that replacing u => [. and v => ]. would let me remove > the

[Jprogramming] lex / dev question

2022-04-20 Thread Michal Wallace
I want to write this tacitly: AA =: {{ (u v y) v y }} For context, I tend to use it to *A*pply monad u *A*t at a location specified by ambivalent verb v. AT =: {{ m&{:: : (<@[ m} ]) }} 3 AT ;/i.10 3 _ (3 AT) ;/i.10 +-+-+-+-+-+-+-+-+-+-+ |0|1|2|_|4|5|6|7|8|9| +-+-+-+-+-+-+-+-+-+-+

Re: [Jprogramming] Report on the J wiki meeting of January 27, 2022

2022-03-14 Thread Michal Wallace
It's true that dictionaries aren't really a "fundamental" data type, since they're easy to implement atop arrays. But I think for a lot of people, they've become a fundamental "thinking type"... I think jan-pieter's requirements list is a good start. I would add: - nice syntax for constructing th

Re: [Jprogramming] attempt at calling rust from j

2021-12-07 Thread Michal Wallace
r Flying Saucer" > pages was the > decision to use external libraries for things like complex numbers. > This is good approach but > It requires good examples and documentation illustrating how it's done. > > jdb > > On Tue, Dec 7, 2021 at 6:32 AM Michal Wallace >

Re: [Jprogramming] attempt at calling rust from j

2021-12-07 Thread Michal Wallace
Aha! It's working now. The basic flow was right, I just needed a lot of fiddling with the rust translations of the types. Thanks, everyone! On Tue, Dec 7, 2021 at 7:18 AM Michal Wallace wrote: > Nice! My actual goal is to get J talking to godot (game engine). As it > happen

Re: [Jprogramming] attempt at calling rust from j

2021-12-07 Thread Michal Wallace
s/target/debug/deps/jlang-1c90c81a3f6fae1c > --nocapture` (signal: 11, SIGSEGV: invalid memory reference) > > on mac > > > On Dec 6, 2021, at 7:22 PM, bill lam wrote: > > > > I don't know rust at all. What exactly do you expect and how it failed? > > > &g

Re: [Jprogramming] attempt at calling rust from j

2021-12-07 Thread Michal Wallace
I have something in the ABI set up wrong, but I can't tell. Is there a version of j.dll with debug symbols maybe? All I get is a wall of assembly when I try to debug. On Mon, Dec 6, 2021 at 8:22 PM bill lam wrote: > I don't know rust at all. What exactly do you expect and how it fai

[Jprogramming] attempt at calling rust from j

2021-12-06 Thread Michal Wallace
... It was not a successfu attempt. :) https://github.com/tangentstorm/jlang-rs/blob/main/src/lib.rs The basic plumbing seems to work unless I actually call JDo() on line 75 here. Any rust fans out there who might be able to help me figure this out? -Michal --

Re: [Jprogramming] sdselect timeout vs documentation

2021-11-18 Thread Michal Wallace
t; Am 18.11.21 um 01:39 schrieb Michal Wallace: > > I noticed something odd while working with net/websocket today. > > > > It seems sdselect takes a timeout as its fourth parameter, and the wiki > > seems to indicate that this is meant to be the timeout for the entire >

[Jprogramming] sdselect timeout vs documentation

2021-11-17 Thread Michal Wallace
I noticed something odd while working with net/websocket today. It seems sdselect takes a timeout as its fourth parameter, and the wiki seems to indicate that this is meant to be the timeout for the entire sdselect call. However, in practice, the timeout is spent for each of the other three param

Re: [Jprogramming] JQt terminal development environment

2021-11-03 Thread Michal Wallace
Oh wow. ctrl+shift arrow in jqt!! I had no idea. All this time I've just been hitting ctrl-d to get the history. Thanks for the tip! :) On Wed, Nov 3, 2021 at 10:51 AM 'Mike Day' via Programming < programm...@jsoftware.com> wrote: > Devon, in your initial msg, you mentioned > “Anyway, for re

Re: [Jprogramming] [raw video] j enhancement requests

2021-10-05 Thread Michal Wallace
to know a different perspective. > > > Am 05.10.21 um 22:58 schrieb Michal Wallace: > > I volunteered to migrate the J Enhancement Proposals from the J wiki > > to the jsource > > GitHub repo <https://github.com/jsoftware/jsource/issues> last month, > and > >

[Jprogramming] [raw video] j enhancement requests

2021-10-05 Thread Michal Wallace
I volunteered to migrate the J Enhancement Proposals from the J wiki to the jsource GitHub repo last month, and recorded the process with some commentary. I'm never going to have time to edit this, so I've just uploaded the raw footage to a new channel

[Jprogramming] where are these "old documents"?

2021-10-04 Thread Michal Wallace
where are the "old documents" i keep hearing about that explain the tacit adverbs and conjunctions? can someone post links please? -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Michal Wallace
to get used to it. > > Newlines are even better. Then you can put a comment on each line. > > Henry Rich > > On 9/30/2021 2:42 PM, Michal Wallace wrote: > > That is unfortunate. Normally, I am perfectly comfortable with [ and @ > > to do function composition, but some

Re: [Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Michal Wallace
2 [ sentence1 > > can't be beat unless one of the sentences produces a modifier. > > Henry Rich > > On 9/30/2021 2:15 PM, Michal Wallace wrote: > > Today I discovered that `:0 executes the gerund in series from left to > > right. > > > > The executio

[Jprogramming] can i trust `:0 to always execute left to right?

2021-09-30 Thread Michal Wallace
Today I discovered that `:0 executes the gerund in series from left to right. The execution order isn't specified in the docs (as far as I can tell), so I wonder if it's an implementation detail subject to change, or if I can rely on this? Almost all of the cases where I want '..' as a statement

[Jprogramming] tangentstorm/gridpad addon

2021-09-28 Thread Michal Wallace
I finally packaged up my sprite editor / general-purpose "viewmat-editor" as an addon: https://github.com/tangentstorm/gridpad/ The main branch covers everything that was in my "building a sprite editor in J" video as well as some of the enhancements I did for the "sandpiles!" video last year

Re: [Jprogramming] Eric Iverson is the guest on the Arraycast podcast

2021-09-22 Thread Michal Wallace
This was great! I always kinda wondered what was going on with jsoftware as a company. Thanks, Bob and Eric, for sharing this conversation. :) On Sat, Sep 18, 2021 at 11:47 AM 'robert therriault' via Programming < programm...@jsoftware.com> wrote: > This may be of interest to those who frequent

Re: [Jprogramming] language changes - self effacing

2021-09-17 Thread Michal Wallace
forward to suggestions in this area. But we want to keep it simple. > > A dead simple scheme like prefixes (j for jsoftware) similar to common port > numbers goes a long way in avoiding name conflicts. Not all in theory, but > perhaps enough in practice. > > On Fri, Sep 1

Re: [Jprogramming] language changes - self effacing

2021-09-17 Thread Michal Wallace
very glad to hear this! I think "big footprint" is what I was really getting at. Looking at my own code, I tend to use these "accessors" a lot more often in explicit code than in tacit. I still think there's a good idea there, but I now think it could be handled better with a verb-creating librar

Re: [Jprogramming] self effacing names??

2021-09-14 Thread Michal Wallace
m opposed to > assignment in tacits because they destroy the functional-programming > purity of the tacit language. You will need to build a broad consensus > before making such a change. > > Henry Rich > > > > On 9/14/2021 10:39 AM, Michal Wallace wrote: > > what&

[Jprogramming] "accessor" concepts

2021-09-14 Thread Michal Wallace
Let me amend what I was just saying about name:: ... I have been experimenting with a tacit style where the y "argument" represents the state of some big complicated object or system... for example, the state of a parser or a virtual machine. I've found that "accessor" verbs are really handy, and

[Jprogramming] self effacing names??

2021-09-14 Thread Michal Wallace
what's up with this new `name::` syntax? I have no problem with the concept, but I have a different suggestion for what `name::` should mean: a verb that assigns the variable with that name. That seems like a much more commonly wished-for thing (assignment in trains) : https://code.jsoftware.com

Re: [Jprogramming] Odd behaviour - functional?

2021-09-14 Thread Michal Wallace
Are you using the beta version (j903)? please type JVERSION inside J and show us the output. If this is actually happening, then it's a bug. Could be something to do with this: https://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Pre-Parsed_Parenthesized_Primitives_.28.29 On Tue,

Re: [Jprogramming] if __name__ == "__main__" ??

2021-09-08 Thread Michal Wallace
oach mentioned at > https://rosettacode.org/wiki/Executable_library#J might interest you. > > Note that if you are importing it as a widget, you might also want to > override the command line implementation, for example using 9!:29]0 > > Anyways, it depends on what you are trying to do

Re: [Jprogramming] if __name__ == "__main__" ??

2021-09-08 Thread Michal Wallace
e command-line for some flags - "-jijx" or "-rt" - indicating > we are in an interactive session. However, you have to follow a convention > of using these flags whenever you start an interactive session. These are > for jconsole as I rarely use JQt. > > Is th

[Jprogramming] if __name__ == "__main__" ??

2021-09-08 Thread Michal Wallace
In python, you can use this `if __name__=="__main__":` line in a module, and it will only execute the code in that block if you are running the module directly. This allows you to treat the same file as both a standalone application, and a library/module that can be imported into another program.

Re: [Jprogramming] Connecting the connections

2021-09-03 Thread Michal Wallace
Oh, Raul's version using +. (or) on the connection matrix is way nicer than my version, and gets rid of my bug with directions. Do that instead. :) On Fri, Sep 3, 2021 at 12:31 PM Raul Miller wrote: > I should note that your example connection matrix does not seem to > match the oid, nid values

Re: [Jprogramming] Connecting the connections

2021-09-03 Thread Michal Wallace
You don't need both arrays to store this graph. You can combine them into one array that maps from an index to the "next" index. [ g =: nid oid } i. 13 0 2 3 4 5 5 7 12 8 10 11 8 12 If an index points to itself, there's no next index. Now you can take the "transitive closure" of this relation

Re: [Jprogramming] did something change with input loops?

2021-09-03 Thread Michal Wallace
ttps://www.youtube.com/watch?v=zja1b-xadXg&list=PLMVwLeG3bKmmctpRZt7u7hL8d82Jr1Av4&index=6 On Fri, Sep 3, 2021 at 7:09 AM Michal Wallace wrote: > Over the years I've known J, the question of how to make J implement a > repl / input loop has come up numerous times. > &g

[Jprogramming] did something change with input loops?

2021-09-03 Thread Michal Wallace
Over the years I've known J, the question of how to make J implement a repl / input loop has come up numerous times. Back in 2014, I sat down and figured out how to make one: NB. - readln =: [: (1!:01) 1: donext =: [: (9!:29) 1: [ 9!:27 main =: verb define

Re: [Jprogramming] All selected hand possibilities (long)

2021-08-11 Thread Michal Wallace
Hi Devon : It sounds a bit like you're writing a hand evaluator for Omaha. You might find this interesting: https://github.com/tangentforks/TwoPlusTwoHandEvaluator It's a program that generates a giant binary encoding of a state machine that tells you the best hand value for any string of 5

Re: [Jprogramming] A small puzzle

2021-08-03 Thread Michal Wallace
36&A.&.|:&.#:i.2^6 On Thu, Jul 29, 2021 at 10:07 PM Elijah Stone wrote: > Generate the following permutation of i.64: > > 0 1 8 9 2 3 10 11 16 17 24 25 18 19 26 27 4 5 12 13 6 7 14 15 20 21 28 29 > 22 23 30 31 32 33 40 41 34 35 42 43 48 49 56 57 50 51 58 59 36 37 44 45 38 > 39 46 47 52 53 60 61

[Jprogramming] bug with {{ }} and ::

2021-08-02 Thread Michal Wallace
This is in j902: {{ [: y }} :: 0 |spelling error | ( 9 : '[: y '):: 0 (9 : '[: y') :: 0NB. and yet... 3 : '[: y' ::0 -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] A small puzzle

2021-07-29 Thread Michal Wallace
3095407370994948471047240243834227380014128274671274236806547771606007902171637453088x A. i.64 On Thu, Jul 29, 2021 at 10:07 PM Elijah Stone wrote: > Generate the following permutation of i.64: > > 0 1 8 9 2 3 10 11 16 17 24 25 18 19 26 27 4 5 12 13 6 7 14 15 20 21 28 29 > 22 23 30 31 32 33 40 4

Re: [Jprogramming] initial version of tangentstorm/j-kvm

2021-07-26 Thread Michal Wallace
to me. I realise you > provide a link to " https://github.com/microsoft/terminal ", > but what does that do, how do we use it, is there a downside? - is all > this common knowledge? > > Cheers, > > Mike > > On 26/07/2021 16:38, Michal Wallace wrote: > &

[Jprogramming] initial version of tangentstorm/j-kvm

2021-07-26 Thread Michal Wallace
The initial version of the 'j-kvm' terminal driver is here: https://github.com/tangentstorm/j-kvm It provides keyboard, video, and mouse support for console mode applications on windows and linux, (and maybe OSX, if anyone with a mac cares to test it...) It kind of does what ncurses does (le

Re: [Jprogramming] github addons vs 'main' branch

2021-07-26 Thread Michal Wallace
Actually... It should probably try 'main' and then switch to 'master' as a backup, since people may switch to 'main' but leave an old 'master' branch lying around... On Mon, Jul 26, 2021 at 8:58 AM Michal Wallace wrote: > > Github no longer us

[Jprogramming] github addons vs 'main' branch

2021-07-26 Thread Michal Wallace
Github no longer uses 'master' as the default branch name for new repositories. The new standard default branch is 'main'. It does look like you can say : install 'github:user/repo@main' Perhaps if the branch is left blank and 'master' doesn't exist, it could try 'main' instead?

Re: [Jprogramming] possibly heretical proposal : .. as sentence separator ?

2021-07-26 Thread Michal Wallace
erent results. > > goxy xy [ bgc 4 [ fgc 9 > > You can continue to do that as long as you get the order right and lower > things vertically would precede the upper ones > > fgc 15 [ puts '[' [ goxy xy [ bgc 4 [ fgc 9 > > or perhaps I am misunderstanding what you

[Jprogramming] possibly heretical proposal : .. as sentence separator ?

2021-07-25 Thread Michal Wallace
I love the new '{{' and '}}' ... what are the chances we could bring '..' back as a statement separator, at least inside these new double curly braces? Often I have a bunch of really short lines that I would love to just stick on one line, like this demo code from the terminal library I'm working

Re: [Jprogramming] jconsole.exe crashing randomly when calling DLL

2021-07-18 Thread Michal Wallace
ere > Microsoft says there should be a DWORD - isn't that a 4-byte value? > > Henry Rich > > On 7/18/2021 11:09 AM, Michal Wallace wrote: > > As I mentioned yesterday, I'm working on a terminal interface for J. > > I have it working well on linux [1], but windows is

[Jprogramming] jconsole.exe crashing randomly when calling DLL

2021-07-18 Thread Michal Wallace
As I mentioned yesterday, I'm working on a terminal interface for J. I have it working well on linux [1], but windows is giving me trouble. I'm basically calling two DLL functions: NB. https://docs.microsoft.com/en-us/windows/console/readconsoleinput ReadConsoleInput =: 'kernel32 ReadConsoleInput

Re: [Jprogramming] calling fcntl from libc.so.6

2021-07-17 Thread Michal Wallace
d'oh. someone else pointed out the same error on IRC. I don't know how I confused myself on that. I've been using 'cd' for like 3 days straight. :) thanks! -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] calling fcntl from libc.so.6

2021-07-17 Thread Michal Wallace
I am working on a console-mode library for J (something like a simple ncurses). I am able to set the terminal up to read individual keypresses one at a time, but on linux, the process blocks until a key is pressed. If I were writing C, I would fix this by calling fcntl, like so: fcntl(STDIN, F_S

Re: [Jprogramming] (GUI) Select from a grid

2021-05-02 Thread Michal Wallace
I made a video a while back about implementing a simple sprite editor using the window driver: https://www.youtube.com/watch?v=CzK2SazvCxM (It uses two such clickable grids - one for a palette, and one for drawing pixels in the sprite). On Sun, May 2, 2021 at 4:47 PM Don Kelly wrote: > mines

[Jprogramming] how to create + publish a package?

2021-03-07 Thread Michal Wallace
I'd like to make a package for gridpad, the viewmat-with-drawing thing I use in my videos, so that other people can easily download and import it. How do I make that happen? -- For information about J forums see http://www.jsoftwa

Re: [Jprogramming] Graphics package for drawing arbitrary figures

2021-02-16 Thread Michal Wallace
you can use an isidraw / isigraph component to draw arbitrary lines, curves, etc. Here's an example to get you started: https://code.jsoftware.com/wiki/Guides/Window_Driver/Animation/Animated_JGL2 and the drawing commands: https://code.jsoftware.com/wiki/Guides/Window_Driver/gl2_Command_Referenc

Re: [Jprogramming] Efficient counting of occurrences?

2020-09-15 Thread Michal Wallace
I think it might be nice if J had primitive hash tables available, perhaps as a library or set of foreign words. However, if you're using stock J and you need a hash table right now, you can use the global hash table for symbols. There is a pair of foreign words that let you load and save the stat

Re: [Jprogramming] 901-release-c

2020-01-14 Thread Michal Wallace
7;s missing '/System', at least the way apple set up my mac (AFAIK, I didn't change it)... but probably you don't even need to mention terminal at all, given that the aforementioned hard-to-get-rid-of annoying terminal window that pops up with plain "open"...

Re: [Jprogramming] 901-release-c

2020-01-14 Thread Michal Wallace
(and annoying) terminal window, though, even with open -j though... (the -j is meant to hide it.) On Tue, Jan 14, 2020 at 7:16 PM Michal Wallace wrote: > well, for what it's worth, removing all those quarantine flags made no > difference. > > If I `sudo tail -f /private/var/lo

Re: [Jprogramming] 901-release-c

2020-01-14 Thread Michal Wallace
.launchd[1] (com.apple.xpc.launchd.oneshot.0x104a.apprun[82148]): Service exited with abnormal code: 126 I'm on Catalina 10.15.2 On Tue, Jan 14, 2020 at 6:55 PM Michal Wallace wrote: > I get the same error as Brian on my mac : > > :mw1010:~/Downloads/j901$ ./macos-fix.command &g

Re: [Jprogramming] 901-release-c

2020-01-14 Thread Michal Wallace
I get the same error as Brian on my mac : :mw1010:~/Downloads/j901$ ./macos-fix.command :mw1010:~/Downloads/j901$ ./updatejqt.sh Updating server catalog... Installing 1 package Downloading base library... Installing base library... Done. Installing JQt binaries... Finished install of JQt binaries.

[Jprogramming] New video: building a sprite editor in J

2019-12-27 Thread Michal Wallace
Okay, so still jumping around all over the screen due to editing out all the ums and errs, but... This one should hopefully be a lot easier to read, and I tried youtube's suggested sound encoding, so maybe some of you will even be able to hear it. :) It's a sequel to the basic animation video, thi

Re: [Jprogramming] infinite error loops in wd

2019-12-22 Thread Michal Wallace
try. :) Simply moving to a non-modal window that doesn't lock up the IDE feels like a much better fix. On Sun, Dec 22, 2019 at 1:41 PM Michal Wallace wrote: > I get that try / catch works, but I don't think it's a good answer. > Exception handling should be for things that

Re: [Jprogramming] infinite error loops in wd

2019-12-22 Thread Michal Wallace
I get that try / catch works, but I don't think it's a good answer. Exception handling should be for things that might fail because of external issues (files not existing, bad input, etc). It shouldn't be a discipline you have to adopt just in case you make a typo. Usually when this happens, it's

Re: [Jprogramming] infinite error loops in wd

2019-12-21 Thread Michal Wallace
uspension. > > however j602 seemed worked differently and didn't fall into infinite loop, > not sure how it was done. > > On Sun, Dec 22, 2019, 2:11 AM Michal Wallace > wrote: > > > Here's a little jqt program with a bug in it. > > > > When I acci

[Jprogramming] infinite error loops in wd

2019-12-21 Thread Michal Wallace
Here's a little jqt program with a bug in it. When I accidentally run something like this, I get a modal dialog with an error message. Closing the message box triggers the error again. Once that happens, the only way I know to recover is kill my whole J session. Is there a better way? If not, c

[Jprogramming] I.inv ?

2019-10-02 Thread Michal Wallace
Does I.inv have a working implementation? I'd expect the domain to be any ascending sequence of positive whole numbers (possibly with repeats): 3 4 9 e.~ i.10 0 0 0 1 1 0 0 0 0 1 I. 3 4 9 e.~ i.10 3 4 9 I. (i.@:>:@(>./) e. ]) 3 4 9NB. hypothetical I.inv, doesn't handle repeats 3 4 9

Re: [Jprogramming] full screen windows?

2019-09-10 Thread Michal Wallace
ow_Driver/Command_Reference#pshow > > Thanks, > > > -- > Raul > > On Sun, Sep 1, 2019 at 2:56 PM Michal Wallace > wrote: > > > > Hrm. Thanks, but I'm on windows, and also I should have specified that > I'm > > talking about a qt window created wi

Re: [Jprogramming] full screen windows?

2019-09-01 Thread Michal Wallace
cation-with-qml On Sat, Aug 31, 2019 at 2:23 PM Bill Heagy wrote: > on linux, at least, F11 does that > > On 8/31/19 12:28 PM, Michal Wallace wrote: > > How can I make a jQt window full screen? > > (i.e., maximized, but *also* filling up the whole

[Jprogramming] full screen windows?

2019-08-31 Thread Michal Wallace
How can I make a jQt window full screen? (i.e., maximized, but *also* filling up the whole screen and hiding the title bar) -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] new video: basic animation in J!

2019-08-11 Thread Michal Wallace
> but closed caption showed what you were saying. Turned up volume, > checked > >> for mute. All looked okay. Anybody else see this? > >> > >> On Sun, Aug 11, 2019 at 4:00 PM Michal Wallace < &

[Jprogramming] new video: basic animation in J!

2019-08-11 Thread Michal Wallace
I just uploaded a new video to youtube: Basic Animation in J! https://www.youtube.com/watch?v=uL-70fMTVnw -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] help with flickering in animated plot

2019-08-10 Thread Michal Wallace
I got it working! The plot demo application has a slideshow feature that updated the plot in place without flickering. Here's the working code: NB. - NB. animated sine plot in J NB. by michal wallace (http://tangentstorm.com/) NB. free fo

[Jprogramming] help with flickering in animated plot

2019-08-10 Thread Michal Wallace
Hey all, I'm experimenting with animation in J for a new video... I'm use the wd timer to make an animated plot, and it mostly works, but the window itself disappears and reappears on every frame, causing an unwatchable flicker effect. How can I keep the plot window from flickering, or pipe t

Re: [Jprogramming] getline

2018-06-19 Thread Michal Wallace
readln =: [: (1!:01) 1: On Tue, Jun 19, 2018 at 2:45 PM james faure wrote: > Hello, how can one read stdin one line at a time ? > > > #! /usr/bin/j8 > > stdin'' > > > is no good. > -- > For information about J forums see htt

Re: [Jprogramming] Imaginary Squares

2016-02-29 Thread Michal Wallace
│├─ j. >└┤┌─ 1 > └┼─ + > └─ i. > >f > > 3 : ' 1 + *:@|A=: (]j.1:)^:( >g > > 1 + [: *: [: | 0 j. 1 + i > > > > > > I tend to write most code in an explicit fashio

Re: [Jprogramming] Imaginary Squares

2016-02-26 Thread Michal Wallace
i. >areas 10 > 2 5 10 17 26 37 50 65 82 101 > > --Kip Murray > > On Friday, February 26, 2016, Michal Wallace > wrote: > > > Imagine a compass rooted at the origin of the complex plane. > > > > Starting at the point 0j1, draw the arc down to the real

[Jprogramming] Imaginary Squares

2016-02-26 Thread Michal Wallace
Imagine a compass rooted at the origin of the complex plane. Starting at the point 0j1, draw the arc down to the real line, and then from this point, draw vertical line segment extending upwards 1 unit, to arrive at the point 1j1. Repeat this process of drawing the arc down to the real line and m

Re: [Jprogramming] Morning Mystery

2016-02-25 Thread Michal Wallace
Using all 10: %(4 3 0 8 1,(7+9))(p. % 6 ^~ ]) 2*5 On Thu, Feb 25, 2016 at 2:09 PM, Philip Hunt wrote: > Like it Peter > > there are so many great formulae for phi... > > 2*1&o.o.1r10 > 0.618034 > similar (but not using ten ; which is not on Linda's list of course) > _1+2*2&o.o.1r5 > > 0.618034

Re: [Jprogramming] Am I understanding m/y ?

2016-02-24 Thread Michal Wallace
+`%`* rscan\. 1 2 3 4 5 6 7 > 1.16184971 0.161849711 12.3571429 4.11904762 0.119047619 42 7 > > they only appear in Michal's version. Alas, \. does not seem to be > optimized for this case but I could be wrong. > > Did I make any mistakes? > > > > On W

Re: [Jprogramming] Am I understanding m/y ?

2016-02-24 Thread Michal Wallace
er... that works better when you define 'i' :) i=: 1 : ('m,y'; ':'; 'x,m,y') On Wed, Feb 24, 2016 at 10:13 AM, Michal Wallace wrote: > rscan: > > >rscan =: 1 : '((>:-(#m)|#y)|.m)/y' >('!'i)`('?'i)`

Re: [Jprogramming] Am I understanding m/y ?

2016-02-24 Thread Michal Wallace
rscan: rscan =: 1 : '((>:-(#m)|#y)|.m)/y' ('!'i)`('?'i)`('|'i) rscan \ 'abcdefghijk' a a|b a?b|c a!b?c|d a|b!c?d|e a?b|c!d?e|f a!b?c|d!e?f|g a|b!c?d|e!f?g|h a?b|c!d?e|f!g?h|i a!b?c|d!e?f|g!h?i|j a|b!c?d|e!f?g|h!i?j|k r is for raul or reverse.. take your pick :) On Wed, Feb 24, 2016 at 8:

Re: [Jprogramming] A practical problem: minimum distance with penalties

2016-02-22 Thread Michal Wallace
Huh? :) I'm not sure I understand what any of this has to do with finding a shortest path. You say D is a list of ordered distances... Distances between what? Is the idea that you have a graph, with a fixed number of nodes, but the edge costs have shifting weights for some reason? (Like say, tr

Re: [Jprogramming] Am I understanding m/y ?

2016-02-22 Thread Michal Wallace
The example in the docs is ambiguous, and probably ought to be replaced, since the sequence of inserted verbs both starts and ends with +. I'm not sure that I'd find either order to be more or less useful, but the existing order does have one nice advantage, in that it allows you to "factor out" v

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Michal Wallace
rot =: [: +. (%|)@[ * j./@] On Tue, Feb 16, 2016 at 4:12 PM, Kip Murray wrote: > Another example > > 0j2 rot 3 4 > _4 3 > > This rotates 3 4 by 90 degrees, counterclockwise. > > --Kip > > > On Tuesday, February 16, 2016, Kip Murray wrote: > > > Fairly easy: write a verb that rotates a poin

Re: [Jprogramming] Nested structures. Idioms? Combinators?

2016-02-09 Thread Michal Wallace
I have an implementation of a "tree builder" interface here: http://tangentstorm.github.io/apljk/treebuild.ijs.html Rather than using a boxed array to build a tree, it uses a single array to represent the parent links for all nodes. The actual data can be stored in any number of parallel arrays.

Re: [Jprogramming] Path to finding explanation

2016-01-05 Thread Michal Wallace
On Tue, Jan 5, 2016 at 6:21 AM, Linda A Alvord wrote: > Here's code I'm trying to understand. Is there some path to take to make > this easier? > > i=:([: i. [: # [)`([: ;/ [)`]} > It's a lot easier to understand a piece of code once you know what it does, so knowing where it came from would h

Re: [Jprogramming] feedback wanted for mandelbrowse tutorial

2016-01-03 Thread Michal Wallace
On Sun, Jan 3, 2016 at 8:37 AM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > mistyped sorry > > > mbrowse_z_ =: conew bind 'mbrowse' Oh. If I do this, then mbrowse'' returns a new namespace, but doesn't actually run the constructor. (f bind y) x -> (f y) (f & y) x ->

Re: [Jprogramming] feedback wanted for mandelbrowse tutorial

2016-01-03 Thread Michal Wallace
Thanks, David and Cliff, for pointing out the 'number of iterations' thing. I added some keys to change this, and updated the docs. On Sun, Jan 3, 2016 at 6:49 AM, David Lambert wrote: > The program works and is fairly easy to read with the caveats that I had > to read the source to guess for th

Re: [Jprogramming] feedback wanted for mandelbrowse tutorial

2016-01-03 Thread Michal Wallace
On Sat, Jan 2, 2016 at 9:08 PM, 'Pascal Jasmin' via Programming < programm...@jsoftware.com> wrote: > > mbrowse_z_ =: conew bond 'mbrowse' > Thanks for looking. What's bond? I don't seem to have this conjunction in j804, other than in the 'primitives' package, where it's just an alias for `&`. --

[Jprogramming] feedback wanted for mandelbrowse tutorial

2016-01-02 Thread Michal Wallace
Hey all. Happy new year! I made a small GUI app for a tutorial video I'm planning: https://github.com/tangentstorm/mandelbrowse It draws the mandelbrot set, and lets you zoom in and out. I was hoping I could get some feedback on the code before I filmed anything. In particular, you can onl

Re: [Jprogramming] viewmatcc troubles

2015-09-11 Thread Michal Wallace
Using an isidraw instead of an isigraph seems to fix the problem. On Fri, Sep 11, 2015 at 11:26 PM, Michal Wallace wrote: > As far as I can tell, it's meant to work like this: > > NB. == > > load 'viewmat' > > > w_cancel =: 3 : 0

[Jprogramming] viewmatcc troubles

2015-09-11 Thread Michal Wallace
As far as I can tell, it's meant to work like this: NB. == load 'viewmat' w_cancel =: 3 : 0 wd 'pclose' ) wd 0 : 0 pc w closeok; cc g isigraph; pshow; ) viewmatcc_jviewmat_ (i.3 4);'g' NB. == ... but in jQt (both j803/j804, w

Re: [Jprogramming] video: Ulam's Spiral

2015-09-08 Thread Michal Wallace
a J newbie. > > Question - what are you using for syntax highlighting in your terminal? > > > On Tue, Sep 8, 2015 at 11:04 AM, Michal Wallace > wrote: > > > Awesome! Feel free. :) > > > > I recorded it with a program called FFSplit ( http://www.ffsplit.c

Re: [Jprogramming] video: Ulam's Spiral

2015-09-08 Thread Michal Wallace
did the J session > side-by-side with your "talking head". > > Thanks, > > Devon > > On Wed, Sep 2, 2015 at 5:16 AM, Michal Wallace > wrote: > > > Thanks for the feedback, everyone! > > Next time I do one of these, I'll post the script before I film

Re: [Jprogramming] multiple sys_timers?

2015-09-07 Thread Michal Wallace
jwiki. > > Пн, 07 сен 2015, Michal Wallace написал(а): > > All the examples I've found seem to set sys_timer_z_ ... > > > > Is it only possible to have a single timer running through wd? > > > > I could install my own multiplexing timer manager in sys_timer_z_

  1   2   >