-
Notifications
You must be signed in to change notification settings - Fork 58
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
Embedding section incomplete? #117
Comments
Not sure what the text was like at the time of the original post. Although
I don't see that kind of text for
nor for
May be it's one or both of these that was being hinted at? |
I can't remember whether the text was any different at the time either. I do recall the
Perhaps the issue here is that "there are more efficient options" doesn't actually do anything to point the reader to those options; something as simple as naming them would suffice. A few more points:
I'm happy to discuss possible solutions to the above, but some would require changes to the method names in addition to amendments to the documentation. Is the project open to such changes? |
I looked at the current definitions for: Roughly, it looks to me like:
Based on these observations and the original text, my current guess is that of the mentioned functions, If confirmation is obtained on the above, I wouldn't be surprised if an appropriate PR for updating the text to explicitly mention these as "the more efficient options" got accepted. |
The Embedding section of the C API chapter explains some basic ways of running Janet code embedded in a C program, such as
janet_dobytes
,janet_dostring
, orjanet_call
.It is mentioned multiple times that these ways are mostly meant for running "simple, short running logic" or for running code once. There is a mention of the existence of more efficient options (under the entry for
janet_dobytes
), but there's no info on what those options actually are.What are these more efficient ways of running Janet code optimally when embedded in a C program?
The text was updated successfully, but these errors were encountered: