hylo-lang / Lotsawa

A Swift implementation of the MARPA algorithms
Apache License 2.0
18 stars 2 forks source link

Take a look at JS implementation #7

Closed dabrahams closed 1 year ago

dabrahams commented 2 years ago

I just found a JavaScript implementation, https://github.com/aredridel/lotsawa, which may be of some interest.

/cc @jeffreykegler

jeffreykegler commented 2 years ago

@aredridel and @iarna are supporters of my work from the very early days. IIRC correctly this implementation didn't reach the point where it was ready for uses.

dabrahams commented 2 years ago

Yeah, I don't see them traversing the tree. However they do some building of prediction bitsets and other things that might have value. I find it pretty hard to read cweb sources so I can't easily tell whether that was cribbed from MARPA's source.

aredridel commented 2 years ago

Indeed, I did not get that far— life intervened and I've not had the deep thought available to come back to it. (And the js ecosystem moved funny; I'd probably use WASM for core parts, the way marpa has some core parts separate from the user interface layer)

aredridel commented 2 years ago

But any code in that repo that's useful I am happy to hand off to whoever can use it.

dabrahams commented 1 year ago

Not gonna happen, I think.