Browse A to Z: J Page 1. Quickly get definitions, word origins, pronunciation and more brought to you by Dictionary.com. This page contains the driver installation download for Ethernet Controller in supported models (M1100 Series) that are running a supported operating system.
Designed by | Kenneth E. Iverson, Roger Hui |
---|---|
Developer | JSoftware |
First appeared | 1990; 29 years ago |
Stable release | |
Typing discipline | dynamic |
OS | Cross-platform: Windows, Linux, macOS |
License | GPLv3 |
Website | www.jsoftware.com |
Major implementations | |
J | |
Influenced by | |
APL, FP, FL | |
Influenced | |
NumPy,[2]SuperCollider[3] |
The Jprogramming language, developed in the early 1990s by Kenneth E. Iverson and Roger Hui,[4][5] is a synthesis of APL (also by Iverson) and the FP and FLfunction-level languages created by John Backus.[6]
To avoid repeating the APL special-character problem, J uses only the basic ASCII character set, resorting to the use of the dot and colon as inflections[7] to form short words similar to digraphs. Most such primary (or primitive) J words serve as mathematical symbols, with the dot or colon extending the meaning of the basic characters available. Also, many characters which in other languages often must be paired (such as [] {} ' ``
or <>
) are treated by J as stand-alone words or, when inflected, as single-character roots of multi-character words.
J is a very terse array programming language, and is most suited to mathematical and statistical programming, especially when performing operations on matrices. It has also been used in extreme programming[8] and network performance analysis.[9]
Like the original FP/FL languages, J supports function-level programming via its tacit programming features.
Unlike most languages that support object-oriented programming, J's flexible hierarchical namespace scheme (where every name exists in a specific locale) can be effectively used as a framework for both class-based and prototype-based object-oriented programming.
Since March 2011, J is free and open-source software under the GNU General Public License version 3 (GPLv3).[10][11][12] One may also purchase source under a negotiated license.[13]
Examples[edit]
J permits point-free style and function composition. Thus, its programs can be very terse and are considered difficult to read by some programmers.
The 'Hello, World!' program in J is
This implementation of hello world reflects the traditional use of J – programs are entered into a J interpreter session, and the results of expressions are displayed. It's also possible to arrange for J scripts to be executed as standalone programs. Here's how this might look on a Unix system:
Historically, APL used /
to indicate the fold, so +/1 2 3
was equivalent to 1+2+3
. Meanwhile, division was represented with the classic mathematical division symbol (the obelus, ÷), which was implemented by overstriking a minus sign and a colon (on both EBCDIC and ASCII paper text terminals). Because ASCII in general does not support overstrikes in a device-independent way, and does not include a division symbol per se, J uses % to represent division, as a visual approximation or reminder. (This illustrates something of the mnemonic character of J's tokens, and some of the quandaries imposed by the use of ASCII.)
Defining a J function named avg
to calculate the average of a list of numbers yields:
This is a test execution of the function:
#
counts the number of items in the array. +/
sums the itemsof the array. %
divides the sum by the number of items. Above, avg is defined using a train of three verbs (+/
, %
, and #
) termed a fork. Specifically (V0 V1 V2) Ny
is the same as (V0(Ny)) V1 (V2(Ny))
which shows some of the power of J. (Here V0, V1, and V2 denote verbs and Ny denotes a noun.)
Some examples of using avg
:
Rank is a crucial concept in J. Its significance in J is similar to the significance of select
in SQL and of while
in C.
Implementing quicksort, from the J Dictionary yields:
The following is an implementation of quicksort demonstrating tacit programming. The later involves composing functions together and not referring explicitly to any variables. J's support for forks and hooks dictates rules on how arguments applied to this function will be applied to its component functions.
Sorting in J is usually accomplished using the built-in (primitive) verbs /:
(sort up) and :
(sort down). User-defined sorts such as quicksort, above, typically are for illustration only.
The following example demonstrates the usage of the self-reference verb $:
to recursively calculate fibonacci numbers:
This recursion can also be accomplished by referring to the verb by name, although this is of course only possible if the verb is named:
The following expression exhibits pi with n digits and demonstrates the extended precision abilities of J:
Data types and structures[edit]
J supports three simple types:
- Numeric
- Literal (Character)
- Boxed
Of these, numeric has the most variants.
One of J's numeric types is the bit. There are two bit values: 0, and 1. Also, bits can be formed into lists. For example, 1 0 1 0 1 1 0 0
is a list of eight bits. Syntactically, the J parser treats that as one word. (The space character is recognized as a word-forming character between what would otherwise be numeric words.) Lists of arbitrary length are supported.
Further, J supports all the usual binary operations on these lists, such as and, or, exclusive or, rotate, shift, not, etc. For example,
J also supports higher order arrays of bits. They can be formed into two-dimensional, three-dimensional, etc. arrays. The above operations perform equally well on these arrays.
Other numeric types include integer (e.g., 3, 42), floating point (3.14, 8.8e22), complex (0j1, 2.5j3e88), extended precision integer (12345678901234567890x), and (extended precision) rational fraction (1r2, 3r4). As with bits, these can be formed into lists or arbitrarily dimensioned arrays. As with bits, operations are performed on all numbers in an array.
Lists of bits can be converted to integer using the #.
verb. Integers can be converted to lists of bits using the #:
verb. (When parsing J, .
(period) and :
(colon) are word-forming characters. They are never tokens alone, unless preceded by whitespace characters.)
J also supports the literal (character) type. Literals are enclosed in quotes, for example, 'a'
or 'b'
. Lists of literals are also supported using the usual convention of putting multiple characters in quotes, such as 'abcdefg'
. Typically, individual literals are 8-bits wide (ASCII), but J also supports other literals (Unicode). Numeric and boolean operations are not supported on literals, but collection-oriented operations (such as rotate) are supported.
Finally, there is a boxed data type. Typically, data is put in a box using the <
operation (with no left argument; if there's a left argument, this would be the less than operation). This is analogous to C's &
operation (with no left argument). However, where the result of C's &
has reference semantics, the result of J's <
has value semantics. In other words, <
is a function and it produces a result. The result has 0 dimensions, regardless of the structure of the contained data. From the viewpoint of a J programmer, <
puts the data into a box and allows working with an array of boxes (it can be assembled with other boxes, and/or more copies can be made of the box).
The only collection type offered by J is the arbitrarily dimensioned array. Most algorithms can be expressed very concisely using operations on these arrays.
J's arrays are homogeneously typed, for example the list 1 2 3
is a list of integers despite 1
being a bit. For the most part, these sorts of type issues are transparent to programmers. Only certain specialized operations reveal differences in type. For example, the list 1.0 0.0 1.0 0.0
would be treated exactly the same, by most operations, as the list 1 0 1 0
.
Minix Downloads
J also supports sparse numeric arrays where non-zero values are stored with their indices. This is an efficient mechanism where relatively few values are non-zero.
J also supports objects and classes,[14] but these are an artifact of the way things are named, and are not data types. Instead, boxed literals are used to refer to objects (and classes). J data has value semantics, but objects and classes need reference semantics.[citation needed]
Another pseudo-type—associated with name, rather than value—is the memory mapped file.
Documentation[edit]
J's documentation includes a dictionary, with words in J identified as nouns, verbs, modifiers, and so on. Primary words are listed in the vocabulary, in which their respective parts of speech are indicated using markup. Note that verbs have two forms: monadic (arguments only on the right) and dyadic (arguments on the left and on the right). For example, in '-1
' the hyphen is a monadic verb, and in '3-2
' the hyphen is a dyadic verb. The monadic definition is mostly independent of the dyadic definition, regardless of whether the verb is a primitive verb or a derived verb.
Control structures[edit]
J provides control structures (details here) similar to other procedural languages. Prominent control words in each category include:
assert.
break.
continue.
for.
goto_label.
if. else. elseif.
return.
select. case.
throw.
try. catch.
while. whilst.
See also[edit]
- K (programming language) – another APL-influenced language
- Q – The language of KDB+ and a new merged version of K and KSQL.
Acer Aspire M1100 Driver Download
References[edit]
- ^'J807 release 8 October 2018'.
- ^Wes McKinney at 2012 meeting Python for Data Analysis
- ^SuperCollider documentation, Adverbs for Binary Operators
- ^A Personal View of APL, 1991 essay by K.E. Iverson (archived link)
- ^Overview of J history by Roger Hui (19 March 2002)
- ^Thomson, Iain (20 March 2007). 'Creator of Fortran dies'. v3.co.uk. Retrieved 2 August 2010.
- ^J NuVoc Words
- ^Bussell, Brian; Taylor, Stephen (2006), 'Software Development as a Collaborative Writing Project', Extreme programming and agile processes in software engineering, Oulu, Finland: Springer, pp. 21–31, ISBN978-3-540-35094-1Missing or empty
|title=
(help) - ^Holt, Alan (2007), Network Performance Analysis: Using the J Programming Language, Springer, ISBN978-1-84628-822-7
- ^Jsoftware's source download page
- ^Eric Iverson (1 March 2011). 'J Source GPL'. J programming mailing list.
- ^openj on GitHub
- ^Jsoftware's sourcing policy
- ^Chapter 25: Object-Oriented Programming
Minix M1000 Netbook
External links[edit]
Minix Neo Drivers
- Official website – JSoftware, creators of J
- Openj on GitHub – Repository
- Learning J – An Introduction to the J Programming Language by Roger Stokes