Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
splinterofchaos
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
splinterofchaos
12y ago
There exist very accurate tests for autism, but /getting/ a diagnosis can be difficult. A teacher spotted autistic symptoms in me back when I was ten and recommended I get tested. It wasn't until three years later that a coup
2.
▲
by
splinterofchaos
12y ago
The classic C/C++ versions are recursive, and using the STL, c++'s quick sort looks very similar to the functional one. From cppreference.com: http://coliru.stacked-crooked.com/view?id=0b2cec4d8c69ffaf http:&#x
3.
▲
by
splinterofchaos
12y ago
There do exist object-oriented functional languages (Ocaml). Functional vs OOP is a false dichotomy, though a very common one. I prefer to use functional techniques in imperative languages with simple objects.
4.
▲
by
splinterofchaos
12y ago
> A language that is brief and concise gives you fewer opportunities to make mistakes I don't think that's necessarily true. Look at brainfuck! But in all seriousness, dynamically typed languages could be categorized as "m
5.
▲
by
splinterofchaos
12y ago
How about: def move_pos(x): if random() > 0.3: return x + 1 return x def move_cars(positions): return map(move_pos, positions) I do not believe that functional programming benefits from b
6.
▲
by
splinterofchaos
12y ago
I called "bar" with "<int&&>" to demonstrate that you can bind an rvalue-ref to an rvalue-ref, not to suggest that's how it should be called.
7.
▲
by
splinterofchaos
12y ago
At least "forwarding" specifies "for use in perfect forwarding", but it must be made clear that this term refers to the syntactic phenomena and they are not distinct from rvalue references.
8.
▲
by
splinterofchaos
12y ago
I did not mean "any rvalue-reference" and bind to "any l- or rvalue", but that you can have an "int &&", "int& &&", "const int& &&", and even "int&&a
9.
▲
by
splinterofchaos
12y ago
Not a bad article, but I'm so sick of the term "universal references". Perhaps useful for explaining things to the uninitiate, but a more technical understanding requires the knowledge that rvalue references can be made from
10.
▲
by
splinterofchaos
12y ago
This was my thought as well. Sherlock's method can be seen as a special case of the scientific method that focuses on gathering all the facts before making your HYPOTHESIS. (You can't call it a theory until you've tested it,
11.
▲
by
splinterofchaos
12y ago
Nope. See the bottom item on the FAQ: https://github.com/neovim/neovim/wiki/FAQ#are-plugin-authors...
12.
▲
by
splinterofchaos
12y ago
They'll work just fine, by being "transpiled".
13.
▲
by
splinterofchaos
12y ago
The most popular neovim feature (based on reddit's reactions) seems to be job control, although not enough people are using it. You can start an asynchronous job via `jobstart('name', 'prog', ['arg'...])`
14.
▲
by
splinterofchaos
14y ago
You want either mem_fn (C++11) or mem_fun. http://en.cppreference.com/w/cpp/utility/functional
15.
▲
by
splinterofchaos
14y ago
> The sort of immutable container logic that people associate with FP is against the nature of C++... My argument is that C++, a multi-paradigm language, benefits from not being bound to purity and that being able to mix imperative and
16.
▲
by
splinterofchaos
14y ago
Technically, those are free functions defined on strings, not members functions of the class string. But also: std::to_string http://en.cppreference.com/w/cpp/string/basic_string/to_stri...
17.
▲
Manipulating C++ Containers Functionally
(yapb-soc.blogspot.com)
35 points
by
splinterofchaos
14y ago
|
10 comments
18.
▲
by
splinterofchaos
14y ago
This particular feature isn't offered by anyone else, so I would not write a program with it and force anyone else who wanted to compile the code to use an unsupported, bleeding edge version of GCC. But I /will/ create a branch of a project
19.
▲
by
splinterofchaos
14y ago
> Having said that, it sounds like if I just followed your advice above I may get the same results as I get from listening to the tracks getsomeheadspace provides. Perhaps. Some like to listen to light jazz or classical music while medi
20.
▲
by
splinterofchaos
14y ago
They seriously want you to pay for meditation? That's absolute bull crap. The best advice I've ever gotten for meditation: Just sit. Make it at least 15 minutes. Maintain good posture; some of the positive effects of meditation relate to sp
21.
▲
Monadic Parsing in C++
(yapb-soc.blogspot.com)
3 points
by
splinterofchaos
14y ago
|
0 comments
22.
▲
by
splinterofchaos
14y ago
What a wonderful piece of programming history! This deserves more up-votes. How many programmers are alive today who can speak about their experiences in computer science in the 60's?
23.
▲
by
splinterofchaos
14y ago
Because they don't do the same thing. The Haskell code tests if that last char was a space and returns b or toupper(b). The C code checks if the current char is an alpha, then checks if word is set. That's a two branch algorithm. What mysti
24.
▲
by
splinterofchaos
14y ago
I suspect offerings like that will be rolled out within the next year or two, if all goes well.
25.
▲
by
splinterofchaos
14y ago
You're right. I had misread your post.
26.
▲
by
splinterofchaos
14y ago
I realize that, but the tax cuts disproportionately benefit the rich, still ( http://money.cnn.com/2012/01/03/news/economy/income_inequali... ). Low income houses would still pay low taxes, just not no taxes. Plus, the idea that ending the
27.
▲
by
splinterofchaos
14y ago
That is not to say that the level of inequality is not greater than it was before or is elsewhere. The extent of inequality has grown in the states ( http://www.motherjones.com/politics/2011/02/income-inequalit... ) and compares unfavorably
28.
▲
by
splinterofchaos
14y ago
Actually, the facts back him up. Look at this article analysing the deficit (specifically, the graph near the top): http://www.cbpp.org/cms/index.cfm?fa=view&id=3490 This shows tax cuts as the largest cause in our deficit. I won't arg