Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 7y ago · link · parent

Hmm, isn't the solution to do something proactively to increase entropy when getrandom() is waiting for it? (especially for the first bytes)

Like inserting arbitrary reads of any available SSD or hard disk that has already been spun up, or something better if possible.

And in newer userspace, just properly save and restore a seed.

comment 7y ago · link · parent

I think his words are being misrepresented.

He said this: " Minsky had sex with one of Epstein’s harem [...] Let’s presume that was true [...] We can imagine many scenarios, but the most plausible scenario is that she presented herself to him as entirely willing. Assuming she was being coerced by Epstein, he would have had every reason to tell her to conceal that from most of his associates. [...] "

I have no clue how plausible this scenario is, but I don't see any reason to infer anything about the character of Stallman based on him suggesting it.

comment 7y ago · link · parent

Why is there a requirement for only flying from/to the airline's country?

What is stopping any airline from simply opening fully owned subsidiaries in every country they want to fly from/to?

Or alternatively effectively doing the same by leasing their aircraft on a hourly basis to another airline from the desired country?

comment 7y ago · link · parent

Am I the only one that finds that using that theory to justify not adding capacity is utterly idiotic?

If you add capacity and it ends up being all used up, it just means you didn't add enough and should add even more if possible!

Kind of like saying that in a famine it's useless to provide more food because it's going to be eaten all up anyway since some people are no longer dying of famine...

comment 7y ago · link · parent

The obvious solutions seem to be either:

1. Add enough speedbumps, unsynchronized traffic lights or even unnecessary timed barriers to make the route slow enough that it's no longer optimal

2. Add cameras that fine anyone who doesn't have a permit to pass, which would be given to residents for free and anyone who pays a sufficiently high price

comment 7y ago · link · parent

The best way to see systemd is simply as the userspace part of the Linux kernel, with a similar monolithic but modular design.

comment 7y ago · link · parent

Generally most hotels fail on the pitch black during the day requirement because they only have curtains (only roller shutters, aluminum foil on the window or having no window can block all light), they aren't very good at being silent (no soundproofing, room service with carts at morning, road in front without properly insulated windows, etc.) and you generally don't get an high-quality mattress and bed unless you go for an high-end hotel (with lots of useless amenities) and often the bed is not even acceptable (too small, no wood foundation, bad mattress, sheets that aren't big enough to always stay tucked in, or even sheets that can't be tucked in at all).

comment 7y ago · link · parent

On the opposite side, I wish there was an efficient hotel market for people like me who don't care at all about the aesthetics or size of the hotel room, room service or amenities but do care about having a single room, pitch black and silent during the day, and with a comfortable bed.

comment 7y ago · link · parent

Feels like the big blocker is that it seems to only be useful if you insist on a language that is Perl-like but also modern, but most Perl programmers probably moved to other languages already and don't care about whether their language is Perl-like, and the remaining ones are probably mostly maintaining Perl 5 codebases that they don't want to rewrite.

Ignoring the Perl angle, it's a language with a small ecosystem that doesn't seem to provide any groundbreaking advantage compared to existing languages, so no reason to adopt it.

In general, to become popular a new language needs to provide one of those:

1. A new groundbreaking and useful paradigm that cannot be added to existing popular language ecosystems without a total compatibility break (e.g. Rust)

2. Compatibility with an existing ecosystem and significant improvements (e.g. Kotlin)

3. Being the best among languages required by a platform or program (e.g. Swift, also JavaScript when introduced)

4. Have one of the best ecosystems for a specific niche (e.g. Ruby when Rails got popular)

comment 7y ago · link · parent

Because GPUs always run trivially parallelizable workloads and CPUs usually don't.

comment 7y ago · link · parent

Early versions of mio had a bunch of non-essential things like a timer wheel built-in, that were later removed.

comment 7y ago · link · parent

Is there a reason to not just take all those drugs at once?

Wouldn't that give the best results?

comment 7y ago · link · parent

No, a synchronous procedure is a procedure whose minimum completion time depends solely on the speed of the CPU and memory system (and lock contention, in some models), while an asynchronous procedure is a procedure whose completion time also depends on external events.

In other words, synchronous procedures are essentially locally CPU-bound, while asynchronous procedures are bound by I/O, network or IO/network/CPU of remote servers.

Async functions are the most efficient way to support asynchronous procedures, while non-blocking non-async functions are the most efficient way to support synchronous procedures.

There are also adapters to turn synchronous function into asynchronous ones, and to turn asynchronous functions into blocking non-async functions, although they should only be used when unavoidable, especiallly the latter.

comment 7y ago · link · parent

Most people like to play optimally, but also like fun gameplay, and the gameplay you describe tends to get boring since it is very repetitive and ignores the level and monster design almost completely (explore until you find monster, retreat to safety, attack until everything dead, repeat until game ends).

comment 7y ago · link · parent

There is a disadvantage if it turns out that these people make on average a negative contribution to the economy (i.e. if the aid they need and damage they cause via crimes is higher than the surplus created by them aiding others, and producing useful labor, good and services), which would mean that they make the people already there worse off and worser off the more of them are allowed to enter.

I'm not sure whether they are a positive or negative contribution, and this also depends on how good the accepting state is at integration and education.

comment 7y ago · link · parent

Mobile browser generally have a "share" functionality that can share anything to Facebook or any app that supports that easily, so that's what people would be using rather than copy and paste.

comment 7y ago · link · parent

"Why not both?"

The problem seems more like that those executives had little people skills (empathy, negotiation, non-violent communication, etc.), or no incentives to apply them, rather than a fundamental issue with pursuing multiple goals at once.

comment 7y ago · link · parent

Some people might like that, but in general I think what would be really needed is some way of doing online dating without pictures, since focus on appearance is unlikely to be effective at achieving long-term fulfillment (both if pursuing a single/few long-term relationships or regular one-off encounters).

comment 7y ago · link · parent

Because there is only widely used one app store per platform and thus no competition.

comment 7y ago · link · parent

> This is tricky to do for all platforms that V8 supports

It can be done only where supported. Ivy Bridge and later have instructions to set them in user space (WRFSBASE/WRGSBASE), and although it needs the OS to enable it, I would expect it can be done on all significant x86-64 OSes.

> I'm not sure it's free; it's still at the very least another prefix.

There are benchmarks that show TLS is as fast as global variable, so it's probably free (aside from the impact on the I-cache due to increased code size, but using a general purpose register is probably much worse due to additional instructions and extra SIB bytes).

comment 7y ago · link · parent

It looks like there's another issue that is not quite mentioned: the Chrome code generator is using %rbx to point to the start of the WebAssembly memory, which means that the available addressing modes are severely reduced and a register is used up.

It seems like that it could use a %fs or %gs segment override instead (one of which can be programmed arbitrarily at least on Linux), which should be cost-free on all x86-64 processors and would solve the issue.

Once this is changed, the only remaining fundamental unfixable differences would be reduced cache efficiency from the extra bytes for the segment override, and the need to reserve an extra register for the wasm stack pointer.

However, running WebAssembly code in a separate address space would allow to run arbitrary code, although this would have the drawback of higher memory usage and IPC slowdown.

Is there any article discussing the rationale between Firefox and Chrome's current approach and whether they plan to use either segment overrides or process isolation?

comment 7y ago · link · parent

Isn't the premise that "real wage growth is closely tied to labor productivity changes [of that particular job, in all cases]" just completely wrong in itself?

If increased productivity (of everyone in a profession due to some new technology) means less people are needed in a given profession, demand for employees decreases and thus wages go DOWN along with product prices.

Also the "natural equilibrium state" for wages is for them to be all equal regardless of profession because otherwise people would have trained for and went to a more profitable career until wages are equalized, and this only doesn't happen because people are not equal and changing careers is costly.

So the "Baumol cost disease" seems like a pretty reasonable observation instead of being somehow paradoxical.

comment 7y ago · link · parent

This can be solved, in the odd-days example, by making either the second most popular or all other search engines operate only on the even days (as well as making the restriction apply to the most popular engine instead of Google in particular).

This has other drawbacks of course.

comment 7y ago · link · parent

IMHO a simpler and probably the only viable way to force competition is to legally force Google to not respond to any query on certain periodic time periods.

For instance, if you were to forbid Google from operating on every odd-numbered day, then 50% of the search engine market and revenues would immediately be distributed among competitors and furthermore users would be forced to test multiple engines and they could find a better one to use even when Google is allowed to operate.

Obviously this has a short-term economic cost if other search engines aren't good enough as well as imposing an arbitrary restriction on business, so it's debatable whether this would be a reasonable course of action

comment 7y ago · link · parent

Surprising that an unoptimized build could be fast enough to not be noticed.

comment 7y ago · link · parent

Yes, obviously, hence the idea to make childbirth something that is done because the person is paid by the state or a corporation, so that the genes that are spread are not related to the willingness to raise a child.

comment 7y ago · link · parent

Kind of surprised this is a thing: seems like showing up with a 5$ bill or credit card and getting coffee and change back (whether from a human or from a coffee vending machine) would be a fine process.

If one is a regular coffee drinker and finds that inefficient, buying a coffee machine for home/work seems like a better solution than attempting to "order ahead" and still having to physically get to the coffee shop.

Obviously this app might still have some marginal utility, maybe enough to be a viable business.

comment 7y ago · link · parent

The most efficient way of executing a non-I/O function is to just use the thread stack to store its data and optimize it for speed rather than for using little stack space.

However, for functions that can block indefinitely on I/O, then such an approach would mean keeping an inefficiently-large stack around indefinitely.

Hence, the better solution is to put the data on the heap, ideally in a manually engineered structure (i.e. "manual implementation of futures"), or for more ergonomics in one efficiently designed by the compiler (i.e. async/await).

comment 7y ago · link · parent

The solution is probably to have the state or child-raising corporations pay people to have children instead of the current model where 1-2 parents raise a child.

Not having children at all and intentionally extinguishing humans is also a possibly optimal, albeit more radical, solution.

comment 7y ago · link · parent

Yeah, in normal adult social circles if you behave like an asshole you get ignored and if you force others to put up with you you get kicked out and police is called if you refuse.

If the social circle you are in doesn't kick assholes you find another one.

But in school someone can just terrorize everyone else with impunity because people are usually not expelled, you can't easily choose a school that expels people and the abusers don't care about being ostracized or potentially expelled because they don't care about being in school in the first place.

1
323334
51