I am not sure how to test the following in d8.cc.

Ideally some kind of static code analyzer or optimizer could scan existing
Node.js code and identify only the modules used, note them, then build v8
and d8 (and node executable) to do only the task written in JavaScript
source code.

Unfortunately deno compile includes the entire deno executable in the
compiled executable as well.

2582 Local<String> Shell::ReadFromStdin(Isolate* isolate) {
// ...
and
2552 void Shell::Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
  WriteAndFlush(stdout, args);
}

On Sat, Oct 22, 2022 at 2:11 PM Ben Noordhuis <i...@bnoordhuis.nl> wrote:

> On Sat, Oct 22, 2022 at 4:09 PM guest271314 <guest271...@gmail.com> wrote:
> >
> > I have implemented Native Messaging hosts using QuickJS, Deno, and
> Node.js where it is possible to read stdin and write to stdout.
> >
> > How would you go about implementing a Native Messaging host using d8?
>
> I probably wouldn't. :-)
>
> d8 exists to power V8's test suite. It's not really intended as a
> standalone application.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "v8-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/v8-users/ZCE_WMSBBHs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> v8-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-users/CAHQurc_XkTm2ODVwg79qEOCLmo6uEdoTJnxZf_VB6-51A7rY2A%40mail.gmail.com
> .
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/CA%2BsyWAPpMCDTup336SyFZ1ur%2BzaukxTufa%3Doz4%3Di4R%2BX8MN52g%40mail.gmail.com.

Reply via email to