Github Copilot understanding matrix multiply.
Getting back to Raul’s question on whether it understands +/ . * as matrix
multiply. Github copilot seems to be very context sensitive. At least in the
sense that when it starts down a path it remembers the context of the file. So
I started with a
Hey Skip,
You can use the hook in your #~ definition as well, so ] is not required. This
is really just golfing, I am not sure that it improves efficiency.
pal=.#~(=|.&.":&>)
pal 12321 12322 345 343 789987 9878
12321 343 789987
Cheers, bob
> On May 9, 2023, at 11:38, 'Skip Cave' via Pr
A few years ago, I came up with this verb to find palindromic integers in a
list of integers:
pal=.]#~(=|.&.":&>)
Test:
pal 12321 12322 345 343 789987 9878
12321 343 789987
Is there a more efficient approach?
Skip Cave
Cave Consulting LLC
On Tue, May 9, 2023 at 12:56 PM 'Michael Day' vi
I realise this thread is about experimenting with AI coding in J, so
forgive me for
merely suggesting just another function for a shortest derived
palindrome formed
by prepending a string to a given string:
NB. Test palindrome-ness with a hook:
ispal =: -:|.
NB. Form palindrome given characte
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
It seems to prefer 3 : 0 explcit definition over {{}}. When I force it to {{}}
it doesn’t seem to use x and y parameters.
That is likely because the code base favors the original explicit definition.
As to the matrix multiplication:
It doesn’t seem to have any concept of J matrix multiplication
I guess one question is: does the mechanism understand J token formation?
For example, can you determine if it understands the difference
between +/ .* and +/.* ?
If so, can it recognize that + /. * is the same as +/.* ?
And, if so, does it recognize that {{ and { { are different while [[
and [
Forgive me for keeping my own thread alive.
This article at Hackernoon put together a comparison of Coding AI bots using
Leetcode questions as the stem:
https://hackernoon.com/how-ai-bots-code-comparing-bing-claude-co-pilot-gpt-4-and-bard
How AI Bots Code: Comparing Bing, Claude+, Co-Pilot, GPT
GitHub Copilot works under Visual Studio Code
GitHub user tikkanz published an extension for VS Code to edit and run J.
Fairly easy to install.
VSCode then needs to have the Copilot extensions installed. It will ask you to
login into your account and then you are all set.
I typed in the foll