GithubHelp home page GithubHelp logo

codereport / jellyfish Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 3.0 1.35 MB

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

License: MIT License

Shell 0.01% Python 99.88% C 0.11% Makefile 0.01%

jellyfish's Introduction

🪼 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)
  • Ď (Q's differ)

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

jellyfish's People

Contributors

dennismitchell avatar codereport avatar lynn avatar dylannrees avatar jjallan avatar kckennylau avatar miles-cg avatar golfingsuccess avatar mr-xcoder avatar djmcmayhem avatar zachgates avatar cairdcoinheringaahing avatar vendethiel avatar

Stargazers

Danny Navarro avatar Alex Fanat avatar  avatar Wintergrasp avatar  avatar  avatar AYOUB EL MHAMDI avatar Alan Williams avatar Gabriel Spinola avatar Christopher Augustus avatar

Watchers

 avatar

jellyfish's Issues

You should use launch.json to debug jellyfish

It was a bit painful to watch you do printf debugging on one of the streams.

for more info see https://code.visualstudio.com/docs/python/debugging#_initialize-configurations

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File with Arguments",
            "type": "debugpy",
            "request": "launch",
            "program": "jelly/__main__.py",
            "console": "integratedTerminal",
            "args": "eun 'µ‘Θ,,' 1 10"
        }
    ]
}

FEATURE: Missing atoms

These are the major things missing from Jelly(fish):

Major

Minor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.