Jelly: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Jelly}}{{Infobox array language
{{DISPLAYTITLE:Jelly}}{{Infobox array language
| title                    = Jelly
| title                    = Jelly
| array model              = [[nested array model|nested]]
| array model              = [[List model|Lists]]
| index origin            = 1
| index origin            = 1
| function styles          = [[tacit]], [[dfn|links]]
| function styles          = [[tacit]]
| numeric types            = unbounded float
| numeric types            = unbounded float
| unicode support          = full
| unicode support          = full
Line 10: Line 10:
| latest release version  = 70c9fd9 / 18 Jan 2019
| latest release version  = 70c9fd9 / 18 Jan 2019
| implementation language  = [[wikipedia:Python (programming language)|Python]]
| implementation language  = [[wikipedia:Python (programming language)|Python]]
| source                  = [https://github.com/DennisMitchell/jellylanguag GitHub]
| source                  = [https://github.com/DennisMitchell/jellylanguage GitHub]
| platforms                = Any
| platforms                = Any
| license                  = [[wikipedia:MIT License|MIT]]
| license                  = [[wikipedia:MIT License|MIT]]
| website                  = [https://github.com/DennisMitchell/jellylanguage Github]
| documentation            = [https://github.com/DennisMitchell/jellylanguage/wiki Github Wiki]
| documentation            = [https://github.com/DennisMitchell/jellylanguage/wiki Github Wiki]
| influenced by            = [[Dyalog APL]], [[J]]
| influenced by            = [[Dyalog APL]], [[J]]
| influenced              = [[Jellyfish]]
| run online              = [https://tio.run/#jelly TIO]
| run online              = [https://tio.run/#jelly TIO]
}}
}}


'''Jelly''' is a dialect of APL in Python influenced by [[J]], created and maintained by CGCC user [https://codegolf.stackexchange.com/users/12012/dennis Dennis].
'''Jelly''' is an APL-like language inspired by [[J]]. It extends J with many built-ins intended to give Jelly an advantage in [[code golf]], e.g. divmod, the hash function, and string compression. Jelly uses different terminology from normal APL usage. Built-in functions are called ''atoms'', while derived functions are called ''links''. Newlines or statement separators are used to separate links, the last line of the program (''chain'') is called the main link.
* Like [[K]], Jelly uses the [[list model]] for its arrays.
* Like APL, Jelly uses a wide range of Unicode [[glyph]]s. However, Jelly extends the glyph set to 256 characters from the US International keyboard, as well as the addition of 2-character digraphs.
* Unlike any other language in the APL family, Jelly atoms have a fixed [[valence]], making Jelly appear more like a stack-based language, and obviating the need for parentheses.


* Like APL, Jelly uses a wide range of Unicode glyphs. However, Jelly extends the glyph set to 256 characters in the US International keyboard, as well as the addition of 2-character digraphs.
Some constructs clearly show Jelly lineage through J to APL, e.g. summation can be written as <code>+/</code> (although Jelly also has a dedicated built-in for this).
* Unlike APL, Jelly 's dfns are called "links". Newlines are used to separate links, the last line of the program is called the main link.


== External Links ==
== External Links ==
* [https://tio.run/#jelly Try It Online]
* [https://tio.run/#jelly Try It Online]
* [https://github.com/DennisMitchell/jellylanguage/wiki/Tutorial Tutorial]
* [https://github.com/DennisMitchell/jellylanguage/wiki/Tutorial Tutorial]
{{APL dialects}}
{{APL dialects}}[[Category:List-based array languages]][[Category:Languages with tacit programming]][[Category:Left to right]]

Navigation menu