Better HN
topnewbestaskshowjobs
Log inSign up

acconsta

152 karma · joined Dec 20, 2014 (11y ago) · 169 submissions

Submissions

31.

How Distributed Systems Respond to Degraded Hardware(danluu.com ↗)

14 points · by acconsta · 11y ago · 1 comment

comment 11y ago · link · parent

Hello! I think it's possible to encapsulate unsafe pointer operations so they're only required in memory allocation, I/O primitives, and device DMA. I'll open a github issue or two with thoughts.

Out of curiosity, are you modeling this on an existing code base/architecture, or is this a new design?

comment 11y ago · link · parent

In the current Redox design, everything runs in privileged mode, so it's kind of the ultimate monolith?

comment 11y ago · link · parent

Along with iOS ad blocking, this seems like a big shift in Apple's stance toward Google.

comment 11y ago · link · parent

That looks excellent. What hardware?

comment 11y ago · link · parent

I know this is a young project, but right now it looks like a terrible waste of Rust's features. Raw pointers everywhere, most allocations unchecked, and 264 unsafes in just the kernel.

unsafe is a necessary escape hatch, but the temptation to use it to write C-style code is strong.

comment 11y ago · link · parent

>I could probably write a lengthy blog post on our experiences of C++ vs Java

I'd be interested in reading that. There's still a lot of FUD around using C++ for new projects.

comment 11y ago · link · parent

>the code usually doesn't even pretend to work

It does pretend to work for a while, often failing in another function, in another file, with a cryptic message. All preventable by a simple type check.

comment 11y ago · link · parent

Already exists for memcached!

https://github.com/scylladb/seastar/wiki/Memcached-Benchmark

comment 11y ago · link · parent

On Windows

comment 11y ago · link · parent

So it comes down to historical compatibility with B? Wow.

comment 11y ago · link · parent

Do any IDEs support large (million+ LOC) code bases?

comment 11y ago · link · parent

Yeah, although I don't know how parallel it is because OCaml. I think they might have gotten a multiprocess architecture working?

comment 11y ago · link · parent

Very interesting, thanks

comment 11y ago · link · parent

Source? How do you get 80% CPU utilization if you have to physically separate all your job types?

http://csl.stanford.edu/~christos/publications/2015.heracles...

comment 11y ago · link · parent

For... building software? I thought dependent types haven't escaped research languages.

comment 11y ago · link · parent

Yeah... so it seems like Linux containers can be sufficiently hardened?

comment 11y ago · link · parent

Take a look at sched_setaffinity and Intel DPDK.

comment 11y ago · link · parent

Google built multi-row transactions on top of a partitioned row store though? I guess I'm not really sure which applications have a shared memory architecture like the one you're describing.

And to be fair, some people are pretty productive in modern C++. It's a shame the JNI isn't better so you can have the best of both worlds.

(for the record, Quasar is #1 on my list of libraries to try if I go back to Java)

comment 11y ago · link · parent

Yeah, I get the impression Linus fucking hates GCC :P

That's good though. Compiler freedom is better for everyone.

comment 11y ago · link · parent

Me too. I've been thinking about doing an analogous benchmark in C++ for a while.

comment 11y ago · link · parent

No, but the Gmail team might be worried about some Russian guy finding a buffer overflow in YouTube's application. Then what? They can escalate privileges and read your email?

comment 11y ago · link · parent

It's not quite plug-and-play, but it does seem like there's been some progress.

https://lwn.net/Articles/644681/

comment 11y ago · link · parent

You can still offer isolated transactions, tunable consistency, etc. within a shard though, which Cassandra does.

And yes, you can write high performance Java, but for whatever reasons the Cassandra codebase isn't an example of that. They just did a big storage engine rewrite and the result is slower.

https://issues.apache.org/jira/browse/CASSANDRA-7486

comment 11y ago · link · parent

Are linux containers really not securable? That's how Google runs all their stuff in production.

http://research.google.com/pubs/pub43438.html

comment 11y ago · link · parent

Oh, oops. 471, 508 679, 766.

comment 11y ago · link · parent

What's weird is five hours after asking that question, no one has provided a reasonable explanation of why C requires arrays to become pointers on function boundaries.

My "online search" found Walter Bright, who knows a thing or two about C compilers, wondering the same thing:

https://news.ycombinator.com/item?id=7572011

comment 11y ago · link · parent

You can pass structs by value. Why not arrays?

comment 11y ago · link · parent

Right. I think that's mostly immutable containers though, right? Or is the compiler smarter than that?
123456