Better HN
topnewbestaskshowjobs
Log inSign up

devit

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

Submissions

comment 3y ago · link · parent

I'd suggest those priorities, in order:

1. Making a fully secure no-JavaScript browser for Tor usage

2. A secure browser that works on major websites

3. Android support

4. Embedding support

5. Extensions support

6. All missing features supported by both Firefox and Chrome, roughly in order of addition to the web standards

7. Replace Firefox

8. All features supported by any browser

comment 3y ago · link · parent

Or just stop using terrible regular expression engines with superlinear runtime?

E.g. Rust's regex crate has linear runtime is thus not susceptible to "ReDoS".

comment 3y ago · link · parent

For noise, they should either build a barrier or buy out the properties nearby, certainly not limit the speed.

And for surface conditions, repave the road.

comment 3y ago · link · parent

The problem with the Autobahn are the 120 km/h speed limits that are there on a sizeable portion of it for no reason.

They should remove all the speed limits, not add more.

comment 3y ago · link · parent

Great question! I've been using the new AI assistant for a while now and I've definitely noticed a certain "sameness" to its responses. In fact, I think it would be relatively easy to build an AI that could recognize the writing of this AI. The key would be to train the AI on a large dataset of the assistant's responses, which would allow it to learn the patterns and characteristics of the assistant's writing style. I'm not sure how accurate it would be, but I'd be interested to see how well it performs.

comment 3y ago · link · parent

This is only for algorithms whose output is solely dependent on the outcomes of comparisons of input values.

Otherwise you can for instance sort an input made of zeroes and ones in O(n) time and O(log(n)) space by counting the ones.

comment 3y ago · link · parent

Wow, finally!

The lack of working translation was the biggest reason to use Chromium instead of Firefox.

And being local is great, and the quality even seems quite good.

comment 3y ago · link · parent

It looks like a language equivalent to Hare can be obtained by adding restrictions to C++.

Considering the lack of key C++ features (e.g. generics) in Hare and the lack of adoption, and most importantly the fact that you should use a memory-safe language like Rust instead of any memory-unsafe language like Hare or C++, there doesn't seem to be any practical use for the Hare language.

comment 4y ago · link · parent

That solution is terrible, with a bad algorithm that requires O(tree_height) space (the optimal one involves temporarily using left/right pointers as a parent pointer so that you only need constant space) and lacking any sort of assembly optimization, being worse than what a compiler would produce (e.g. it's a real mystery how the author managed to decide that local_right should be spilled on the stack).

Definitely not what you want to submit to someone testing your programming skills.

comment 4y ago · link · parent

They could make only the OSX version proprietary, which would not be a big issue since OSX users have already opted in to slavery.

comment 4y ago · link · parent

The problem seems to be that assert is implemented as a regular function.

It must be implemented as a macro so that the line number and assertion expressions are printed, allowing to easily identify the failed assertion.

If a language doesn't support such macros and has no ad-hoc mechanism for this case, it should not be used, or if it must the assert function must take a string parameter identifying the assertion.

comment 4y ago · link · parent

You need to like it.

comment 4y ago · link · parent

The source code to the tooling that generates the initialization code sequence along with all the input and configuration files and anything else needed to run it constitutes the source code of such a binary blob.

comment 4y ago · link · parent

You can program your smart contract to forever deny the use of such funds by recording its "non-selfdestruct" balance in the state and only allow to withdraw up to that amount.

comment 4y ago · link · parent

You can if you put your money in a smart contract that refuses all transfers that haven't been pre-approved by you, although that's not the standard procedure.

comment 4y ago · link · parent

That's what vsync is for.

And despite what some people and games seem to think, vsync isn't an optional feature that you can turn on or off, it's something that must always be enabled since it's essential to display correct graphics.

comment 4y ago · link · parent

I don't understand why crossing between sidewalks would be unsafe.

Pedestrians obviously do that all the time, and assuming that you start crossing from a stopped state and not at speed, it seems to me that a bike is as visible or more visible than a pedestrian (about same height, much wider, similar speed).

comment 4y ago · link · parent

Rust and Go are different classes of language, where Rust is a non-GC memory-safe language, and Go is a statically typed GC language.

In Go's language class of statically typed GC languages, Go is much worse than the best languages, which are Kotlin and C# (Go lets you forget to write error handling, had no generics until recently, uses duck typed interfaces (!)).

In general, Go's inferiority can be traced to its root cause, which is the Google Go designers having severe Dunning-Kruger syndrome because they think they are good because they invented C/Unix and work at Google and don't realize they have no clue about programming languages in general and were only successful because the limited hardware at the time didn't allow sophisticated programming languages and thus allowed a terrible language like C to succeed.

As a language class, non-GC memory safe languages are far better than statically typed GC languages since they don't have the overhead of a GC and can guarantee the correctness of concurrent programs since they are data-race free (in Go-like language two threads can share the same data with no checks whatsoever resulting in arbitrary racy behavior), can make other guarantees enabled by the linear type system and use composition instead of implementation inheritance.

So in general you should always use Rust unless existing framework or libraries for other languages make solving the problem much easier and the app code is small enough that the extra problems in using a subpar language aren't too bad (e.g. you probably want to use bash for system administration, Python for simple deep learning projects, Kotlin for simple Android apps, Swift for simple iOS apps, TypeScript for simple web frontends, etc.).

However, if you plan to write a lot of code, then just using the best language, i.e. Rust, is probably better since the time to write or correct dependencies will be small compared to the sheer amount of code you are planning to write for the main software.

If you are willing to give up good performance and a large library ecosystem for correctness, then dependently typed languages like Idris are also an option.

comment 4y ago · link · parent

Even trivial things like a typo in the method name in a method call are not detected at compile time by languages like JavaScript or Ruby (since their "method calls" are in fact just lookups in a runtime hash table...).

If you have not seen them, the reason is probably that the code was tested well enough before you looked for the bugs.

comment 4y ago · link · parent

I don't understand the point of avoiding running docker in a GNU/Linux chroot, given that it has no downside that you don't already have due to running containers and would vastly simply the setup.

Also, the kernel xtaguid patch looks probably wrong, since it's removing code that is probably there for a reason, and it looks like the correct fix might be to add some other condition.

comment 4y ago · link · parent

You can easily avoid that by replacing the RNG with a proper secure one.

comment 4y ago · link · parent

Feels like there's a big problem with the assumption that reputation would curb that behavior.

The usual common sense concept is that if there was even the suspicion that a business like Trustpilot would abuse their power, their reputation would be so tarnished that they would not only not do, but absolutely make sure it was almost impossible for the perception of abuse to happen.

But instead, it looks like nothing happens when they flagrantly breach trust, so it looks like in practice you can't really trust any company at all.

comment 4y ago · link · parent

Seems bullshit, it's obviously impossible to beat both state of the art CPUs, GPUs and even TPUs (lol) with a single architecture.

They can maybe do that if the architecture is configurable and they are using different configurations for their CPU, GPU and TPU competitors, but then it's still highly implausible that they can deliver more than 2x improvement over competitors, unless perhaps if it also costs proportionally more (but even then, you get decreasing yields for larger chips and inefficiencies if you make an SMP system).

comment 4y ago · link · parent

The proper solution to that is to use a CPU that supports encrypting RAM.

Soldering RAM does nothing since you can still, at least in principle, reattach it to another device.

comment 4y ago · link · parent

Use free and open-source ones like the built-in AOSP apps or the ones on F-Droid.

They have no incentive or resources to do A/B testing or make unnecessary UI changes.

comment 4y ago · link · parent

Just don't use proprietary applications (or don't expect them to serve you).
1
111213
51