Comments (3)
that's an interesting idea! Currently it doesn't build a candid file, but it should be relatively easy since you can get JSC.js working with only one or two APIs. You can check out the demo html for the API signature.
from jsc.js.
Looks like these are the culprits here. Any advice on how to suss out what the return types are on these "la" and "va"(etc) functions? Looks like there is a good bit of memory management going on here that is handled in the jsc.js file. That shouldn't be too much of an issue as I think I can script the interaction with the dfinity cannister once I have a valid definition file.:
var asm = Module["asm"](asmGlobalArg, asmLibraryArg, buffer);
Module["asm"] = asm;
var ___emscripten_environ_constructor = Module["___emscripten_environ_constructor"] = function() {
return Module["asm"]["ea"].apply(null, arguments)
};
var ___errno_location = Module["___errno_location"] = function() {
return Module["asm"]["fa"].apply(null, arguments)
};
var __get_daylight = Module["__get_daylight"] = function() {
return Module["asm"]["ga"].apply(null, arguments)
};
var __get_timezone = Module["__get_timezone"] = function() {
return Module["asm"]["ha"].apply(null, arguments)
};
var __get_tzname = Module["__get_tzname"] = function() {
return Module["asm"]["ia"].apply(null, arguments)
};
var _free = Module["_free"] = function() {
return Module["asm"]["ja"].apply(null, arguments)
};
var _jsRound = Module["_jsRound"] = function() {
return Module["asm"]["ka"].apply(null, arguments)
};
var _jsc_eval = Module["_jsc_eval"] = function() {
return Module["asm"]["la"].apply(null, arguments)
};
var _malloc = Module["_malloc"] = function() {
return Module["asm"]["ma"].apply(null, arguments)
};
var _memalign = Module["_memalign"] = function() {
return Module["asm"]["na"].apply(null, arguments)
};
var _memset = Module["_memset"] = function() {
return Module["asm"]["oa"].apply(null, arguments)
};
var _setThrew = Module["_setThrew"] = function() {
return Module["asm"]["pa"].apply(null, arguments)
};
var stackAlloc = Module["stackAlloc"] = function() {
return Module["asm"]["va"].apply(null, arguments)
};
var stackRestore = Module["stackRestore"] = function() {
return Module["asm"]["wa"].apply(null, arguments)
};
var stackSave = Module["stackSave"] = function() {
return Module["asm"]["xa"].apply(null, arguments)
};
var dynCall_i = Module["dynCall_i"] = function() {
return Module["asm"]["qa"].apply(null, arguments)
};
var dynCall_ii = Module["dynCall_ii"] = function() {
return Module["asm"]["ra"].apply(null, arguments)
};
var dynCall_v = Module["dynCall_v"] = function() {
return Module["asm"]["sa"].apply(null, arguments)
};
var dynCall_vi = Module["dynCall_vi"] = function() {
return Module["asm"]["ta"].apply(null, arguments)
};
var dynCall_vii = Module["dynCall_vii"] = function() {
return Module["asm"]["ua"].apply(null, arguments)
};
from jsc.js.
For testing purpose I think you may safely delete some of the functions like __get_timezone
without breaking jsc.js.
from jsc.js.
Related Issues (14)
- benchmarks? HOT 1
- Use Cases HOT 1
- Corrupt results from jsc_eval sometimes in WebAssembly build
- License? HOT 2
- Access globals? HOT 18
- [Error] Build Stopped: subcommand failed HOT 24
- Error When Building With target_os=win HOT 1
- Error when instantiating wasm file HOT 1
- Javascript Wrapper for compiling js to jsc. HOT 2
- Different results from JSC_Eval to JSC_Eval_Bytecode HOT 10
- Any way to make websocket connections or send data to servers within JSC? HOT 1
- Failed at checkSyntax HOT 4
- HELPPPP HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsc.js.