Better HN
topnewbestaskshowjobs
Log inSign up

matt2019

62 karma · joined May 1, 2013 (13y ago) · 28 submissions

Submissions

comment 3y ago · link · parent

The new Pinocchio! Admittedly watched it with AI on the brain, but if you think about it Pinocchio is an Artificial Intelligence with a lying problem, much like GPT. The whole story then explores his journey to become more like a real boy.

comment 4y ago · link · parent

Your counterpoint assumes there’s a win-win that’s possible. But sometimes that’s wishful thinking. Imperialists have always convinced themselves that they’re actually helping the peoples they intervene on, but they’re often wrong.

comment 7y ago · link · parent

While I have this book in front of me: "all sorts of people were telling me that I needed to put quotes on the back cover of the book [A New Kind of Science] ... Steve said, 'Isaac Newton didn't have back-cover quotes; why do you want them?'"

comment 7y ago · link · parent

Tangential, but reminds me of Stephen Wolfram's story of how it got the name Mathematica. It was actually Steve Jobs's idea:

"Over the months after our first meeting, I had all sorts of interactions with Steve about Mathematica. Actually, it wasn’t yet called Mathematica then … For a while he wouldn’t suggest anything. But then one day he said to me: 'You should call it Mathematica.' … he told me his theory for a name was to start from the generic term for something, then romanticize it." (Wolfram, Idea Makers)

comment 7y ago · link · parent

atomic bomb?

comment 12y ago · link · parent

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.

[1]: http://www.joelonsoftware.com/items/2005/10/17.html

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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?

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Thanks, I will definitely look into that.

comment 12y ago · link · parent

I had a similar goal, and built a simple shell script[1] that would enable its user to write tests as curl requests.

[1]: http://mattneary.com/Quizzical/

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

A far cleaner solution:

    console.log(process.argv.slice(2).reduce(function(a, x) {
      return a + parseFloat(x) 
    }, 0));

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

With Typical[1], I took a different approach enforcing types on the functions.

[1]: https://github.com/mattneary/Typical

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

Just under 3 minutes!

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

Prisoner's Dilemma by William Poundstone traces his development of game theory.

comment 13y ago · link · parent

Anyone else catch the Gauss reference[1] in the for loop section?

[1] http://en.wikipedia.org/wiki/Carl_Friedrich_Gauss#Anecdotes