Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
burke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
271.
▲
by
burke
9y ago
Oh, huh, yeah, that makes sense. That would totally work. Cool idea.
272.
▲
by
burke
9y ago
Old habits die hard :)
273.
▲
by
burke
9y ago
Tobi knows DHH; apparently we started building with rails before its public release. Don't quote me on that, but I've heard it in passing a few times.
274.
▲
by
burke
9y ago
Yep. But even then though, what if: class A B = "c".freeze end And elsewhere: class String def freeze raise "because I can, that's why" end # or even method_added,
275.
▲
by
burke
9y ago
We've talked about trying to implement this strategy (load everything, dump/restore the heap) with MRI, but our thought experiment was on the scale of a fully-booted application. In that context, it gets difficult to determine how
276.
▲
by
burke
9y ago
No. I'm not opposed to it, but we don't use it at Shopify and I doubt the RubyVM::InstructionSequence API is compatible. Bootscale should work, and the load-path-caching feature of bootsnap should work too, if you can get the gem
277.
▲
by
burke
9y ago
Sadly, the 2.3 requirement is inherent, since the RubyVM::InstructionSequence dump/load API was introduced in 2.3.0. However, you could probably still benefit from http://github.com/byroot/bootscale .
278.
▲
by
burke
9y ago
Heh. I write an internal developer tool at Shopify that is (somewhat) conceptually similar to vagrant. ( https://twitter.com/burkelibbey/status/858013844626649092 ) Like you, we distribute it as a git repo. We don&#
279.
▲
by
burke
9y ago
The largest culprit for slow ruby boot times is an O(n) number of syscalls over the LOAD_PATH each time `require` is called, so the number of syscalls is essentially O(n*2) to the number of gems. The load-path-caching feature of bootsnap (c
280.
▲
by
burke
9y ago
FWIW, the machine that generated all of those times: * MacOS Sierra * 2.6 GHz Intel Core i7 * 16GB 2133 MHz LPDDR3 * 500GB SSD, whatever Apple ships.
281.
▲
by
burke
9y ago
I've tossed around the idea of writing zeus again now that I actually understand the language I wrote it in. Spring is much simpler, but because of the manner in which it's loaded, it isn't capable of detecting certain types
282.
▲
by
burke
9y ago
Nope, we've been Rails since before Rails was even public. I'm sure we've hired a PHP developer here and there over the years, but our core platform has always been Ruby.
283.
▲
by
burke
9y ago
Honestly, it works well for us. DHH may have been a little rosier than necessary: there are some downsides, to be sure, but we can mitigate them to a large extent (e.g.: TFA), and we get a lot of benefit out of the architecture. It is defin
284.
▲
by
burke
9y ago
The particularly frustrating thing, when I've started thinking about optimizing boot time at a VM level, is that it's near-impossible to "understand" what loading a file actually does, since it's all just evaluated
285.
▲
by
burke
9y ago
> How does the fit in with zeus and/or spring? Two orthogonal optimizations: It definitely plays nice with spring, speeding up the pre-fork rather a lot, and the post-fork a little bit. I can't think of any reason it wouldn
286.
▲
by
burke
9y ago
I'm the primary author, can answer questions if you have any.
287.
▲
by
burke
9y ago
Additionally, "mindfulness-integrated CBT" is a thing.
288.
▲
by
burke
9y ago
I'm sad that Beats was the one headphone brand that Apple ended up purchasing when they wanted to expand that space. B&O felt like a natural synergy for them too. I would love to be able to buy better-sounding AirPods under an Ap
289.
▲
by
burke
9y ago
The thrust of Sagan's monologue was to encourage re-evaluation of religiously-motivated anthropocentrism. To me, at least, it's less of "how could anything here matter when Saturn is so big?" and more of "does it re
290.
▲
by
burke
9y ago
* A CO2 level of 7kppm is not compatible with human flourishing. * Consensus is that the elevated CO2 levels of the Ordovician-Silurian and Jurassic-Cretaceous periods came on over tens or hundreds of thousands of years, not mere tens or hu
291.
▲
by
burke
9y ago
While this is certainly true, it's unfortunate that we can't even have a productive conversation about this issue because we're apparently still stuck on disagreement over scientific consensus.
292.
▲
by
burke
10y ago
While I understand the argument for simplicity and agree with the premise in most cases, I find it pretty hard to argue for this code: ys := []byte{} for _, x in xs { ys = append(ys, f(x)) } over something like th
293.
▲
by
burke
10y ago
Rarely if ever and yes, respectively.
294.
▲
by
burke
10y ago
> SiH4 (silane) is an unstable, pyrophoric (spontaneously ignites in air) I'm no chemist, and I buy the line of reasoning that Carbon is by far the most likely substrate for life, but this statement seems to assume an oxygen-rich at
295.
▲
by
burke
10y ago
A charitable interpretation would be to project the right/wrong axis onto compatibility with our continued flourishing. If you accept human flourishing as "right", the arctic climate is quite wrong. It's a bit of a reach
296.
▲
by
burke
10y ago
Based on his twitter it looks like it was just an interesting thing to learn over the holidays or as a 2017 thing.
297.
▲
by
burke
10y ago
I think a better analogy here would be fraud.
298.
▲
by
burke
10y ago
Noticing a username is green isn't exactly "doxxing".
299.
▲
by
burke
10y ago
Indeed, and it's curious that a lot of the more would-be-impactful things have come later in his term when he faces stronger opposition. I don't have any explanation for this.
300.
▲
by
burke
10y ago
Yeah, well the problem is that while Trump campaigned on change, the actual changes he plans to implement will just centralize wealth at the top even more . America had a chance with Bernie, but due to some combination of media attention,
More ›