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

While Go and Elixir might indeed be slower, Rust is designed to generate optimal code and offer zero-cost abstractions like C and C++ and I would expect it to do so in this case.

comment 7y ago · link · parent

Both bombing drones and stealth helicopters seem to be relatively straightforward concepts that were not publicly developed simply because outside of the military there is no motivation to pursue those things.

On the other hand AI and quantum computing are generally useful and require novel breakthroughs, so I would expect a smaller gap or no gap.

comment 7y ago · link · parent

Just setup a localhost server and open the default browser on it.

Or just have a website, if you don't need privileged access to the user's machine.

comment 7y ago · link · parent

Not necessarily, you might like sophisticated graphics but not play games where latency is particularly important, or just not be annoyed by latency and not interested in competitive play.

Also as an anecdote right now I have 5ms ping to google.com and 1gbps downlink (fiber at home in major city), so it seems like 60fps or maybe even 120fps zero-extra-frames-latency gaming would be achievable there, for instance.

comment 7y ago · link · parent

Seems to me that it would be very good for people who have fiber connections at home and are close to a Google datacenter (or just don't care about latency), and want to enjoy gaming on a high-end GPU without having to pay for it and own a physical desktop computer (perhaps because they don't have the budget, or play games rarely, or buying a desktop computer is hard or uncomfortable for them).

comment 7y ago · link · parent

Seems really scary to exclusively use a neural network for safety-critical tasks like this, without having an explicit method guaranteeing safety.

You can't prove that a trained neural network is always correct, and thus this is likely going to kill someone at some point.

I think you definitely need a LIDAR (or in general something that can give an accurate 3D map of all surroundings) and some explicitly written code that can be proven to result in never hitting a car going the opposite direction in the opposite lane (provided they stay in their lane), as well as never hitting stationary obstacles and never going off the side of a mountainside road.

comment 7y ago · link · parent

They could just use a secondary manually allocated executable stack with pointers and data stored in thread-local variables.

Anyway, normally in C interfaces that take a callback also take a pointer-sized value to pass to the callback, precisely to avoid having to generate code dynamically like this, so this feature shouldn't be that prevalent.

For example, glibc has a qsort_r function that works like that.

comment 7y ago · link · parent

I think the test should be whether another company could offer a service giving the same result.

So for instance this would be fine:

- A web hosting company refusing clients, because you can use another one

- Amazon refusing to sell the item themselves, because other companies can sell on the Amazon marketplace

- A bank refusing a client, since you can just use another bank

This would not be fine:

- Apple refusing to list an app on the app store, since no else can do so

- Amazon refusing to allow an item on its marketplace at all, since there is no other way to sell to people who buy on Amazon

- Google banning something from their search engine, since that's the only way to reach people who search with only Google

- PayPal refusing a client, since using PayPal is the only way to easily accept payment from PayPal account holders

comment 7y ago · link · parent

All of these are mostly issues with the database engine implementation:

1. "FKs are in your way to shard your database." => not a problem for distributed databases that can query and duplicate data across shards/servers; alternatively, if the referenced data just isn't there in the database, a foreign key is not usable by definition

2. "FKs are a performance impact" => the app either just got the foreign key value from the database, so it should be cached in memory in a properly implemented database engine, or otherwise, the application relies on the database checking so you need the foreign key for correctness

3. "FKs don't work well with online schema migrations." => not a problem with database engines that properly support online schema changes without locking, downtime or table renaming hacks

comment 7y ago · link · parent

Is this an issue on non-MAX 737s as well?

If not, and thus the affected computer system has been added in the MAX, why not design it properly with 3+ redundant copies of the system given that it was designed in the 2010s when both engineering theory and technological resources are plentiful?

comment 7y ago · link · parent

You are supposed to design your UI based on general principles ("three vertical blocks", "list of elements with a label", "text with paragraphs", etc.) and let the user agent lay it out as it wants and accept whatever result happens, and not attempt to test or micromanage it to get a preconceived result.

At any rate, HTML layout is determined by the spec barring rare bugs, so you can design something that lays out exactly how you want regardless of browser, except that you must decide and specify the layout for any possible width/height combination.

comment 7y ago · link · parent

React doesn't compute diffs, and it would be wrong for it to do so since components are stateful, and so it matters how they are matched (the idea that VDOM diffing is just an optimization is a very common misconception).

Instead, you just specify keys for elements (either explicitly or by index in the sequence) and it matches elements with the same key in the old and new trees.

comment 7y ago · link · parent

Correct implementations use stack probing (access one word for every page in the allocation) to guarantee that a stack overflow happens immediately rather than resulting in stack corruption.

comment 7y ago · link · parent

Rust references should in general optimize better because they give stronger aliasing guarantees.

Even for slices, using get_unchecked(1..) to get a smaller subslice without bounds checking might be better than pointer arithmetic as long as the slice lengths get optimized away (i.e. they are never used and never passed to non-inlined functions).

comment 7y ago · link · parent

You are not running uBlock Origin, so ads might be taking up all the CPU cycles they can get their hands on.

comment 7y ago · link · parent

Yes, you need to update the seed immediately after reading it and before using it.

There is no problem with a crash assuming that the seed write mechanism is crash-safe (which is achievable with block storage, but indeed I'm not sure whether firmware is properly designed and implemented).

comment 7y ago · link · parent

Well, the proper solution for the future would be for the kernel to save and restore a random seed using UEFI variables, a similar firmware mechanism or free space in a boot sector or swap partition.

But of course this doesn't solve the problem of newer kernels on existing installations with no such stored seed and that don't pass command line argument telling the kernel where to store the seed.

comment 7y ago · link · parent

They are saying that FAANG can hire just on generic skill because they are large and can probably find some way to use anyone smart and can afford wasting money on unproductive employees, while they (and startups in general) need people to fill specific needs so they select for the specific need instead of generic skills and they don't have money to waste so they try harder to not make mistakes.

comment 7y ago · link · parent

Assuming they are independent random variables, since e.g. X xor (not X) is constant.

comment 7y ago · link · parent

How does central planning determine which approaches are most likely to result in a successful cure?

comment 7y ago · link · parent

None of these encodings work.

If there is no length encoding, start, middle, end and ASCII byte encodings must not overlap to support correct decoding of any subslice of a document.

If there is a length encoding on the start, then start, middle and ASCII must not overlap.

comment 7y ago · link · parent

The fundamental big mistake was having 3 boards at once.

I have no idea how they thought that would be an acceptable design given that nowadays it's well known that mainstream people are unwilling to learn any interface that is even slightly complex.

comment 7y ago · link · parent

It's also limited by the number of people that want to pass through that road per unit of time.

comment 7y ago · link · parent

What's so problematic about the UI?

It opens with a list of books, you double click on the book you want to read and it opens that book in a new window.

What could be simpler than that?

comment 7y ago · link · parent

Well, it does since calling printf in a userspace signal handler is equivalent to calling printk in a kernel interrupt handler.

But the userspace "solution" is to just forbid such usage.

comment 7y ago · link · parent

The kernel doesn't provide a "printf" function, but provides a mostly but not completely equivalent function as "printk".

They could and perhaps should have just called it "printf", but it doesn't really matter much.

comment 7y ago · link · parent

Seems a really bad study, since it doesn't mention the exact methodology (caching, exact queries, size of the JSON data, etc.), nor does it attempt to figure out why PostgreSQL is taking 8 ms to do something that should take much less and why reads and writes take the same time, or why Redis is taking 0.5 ms (i.e. millions of CPU cycles) for something that should essentially just do a memcpy.

comment 7y ago · link · parent

Why discriminate by gender?

Not only it's bad and limits the market, but I'd guess many or most people who identify as a woman who want to go to social events would enjoy the company of people who do not identify as a woman, since people who are exclusively homosexual are a minority.

comment 7y ago · link · parent

Is it feasible to use private information retrieval algorithms so that query privacy is preserved?

comment 7y ago · link · parent

"Serverless" is just an aggressive form of container-based autoscaling, and thus has no fundamental difference from it, although of course pricing can unfortunately be arbitrary and thus cause artificial distinctions.
1
313233
51