Skip to content

Conversation

@juntuu
Copy link
Collaborator

@juntuu juntuu commented Jan 26, 2021

Removing more non-64-bit support, with assumption of BW == 64

The BW (bits in word) is still used in quite a many places. I mainly removed preprocessor conditionals and evaluated a couple expressions where it felt like an improvement.

I feel these were improvement to evaluate, as they are:
- no-ops
- fit well with the surrounding pattern without feeling like magic
  numbers
@codereport codereport added the code removal Removing code / reducing complexity label Jan 26, 2021
@codereport codereport self-requested a review January 26, 2021 16:48
Copy link
Owner

@codereport codereport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is 🔥 (I will merge, g001 is flaky)

@codereport codereport merged commit 800c4fd into codereport:main Jan 26, 2021
@juntuu
Copy link
Collaborator Author

juntuu commented Jan 26, 2021

I identified (at least one) flaky test case in the failing test g001.ijs

I was able to reproduce this failure about 1/10 runs on the jconsole.

p =: 0.5 * i. 10000 [ q =: 0.5   NB. setup, flaky lines below
((10000) 6!:2 'p + q') > 0.6 * (10000) 6!:2 'p +"0 _ q'
((10000) 6!:2 'p + q') > 0.6 * (10000) 6!:2 'p +"0 0 q'

I found this https://code.jsoftware.com/wiki/Vocabulary/Foreigns#m6, which says the followin about the 6!:2 foreign

Time, averaged over repetitions attempts (default 1), to execute sentence.

So, it seems, the test is timing two different sentences over 10000 repetitions, and asserting something? about the difference. The tests have a comment saying

NB. Test that arithmetic dyads migrate outer loop to inner loop

@juntuu juntuu deleted the remove-32 branch January 26, 2021 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code removal Removing code / reducing complexity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants