这是indexloc提供的服务,不要输入任何密码
Skip to content

running compiled file #132

@StreetStrider

Description

@StreetStrider

Hi. I have some beginner question, but readme does not cover it. The docs say:

wisp does not depend on the JVM and is completely self-hosted

Does this mean that wisp does not require its own runtime? Here's the example:

echo '(eval (quote (+ 1 2 3)))' | wisp

which results in:

eval(list(symbol(void 0, '+'), 1, 2, 3));

This is a valid piece of JS code, but neither node neither browser knows anything about list and symbol, and eval too, since it's just a name collision. So, I expect there's some wisp core which contains definitions for this functions and I should bundle my code with it to run it in node or browser.

Readme has good explanation of syntax and even which JS code it will be compiled to. But it has no simple answer on how to run code and bundle. I think it should cover this issues in first place.

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