Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DataScript compatible with self-hosted ClojureScript #102

Open
djwhitt opened this issue Oct 24, 2017 · 5 comments
Open

Make DataScript compatible with self-hosted ClojureScript #102

djwhitt opened this issue Oct 24, 2017 · 5 comments

Comments

@djwhitt
Copy link
Contributor

djwhitt commented Oct 24, 2017

Ok, so this isn't exactly a Zetawar issue, but this keeps us from being able to run Zetawar on Lumo, and I really really want to run Zetawar on Lumo. 😁

@tbeddy
Copy link
Contributor

tbeddy commented Oct 24, 2017

Is DataScript currently impossible to run outside of a browser or just difficult?

@djwhitt
Copy link
Contributor Author

djwhitt commented Oct 24, 2017

I'm pretty sure it'll run outside the browser. I know that it at least loads. However, it won't compile in self-hosted ClojureScript. You have to use JVM Clojure to compile it.

@djwhitt
Copy link
Contributor Author

djwhitt commented Oct 25, 2017

I suspect the main problem is macro definitions in :clj blocks. They don't get evaluated in self-hosted ClojureScript.

@djwhitt
Copy link
Contributor Author

djwhitt commented Oct 27, 2017

I should probably elaborate a bit on why I want to run on Lumo. One reason is the AI vs AI runner. It would be great to be able to run that from a script without any JVM dependency. The other is as a unit and integration test runner. Both of those are cases where I feel like having an explicit compilation phase that relies on the JVM gets in the way more than it helps.

@djwhitt
Copy link
Contributor Author

djwhitt commented Nov 12, 2017

I've made some progress on this here: https://github.com/Zetawar/datascript/tree/self-hosted-cljs

That might be enough to get the game logic running if some other self-hosted-cljs incompatible dependencies are removed. I'll probably tackle logging next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants