Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zenhack
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
zenhack
6y ago
Neat; simple but I like it. One concrete thing that jumps out at me as I play around with it: I keep instinctively trying to hit Ctrl+Z to undo, which doesn't work (and then I remember there's a button). Might be nice to make that
62.
▲
by
zenhack
6y ago
Yeah, I think there's a lot of potential in hybrid models like this. You actually do see these things out in the wild -- GUI builders come to mind -- but they're not a replacement for a proper programming language. As it turns out
63.
▲
by
zenhack
6y ago
Indeed, Amazon's behavior isn't the same shape as a typical monopolist. Krugman wrote an article a while back about this that I think cuts to the heart of the matter: https://www.nytimes.com/2014/10/20&#x
64.
▲
by
zenhack
6y ago
> thank god the FBI was able to order Facebook to hand over the comms of that MS-13 gang. I think you may have misunderstood the article? It says Facebook won the case, and did not have to wiretap the app. I don't see what is to
65.
▲
by
zenhack
6y ago
Yeah, this is kinda the cost of not having an encode/decode step. The Haskell implementation (of which I am the primary author) provides a higher-level API with "normal" data types for cases where performance requirements are
66.
▲
by
zenhack
6y ago
Skimming the implementation, there is buffering, but it looks like it's bounded, so tight looping Write() you should still end up blocking on the OS at some point.
67.
▲
by
zenhack
6y ago
off the top of my head https://godoc.org/golang.org/x/net/websocket has a synchronous read/write api
68.
▲
by
zenhack
6y ago
Some of it is also that, much like in comparison to schema-less protocols, it's a bit of an apples-to-oranges comparision at the RPC level, since capnproto's RPC is so much more expressive -- but also complex to implement. I think
69.
▲
by
zenhack
6y ago
Thoughts on Sam? It seems to me like it might be a much better fit, esp. given the ed-like command only mode. (And I always liked it better than acme anyway...)
70.
▲
by
zenhack
6y ago
The signing schemes I've seen used in binary protocols fall into two categories: 1. Canonicalize and sign: the format has a defined canonical form. Convert to that before doing cryptographic operations. If the format is well designed a
71.
▲
by
zenhack
6y ago
The difference is that with coroutines, yielding is explicit. Tight-looping will hog the CPU, and a blocking call will block other coroutines too. Typically "green threads" are semantically just threads but cheaper. They're s
72.
▲
by
zenhack
6y ago
+1 for the bit about machine generated code. I think if you're going to have significant whitespace, Haskell does the right thing here: the indentation rules are specified in terms of automatic insertion of braces and semicolons. Almos
73.
▲
by
zenhack
6y ago
Are we even at the point where routers reliably support multicast?
74.
▲
by
zenhack
6y ago
The article actually advises setting fields to NOT NULL unless there's a specific reason to do otherwise. And re constraints: eh, for most applications this feels like premature optimization. My usual approach is to include whatever co
75.
▲
by
zenhack
6y ago
I struggled with this for a long time, I think a lot of us do. I don't know how broadly applicable my story is, but: at a certain point I basically cracked and picked a project and said "I'm going to finish this if it kills m
76.
▲
by
zenhack
6y ago
ADHD is absolutlely a real thing, it is treatable, and there is a large adult population that is undiagnosed. If you're struggling and you suspect it may be related to ADHD, you should look into getting tested. My girlfriend got her di
77.
▲
by
zenhack
6y ago
> Life is not fair, and you can't fix it. I don't think the fatalistic attitude towards changing the system is any more (or, as much as I hate to admit it, less) reasonable than the "you could be Steve jobs too." Odds
78.
▲
by
zenhack
7y ago
It seems like that's a concern with any testing strategy that mocks out some part of the system. Obviously there's no getting around actually testing against the hardware, but it seems like it could still be useful for the same re
79.
▲
by
zenhack
7y ago
> Your second point I disagree with; I think if people raise objections, encourage people to switch, and volunteer to shepherd others through the technical details -- then people will be agreeable, and we'll see a shift which will g
80.
▲
by
zenhack
7y ago
I don't think we should be giving them tax breaks for investments that are only for themselves . They're going to do that anyway because it expands their business. If they were doing something that had a genuine public benefit,
81.
▲
by
zenhack
7y ago
The devil is in the details; a lot of the things they're getting tax breaks for don't benefit the public. Why are they getting tax breaks for building warehouses and data centers for themselves? Stock based compensation for execut
82.
▲
by
zenhack
7y ago
I'm not really interested in judging Amazon; they're a for profit company, they're going to do what's best for their bottom line. And I'm sure they don't care what I think. This is more about the systemic issue
83.
▲
by
zenhack
7y ago
> You realize the top 1% already pay for a disproportionate amount of the taxes? In absolute terms maybe (though there are some glaring exceptions -- Amazon famous literally pays $0 in taxes), but not relative to how much they make. >
84.
▲
by
zenhack
7y ago
> As for endlessly scrolling the newsfeed all day, well that is not so much Facebook's fault as that people who do that are probably having too much idle time and not knowing how to do some productive or more creative activity. If
85.
▲
by
zenhack
7y ago
I'd actually put modern crypto in the opposite bucket: there's virtually no physical constraints at all. You could do RSA by hand if you had to, and if nobody else has computers, you can pick a key size small enough for doing it
86.
▲
by
zenhack
7y ago
I stand corrected. I wish there was some nice off the shelf embed able FOSS DB like SQLite, but with datalog as a query language.
87.
▲
by
zenhack
7y ago
This is actually not true. Prolog is Turing complete, SQL is not. WITH RECURSIVE is limited to cases where you could basically use a simple foreach loop. The postgres manual has this to say: > Note: Strictly speaking, this process is ite
88.
▲
by
zenhack
7y ago
> Set a pointer to and address and write to it. Better yet, I can define a packed struct that maps to a peripheral, point it to its memory address from a data sheet, and have a nice human readable way of controlling it: MyPIECDevice.samp
89.
▲
by
zenhack
7y ago
> Every single design decision about C was made with the computer in mind. The only problem is that computers have changed a bit in the last 50 years, and C largely hasn't. There are a couple issues: First, C was designed for single
90.
▲
by
zenhack
7y ago
It still exists, and there are no plans to get rid of it. Same with other community infrastructure, e.g. demo.sandstorm.io has been moved off of oasis and still runs as well. It's only oasis that's shut down.
More ›