You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see all those at work in this example.
That's a translation of a WebRTC chat and video demo from Javascript to JSCL. . You can observe the use of the syntax there, for JS object accessing and creation, and for working with promises.
I've been also been adding some utility functions from Alexandria mostly, but added some more, like dovector, as vectors appear in JS very often.
I'm posting here because I thought this could be helpful for somebody else. Also, please let me know of the things you don't like, I'm interested in improving.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello.
I've implemented some "syntax" extensions for making the interaction with JS a bit more smooth.
This is a short description:
@
for accessing JS objects (alias of JSCL::OGET).js
for converting to JS object (alias of JSCL::LISP-TO-JS).lisp
for converting from JS to Lisp (alias of JSCL::JS-TO-LISP).@{
for creating new JS objects.->
for chaining, objects access and method calls. Specially useful for working with promises.Here is the current implementation.
You can see all those at work in this example.
That's a translation of a WebRTC chat and video demo from Javascript to JSCL. . You can observe the use of the syntax there, for JS object accessing and creation, and for working with promises.
I've been also been adding some utility functions from Alexandria mostly, but added some more, like
dovector
, as vectors appear in JS very often.I'm posting here because I thought this could be helpful for somebody else. Also, please let me know of the things you don't like, I'm interested in improving.
Beta Was this translation helpful? Give feedback.
All reactions