News for hackers. Stuff that matters.

jweese

Re:Generating shell scripts from haskell using a shell monad on Wednesday December 24, 2014 @08:38PM (#8795140)
Sadly, this monad can't stop you from doing dangerous stuff in the first place, like iterating over the output of ls:

http://mywiki.wooledge.org/ParsingLs

Re:The Genius of MIT's Football Team on Tuesday November 11, 2014 @01:37PM (#8591385)
School: Chicago; year: 1939; achievement: eliminated program.

We do take it as a point of pride. We also had the first Heisman winner ever.

Re:Let the Type System do the Work on Monday April 21, 2014 @03:12PM (#7623030)
That's why you want

    newtype Kilogram = Kilogram Double
which has no runtime overhead but does enforce the fact the Kilogram is a distinct type.
Re:Why I like Java on Tuesday March 25, 2014 @10:38AM (#7466095)

    perl -pe ""
Re:Source Code in TV and Films on Friday January 10, 2014 @10:20AM (#7036979)
Re:Show HN: This page will disappear in 10,000 views on Saturday July 27, 2013 @04:20PM (#6114280)
I didn't know either. Per "man ab":

> ab - Apache HTTP server benchmarking tool

Re:New York City Launches .nyc Domain Names on Tuesday July 02, 2013 @03:59PM (#5980359)
st.nyc - Santa's homepage.
I believe they just have a patent on these particular cDNA types, namely cDNA created from BRCA1 or BRCA2, and not on the well-known lab techniques for creating them.
Justice Scalia's concurrence, reproduced here in full:

"I join the judgment of the Court, and all of its opinion except Part I–A and some portions of the rest of the opinion going into fine details of molecular biology. I am unable to affirm those details on my own knowledge or even my own belief. It suffices for me to affirm, having studied the opinions below and the expert briefs presented here, that the portion of DNA isolated from its natural state sought to be patented is identical to that portion of the DNA in its natural state; and that complementary DNA (cDNA) is a synthetic creation not normally present in nature."

Re:Replacing Clever Code with Unremarkable Code in Go on Tuesday June 04, 2013 @10:59AM (#5819748)
> The channel is the analog to the Unix shell’s | character.

This sentence was italicized, and rightfully so. I've written a few small Go programs, but I haven't run into a problem where I thought, "A channel is definitely the right solution here." Yet I love and feel quite comfortable with shuffling data through big shell pipelines. Perhaps I'll think of a channel next time I'm reaching for a pipeline.

What's yellow, normed, and complete? A bananach space!
Yes. For example, consider interlingual machine translation. Most systems today (like Google) use statistical MT that learns patterns from millions of examples. In interlingua, by contrast, you analyze the input sentence to form a language-independent representation of the sentence's meaning. Then you use that representation to generate a sentence in a new language.

As you might expect, this is basically impossible for wide-domain MT because we don't have unambiguous representations of the meaning of every sentence, and we don't necessarily know how to combine them, and there's a lot of non-compositional phrases, and on and on.

However, if we restrict ourselves to one small domain, interlingua can work. For example, the KANT system [1] is an interlingua that is built for translating technical manuals for Caterpillar products (bulldozers and so on). The input has to be written in a restricted subset of English (Caterpillar Technical English), but then you can analyze it exactly with hand-written rules, and produce exact output in the target language.

[1] http://www2.lti.cs.cmu.edu/Research/Kant/

Except in passive constructions, but maybe that's an easy case to detect.
Nice writeup. A few comments:

So you're just identifying NPs and VPs in a sentence? So lets say I run your program, and I get NPs "Instagram" and "Facebook", and the VP "acquired." The question is, who did what to whom? Did Facebook acquire Instagram, or did Instagram acquire Facebook?

Second, I think you're way over-emphasizing the supposed slowness of CFG parsing. Yes, the complexity is O(n^3) in the length of the sentence, but in practice, n is usually small. Modern statistical PCFG parsers are fast.

Everyone's talking about auth to limit spam, but I think a more interesting approach is to let people click to flag spam, then train up a little naive Bayes classifier.
Re:Judge Wright issues Prenda Law order on Tuesday May 07, 2013 @07:47AM (#5667575)
I'm not a lawyer, but I am from the US. The Judge's order includes the following footnote:

"Even if their refusal was based on the Fifth Amendment privilege against self-incrimination, the Court still may draw adverse inferences against them in this civil proceeding. Baxter v. Palmigiano, 425 U.S. 308, 318 (1976)"

The way I read it (again, not a lawyer) is that you can't convict someone based on their refusal to testify, but this isn't a criminal proceeding. In civil matters the rules are different.

Re:Google Now on your iPhone and iPad on Monday April 29, 2013 @03:14PM (#5628057)
> A browser plugin to enable/disable Now tracking seems like it could be handy, however.

I've gotten into the habit of using incognito mode for most searches, and only staying logged in for things I think I'll want Now-based information for, like directions or information cards.

Re:Google Now on your iPhone and iPad on Monday April 29, 2013 @11:02AM (#5626561)
Things I use every day: weather; baseball and football scores for teams I like; approximate time to home and traffic conditions from wherever I am

Things I use when the appropriate email arrives in my inbox: current flight schedules (plus approximate time to get to the airport); package tracking

One thing that totally surprised me: I had a reservation on OpenTable, and my phone buzzed with a notification that it was time to leave for the restaurant if I intended to make it on time

And to be honest, I haven't "done" anything to get this value. This is all information that arrives automatically. That is, Google determined automatically what I needed to know by indexing my email, my searches, and knowing where I am at all times. Make of that what you will.

Re:What Makes Code Hard to Understand? on Thursday April 25, 2013 @11:09AM (#5607613)
My experience is the same. I work in NLP, and I've found that at least everything administered by ACL (probably our largest professional organization) is pretty much always available.