1,191 karma · joined Oct 14, 2012 (14y ago) · 425 submissions
comment 14y ago · link · parent
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
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
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
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
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
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
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
List goes on...
comment 14y ago · link · parent
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
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
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
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 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
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
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
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 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
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
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
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
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?