I see the bitwise codes as great language design. Write in base 2 the desired truth table for
   #:i.4
0 0
0 1
1 0
1 1
remembering, of course, to add 16, and that's the bitwise code. So (16+2b0101)b. ought to be the same as right same for integers.

   ((]-:2b10101 b.)&:i. -)16
1


bash in emacs shell is unfriendly toward j foreigns, which I overcome by naming the foreigns then loaded from a file. I haven't yet matched my names to your sentences. Without patches, cut&paste from http://www.jsoftware.com/svn/DanBron/trunk/general/bitwise.ijs gives me a partial directory list and some errors.
Date: Thu, 13 Aug 2015 11:40:25 -0400
From: Dan Bron<[email protected]>
To: J Programming<[email protected]>
Subject: [Jprogramming] Bitwise operations utility
Message-ID:<[email protected]>
Content-Type: text/plain; charset=utf-8

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

Reply via email to