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

JavaScript is quite verbose for live-coding. Use a higher language or provide a library of useful functions #20

Open
brianpeiris opened this issue Oct 7, 2014 · 2 comments

Comments

@brianpeiris
Copy link
Owner

No description provided.

@capnmidnight
Copy link
Contributor

Are you familiar with the live-graphics-coding work that's been done with Racket? It would seem that you were already going towards this programming style of a purely functional, composable interaction API, but JavaScript can make that a bit of a pain sometimes.

Pict has been around for quite a while: http://docs.racket-lang.org/pict/index.html

This was very recent, an attempt to make a pict-like language for hardware accelerated 3D: https://www.youtube.com/watch?v=t3xdv4UP9-U

And finally, there is Whalesong, a Racket-to-JavaScript transpiler: https://www.hashcollision.org/whalesong/

Though there are a number of From-Scheme-To-JS transpilers that I'm sure would do well. Or perhaps what you really want is this style of API plus CoffeeScript.

@capnmidnight
Copy link
Contributor

Also, if all you care about is direct translation to JS, with no specific runtime characteristics (i.e. NOT how like ClojureScript include their own type system), building scheme-like languages is mostly just a for-loop over an array of Regex replace expressions: https://github.com/capnmidnight/brian/blob/master/web/loosp.js

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

No branches or pull requests

2 participants