Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
greydius
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
241.
▲
by
greydius
11y ago
I grew up northeast of philly, and definitely remember the word being pronounced more like 'joint'. But then, the closer you get to the city, the more pronounced the philly vowel slur becomes. Also, I did not realize this was a
242.
▲
by
greydius
11y ago
> if you have two variables named myVariable and my_variable in the same scope But that's not the situation in the example. user_sort and use_RSort are perfectly fine identifiers that no reasonable person would expect to be interpr
243.
▲
by
greydius
11y ago
You'd probably have more luck figuring out what dark matter is.
244.
▲
by
greydius
11y ago
I think what you're trying to say is that architecture-specific code will be isolated in unsafe blocks. That's not necessarily true, as a lot of safe code can definitely benefit from knowledge of the underlying metal. I'm th
245.
▲
by
greydius
11y ago
> A major difference from Java in Scala is, that container types are not-variant by default! Only arrays are variant "by default" in java (which was a huge mistake). Variance for generic collections is specified at use, not at
246.
▲
by
greydius
11y ago
This site crashed my browser 3 out of 3 attempts. Firefox 44.0.2 on Android 5.1.1
247.
▲
by
greydius
11y ago
All we need is higher kinded types and implicits.
248.
▲
by
greydius
11y ago
I am sympathetic to the author's argument. Programmers should strive to write understandable code. However, I think you should also assume that people reading your code are fluent in the language and its idioms. You wouldn't expec
249.
▲
by
greydius
11y ago
I don't know about the rest of the US, but I grew up in a state where the school districts are funded by local property tax. As you can probably guess, this has the effect of making schools in poor areas overcrowded and underfunded, wh
250.
▲
by
greydius
11y ago
> threads should only be used to exercise multiple CPU cores and never as a way to work around blocking IO Never use threads in C++. Gotcha. Good thing I'm learning Rust, then.
251.
▲
by
greydius
11y ago
I didn't get that impression. I was trying to say that I admire the author without also advocating putting a bunch of clever hacks into production.
252.
▲
by
greydius
11y ago
We use the word "the" a lot in English. It would make sense to just replace it with a single character. But joking aside, I think the point is that the spacers (a lot of them, at least) don't want a semantic space that peopl
253.
▲
by
greydius
11y ago
Excellent post highlighting the problem solving skills and tenacity of a talented engineer. Of course, this is also the "duct tape and paper clips" approach to writing software that I certainly would not advocate for production s
254.
▲
by
greydius
11y ago
Please correct me if I'm wrong. I thought the GPL only required providing the source code to the purchasers of the product. (Who can then redestribute it if they'd like.) I didn't think it meant that if you use GPL code in
255.
▲
by
greydius
11y ago
The recent thread on Ghost in the Shell reminded me of this. It's only a matter of time before technology can build fully functional replacement limbs. This is obviously great for people that rely on prosthetics, but when these new lim
256.
▲
Man moves individual fingers on prosthetic arm using only his thoughts
(hub.jhu.edu)
33 points
by
greydius
11y ago
|
18 comments
257.
▲
by
greydius
11y ago
Well most graduate level math textbooks are called "An Introduction to..." and run to 500+ pages.
258.
▲
by
greydius
11y ago
I was just attempting to inject a little humor into the situation while bringing attention to the fact functional and imperative are not necessarily mutually exclusive. In fact, I'm of the opinion that Haskell is the best imperative pr
259.
▲
by
greydius
11y ago
Then he goes on to describe his real problem: struggling with C++ templates to write a generic parser. Which is sort of ironic since functional languages are great for writing parsers.
260.
▲
by
greydius
11y ago
If you create a Kitchen monad, you could write it imperatively. Then you can have your functional cake and eat it too. (I couldn't stop myself.)
261.
▲
by
greydius
11y ago
That is interesting. I've always considered lisp in terms of denotational semantics. In fact, I wrote a toy lisp in which the complete grammar was basically list -> ({symbol | number | string | list}*) and then it was up
262.
▲
by
greydius
11y ago
> Flailing around Haha, yes. This is how I feel about Matlab, actually. But I suppose Clojure is no different in this respect. I much prefer the Haskell approach: make dangerous things hard to do. Unfortunately, a majority of programmer
263.
▲
by
greydius
11y ago
You are correct. I failed to consider the implications of the different mechanics in the repl. I'm inclined to think the clojure repl is more conducive to experimenting. That is, you can change any part of your program to see what happ
264.
▲
by
greydius
11y ago
That can be nice in a lot of situations. e.g. (+) 4 2 vs. (+) <$> Just 4 <*> Just 2 I usually prefer the applicative style above to liftA2 (+) (Just 4) (Just 2) because it preserves the "form"
265.
▲
by
greydius
11y ago
You can rebind variables in ghci, too. I certainly wouldn't say this is evidence that Haskell promotes mutable data.
266.
▲
by
greydius
11y ago
So why don't we write all binary operations that way? eg. x f y instead of f(x,y). I've always felt more comfortable with prefix notation, especially because it easily generalizes to more than two arguments. I think infix notat
267.
▲
by
greydius
11y ago
The syntax is the same. Both are s-expressions. The difference is how a particular implementation interprets them. In this example, it would depend on the semantics of def.
268.
▲
by
greydius
11y ago
The problem isn't that the government wants to infringe on the rights of a deceased criminal. The problem is that by doing so, every citizens' rights are in jeopardy.
269.
▲
by
greydius
11y ago
I'm looking forward to the persistent homology posts. It's a really interesting subject with a lot of potential, but I don't feel that the existing textbooks do a good job explaining the computations.
270.
▲
by
greydius
11y ago
> a for loop can be understood by almost any programmer you will encounter Because at some point that programmer learned how a for loop works. Programmers are smart people; they should learn how flatMap or any other abstraction works.
More ›