Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,493 karma · joined May 14, 2013 (13y ago) · 5,497 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 3y ago · link · parent

Refugee boats go down in the Mediterranean all the time. At this point it’s hardly news.

That’s not in any way to detract from the tragedy, just pointing out one reason why it’s barely covered.

Once something becomes common, it’s not news anymore.

comment 3y ago · link · parent

Lifetimes are managed at runtime, somewhat like Arc, just without the ref counts. If implemented well you get an assertion if you misuse a reference (eg use after free.)

I’m fine with the trade off, but yes, it can be a source of difficult bugs.

comment 3y ago · link · parent

Maybe that’s a case of the wrong design? The index tables shouldn’t need global locks. It gets a little hairy if you need to be able to reallocate or move them (I.e grow them) but that happens at most a small number of times and there are ways of only taking the lock if that’s happening.

I’ve implemented this pattern without locks or CAS in C++, and it works just fine.

I’m currently using this pattern in rust (although with fixed size) and it works really well. The best part is it bypasses the borrow checker since an index isn’t a reference. So no compile time lifetimes to worry about. It’s awesome for linked lists, which are otherwise painful in rust. Also it can sometimes allow a linked list with array like cache performance, since the underlying layout is an array.

comment 3y ago · link · parent

It's awesome where performance considerations are paramount. It's awesome in databases. It's awesome in embedded software. It's awesome in operating system kernels.

The fact is sometimes it's good. Saying it's universally bad is going beyond the realm of logic and evidence and into the realm of ideology.

comment 3y ago · link · parent

Thank you for sharing your ideological views, but this is not the appropriate venue for that. If you want to have a software _engineering_ discussion about the trade offs involved in sharing global mutable state, this is a good venue for that. All engineering is trade offs. As soon as you make blanket statements that X is always bad, you’ve transitioned into the realm of ideology. Now presumably you mean to say it’s almost always bad. But that really depends on the context. It may well be almost always bad in average software projects, but PostgreSQL is not your average software project. Databases are a different realm.

comment 3y ago · link · parent

While this is true, the masking is more important for control flow in the loops. You can sometimes replace if/else statements with the masked registers allowing loops with simple conditionals to be vectorized.

comment 3y ago · link · parent

My parents recently got starlink internet in a developing country with measured 70mbits down and 12mbits up. It costs about the same as wired internet, which is available where they live. But the speed is higher and they can run it on a battery so the internet stays up even when the power goes down, which happens often.

I think it’s a game changer for people in rural areas and cabins, people in RVs, people on boats, etc.

I’ve worked remote my whole career, but now it is possible for me to do that from anywhere on earth with starlink service. That’s amazing to me.

comment 3y ago · link · parent

I left Vancouver. The combination of high home prices, high taxes, and low salaries chased me away. I solved the last problem by working remote, but that just really made me think hard about why I was still living in Vancouver.

I was born in Canada, and I would have preferred to stay. The country is a great opportunity for immigrants, but it’s an opportunity cost for me.

comment 3y ago · link · parent

This is not Canadians making babies, which they do below the replacement limit as in other developed countries. This is massive levels of immigration. Canadians do have a bigger per capita environment footprint, but still it’s really just moving people around.

Whether those levels of immigration can be sustained without causing social problems is not yet known. Certainly housing is extremely unaffordable and taxes are very high.

comment 3y ago · link · parent

You could boot Windows XP or Linux in that comfortably. Even run an older web browser or computer game. That’s crazy!

comment 3y ago · link · parent

Yeah, that would probably change the calculus. There were major frequency (heat) issues on older Intel cpus when running avx512.

comment 3y ago · link · parent

So Rust's ipnsort is actually one of the better sorting implementations across a variety of input sizes. Faster than avx512 sort on small arrays, slower on mid sized arrays, and almost the same on large ones.

The avx512 sort seems like a questionable choice given it requires specialized hardware and is not the best option under many real-world conditions.

comment 3y ago · link · parent

I don't know much about AI, but I think one reason you might do that is to learn which variations are preferred (which are committed unmodified) so you can tune the model in the future. I don't know if Github does that, but given they've cited how often code from copilot is committed without modification, I assume they are measuring it at least in some cases.

comment 3y ago · link · parent

Sucralose isn’t metabolized. The body excretes it in the same quantity you take in.

Also table salt is half chlorine and not a health issue (at least not because it contains chlorine).

The body is complex.

comment 3y ago · link · parent

It is exciting. As long as overbuilding renewables is cheaper than grid scale storage, that will be the outcome. Battery advancements will probably eat away at this quite a lot though.

What really will also be amazing is when the cost of renewals plus some storage (like a days worth) crosses below the price of operating a natural gas power plant. At that point the whole grid will go green very quickly. We’re a ways from there, but it’s also probably not as far away as many think.

comment 3y ago · link · parent

Not if you’re on the verge of a heart attack. Also slightly more controversially, I think very vigorous/taxing sport (like marathons) could do more harm than good. Like a u shaped distribution where moderate exercise is the sweet spot.

comment 3y ago · link · parent

I did, more than once. I’ve also hired many from those threads. I find it’s still my best source of quality candidates. LinkedIn stands out as particularly terrible.

comment 3y ago · link · parent

That some people are expecting the recession really has no bearing on how strong it will be. That really has more to do with asset market prices than recession strength ( which incidentally don’t seem to have got the memo.)

It really has to do with slow downs in manufacturing, construction, sales, and employment that feed off each other. And at a deeper level with liquidity cycles and whether conditions are easing or tightening. Conditions are tightening, and of the four markets I mentioned earlier, all are down. Employment is hanging in there the best, but that’s always the last domino to fall. We may well already be in the recession, but it’s only usually called after the fact.

comment 3y ago · link · parent

On the other hand it could become a place to test ideas and port the winners over to rust. It’s not necessarily negative.

comment 3y ago · link · parent

That's really interesting. Between this and TCP sockets you could now design really interesting distributed, stateful services on Cloudflare Workers.

I'd love to design a database for this environment (if you're reading this at Cloudflare, you can hire me to work on this.) I think something that distinguishes between write and read requests, moves writes close to the leader server hosting the data being written, handles reads at the edge, and replicates the deterministic request itself would perform the best and give sequential consistency. This is the approach taken by fauna.com, and it's competitive with Spanner but without the need for GPS and atomic clocks to provide an accurate time source.

comment 3y ago · link · parent

I don’t think you really know what you’re talking about. This won’t be used for fingerprinting. There are easier ways.

comment 3y ago · link · parent

I don’t know where the link is at the moment, but I’ve heard it said that it would take about one mountain worth of lime, ground up and spread in the ocean to completely balance out the climate change up to now. I don’t know how much I trust that.

The other one that seemed quite viable is using reflective aerosols like sulfur dioxide over the Antarctic. It would circle around in the polar vortex and not have massive effects outside of the South Pole. But cooling Antarctica would add more ice, slow sea level rise, and the ice itself would reflect heat away from the planet.

Could be problematic for Argentina/Chile, but probably not so much anywhere else. The potential benefits seem huge.

comment 3y ago · link · parent

Why do they call that browser fingerprinting? That’s a clearly a violation of browser isolation policies, but I don’t see the connection to fingerprinting. Also there are much easier ways to do actual fingerprinting. That involves finding a large number of statistically unique things and combining them to identify repeat visits from a particular device without cookies or local storage.

comment 3y ago · link · parent

Thanks, I’ve heard about this, but never actually with numbers. It’s good to know.

comment 3y ago · link · parent

> If your monthly egress data transfer is less than or equal to your active storage volume, then your storage use case is a good fit for Wasabi’s free egress policy

> If your monthly egress data transfer is greater than your active storage volume, then your storage use case is not a good fit for Wasabi’s free egress policy.

https://wasabi.com/paygo-pricing-faq/

comment 3y ago · link · parent

Cloudflare has free bandwidth up to a point and then they will charge you. That’s not really that surprising though.

comment 3y ago · link · parent

I think we have to get used to the idea that we’re not going to be less than 600 ppm, even with CO2 capture. I would be surprised if we manage to scale that enough to make a larger difference. But that’s still much better than we’d get at without attempting to remove CO2, so it’s an important goal.

The one thing that might change that is very ambitious geo engineering. Which actually is the solution that makes most sense to me. But the very people who are most concerned about climate change don’t seem to support that.

comment 3y ago · link · parent

> By forcing one of the three variables of DVFS (heat, power, or frequency) to become a constant, the researchers can then monitor the other two variables to distinguish which instructions are being executed, even with enough precision to ascertain the different operands of the same instruction.

Sounds like one of those attacks that works in theory but is too impractical to use in real life. This is harder than cache side channel attacks, and we still haven’t seen much use of those in the wild, years later.

> Ultimately, this furthers other attacks, like website fingerprinting.

Umm no. Did ChatGPT write that? Fingerprinting isn’t an attack and that’s not how it works. Also this requires access to system temperatures and other metrics that are absolutely not available from JavaScript.

comment 3y ago · link · parent

This is too close to home, we just set that at up at work. The developer who spent all week on it looked like he was questioning his career choices.

comment 3y ago · link · parent

I could see that. It's irrational, but people are often irrational.
1
262728
184