Earlier quoted context omitted.
The grand majority of programming language APIs do not use a stack-based API. Really, stack-based APIs are an exception in just about every way, but not in a good way. If your question is about cheap memory storage, linked list algorithms already exist, so there's really no good reason to use a faux stack to store data.
The grand majority of programming language APIs do not use a stack-based API. Really, stack-based APIs are an exception in just about every way, but not in a good way. Um, what is the C ABI for invoking functions? :|
MuJS: an embeddable JavaScript interpreter
51–57 of 57 posts
Re: MuJS: an embeddable JavaScript interpreter
#52 > [] == []
false
> [] + []
> {} + []
0
> [] + {}
[object Object]
> {} + {}
NaN
Although it fails in this part (should be [10, NaN, 2]): > [10, 10, 10].map(parseInt)
10,0,2Re: MuJS: an embeddable JavaScript interpreter
#53Earlier quoted context omitted.
You are making assumptions about the needs of a project to endorse your favorite language. Remember that languages are tools, not sport teams. There are needs that completely disregard any of the benefits you mentioned with lua, for example: a) How can Lua help me run existing JavaScript code? b) Why is Lua more cost-effective than embeddable JavaScript interpreters considering the following: 1. the cost of learning…
(a) Tessel produced a pretty complete open source JS to Lua converter, which runs node[1] (b) People are not dumb, they can learn Lua. It is easier than learning JavaScript. [1] https://github.com/tessel/colony-compiler
I was not saying that people is dumb, I was saying that learning it requires extra time and effort, and that increases the cost of a project.
Re: MuJS: an embeddable JavaScript interpreter
#54Earlier quoted context omitted.
The grand majority of programming language APIs do not use a stack-based API. Really, stack-based APIs are an exception in just about every way, but not in a good way. Um, what is the C ABI for invoking functions? :|
Yes, of course. But that's ABI , not API.
It makes a great deal of sense, especially when dealing with an interpreter for a stack-like machine, to expose language bindings in terms of that stack.
It's not super friendly, mind, but it makes perfect sense.
Re: MuJS: an embeddable JavaScript interpreter
#55I understand the AGPL and the want to monetize the work, but it just feels so disingenuous to have to contact for commercial details.
How is that disingenuous? It seems pretty forthright about its licensing to me.
Re: MuJS: an embeddable JavaScript interpreter
#56Earlier quoted context omitted.
This is a pretty big deal for me. MuJS is a non-starter if I can't even use it in GPL'd software (let alone copyfree-licensed software; my preference for my own projects is the MIT license, so being able to include something without having to change that - as duktape offers - is ideal).
Sure you can use it with GPL'd software[0] or MIT licensed software! It doesn't stop the GPL from applying to any GPL'd code, nor the MIT license to any MIT'd code. The AGPL does say that when it is used, the sources must be available to the users; but that doesn't mean that when someone takes your (MIT or GPL) code and changes it, and uses it [without MuJS or other AGPL code], that the AGPL applies. [0]: GPLv3, that…
So yeah, sure, you can incorprate MuJS in an MIT-licensed project, but by doing so, you're effectively required to license the entire work (your code + MuJS) under the AGPL (or a license - like the GPLv3 - that's explicitly authorized for dynamic linking; this, again, doesn't apply for static linking).
Re: MuJS: an embeddable JavaScript interpreter
#57Earlier quoted context omitted.
How is that disingenuous? It seems pretty forthright about its licensing to me.
Because they have to be contacted to determine a price instead of making pricing clear. (I am not saying that they will not price consistently, I'm just saying it's a bit off-putting)