Better HN
topnewbestaskshowjobs
Log inSign up

codewright

1,191 karma · joined Oct 14, 2012 (14y ago) · 425 submissions

Hacker in SV.
Submissions

comment 14y ago · link · parent

trap door creaks open, a Symbolics Genera machine running Zmacs is behind codewright

You raaaang?

comment 14y ago · link · parent

It's not really common or standard to rely on a cluster of VM instances to solve your distributed problems for you these days.

For most programmers: Statelessness is the default, replication and fail-over are the back-up plan.

Talking about Erlang's "fault tolerance" as if it's some sort of secret weapon these days (it was more important 10-20 years ago) is a canard and distracts from the better parts of Erlang.

comment 14y ago · link · parent

Yeah but then you get to use Leiningen, not Maven.

Leiningen is manna from heaven.

comment 14y ago · link · parent

>I never liked Go, but I admit I like it a lot more if it means I don't have to deal with Maven and other dependency systems as much like the slides say.

Hrm, yeah, there are alternatives here. (Not in Java-land...other places.)

> I've been doing Android since it came out, but before that I was J2EE, and it could be hell if Hibernate needed a different version of a dep than something else in your code stack, for example.

You really should look into Clojure.

comment 14y ago · link · parent

Producing a different rabbit out of the hat that Google themselves don't use in production (from my understanding) doesn't change anything.

comment 14y ago · link · parent

The Java people had a very storied history of overstating

1. What was possible with Java in terms of performance

2. What use-cases were practical with Java and the JVM by conflating practical with "vaguely plausible or possible"

comment 14y ago · link · parent

Yes but the CDN itself is not Go, correct? That's kinda the point here, that nothing all that critical or core to the processes themselves are implemented in Go, even if the service as a whole functioning entity are important.

They want to know Go can be trusted to do the heavy-lifting most people would use C++ or Java for. So far, nothing that Google has publicized about how they use Go has indicated that their concerns are invalid.

comment 14y ago · link · parent

Not to be a smart-ass but:

http://talks.golang.org/static/slides.js

From that:

// Copyright 2012 The Go Authors.

So, I'm going to go with, "we wrote this ourselves and reused some code from other places in a couple spots".

Btw, holy-hell 2413 lines, they have to be using a generator for this.

comment 14y ago · link · parent

Nope, this is the one with the usb key scheme that wasn't designed with the consultation of a security firm.

comment 14y ago · link · parent

Wasn't this the company with the extremely questionable not-on-the-advice-of-a-security-firm security practices?

comment 14y ago · link · parent

That's not true at all. Not only are westerners rather proprietary about their freedoms, but most of the more politically engaged people I know read AlJazeera.

One of the most conservative people I know, a PoliSci major, gets a large portion of his news from AlJ. If you took that away from him he'd hoist the black flag and start slitting throats the next morning.

comment 14y ago · link · parent

A few points of order:

1. My first high-level language was Common Lisp (clisp).

>My point is that in certain scenarios where you need performance but aren't willing to pay the C++ grief, you can get away with better languages without significantly sacrificing.

2. And? I expressly said that when you need to be able to squeeze every last ounce and have total control over the behavior of the program and that's when this discussion became relevant. Close only counts in hand grenades and horseshoes. I'm talking about systems work.

comment 14y ago · link · parent

>Sorry, Java has many advantages. Speed isn't one of them.

This is part of my problem, very few who don't have to confront the challenges or disadvantages of their technology of choice seem willing to acknowledge them.

That is a dire problem in what is ostensibly an engineering discipline.

We don't get to say concrete has higher tensile strength than steel just because we think concrete is the best thing ever.

That programmers can't even agree on basic notions of what's true does a lot to discredit our field.

comment 14y ago · link · parent

Or for that matter, the C++11 concurrency primitives, smart pointers, type inference (auto), nullptr, lambdas, static_assert, <regexp>, stuff like http://libsigc.sourceforge.net/

List goes on...

comment 14y ago · link · parent

I'll assume you're talking about throughput, rather than latency/real-time constraints.

I'm pretty dubious, given that Google extensively utilizes C++ in their more performance sensitive portions of their architecture. Their custom web server, for example, is written in C++. Lets not forget the rather large HPC codebases out there in Fortran.

Can you prove any of this?

comment 14y ago · link · parent

Sadly I'd edited something just as you posted this, so I'll reiterate here:

What about building up arbitrary concurrency mechanisms from scratch such as is possible in C and C++? The impression I had from the IRC channel was that very little beyond tasks and a couple more lower-level tools for concurrency would be accommodated.

comment 14y ago · link · parent

You are willing to do things at runtime that C++ would never countenance. What parts of the runtime are non-optional? It seems like you'd be in a weird and precarious position, as well as lose access to a number of features, if you shut off the GC.

C++ doesn't assume the existence of a GC, because it's designed to make manual or semi-automatic memory management as performant or accessible as possible that mode of operation is better accommodated when the time for performance arises.

D let you shut off the GC too, except now you were "on your own".

What can't be shut-off that happens at runtime?

In C++, "pay only for what you use" isn't really a compiler flag (although some things are), it's a core design principle of the language and it was designed from the ground-up for that.

Adding a few compiler flags for a mode of operation that wasn't designed for from the beginning isn't really the same thing, no?

Further, Rust doesn't accommodate as much variety or control over the concurrency semantics for the sake of promoting the use of tasks. That is unconscionably unacceptable for systems programming where you need to be able to use virtually any approach to concurrency depending on the nature of the problem being solved.

comment 14y ago · link · parent

Lets not commit the same sin as the PyPy people, is it really faster than the C++ rendering engine? If not, how far off the mark is it?

I really want real numbers, not idle conjecture. Gosling was fond of speculating that Java would eventually be faster than C and C++ because of $COOL_FEATURE_X, but nothing ever materialized or made enough of a difference.

Concurrent GC didn't make up the difference. JIT didn't make up the difference. Why would I believe anybody else bringing the same message?

This cyclical "we're gunna be faster and here is the cool compiler research saying so!" is why the programming language community has thoroughly alienated my colleagues that work in systems.

They can't afford to build their systems on speculation, it HAS to work. They believe nothing anybody says about programming languages now.

What's the most impactful territory to conquer that could help make up the difference?

Rust's design allows for a subset of valid programs that could be constructed in C++. It's the same kind of thinking that Haskell utilizes. The type system is useful in Haskell because it disallows potentially invalid programs giving you a smaller space to reason about. (cf. Total programming)

However, that subsetting means avenues and opportunities for optimization are eliminated. Optimization sometimes means doing something batshit.

A high-level 6502 emulator a friend wrote in x86 asm comes to mind.

comment 14y ago · link · parent

I know the GC is designed to make a lot of task-centric things work nicely.

I mean, it's good that the GC is optional and I think Rust is well-designed but you get what I'm saying about "pay for only what you use". GC being optional alone doesn't constitute embracing that mindset.

It's a far-reaching sentiment that explains a lot of the stranger design decisions in C++. I'm sure Rust could end up being great for Servo, but there's more to how C and C++ get used than that.

It takes a lot of unintuitive design compromises to make a language that's just as suitable in a 4kb RAM embedded device as it is in an HPC cluster. Only a committee of people from very diverse backgrounds is generally going to be able to account for that sort of thing.

For better or worse, C and C++'s design-by-committee did result in languages that were capable of coping with a vast variety of extremes, even if it meant giving up a lot of 'niceness' and never really taking safety seriously beyond tooling/testing.

"Pay only for what you use" means safety optional, GC optional, dynamic allocation optional, everything. I know you're a very well read and highly experienced programmer and I have a lot of confidence in the Rust-dev team, but you are not replacing C++.

You're replacing C++ for Mozilla.

comment 14y ago · link · parent

>Despite claims of JIT compilation, automatic parallelism

My experience with repeatedly seeing claims like this in different contexts is that I'm not sure they've ever exceeded the performance of static binaries in pretty much anything.

They used to claim it for Lisp, then Java. I'm done waiting, I'd rather just use something I know can be made fast than hoping the PyPy guys do magic.

comment 14y ago · link · parent

>Many in the HPC community think anything that is not compiled is a joke.

As someone who works with a lot of Python/NumPy/SciPy, I can see how they'd come to that conclusion. Python's a great way to prototype, but a production runtime for high performance applications it is not.

comment 14y ago · link · parent

C++ programmers 'hate giving things up' and there's an imperfect and sparse subset of the language that any given sampling of C++ programmers use.

Getting consensus on what to take out would be difficult, considering a lot of the features aren't there to incrementally improve the lives of 'everyone', but rather to cope with an edge-case that could be a fatal problem for something specific. That's how a lot of committee work goes.

I wouldn't mind seeing such a thing. I find C++ intimidating, but I don't think the answer is to completely forgo utilizing it. Realistically my solution is to only use features I understand in relation to how something similar would look in C.

comment 14y ago · link · parent

It was poorly timed and the default GC terrified (C/C++) people.

It would've been more constructive for D to focus less on using GC and more on compromises and intermediate stages between fully static memory management and raw malloc/free.

Compromises like reference-counting pointers with various semantics available in Boost.

C++ didn't kill D, Java did. D was never going to replace C++.

Rust is doing a better job of making things like that available (unique pointer, borrowed pointer, etc).

That said, D didn't embrace "pay for only what you use" at a serious level because shutting off the GC basically left you in the wilderness and there weren't many accommodations made for making non-GC operation as good as possible. Rust doesn't seem to embracing that either for the sake of prioritizing safety.

comment 14y ago · link · parent

C or C++ are still (depending on background) the systems languages of first-resort for things like writing a database or an operating system. The exception to the former is usually Java depending on ecosystem and the programmers involved. (Cassandra, et al)

No-compromise performance still happens with C and C++. Secondarily Fortran and Ada for their respective industries. I doubt that'll change anytime soon as I'm not seeing any languages that are choosing the same priorities. Go isn't a systems language by any measure or estimation in design or implementation, and Rust is a type-safety-centric compromise that will likely end up somewhere around Java in performance. I'm not seeing much indication from the mailing list that safety-off all-go performance is a priority for the Rust devs because they seemed to favor avoiding the quagmire of a large C++ codebase.

I think realistically a "clean start" of C++ with the best of C++11 and earlier standards but removing a lot of the less worthwhile features would go a long way. Won't happen though. A lot of people avoid those problems by just writing C. Missing out on the cool reference counted pointers and compile-time stuff though.

Any language that wants to fully replace C/C++ has to embrace "pay only for what you use". Mandatory anything at runtime at the language design level is untenable.

comment 14y ago · link · parent

A lack of interest in marketing is partly why you don't have a plan9-esque userspace available to you by default.

comment 14y ago · link · parent

A surprisingly ideological interview. Combined with my run-ins with the go-nuts, I have to imagine there's some sort of general cultural coding cohort I've not fully understood yet.

This intersection between an obsession with minimalism of a particular sort and dispossession is unknown to me. Seems common to the Go programmers I talk to.

comment 14y ago · link · parent

>What type of horror stories have you worked on?

If you're a developer, then you know what sort of ridiculous proposals are common.

"Build my facebook clone for absolutely zero pay, but I'm feeling gracious so you get 15%!"

I do, however, like the idea of working on granular bits of startups and distributing my risk in a way that makes me more likely to have something take-off than committing to a single startup but not necessarily having any more control than the 'freelancer' mode.

comment 14y ago · link · parent

Could you please explain the tenancy/virtual servers mechanic of your service? The copy on the website isn't clear. (Also, OH GOD that font. OH. GOD.)

It's not clear to me whether I'm getting my own server (effectively dedicated?) for $136/month or not.

Further, what if I don't want multiple-tenants on the hardware? What does it cost me to effectively treat each physical server a single logical unit? Is that even possible?

I mostly want a more elastic alternative to dedicated servers. Is your service along those lines?

comment 14y ago · link · parent

I had less experience then than I do now, despite that, still had a better run of it.

Maybe I was just better at picking my work when I was a consultant. Hard to tell.

comment 14y ago · link · parent

I'm a little dubious too, but Amazon has a track record of doing things like this (The Animal Farm/1984 fiasco), whereas Apple seems to respect that they've sold their customer something.
1
1112131415