Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
riwsky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
541.
▲
by
riwsky
7y ago
This is not an apples-to-apples comparison. In Rust, app code can panic, even though it’s not idiomatic. That does not meet the standard prescribed by the quote from the article.
542.
▲
by
riwsky
7y ago
No. Only a certain subset, known as “checked exceptions” (as opposed to “runtime” exceptions), need to be in the signature. In what may come as a surprise, checked exceptions are actually frowned upon in modern java (e.g. new stdlib apis te
543.
▲
by
riwsky
7y ago
A lot of folks are giving you reasonable flack around “well both of these encode it”, because encode can mean lots of things, but I think the specific feature you are referring to is that the amount of source code used to indicate the fizz
544.
▲
by
riwsky
7y ago
I agree—a demand to retrofit everything isn’t feasible. But the demand isn’t “buy the new equipment”; the demand is “Buy the new equipment OR change your marketing to accurately reflect your equipment situation”.
545.
▲
by
riwsky
7y ago
Though also, on pricing: it’s not just a question of what the app offers, but also of what competitors are offering, and at what price. For example: the company that did Monument Valley teamed up with some doctors to do a very similar app i
546.
▲
by
riwsky
8y ago
EnergyHub ( http://www.energyhub.com ) | Brooklyn, NY | ONSITE | Full Stack Software Engineer (Senior through Junior) We combine the powers of many thousands of homes to create virtual power plants, reducing demand at times of pea
547.
▲
by
riwsky
8y ago
I agree it doesn't change the semantics, and that you can express the same set of programs (given that you still let people explicitly handle contexts, send them over channels, etc). I just mean to highlight that removing context-usage
548.
▲
by
riwsky
8y ago
I agree heartily that context is viral in APIs, but would argue that that's essential to the nature of context. Accordingly: implicit association of context with a goroutine would introduce a complementary API virality issue: you now n
549.
▲
by
riwsky
8y ago
for better or for worse, there is much less of a Reason bubble to be trapped in. The foreign function interface of the bucklescript compiler (Reason/Ocaml->js) makes for a much more gradual boundary between javascript and Reason cod
550.
▲
by
riwsky
8y ago
EnergyHub ( http://www.energyhub.com ) | Brooklyn, NY | ONSITE | Full Stack Software Engineer We combine the power of many thousands of homes to create virtual power plants, reducing demand at times of peak grid usage. Consumers g
551.
▲
by
riwsky
9y ago
EnergyHub ( http://www.energyhub.com ) | Brooklyn, NY | ONSITE | Full Stack Software Engineer We combine the powers of many thousands of homes to create virtual power plants, reducing demand at times of peak grid usage. Consumers
552.
▲
by
riwsky
9y ago
Definitely agree that people should be responsible when offering health advice - but if you’re striking down advice that: 1) ultimately came from a professional 2) was linked to a program with a bunch of literature You risk your “Pseudoscie
553.
▲
by
riwsky
9y ago
Precognition, mind-reading, and solving the halting problem are indeed beyond modern compilers - but thankfully, some clever people have given us other options for achieving the goals you describe: https://en.wikipedia.org/w
554.
▲
by
riwsky
9y ago
Not quite: while Clojure does share nested data structures, and that does allow for some neat tricks around fast comparison operations, the fact that only changed SUV trees rerender is all due to react, and its shouldComponentUpdate. A norm
555.
▲
by
riwsky
9y ago
There's a typo in this reproduction: the "3n" in the drunken sailor part should be a square root of n; I assume it was a square root symbol in the text that just tripped up some OCR.
556.
▲
by
riwsky
9y ago
it's also included in Hamming's book, the Art of Doing Science and Engineering, from '97
557.
▲
by
riwsky
9y ago
you present a good argument for ticking all the safety boxes, but the original comment you're citing doesn't specify safety; you're refuting an argument they didn't make. To count Go as an example, one could count "
558.
▲
by
riwsky
9y ago
In case people were wondering, the haskell stdlib answer to his interview question is at https://hackage.haskell.org/package/transformers-0.5.2.0/doc... (ContT is a generalized form which lets people run, for exam
559.
▲
by
riwsky
10y ago
EnergyHub | Senior Software Engineer | Brooklyn, NY | http://app.jobvite.com/m?3k9msiw4 We're a small team whose platform saves more than a million people money and energy by aggregating consumer thermostats, electric
560.
▲
by
riwsky
10y ago
The confusion with GP might be that you can't, in fact, define an interface and attach methods to it. More info @ https://golang.org/ref/spec#Method_declarations
561.
▲
by
riwsky
10y ago
I think the ancestor post was referring to python 2's separate str and unicode types, not bytes vs str.
562.
▲
by
riwsky
10y ago
Though it is in this case worth noting that there is enough redundancy in English that you can both a) tell that "to bad" is wrong and b) know they meant "too bad", which isn't always the case for =/==
563.
▲
by
riwsky
10y ago
You have the variance bit totally backwards. Methods are contravariant on their input and covariant on their results. A method which can only feed cats is not a method which can feed all animals. A method which gives me a cat, well, that is
564.
▲
by
riwsky
10y ago
EnergyHub | Brooklyn, NY | http://www.energyhub.com/ | Full-Time | ONSITE Like the electricity grid? Want to help keep it running? At EnergyHub, we work with utilities and consumers to turn smart thermostats (and other devi
565.
▲
by
riwsky
11y ago
"It depends". Are you writing a whole new app? or are you integrating with pre-existing js? Elm is designed around statically-typed functional reactive programming, and as part of maintaining that integrity at runtime, it puts som
566.
▲
by
riwsky
11y ago
Pardon the bald appeal to authority, but your assertion reminds me of a Richard Hamming quote: """ As we say, the volume is almost all on the surface. Even in 3 dimensions the unit sphere has 7/8-ths of its volume within
567.
▲
by
riwsky
11y ago
It's also a perfect example of the limitations of that approach - core.async had to make serious compromises in its interface because it was 'just a library': expressions with <!'s and other calls can't just be p
568.
▲
by
riwsky
11y ago
No. It solves the problem of having to reason about data dependencies between functions at scale, typically in the service of doing the minimum amount of work required to get a certain result. As "Steve Wampler" points out in the
569.
▲
by
riwsky
12y ago
For what it's worth, the go team's plan is to automatically translate the compiler to go, not to rewrite it from scratch: http://talks.golang.org/2014/c2go.slide#18 And, the gccgo compiler does leverage gcc,
570.
▲
by
riwsky
12y ago
Doesn't ztake need to live in State Int (or something similar)? As written, I don't see how it passes the 'n' onto the next call. It seems that the transducer returned by ztake n for any n > 1 will always pass on (f1
More ›