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

2023-05-10 Thread Thomas McGuire
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

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

2023-05-09 Thread 'robert therriault' via Programming
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

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

2023-05-09 Thread 'Skip Cave' via Programming
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

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

2023-05-09 Thread 'Michael Day' via Programming
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

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] GitHub Copilot anyone used this with J?

2023-05-08 Thread Thomas McGuire
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

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

2023-05-08 Thread Raul Miller
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 [

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

2023-05-08 Thread Thomas McGuire
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

[Jprogramming] GitHub Copilot anyone used this with J?

2023-05-04 Thread Thomas McGuire
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