Better HN
topnewbestaskshowjobs
Log inSign up

devit

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

Submissions

comment 6y ago · link · parent

The problem of this is that it doesn't have a notion of "world state" other than the text of the latest interactions, so you can do anything but it feels like nothing matters.

Fixing that seems very hard though.

comment 6y ago · link · parent

How about the obvious solution of not having ANY data transfer out?

Encrypt and sign the data via NaCL or similar, send via UDP duplicated 5-10 times, no response at all from the server (it's analytics, it doesn't matter if very few events are lost and you can even estimate the rate).

As for the REST API, deprecate it and if still needed place it on whatever 3 VPS services have the lowest costs, and use low TTL DNS round-robin with something removing from DNS hosts that are down.

comment 6y ago · link · parent

The actual effect might not correspond to the stated goal.

For instance, it may be applied to "protect the people currently in power in the country" instead of "protect the [people living in the] country".

Business surveillance might be less problematic because laws and government are supposed to make businesses acting for their own interest not be a problem (or be less of a problem), while the same mechanism for governments (constitution and supreme courts) is less restrictive.

comment 6y ago · link · parent

It's interesting that it seems that some very short propositions require very long proofs.

Are there any results on the length (or maybe Kolmogorov complexity) of the shortest proof for provable propositions of length N? (in a specific logic system, I suppose)

I.e. how hard to prove is the hardest proposition of length of N and how does it grow with N? how about the average random provable proposition?

comment 6y ago · link · parent

The idea is not to release "corporate comms", but in full transparency, honesty and with complete willingness to be proven wrong release all the data (email messages, meeting transcripts, web sources, documents, spreadsheets, simulations, etc.) the decision was based on and your thought process.

comment 6y ago · link · parent

Regarding the data policy, is the reason that the risk of someone leaking information is now being perceived as higher than in the past?

If so, why? Have there been leaks? Is there a plan to hire a bunch of new less vetted employees?

Or maybe it's a manipulative attempt to make those with undesirable cultural traits (including a desire for internal openness) leave the company without saying so explicitly?

comment 6y ago · link · parent

Not explaining is a bad idea, since it means that people who disagree have no chance to be convinced or even understand the motives if not convinced, so they are much less likely to effectively cooperate with the new course.

Instead, explain at length and let people discuss, but at some point explain that the decision is final unless some major new elements come up.

comment 6y ago · link · parent

It's not a terrible hack, it's just 32-bit virtual addresses with a larger physical address space.

It only caused problems because some kernels used to expect that all physical memory is mapped at all times (and some hardware could only DMA to 32-bit physical addresses, but that's a problem with 64-bit CPUs as well).

comment 6y ago · link · parent

It should be used when you can prove that the error never happens, although unfortunately the compiler can't check that.

comment 6y ago · link · parent

Probably should at least change the title, since this is a sales pitch for Network Next and not an article about multiplayer games.

comment 6y ago · link · parent

Note that this is only catastrophic when using realtime thread priorities, i.e. thread priority kinds that cause a runnable higher priority thread to run instead of a lower priority one regardless of how much time they have been running already.

In general OSes, the commonly used thread priorities are not realtime, and you need admin/root to set realtime thread priorities.

Also indefinite deadlock can only happen if realtime threads want to take up more CPU than available (which in particular requires to not have more cores than realtime threads), since otherwise they will eventually all be sleeping/waiting, allowing any threads waiting on the mutex to run.

comment 6y ago · link · parent

Assuming this can recommend clothes that someone is going to immediately love based on previous purchases, this seems incredibly valuable for all the fashion e-commerce sites starting from Amazon, and could in fact turn any large site with this technology into a monopoly at least until someone replicates it.

Of course it needs to actually work though, which is not clear from the article (categories like "comfy" aren't going to cut it, you probably need a sophisticated deep learning approach on product images plus brand identity data and maybe Instagram posts with a lot of training data).

Obviously you can also run a store or an affiliate-based site yourself with it, but the problem is that you are going to be missing data on customer's taste; maybe you could exclusively cater to people who love posting their photos on Instagram, connect to their Instagram account and understand their fashion taste from their posted photos - or you could even support imitating someone else fashion's taste by looking at their Instagram profile.

comment 6y ago · link · parent

Testing with mocks is generally a bad idea; instead, one should just test using the same dependencies that are used in production (after testing those dependencies, if also part of the project).

This avoids having to introduce the extra interface, having to code the mock, sometimes having to change the mock or tests when changing the code and also lets you catch bugs in the dependencies that the tests on the dependency itself missed and that would otherwise show up in production.

One might have to do some work to partially replicate the production setup in testing and making it fast to start and run, but that's usually less work and gives a much better result.

comment 6y ago · link · parent

Are there cases of such boilerplate that are not solved by macros?

comment 6y ago · link · parent

One line bash solutions: https://pastebin.com/QnKJEXxt

comment 6y ago · link · parent

Third party crates can include malicious safe code that doesn't exploit any soundness bugs, so I'm not sure how exploiting soundness bugs could make the situation worse.

It's only a problem if you try to restrict I/O APIs and use the Rust type system as a security boundary, which is something that I don't think anyone does and that should not be done since the surface area is too vast to secure without formal proofs of the whole Rust stack, which are too time-consuming to produce with current technologies.

comment 6y ago · link · parent

Not sure about the exact official stance, but can't imagine it's anything other than eventually fixing all soundness bugs, at least as long as someone is willing to do the work.

However, an important thing to note is that Rust strives to be safe only against unintentional bugs, and not against intentional malicious code (against which you are supposed to use OS/CPU-level sandboxing), so unsoundness issues that are very unlikely to be accidentally triggered aren't necessarily a very high priority.

This is a reasonable policy, since current Rust does not have a certified provably correct compiler and Rust programs in current practice don't come with formal proofs, so full provable soundness in type system doesn't really translate to any useful properties, since programs can intentionally fail to do what they are supposed to do in other ways (just do something safe but malicious or incorrect or exploit bugs in rustc or LLVM).

For instance, this issue is very unlikely to be triggered by non-malicious code, so emergency action to fix it is not being taken, and instead it will probably be fixed only once there is clear consensus on the best fix.

comment 6y ago · link · parent

Why "Download Firefox Nightly for macOS"?

Is it not supported on Linux and Windows? Why?

comment 7y ago · link · parent

No, you can of course allocate W+X pages from the OS and put multiple closures in them using a standard userspace memory allocator.

Or if the OS doesn't support W+X allocation at all, then you can have a bunch of tightly packed pregenerated trampolines in the binary.

comment 7y ago · link · parent

Browsers could just present an appropriate error page when a domain has an AAAA record but not an A record.

comment 7y ago · link · parent

Is IPv4 shortage really going to be a problem?

For client use, carrier-grade NATs allows to have 1000 IPs per customer, giving 6 million addresses.

For server use, TLS SNI allows to have one IP per datacenter, which are estimated to be around 10 million in the world.

Non-TLS inbound usage is probably relatively rare, so overall around 100 million addresses should be fundamentally enough even accounting growth.

Of course there's a lot of inefficiencies, but the fundamentals seem to say that the IPv4 address space is enough.

comment 7y ago · link · parent

That's only if one assumes long-term monogamous relationships, but there's no reason to only consider those.

In fact, if a dating app worked very well, non-monogamous and short term relationships would probably be more satisfying.

comment 7y ago · link · parent

How about getting the browser and OS makers together to use an alternate DNS system?

It only needs Google, Mozilla, Apple and Microsoft to agree and ICANN can be made irrelevant overnight.

comment 7y ago · link · parent

Looks horrendous to me, but I guess many people love it.

Also, "truck" doesn't seem appropriate at all, maybe "tugcar" would be?

comment 7y ago · link · parent

Seems like these guys need to learn the concept of consent, i.e. that if you try to force someone to do something they don't want, they aren't going to stick around with you.

comment 7y ago · link · parent

Physically removing the number pad and the arrow keys can be useful because it allows the mouse to be placed closer to the center, but removing the number row and function keys doesn't seem to provide any significant benefit for desktop usage.

comment 7y ago · link · parent

Well, generally you can, approximately, given C/C++ code, produce Rust code that should give equivalent LLVM bitcode to the one produced by clang on the C/C++ code, so it should not be possible for Rust to routinely lose benchmarks to clang with a significant margin given enough effort in benchmark construction.

comment 7y ago · link · parent

I'm curious about why they decided to develop Allsorts instead of just using Harfbuzz.

comment 7y ago · link · parent

It likes with C++ not having a proper module system enforcing properties like module import order being irrelevant, and the glibc developers apparently failing to produce modules having such properties even if the language doesn't enforce it.
1
303132
51