Better HN
topnewbestaskshowjobs
Log inSign up

xtrapolate

529 karma · joined Jan 2, 2018 (8y ago) · 142 submissions

Submissions

comment 8y ago · link · parent

> "But switching off location will probably do it too."

Wrong. Phones can be triangulated by the carriers regardless.

comment 8y ago · link · parent

(1) I don't want to hire dishonest/unreliable/disingenuous people. I wouldn't want to work alongside them, and I prefer to distance myself from such personalities at all cost.

(2) From a job seeker's perspective, I don't want to be secretly spied on by a potential employer. I can (and often will) volunteer any information necessary, through a mutually agreed upon channel. I wouldn't want someone prying through my personal social network accounts, secretly contacting random people that may or may not know me from past workplaces. I wouldn't want a potential employer making baseless assumptions based on my social media accounts (or lack thereof).

comment 8y ago · link · parent

> "(Astute readers will notice they are all AMD (Socket AM4) motherboards. The whole Meltdown/Spectre debacle rendered my previous Intel system insecure and unsecurable so that was the final straw for me — no more Intel CPUs.)"

This is just random FUD.

(1) AMD boards are vulnerable to Spectre - https://www.amd.com/en/corporate/speculative-execution-previ....

(2) There are other vulnerabilities that affect AMD boards - https://community.amd.com/community/amd-corporate/blog/2018/...

(3) Vulnerabilities are found everywhere. That's not the first time vulnerabilities are found, and it won't be the last. How is that an argument for anything exactly?

comment 8y ago · link · parent

> "But maybe I'm wrong."

I don't think you are wrong. Timing APIs are tricky and complicated. The small print really matters. Experienced engineers will know this, and so the answer in this instance, as annoying as it may be - absolutely RTFM. Also, funky documentation/APIs exist everywhere, unfortunately.

Quoting the article:

> "You're a new coder, and you find yourself tasked with taking a Unix time_t type value and turning it into some kind of human-readable format"

I'd argue that's exactly the kind of mistakes inexperienced coders are prone to make. Hence we have code-reviews.

comment 8y ago · link · parent

I'd personally just prepare a small VirtualBox image with everything required to build the code, and release that instead.

comment 8y ago · link · parent

AI is large enough a field to warrant a new, dedicated track. In practice, as of current times, AI R&D/academia are enabled (perhaps even fueled) largely by the "traditional" constructs of computer science.

In my opinion, as time goes by and advancements are made, the coupling should grow weaker - and so we'll reach a point where there would be a more clear distinction between the two tracks, and they won't share much of the same curriculum, similarly to where we stand today with CS and electrical engineering.

comment 8y ago · link · parent

Correct me if I'm wrong, but Objective-C's ecosystem is very much Apple-centric. Things in that regard have only started changing fairly recently.

comment 8y ago · link · parent

Very interesting! On a slightly related note, I'd personally love to see more "C++ variants" (for lack of a better term) out there. By that, I'm referring to ecosystems/languages that are essentially a simplified/abstracted/modernized version of C, but ones that also still allow you to "break out" back to classic C at will. Thank you for sharing.

comment 8y ago · link · parent

> "ptrace (with PTRACE_O_EXITKILL from kernel 3.8+) is designed to be reliable for this."

One of the key points I'd like to raise is the (unsurprisingly) substantial performance degradation caused by tracing every syscall/ioctl a process makes. I submit tracing tens (or hundreds) of processes with ptrace/gVisor simply won't fly. Tracing the syscalls alone is expensive, let alone applying any other intricate mid-hook logic.

http://www.linux-kongress.org/2009/slides/system_call_tracin...

> "gVisor is a userspace application and is not itself tied to kernel implementations the way a kernel module would be"

I was referring to the never-ending chase that comes with having to keep tabs on any new/existent ioctls/syscalls. Ioctls are device/driver/hardware specific, which complicates things further.

> "This is true of existing container technologies. An application running under Ubuntu on bare hardware will potentially not run in an Ubuntu Docker image. You'll need to test it extensively."

There's a similarity, but solutions like VMWare/VirtualBox/hypervisors are fighting to be as transparent as possible to the underlying software. That makes things easier on software developers - as we don't all have to spend our time testing those products.

It would appear that gVisor is fundamentally different. It intercepts and tampers with the various syscalls a process makes with the sole purpose of affecting the underlying application - ie. failing a syscall that would otherwise succeed.

comment 8y ago · link · parent

> "It rewrites the syscalls to make them succeed"

Imagine some applications expect the syscall to actually fail (ie. some odd way to test permissions).

I fail to grasp how this is a strength. Pulling the rug from under applications is dangerous. You're in a direct battle with internal implementation specifics - you don't want to get into that as an abstraction layer. You don't want to tailor various hacks for specific applications.

comment 8y ago · link · parent

> "I guess it rewrite syscalls that would otherwise fail for lack of privileges"

That's not how access control works (on most systems). The system calls are still issued from a single process. If the gVisor process is running in the context of a non-privileged user, the system calls will fail regardless of the codepath.

comment 8y ago · link · parent

> "Since gVisor is itself a user-space application, it will make some host system calls to support its operation, but much like a VMM, it will not allow the application to directly control the system calls it makes." [https://github.com/google/gvisor]

TLDR; This is a user-space process that hooks syscalls/ioctls made by your "containerised" applications.

(1) This is hardly a strong security model. Proper security cannot be guaranteed by simply hooking API calls in user-space alone.

(2) With this framework in mind, developers now need to worry about yet another layer of indirection. Assume <application> was tested to work on Ubuntu, that fact alone is not sufficient to assume it will keep running under gVisor.

(3) I would personally like to see more documentation/benchmarks regarding the performance impacts that come with using this.

(4) This is strongly coupled with internal Kernel implementations. It will not be easy to port and maintain this across different Kernels.

> "but much like a VMM, it will not allow the application to directly control the system calls it makes."

From user-space? hold my beer.

comment 8y ago · link · parent

> "But the language isn't defined in terms of a CPU."

I disagree. I submit the whole reason we pass objects by reference or by value in the first place, has much more to do with conserving computational resources/reducing runtime, than with providing abstract programming semantics for software developers.

comment 8y ago · link · parent

> "Pass-by-reference: The formal parameter merely acts as an alias for the actual parameter."

"Alias" means nothing to a CPU, nor is it an ABI. At the core, passing by reference is usually implemented by providing the "address-of" something to a function (for example). The "address-of" itself, is passed by value. Going by that logic, everything everywhere is passed by value.

comment 8y ago · link · parent

Anybody aware of any browsers making this a trivial workflow? Any comprehensive list of recommended plugins? Anything targeting mobile platforms?

comment 8y ago · link · parent

I've been using this exact comparison, to pitch against web bloat (and bloated technology in general). Some more fantastic demos: https://www.youtube.com/results?search_query=farbrausch

comment 8y ago · link · parent

> "Guess what computers excel at? Driving consistently on consistent highways."

Possibly on paper. In reality, as of right now, computers are clearly far from excelling at this specific task.

comment 8y ago · link · parent

A video of the team at Ghibli having a late dinner together, as they near the release date of one of their bigger features: https://www.youtube.com/watch?v=0BPTNdmdJSc

They were working hard in that studio, with passion and conviction.

comment 8y ago · link · parent

> "No comments on how crazy this viewpoint is?"

Lucky you're here!

> "The state is anti-innovation"

Not in Sweden, it isn't. Ad hominem all the way.

> "They're arguing that a monopoly of the state is better than a "monopoly" of four different companies"

There are examples in recent history that support this model: https://en.wikipedia.org/wiki/1983_Israel_bank_stock_crisis

comment 8y ago · link · parent

> "even a small amount of data processing will make your program CPU bound pretty quickly"

I don't know what "a small amount" means. You are bound by hardware (cores, hyper-threading). It simply makes no sense to spawn 32 threads executing computation intensive code (no IO), on a machine with 2 cores.

comment 8y ago · link · parent

> "In languages that rely on the OS to schedule threads, the situation is much more dire, even with the great performance of NPTL on linux. Context switches are more expensive since they have to go to the kernel. And so on."

Which is a supporting argument against using a thread-per-connection. Use a reactor instead (IOCP, epoll, etc).

> "Generally if you implement green threads, such as in Erlang, Ruby, or Go, you can do "thread per request" very efficiently and in a cache friendly way - such that you should achieve the same performance as an event based model."

"Green threads" are not operating system threads, they shouldn't be confused. The runtime will still need some way to handle blocking IO, so under the hood, you will often find some sort of reactor/thread-pool/event-driven-system making it all work (it's simply abstracted for you by the runtime). Bottom line, a "Green-thread-per-connection" is not "OS-thread-per-connection.".

comment 8y ago · link · parent

> "It's just not trendy."

The "thread-per-connection" model doesn't scale. It's simply not resource-efficient in any way.

comment 8y ago · link · parent

> "They could have designed for privacy and real-time deletion of data"

Actually, they could not. If data is geo-replicated across multiple clusters, spread all over the place, divided into hot and cold storage layers - it's crystal clear you can't perform "real time deletion of data". Instantaneous deletion of all data, leaving no trace behind, can not happen under such complex constraints.

comment 8y ago · link · parent

Do you think it's as easy as "rm"-ing a file away? Your data is kept internally in a multitude of different databases. Parts of it sitting in cold storage. Log files, caches. That data is split across thousands of different nodes. Each system has different data retention policies. Some databases don't permit removal of a specific record - the records must "expire" first. It really does take time to delete data.

comment 8y ago · link · parent

This proposal is a compromise. Wouldn't a specific metadata/heartbeat "packet", routinely dispatched by the involved parties, serve a better solution?

My personal stand is to prohibit exposing any metadata on the connection whatsoever, but given the counterarguments, I don't think the proposed solution is ideal.

comment 8y ago · link · parent

Why are you being down-voted? What's going on? This case has been going on for years; he has been through hell. How is this a proper reimbursement?

Edit: Forgot it's yet another echo chamber community.

comment 8y ago · link · parent

You'll need to define a clear set of criteria. All of the aforementioned providers have similarities, and differences. Requirements, costs, SLA, support, availability, APIs, redundancy... it's an infinite list that you'll have to narrow down yourself.
12345