Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mark242
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
211.
▲
by
mark242
10y ago
var txt = await read(); // This code is blocked until read() completes. console.log(txt);
212.
▲
by
mark242
10y ago
Dear Javascript coders: If you wind up writing the word "await" in your codebase more than once, you're doing it wrong. You will quickly see how futures/promises wind up taking over all of your code. This is a very good
213.
▲
by
mark242
10y ago
Could you run the service off a few OVH dedicated boxes with 3Gbps? Sure, you could, but it's going to be painful, and at that point imgur is the better choice anyways.
214.
▲
by
mark242
10y ago
Equivalent pricing: Amazon Cloudfront: $59770 per month Google Cloud CDN: $50000 per month Fastly: $144200 per month etc etc. If they can't get together $12000 per month for Cloudflare, they sure as hell don't have a viable busine
215.
▲
by
mark242
10y ago
"As Vault is run within our internal network (and for other reasons), TLS is disabled. " No. No. No. No. No. No. This should NEVER be an option. You should not allow data to pass unencrypted over the wire, period.
216.
▲
by
mark242
10y ago
What a load of crap. Lightbend released Lagom for Java because... drumroll.. Lagom is meant to bridge the gap between microservices and legacy Java monoliths.
217.
▲
by
mark242
10y ago
Read up on Todd Marinovich before you ask that question.
218.
▲
by
mark242
10y ago
Then you need to be deploying HTTP/2 over TLS. You are doing a disservice to users with slow connections due to the cost of opening up multiple sockets. Multiplexing your data over an encrypted channel over HTTP/2 and TLS will b
219.
▲
by
mark242
10y ago
What you're seeing are apps that aren't optimized for mobile. Once you start moving application logic, network IO, and anything that doesn't involve the DOM off the main rendering thread via a cached ServiceWorker, mobile web
220.
▲
by
mark242
10y ago
Pardon me while I go off on a bit of a rant. I've played with Vesper and it is a fine app. It is also the perfect example of the power of the web. There isn't anything that Vesper is doing that can't be done on the web. You c
221.
▲
by
mark242
10y ago
"This would also let you charge spammers a lot" should be rewritten to "This would also let you charge unwitting victims of credit card theft a lot, and get a ton of chargebacks".
222.
▲
by
mark242
10y ago
Please don't continue to run this. What you are doing is effectively recreating the VRFY command that nearly every major mail hosting service has removed for privacy and abuse reasons. You are opening yourself up to a huge liability,
223.
▲
by
mark242
10y ago
Primarily merging the changes that Cloudant (now an IBM product) made to Couch to turn a fairly simple implementation of NoSQL / MapReduce into a first-class datastore. Things like: * Native Lucene search, which you had to build as a w
224.
▲
by
mark242
10y ago
That's the other option; sending both session cookies at the same time and having the server do the work. Google's solution pushes that "if (short_session != valid)" logic to the client vs having it run on the server.
225.
▲
by
mark242
10y ago
Yes; and CPU is cheap as hell. Round trips to a cache are expensive .
226.
▲
by
mark242
10y ago
"The session has to be fetched from cache/hot memory on every request, right?" Nope. Let's say you have a rest endpoint that accepts a Pokemon id to add to your collection. If you cryptographically sign a cookie that say
227.
▲
by
mark242
10y ago
You don't need to verify the session on the server all the time. Session verification very quickly becomes a bottleneck to app performance, since you're doing a separate database/cache lookup for each rest endpoint request. I
228.
▲
by
mark242
10y ago
Yeah; $10 says there's a preference coming "Only show notifications from verified accounts" or "Only allow verified accounts to follow" etc etc.
229.
▲
by
mark242
10y ago
This is where I think Scala really, really shines, regardless of whether you're using Akka or not. Once you've gotten into that mode of using futures, turning your code from blocking to nonblocking is as simple as never writing th
230.
▲
by
mark242
10y ago
Yes, this. If you are working with any sort of confidential data, be it personal information, or payment info, or whatever, a determined attacker with access to executing Javascript on your page is going to cause a world of problems, the
231.
▲
by
mark242
10y ago
Okay, the better question then would be, how does this compare with writing a processor on top of Akka streams?
232.
▲
by
mark242
10y ago
How does Heron compare to Spark streaming?
233.
▲
by
mark242
10y ago
<div class="text-italic"></div> Come on. <em>This is my italic text.</em>
234.
▲
by
mark242
10y ago
A void function that does nothing but throw exceptions. Scala engineers everywhere cringe at the thought of converting this kind of code to native Scala.
235.
▲
by
mark242
10y ago
Absolutely yes. Connections are very very cheap to maintain, and very very expensive to build up and break down. Even in environments with load balancers, stateful firewalls, etc., it is much easier to keep a socket open than it is to creat
236.
▲
by
mark242
11y ago
"The test suite needs to be fast. It needs to have decent coverage, but doesn't necessarily have to be perfect." Holy hell, what a telling statement that is. I get not unit testing for 1 == 1, but come on, unit and integratio
237.
▲
by
mark242
11y ago
Don't run production code on a nano. Don't run production code on a nano. Don't run production code on a nano. I don't care what language you're using, if you find yourself saying "well, I could run on a nano&q
238.
▲
by
mark242
11y ago
"Heaps in the 1-2 GB range are not uncommon." Is this really still a complaint in 2016? Your phone has that much RAM. Honestly if you're worried about Java heap size, spin up a t2.medium instead of a t2.small for your build p
239.
▲
by
mark242
11y ago
IBM's Watson service, provided via Bluemix, does this: https://www.ibm.com/smarterplanet/us/en/ibmwatson/developerc...
240.
▲
by
mark242
11y ago
My obligatory show HN link: https://octave.is is the Vimeo to Soundcloud's Youtube. No crap comments, no ads, no garbage on your artist page.
More ›