Terra is a new low-level system programming language that is designed to interoperate seamlessly with the Lua programming language:
Like C, Terra is a simple, statically-typed, compiled language with manual memory management. But unlike C, it is designed from the beginning to interoperate with Lua. Terra functions are first-class Lua values created using the terra keyword. When needed they are JIT-compiled to machine code.
—Zach DeVito, Stanford
“An ode to the journey of ó on a shipping label” found at http://i.imgur.com/4J7Il0m.jpg, via @shyhoof.
Go 1.1 includes many improvements over 1.0.
The most significant improvements are performance-related. We have made optimizations in the compiler and linker, garbage collector, goroutine scheduler, map implementation, and parts of the standard library. It is likely that your Go code will run noticeably faster when built with Go 1.1.
There are some minor changes to the language itself, two of which are worth singling out here: the changes to return requirements will lead to more succinct and correct programs, and the introduction of method values provides an expressive way to bind a method to its receiver as a function value.
Concurrent programming is safer in Go 1.1 with the addition of a race detector for finding memory synchronization errors in your programs. We will discuss the race detector more in an upcoming article, but for now the manual is a great place to get started.
JChris: “Stuart Langridge from Canonical wearing the best t-shirt inspired by an HTTP proxy bug ever.”
Douglas Crockford (JavaScript guru and originator of JSON) models one of our Couchbase “You Had Me At JSON” t-shirts at QCon Tokyo
Twitter / redcatco: “We live in a world where even trash cans can kernel panic.”
rms2:
Preface
Recently, and with increasing frequency, developers have been speaking out about the difficulties they’ve had trying to implement support for iCloud in their products, and journalists have been reporting the news. I told our story to Ars Technica, and they’ve made their own report….
ArsTechnica: Frustrated with iCloud, Apple’s developer community speaks up en masse
See also recent coverage at The Verge, and a great blog post by Brent Simmons on “Why Developers Shouldn’t Use iCloud Syncing, Even If It Worked”.
This is a great opportunity for Couchbase’s mobile technologies (which I work on) — TouchDB, and the upcoming Couchbase Lite and Couchbase Sync Gateway.
Problem Statement: Google pulled the plug on Reader, but you still want a way to keep the news-reader apps on your various devices in sync, so they all know what feeds you’re subscribed to and which articles you’ve already read.
Here’s what you do. I’ve built this before, as part of the OS X Syndication and PubSub frameworks. (It wasn’t identical to what I’m describing here, partly because app.net didn’t exist so I had to do some clever things with hidden file storage on mac.com. Aren’t you lucky?)
That’s pretty much it. Note that the traffic in this channel is pretty low: if a digest is 20 bytes (ok, 30 in base64), and a user reads a few hundred articles a day, that’s a few kbytes of data a day. No problem. The number of messages can be tuned by changing the heuristic for how long to wait to post to the channel after the user reads a message. Waiting a couple of minutes seems reasonable, as long as you make sure to post before the user quits or deactivates the app.
A newly installed app will want to reach back into the channel’s history to find out what articles are already read. How far back is arbitrary, but it depends on how long articles stay in the RSS feeds. You can do something like reading through the last two weeks of the channel, and then assuming any article from a feed that’s older than two weeks must already be read. It’s not 100% accurate but it’s pretty close. (And this issue only applies to newly installed apps.)
“Starring” or favoriting articles works the same way as marking them as read. You just need something like an additional bit of metadata on each digest to determine whether the article is starred or not. (With additional bits you can indicate more state like an article that’s been explicitly marked unread again.)
As I re-read this, I’m remembering some interesting edge cases and details that I don’t want to get into here. They’re not rocket science, so I’ll leave them as exercises for the reader. If you want clues, just ask…
Asked by ojmason
The old Couchbase Mobile had an embedded Erlang, yes. That’s what made it so big and slow, unfortunately. TouchDB and Couchbase Lite are written natively in Objective-C with no interpreters.