Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mbell
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
331.
▲
by
mbell
9y ago
> Spring is as micro as Java gets. Dropwizard was created as the minimalist counter point to Spring/EE.
332.
▲
by
mbell
9y ago
I'm wildly confused by your comment, Dropwizard is 'all inclusive' but Spring is a micro-framework? Flask is both?
333.
▲
by
mbell
9y ago
> If you need normalization, use the .normalize method you mentioned yourself. If it were so simple... `normalize` doesn't exist in IE at all and not in Safari < 10 so to take this advice we need a polyfill. As you may expect, po
334.
▲
by
mbell
9y ago
> have an additional .size method returning the number of bytes (I'm assuming that's what .length returns, if not it's even more confusing). It's actually not the number of bytes, it's the number of...'codep
335.
▲
by
mbell
9y ago
> The key thing to remember is that iteration over Unicode strings only makes sense as iteration over code points, not UCS-2 characters, not bytes, not grapheme clusters. There are tons of situations where interating over grapheme cluste
336.
▲
by
mbell
9y ago
> One of your "problems", the length of an array with a single string element, isn't a problem. You're misunderstand the code, it's using the spread operator on a string: [...'word'] => ["w"
337.
▲
by
mbell
9y ago
> I consider the fact that a stupid-simple package was depended-upon by so many mature libraries as an indication it should be a language feature. Unfortunately neither the npm module nor the browser version really do what most people wa
338.
▲
by
mbell
9y ago
There is value to constant volume, but I think a lot of the loudness war came from a time when there implementing a compressor on the user's side was expensive. It's trivially cheap now, basically every device you own that can pro
339.
▲
by
mbell
9y ago
I mis-interpreted your use of 'marginal', sorry about that.
340.
▲
by
mbell
9y ago
You're making a lot of assumptions that aren't terribly valid for most use cases. Not to say that strict consistency requirements don't exist, they certainly do, but they are the exception rather than the norm. A one person s
341.
▲
by
mbell
9y ago
> ah! you're assuming the work is performed inside the same transaction as the dequeue operation, and locks held for the duration ? Yes that is the model the linked post is proposing, see the Example. > While I suppose row level
342.
▲
by
mbell
9y ago
Kafka's primary use case is as an intermediary for a stream processing system. e.g. to ingest a firehouse of events, make them durable, then feed them to a number of different processors. More common use cases here: https://
343.
▲
by
mbell
9y ago
Why would you use Kafka as a queue? It's not a great fit, I mean, you could make it work, but it's a similar square peg in round hole design choice as using a relational DB as a queue.
344.
▲
by
mbell
9y ago
Depends on what you're adding. Running Redis is dead simple and easy to have visibility into. RabbitMQ / Kafka are much larger undertakings.
345.
▲
by
mbell
9y ago
> What happens if the application crashes immediately after removing the work item but before it can do anything else? Doesn't this break exactly-once semantics... ? If the connection is broken the transaction would be aborted and t
346.
▲
by
mbell
9y ago
What I'm getting at is how it handles type safety at the browser API boundary. e.g. how does it handle a situation like: `eventTgt.addEventListener('whatever', fn, true)` vs `eventTgt.addEventListener('whatever', fn
347.
▲
by
mbell
9y ago
How does Scala.js deal with inconsistent browser APIs and type safety? Does it just include all of core-js and hope for the best?
348.
▲
by
mbell
9y ago
The language doesn't need too much more. Don't get me wrong, it's still not a great language but within the confines of what it is and backward compatibility, it doesn't need much more. The 'standard library' a
349.
▲
by
mbell
9y ago
The 'cello' and 'laaa...' actually made me quickly remove my headphones. Having 'character' is not even close to how I would describe these.
350.
▲
by
mbell
9y ago
> You could easily db.products.update({_id: productId}, {$inc: {inStock: -5}, $addToSet: {pendingCarts: {cartId: cartId, quantity: 5, timestamp: new Date()}}}). That is unlikely to work well at much scale. At least last I knew, Mongo doc
351.
▲
by
mbell
9y ago
> It was a distributed system. So you can't have exactly once semantics. When you say 'bus' I assume you mean a message broker which at best gives you at least once semantics. What happens when the message is delivered mul
352.
▲
by
mbell
9y ago
Could you clarify why you think this? I don't see any connection between this API and the types of standards OASIS works on.
353.
▲
by
mbell
9y ago
That's largely due to 'failure bias'. You hear a lot more about failed rewrites than you do successful ones. I've been involved with a number of full rewrites over the years and all of them ended up greatly improving the
354.
▲
by
mbell
9y ago
It doesn't do plating for vias so it's less of a two layer board and more of two 1 layer boards sharing a piece of FR4.
355.
▲
by
mbell
9y ago
Last I knew (a few years ago) whole foods outsourced most of their logistics. They do have distribution centers but don't own the trucks nor related tech. In general this is a good thing, you don't want to run/own trucks unle
356.
▲
by
mbell
9y ago
The seal on a binaural head is likely a bit better than you'd get in real ears so inflates the numbers a bit. However, it's still expected to have better measured bass response from the IE phones despite this. But, the frequency r
357.
▲
by
mbell
9y ago
I used FreeNAS years ago, version 8 as I recall and it seemed solid but there seems to be a lot of negativity in the comments here. Could someone fill me in with what went so wrong with FreeNAS 10?
358.
▲
by
mbell
9y ago
I think a significant issue in software is the comparatively unconstrained input space. I would imagine the average natural gas power plant would have more than a few issues if you fed it pure hydrogen instead of whatever methane based mixt
359.
▲
by
mbell
9y ago
You're describing the EM field, not the electrons themselves. Actually the two are moving in opposite directions as well.
360.
▲
by
mbell
9y ago
> Individual electrons can move at high speeds (not c) My memory may be off but as I recall the fermi speed in copper is only around 0.5% of c, rather far off. What does propagate at speeds on the order of c is the EM field, which is wha
More ›