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

Backends other than node.js? #59

Closed
sidkshatriya opened this issue Sep 26, 2017 · 3 comments
Closed

Backends other than node.js? #59

sidkshatriya opened this issue Sep 26, 2017 · 3 comments

Comments

@sidkshatriya
Copy link

I'm curious: are there backends other than nodejs for koka? Plans to have alternate backends?

@Pauan
Copy link

Pauan commented Sep 27, 2017

There is currently a JavaScript and C# backend.

You can use --target=js or --target=cs to choose which one you want.

There is also --host=node and --host=browser to choose the JavaScript runtime.

@sidkshatriya
Copy link
Author

Thank you!

@CedricDumont
Copy link

seem --host is not available anymore. By searching, I found different target (src/compiler.Options.hs)

usage :koka myfile.kk --target=jsweb

targets =
[("c", \f -> f{ target=C LibC, platform=platform64 }),
("c64", \f -> f{ target=C LibC, platform=platform64 }),
("c32", \f -> f{ target=C LibC, platform=platform32 }),
("js", \f -> f{ target=JS JsNode, platform=platformJS }),
("jsnode", \f -> f{ target=JS JsNode, platform=platformJS }),
("jsweb", \f -> f{ target=JS JsWeb, platform=platformJS }),
("wasm", \f -> f{ target=C Wasm, platform=platform32 }),
("wasm32", \f -> f{ target=C Wasm, platform=platform32 }),
("wasm64", \f -> f{ target=C Wasm, platform=platform64 }),
("wasmjs", \f -> f{ target=C WasmJs, platform=platform32 }),
("wasmweb",\f -> f{ target=C WasmWeb, platform=platform32 }),
("cs", \f -> f{ target=CS, platform=platformCS })
]

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

3 participants