Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bmeck
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
bmeck
3y ago
SBOM doesn't make sense at this level usually since the things being published lists constraints when installed locally and not locked/pinned versions. Some executables distributed on npm do provide lockfiles but those aren't
2.
▲
by
bmeck
3y ago
People are always asking for code signing, really curious to see how they react to this one.
3.
▲
by
bmeck
10y ago
or you could just do `import('a'); import('b');` to load `a` and `b` in parallel
4.
▲
by
bmeck
10y ago
incorrect. `await` is a reserved word only in async contexts, the UI thread event loop still runs while `await`ing.
5.
▲
by
bmeck
10y ago
top level await is only possible in grammar w/ `await` as a reserved word. This is limited to Modules (type=module) and async functions. You can't put it in your click handler or random Script like the examples you gave.
6.
▲
by
bmeck
10y ago
`await` allows the event loop/job queue to run while waiting. However, while using `import` declarations , your module will not run until all imports have completed; this means that your module will be suspended while the dependency a
7.
▲
by
bmeck
10y ago
We looked at several alternative extensions and it was the least egregious of them: https://github.com/nodejs/node-eps/blob/master/002-es6-modul...
8.
▲
by
bmeck
10y ago
There is a pretty epic thread that I suggest you just read the tail end of https://github.com/nodejs/node-eps/pull/3#issuecomment-21476... . Basically we tried detection via source code as the first proposal;
9.
▲
by
bmeck
10y ago
ES2015 did not include a loader specification, only a module specification. https://github.com/nodejs/node-eps/blob/master/002-es6-modul... is the interop that will be present for node but it is outside
10.
▲
by
bmeck
10y ago
https://github.com/nodejs/node-eps/blob/master/002-es6-modul...
11.
▲
by
bmeck
10y ago
https://github.com/nodejs/node-eps/blob/master/002-es6-modul... was merged today; v8 C++ API for node to truly support it has not been implemented yet, should be in next LTS at current pace (next year).
12.
▲
by
bmeck
10y ago
Vote was at: https://github.com/nodejs/node/issues/5648
13.
▲
by
bmeck
11y ago
const is not about immutability in JS.
14.
▲
by
bmeck
11y ago
const is not about immutability in JS.
15.
▲
by
bmeck
11y ago
const can be used to denote that a reference to the variable is being passed around and should not change for the lifetime of a scope. function f() { const queue = []; consumer(queue); return queue; } It could
16.
▲
by
bmeck
12y ago
Once again, these limitations are not with Windows itself (see all the C++ Unicode file functions / file longpaths). In general Node supports long paths just fine (you can watch `npm` write past the 260 [wtf?] char limit). The limitati
17.
▲
by
bmeck
12y ago
Node uses the Unicode functions so no need, but lots of tools in windows break (cmd.exe notably) so things like child processes don't work on long filepaths. You can actually watch `npm` write to files past the limit by using the Unico