Archive for November 21, 2010

Sunday, November 21, 2010

Programming With Natural Language

Stephen Wolfram:

One issue that we have faced is a lack of linguistic corpora in the area. We’ve scoured a couple of decades of our own tech support logs, as well as many programming forums, to try to find natural language descriptions matched with precise programs.


By the way, in Mathematica 8 we’re beginning to have code generation capabilities for low-level languages like C. So it’s going to be technically possible to go all the way from natural language input down to something like C.

I suppose it depends on what you mean by “programming,” but this is impressive nonetheless.

Life After X [Window System]

Jonathan Corbet (via Reddit):

But things have changed in the 25 years or so since work began on X. Back in 1985, Unix systems did not support shared libraries; if the user ran two applications linked to the same library, there would be two copies of that library in memory, which was a scarce resource in those days. So it made a lot of sense to put graphics code into a central server (X), where it could be shared among applications. We no longer need to do things that way; our systems have gotten much better at sharing code which appears in different address spaces.

Instant Previews: Under the Hood


To show previews, we need the image, and the relevant content of the page for the particular query, with bounding boxes that we draw on top of the image to show where that content appears on the page. If we used static images, we’d need to make one request for the content and one request for the image; using JSONP with data URIs, we make just one request. Data URIs are limited to 32K on IE8, so we send “slices” that are all under that limit, and then use Javascript to generate the necessary image tags to display them. And even though base64 encoding adds about 33% to the size of the image, our tests showed that gzip-compressed data URIs are comparable in size to the original JPEGs.

Google Voice App

Glenn Fleishman:

The 15-month-plus period in which Apple maintained that the app was in a Schrödinger cat box—neither accepted nor rejected—has finally resulted in the free app becoming available. Apple and AT&T both changed policies about calling apps, whether they use voice-over-IP or rely on built-in cell calling systems.…Google Voice, however, doesn’t use VoIP at all.

I presume that the “joke” is simply that Google didn’t take fresh screenshots.


Jonathan Rentzsch:

It’s a comforting thought to some of us in the industry to discredit the general population as ignorant and/or confused instead of confronting the more-likely fact that we’ve devoted too much of our scarce attention to what Apple marketing wants us to think.

I meant to link to this back in July.

Tabbing Shortcuts

Michael Sheets shows which keyboard shortcuts work in which editors and Web browsers. It looks like this is slowly becoming standardized on Command-{ and Command-}.

Update: Rui Carmo:

There is an entire world out there that doesn’t use US keyboards and where both Apple and third-party developers have royally screwed up hotkey assignments…



The iPad may not need a visible, all-dictating file system as we know it, but it damn well needs a filing system. This “post-PC device” depends on a PC, or on nasty workarounds like emailing or cloud services, to do what it’s supposedly replacing. (Unless literally all you do is read mail and browse. I’m pretty sure most of those people would like to write a document and file it away every once in a while too.)

This is what I was getting at when the iPad was announced. There are certain things that people want and need to do. It’s interesting to watch Apple try to see what it can get away with omitting.

Instapaper’s Backup Method

Marco Arment:

And the binlogs can be decoded, edited, or replayed against the database however you like. This is incredibly powerful: given a snapshot and every binlog file since it was taken, you can recreate the database as it was at any point in time, or after any query, between the time it was taken and the time your binlogs end.

Star Wars Weather

Cristian Paul created Dashboard-style weather forecasts for Tatooine, Hoth, Cloud City, Alderaan, and Dagobah (via Khoi Vinh).