21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 12y ago · link · parent
I use fish as my main shell and its slightly better, but just testing things on variables can be a huge mess.
comment 12y ago · link · parent
With coinbase people could put in their (mined) bitcoins, and then sell them. In that case Coinbase has effectively no way of figuring out who you are.
comment 12y ago · link · parent
Using raw SQL instead of an ORM is one of the best examples of premature optimization I can think of (unless you are very very good at SQL and have a very complicated structure).
6036.
**Our Site Is Heartbleed Secure**(electricviolinshop.com ↗)
1 points · by rtpg · 12y ago · discuss
comment 12y ago · link · parent
comment 12y ago · link · parent
Also, while the NSA might have wanted to create this bug to exploit it, you still haven't shown that they created this bug. They might have known about it and exploited it, but saying they put the bug in the first place is a very strong claim.
comment 12y ago · link · parent
I get that the NSA is after us but when you consider that the bug is of the exact same class as a bug every C programmer has ever made in their career, it seems probable that it could have happened on accident. Where do you see the malicious intent?
comment 12y ago · link · parent
Login page of any SaaS will be transmitted over SSL and you'll know what it looks like a priori.
comment 12y ago · link · parent
A lot of Haskell stuff is based around its lazy evaluation model though
comment 12y ago · link · parent
With things like stream fusion (http://research.microsoft.com/en-us/um/people/simonpj/papers...) , which I imagine would capture a lot of crypto calls, GHC can generate some very performant code (paper contains examples of hand-written C code being beat by Haskell code, and the C code is far from naive).
There are a lot of tricks at your disposal when you know more about the state of the code. And compilers are usually better than humans in this regard.
comment 12y ago · link · parent
Considering that in C the plusone call is 4 or so cycles, and the Java example is 5 times slower, that's only 20 or so cycles. If the function we're FFIing into is 400 cycles, that's only a 1% decrease in speed. I'm willing to pay that price if it means not having to wake up to everything being vulnerable every couple of months.
comment 12y ago · link · parent
There are languages that make it very very hard to write bad code. Haskell is a good example of where if your program type-checks, there's a high chance it's probably correct.
C is a language that doesn't offer many advantages but offers very many disadvantages for its weak assurances. Things like the Haskell compiler show that you can get strong typing for free, and there's no longer many excuses to run around with raw pointers except for legacy code.
comment 12y ago · link · parent
For the other points there is some debate, but don't most serious languages have a C FFI?
comment 12y ago · link · parent
For example, with Dreamhost you can get a VPS for ~$15 a month. If your e-mail isn't worth that much to you, then why are you bothering to self-host your e-mail anyways?
comment 12y ago · link · parent
I hear it so much in this that I feel like it's something worth investigating (without wanting to actually claim that I think that's what is happening).
comment 12y ago · link · parent
Well at the very least it will make life harder for bigots.
Seriously, this isn't about the fact that Eich donated to Prop 8 5 years ago, it's that he seems to still hold this position. He has had ample time to offer an apology( in a sort of "facts change" manner) and the fact that he hasn't makes the case that he still believes in oppressing homosexuals pretty strong.
Free speech is not consequence-free speech, and he's still able to say what he wants. But expecting people to ignore who he is when he's representing one of the most symbolic companies in the open source communities is unrealistic.
Why would any of us want someone with those social views representing the tech community at large (especially at a time where so many -ism's have shown themselves to be prevalent). If he just wanted to do tech, maybe he should have stayed CTO.
comment 12y ago · link · parent
Bitcoin ends up being two things: one is a fiat currency that is made for digital transactions. This point is the one that could actually generate a lot of wealth. The other one is that it's decentralised. A lot of proponents buy into the myth that this means that it's anonymous, but it's not really. If enough of the market decides against anonymity they can force it, and the public ledger can help a lot with that. But this second point is portrayed under the myth of anonymity and policy makers start freaking out, and the rest of us can't get what we really want (an easy way to pay for stuff).
Some people think that this can become a sort of general revolt against the dollar or whatever, but so long as taxes exist and the government has guns, we're probably not going to get far down that route.
comment 12y ago · link · parent
Actually the problem he is describing is a consequence of language design, not of architecture design.
In Javascript, if I write foo.bar, I know that it is accessing some field of the foo object, and that's it. Unfortunately we're going to get a bunch of stuff in ES6 that's going to change this, but the fact that we can have some invariants (especially in a dynamic language like Ruby) on property accessors is pretty important when trying to reason about performance.
The fact that Ruby only exposes methods is a language design decision that can enable some pretty bad architectural decisions.
Language features are about tradeoffs .For example, among other things, the calling syntax for ruby means that point-free functional programming is pretty much impossible (though there are possible language-level solutions for this). Depending on what you're looking for, that can be considered a flaw , because it deviates from your personal definition of the ideal programming environment.
comment 12y ago · link · parent
Engineers might end up with the keys to the servers, but many problems (and solutions to them) are not very technical. Things like the copy on landing pages, or customer support workflow, and many other problems businesses can face are only technical in that at one point an engineer will do something.
But it's not just engineers that have this problem. Designers can get them, marketers can get them , etc. Any opportunity for there to be cognitive dissonance will be exploited by Murphy's Law to make people's lives like this
6057.
Levie is down to a 4% stake in Box. How does he feel?(quora.com ↗)
1 points · by rtpg · 12y ago · discuss
comment 12y ago · link · parent
It's not a free lunch, but damn is it cheap.