Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jjnoakes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
271.
▲
by
jjnoakes
4y ago
Right, yes, go does have some nice ways of handling this problem. I was speaking more generally about using that much stack space vs heap space for threads in general - but I should have realized that this specific thread was more about go,
272.
▲
by
jjnoakes
4y ago
If you need the stack space then there is no difference. The difference arises because if you preallocate all that stack space using worst case stack sizes and don't use most of it, you've wasted lots of memory. Also there is a to
273.
▲
by
jjnoakes
4y ago
On the contrary, I find the speedup due to rust to be quite large and the productivity to be quite acceptable. Refactoring for me is so much easier when I can rely on the compiler to catch so much.
274.
▲
by
jjnoakes
4y ago
I would say most systems are either slower or less correct, yes. The nice thing about being a developer is that these costs are mostly hidden from us. The business pays for more compute if you churn out slow code, and churning out bugs just
275.
▲
by
jjnoakes
4y ago
How is go a counterexample to the rust library situation?
276.
▲
by
jjnoakes
4y ago
Very little except statically removing an entire class of bugs that plague other languages in the same design space you mean.
277.
▲
by
jjnoakes
4y ago
This is not good advice. The fact that it worked for you is an absolute fluke, and it is not sensible nor rational to gamble like that, especially if you need money badly.
278.
▲
by
jjnoakes
4y ago
Did you reply to the right comment?
279.
▲
by
jjnoakes
4y ago
If the compare function is inlined into the qsort() body, there wouldn't need to be any function call. I think that was the point of the question above.
280.
▲
by
jjnoakes
4y ago
Why is this limited to the preprocessor? I imagine the compiler proper could inline the compare function parameter into the qsort implementation body in the typical case, at the qsort() call site. (Assuming qsort's implementation was i
281.
▲
by
jjnoakes
4y ago
In that case you just back up the database first and the WAL second.
282.
▲
by
jjnoakes
4y ago
Doesn't sound like that protects against power failure. Most databases I use keep a write-ahead log, which guards against power failure without requiring an external service. Multiple writes are handled without an issue. If power is lo
283.
▲
by
jjnoakes
4y ago
Would you mind elaborating? I'm not a Windows expert so I don't know off the top of my head what VSS provides that helps poorly written applications survive sudden power failure more robustly than without VSS in the picture, and h
284.
▲
by
jjnoakes
4y ago
There is a right way to do this using RAII, and it works for files and for any other resource that might fail on close: you simply explicitly do the close yourself, but only along the success/happy path. That way you get the best of bo
285.
▲
by
jjnoakes
4y ago
The example above has an operation that might fail between the Open and the return. Leaving that out of course makes the example useless, but if you keep that part in, you can't use go's simple defer pattern to help you close the
286.
▲
by
jjnoakes
4y ago
Not usually. A well-written application that cares about your data should be written in a way to survive sudden power loss, and to such an application, a file-system-level snapshot taken at an arbitrary point in time looks basically the sam
287.
▲
by
jjnoakes
4y ago
I tried GitJournal but I got a bit scared by this: https://github.com/GitJournal/GitJournal/issues/241
288.
▲
by
jjnoakes
4y ago
Man, I've looked at Standard Notes and want to love it and switch everything over to it. This is the only thing holding me back is the lack of background sync on mobile: https://github.com/standardnotes/mobile/
289.
▲
by
jjnoakes
4y ago
I don't think one is morally superior to the other, but there are trade-offs. With bash, cron, rsync, and a vps, one is using stable, long-lived tools that usually come with Linux, are vetted and patched automatically, and are familiar
290.
▲
by
jjnoakes
4y ago
Just curious - why does your template include web3.js? Do you end up using that on tons of quick simple sites, and if so, what for?
291.
▲
by
jjnoakes
4y ago
I'm not judging my own code. I'm basing my statements off of the results-oriented perspective of the businesses I've helped. And based on their positions in the market, both at the time my team implemented the projects I'
292.
▲
by
jjnoakes
4y ago
That's just it though - I wouldn't call anything we've built a "framework" at all. All of the projects were much simpler at their core than most frameworks I've ever dealt with. Of course, "framework"
293.
▲
by
jjnoakes
4y ago
Not op but I have to disagree with this sweeping assessment. I think there is room for both approaches. I for one believe that the best solutions I've produced over the years were things that side-stepped the popular or established fra
294.
▲
by
jjnoakes
5y ago
I think the idea was that the people who would consider scanning recently might assume that someone scanned previously, based on the popularity of the site, and decide against it based on that. Though I'd think you'd be able to ve
295.
▲
by
jjnoakes
5y ago
This is only partly true, but misses the point. Consider that 'save()' might do multiple steps under the covers (network, database, localstorage, whatever). Allowing those steps to run interleaved, if necessary (with Promise.all),
296.
▲
by
jjnoakes
5y ago
Just some random feedback - I like the look and feel, but if I type quick enough, the order of my keystrokes doesn't match the order of operations. For example, if I focus an empty text field to start entering list items, and I type th
297.
▲
by
jjnoakes
5y ago
I knew this about the programming languages which wrap execution in a shell, but I never knew that execlp/execvp/execvpe handled ENOEXEC internally and wrapped the command in a shell too. TIL!
298.
▲
by
jjnoakes
5y ago
IANAL but I would have thought that referencing material for prior art would have fallen under fair use.
299.
▲
by
jjnoakes
5y ago
One time export and import is quite easy to do...
300.
▲
by
jjnoakes
5y ago
Some more of my favorites along the same vein include Snakebird, Jelly no Puzzle, and ilomilo.
More ›