v8

Docker image with v8 compiled reached almost 5GB. What am I doing wrong?

本小妞迷上赌 提交于 2020-07-23 07:22:31
问题 Sorry, this is my first time using docker so there may be chances that I'm using the wrong term. Basically, I need to use this image as the base of our project, however, when I try to build our project using docker-compose it takes quite a long time build which I suspect is because of the file size of the image. Is there anything I can do to reduce the file size down to 500MB? Here is what I have in the image's docker file. FROM php:7.2-apache-buster ENV V8_VERSION=7.4.288.21 RUN apt-get

Docker image with v8 compiled reached almost 5GB. What am I doing wrong?

北慕城南 提交于 2020-07-23 07:21:25
问题 Sorry, this is my first time using docker so there may be chances that I'm using the wrong term. Basically, I need to use this image as the base of our project, however, when I try to build our project using docker-compose it takes quite a long time build which I suspect is because of the file size of the image. Is there anything I can do to reduce the file size down to 500MB? Here is what I have in the image's docker file. FROM php:7.2-apache-buster ENV V8_VERSION=7.4.288.21 RUN apt-get

Docker image with v8 compiled reached almost 5GB. What am I doing wrong?

江枫思渺然 提交于 2020-07-23 07:20:32
问题 Sorry, this is my first time using docker so there may be chances that I'm using the wrong term. Basically, I need to use this image as the base of our project, however, when I try to build our project using docker-compose it takes quite a long time build which I suspect is because of the file size of the image. Is there anything I can do to reduce the file size down to 500MB? Here is what I have in the image's docker file. FROM php:7.2-apache-buster ENV V8_VERSION=7.4.288.21 RUN apt-get

Slides App: getActivePresentation error after v8 migration

无人久伴 提交于 2020-07-23 06:14:54
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Slides App: getActivePresentation error after v8 migration

泪湿孤枕 提交于 2020-07-23 06:13:22
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Slides App: getActivePresentation error after v8 migration

守給你的承諾、 提交于 2020-07-23 06:12:32
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Understanding Node Addon API (N-API) HandleScope

痞子三分冷 提交于 2020-07-19 04:51:40
问题 I have difficulties to understand how to correctly use HandleScope and EscapableHandleScope. For example, from this Node example: MyObject::MyObject(const Napi::CallbackInfo& info) : Napi::ObjectWrap<MyObject>(info) { Napi::Env env = info.Env(); Napi::HandleScope scope(env); this->val_ = info[0].As<Napi::Number>().DoubleValue(); }; Why do we need to create a new HandleScope in this case? And from this other example: Napi::Object CreateObject(const Napi::CallbackInfo& info) { Napi::Env env =

Working with Node::Buffers in C++ Node Addons

谁都会走 提交于 2020-07-10 10:26:26
问题 I'm working on a Node addon that encrypts data using Windows DPAPI. I'm passing two Javascript Uint8Array to the C++ code using NAN. This is what the typescript interface looks like: export interface DpapiBindings{ protectData(dataToEncrypt: Uint8Array, optionalEntropy: Uint8Array, scope: string): Uint8Array } I'd like to then create a Node::Buffer in the C++ code: void ProtectData( Nan::NAN_METHOD_ARGS_TYPE info) { v8::Isolate* isolate = info.GetIsolate(); // auto buffer = node::Buffer::Data

Working with Node::Buffers in C++ Node Addons

允我心安 提交于 2020-07-10 10:26:20
问题 I'm working on a Node addon that encrypts data using Windows DPAPI. I'm passing two Javascript Uint8Array to the C++ code using NAN. This is what the typescript interface looks like: export interface DpapiBindings{ protectData(dataToEncrypt: Uint8Array, optionalEntropy: Uint8Array, scope: string): Uint8Array } I'd like to then create a Node::Buffer in the C++ code: void ProtectData( Nan::NAN_METHOD_ARGS_TYPE info) { v8::Isolate* isolate = info.GetIsolate(); // auto buffer = node::Buffer::Data

HTML Service does not open a sidebar in V8 runtime

守給你的承諾、 提交于 2020-07-09 13:24:45
问题 I have a very large project running on Rhino, but when I switch it to V8 one of the basic functionalities break - the sidebar in Google Sheets can no longer be opened. Basic architecture: A) Google Sheet A with a script (Rhino) importing a GAS Library (V8). The sidebar is in the Library. versus B) Google Sheet B with a script (V8) importing a GAS Library (V8). The sidebar is in the Library. This code is in the Library (standalone script file, running in V8): // called from parent script as