mneary
Re:A New Approach to Understanding How Machines Think
on Monday January 28, 2019 @12:55AM (#19015559)
atomic bomb?
Re:Why Probabilistic Programming Matters
on Tuesday July 15, 2014 @05:12PM (#8039028)
Reading this reminded of a fun quote: "Google uses Bayesian filtering the way Microsoft uses the if statement" [1]. I imagine that having probabilistic values as first class primitives is a step in this direction.
Re:Don’t Be Scared Of Functional Programming
on Wednesday July 02, 2014 @02:34PM (#7978738)
Function composition is a single, special case of a function accepting functional arguments. You could define the compose operator as below:
compose : (a -> b) -> (b -> c) -> (a -> c)
a `compose` b = \x -> b(a(x))
However, there is a whole spectrum of additionally possible functions which can be built to accept functions as arguments. Here's a couple of example: partial3 : (Integer -> Integer -> Integer) -> (Integer -> Integer)
partial3 f = f 3
map : [a] -> (a -> b) -> [b]
map [] f = []
map (x:xs) f = (f x):(map xs f)
The first one takes a function and applies an argument, 3; the next one takes a list and a function and maps the list using the provided function. The idea of functions as arguments is a very powerful one, and from my understanding one with which people sometimes struggle.
Re:Don’t Be Scared Of Functional Programming
on Wednesday July 02, 2014 @01:11PM (#7978147)
Function composition is very different from passing one function into another and the latter is definitely a concept that most Algebra 2 students would not be able to grok.
Re:Mathematics is full of wonderful but relatively unknown theorems
on Sunday June 29, 2014 @11:08AM (#7961353)
My first thought when I read this title was that there should be a site like Hoogle for mathematical proofs, where one could search by type signature for existing proofs. I'm not sure if people often think of proofs in terms of their type signature, but by Curry-Howard it would be doable.
Re:TDD your API
on Friday May 16, 2014 @09:01PM (#7758830)
That's really quite impressive! I hadn't realized that you meant that an endpoint can be referenced "in the abstract" without explicit parameters, which makes for much easier integration.
For some reason, though, I feel like the natural language would actually intimidate me. Where are ideas like "sufficient funds" defined?
Re:TDD your API
on Friday May 16, 2014 @07:36PM (#7758534)
Yeah, I realized the same thing; this aspect really makes it harder to keep the system simple, naturally. I've thought about different ways of approaching this, considering chained requests as a possibility.
Re:TDD your API
on Friday May 16, 2014 @07:34PM (#7758519)
Thanks, I will definitely look into that.
Re:TDD your API
on Friday May 16, 2014 @02:18PM (#7756947)
I had a similar goal, and built a simple shell script[1] that would enable its user to write tests as curl requests.
Re:Ask HN: Creating a query builder for end users
on Saturday April 19, 2014 @05:47PM (#7614841)
I think that this can be improved by removing the All and Any operators and instead letting segmentations be nested. So for example:
All
a = b
Any
All
c = d
d = f
c = e
would be a = b
c = d
d = f
c = e
I think that it is more intuitive to segment the set as you go.
Re:Systems Past: The software innovations we actually use
on Friday March 14, 2014 @09:24PM (#7403053)
Considering the idea of a programming language a fundamental innovation derived from FORTRAN disregards earlier concepts, like Gödel numbering from the year 1931, which exhibit language interpretation. I guess what I'm trying to say is that every good idea is closely related to countless others; pigeon-holing them into the Only 8 categories and naming a "first" doesn't do justice to all of the interesting ideas of computation.
Re:How to Get a Job at Google
on Saturday February 22, 2014 @10:33PM (#7284813)
I think being a valedictorian has a lot more to do with saying goodbye (vale) than it does being validated, but I do think you might be right about Google's bias toward those who seek validation.
Re:Learn You The Node.js
on Monday February 03, 2014 @08:33PM (#7174914)
A for-loop might be a basic programming construct, but it shouldn't be. Mutation and a control flow construct makes for a much worse outlook to the problem than does recursive application of a function.
Re:Learn You The Node.js
on Saturday February 01, 2014 @06:00PM (#7163853)
A far cleaner solution:
console.log(process.argv.slice(2).reduce(function(a, x) {
return a + parseFloat(x)
}, 0));
Re:How I faced my fears and learned to be good at math
on Wednesday November 13, 2013 @04:53PM (#6728866)
This is generally the case; however, for those truly gifted at math, high-school math, and for the most part college math, is fully understandable by intuition alone.
Re:How I faced my fears and learned to be good at math
on Wednesday November 13, 2013 @04:40PM (#6728759)
There are plenty of worthwhile subjects in Math which have no concrete application to the real world. One needs to be able to understand these abstract ideas for what they are, not merely formality surrounding a simple real life phenomenon.
Re:Type Checking in JavaScript
on Wednesday November 06, 2013 @09:36AM (#6682849)
I went back and forth with that. I think I went with postfix because there exists another syntax which looks prefix:
T([Number, Number])(function(x) { return x; })
For this method, a function type is defined and then serves as a constructor that accepts a function as argument.
Re:Type Checking in JavaScript
on Wednesday November 06, 2013 @08:13AM (#6682485)
With Typical[1], I took a different approach enforcing types on the functions.
Re:Clojure from the ground up
on Sunday October 27, 2013 @03:01PM (#6623007)
I do not see how anyone could possibly believe the author is exhibiting misogyny. Perhaps you are confused by the meaning of the word:
Misogyny /mɪˈsɒdʒɪni/ is the hatred or dislike of women or girls.
Re:You Can't JavaScript Under Pressure
on Thursday October 03, 2013 @10:57AM (#6489317)
Just under 3 minutes!
Re:How I thought I wanted to become a digital nomad
on Sunday September 15, 2013 @11:05PM (#6391389)
I think you are making quite a few generalizations. I've on multiple occasions coded for over 12 hours straight. With regard to all-nighters, I've had them stretch to noon.
Re:Creative Link Effects - Subtle and modern effects for links or menu...
on Thursday August 29, 2013 @02:49PM (#6297763)
Although I know these are intended for nav-bars, a nice pattern I remember seeing for body links was use of a diamond prefix, and underline upon hover. It was nicely subtle, yet distinguishable and overall great for bodies of text.
Re:Is it too late to be awesome?
on Thursday June 27, 2013 @05:30PM (#5954829)
Prisoner's Dilemma by William Poundstone traces his development of game theory.
Re:Learn Lua in 15 Minutes
on Monday June 24, 2013 @11:46PM (#5937394)
Anyone else catch the Gauss reference[1] in the for loop section?
[1] http://en.wikipedia.org/wiki/Carl_Friedrich_Gauss#Anecdotes