Giter Club home page Giter Club logo

apltail's People

Contributors

dybber avatar mbudde avatar melsman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apltail's Issues

Simpler frontends

At the moment, apltail is a single program that changes behaviour in response to various command line options. I find these hard to remember and use, so I suggest the creation of simpler wrapper programs that encapsulate common operations. For example, I use this apl2tail script:

#!/bin/sh

if [ $# -ne 1 ]; then
    echo "Usage: $0 <tail program>"
    exit 1
fi

if ! [ "$TAIL_ROOT" ]; then
    echo '$TAIL_ROOT not set - things are unlikely to work' >&2
fi

apl_source=$1
tail_source=${apl_source%.*}.tail

TAIL_PRELUDE=${TAIL_ROOT}/lib/prelude.apl

aplt  -p_types -p_tail -c -o "$tail_source" $TAIL_PRELUDE "$apl_source"

vrotateV is missing instantiation list

Running aplt on the following APL program

+/ 1 ⌽ ⍳ 10

gives the TAIL program

i2d(reduce{[int],[0]}(addi,0,transp{[int],[1]}(vrotateV(1,transp{[int],[1]}(iotaV(10))))))

I would expect

i2d(reduce{[int],[0]}(addi,0,transp{[int],[1]}(vrotateV{[int],[10]}(1,transp{[int],[1]}(iotaV(10))))))

Meaning of life

We are not far from being able to execute the following one-liner - see http://aplwiki.com/FinnAplIdiomLibrary#Miscellaneous:

⍎⊖⍕⊃⊂|⌊-*+○⌈×÷!⌽⍉⌹~⍴⍋⍒,⍟?⍳0

We will not be able to support execute , box . So we should, with an implementation of be able to compile the following expression:

⊖⍕⊃|⌊-*+○⌈×÷!⌽⍉⌹~⍴⍋⍒,⍟?⍳0

Here is how it looks with http://www.tryapl.org:

image

Comments:

  • In the example, ⌹ is applied to the scalar 1.
  • There is an issue with ⍳0; ⍳ is required to take an integer value - subtyping fix needed.
  • We don't support '!'.

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.