Better HN
topnewbestaskshowjobs
Log inSign up

devit

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

Submissions

comment 10y ago · link · parent

No, this is not surprising at all.

It's impossible to determine whether software is malicious or not (Rice's theorem).

Antivirus software only reliably detects code that is identical to known malicious software.

comment 10y ago · link · parent

Wow, the C++ AI linked at https://github.com/nneonneo/2048-ai is really well written.

Anyone who is interested in learning how this kind of AI works would be well served by studying that code.

comment 10y ago · link · parent

Look into https://github.com/QubesOS/qubes-antievilmaid and https://github.com/mjg59/tpmtotp for better attempts to provide an effective but still partial solution to this problem.

comment 10y ago · link · parent

It would be nice to also consider completely dropping support for non-TLS SMTP.

Unlike HTTP where connecting to abandoned non-TLS websites can be useful, e-mail is only useful if someone is reading it, and if they are reading it they can take action to enable TLS.

comment 10y ago · link · parent

They could issue dividends or in theory offer something equivalent like "futures" offering to pay X% of the company revenue or profits in Y years or a legally binding promise to buyback stock on a future date at a valuation based on revenue or profits.

comment 10y ago · link · parent

The article is dangerously wrong in its discussion of IFS.

What you should do to avoid the problem of mishandling spaces is use proper quoting (for i in "$@"; do ...), not changing IFS; setting IFS to \n\t will still break embedded tabs and newlines.

In general, in bash scripts any of use of $ should always be between double quotes unless you have a reason to do otherwise.

comment 10y ago · link · parent

Why not use 64-bit ids to prevent wraparound, at least as an option?

A storage design that requires periodic maintenance doesn't seem a good one.

comment 10y ago · link · parent

Cars are used everyday by a large part of the population and are very useful and often essential for transportation.

Guns are only useful in rare cases for preventing or stopping crime, and most people don't have one or if they do they have never used it beyond practice.

comment 10y ago · link · parent

The real issue is: why do hotels cost so much?

It's just a normal room, so renting an hotel room for 30 days should cost as much as the rent of an N room apartment shared with N people, but somehow costs can be 3-10 times more.

For instance, typical prices can be 300$ for renting a cheap shared apartment room for a month while the cheapest hotel rooms costs 50$, while they should instead cost 300/30 = 10$.

That's why people use AirBnB and share apartments with roommates for more long term stays, otherwise everyone would just live in hotel rooms, which would be far more efficient and reasonable.

I suspect the problem might be government regulation.

comment 10y ago · link · parent

I/O will hopefully be "faster" for PCIe SSDs and maybe other devices, with no other differences visible to non-kernel developers.

comment 10y ago · link · parent

Because they are spending donated money on something with a huge chance of failure and limited upside.

Some probably even suspect that it is a vehicle for funneling the donated money to the top management's personal pockets since that's a good explanation for why they would go ahead with something so ill-advised.

comment 10y ago · link · parent

From the paper: "In order to decrypt one TLS session, the attacker must passively capture about 1,000 TLS sessions using RSA key exchange, make 40,000 SSLv2 connections to the victim server and perform 2^50 symmetric encryption operations"

In other words, while this compromises TLS when SSLv2 is enabled, it seems to be only maybe practical for targeted use by state actors, and even then easily detectable by network capture.

comment 10y ago · link · parent

Considering that there are definitely more than a hundred major contributors to the Linux kernel, it's not unreasonable that a single one's contributions only make up 1% of the total.

comment 10y ago · link · parent

Why isn't Canonical using btrfs? (which is supposed to provide many or all of the features that one would want to use ZFS for, and is GPLed)

comment 10y ago · link · parent

It seems to me that the real issue is that "rm -rf" should by default not recurse into mounted filesystems, but should at most try to unmount them.

In addition to clearing EFI variables, the current behavior will also attempt to clear any mounted removable drives and any mounted network drives, which is usually even more harmful than messing with EFI.

Of course that would be a backwards incompatible change, although I don't think many scripts rely on this behavior.

comment 10y ago · link · parent

... and are not using authenticated encryption as you should.

comment 10y ago · link · parent

They don't hide the name because you cannot hide the name while legally owning the domain yourself.

Services that hide the name actually result in a company (e.g. "Domains by Proxy LLC") purchasing and holding domain ownership for you, which is a very different legal arrangement with different risks.

comment 10y ago · link · parent

JavaScript web apps are fine, as long as they are "isomorphic", i.e. the front-end code is also run on the server and the resulting HTML is sent to the client, and as long as it's possible to at least navigate to and read all the content without having JavaScript enabled.

comment 10y ago · link · parent

You can probably work around this issue by using hundreds of parallel TCP connections in a round robin fashion.

Assuming you are sending a packet per frame, this setup means that you are only sending a packet every few seconds per TCP connection, which means retransmissions should have already happened by the time you send another packet.

comment 10y ago · link · parent

Those that value time over money more are clearly likely to be richer (or even just feel richer), so the conclusion seems pretty obvious, unless they controlled for that.

comment 10y ago · link · parent

This is for Cyanogen OS, not CyanogenMod.

CyanogenMod is the "canonical" generic Android distribution, while Cyanogen OS is a derivative created for monetization purposes and installed by default on some devices.

comment 10y ago · link · parent

Also consider instructions for efficient atomic reference counting, with traps on both inc (overflow) and dec.

In particular, they can have weaker ordering semantics and they can be buffered and elided among themselves (obviously with some sort of inter-core snooping).

And possibly support for "tagged" numbers, e.g. add integers if high bit is not set, call function otherwise, same for floats if not NaN, with a predictor for them.

comment 10y ago · link · parent

Based on the sort of issues fixed, it looks like no one ever bothered to benchmark it until now.

comment 10y ago · link · parent

How is it really advanced?

I was under the impression that it's just another dynamic scripting language semantically equivalent to Perl5, Python, Ruby, JavaScript, and so on.

And obviously new languages of this kind aren't going to be very successful or interesting because knowing and using JavaScript is going to be mandatory forever due to browsers and with Babel and ES6/7 it's as good as any other such language.

Plus in addition to JavaScript, Ruby, Python and PHP have a lot of momentum as well.

comment 10y ago · link · parent

You can use a dedicated e-mail address for accounts.

comment 10y ago · link · parent

As far as I can tell this proposal allows to ensure that it is possible to "factory reset" a system in a way that removes all malware, and also allows to "dual boot" OSes without any of the OSes being able to compromise the other (by flashing malicious firmware which then exploits the other OS on a subsequent boot).

It also prevents some more exotic attacks like replacing the BIOS (but not any hardware) with a malicious one as the laptop is delivered, used without network access (but not with network access) and then stealing the laptop and trying to read unencrypted user data leaked by the malicious BIOS.

It is not effective against undetected arbitrary physical attacks (insert a keylogger between keyboard and motherboard) or against persistent software attacks against a single vulnerable OS (persist via the OS autostart mechanism and exploit the OS on each boot).

Having an external stick also mitigates detectable physical attacks (e.g. theft of laptop, or manipulation detected by a broken tamper-proof seal) where the attacker has already stolen the encryption password, since they still won't get the stick and thus won't be able to get the data anyway.

The stick being external doesn't seem to provide much advantage otherwise, since if the laptop hardware is malicious it doesn't help, and if it is not malicious then an internal trusted stick equivalent works just as well.

comment 10y ago · link · parent

Did Apple seriously silently change all programs to use what seems to be real-time scheduling?

That obviously breaks the whole system, spinlocks or not (threads doing long CPU-bound computations will block everything else).

comment 10y ago · link · parent

That's not correct.

It's perfectly possible and trivial to put in a backdoor that only works for people who have access to a specific private key.

Obviously if that private key gets stolen anyone can then access the backdoor, but that's true for anything, and you can mitigate it by storing the key in self-destructing immovable hardware with access limitations, as well as periodically changing the keypair (with signed updates).

The real problem is that there is no single "good guy" to entrust with that private key: in particular humans are inherently not fully trustable or good and both individual consumers and other governments have no interest in using or allowing backdoored products.

comment 10y ago · link · parent

Final by default is correct, since otherwise you are effectively exposing and having to maintain an extra stable API towards subclasses, which is a nightmare and won't be done properly unless it's intentional.

In fact, having virtual methods at all outside of interfaces/traits/typeclasses is dubious language design since it meshes together the concepts of interface and implementation and makes it inconvenient, impossible or confusing to name the implementation instead of the interface.

The issues in the discussion are instead due to Apple's framework code being closed source and unmodifiable by users and developers, and also buggy according to the author.

comment 10y ago · link · parent

Why would you use this instead of login with Facebook/Google/Twitter/etc., which only requires two clicks from most users and actually has better privacy implication since the user knows which data you can access?

Or maybe the goal of the service is for web sites to surreptitiously get more data from users who are otherwise unwilling to provide it, but are somehow willing to provide an e-mail address tied to their real identity?

1
424344
51