Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

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

Submissions

comment 3y ago · link · parent

It won't. We settled on using stateful combining characters instead. (Remember when the selling point of switching the world to Unicode was "represent all writing systems with a single stateless 16 bit encoding"? Yeah, well, lol.)

comment 3y ago · link · parent

Uh, yeah, it absolutely is a taboo subject, at least in the USA.

comment 3y ago · link · parent

Redefine "lack of feature" as "bug", problem solved!

comment 3y ago · link · parent

False. Both epoll and thread switching use the exact same kernel scheduling mechanisms under the hood.

(When the kernel decides which thread gets to run it's doing the equivalent of an epoll call.)

comment 3y ago · link · parent

That's an implementation detail.

Pthreads work differently, but historically kernel-mode cooperative threads were also popular at one time.

(We decided to not go there because cooperative parallelism sucks balls.)

comment 3y ago · link · parent

Coroutines and threads are not that different.

Threads usually preallocate some stack space, while coroutines usually don't. But that isn't such a big deal.

comment 3y ago · link · parent

Context switches happen regardless of whether you're using kernel mode ("threads") or user mode ("async") scheduling.

And kernel mode actually has much more efficient and performant context switches, because the kernel can access hardware directly.

(It is sometimes useful to be able to do custom user mode scheduling, but certainly not because of "context switches".)

comment 3y ago · link · parent

Well, we celebrate birthdays of dead people all the time...

This abstraction is quite leaky.

comment 3y ago · link · parent

> C99 with code generators written in python or lua for the engine.

Nice fantasy, but the real-life codebases that do this make even the most hellish C++ code look like future space-age magic technology.

You're not speaking from real-world pragmatic (heh) experience here, you're just complaining that C++ is hard and that you'd rather go shopping.

comment 3y ago · link · parent

> Linked lists have real performance benefits in some applications.

Maybe in 0.01% of the cases. In reality they just ruin your cache and memory allocator performance for no real good reason.

comment 3y ago · link · parent

Maybe that's why Elixir never gained real traction.

comment 3y ago · link · parent

POSIX is a corporate standard.

Community standards are usually not formalized.

comment 3y ago · link · parent

Microsoft has too many billions of dollars to count. Maybe they should be the ones to be held accountable for upholding community standards, not the free volunteers.

comment 3y ago · link · parent

If by "list" you mean "linked list", then those are never used in practice. There is no place for this data structure in a modern CS toolbox.

comment 3y ago · link · parent

So what was the year when Facebook peaked, in your opinion?

comment 3y ago · link · parent

I don't agree. We have some very interesting ad-hoc empirical observations, but no theory.

We're not even in "alchemy" territory here yet, we're still in the "randomly mix colored rocks and see what comes about" phase, to use an analogy from how chemistry developed.

comment 3y ago · link · parent

That's like saying we know the components of an airplane - there is the "hard shiny bit", "the bottom rubbery bits" and the "rotator thingys".

Decomposing the brain into groups of biological clumps of cells tells us literally nothing about how the brain as an information system works.

When we want to study the brain, we do so because we want to understand its information structure and build information processing models. The biochemistry of the wetware is irrelevant, except insofar as it might help us formulate an "information science".

Here we are no closer to the goal than 6000 years ago.

comment 3y ago · link · parent

We have an "information theory", but there is no such thing as an "information science". (Yet.)

The idea that we can study the brain when we don't even have any inkling of its structure and components is preposterous.

And no, the physical layer of neurons and amino acids is only tangentially related to the structure and component s of the brain.

comment 3y ago · link · parent

6000 years ago they had dudes (whole tribes, actually!) who practiced ritual trepanation for reasons unknown to us.

This "mapping the human brain" is no different and no more scientific.

The human brain is an information processing machine, and the science of information and its structure was discovered less than 100 years ago.

We don't even have a name yet for this science!

And our baby steps in this scientific field are nowhere close to beginning to study the brain. To use an analogy, we discovered how to make paper airplanes, but that gets us no closer to building a supersonic jetliner.

comment 3y ago · link · parent

> we're applying a specific, precise model

No, we are not. We are no closer to modeling the human brain today than we were 6000 years ago.

comment 3y ago · link · parent

The 80-core ARM servers Hetzner provides are great. A nice midpoint between a slower general-purpose x86_64 server and an expensive and brittle GPU server.

I can easily see datacenters with these things in the future.

comment 3y ago · link · parent

It's roughly a million times easier to grow food on the South Pole than it is to grow it on Mars.

comment 3y ago · link · parent

> just promote my arithmetic to bigints randomly, #YOLO

comment 3y ago · link · parent

Python in 2023 is like Perl in 1996.

Given the choice I'd rather program in anything else.

comment 3y ago · link · parent

Hands. See Stable Diffusion for proof.

comment 3y ago · link · parent

JSON is not a markup language, it is a serialization format.

comment 3y ago · link · parent

"AI", of course.

comment 3y ago · link · parent

> This doesn't sound like engineering.

Because it isn't.

comment 3y ago · link · parent

a) You want rationals, not "decimals". Limiting yourself to denominators of powers of 10 is utterly stupid if you have the chance to implement a proper number type stack.

b) Floats are efficient approximations of real numbers. Trigonometry and logarithms are vastly more important than having the numbers be printed pretty, so defaulting to rationals instead of reals is quite insane.

comment 3y ago · link · parent

> This just doesn't make sense to me.

It does if you remember that Google is in the search ads business, not in the search business.

I guess you could find a way to weasel in ad copy into ChatGPT's answers, but that will kinda massively kill the vibe.

1
828384
135