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 10y ago · link · parent

Persistent is an ORM that doesnt support SQL stuff entirely. So replacement for SQLAlchemy ORM but not Core

If you want to be at the same level of abstraction as SQLAlchemy Core, you'll want to try esquelito (a SQL DSL).

comment 10y ago · link · parent

A powerful aspect of foursquare is even if you don't check in, they've likely marked you as having been in a restaurant.

Feel like Yelp could at least use this for popularity measurements

comment 10y ago · link · parent

I agree with the sentiment, but I don't think you're going to spend just $1B to get to $10B/year. Does Google get to that number with anything apart from Search and Youtube?

Though I think even $1B for a $100M/year business is a pretty decent deal at this point...

comment 10y ago · link · parent

But isn't requests built off of urllib?

The thing I like about python is it gives tools for library writers to build things without going too low level.

Application writers will always write with better libs, but don't have to worry about third party lib compatiblity on platforms because of the stdlib serving as a virtual machine (most of the time)

comment 10y ago · link · parent

Funny cuz in Tokyo everyone uses an umbrella, the reasoning I heard from a co-worker being if everyone else rain jackets the trains would be a mucky mess

comment 10y ago · link · parent

If a person told you about the IDs and you then used this resulting info, is it insider trading?

I wonder how many degrees away from the base info you have to be for it to be an issue

4537.

Bank of America made $168M last quarter, more or less (2014)(bloomberg.com ↗)

1 points · by rtpg · 10y ago · discuss

comment 10y ago · link · parent

But if you have a large standard library and want to break the API, you can.

If you have 100 different libs that are basically "standard" (who doesn't have `mtl` in their applications at this point), now you have to coordinate 100 different library updates roughly at the same time. If you forget even one of them, then you've broken everything.

I think the argument for a large Prelude/standard lib is similar to Google's "single repo" argument: Easy to catch usages and fix them all at once. Plus you're making the language more useful out of the box. People coming from python can understand this feeling of opening a python shell and being productive super quickly form the get-go.

Arguments for small std lib exist, of course. But Giant standard libraries are more useful than not.

EDIT: I think the failure of the Haskell Platform has a lot more to do with how Haskell deals with dependencies, and the difficulties it entails, than with the "batteries included" approach itself.

comment 10y ago · link · parent

Standard. I've gotten one on basically every int'l flight to/from US I've been on for the past couple of years.

comment 10y ago · link · parent

And there aren't monthly mass data leaks of cards.

comment 10y ago · link · parent

Yeah that's a good point. I don't really think these services are "at cost", though: isn't the whole point of this industry that marginal costs are super low?

comment 10y ago · link · parent

I think Apple has it's issues, but isn't this textbook Innovator's Dilemma? Newer vertical looks small compared to established vertical, thus dismissed.

$400 every two years (assuming 50% profit per phone!) is just $17/month. If Apple can convince you to pay for 2 or 3 of its services, then they're gold.

Where does the "11 years" comment come from though? How do you figure that?

comment 10y ago · link · parent

Great opportunity to get rid of tipping altogether and just set a 15% service charge!

comment 10y ago · link · parent

Nobody knows how to express contracts formally, not even "real" lawyers. There are almost always clauses about force majeur, and then humans talk to each other.

4545.

Supercharged Types(rtpg.co ↗)

2 points · by rtpg · 10y ago · discuss

comment 10y ago · link · parent

I think there's a couple of steps here that make it not a cycle:

- Lots of languages used static typing for implementation ease/ no need for VM (probably not as much for safety issues, given the many failures of C's type system). Also, lack of GC meant that memory management is a big deal, and types and memory management are pretty linked.

- It's verbose though, and you can still easily make mistakes, so dynamic languages offer both cleaner code and the safety checks weren't that useful anyways (again, this is from C/Java land. Null pointer exceptions!).

- Newer static languages offer even better type systems that catch an order of magnitude more bugs. And type inference means that it doesn't affect legibility nearly as much.

So we're basically progressing on all axes at once. Language design isn't zero-sum, luckily.

comment 10y ago · link · parent

Historically this cost was a lot higher though.

It's only fairly recently that mainstream languages had type inferencing. Before it could be quite costly (and affect code legibility too)

comment 10y ago · link · parent

We have direct contacts with Stripe through Slack. Though in our case we're providing a Stripe integration as well as our own services, so our issues are sometimes a bit more complex

(as an aside: Stripe integrations are amazingly easy to do. Stripe Dashboard is the canonical example of "API as a dashboard". Everything you think is possible in the API is doable through the UI)

comment 10y ago · link · parent

CC serves as verification. Bitcoin has less fees.

So it's like "providing an ID", and then paying. Even if bitcoin is not "anonymous" (pseudonymous), there's still the decentralised+cheap nature of it that's worthwhile.

comment 10y ago · link · parent

"Merrill Lynch is Fined for Doing Nothing" http://www.bloomberg.com/view/articles/2016-06-23/merrill-ly...

4551.

Introduction to Nintendo DS Programming (2008)(patater.com ↗)

1 points · by rtpg · 10y ago · discuss

comment 10y ago · link · parent

that's if you implement it as a function :)

You could totally implement these things as compile-time macros, or do many different optimisation passes, or so many other things.

comment 10y ago · link · parent

I'm not going to do the whole spiel about performance, but I know a lot of FPers who wouldn't care about the implementation of map, so long as the external contracts are kept.

The beauty of functional programming is that it doesn't matter how map works. So you can make map work as fast as possible through all the techniques you want, since code can't rely on the behaviour. Only on the input.

comment 10y ago · link · parent

Well, you've reduced the risk of someone MITMing your users connections. So now your risk is of someone MITMing CloudFlare's connection.

My impression is that this will rule out most coffee shop owners from tampering with the connection through their router. Even if state actors can still get at your content, this is still better than "no SSL whatsoever".

Honestly, though, for anything beyond "static HTML on some server somewhere", basic SSL conf. is a 30 minute one-time job...

comment 10y ago · link · parent

>Afshin Pishevar left a hangman’s noose on BamBrogan’s desk. The filing includes a security camera image of a man, apparently Pishevar, holding rope and walking through the office.

What the literal fuck. This guy must have watched way too many movies. How could this lead to anything positive?

Filed in the "this is why we can't have nice things" folder.

comment 10y ago · link · parent

PyCharm has support for python notebooks, but I don't know how well it works with remote systems.

comment 10y ago · link · parent

Because the hardware clones are not sufficient. You need to make a sort of menu system + deal with hardware connections.

Simple ARM chip + software emulator means you could just do everything one one chip without headaches. Plus it'll likely be cheaper.

comment 10y ago · link · parent

Yeah though even then it was connected to the coffee revenue, right?

I feel like this school of thought is also the one that ends up with things like "3 strikes and you're 25-to-life"

comment 10y ago · link · parent

Because there's usually agreements between neighbors about expected behaviour in the area. Things like "don't start yelling at 3 AM in the backyard", "Don't throw too many parties late at night", etc.

Of course what you do inside your house is your own thing, but when it comes to extra traffic/noise/trash, having the house be a bunch of short term people makes it much harder for social pressure to work.

comment 10y ago · link · parent

> Citigroup failing to send information on 26,810 transactions in over 2,300 such requests.

26810 requests, do you think they made more than $7m on this?

It's about proportional fines. Just because they're a giant company doesn't mean we should find then $1b for forgetting to put a handicapped parking space at one of their offices.

1
151152153
225