News for hackers. Stuff that matters.

giankam

Re:Edge.js: Run Node apps inside a WebAssembly sandbox on Tuesday March 17, 2026 @05:29PM (#47418590)
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?

Hope this helps.

Re:How I uncovered a potential ancient Rome wine scam on Saturday June 14, 2025 @07:10AM (#44275637)
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.
Would have liked to know it before installing.
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.
Re:Multiple Displays on a Mac Sucks on Friday April 26, 2024 @05:17AM (#40167338)
Agreed, I use bettertouchtools for the same purpose
Re:Maybe Functions on Monday March 11, 2024 @09:52AM (#39668227)
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.

Re:Show HN: A new search engine for finding leads on Monday February 19, 2024 @12:28PM (#39432317)
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.
Re:Show HN: Heynote – A Dedicated Scratchpad for Developers on Friday December 22, 2023 @04:38PM (#38738980)
Probably Github for autoupdate and currencies for current currency rates
Re:Deep Cloning Objects in JavaScript, the Modern Way on Friday December 22, 2023 @03:27AM (#38732184)
Yep, I do the same.
Re:Deep Cloning Objects in JavaScript, the Modern Way on Friday December 22, 2023 @03:26AM (#38732181)
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.

I use prototypes so only lodash works for me.

Re:How to Get Started in Soldering for Beginners on Monday April 10, 2023 @02:25PM (#35515550)
The article doesn't actually teach how to solder. Just a few tips but not practical instructions to follow. As an example this sentence: "so we’re going to start by adding solder to both the wire and the pad that it’s being soldered to—this process is often referred to as tinning."

Doesn't give a single hint on how to do it...

Re:The New York City Subway Is Beyond Repair on Tuesday June 12, 2018 @03:16AM (#17291321)
Maybe solvable problems... but where would these vehicles be parked? How would positioning work since there's no GPS underground? And how to move vehicles from surface to tunnels?