Can't we just substitute application code for built-in repl code? #15
Replies: 7 comments 28 replies
-
I think the problem is that the REPL code is implemented in C++, and not as a v8-based JavaScript program that we can replace. @RaisinTen might be able to confirm. |
Beta Was this translation helpful? Give feedback.
-
@aduh95 Then this should be as simple as https://github.com/beaufortfrancois/download-chromium where
and the |
Beta Was this translation helpful? Give feedback.
-
What happens when they do |
Beta Was this translation helpful? Give feedback.
-
There are many concerns with the approach. The ones I can think of right now:
For the first 3 points, some may argue that logics can be added to handle the case, but that brings the complexity to the parallel of what we are already working on. |
Beta Was this translation helpful? Give feedback.
-
For clarity, objectively this is the same; equivalent; no different:
The application needs to handle dynamics, if any. Remember the application is already built. It just happens to use |
Beta Was this translation helpful? Give feedback.
-
@cspotcode I don't think there is confusion. My understanding of a single executable application is no arguments/parameters need to be passed and are not expected to receive any parameters to the runtime itself. Ideally, we just call |
Beta Was this translation helpful? Give feedback.
-
@ljharb I agree to some extent. I already have I think we can achieve the goal here rather simply by providing a simple HTML form on the downloads Web site that accepts one or more files, writes the files to where repl would run with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When
node
is run at the command line we get a REPL sessionSince it is unlikely an application will be using the built-in REPL can't we just substitute application code for the built-in REPL code, so that all an end-user has to do is call
node
for the application to run?Beta Was this translation helpful? Give feedback.
All reactions