Git Product home page Git Product logo

Comments (3)

mbbill avatar mbbill commented on May 31, 2024

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.

skilesare avatar skilesare commented on May 31, 2024

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.

mbbill avatar mbbill commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.