Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jlongster
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
jlongster
9y ago
Thanks for pointing that out. I was not aware libuv provides facilities for running code in separate threads, since I haven't seen it actually used in any of the of native addons I've looked at yet. It's too bad that node-sql
92.
▲
by
jlongster
9y ago
It's mentioned in other comments but I'm going to repeat it as a top-level comment because it still doesn't seem clear enough to most people: sqlite's C API is synchronous and doesn't use threading, and thus it wil
93.
▲
The Horror of Blocking Electron's Main Process
(dev.actualbudget.com)
2 points
by
jlongster
9y ago
|
0 comments
94.
▲
by
jlongster
9y ago
You need to tell your manager that it's simply impossible to both clean all that up and also make progress on the project. You need to stop the erosion in order to fix it; fixing will require fundamental changes that will absolutely bl
95.
▲
by
jlongster
9y ago
Not yet, RSS isn't in big demand these days but I might add one. Was going to see if several people asked for it.
96.
▲
Balancing Product and Technology
(dev.actualbudget.com)
11 points
by
jlongster
9y ago
|
2 comments
97.
▲
by
jlongster
9y ago
That's not readable. But you're not supposed to write that kind of code normally. You only need that when you need to interop with anything in native JS land, and most of that interop is already done for you so you can just use ex
98.
▲
by
jlongster
9y ago
That's not really the same thing at all. What's missing is the ability to close over values, which is a key part of first-class functions. You could not re-create the original example in C, which is to return a new function. You&#
99.
▲
by
jlongster
9y ago
This was back in 1983 where most (all?) other languages did not have first-class procedures. If you can imagine programming without them and then being exposed to that, it would be a big deal. We take them for granted today.
100.
▲
by
jlongster
10y ago
You might be surprised at the quality of the output (obviously I'm biased). We've tried to choose what most people consider to be the best way to style code, and many times prettier ends up formatting complex code better than I wo
101.
▲
by
jlongster
10y ago
Holy crap Bob, hi! Thank you for the kind words :) (and be honest, I'm sure there were things to complain about from my projects haha)
102.
▲
by
jlongster
10y ago
> To use power-assert, you need to transform your test code for power-assert output. That's a pretty big requirement. I usually avoid the long names like that, but doing `expect(3).toEqual(4)` isn't too bad and it allows the te
103.
▲
by
jlongster
10y ago
Check out this issue, we are discussing it: https://github.com/jlongster/prettier/issues/12 Honestly, we may never do it. But we're still figuring out if the ultimate goal is to keep to a single style or
104.
▲
by
jlongster
10y ago
It always prints spaces and you can configure the number of spaces with `--tab-width`. For tabs/spaces and semicolons I'm considering if we should support those options. We need to figure out the goal of the project: is it to conv
105.
▲
by
jlongster
10y ago
That's actually one of the few config options. Pass `--bracket-spacing=false` to turn off that spacing (or `bracketSpacing: false` in the API)
106.
▲
by
jlongster
10y ago
We do. The entire Flow test suite passes when pretty-printing and re-parsing and comparing ASTs. There are a very few subtle bugs like the one you mentioned above. As noted in the readme, this is a beta. It's certainly more than an att
107.
▲
by
jlongster
10y ago
Not sure, didn't know it formatted JavaScript! This is written in JS at least so if anything it's more approachable to the community.
108.
▲
by
jlongster
10y ago
esformatter suffers from the same problems as eslint as described in the post. It doesn't take maximum line width into account, which is a critical piece for laying out code.
109.
▲
by
jlongster
10y ago
>> "IIRC they still pay Mozilla for making Google the default homepage" > True. Not true. Mozilla switched to Yahoo a few years back; Google doesn't give them any money. And it's not the default homepage, it
110.
▲
by
jlongster
10y ago
That big shift will have to happen first. I don't see them ever making their own registry unless 99.99% of people are using yarn and are having a lot of problems with the current npm registry. While I see a lot of people using yarn, I&
111.
▲
by
jlongster
10y ago
Huh, interesting! I thought this was going to just be a client. I wonder if it resolved to npm's servers or something.
112.
▲
by
jlongster
10y ago
That product is dead: https://www.resolversystems.com/
113.
▲
by
jlongster
10y ago
It doesn't even support hot reloading. No config means they can make assumptions about how things work which makes it really to share solutions for things like "optimize this for prod" or other use cases that are typically a
114.
▲
by
jlongster
10y ago
The compiler may not because it uses a few node APIs, but those could be easily ported. The compiled code should definitely run; it's vanilla ES5 JavaScript.
115.
▲
by
jlongster
10y ago
Nah, there is nothing from this that will benefit the Firefox devtools. It is an interesting space for me to play with ideas that would be a lot harder with native JS engines, but that's all. We are working on a new debugger interface,
116.
▲
Implementing a Stepping Debugger in JavaScript
(jlongster.com)
60 points
by
jlongster
10y ago
|
6 comments
117.
▲
What’s in a Continuation (exploring them in JavaScript)
(jlongster.com)
2 points
by
jlongster
10y ago
|
0 comments
118.
▲
by
jlongster
10y ago
I don't know anything about Elm subscriptions yet. But there is a lot more to this stuff then just event emitters. Things like: * When an event/action/etc comes through, does it always call listeners synchronously? Can you ch
119.
▲
by
jlongster
11y ago
My post says exactly this. Read the full thing. There are other cases where you do not have a reference to the promise. (think a function being called again at some indeterminate time)
120.
▲
by
jlongster
11y ago
If you are waiting for a "done" async action (which is usually the case if using this), you might want the action to inspect the value that it was resolved with. We use this in tests: https://github.com/mozilla
More ›