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

It doesn't track visitors. It just counts how many came back and how many bounced. It's very privacy friendly, but still doesn't meet your standards? I think you just like to complain.

comment 4y ago · link · parent

MacBook is twice the price of comparable hardware in a Dell or Lenovo. I mean it varies based on models being compared, but when I bought my laptop last year, that was the price difference. I like Macs, but not enough to justify that.

comment 4y ago · link · parent

Having kids isn't likely to change that

comment 4y ago · link · parent

It was an offer.

comment 4y ago · link · parent

Partly as leverage in other negotiations, but there was definitely a price where I would have accepted, and they came close to it. I was tempted.

comment 4y ago · link · parent

I'm so glad I turned down the job offer at Kraken. The reason I turned it down was because I felt that crypto was a bubble waiting to pop (back in March, but that's been my "wrong" opinion for the last 5 years or more.) The tech stack was nice, the pay was excellent, the product I would have been working on is comparable to Bloomberg Terminal, so it was pretty cool too. But I just thought the job might go away in the near future.

comment 4y ago · link · parent

There must be a wealth of fascinating sites, buried under sediment in 120 meters of water.

comment 4y ago · link · parent

There were some epic floods at the end of the last ice age, pretty recently in human history. I wonder how many flood myths have their origin from that. Plus sea level rose 120 meters (~400ft). Humans like to live near the coast, imagine how many villages were flooded and abandoned.

Civilization "started" pretty soon right after the last ice age - my theory is that's when it actually restarted after earlier attempts at civilization were washed away.

comment 4y ago · link · parent

It's undefined behavior. You can write unsafe code that's UB in both Rust and C++ (it's permitted, which I think is your objection), but those are not correct programs and they may behave in surprising ways or break when seemingly unrelated changes are made.

comment 4y ago · link · parent

I also use Rust now. If you use unsafe, there is little you can do in C++ that you can't do in Rust. However, some things like data races and mutable aliasing are permitted in C++, but not in unsafe Rust, as they invoke undefined behavior. The Rust nomicon has more details about what's allowed.

comment 4y ago · link · parent

What it feels like and the story the data tell are two different things. The data is unambiguous, the richer the country, the higher the per-capita meat consumption. Meat consumption in the world is rising rapidly.

comment 4y ago · link · parent

I don't see that happening. I see the opposite of that happening.

comment 4y ago · link · parent

From first principles, it should be eventually.

comment 4y ago · link · parent

When this technology finally gets there, and I see no reason to think it won't eventually, it will change the world so dramatically. The amount of land and water we won't need to raise animals or food for animals it's staggering. The amount of meat the world consumes will double by the end of the century (will it? I made that up). As the world gets richer, people eat more meat. Combine that with a rising population and the amount of land we need for livestock dwarfs the remaining agricultural land we'll need (again, I made that up, but it could be true.)

We could rewild huge parts of the Earth, returning the habitat to nature.

comment 4y ago · link · parent

C++ is a great real world example of ignoring the advice "if you find yourself in a hole, stop digging". They have this problem with complexity and the only strategy they have to tackle it is by adding more complexity. Maybe they're going to overflow back to 0. Or they'll come out in China. Who knows. I've moved on.

comment 4y ago · link · parent

If an alien colonization fleet is in orbit around Earth, that's a fair assumption. They didn't come all those lightyears just to have tea and biscuits. They're not likely to just move on just because there are some buffalo already living there. We wouldn't.

comment 4y ago · link · parent

You mean Larry Ellison probably, since he owns the Hawaiian island of Lanai.

comment 4y ago · link · parent

If alien settlers arrive at Earth it will be more akin to what European settlers did to the buffalo than the Native Americans. Nuisance fuana to be pushed out of the way / eliminated.

comment 4y ago · link · parent

You can often do this, although some runtimes treat it only as a hint and may ignore it (usually what you want). Go has some pretty strong guarantees on how long it will stop the world for, which makes it much less of an issue. But the best pause is still no pause, which means no GC.

comment 4y ago · link · parent

Hey, thanks for sharing! That was a lot of effort to type all that up, with references to boot.

comment 4y ago · link · parent

People used to routinely die from infections in the prime of their lives back then. The life expectancy at the turn of the 1900's was 47 (and much less if you were black.) People sometimes romanticize the past, which is really doing a huge disservice to how far we've come. I would not want to have been born at any previous time, I'm living in the best time yet. The future will likely be even better. We'll get off fossil fuels, push computers to their limits, expand industry into space, and gain ground on many of the diseases that have plagued us, including cancer and aging itself. The future belongs to the optimists, until it doesn't.

comment 4y ago · link · parent

> We're talking about two programs with exactly the same purpose - ingest TypeScript and output JavaScript. It's a pretty clear-cut comparison, IMHO.

There are an infinite number of ways to design two programs for that task, with different trade-offs. You can't draw conclusions about which language is faster based on two different implementations by different people.

> Go is great, I like it. Rust is great too. I recommend you to do what the esbuild author did - test it and choose for yourself, don't bother too much about others' opinion.

I'm actually writing Rust code the last two years. It's been a while since I've used Go. But I'd rather use Go if the problem allows for a garbage collector. It's just simpler than managing it manually in Rust with the borrow checker and its rules. This is my opinion, nobody else's.

comment 4y ago · link · parent

Actually he wrote the Rust version first, so you're wrong jumping to conclusions.

I'm not trying to say Go is faster than Rust, it's usually slower. But there are always exceptions to the rule. The Go code, on the other hand, is usually simpler and quicker to write. For that reason I'd prefer Go if the problem lends itself to a garbage collected language.

comment 4y ago · link · parent

Because different programs, implemented differently, run at different speeds...

I'm saying the performance of Go can sometimes be surprisingly fast. Not that it's magic.

comment 4y ago · link · parent

You'd need to change malloc too so it doesn't do extra work. You could do it. Go obviously isn't going to be faster than well written C. But sometimes you can be surprised.

comment 4y ago · link · parent

For a script like this your be surprised. If you don't do too much allocation, the garbage collector need not run. In fact it's common to disable it at the start. Now you can allocate much faster than C because you never clean up after yourself!

A real world example is esbuild, the author implemented it both Rust and Go initially. The Go version was faster and the code simpler. Which is why it's implemented in Go.

comment 4y ago · link · parent

Yeah, I don't like that method for encoding variable length integers.

I usually use something I came up with years ago where the low 2 or 3 bits are the length - 1 in bytes. It's more compact and can be serialized/deserialized without branches in the common case. It uses the count leading zeroes instruction for encoding. I'm sure somebody else has come up with the idea as well.

The downside is you can only represent 30 bits for u32 and 61 for u64. In many cases you know you don't have values that large, so it's fine.

If you're encoding arrays of integers, Lemire has a library that uses vector instructions to encode them in the optimal number of bits. That's even better, but the use cases are far more restricted.

comment 4y ago · link · parent

Only if they can do something with the CO2 other than releasing it into the atmosphere. Like trapping it underground or storing it somehow.

It's not a totally crazy idea, carbon capture from the atmosphere is very hard - there's only 400 parts per million. Carbon capture from concentrated sources, like the smokestacks of coal power plants is a real thing. It remains to be seen if it's done responsibly.

comment 4y ago · link · parent

Yes, but not as a general purpose encoding. It's more fit for it's intended purpose.

comment 4y ago · link · parent

Culture != Civilization. Culture is a term used to denote the manifestation of the manner in which we think, behave and act. Civilization refers to the process through which a region or society, outstretches an advanced stage of human development and organization.

I think we've been having disjoint discussions.

1
404142
184