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

When will Embedding API page be complete? #465

Closed
kornerr opened this Issue Jul 27, 2017 · 10 comments

Comments

Projects
None yet
5 participants
@kornerr

kornerr commented Jul 27, 2017

Hi.
The whole point of Wren is to be embedded, and there are no examples on how to call C from Wren and Wren from C (i.e. callbacks) at all.
When will it finally happen?

@minirop

This comment has been minimized.

Show comment
Hide comment
@minirop

minirop Jul 27, 2017

Contributor

see #402

Contributor

minirop commented Jul 27, 2017

see #402

@kornerr

This comment has been minimized.

Show comment
Hide comment
@kornerr

kornerr Jul 28, 2017

Damn. The blog post which should cover some basics is unavailable!

kornerr commented Jul 28, 2017

Damn. The blog post which should cover some basics is unavailable!

@Nelarius

This comment has been minimized.

Show comment
Hide comment
@Nelarius

Nelarius Aug 11, 2017

Contributor

Oops, I migrated my stuff over to a new site. Here's the new link: http://nelari.us/post/wren-embedding-1/

Contributor

Nelarius commented Aug 11, 2017

Oops, I migrated my stuff over to a new site. Here's the new link: http://nelari.us/post/wren-embedding-1/

@kornerr

This comment has been minimized.

Show comment
Hide comment
@kornerr

kornerr Aug 15, 2017

Too bad, it was too late for us: http://opengamestudio.org/lang/en/news/2506

However, if anybody provides a way to inherit a C++ base class inside Wren and then override its methods, I'd be glad to verify it works (and add Wren to the list of supported scripting languages of OGS tools).

kornerr commented Aug 15, 2017

Too bad, it was too late for us: http://opengamestudio.org/lang/en/news/2506

However, if anybody provides a way to inherit a C++ base class inside Wren and then override its methods, I'd be glad to verify it works (and add Wren to the list of supported scripting languages of OGS tools).

@minirop

This comment has been minimized.

Show comment
Hide comment
@minirop

minirop Aug 16, 2017

Contributor

@kornerr I've tried and it's not possible to inherit a foreign class (name of a class implemented in C) that would allow overloading in Wren.

Contributor

minirop commented Aug 16, 2017

@kornerr I've tried and it's not possible to inherit a foreign class (name of a class implemented in C) that would allow overloading in Wren.

@Nelarius

This comment has been minimized.

Show comment
Hide comment
@Nelarius

Nelarius Aug 18, 2017

Contributor

@kornerr sorry to hear! Either way, lua + sol2 seems like a very solid choice. I got library envy when I saw how good sol2 was 🙂

Contributor

Nelarius commented Aug 18, 2017

@kornerr sorry to hear! Either way, lua + sol2 seems like a very solid choice. I got library envy when I saw how good sol2 was 🙂

@paulsapps

This comment has been minimized.

Show comment
Hide comment
@paulsapps

paulsapps Aug 18, 2017

Contributor

Its a shame no one has created a "script VM" that has compilation/static typing or a JIT. Then projects like this would just be a syntax front end to it. Although I guess that radically changes the ideals and goals of wren.

Contributor

paulsapps commented Aug 18, 2017

Its a shame no one has created a "script VM" that has compilation/static typing or a JIT. Then projects like this would just be a syntax front end to it. Although I guess that radically changes the ideals and goals of wren.

@Nelarius

This comment has been minimized.

Show comment
Hide comment
@Nelarius

Nelarius Aug 19, 2017

Contributor

Sounds like the NekoVM fits the bill, actually. One front-end is the Neko programming language, a dynamic scripting language, but it's also a compilation target for the Haxe programming language which is statically typed. According to these benchmarks, the NekoVM is also fairly performant. Furthermore, Haxe can be compiled to C++.

Contributor

Nelarius commented Aug 19, 2017

Sounds like the NekoVM fits the bill, actually. One front-end is the Neko programming language, a dynamic scripting language, but it's also a compilation target for the Haxe programming language which is statically typed. According to these benchmarks, the NekoVM is also fairly performant. Furthermore, Haxe can be compiled to C++.

@kornerr

This comment has been minimized.

Show comment
Hide comment
@kornerr

kornerr Aug 19, 2017

kornerr commented Aug 19, 2017

@munificent munificent added the docs label Oct 12, 2017

@munificent

This comment has been minimized.

Show comment
Hide comment
@munificent

munificent Oct 20, 2017

Owner

Sorry for the long delay! (It turns out it's really hard to muster the energy to write more docs while I'm in the middle of writing an increasingly long book. Who would have guessed?)

A first pass at a complete set of embedding docs are up now: http://wren.io/embedding/

I'd still like to write some more about how to interact with fibers through the embedding API in interesting ways, but that can come later. This should cover all of the main stuff. Thank you for pushing on this so I didn't forget. :)

Owner

munificent commented Oct 20, 2017

Sorry for the long delay! (It turns out it's really hard to muster the energy to write more docs while I'm in the middle of writing an increasingly long book. Who would have guessed?)

A first pass at a complete set of embedding docs are up now: http://wren.io/embedding/

I'd still like to write some more about how to interact with fibers through the embedding API in interesting ways, but that can come later. This should cover all of the main stuff. Thank you for pushing on this so I didn't forget. :)

@munificent munificent closed this Oct 20, 2017

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