jterrace / js.js Goto Github PK
View Code? Open in Web Editor NEWjs.js: A JavaScript JavaScript interpreter
License: Other
js.js: A JavaScript JavaScript interpreter
License: Other
Stop this.
I am using Safari 5 on Mac OS X, which doesn't support Float64Array, so please map it to Float32Array:
if (typeof Float64Array === 'undefined') window.Float64Array = Float32Array;
Prior to anything thanks for your efforts on making this project, it's really interesting and I'm creating an application with it.
But there is no documentation right now for this project (or at least I can't find it).
I understand that it all uses the Spider-monkey's API but things are different when it comes to using your wrapper library. I've already reverse engineered some of your wrapper functions but having a set of documentation pages would be awesome.
Thanks in advance.
Hi and apologies if this is not the correct place to ask this. This is a really interesting project and would be useful in something I am working on. I am surprised it does not appear to be an active project - is there a reason it has not been developed further? Has anyone implemented it in their software?
Many Thanks
First, thanks for this great package!
Fibonacci example return wrong result when input greater than 45
.
45
.46
.I tried to fix this issue myself, but source code is too huge to understand quickly, if anyone can give me a hint or idea about this issue, I am more than happy to help fix it!!
I'm not sure how to import this like an npm module to run sandboxed code. Could you give some guidance on this please :)
please add your library to bower if you would.
Hello, I was wondering how can I tweak it to handle non English characters, as I was investigating the code, I realized the function responsible for parsing is parseUTF16. It is returning the wrong code for my characters, I am not sure if the way it is storing characters should be changed or just the parsing.
parseUTF16 : function parseUTF16(ptr) {
//FIXME: this assumes ascii
https://github.com/jterrace/js.js/blob/master/src/jsjs-wrapper.js#L98
Thank you for the library!
@steelejoe any chance of WebAssembly support?
Hello, could you please list the dependencies used to compile Spider Monkey? I read the compile.txt file and couldn't find all dependencies needed. Thanks in advance!
You might even get quite close to native speed then!
Why?
The link to spidermonkey is dead.
js.js result for iteration 10: 55
Native result for iteration 10: 55
js.js result for iteration 20: 6765
Native result for iteration 20: 6765
js.js result for iteration 30: 832040
Native result for iteration 30: 832040
js.js result for iteration 40: 102334155
Native result for iteration 40: 102334155
js.js result for iteration 50: -888668160
Native result for iteration 50: 12586269025
js.js result for iteration 100: 1990706582
Native result for iteration 100: 354224848179262000000
js.js result for iteration 1000: -2082817698
Native result for iteration 1000: 4.346655768693743e+208
I am trying to use js.js
in Node, but it complains that window
is missing.
By the way, I am using libjs-O2.min.js
EDIT: I also added the following to the bottom:
module && module.exports = JSJS;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.