Giter Site home page Giter Site logo

los's Introduction

LFE Object System Build Status

Introduction

LOS is inspired by CLOS. It may or may not provide macros for more than one object system. We shall see.

When referring to the plural form, we recommend the Spanish "los LOS". In the singular form, "el LOS", "the LOS" or just "LOS" are all acceptable. LFE LOS may have been named after the definite article, or the town in Sweden, or the crater on Mars.

Feel free to also make "loss" puns. These will be quite amusing for all, and apropos.

More seriously, the initial implementation will be taken from Peter Norvig's PAIP, Chapter 13 as well as ideas implemented in Clojure.

Why OOP?

Blame it on cadar; he made me do it. But before that, there was this, so I guess it can't all be laid at his feet.

Peter Norvig said it best (especially when we take it out of context):

"Object-oriented programming turns the world of computing on its side..."

And now that we've got a doubly-functional programming language (Lisp + Erlang), we're going to turn it over on its other side.

The reason this project is blamed on cadar is that he made a very good argument that 1) there are definitely valid use cases for OOP (or AOP), and 2) we should offer people that flexibility.

Features

Development Plan

First, we're going to start with a simple knock-off of CLOS as developed by Peter Norvig in PAIP, Chapter 13. This will be done using classic lambda closures. Next, we'll look at using processes instead of lambdas for closures. This is defnitely the more Erlang-y way to do it, but it may be more inefficient for many uses. Then, we may look at Clojure's protocols and add support for that. After this, the sky's the limit. Or maybe not. Who knows?

lambda Closures

  • defclass -

Dependencies

This project assumes that you have rebar and lfetool installed somewhere in your $PATH.

Installation

Just add it to your rebar.config deps:

    {deps, [
        ...
        {los, ".*", {git, "[email protected]:lfex/los.git", "master"}}
      ]}.

And then do the usual for your lfetool-created project:

    $ rebar compile

This will automatically download the project deps and compile them before also compiling LOS.

Usage

To be done ...

References

los's People

Contributors

oubiwann avatar

Stargazers

Nickolas Wood avatar latrokles avatar Leonardo Rossi avatar Carl avatar hamlet avatar Joel Boehland avatar

Watchers

James Cloos avatar

Forkers

lfex

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.