GithubHelp home page GithubHelp logo

doytsujin / apple Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmchale/apple

0.0 1.0 0.0 233 KB

Apple array system

License: Other

C 1.86% Haskell 88.27% Logos 5.27% Makefile 0.46% Yacc 3.58% Vim Script 0.57%

apple's Introduction

Apple Array System

Compiler-As-a-Library

Rather than an environment-based interpreter or a compiler invoked on the command line and generating object files, Apple generates machine code which can be used by a JIT compiler or in general.

Thus the same implementation can be used interpreted, compiled, or called from another language.

Documentation from Types

Like Haskell's Haddock or Doxygen, one can generate hyperlinked type signatures, e.g.

hypergeometric : Arr (i `Cons` Nil) float -> Arr (j `Cons` Nil) float -> float -> float

This saves the author from writing redundant documentation.

Programmatic type inference can be of aid in debugging.

Dimension As a Functor

This is based on J (and APL?). Looping is replaced by functoriality (map); we have a family of functors ('n)

Linear Memory Allocation

Rather than calling malloc to create a new array, arrays

Special Combinations

Apple takes inspiration from J's special combinations.

Moving Code vs. Moving Data

For a computation to take place the data and the program have to be at the same point in space-time - this is just physics. You can move the data to the program or the program to the data, or both somewhere else. ... data movement predominates.

Property Testing

Types act as witnesses, as in QuickCheck.

apple's People

Contributors

vmchale avatar

Watchers

 avatar

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.