J track pre lauch

Following the example on this post we’re gearing up for the pre-launch of the J language track, and I’m looking for volunteers to help evaluate its current state. I’m particularly interested on review about the exercises instructions for people with no expertise in Array programming languages.
Thank you all in advance

1 Like

I’ll take a look in the next few days.

1 Like

I’m sure @ErikSchierboom will enjoy solving a couple of exercises too! :slight_smile:

2 Likes

A sad state of affairs when someone uses me as an example of anything. I shall have a look too.

1 Like

@andradefr8 The snippet code is a bit too wide:

image

1 Like

BTW, did you know that we recently added the Game of Life exercise to problem-specifications? Seems like that would be a fun one for people to try.

1 Like

I’m trying to run hello-world locally, and I’m getting:

erik@schierheim:~/solutions/j/hello-world$ jconsole
   load 'hello-world.ijs'
not found: /opt/j/addons/general/unittest/unittest.ijs
|file name error in script, executing monad 0!:0
|nonexistent file or invalid filename 
|       0!:0 y[4!:55<'y'
|[-1] /home/erik/solutions/j/hello-world/hello-world.ijs

I’ve followed the instructions at System/Installation/J9.5 - J Wiki. What am I missing?

Have you followed the steps in this section?

Finish Installation
Previous step created jconsole window - enter the following J sentences in that window to update base system, install all addons, install Jqt ide, create desktop launch icons, and upgrade JE.

load 'pacman'
'install' jpkg '*'
exit 0

Seems to me general/unittest addon is not installed.

Oh, I think I misread the instructions then.

@andradefr8 Is it possible to run the tests on the command-line, without starting a jconsole REPL?

You can call it like this

jconsole -js "load 'hello-world.ijs'" "echo unittest 'test.ijs'" "exit ''"

or this:

jconsole -js "exit [ echo unittest 'test.ijs' [ load 'hello-world.ijs' " 

Each Command line argument after the -js flag is executed as a single expression

Nice! We want to add support to the Exercism CLI too. See test: update 8th and emacs-lisp test commands by glennj · Pull Request #1128 · exercism/cli · GitHub for an example PR.

One other question: assertions seem to be relatively unhelpful:

difference_of_squares_test_02 ........... Fail
|assertion failure: assert
|       assert expected-:difference_of_squares number

I would have like to see the actual and the expected value printed. Is that possible?

It is. Work on this and the Cli at the weekend.

1 Like

I’ve also submitted some PRs to further improve things a bit.

1 Like