Code Monkey home page Code Monkey logo

Comments (3)

davazp avatar davazp commented on May 29, 2024

We should try to support CLOS eventually, because JSCL is CL, but other system can go in a contrib or extensions if we consider it appropiate.

from jscl.

zkat avatar zkat commented on May 29, 2024

If it helps, I've been working on a library for doing generic functions that work a lot like CL's, but it's a work in progress. They're more meant to mix with the way JavaScript works, too (flexible function arity, dispatch across all arguments at call time instead of a set of predefined primary arguments). I also implemented Sheeple in CL itself, back in the day. That might be loadable/editable as a potential object system, but it won't map transparently to JS objects, since, for example, Sheeple supports multiple inheritance.

There's also the possibility of loading up Closette, which seems to have a fairly permissive license. This is a good chunk of CLOS, and it was implemented as part of AMOP, so it has some MOP support iirc. I assume this is the best bet for having an actual CLOS implementation, and I think some existing Lisps start off with Closette.

Another alternative is to try and yank the PCL (Portable Common Loops) code out of somewhere and hack it until it runs, but the PCL implementations I know of are fairly sizable and honestly pretty scary codebases to work with. This is the "portable" CLOS implementation that SBCL uses.

I guess the question is whether you want an OO system that can integrate tightly with JavaScript objects, or a system that hides the fact that JS exists, or something in between.

from jscl.

vlad-km avatar vlad-km commented on May 29, 2024

Implemented in the closette part, as the most common version of OOP for Lisp

from jscl.

Related Issues (20)

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.