Hi Syrusakbary, I have to admit I still do not fully understand what this is.
First, I could not find usage examples on the edgejs.org page and the docs link points to the node docs, why?
If I head to github, there are some usage examples, but they confuse me more.
The first example: $ edge server.js
led me to think that this is a node replacement that runs in a webassembly sandbox, so completely isolated. But why the need of --safe then? What's the difference between using it and not using it?
But the next examples creates more confusion to me: $ edge node myfile.js
$ edge npm install
$ edge pnpm run dev
What is this doing? I thought that edge was a node replacement, interpreting and running javascript files, but it's now running executables (node, npm)... what is that? What happens when I run npm install... where does it install files? What's the difference between running edge node myfile.js and edge myfile.js?
> I could not find usage examples on the edgejs.org page and the docs link points to the node docs, why?
This was intentional, as a demonstration that Edge and Node should not diverge a bit. You should be able to replace `node` with `edge` in your terminal and have things running, so that's why we point to the Node.js docs.
> But why the need of --safe then? What's the difference between using it and not using it?
Edge.js currently runs without a sandbox by default. The main reason for this is two fold: native currently performs a bit better than with the Wasm sandbox (about 10-20% better), and because we wanted to polish more the Wasm integration before offering it as default.
> $ edge pnpm run dev
> What is this doing?
This is making the `node` alias available for anything that you put after edge.
This allows pnpm to use the edge `node` alias instead of your platform node.
Things will be installed as usual, in your `node_modules` directory
The author fails to understand modern wines to begin with. Amarone is not a raisin wine at all, the link to the appassimento method correctly explains that the Amarone process is initially based on dried grapes, but the result is a dry wine.
Yeah, and apassimento is not a modern day luxury. Maybe the author is right about Cretans using chaptalization, but that’s very far from “faking” wine.
Not only, it's not possible to quit the installer. Had to kill it and then look for changes done to the system. Hope I've been able to find them all but really upsetting.
I got stuck at option 1. Rendering code becomes lot more complex. Also few errors that make it difficult to follow the essay, like "it’s a “maybe” function as it only returns the friends of a user" but the function is getUser, not getFriends.
Or
function getFriends(user: User): Friend[] {
return fetchUser();
}
The body of the function is wrong.
Hard to understand what it does and the idea behind. In this state I would not limit the search engine results to give the opportunity to fully grasp the idea and benefits.
That's definitely a sensible suggestion - to be fair I expected the sufficiently interested parties to DM me for a free account - I did not word my intention sufficiently but at this stage we are looking for salespeople to give feedback.
I have an application with a big data structure built as a tree of objects. With deep cloning I can:
- Provide undo/redo. I just clone the whole tree.
- Load/Save from/to the database part of the tree. I load it in a separate object and then deep clone in place.
- Do mass modifications to a part of the tree. A clone a copy, apply modifications and the clone back in place.
I could do some of the changes in place, but to optimize Vue reactivity I work on copies.
First, I could not find usage examples on the edgejs.org page and the docs link points to the node docs, why?
If I head to github, there are some usage examples, but they confuse me more.
The first example: $ edge server.js led me to think that this is a node replacement that runs in a webassembly sandbox, so completely isolated. But why the need of --safe then? What's the difference between using it and not using it?
But the next examples creates more confusion to me: $ edge node myfile.js $ edge npm install $ edge pnpm run dev
What is this doing? I thought that edge was a node replacement, interpreting and running javascript files, but it's now running executables (node, npm)... what is that? What happens when I run npm install... where does it install files? What's the difference between running edge node myfile.js and edge myfile.js?
Hope this helps.