Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,498 submissions

Founder of revscope.co

Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.

And embersofvictory.com

Retro turn-based strategy game.

Submissions

comment 9y ago · link · parent

Amplify sure lives up to its name...

comment 9y ago · link · parent

I don't think anyone is arguing for no restrictions on schedule one drugs. Just clearly criminalizing possession/use is not working and it's time to try a new strategy. Distribution/selling should still be illegal and controlled by the government. I'd like to see a system where heroin addicts can get a prescription/license that allows them to purchase directly in a supervised injection center. I'd also like there to be plenty of resources and information available from the same place for those looking to leave that life behind.

But I'm not an expert, and probably the people who are could come up with a better solution.

comment 9y ago · link · parent

Legalize heroin and then nobody will peddle fentanyl. Crises solved, see Portugal for an example in the real world. Making drugs illegal only really benefits drug dealers by putting the competition in jail and raising prices. Education and laws seem to fare so much better. See alcohol now and compare that to prohibition days rife with organized crime. It's political suicide to legalize street drugs in most countries - so it's a hard sell, but it's the option that makes the most sense.

comment 9y ago · link · parent

Whether they have an $8B market or not will very much depend on the performance and price. I really hope they can make it work though. The first generations of a new technology are typically not much to get excited about, but as it gets better over time this could be the first major shakeup to the memory/storage hierarchy since the SSD - with potentially bigger ramifications because it's byte-addressable.

comment 9y ago · link · parent

I ended up in a situation like that too, except the update auto-downloaded taking up most of my free space, but not leaving enough to install it. I didn't figure out how to reclaim the space so I spent months stuck without being able to install apps or updates before I gave in and bought a higher end phone.

comment 9y ago · link · parent

Lambda has a 5 minute execution limit. It's not that great for background tasks unless you can divide them up to keep them comfortably under that limit. It shouldn't be that hard, but it's not effortless either.

comment 9y ago · link · parent

I find this result surprising. Caffeine restricts blood vessels, so you'd expect blood pressure to go up the more you consume, and likewise you'd expect long-term elevated blood-pressure to increase your risk of cardiovascular disease.

Likewise in a correlational study, you'd expect people who drink more coffee to have more hectic lives and get less sleep, which surely shouldn't reduce your risk of cardiovascular disease.

I'm at a loss for a possible mechanism behind this result. Protective effect of antioxidants in coffee? Hard to believe.

Nonetheless it seems a great excuse to reach for that second cup when I start flagging in the early afternoon.

comment 9y ago · link · parent

Exactly, given how ScyllaDB and Cassandra and now Yuga are all meant to be drop-in compatible (in theory anyway.)

Having seen the benchmarks for ScyllaDB vs Cassandra I think the crown easily goes to Scylla. That shouldn't be big surprise, they do have some amazing engineers on that team, including some of the creators of KVM. They wrote their own TCP/IP stack for Scylla and can run in kernel-bypass mode.

They also do some fascinating things like batching similar internal operations to get better instruction cache performance. I wouldn't have though I-cache would ever be a bottleneck for a database. It speaks to how highly-tuned Scylla is, where the other performance bottlenecks have been dealt with to such a degree that the I-cache behavior became a performance problem worthy of tackling.

comment 9y ago · link · parent

Not enough time for a computer to react, but enough time for people to think it could have? I seriously doubt that. Yeah, the average human driver might have also just frozen, or only honked, but the computer has excellent situational awareness (it had better if it's driving on public roads) so it knows if it can backup suddenly safely. A human would have to look over their shoulder. It should also honk the horn, I mean that's just low-hanging fruit to implement. Clearly they detected the truck and stopped, what's wrong with stop() && honk().

comment 9y ago · link · parent

Except the driver-less shuttle didn't take any evasive action, the way a human would have. Did it even honk the horn?

Clearly this company's tech isn't up to par.

comment 9y ago · link · parent

Variables like that don't even have to have unique addresses. They may live only in registers, or if their usage doesn't overlap they can be given the same stack address!

comment 9y ago · link · parent

Brendan is probably referring to these prior comments of his:

https://news.ycombinator.com/item?id=11573375 https://news.ycombinator.com/item?id=11502221

comment 9y ago · link · parent

Thank you for such a thoughtful and detailed response. I'd like to apologize for contributing to the spread of rumors around FDB's acquisition, as you guys could never tell the real story, rumors are all we had.

Regarding FDB's architecture, I'm going to agree with you wholeheartedly that the world is built on layers of abstractions. It's how we make any progress at anything. It's useful, and it can save time that can be focused on more important or beneficial areas. I would hope nobody in CS would disagree with your premise there.

However, there's a reason nobody writes a high performing database in Python. Or just uses the filesystem as a KV store. Abstractions are obviously useful, but it's equally trite to say they're always beneficial.

So the question with FDB: Ddoes basing everything on a generic KV abstraction yield enough benefits to make up for the losses in performance? I'm not qualified to say. Clearly the developers of FDB think so, and they'd be the ones most likely to know.

My opinion, as a database developer with many years experience is that any performance losses from building over a generic KV-store are probably solvable or mostly solvable. They also likely pale into insignificance next to the performance losses from trying to run a relational database over a distributed cluster. I'd question the sanity of doing that when the vast majority of people can fit their entire OLTP dataset in memory on a single server. I know I'm in the minority with that opinion though.

comment 9y ago · link · parent

I'm happy to hear that I'm wrong. It obviously looked a lot like an aqui-hire from the outside, and that was the speculation on HN at the time. I hope the FoundationDB team ended up doing great things at Apple.

comment 9y ago · link · parent

Thank you, it was FoundationDB I was thinking of, post-mortem analysis from the VoltDB guys here[1]. I'll contend they failed though because Apple bought them as an acqui-hire and killed the product. They were acquiring good engineers with a track record of executing well at a premium. It's a common recruiting strategy for tech companies. It doesn't mean that FoundationDB was a successful product - certainly it means it was not successful enough for the founders to risk turning down a lucrative acqui-hire deal.

> his is a rigid and narrow view. There's lots of other design possibilities such as fractured mirrors, column decommission only within pages, etc.

Yes definitely I over-simplified to make my point, but I'll stand by it. OLAP and OLTP are different enough workloads and the engineering tradeoffs for being good at one of the other make it hard to excel at both. VoltDB is a row store, best suited for OLTP. Vertica is a column store best suited for OLAP. VoltDB can also make a decent OLAP database. Vertica does not make a good OLTP database. Both databases come out of Michael Stonebraker's work (although given the number of people required to make complex products like VoltDB and Vertica happen, it seems unfair to credit him unduly.)

But especially in the case of a sharded, distributed database where communication overhead is likely to dominate many types of queries (VoltDB, TiDB), one might not notice the inefficiency of using a poorly-suited design, like a row store for OLAP. This can make the differences less striking. This might also hide the inefficiency of basing everything on a generic KV store in TiDB.

[1]https://www.voltdb.com/blog/2015/04/01/foundationdbs-lesson-...

comment 9y ago · link · parent

From their blog: "TiKV is a distributed key-value database. It is the core component of the TiDB project and is the open source implementation of Google Spanner." I think the Cockroach DB guys would take offence at that.

So how do they use a Spanner-like design without specialized hardware? I had to really dig but the answer is "We are using the Timestamp Allocator introduced in Percolator, a paper published by Google in 2006. The pros of using the Timestamp Allocator are its easy implementation and no dependency on any hardware. The disadvantage lies in that if there are multiple datacenters, especially if these DCs are geologically distributed, the latency is really high."

Using Spanner's design but without the real hardware that makes it practical seems like a step backward. A Calvin[1] based approach like FaunaDB would probably have been better - but they can't do that and still have MySQL compatibility (you can't do interactive client-server transactions with Calvin.)

I'm skeptical of a database built over a generic KV-store. There was a much-hyped database a few years ago that failed to live up to the hype because of exactly that architecture. I can't even remember the name now when I was trying to find the post-mortem analysis for it in Google.

I'm also skeptical of a database claiming to be good at both OLAP and OLTP. One requires a column store, the other a row store. You can be half-decent as an OLAP store and good as a OLTP store. There are no column-stores that are also good at OLTP. But OLAP is the real big-data problems of today, and using half-decent for that is likely to get you in trouble. There's no reason a database can't do both by using two separate storage engines under the hood, but that doesn't seem to be the case here.

[1] https://fauna.com/blog/distributed-consistency-at-scale-span...

4787.

Stack Overflow Salary Calculator – Compare Your Salary(stackoverflow.com ↗)

1 points · by eloff · 9y ago · discuss

4788.

Scientists narrow down the mechanism whereby cancer cells metabolise sugar(sciencealert.com ↗)

105 points · by slashdev · 9y ago · 39 comments

comment 9y ago · link · parent

You're both right and wrong at the same time. The disconnect is the based on the kind of data we're talking about.

Human-generated metadata (i.e. OLTP data) grows roughly with respect to the population of internet connected humans - humans only can produce so much content in their finite time. Advances in computers far exceed this growth rate, so more of these kinds of problems fit into RAM each year.

The volume of media data, which depends more on the increasing fidelity of the media (videos going from 320K to 4K, photos going from 1MP to 30MP) have been increasing rapidly but that trend won't continue forever because there are diminishing returns. Do you care about the difference between 4K and 8K video? TV companies hope you do. At some point (likely soon) you will stop caring.

OLAP data, which includes data produced by IoT devices, sensors, etc is increasing geometrically. But this kind of data is not best stored in RAM anyway, and is served best by scale-out column-oriented and time-series databases.

comment 9y ago · link · parent

My experience has been the exact opposite. UPS/Fedex will usually try the buzzer. Purolator is completely hopeless - and it sucks doubly because their office is so far away. I would gladly pay extra to avoid them. Amazon's guys are the best, they not only use the buzzer but they insist on bringing the package up to the door (the other's usually make me go down to the lobby to get it.) Amazon an Walmart are often very close on price for a particular order, and I'll pick Amazon every time for the better delivery service and customer service.

comment 9y ago · link · parent

That it doesn't have reified generics like C# does not make it a dynamic language. Go doesn't have generics at all, but it's still a static language.

comment 9y ago · link · parent

Java is a static language. While there are dynamic languages on the JVM like Jython, JRuby, Groovy, they don't get anywhere near the performance of the static languages.

comment 9y ago · link · parent

In special cases. It's not nearly as reliable. There are a lot of ways to get poor performance out of such JIT compilers, and writing performant code for them is a bit of a black art that varies from version to version. Just read a little about the "fun" people have had with V8 over the years.

comment 9y ago · link · parent

No. Not at all. It has more to do with implementations.

Python is strongly typed, but dynamic. But slow. JavaScript and PHP are weakly typed and dynamic as they will coerce types in strange ways during operations and comparisons.

Lua is dynamically and strongly typed like Python, but LuaJIT can sometimes produce code on par with or even slightly faster than native code - because it's really JIT compiling the hot path to native code with some guards and offramps to interpreted code for special/unexpected cases.

But there are limits to those techniques and it's doubtful that dynamic languages will ever perform at the same level as static languages because the compiler simply has more information and doesn't have to be as pessimistic or insert as many runtime guards.

comment 9y ago · link · parent

Seriously with the downvotes? Dynamic languages are obviously slower than static languages in general. Some special cases aside.

Performance is a concern for some projects - you wouldn't write an OS, database kernel, or mainstream game engine in a dynamic language.

How is that not a valid concern in the dynamic vs static typing argument? The parent comment has a legitimate point.

comment 9y ago · link · parent

Incredulous that people would downvote this.

comment 9y ago · link · parent

It would seem to me that the Amazon is worth much more than that left intact. Australia's Great Barrier Reef contributes 6.5 billion to the local economy each year through tourism and fishing. The Amazon could potentially be worth much more in tourism value. Not to mention untapped value as a source for undiscovered pharmaceuticals. It also generates 75% of it's own rain - which is critical to the agriculture in the region as well as all these hydroelectric projects.

If greed ends up winning and most of the forest is destroyed, Brazil will find itself without a national treasure, and likely be economically worse off for it.

comment 9y ago · link · parent

I would say at 117 edge locations vs 93 Cloudflare will have lower latency, but most notable in markets that most companies care least about. Probably of more importance is by using embedded V8 as opposed to a process-level sandbox running Node.JS, the Cloudflare service worker will have a much faster startup time in all locations. I seem to recall from tests in Lambda that we're looking at 40-50ms, which is actually substantial given how close these locations often are to the user. But the biggest edge in my books is CloudFront bandwidth is ridiculously expensive and Cloudflare doesn't charge (directly) for bandwidth. Bandwidth often being the single biggest line item in your AWS bill if you get a lot of traffic.

comment 9y ago · link · parent

I would very much like to see a pay-as-you-go cloud pricing model that allows you to pay to go over these limits (within reason.) For the use case I'm envisaging, filtering largish buffers of Cap'N Proto data (I'm tickled that both of these things are your babies!) I can use streaming fetch API to stay within the memory limit, but the 50ms limit would really be a hard wall that would cause requests to fail on larger amounts of data. I'd be happy to pay in those cases for extra execution time.

comment 9y ago · link · parent

Great news! This follows on the heels of the relicensing of React, Jest, Flow, and Immutable.js. All MIT licensed now. Thank you, Facebook for taking the high road here and putting developers first.
1
159160161
184