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

Protobuf was the first major project I was aware of that uses zigzag encoding for integers. They then encode those integers using the typical 7 bit encoding scheme where the msb indicates there's another byte following. I'm sure they weren't the first by any means though.

I'm currently using this in a binary format for serializing dynamic JSON-like values that I invented and am implementing in Rust. I will release it as open source sometime next year.

comment 4y ago · link · parent

I can see the headlines now "you won't believe this one weird trick for bigger gains and better performance in bed".

comment 4y ago · link · parent

I see it the same way. Semi nomadic bands of a couple hundred people without permanent structures is "not much in the way of civilization".

comment 4y ago · link · parent

So does this only work with copper wires then?

comment 4y ago · link · parent

All of that is pretty cool, but it's nothing compared to what the Greeks accomplished over 2000 years earlier. Or the Romans, or the Chinese, or the Egyptians, or the Incas, etc. The Native Americans were downright primitive by comparison with other civilizations. Especially on the prairies of Canada where they were basically hunter-gatherers living in small bands. I am likewise disheartened by your wilful ignorance of the truth.

comment 4y ago · link · parent

I've never heard of a binance debit card before, that's very interesting. Don't you feel like you're getting screwed by the conversion lately? Bitcoin is so volatile to use as a currency.

comment 4y ago · link · parent

Do tell how you pay in a store or restaurant with Bitcoin. Are you just a weirdo who doesn't leave your mom's basement?

comment 4y ago · link · parent

Cryptocurrency isn't very useful as a currency, so it doesn't compete with fiat currencies. You can't use it to buy things, apart from illegal things. The exceptions are fringe uses only.

comment 4y ago · link · parent

I mean they didn't have much in the way of writing, architecture, science, or organization. They were thousands of years behind the more advanced civilizations. They had a primitive civilization.

There wasn't much left of their civilization 120 years ago (thanks to Europeans) and they didn't leave much behind that endured.

comment 4y ago · link · parent

There was not much in the way of civilization there 150 years ago. There were indigenous, sure.

comment 4y ago · link · parent

That's the city I was referring to. The estimates I saw said 20k, so it depends what estimates you look at. It's still very small compared to other major cities of the time.

comment 4y ago · link · parent

I think we disagree on the definition of "a lot". Were there even any permanent settlements on the Canadian prairies? Most of the natives were nomadic.

comment 4y ago · link · parent

That's just factually incorrect. The largest pre-colonization city in the US was a piddling 20,000. Even Uruk in ancient Mesopatmia, was more than twice that size over 5000 years ago.

Presumably you're referring to Tenochtitlan where Mexico City is today, which is neither in the US, nor was it larger than European cities at the time (although it was up there with Paris and Naples!)

comment 4y ago · link · parent

A German friend phrased it this way for Americans: We have beers older than your country. The depth of history and culture in Europe never ceased to amaze me while I was travelling there, especially in Greece and Italy. I grew up on the prairies in Canada, there was pretty much nothing there 120 years ago.

comment 4y ago · link · parent

It's my personal anecdote, I make no claims that other people feel the same way. If they were logical, they should though. Paying $10 to get several hundred dollars in productivity gains is a no-brainer. It's the same reason I pay for a second monitor, a properly comfortable chair and desk, a top end computer, and JetBrains. At software engineer salaries, even small productivity improvements pay off handsomely.

comment 4y ago · link · parent

The thing that blew me away about France is you could buy a bottle of wine in the supermarket for less than a bottle of coca cola.

comment 4y ago · link · parent

It doesn't need to be sustainable, a short-term reduction in emissions it's also helpful and buys more time to go carbon free. It's a complete lie that we have to transition directly from our current state to zero carbon with no stops in between. Fracking is something really only done in the US. Doing more fracking internationally could really bring emissions down. Fracking has done more to reduce US emissions than all the climate change policy combined.

The point you bring up about methane leaks is salient though, if you can't do it without leaking too much methane, it doesn't make sense. However, I don't think that's impossible. Taxing methane leakage and monitoring it from satellites, as one idea of how to do that, seems quite possible.

Obviously it's also good to mitigate damage to the environment via waste products, etc, but that also seems to be possible with the right regulation and enforcement.

comment 4y ago · link · parent

Even just encouraging fracking (cheap gas vs coal means 2x reduction in carbon), or stopping to subsidize fossil fuels would make a massive difference.

comment 4y ago · link · parent

Because people don't look at issues like climate change rationally. We're attacking the problem almost randomly based on what's politically expedient/ popular instead of what gives the biggest greenhouse gas reduction for the price.

To phrase it another way, our governments are fucking stupid and it makes me sad.

If we really care about this problem, we should attack it coldly, rationally, as an engineer or economist might.

comment 4y ago · link · parent

My experience with copilot has been very different. It easily pays for itself, and getting my employer (seed stage startup) to spring for it for the entire team was an easy sell.

Yeah it's pretty dumb most of the time. But I know that, and I don't use code from it without carefully checking it out and modifying it. But it's still a huge help. Just the time saved writing tests alone pays for it. And I've had a few spooky experiences where it feels like it knows the bug fix before I do. Think of it as a smarter auto-complete.

The technology has a long way to go, but I completely disagree with Kite here. It's already good enough to pay for. If my company didn't pay for it, I would. I already pay for JetBrains, and it costs more than Copilot. I would give up JetBrains before I give up Copilot.

My guess here is Kite positioned themselves as a free alternative to Copilot and then couldn't monetize. There very likely is more to it though.

comment 4y ago · link · parent

People do, but it's hard to get out. There are monetary controls, so you have to break the law to get your money out. You will also end up with very little once the exchange rate and fees are covered. So you will take a huge haircut on standard of living. But the standard of living in South Africa is something of an illusion anyway with horrific crime, a corrupt and incompetent government that confiscates private property, a jobs market heavily biased against people of non-African descent (very strong affirmative action), rolling blackouts, etc. My grandparents opted to stay and they did pretty much live out their days in relative comfort in their own house - but rarely saw their children or grandchildren.

Source: my parents are from South Africa

comment 4y ago · link · parent

I don't think it does. The people who are doing that are probably not that good to begin with. The people they outsource to are not that good. And then you have to communicate requirements to them, and manage them. I wouldn't be more productive doing that unless I had a whole team behind me, and then I'd be a manager, not a programmer anymore.

I think I'm deliberately ignoring the tortured argument you're trying to make that copliot is similarly unethical - which is just ridiculous. It deserves to be ignored.

comment 4y ago · link · parent

I run Linux for work, and gaming laptops tend to have the best performance characteristics. Plus I can play games on it with dual boot.

I got it for half the price of equivalent hardware in a MacBook Pro (8-cores/16 threads, 64 gb ram, 3 TB NVME storage, monster graphics card.)

comment 4y ago · link · parent

This is likely it as the AMD CPU has a built-in low power Radeon GPU, and there's a monster Nvidia card for gaming.

Do you know how I can check if the discrete card is being used / drawing power?

comment 4y ago · link · parent

Please don't use copilot, decide it's not worth the risk for your company. In the great competition that is the labor market, copilot is giving me a leg up on everyone who isn't using it. It's the biggest single tool based improvement to my productivity since JetBrains.

comment 4y ago · link · parent

It does not. I use some extra software to try and improve that, which helps, but it also means the laptop is noticably laggy on battery. But you're right that is likely part of the equation. I don't think it's the whole story though, I see other people complaining of wise than Windows battery life on laptops that do support Linux.

comment 4y ago · link · parent

It's also a searing indictment of Linux. I get less than half the battery life on my Alienware AMD laptop under Linux than under Windows. I don't know what Linux is doing wrong here, but it is not energy efficient.

comment 4y ago · link · parent

Do you make less than minimum wage? Because even at minimum wage it saves me enough time a month to pay for itself. In my opinion it has a positive ROI after a single day.

comment 4y ago · link · parent

Yes, it's not a fair comparison. More like a wake-up call. Rust can get pretty complex. Especially if you're using async and then you need pin.

Like c++, languages that strive for zero cost abstraction seem to put a large cost burden on the developer in understanding it.

comment 4y ago · link · parent

I've used Lua, it's nice and simple like Go.

I tried Haskell, but I found it unreasonably complex to be practical. I only learn programming languages if I have a practical reason to use them, so I never picked it up again. Perhaps you have a point, everything is relative.

1
414243
184