Comments (3)
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.
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.
Implemented in the closette part, as the most common version of OOP for Lisp
from jscl.
Related Issues (20)
- Error : (describe (gensym))
- Rewrite the load function
- Wrong character reading
- default key values bug HOT 1
- The "ANSI Compliance milestone" Link on the Wiki is Broken HOT 2
- Function EXPORT not working as expected while compiling.
- Macros are treated as function while compiling
- ERROR: Function 'LOG' undefined HOT 1
- feature testing not work as intended at compile time HOT 1
- nested feature testing: ERROR: ECASE expression failed for the object `NIL'. HOT 1
- ERROR: Function 'EQUALP' undefined HOT 2
- ERROR: Function 'BIT-VECTOR-P' undefined
- ERROR: Function 'FLOAT' undefined HOT 2
- make-array: ERROR: Unknown keyword argument INITIAL-CONTENTS
- ERROR: Function 'ROTATEF' undefined
- (SETF GETF) is buggy HOT 3
- vector dimensions are wrong HOT 1
- (type-of float-with-exponent) returns 'INTEGER HOT 2
- Race condition in reader HOT 5
- &allow-other-keys not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jscl.