Better HN
topnewbestaskshowjobs
Log inSign up

devit

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

Submissions

comment 4y ago · link · parent

You are supposed to have an offsite backup that you can decrypt with only a password you remember, precisely in case this happens.

comment 4y ago · link · parent

Use desktop Linux, the only operating system that respects you and the usefulness of the hardware you own by supporting all hardware forever.

comment 4y ago · link · parent

In practice the difference between constant factors is usually between 10 and 10^4, while input size can go up to 10^10 and more, so factors of sqrt(n) or higher will usually always matter, while factors of log(n) or lower will often not matter, and factors in between will depend.

comment 4y ago · link · parent

Linked lists only perform poorly if you iterate them, or otherwise access multiple items at once.

If you use them as a single-linked free list they are faster than a vector since you only need to fetch a cache line for the object rather than a cacheline for the object and one for the vector storing free objects.

comment 4y ago · link · parent

In general "Office" applications are a bad solution to any problem, so not using them at all is best.

For text, Markdown with inline semantic HTML if necessary and CSS stylesheets if needed is better, since it properly separates style and presentation unlike word processors.

For modelling, Jupyter-like notebooks are much better than spreadsheets since they properly label objects, don't make everything a 2D grid, and use a proper programming language.

For data, databases are better than spreadsheets.

Presentations are just documents, so there is no reason to use separate software.

For drawing you can use Inkscape and Gimp.

For collaboration you can use normal distributed version control like Git (with solutions like self-hosted Gitlab).

comment 4y ago · link · parent

For perfect security, the biggest problem is that you can't buy any hardware and can't use any third-party software because it could be malicious (and can't hire/delegate anything).

To serve anything via HTTPS you pretty much need a general purpose computer, which is going to be very challenging to build by hand from scratch starting from raw materials.

comment 4y ago · link · parent

Algorithmic stablecoins are impossible simply because all crypto not tied to outside assets can suddenly go to 0 value, and then any stablecoin is going to be worthless unless they are claims to outside assets (which requires trust in the issuer honoring them).

comment 4y ago · link · parent

Why not use normal networked storage (nbd/drbd, AWS EBS, etc.) instead of the ad-hoc Pageserver + Safekeeper architecture?

Or even better, use simple local SSD/HDD storage where data is small enough.

comment 4y ago · link · parent

Or, you know, put an UUID in the configuration and tag everything with it so that it knows what it created by just querying the tag (or similarly, using a namespace if supported, or putting the information in the resource name itself if possible).

comment 4y ago · link · parent

What's the advantage compared to using https://www.openstreetmap.org/ and Organic Maps, or self-hosting them? (the website is https://github.com/openstreetmap/openstreetmap-website and the tile server is https://github.com/gravitystorm/openstreetmap-carto/)

comment 4y ago · link · parent

As far as I can tell this is only done if the certificate if valid for the new domain, so this seems only exploitable if you have stolen the certificate public keys.

It might allow to do traffic interception after stealing the private keys without MitMing the connection, but in general you have to assume the adversary is all-powerful and can MitM anything and thus that a stolen certificate private key is catastrophic, so it doesn't really change anything in the worst case.

It also appears that it needs an address in common, so it doesn't even seem a problem from a correctness perspective, since if you were fine getting traffic for both domains on the same IPv6 address (and thus the same endpoint), then why would you not support getting it on the same IPv4 address, or viceversa.

Although it's not clear whether it's a good idea, it seems it might be better to require that the domains actually have the address that was connected to in common rather than any address.

comment 4y ago · link · parent

What? Surely it's much easier to tell a language by specifying it's two-letter code rather than a "flag" that may identify a country if you remember it, and which has nothing to do with a language

comment 4y ago · link · parent

Isn't this revolutionary for agricultural use?

What's the catch?

comment 4y ago · link · parent

Why would you buy a wireless keyboard for "daily work" which needs to be "no-fuss"?

You are putting your security at risk (who knows whether the encryption is secure or whether the Logitech drivers are backdoored), as well as your convenience since you'll need to charge it periodically and there's a good chance you'll forget it (or forgot to buy disposable batteries if that's what it uses) and be completely unable to use the keyboard for a while, and it will have more latency and may even fail to work due to interference; on top of that, you'll pay more for these drawbacks.

You should really only buy a wireless keyboard for very specialized needs where you need to move it around while not also moving the PC with it.

comment 4y ago · link · parent

The RISC-V design is the sensible one since it does not hardcode the vector register size; the other designs are idiotic since a new instruction set needs to be created every time the vector register size is increased (MMX->SSE2->AVX2->AVX-512) and you can't use shorter vector registers on lower-power CPUs without reducing application compatibility.

And it doesn't "loop" in one instruction, the vsetvl instruction will set the vector length to the _minimum_ of the vector register size and the amount of data left to process.

comment 4y ago · link · parent

You can do that with a smart contract if you plan ahead for the possibility that you want to do so.

comment 4y ago · link · parent

I'm surprised they can find enough people willing to pay 3000 gbp per night for that to stay in business.

comment 4y ago · link · parent

How would you change the syntax?

I don't think that Rust has much redundant syntax.

I guess you could do things like replace &'a Type with Ref<'a, Type> and *Type with Ptr<Type>, and get rid of some sugar like "if let" and print!, but I'm not sure that would have much of an impact.

comment 4y ago · link · parent

If they can ship the food to Odessa (presumably by truck or train), it seems like they would be able to ship it to a port in a non-blockaded foreign country instead (e.g. Turkey, Greece, Italy, Poland).

comment 4y ago · link · parent

I think the AI drawings are far better than the human ones.

The human ones are basically a collage of items accurately created to a strict specification, while objects in the AI-drawn ones are all integrated and more artistic and creative.

Although this is probably because the humans were people motivated by money who were paid to spend 15-30 minutes to make the artwork and just tried to check off the requirements (I can't possibly imagine a decent artwork being created in 15-30 minutes).

It's very interesting though that humans are more robotic than neural networks!

comment 4y ago · link · parent

The article's proposal seems worse than tab separated.

Not having escaping is unacceptable of course, and once you add escaping you might as well use the standard tab and newline characters as delimiters (and the \t, \n, \\ escapes plus \N for SQL NULL), resulting in a file that is properly formatted by the terminal and text editors and just works with Unix tools and most spreadsheet/database importers unlike a file with the weird separators the article proposes.

comment 4y ago · link · parent

As far as I can tell it's a useless language that will not replace anything.

It's memory-unsafe, so you might as well use C++ instead, or if you want a "newer" language, then use Rust instead.

comment 4y ago · link · parent

A mere 18 years after it was published in the SQL:2003 standard.

I guess better late than never.

comment 4y ago · link · parent

According to their paper, they used the "Hollywood" filter in FaceApp 3.6.11 at the highest level setting.

comment 4y ago · link · parent

SELinux works well on Android because the OS is delivered by a single entity and unmodifiable, and is maybe fine on a desktop, but on a custom server it seems to me that using VMs or containers as a security boundary is far better since it's trivial to understand and in the case of VMs more secure.

comment 4y ago · link · parent

To me, this feels like something that might be really useful in generating sample code and documentation for APIs, but I'm not sure the cost of producing those samples is worth it. The time taken to create just a basic template of a docstring is a few minutes, but the output is not great. However, as with most things AI, in time, those that work on this will refine it and make it better. But I don't think that's what this is currently about. In time, this would be quite useful for filling in documentation for existing packages and modules, but this is not currently the case. For now, I would just use something like this as a learning tool for learning how to generate docstrings, and not expect it to make any large contributions to my current work. I don't see this having the kind of AI sophistication that you can write whole apps with.

comment 4y ago · link · parent

_Your_ computer, maybe.

My workstation will certainly not be prevented from entering sleep by anything a webpage can do.

comment 4y ago · link · parent

The "The Dunning-Kruger Effect is Autocorrelation" article is an example of obvious bullshit.

Their claim that "If we have been working with random numbers, how could we possibly have replicated the Dunning-Kruger effect?" is the first blatantly false statement, and then the rest is built upon that so it can be safely disregarded.

It's easy to see this because while the effect is present if everyone evaluates themselves randomly, it's not present if everyone accurately evaluates themselves, and these are both clearly possible states of the world a priori, so it's a testable hypothesis about the real world, contrary to the bizarre claim in the paper.

Also, the knowledge that the authors published that article provides evidence for the Dunning-Kruger effect being stronger than one would otherwise believe.

comment 4y ago · link · parent

Seems like, at least as an initial implementation, the kernel could disable the feature when entering kernel mode and then manually mask all accesses to user space addresses. This way mistakes will not impact security but only cause spurious system call failures.
1
121314
51