Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running simple "hello world" JS script on NodeJS (tracking "epic") #23

Open
16 tasks
castarco opened this issue Oct 28, 2021 · 1 comment
Open
16 tasks

Comments

@castarco
Copy link
Contributor

castarco commented Oct 28, 2021

I've run the following command in my Linux machine (to see which syscalls are being sent to the kernel for a very basic NodeJS program):

strace echo "console.log('hello')" | node

and I've got the following list (taking aside the ones already implemented):

  • access
  • openat
  • pread64
  • mprotect

some of this calls could be related to Bash and not NodeJS, but if instead I run this:

strace node example.js # with the same JS script as before

we obtain this list (confirming that they are needed for NodeJS too):

I hope this can be useful to guide the next steps for this roadmap ( https://github.com/nuta/kerla/projects/1 ).

@castarco castarco changed the title Informative: used syscalls when running simple JS scripts on node Running simple JS scripts on node (tracking "epic") Oct 28, 2021
@castarco castarco changed the title Running simple JS scripts on node (tracking "epic") Running simple JS scripts on NodeJS (tracking "epic") Oct 28, 2021
@castarco castarco changed the title Running simple JS scripts on NodeJS (tracking "epic") Running simple "hello world" JS script on NodeJS (tracking "epic") Oct 28, 2021
@nuta
Copy link
Owner

nuta commented Oct 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants