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 following into a new .ijs file:
NB. average list of numbers in language-j
ave =: 

copilot then finished the line with and offered an example run of the function, 
so after I pressed the tab key I had the following:
NB. average list of numbers in language-j
ave =: +/ % #
   ave 1 2 3 4 5

Now I know the fork for average is in about 20 different electronic documents. 
Still I was surprised that Copilot worked for J at all and more surprised that 
it picked up the fork paradigm from the language. I was expecting more of a 
functional approach such as:
ave1 =: 3 : 0
(+/ y) % #y
)

It costs 100 bucks per year unless you are a student or educator (then it’s 
free). I don’t actively program for a living so I don’t know how many 
developers are actively using AI tools for coding. But from a beginner 
perspective having a tool that produces relatively good J code with a prompt 
and a function header would be a great way to come up to speed in the language 
in a short period of time. 

Is it enough just to have J code examples on GitHub or is there a more direct 
way to curate the AI tool so that it produces better J code?

Throwing it out there to see if anyone else has played with this.

Tom McGuire
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to