Better HN
topnewbestaskshowjobs
Log inSign up

argv_empty

776 karma · joined Dec 30, 2009 (16y ago) · 280 submissions

Submissions

comment 13y ago · link · parent

That's the definition when "computable" is used in a formal setting. What we believe is that it is also equivalent to our informal, intuitive understanding of the term.

comment 13y ago · link · parent

First, you learn parsing, then you learn what actually makes a language tick. Then you learn what goes into the design process, when you realize you've designed yourself into a corner. Then you start reading up on language design, stumble across sites like Lambda-the-Ultimate.org, and find out that there is a lot more than imperative / OO programming. Then you start getting into the Lisp literature, and reach a zen-like state. Then you snap back to reality, and become a slightly better programmer, who is a bit more humble.

Or (more likely, in my experience) you throw together a parser and then expand into a rudimentary interpreter/compiler and continue along your merry way having essentially reinvented some language you already knew with a few superficial differences.

comment 13y ago · link · parent

Aesthetics is really not my area, so I don't know how aesthetic claims are generally evaluated in a formal or objective way. If the ultimate goal is getting things done, I would suggest ignoring the aesthetics talk.

comment 13y ago · link · parent

Which is your question? "Why is this useful?" or "How do I use this with something like the DOM?" or both or something else?

comment 13y ago · link · parent

Has there been any exploration into an idea where the problem with side effects is not that they make functions impure, but they are often against the metaphor of the instructions being given?

There are lots of posts on blogs, newsgroups, etc. about the aesthetic value of having one's code be math-like, but the working programmer doesn't necessarily care about that. That programmer probably does care about avoiding spooky action at a distance. Conforming to a "traditional math is [beautiful|divine|the true Dao]" ideology does not matter to that programmer as much as knowing what data a function depends on or affects.

comment 13y ago · link · parent

This response is more amusing in light of the author's first claim.

comment 13y ago · link · parent

Short answer: No, you can't.

Long answer: You can, but Haskell is very serious about keeping pure code separate from impure code. Any function which performs I/O is impure, so its output must be an IO Thing instead of just a Thing. This means anything that uses its output must accept an IO Thing instead of an ordinary Thing, and so on. Of course, the way I/O works means that a 'Type1 -> Type2' function into can be transformed into an 'IO Type1 -> IO Type2' or a 'Type1 -> IO Type2' function (this applies to many things other than I/O -- consult one of the many monad tutorials for more on that). Haskell even includes some special syntax for invoking these transformations that makes things look rather like an imperative language, but adding in a debug print still requires you to rewrite a lot more code than you would have to in another language. Alternatively, you could use unsafePerformIO (whose type is 'IO a -> a') to hide from the type system the fact that you've done some I/O, but you may run into trouble with the printing not behaving as you expect (due to Haskell's lazy evaluation).

comment 13y ago · link · parent

From a look over the Amazon page, the book seems to be about writing a compiler in C, not about writing a compiler targeting C. Does it actually describe potential issues with compiling to C?

comment 13y ago · link · parent

Would you rather see more sites like qz.com that focus on content and navigation

I would expect something that's focused on the content would eliminate the top/side bars, and show me the actual content. Annoyingly, NoScript (which often makes newspapers' web sites quite tolerable) doesn't appear to remove qz.com's clutter.

comment 13y ago · link · parent

Java doesn't force you to learn about pointers, or memory in general, really.

Countless Java bugs are introduced by programmers who don't understand what operations give you a copy of something, and which ones give you a reference to something

These two statements seem to be at odds with each other.

comment 13y ago · link · parent

a Scheme dialect not a LISP one

I feel a bit confused about the distinction you're making. Didn't Guy Steele refer to Scheme as a LISP dialect?

comment 13y ago · link · parent

You bring up a human-nature attitude

Did I? Well, I suppose taking a skeptical view towards new research could be described as a "human-nature attitude." I really don't know what exactly you're reading into readme's and my posts.

comment 13y ago · link · parent

My god, sometimes I wonder where people on Hacker News comes from. You mean to tell me you never heard Will Smith talk? He sounds totally black and totally educated. You never worked with a person that has a "black" accent?

And given this distinction between "sounding black" and "sounding unprofessional," one might harbor some doubt as to whether the study in question controlled for perceived professionalism when estimating the effect of perceived blackness. One might even go so far as to post a comment suggesting that factor might have been overlooked or conflated with the phenomenon being estimated.

comment 13y ago · link · parent

4. “Learning is profoundly passive.”

In my experience, people who believe this have not been good students.

comment 13y ago · link · parent

Try imagining GP comment as being directed towards those who believe that someone who agrees with you on a few issues is your eternal faithful ally and someone who disagrees with you on a few issues is a partisan demagogue who will oppose you at every turn. There appear to be many such people commenting on HN stories related to this series of events.

comment 13y ago · link · parent

In your post, I see a lot of examples of why might makes might, but that's hardly new information.

comment 13y ago · link · parent

When you say "own," do you mean "legitimately posess" or "hold copyright on"? I think GP is talking about the former.

comment 14y ago · link · parent

Ok. When I imagine a "trained philosopher," I see someone who has spent a lot of time on studying others ideas, proposing their own ideas and challenging/defending these ideas. Should I imagine what you imagine instead?

comment 14y ago · link · parent

Also make sure nobody else posts it on Facebook.

comment 14y ago · link · parent

Yes, I'm well aware that defense is a reason for patenting things. I think it gets much easier to see that as the primary reason for doing so when the companies which do it the most also work to reduce (as opposed to increasing or exercising) the offensive power of patents.

comment 14y ago · link · parent

The article explains why closures are a poor man's objects. Be sure to read the comments to see why objects are a poor man's closures.

comment 14y ago · link · parent

It would also be seen as a good publicity move from any of these companies.

It would definitely help convince me of the sincerity of their claims that they maintain their software patent portfolios for defensive purposes.

comment 14y ago · link · parent

Already on front page -- http://news.ycombinator.com/item?id=4729068

comment 14y ago · link · parent

Most of the objections I heard were about putting that public money towards religious schooling (the interaction of government and religion being a fairly well-established as a partisan issue).

comment 14y ago · link · parent

And possibly in a much more traditional sense than that word's typical usage around HN!

comment 14y ago · link · parent

This isn't necessarily true. It's important not to conflate "small precinct" with "suburban/rural area" and "large precinct" with "urban area", since many rural precincts might have more voters than urban ones.

And in fact, the paper spends quite a bit of time addressing this.

comment 14y ago · link · parent

the clearest positive argument for AP participation is that high performance in AP courses correlates with better college grades and higher graduation rates, especially in science courses

Really? Everyone I know who participated did so primarily because a high enough score on the exam was likely to get them credit for some college course (that they then would not have to spend extra time and money to take).

comment 14y ago · link · parent

They should take usability advice from people who think they need to use Javascript to display some static text and images?

comment 14y ago · link · parent

Smart pointers and move semantics in C++11 completely smoke GC and memory management everywhere else.

Aside from having to enforce proper pointer usage at runtime, whereas Rust does it at compile time.

comment 14y ago · link · parent

That would explain why rural areas are expensive, but that excuse doesn't really carry over to urban areas in the US (where it is also expensive).
12345
10