Better HN
topnewbestaskshowjobs
Log inSign up

slashdev

17,491 karma · joined May 14, 2013 (13y ago) · 5,495 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

I pitched this to my wife a few years back. She insisted she’d rather have a smaller natural diamond. It makes no sense to me. Shiny carbon is shiny carbon to me. There’s no real logic in it. But given it’s a status symbol that derives its value from its rareness, I suppose it’s no different than a Luis Vutton or a Rolex. It’s not about the function, it’s about the fact that you can afford one. I hate that mentality, I refuse to buy anything like that for myself.

comment 3y ago · link · parent

Yes, the planet will live on. But what we’re invested in is that it lives on to support ten billion humans demanding an ever increasing amount of resources per person. It’s not particularly fragile (it’s gone through things much worse than humans in the past.) But the specific conditions of the Holocene that have been supporting us so nicely are a historical aberration. The ability to support so many people and their livestock (that latter part is not to be underestimated) is much more fragile.

comment 3y ago · link · parent

I think a big problem in the West is we don’t have great leaders anymore. The election is between a few nincompoops that all make you kind of sick to your stomach. Where are the Winston Churchill’s or the Abraham Lincoln’s?

comment 3y ago · link · parent

I think a federal system would be particularly important to Canada where each province has more trade with the US than the rest of the country.

The senate is meant to counterbalance the tyranny of the majority, but in Canada its a decorative institution.

comment 3y ago · link · parent

Democracy is the worst system of government, except for all the others that have been tried. (Churchill?)

I’ve heard the same said of capitalism.

comment 3y ago · link · parent

Do they? Some 70-80% of the time, it’s the liberal party. That makes Canada almost a single party democracy. On top of that majority governments have almost unchecked power. When the government in power is a good one, they can really get things done. But I don’t think I was even alive the last time that happened. When the government is a bad one, they have unchecked incompetence. I’ve seen a lot of that, including when the liberals are not in power.

comment 3y ago · link · parent

I used to supplement with potassium salt powder. A teaspoon was like 5000-10000mg if I’m remembering right. I was very uncomfortable having it in the house, I think a couple tablespoons would likely stop the heart of an adult. I think it’d be very unpleasant to consume that much, but I didn’t test the theory.

I left a 1/8 tsp permanently in the bottle so there can be no mistake about what does to use.

comment 3y ago · link · parent

This is a nice example of the terrible decision making that goes on in the Canadian government. Canada is a lovely country, filled with hard working, friendly people, that kind of chug along in spite of the disastrous leadership by those in power.

I gave up and left to seek my fortune elsewhere.

comment 3y ago · link · parent

The client doesn’t know anything about your request implementation, so sending that via a header doesn’t make sense, unless it’s added by some middleware that does.

The load balancer could keep track of how long requests for a specific path tend to take, and what servers are currently handling and use that information to be smarter about routing requests. I wouldn’t be surprised if that already exists in things like haproxy or nginx.

There’s issues where people stuff data into the URL, like ids or keywords for SEO. But that’s possible to workaround.

comment 3y ago · link · parent

Then you’re doing it wrong!

I joke, but a lot of people just want to show up and do the bare minimal until quitting time. Disturbingly, many seem employed in customer facing positions.

To be fair, if they’re paying minimum wage, the employer has the same attitude towards the employees.

comment 3y ago · link · parent

I love this idea!

comment 3y ago · link · parent

See the concept of generational starships.

comment 3y ago · link · parent

Big difference!

comment 3y ago · link · parent

I don’t see the point of that. Your code won’t look like that anyway, change your example to a typical web application backend to see the problem.

All you have is requests and responses. They don’t come in a predictable order.

Whether you use async/await or not it’s irrelevant.

Loading and restoring the state is trivial. If you just want one state object per user, you can load and save it in your framework middleware. In real life you typically need more state than just per user state, which is why it’s uncommon to see that.

In the end you’ll find yourself back at the typical application server plus database architecture.

comment 3y ago · link · parent

I work with AI daily in the form of Github Copilot and ChatGPT. It's not a parlour trick, it's become an indispensable tool. I feel handicapped when my internet goes down and I don't get Copilot suggestions as I type.

I've been programming for over 20 years, and this is the biggest single productivity jump I've experienced in my career.

comment 3y ago · link · parent

This exists, as I mentioned before, in Cloudflare's Durable Objects. You have serverless JavaScript and WebAssembly with consistent, durable, per user state.

You could emulate this in your language and framework of choice by loading user state at the start of the request, manipulating it in memory, and save it at the end. Like with durable objects, you’d also need to gate requests and process them one at a time to keep things consistent. A simple queue could be used to do that.

It’s really not connected to async/await, you could write it synchronously or with goroutines or actors or whatever.

comment 3y ago · link · parent

Bicycles are not a replacement for cars in all situations, uses, or weather. You could make lighter vehicles, but that’s equally true for combustion vehicles.

comment 3y ago · link · parent

How’s that worse than continuous fossil fuel extraction, refining, and combustion over the lifetime of the vehicle?

comment 3y ago · link · parent

> embodied CO2 from manufacturing, indirect impacts from increased demand for parking, demand for larger parking spaces

Why would electric cars be any worse than combustion cars for these?

comment 3y ago · link · parent

I'm not sure I understand what you're imagining here.

It sounds like you're talking about having in-memory per-user state that persists between requests on the server side. Each time a request comes in, it's handled in the context of the state from previous requests?

That's a lot like Cloudflare's Durable Objects.

But it's also not much different from storing state for a user in the database and/or cache and fetching it on demand.

I seems like you're thinking of having like the ability to yield a response from code and then have a request come back in and resume at that point again. I'm not sure that makes much sense over just looking up some state from somewhere on a request.

comment 3y ago · link · parent

I think I’d support items 1 and 4.

1. Prisoners owe a debt to society, that’s certainly one way to repay it, provided it’s voluntary. Same reason I’d support voluntary prison labor.

4. You could argue being a sex worker is far more exploitive of women. I think it’s not our place to say they can’t do that, as long as it’s voluntary.

comment 3y ago · link · parent

Sure, that’s the MVP. But we all know where it’s going.

I’m not saying that’s a good or bad thing, just pointing out the technology won’t stop there.

comment 3y ago · link · parent

I’ve programmed in both assembly and C, among other things. I stand by it, C is much closer to the machine than most languages.

comment 3y ago · link · parent

The steelman argument is that it makes financial markets more efficient and decreases spreads, hence giving you better prices when you buy and sell.

I think the reality is usually more complex and nuanced. Does it help your average retail investor more than it hurts? Maybe.

comment 3y ago · link · parent

C is like a high level assembly language. It maps very closely to how the computer actually runs programs. That, and it’s simplicity, make it a great way to learn.

It’s not usually a great idea for production code anymore, but for learning it’s fantastic.

comment 3y ago · link · parent

It’s not necessarily harmless. If that traffic jam blocks an emergency vehicle, people can die.

comment 3y ago · link · parent

The parent is not making that argument.

If you read carefully you’ll notice they recommend teaching your kids your alternate view yourself and exposing them to multiple view points.

comment 3y ago · link · parent

I think it also depends on the kids. After about grade 4 my parents were mostly hands off with our schooling. We followed the program and phoned or emailed the teacher when we had questions. Our parents just made sure we were working. My mom helped us with our grammar and spelling. Some years we had trouble with that and got behind and had to work through the summer holidays.

Buy some kids just won’t work if you’re not right behind them every day making sure they work. Others would struggle with direction in that kind of environment.

My brother tried to homeschool his kids, but it didn’t work out.

1
171819
184