Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

3,226 karma · joined Jun 14, 2019 (7y ago) · 4,043 submissions

Submissions

comment 5y ago · link · parent

I've used Python since 1995, so I should be biased, but switching from Python to R is a huge productivity boost - like switching from Excel to Python. R is just years ahead.

comment 5y ago · link · parent

The media from an early age conditioned people to expect something more there than just rocks and darkness.

comment 5y ago · link · parent

You're trying to explain the difference between countable and uncountable infinities here.

The distinction is irrelevant in the context of computers.

> By contrast, you won't be able to construct a type that encodes exactly the set of real numbers.

You don't need to encode exactly, just like you don't need to encode the integers "exactly".

All you need is a way to guarantee a finite number of significant digits in your real number approximation.

Floating point numbers give you that, problem solved.

comment 5y ago · link · parent

Python's standard library was designed??

Big if true!

N.B. I've been programming in Python since it was version 1.3. Forgive me.

comment 5y ago · link · parent

> This is technically impossible.

It's technically impossible for the integers too.

> Almost all of the real numbers can't be represented in a computer.

Almost all of the integers can't be represented in a computer.

What, exactly, is your point?

comment 5y ago · link · parent

Don't hold your breath. (Coming soon right after the flying self-driving car.)

comment 5y ago · link · parent

> 0.1 and 0.3 have non-terminating representations in binary

No. "1", "3" and "10" can all fit easily in just four bits.

Just use rational numbers and solve the problem for good.

comment 5y ago · link · parent

Having the full number stack supported (natural numbers - integers - rationals - reals) would be, indeed, awesome.

Sadly, most people don't understand the distinctions, so this will never happen. (Even in reply to your post people keep talking about "decimals", as if the number base is at all relevant here.)

comment 5y ago · link · parent

[flagged]

comment 5y ago · link · parent

> I'm also not sure what the difference between "traditional data centres"and "cloud data centres" is.

Vendor lock-in is the only difference.

comment 5y ago · link · parent

I'm pretty sure ancient humans didn't live in caves.

It's just that caves preserve their contents pretty well, while the rest of the outside is impermanent.

comment 5y ago · link · parent

> Well done to the creators...you managed to, with 100% accuracy, capture every single thing that's horrible about signing up to websites.

Oh no no no. For an authentic experience it needs to reload the page and wipe out all forms when you click 'next' and one of the fields is not valid. (And of course reloading the page should take at least five seconds.)

comment 5y ago · link · parent

It's not a binary dichotomy of can vs can't make use.

comment 5y ago · link · parent

Comparing calories is not the correct approach.

Diesel fuel has a huge amount of calories, but your body obviously can't process it properly.

comment 5y ago · link · parent

The problem is that we have no handle on what "excessive amounts" really is.

A slice of cake is, in fact, an "excessive amount" - it's more food than a pound of cheese.

Eating a pound of cheese does, indeed, feel "excessive", while a slice of cake (or two) is just a chaser after a full meal for most people.

comment 5y ago · link · parent

> The core fantasy of lego is engineering - “you can make anything you can imagine”.

The core fantasy of Google is supposed to be "collect the world's information to put it at your fingertips", when in reality it's more like "...to sell it to big advertisers".

Same deal with Lego. I doubt they could transition to freeform creativity when their entire business process is oriented towards a diametrically opposite goal.

(This is speaking as a person with three kids and a whole storage rack dedicated to Lego.)

comment 5y ago · link · parent

Yes, but that's beside the point.

People take the train in the same situations when they drive a car, and travel time isn't always the most important criterion.

comment 5y ago · link · parent

Trains compete with cars, not with airplanes.

comment 5y ago · link · parent

> Driving is about the freedom of either having a car when you get there, or about making it a road trip taking detours on your way there.

Generally, no.

The calculus changes significantly when children (more than 1), old people and/or luggage is involved.

Most travel isn't just traveling with a suitcase and +1 for tourism purposes.

comment 5y ago · link · parent

Trains compete with cars, no with airplanes.

People still make long-distance car trips despite the fact that airplans exist.

comment 5y ago · link · parent

> We need meaningful nutritional research, desperately

Not gonna happen.

a) Too much vested interest everywhere. b) We can't experiment on humans for ethical reasons anyways.

comment 5y ago · link · parent

> The benefit of reproducible builds is that it's possible to verify that a distributed binary was definitely compiled from known source files and hasn't been tampered with, because you can recompile the program yourself and check that the result matches the binary distribution.

It's not just security. If a hash of the input sources maps directly to a hash of the output binaries, then you can automatically cache build artefacts by hash tag and get huge speedups when compiling stuff from scratch.

This was the primary motivation for Nix, since Nix does a whole lot of building from scratch and caching.

comment 5y ago · link · parent

> slow-moving development

> too much feature churn

Pick one, please.

comment 5y ago · link · parent

How are "editions" any different from C++ standards versions?

comment 5y ago · link · parent

I'm pretty sure C++ advances much faster now than Rust will in 30 years.

Then again, you'll just point to how awesome it is that Rust doesn't change and stays stable and easy to use for years.

It's all just rationalizations for the emotional investments you've already made.

comment 5y ago · link · parent

> Academia used to be a place for misfits who don't understand social conventions.

When and where was that?

comment 5y ago · link · parent

> working

Not after Google and Apple get their hands on it.

comment 5y ago · link · parent

> But you could make a spec that is implementable using SQLite.

Yes, that would be the smart choice. But alas.

comment 5y ago · link · parent

"Just use SQLite, lol" is not a spec.

P.S. SQLite doesn't have a spec. Once you start really using it and bumping into version differences, extensions, etc., you'll really feel the pain caused by this.

comment 5y ago · link · parent

Yeah, back when I was debugging frontend bugs it seemed like at least 60% of them were race condition bugs. (It seems there's always at least one whenever a function depends on an XHR request's result.)
1
107108109
135