Skip to content

codereport/jellyfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪼 Jellyfish 🪼

Jellyfish is an extension of the Jelly programming language created by Dennis Mitchell. Please visit his repo for the original documentation. This repo will focus on fixes and extensions as well as additional documention when I think it may be helpful.

Note that the primary way I interact with Jelly(fish) is through the Jello REPL. This allows you to write Jello keywords instead of Jelly atoms. It also visually diagrams the combinator trees that are implicitly created from the monadic, dyadic and multichains. You can find the Jello repo here.

Installing

git clone -q https://github.com/codereport/jellyfish.git
cd jellyfish
pip3 install --upgrade --user .

Using

The intended way of using Jellyfish is through the Jello REPL.

Differences

Additions

Atoms

  • (Q's prior)
  • É (dual to odd? i.e. even?)
  • (bits aka bit_count, pop_count or ones_count)
  • (Uiua's keep and BQN/APL's compress/replicate)
  • (Q's maxs)
  • (Uiua's partition - we are calling it part)
  • (adding part_by - a generalization of part)
  • (less than equal to)
  • (greater than equal to)
  • Œɠ (previously group_len, this is a quick similar to key)

Chains

  • D₂: previously spelled l f₁ : g₂ : r h₁ and now g₂ f₁ h₁

Changes

  • : head does not modify the underlying sequence
  • : last does not modify the underlying sequence
  • ÐṀ: max_by returns a single value instead of list

Deletions

  • Œɠ: delete group_len; it can now be spelled len group

Fixes

  • : isprime was broken, now fixed

About

A fork of Jelly (recreational programming language inspired by J) that fixes bugs I have run into and extends the language.

Resources

License

Stars

Watchers

Forks

Languages