HNHacker News
TopNewBestAskShowJobs

anc2020

354 karma · joined September 26, 2008

submissionscomments
anc2020··on Codility - Automated tests of programming skills
I don't mean the interviewers should shut off internet access entirely, but what I mean is that if they do allow access to the internet, they'll need to check the interviewee hasn't just googled for the solution to their codibility test (and they'll also have to make sure the interviewee can't delete their browsing history too).
anc2020··on Codility - Automated tests of programming skills
Got my 94% C solution up to 100% by using long long ints for intermediate sums.

http://pastebin.com/m6e742f56

Edit: And won't this be a problem if interviewees can access the internet? The interviewers will have to make sure they can check the browsing history of the computer being used!

anc2020··on Intel's "cripple AMD" function
It is anti-competitive to sell anything at a loss.
anc2020··on Intercourse and Intelligence
This is very one-sided and nothing like what I was trying to say. It's not entirely the "fault" of girls that making them smile is not enough.

The parent was more even handed when they mentioned confidence and social status. Yes, some girls maybe care about confidence a bit too much, but just the same, guys like myself can often do a poor job of acting confident (sometimes due to lack of effort conforming to norms).

There are two sides to the story.

anc2020··on Follow up to "Functional Programming Doesn't Work"
I think you are correct that the language does think of all expressions in terms of thunks, but I'm guessing `4 + 5` won't actually be run at run-time!

Since it's pure a decent compiler should be able to simply replace any `x` with the number 9 - correct me if I'm wrong :)

Any primitive (C code) however won't run until run-time, which is probably the pressing reason putStr doesn't run until run-time (and that's a good thing :)

anc2020··on Follow up to "Functional Programming Doesn't Work"
What I'm arguing is that you can still think and write with an imperative style using the IO monad if you want, so I'm not sure what the issue is.

Edit: As an aside, I already know that "Monad" doesn't mean impure (having implemented an IO monad in my spare time to find out) and that was implied when I said "100% pure functional [...] like Haskell".

They are implemented purely, nonetheless they do allow side-effect (impure) programming.

anc2020··on Follow up to "Functional Programming Doesn't Work"
I really don't get it, what does this guy mean by 100% pure functional programming?

Because we all know already that a program needs to print values or "do" something to be useful, so in that way no program is ever 100% pure - is that what he's talking about?

Or is he talking about 100% pure functional languages which allow functional ways of writing IO code, like Haskell?

In Haskell can't you still program nearly 100% imperatively, just by wrapping stuff in the IO mondad?

    mysquare  x = x * x
    mysquarer x = do
                    putStrLn "Hey look, it squared"
                    return (mysquare x)
    
    main = do
             putStrLn "Starting program..."
             x' <- mysquarer 9
             putStrLn (show x')
Can't he just write his program like that?

Or is he just arguing that we should write programs in functional languages but just with an imperative style (no points-free and simple use of IO)?

anc2020··on Intercourse and Intelligence
There's more to it than that unfortunately.
anc2020··on Intercourse and Intelligence
Where I am it really boils down to whether or not you start kissing the nearest girl in the club when drunk.

You could possibly explain this in the article then with the idea that intelligent people are more likely to be either really introverted or extroverted and that the introverted ones tend not to do this sort of thing, leaving just the extroverted of the smart people to get laid?

Sort of similar to the risk-aversion idea here, except with introversion. I do have smart friends who do this, they just happen to also be reasonably extroverted

anc2020··on Lisp OS: what has been lost: Kent Pitman
http://pastebin.com/m63016d1

This is Kent M Pitman replying to cba...@2xtreme.net (Christopher R. Barry)

anc2020··on Is massively collaborative mathematics possible?
This seems quite similar to the question "Is open source software viable?"
anc2020··on Beating the Arc Challenge in Haskell
I'm a bit late here, but if you want to really smash the challenge, you can use Lisp style metaprogramming with my Hasp program. Something like this is possible (10 nodes):

    def arc
      with->>= name input
        link "click here"
        display++ "you said: " name
anc2020··on On being an AI in a box
He sent a video to the GK encoded as text, told the GK how to convert it, and the video helped change the mental state of the GK to the point where it wasn't so difficult to be let out.
anc2020··on Ask HN: Confused semi-newbie programmer needs some advice.
Fully agree with this, SICP won't make you an expert, but it will take away much of your feelings of being lost.

Text: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#...

Videos: http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussma...

I'd recommend at least the first video lecture and see if you like it.

anc2020··on [dead]
Oh no I understand that we could now be in a matrix-like reality, which is what I meant by "setting the question aside", and I'm arguing that there's nothing wrong with trying to use science to find out stuff under a whole load of assumptions, because that is essentially what we are doing all the time, whether or not we are talking about something philosophical like free-will.

But when you think about it, under this reality, how could free will possibly exist? Everything I do is a direct consequence of the past, modulo some possible quantum randomness if you believe in that, but even the randomness wouldn't give me a free will.

anc2020··on [dead]
> due to initial assumptions that are much a matter of faith

Isn't it always the case that science is built on a matter of faith though? I have faith that I'm not in a matrix-like reality, and there's no real way to know if I was in one, so I just set it aside, and instead work within the model of reality I see.

And if you do assume that the this reality does hold consistently (you don't really have much choice to decide otherwise), surely you can learn and know about how stuff works within that reality. Or am I missing something?

anc2020··on A design pattern is an artifact of a missing feature in your chosen language
An example of patterns gone insane http://ws.apache.org/xmlrpc/apidocs/org/apache/xmlrpc/server...
anc2020··on See Randomness
Please could someone elaborate on how "me" is a fuzzy concept or provide a link?
anc2020··on Lisp and Smalltalk are dead: It’s C all the way down
> it's the closest you can get to understanding how computers work at a low level without dropping into asm.

Though your points are pretty valid, the parent wasn't arguing that C was at the lowest level.

Plus surely you can provide your own low level implementation of malloc and free for the platform and you'll still be programming C.

anc2020··on The Next Lisp: Back to the Future
I think his point 1 was your point 2.
anc2020··on The Next Lisp: Back to the Future
Makes some good points, but calling Python a sugaring on Lisp is a bit weird, especially since it misses 3 of his 5 philosophies of Lisp.
anc2020··on HTML is object code
I'm not sure, are you talking about changing the render method to output clean html which the user can style themselves?

Don't bother answering, I'm really confused. Why doesn't the world use XML and XSLT? I give up. I'm gonna just code using tables from now on.. o_O

anc2020··on HTML is object code
What are the blind spots to his argument? I read your comment but didn't see anything particularly in contrast with the post.

Edit: Oh actually I presume you're implying the ability to easily swap stylesheets, and that would be a valid point.

anc2020··on HTML is object code
Ron Garret reads or has read HN, so its very possible he knew about that comment.
anc2020··on Confessions of a Math Idiot
Thanks for the link, its a shame Google video makes text unreadable though.
anc2020··on [dead]
Global warming is a myth - not the fact that it exists but rather that it's caused by humans, and people die because of it.

State birth control... what, are you in favour of it?

Edit: why is this here?

Because lots of dictator wannabes like the idea that there's only enough space in the world for them, and that there is this really big problem of population that only someone as calculating as them can grasp. I'm sorry but this really pisses me off. We have lots of energy and lots of space, go and play with a ball and have fun.

Edit: yes a typo, thanks.

anc2020··on You will live for longer than 1% of the entire history of human civilization.
Yeah and missing the age of immortality by just a century or so would be a bit of a bummer.
anc2020··on Ask HN: Javascript for desktop apps?
Adobe Air is a possibility
anc2020··on What is a functional programming language?
It's a mistake to assert, as you do so confidently, that how functional the language is depends on how similar it is to the lambda calculus.

The article agrees with this assertion, Wikipedia agrees with this assertion and I agree with this assertion. Why is it a mistake to assert this? Granted you point to earlier type theory which I was unaware of, but my claim wasn't that lambda calculus was original.

If you look at that, you'll discover, for example, that while having functions as first-class citizen was always a definite requirement of functional programming, neither immutable state nor TCO ever were.

Here is another big gripe of mine. Given that there are practical reasons for the earlier functional languages to have been different from the lambda calculus (speed and memory), why continue using those languages as metrics later on when the limitations of speed and memory no longer apply?

anc2020··on What is a functional programming language?
Sorry to keep replying like this, but I'm just utterly dismayed by your upvotes. To put it bluntly, you are wrong (particularly paragraph 1 sentence 1 and paragraph 3, mutability).

I'm not sure how you have arrived at Lisp being your ad hoc definition of functional programming, but it frightens me.

The main issue here is that the article isn't saying that only the lambda calculus is functional programming but it is saying that the whole paradigm is based on the lambda calculus and so to determine how functional a language is, you determine how similar it is to the lambda calculus.

Wikipedia on functional programming:

"Functional programming has its roots in the lambda calculus, a formal system developed in the 1930s to investigate function definition, function application, and recursion. Many functional programming languages can be viewed as embellishments to the lambda calculus."

http://en.wikipedia.org/wiki/Functional_programming

← PreviousPage 2 of 5Next →