Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 12y ago · link · parent

are we going to get a better bash at one point? I've always felt like the only thing bash scripts are good at describing is I/O redirection. But conditionals, dealing with variables, pretty much everything else is frustrating and error-prone

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

Yeah I thought of that, I think banks/money handling services have responsibilities before the actual pulling out though (probably like how pawn shops can't accept goods without ID).

comment 12y ago · link · parent

If you try to put money into Paypal you'll likely create some link with a verified source (credit card, bank account). So if some investigation were to happen Paypal at least has some hints as to your real identity.

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

SQL are a leaky abstraction too, and ORMs get rid of an extremely high amount of common beginner errors.

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).

comment 12y ago · link · parent

I think this is more of a bug that could enable something like Heartbleed. So squashing this might make other bugs less interesting to exploit.

6036.

**Our Site Is Heartbleed Secure**(electricviolinshop.com ↗)

1 points · by rtpg · 12y ago · discuss

comment 12y ago · link · parent

You really shouldn't underestimate the value of having a skilled person in front of you to have a conversation with (that is why people pay consultants to tell them things they could find online).

comment 12y ago · link · parent

http://www.youtube.com/watch?feature=player_detailpage&v=0m6... A great little moment from this class.

comment 12y ago · link · parent

Nobody caught this bug over two years (supposedly). Stranger things have happened.

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

How can you make such a claim? Do you have any proof that they were involved with this specific bug?

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

I love my lunch break, lunch isn't just about eating.

The price aspect can be interesting , but I really don't need an excuse for my boss to get rid of my lunch break

comment 12y ago · link · parent

it's just probably correct ;)

comment 12y ago · link · parent

>Supposing you do hit the lottery and get a key somewhere in your packet, you now have to find the starting byte for it, which means having data to attempt to decrypt it with. However, now you get bit by the fact that you don't have any privileged information or credentials, so you have no idea where decryptable information lives.

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

GHC (the main Haskell compiler at this point) does some extremely amazing stuff on the compiler front, it is probably at the forefront of static analysis. And the Haskell community is extremely motivated to making amazing machinery.

A lot of Haskell stuff is based around its lazy evaluation model though

comment 12y ago · link · parent

>Sure, but how much slower is Haskell than an equivalent implementation in C? Some quick searching suggests numbers like 1000% slower...

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

those linked tests are extremely disingenuous, it only shows the fixed cost of FFIs.

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

>The problem with C is that a lot of people don't write it well.

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

>Additionally, although the parsing portions of OpenSSL need not deal with the hardware directly, the crypto portions do. So your memory-safe language needs some first-class escape hatch to unsafe code. A few of them do have this, others not so much.

For the other points there is some debate, but don't most serious languages have a C FFI?

comment 12y ago · link · parent

there are many other hosting solutions that offer Virtual Private Servers with a high percentage of guaranteed uptime.

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

Something I'm kind of wondering, how could one verify the claim "Yelp somehow makes negative reviews come in after a business declined ads".

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

>Do you think this will push the envelope toward greater acceptance of homosexuality?

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

A big difference is that bitcoin has the public ledger.

With cash, if both parties are complicit to keeping it secret, you can keep your acts secret. Bitcoin is very much not like that, and you have to try a lot harder to hide what you're doing.

comment 12y ago · link · parent

This hits the nail on the head. It's slightly unfortunate that many of the most vocal proponents for bitcoin are anarchists/libertarians who seem to disagree with the fundamental nature of things like law enforcement and taxation.

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

There's no such thing as a function with no arguments in Haskell.

f :: () -> T is a function that still takes a (meaningless) value

g = map f list is just a value.

comment 12y ago · link · parent

>What you are describing is just bad code/design that can exist in any language.

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

In a very meta twist, your comment reads with a slight undertone of "engineers are the only smart ones."

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

With something like Haskell (very good type inference) the types will only bother you if you're writing wrong code (or writing particularly complex expressions, I'm not necessarily against compilers complaining about things that are complicated).

It's not a free lunch, but damn is it cheap.

1
201202203
225