Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bkanber
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
391.
▲
by
bkanber
10y ago
Probably not. They're looking for companies with upside potential in the billions of dollars and game development doesn't really do that. Unless you're aiming to build the next Unity or game dev/hosting platform, it'
392.
▲
by
bkanber
10y ago
Shame on HN for downvoting you. This was a reasonable and thoughtful comment. What you're missing is the skepticism that is so rampant in the media and especially on HN these days. It is certainly possible that they're merging to
393.
▲
by
bkanber
10y ago
Yes, it is, by a decent margin at that. ICEs have a peak efficiency of only about 30%, and average 15-20%. And that's just in the engine. Powertrain losses for ICE vehicles are a handful of percentage points higher than for EVs as well
394.
▲
by
bkanber
10y ago
In every country except India, the well-to-wheel CO2 emissions for EVs beat gas ICEs. The problem is coal only, natural gas is pretty good. Even China now has enough non-coal energy sources to make EVs worth it. Source: I was a hybrid vehic
395.
▲
by
bkanber
10y ago
It's definitely off-putting. And I'm totally fine with curl | bash. Composer (PHP package manager) does that and I've used it hundreds of times (production is containerized, but I do this on my personal machines too). BUT. Th
396.
▲
by
bkanber
10y ago
> It shouldn't be legal to tell someone who owns a home that they cannot rent it out. I mean, a majority of our forebears thought it should. The original law was passed by a representative democracy. And so was this one. You're
397.
▲
by
bkanber
10y ago
Node is stateful and not threaded, but yes you're right that it serves http out of the box. Http was a module in the early days but I see now it's core API and has been for a while. My mistake.
398.
▲
by
bkanber
10y ago
That wasn't my point. PHP is great at HTTP because it doesn't have to do HTTP, and with php-fpm and mod_php it has first class support with Apache and Nginx. Node isn't very good at HTTP, Python doesn't have first class
399.
▲
by
bkanber
10y ago
I would argue that PHP is more stateless than Node, for instance. Things that happen in previous requests do not affect following requests in PHP, unless you're explicitly using shared state. That's not the case in node, it isn&#x
400.
▲
by
bkanber
10y ago
Sure, but most of the OSS for Python and Ruby is frameworks and libraries too... If you want an application check out phabricator, though I'm not a fan of their DB schema design.
401.
▲
by
bkanber
10y ago
There are memoization libraries for PHP but really it's just another cache implementation. Put it in RAM, put it on disk, put it in memcached or redis, I don't really see too much a difference between $cache->set($key, $value)
402.
▲
by
bkanber
10y ago
Session cookies were basically invented for transient statefulness over HTTP.
403.
▲
by
bkanber
10y ago
> Code paths, auto-loaders, database connections, config files, etc. All that has to happen over and over for each request. So? If it takes < 1ms, what's the harm? And opcode cache comes out of the box and most PHP DB drivers can
404.
▲
by
bkanber
10y ago
You should add substance to your comment. If you disagree, say why.
405.
▲
by
bkanber
10y ago
Who does it better?
406.
▲
by
bkanber
10y ago
Symfony, Aura, Laravel, Guzzle, Composer, Zend Framework, Lithium, SwiftMailer
407.
▲
by
bkanber
10y ago
PHP is perhaps one of the easiest technologies to scale horizontally, because of its statelessness.
408.
▲
by
bkanber
10y ago
> very wasteful Define "very". Because for me it's more like "a few hundred microseconds per request".
409.
▲
by
bkanber
10y ago
It does, but it comes with deep tie-in to AWS as well. But also, you don't typically use lambda to serve pages or a full application, more commonly it's used for specific processing tasks, individual endpoints, and generally code
410.
▲
by
bkanber
10y ago
PHP is great for HTTP requests. It's not that good for listening on sockets, running an event loop, etc, which is what you're likely going to do with real time messaging.
411.
▲
by
bkanber
10y ago
FWIW PhpStorm handles property type hints via docblock annotations and it works quite well, I've found myself not truly caring if the language enforces it as long as my IDE does.
412.
▲
by
bkanber
10y ago
> Except for, you know, when you don't want to reinitialize everything everytime someone makes a new request. There are tons of things that you only need to run once. I mean, you're not reinitializing it, and it's not ex
413.
▲
by
bkanber
10y ago
And yet it turns out that those 2-3 orders of magnitude don't really matter for the vast majority of products you could develop. Your DB queries no matter the language are several orders of magnitude slower than the interpreting time.
414.
▲
by
bkanber
10y ago
This will be interesting. I'm sure they are, but I hope they'll be training the system on tone and sentiment alongside syntax. Reddit can get vitriolic and rude, insightful at times too, but once the system learns the syntax hopef
415.
▲
by
bkanber
10y ago
He literally said he'd be following up with lessons learned. Now is the time for pats on the back. Communities are supposed to be supportive, too. Pity this thread is the only time I've seen that on HN as of late!
416.
▲
by
bkanber
10y ago
That's my point. When you have so much money to invest you (are forced to) capture a more representative slice of the market and regress closer to the mean.
417.
▲
by
bkanber
10y ago
The Norwegian 10Y treasury bond has a coupon rate of 1.3% (lower than the US T-Note! suffice to say, very cheap). The wealth fund has been growing around 8% per year. Borrow money at a rate of 1.3%, reinvest it and make 8%. It's one of
418.
▲
by
bkanber
10y ago
Warren Buffett, Carl Icahn, Michael Steinhardt, and arguably George Soros. And those are just the popular ones that I know of, as a passive investor.
419.
▲
by
bkanber
10y ago
So? Dell's market cap at IPO was $80M. You can't just pick one good company to invest in. What would these funds do with the other, oh, $10Bn they need to invest?
420.
▲
by
bkanber
10y ago
At our company the overhead is about 40% of the salary, and could easily reach 80-100% with bigger and better benefits packages.
More ›