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 6y ago · link · parent

That would violate rule number one of being a bully, never pick on someone who can fight back.

You have to look for that struggling single mother, she doesn't have the time, energy, or resources to protest if you steal from her.

comment 6y ago · link · parent

Well I hope you didn't think I was implying that black people are inherently more prone to being criminals from birth. Of course it's dominated by poverty and a lack of good options for young black men especially. The US is actually the developed country where the American dream is most dream-like. Social mobility in the US is behind almost all the other developed nations. This is a real societal problem that needs to be addressed. But all the solutions are "socialist" and deeply unpopular in the US.

However, that there's a good reason for it doesn't change the statistics. Police violence against black people seems to be a non issue by the numbers. Police violence in general is an issue, making it racial is counterproductive. The protest would be better focused on things that are real, like poverty, or poor social mobility. And instead of people just aimlessly letting off steam, it should have leadership and clear goals that can actually be implemented - then maybe there's a chance they could get congress to listen to them. Right now they're accomplishing nothing and this whole movement will fade away without any real change just like the Occupy Wall Street movement.

comment 6y ago · link · parent

Honestly the whole movement is leaderless, aimless, and senseless.

Right off the bat making it a race issue is divisive and misleading - when the statistics show people of color are no more likely than anyone else to be a victim of police violence, when considering the number of police interactions. Blacks and latinos commit more crimes. That's the uncomfortable truth.

Then they have no serious or well thought out plan to improve things - so what do they hope to gain from protesting? Abolish the police is pure nonsense. Awareness of the issue is the best they can hope for.

comment 6y ago · link · parent

That's clearly one area for improvement.

comment 6y ago · link · parent

You can't generalize from one incident to a large group. There are bad apples in every large group.

If you can demonstrate an unusual percentage of bad behavior, compared to other developed nations, that'd be more interesting. Either way we could talk about potential ways to improve the situation.

comment 6y ago · link · parent

It's a bit more complex, as usual. But it looks like evidence for the Clathrate gun hypothesis is lacking: https://en.wikipedia.org/wiki/Clathrate_gun_hypothesis

comment 6y ago · link · parent

Basically nothing. It seems like a lot of methane, but on a global scale it's a drop in the bucket.

However, it's a sign of melting permafrost on a wide scale that is releasing methane, and that does have an impact which will get more pronounced.

Because methane is more potent a greenhouse gas than CO2, there's a risk of a runaway feedback cycle melting more permafrost and releasing more greenhouse gases. And that's not thinking about the colossal amounts of frozen methane on the sea floor which is quite sensitive to temperature changes. We're playing with fire here, sorta literally.

3368.

Why is the media suppressing information on Hydroxychloroquine’s effectiveness?(usagag.com ↗)

1 points · by slashdev · 6y ago · 3 comments

comment 6y ago · link · parent

Reminds me of a high-speed trading empire I built once in EVE Online. I got bored of the long work way of earning ISK, so I hacked the game client and built a network of accounts running in VMs, proxying their traffic through AWS to get unique IPs, all orchestrated carefully and cooperating to pull off the overall trading strategy by my central server. (hard work)

It got to the point where I had $200 billion ISK and my fortune was doubling every week. At black market conversion rates that was probably worth $20K a month if you could sell it all somehow.

However, at this point I was probably about 10% of the trading volume in all of Jita, so the game mods noticed me and banned me.

They didn't get all my accounts, just the main one, proving that my techniques for laundering game currency and using isolated VMs with their own IP was enough to prevent them from being connected.

However, at this point I didn't have the patience to do that all again, I went and got a job instead. (back to the long work)

comment 6y ago · link · parent

I think GC is not harmful than helpful in drivers and things like an OS. gVisor in particular jumps through hoops for performance and still has poor performance. It could be more successful in C++ or Rust probably.

I like Go a lot, but if you needed the performance or manual control it is not the tool for the job. On the other hand most problems don't fit that description and Go is one of the best choices for them.

comment 6y ago · link · parent

The overhead here in terms of space per element and amount of work while holding a mutex seems like it would only work well for some kinds of workloads. Particularly the design doesn't lend itself well to lock free algorithms or other techniques for reducing contention.

Knowing how some real life high performance LFU caches work, I think this is optimizing the wrong thing. Look at the design of caffeine and ristretto[1] for some discussion of the tradeoffs with actual measurements. I believe both are based on TinyLFU with modifications.

I don't know any serious LFU implementations that actually use a min heap and are still competitive, so the premise that LFU is commonly log N is not actually true.

[1] https://dgraph.io/blog/post/introducing-ristretto-high-perf-...

comment 6y ago · link · parent

You're being downvoted, but you're correct. Go and C++ have largely different non-overlapping use cases. Go is not a systems language. It's mostly a networked server language with a garbage collector. It's great for writing a wide variety of networked services like HTTP app servers. C++ is great for when you need full control and best possible performance and are willing to pay the hits in complexity, compile time, and other development expenses to achieve that. Drivers, games, trading software, database engines, etc.

comment 6y ago · link · parent

That's correct, but it's a far cry from the claim most economists were "unwilling to entertain the idea that the housing market could collapse."

Also 2008 surprised almost everyone, so saying economists couldn't predict it is not much of a slander. Neither could banks, governments, hedge funds, or multiple other groups whose business it was to watch out for events like that.

comment 6y ago · link · parent

I think that's it in a nutshell. You can't evaluate everything at compile time, even when you could theoretically. So you need some way to mark the subset of pure functions that can be evaluated at compile time, which is what const fn does. That way if a const fn only calls other const functions you know you can evaluate it. It's a convenient way of tagging functions.

comment 6y ago · link · parent

Yes, much like the US has forgotten how to build subways, tunnels, bridges, and infrastructure cost effectively in general. I don't know how that happened, and I think it's a pretty sad outcome.

Maybe in a different regulatory and economic environment, nuclear could be competitive. I don't know. Even coal is becoming uncompetitive in the US compared with renewables, and it's a lot cheaper and lower risk than nuclear.

comment 6y ago · link · parent

You quoted a part of my comment and then ignored it in yours. Fossil fuels don't even enter into my comment, I'm merely pointing out the the multiple billions of dollars and multiple years required to create a new nuclear power plant make it non-viable when compared to the current cost of renewable power and grid scale energy storage. These are publicly available numbers, you are free to look it up and do your own calculations if you doubt me.

Also, you're simply unaware of commercially successful energy storage. The most high profile example being perhaps the battery pack Tesla installed in Australia for $90.6M AUD, and generated $13.1M AUD in revenue in just six months[1]. Clearly a very good ROI. Pumped Hydro is used all over the world and is even more cost effective.

[1] https://www.theverge.com/2019/6/25/18715585/tesla-australia-...

comment 6y ago · link · parent

Yes, that is true, and the regulatory environment is a big part of why current nuclear tech is non-viable.

comment 6y ago · link · parent

> In our lifetimes, economists largely balked at the idea that the housing market could collapse, and then boom, 2008 happens.

I don't buy that without citations. Everyone knows housing markets are like most other markets and go both up and down in cycles. Like most other markets, the bigger the boom, the bigger the bust that follows.

To say that a majority of economists believed otherwise seems like pure hyperbole to me.

comment 6y ago · link · parent

Current nuclear is so expensive and has so many drawbacks that new nuclear plants can't compete with solar / wind and storage combination.

However, that's not an innate property of nuclear, and there are relatively unproven designs that may be sufficiently cost effective and safe to be a desirable part of the mix.

I think the free market will solve this problem better than is speculating about it on HN. If its cost effective, it will happen, if it's not, it won't.

comment 6y ago · link · parent

The parent didn't specify calling with constant parameters, which makes a huge difference. To answer your question, basically anything the compiler doesn't know how to evaluate - which has been expanded in this release, but does not include everything still.

comment 6y ago · link · parent

Pure functions are functions where the return value only depends on the function arguments. If the function arguments are not known at compile time, obviously you can't evaluate it at compile time. It would only be possible to do that when all the arguments are also known at compile time (constants).

comment 6y ago · link · parent

That's completely insane. Clearly WebFlow is more powerful than I thought. Props to Sarkis for pulling this off.

comment 6y ago · link · parent

My parents live in the mountains of Panama. They have ADSL internet, but it's so bad at times they have to resort to tethering over a weak 3G connection and paying per GB for very slow data. They are waiting anxiously for Starlink to be available outside of the US.

Starlink is not just about the US, it's a global service that will connect people anywhere the local infrastructure is not yet up to speed. Also comparing rural France to rural US is oranges and apples. The US is almost 20x larger than France.

comment 6y ago · link · parent

How do you file the income tax, do you use a program for that? I have a BC company and it cost me $450 last year to file a non operating tax of $0. I'd love to know how to do it myself.

comment 6y ago · link · parent

Basically as you add energy to the system things get more extreme. Storms including hurricanes and monsoons. Dry places and times get dryer due to increased evaporation. Wet places and times get wetter (more severe floods). It's a predictable consequence of higher temperatures.

comment 6y ago · link · parent

It was a joke.

comment 6y ago · link · parent

Possibly, but the vaccines have prevented many orders of magnitude more cases: "Since 2000, more than 10 billion doses of OPV have been administered to nearly 3 billion children worldwide. As a result, more than 13 million cases of polio have been prevented, and the disease has been reduced by more than 99%. During that time, 24 circulating vaccine-derived poliovirus (cVDPV) outbreaks occurred in 21 countries, resulting in fewer than 760 VDPV cases."[1]

[1] https://www.who.int/westernpacific/news/q-a-detail/what-is-v...

comment 6y ago · link · parent

I don't see how that makes it "a bad way to look at it" I didn't discuss the implications of likely changes in precipitation at all. Just stated what kinds of changes are likely in my opinion.

I also don't think the consequences as easy to predict as you think. For example cross crops may transpire less because of their pores being closed more due to higher CO2 concentrations. That may be good, depending on the crop and location. There will be higher flow in most rivers, and by association most lakes (but offset by higher evaporation) which could be good both for humans and irrigation. I think the answer is complicated and difficult to predict.

Current unsustainable practices with respect to both soil and groundwater depletion will still be unsustainable.

Parts of California are not a great place to grow crops sustainably, at least not the kinds of water and soil intensive crops currently grown. That may increase or decrease on the whole over time due to climate change, it's tough to say with any certainty.

comment 6y ago · link · parent

It depends on the business logic. If e.g. a user updates a numeric value on an entity, and there's a conflict probably you choose the most recent value. The action taken (user updates value) is pretty useless in this case. In other cases, e.g. inventory reduced by X because X units purchased/consumed - then it's more important to have the action itself, and a conflict would involve applying both actions and possibly alerting someone if that causes the value to be invalid (e.g. inventory below 0.)

comment 6y ago · link · parent

Yes, I don't think that's surprising or seriously contested. Rapid change means species will have to adapt or die, and many will perish. It's not the first time that's happened on Earth, but it is the first time since the end of the last ice age. It's a terrible slow-motion train wreck that seems nearly unstoppable. Humans too will have to adapt, and some number of us could well perish also.

Longer-term I have the controversial opinion that it's a good thing (downvotes incoming!), but that could just be my tendency to look for the silver lining. Being Canadian and knowing that my entire country was buried under kilometres of ice and then scraped clean to bedrock 12,000 years ago, I feel that's a more dangerous long-term risk than global warming and rising oceans. Think of how much food we grow in northern and southern latitudes. That process would maybe have begun in about 1500 years, and one could imagine that stopping that might involve crazy things like digging up buried hydrocarbons and burning it to add CO2 to the atmosphere, or spraying dark pigment over ice and snow to reduce the albedo (rename Greenland to Greyland anyone?)

We've fucked things up pretty badly for the next thousand or more years, there will be mass extincions, mass migrations, maybe even famines and wars. But we also dodged an icy bullet for who knows how long. I take some comfort in that.

1
112113114
184