Coder Social home page Coder Social logo

citelab / jamscript Goto Github PK

View Code? Open in Web Editor NEW
28.0 14.0 16.0 57.1 MB

A programming language for cloud of moving things (edge-based IoT)

License: Other

Makefile 0.14% C 61.80% JavaScript 29.68% Shell 8.25% Dockerfile 0.10% Roff 0.02%
c javascript cloud-computing iot-framework iot programming-language iot-middleware fog-computing

jamscript's People

Contributors

alkbed avatar anotherlostkitten avatar anrl avatar gazcn007 avatar ingtian avatar j0nnycheese avatar jujustayfly avatar keith471 avatar mattesko avatar nictruong avatar ominibyte avatar owenmli avatar porschefanboy avatar rvladi avatar samuelgenois avatar thefishintheair avatar wenger avatar xiruzhu avatar yjiang28 avatar yma67 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jamscript's Issues

jamc broken

Need to switch to tcc for second stage. Also include and library paths are wrong.

Needs to strdup

When generating the code for a sync function with return type of char *
The return value needs to be strdup before freeing the arg_t. Otherwise, we get
deallocated error.

e.g Now

arg_t *res = .....
ret = res->val.sval
command_arg_free(res)
return ret;

Here, the ret is actually freed.

Should be corrected to
ret = strdup(res->val.sval)
command_arg_free(res)

J2C Sync

On my ubuntu machine, I keep getting Unhandled rejection No devices connected.
Will attempt to fix it.

C2J/J2C Async

Using C2J and J2C async at the same time causes freezes issues. The program just stops.

J2C Async

Jamworker line 224, these few lines caused the J2C async to go crazy. Commenting it out made the program work

J2C Synchronous not waiting for all results

We need to make J2C synchronous call wait for all replies based on the collection policy.

So the call should return as follows:

= Return if all replies are received.
= Return with success if at least some replies are there by timeout, otherwise return with error

J2C Async

I am not sure how to fix this but
jwork_process_subsock for async will signal js->atable->globalsem
But the only place which waits this semaphore is inside the event loop.
However when we make J2C async call, it seems despite signalling it, the event loop will never be hit.

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.