Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bdarnell
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
bdarnell
10y ago
I've been using streisand for a while (from China) and it's great; the main reason I can see that you might want to use the linked project instead is that it has a lot less surface area so it could be more secure (it's a lot
62.
▲
by
bdarnell
10y ago
(Cockroach Labs co-founder here) The source files contain tab characters (gofmt enforces this for all go projects). We configure our editors to render tabs as two spaces. There's no deep reason for this; we've just gotten used to
63.
▲
by
bdarnell
10y ago
The fact that there is a super-specialized tool to do this demonstrates that it's not a pointless feature. It's much nicer to be able to use macports to install all the versions of python that I need instead of using brew to ins
64.
▲
by
bdarnell
10y ago
I still use macports, although it's mainly out of habit and I'll probably switch to brew on my next mac (I've also been trying out nix, and while I really like the idea, package availability and freshness hasn't been as
65.
▲
by
bdarnell
10y ago
Python has a standard interface just like Go's `io.{Read,Writ}er`: the `send` and `recv` methods as defined by `socket.socket`. The appeal of "sans I/O" protocol implementations is primarily for asynchronous I/O, wh
66.
▲
by
bdarnell
10y ago
Or for macports: `port install curl +http2`
67.
▲
Tornado 4.4 released
(tornadoweb.org)
2 points
by
bdarnell
10y ago
|
0 comments
68.
▲
Building an Application with CockroachDB and SQLAlchemy
(cockroachlabs.com)
10 points
by
bdarnell
10y ago
|
0 comments
69.
▲
by
bdarnell
10y ago
Back in the day (2001) I worked on the PalmOS version of Scrabble. One thing that surprised me when I was tuning the AI was that it played better when all words of seven or more letters were removed from its vocabulary. Apparently searching
70.
▲
by
bdarnell
10y ago
If you like cross-language import hacks like this then you might be interested in my codegenloader package, which lets you import .proto or .thrift files directly (and it's extensible for other code generators). Mine is a little less m
71.
▲
by
bdarnell
10y ago
In theory, this is specified in section 3.1 of https://www.ietf.org/rfc/rfc3987.txt (including the "MAY" section beginning "Systems accepting IRIs MAY convert the ireg-name component of an IRI as follows
72.
▲
by
bdarnell
10y ago
If RSS scales badly for sites like Gizmodo, don't use it for sites like Gizmodo. RSS is great for small-scale personal publishing; in fact some sort of aggregator is practically a necessity for such a thing to work (this is why bloggin
73.
▲
by
bdarnell
10y ago
Google Reader's public labels had the capability to create a group-edited metafeed, but this advanced use case was never advertised. The one use that I know of for it was on the sidebar of the Google Reader blog: Each team member had a
74.
▲
by
bdarnell
10y ago
RSS users don't need ad blockers because obnoxious ads can't come through in a (full-content) feed, but this means that feed users have all the downsides for the site as if they did have ad blockers. And feed subscribers are much
75.
▲
by
bdarnell
10y ago
Regardless of the instructions, I think that's the way most people would fold it into quarters. Notice that they rearranged the sections from the first wireframe to the final version; the same folding steps would have hidden the ads in
76.
▲
by
bdarnell
10y ago
I think that Python 3.5 now has a very elegant interface for async programming. I prefer Tornado to the standard library's asyncio, but the new keywords are nice for both packages (disclaimer: I'm the maintainer of Tornado). The d
77.
▲
by
bdarnell
11y ago
Or while we're sharing, here's mine in Obj-C++ (although I never managed to extract it into a separate package): https://github.com/viewfinderco/viewfinder/blob/master/clien... [self addC
78.
▲
by
bdarnell
11y ago
The "loader protocol" (PEP 302) is a related trick that can be used locally, so it only affects imports from packages that opt in. I use this in https://github.com/bdarnell/codegenloader to automagically proc
79.
▲
by
bdarnell
11y ago
> The str/unicode fix was one of the driving factors for Python 3 to exist in the first place, and if you removed it, then what's the point? The reason python 3 exists is that most python 2 code had latent unicode-related bugs
80.
▲
by
bdarnell
11y ago
C and C++ are so widely used that transitions like this are made not at the language level but at the level of platforms or other communities. Some parts of the C/C++ world made this transition relatively seamlessly, while others got c
81.
▲
What's new in Tornado 4.3
(tornadoweb.org)
3 points
by
bdarnell
11y ago
|
0 comments
82.
▲
by
bdarnell
11y ago
CockroachDB engineer here. Rust would definitely be a contender if we were starting the project today (we have several rust fans on the team), but when the project was started in early 2014 it wasn't ready yet. The language was still c
83.
▲
by
bdarnell
11y ago
Cool! The "why" section doesn't do a great job IMHO of explaining why this is interesting when we already have asyncio; the tutorial does a better job of showing off capabilities that are unique to this library. The key is th
84.
▲
by
bdarnell
11y ago
I use go-mode, go-eldoc, gotest, company-go, and go-projectile (along with non-go-specific packages like flycheck, which has built-in go support).
85.
▲
by
bdarnell
11y ago
(I work for CockroachDB) Our architecture is broadly similar to FoundationDB's, although in our case the separation between the layers is not as strict as I believe FoundationDB's was. This will allow us to improve performance by
86.
▲
by
bdarnell
11y ago
(I work for CockroachDB) This is something that we're definitely interested in. We haven't decided yet exactly what form it will take, but we plan to offer some way to ensure that the DB will return an error instead of silently fa
87.
▲
SQL in CockroachDB: Mapping Table Data to Key-Value Storage
(cockroachlabs.com)
45 points
by
bdarnell
11y ago
|
6 comments
88.
▲
by
bdarnell
11y ago
I haven't looked at the patch, but the error is probably overflow: too many digits to fit in the integer variable. parse_integer() presumably returns the number of bytes consumed, so the str pointer is advanced by that many bytes to po
89.
▲
by
bdarnell
11y ago
Last time I touched java (a year ago), malabar-mode ( https://github.com/m0smith/malabar-mode ) was the most feature-rich environment for doing java in emacs. However, it couldn't cope with the complex build system
90.
▲
by
bdarnell
11y ago
Third party native modules are exactly the issue. Many database drivers (etc) are wrappers around native libraries that do not integrate with gevent; the ease of integration with native code is generally one of Python's great strengths
More ›