Skip to content

Porting forward.scm to RacketScript #61

@amirouche

Description

@amirouche

I created a minimalist scheme framework for creating web apps in scheme using the BiwaScheme interpreter called forward.scm. Basically, it boils down to the %create-app procedure.

It's similar in principle to redux, it use a virtualdom library called snabbdom (similar in principle to reactjs) and prolly similar in principle to ClojureScript's om (even though I don't have om experience yet).

To make a port to RacketScript (RS) possible I need to know two things:

  • How to call javascript from RS and vice-versa
  • Right now, the framework works with the assumption that XHR calls are not callback based, they are not synchronous tho. This is made possible thanks to BiwaScheme's magic http-request which AFAIU use somekind of call/cc. Now I now RS doesn't implement call/cc (why?). I successfully ported forward.scm to use the new async/await from ES2017. My question is: does RS plan to support somekind of call/cc similar to biwascheme? Does it support async/await?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions