Better HN
topnewbestaskshowjobs
Log inSign up

mmcgrana

378 karma · joined Feb 22, 2007 (19y ago) · 32 submissions

https://markmcgranaghan.com
Submissions

comment 4y ago · link · parent

Yep, we already have basic support for versioning.

The foundation of our approach is to have a versioned, documented schema shared among clients. Every write down to the individual attribute level is persisted with a schema version. We're already several versions in, and indeed think it's healthy to get experience with version updates frequently so that it's not an unusual occurrence.

Currently we use this schema to interpret / coerce values as needed at read-time. For example we see an attribute has schema version 1, and know that it should be interpreted in the sense that we meant as of version 1. In the future, we may also choose to write out updates for "migrations" where that'd be helpful. So that e.g. instead of having to re-interpret values for older version 1, we'd right out an update to he attribute that overwrites the old value and updates the version tag to e.g. 3.

We do think lenses are interesting and the lab from which we spun out has done some good work with them: https://www.inkandswitch.com/cambria/. They're just a bit complex for our modest needs re: schema versioning at this time.

comment 6y ago · link · parent

This post was scraped from my old technical blog: http://web.archive.org/web/20100423003857/http://mmcgrana.gi...

Looks like the site has a few other scraped posts as well.

FWIW I no longer use this exact noprocrast(1) approach to avoiding procrastination, but do apply the same basic idea.

comment 7y ago · link · parent

Muse | Remote | iOS and Systems Engineers | https://museapp.com

Muse is an iPad app to empower freeform, creative thinking. The company spun off from our industrial research lab (https://www.inkandswitch.com); we’re taking the novel interface approaches and technical ideas developed in that setting and turning them into a real-world product.

Learn more about Muse:

- Conference talk by a founder: https://www.youtube.com/watch?v=A_fe2c6IUUo

- Article by the team: https://www.inkandswitch.com/muse-studio-for-ideas.html

We’re hiring one engineer to join our all-remote team of four, with either of these two profiles:

- iOS Engineer: https://getmuse.app/ios-engineer

- Systems Engineer: https://getmuse.app/systems-engineer

We aim to be a small, independent business that optimizes for building an uncompromising product and that’s a rewarding place to work.

If you're interested please email us at hello@museapp.com. We look forward to hearing from you!

comment 7y ago · link · parent

Muse | Remote | iOS Engineer, Systems Engineer

Muse is an independent software company that makes an iPad app for thoughtful work. The app brings together your research, photos, and notes in a single fluid workspace: https://museapp.com

We're hiring one engineer to join our all-remote team of four. One profile that's a good fit is an experienced iOS engineer:

https://museapp.com/ios-engineer

If you're excited about Muse but haven't developed for iOS, we can teach you iOS. In particular we'd love to hear from systems engineers with experience in e.g. game engines and graphics pipelines who'd like to apply their skill set to a product like Muse:

https://museapp.com/systems-engineer

5.

Building a Scalable Postgres Metrics Backend Using the Citus Extension(citusdata.com ↗)

96 points · by mmcgrana · 10y ago · 10 comments

comment 14y ago · link · parent

Yep it's a bummer - this is discussed in a comment below.

comment 14y ago · link · parent

I totally agree re: copy-paste. I wasn't clever enough with CSS to do this straight away but it's high on my list: https://github.com/mmcgrana/gobyexample/issues/12.

Also agree that a learn more section could be good - I'll noodle on it.

comment 14y ago · link · parent

Great feedback - thanks. Georgia also works well on Mac, so I just shipped this as the default.

comment 14y ago · link · parent

Yeah there is more work to do on explaining slices for sure. I'll probably create a separate example to explain underlying arrays + capacity and perhaps break out the slicing operation into its own example. Thanks for the feedback.

comment 14y ago · link · parent

I'm exploring Go most actively right now. Go solves some problems that I care a lot about - systems access and process composition - for which Clojure isn't as directly designed. Clojure still has the best data/function composition I think, and I do miss that in Go.

11.

Introducing Go by Example(mmcgrana.github.com ↗)

213 points · by mmcgrana · 14y ago · 35 comments

12.

Getting Started with Go on Heroku(mmcgrana.github.com ↗)

11 points · by mmcgrana · 14y ago · discuss

comment 15y ago · link · parent

San Francisco, CA

Heroku is hiring infrastructure engineers across all of our platform teams.

We develop a large distributed system that runs and manages thousands of applications in the cloud. We're looking for engineers who are exited about working on challenging systems at scale.

Some specific things we work on:

- Dynamic HTTP and Syslog routing: Erlang, Redis

- Cloud-wide distributed process management: Ruby, PostgreSQL, AMQP

- Containerized process execution: Linux, LXC

- Platform substrate management: Ruby, EC2/ELB/S3

- Real-time event processing: Clojure

If you're interested in learning more, email me directly: mark@heroku.com.

comment 15y ago · link · parent

LXC is one of several isolation layers used in the Heroku dyno manifold to ensure process security and resource guarantees. Here is a more in-depth discussion of Heroku dyno isolation: http://devcenter.heroku.com/articles/dyno-isolation.

15.

Not all MBAs suck at startups. Learn how to spot Durant MBAs.(humbledmba.com ↗)

36 points · by mmcgrana · 16y ago · 11 comments

comment 16y ago · link · parent

I'd love to see a fork of adder that used Ring+Enlive+Moustache.

comment 16y ago · link · parent

Ring is a lower-level library than Compojure. It provides a variety of common web-related utilities that will be needed by many Clojure web developers, regardless of what higher-level libraries they choose to use. The purpose of Ring is to prevent those utilities from being rewritten all over the place while also allowing custom utilities to be shared among Clojure web developers.

Note that Compojure 0.4 depends on Ring, to which it delegates things like parameter parsing and cookie manipulation.

If you're familiar with the Ruby web ecosystem: Ring : Compojure :: Rack : Sinatra.

comment 16y ago · link · parent

Right, there are actually two potential problems here: 1) the initial compaction takes a long time and there are a correspondingly large amount of buffered writes to append and 2) the compaction never finishes, either because compaction hung or died - and then we are adding to the buffer indefinitely.

I don't think that 1) will be that much of a problem: the amount of writes that the db can process in the time it takes to do a compaction of even a large db should be small compared to the rate at which they can be appended to the compacted file.

2) is more problematic; I'll need to add a timeout-like guard to prevent a runaway write buffer.

comment 16y ago · link · parent

Yes; the current version of FleetDB is designed for datasets that fit in RAM.

comment 16y ago · link · parent

The database and metadata are not locked during compaction, at least to the extent that you seem to think they are.

When a compaction is requested, the compact query enters the write queue. When the query reaches the head of queue, an asynchronous compaction is started on a snapshot of the database at that time, to a file in /tmp. Also, a buffer is added to the database metadata in which subsequent queries will be stored. After this essentially instant operation, the database can proceed to process write queries as normal. While the compaction is ongoing, write queries are appended to the buffer mentioned above. When the compaction thread that was spawned earlier finishes writing its snapshot, it inserts into the write queue a request to finalize compaction. When this request reaches the head of the queue, it appends all the buffered queries to the compacted database file. Finally, it swaps the compacted file in /tmp to the regular database path. So writes are blocked once for an instant and once for however long it takes to write those buffered queries, which shouldn't be long either. Note that reads are never blocked by compaction; indeed they are never blocked in general.

comment 16y ago · link · parent

That's a good question; indeed the index maps just contain pointers back to the records.

comment 16y ago · link · parent

Clojure is very compelling for implementing a main-memory database; if you use the persistent data structures and concurrency primitives in the right way, you get atomicity, consistency, and isolation essentially for free.

comment 17y ago · link · parent

SoftLayer offers SSD options on their monthly dedicated servers, in particular 32 & 64GB "Intel SLC SSD" drives.

comment 17y ago · link · parent

"... The rest of the sentence, that they [TechCrunch] published an hour early, an hour before they were supposed to, an hour before the embargo lifted and we were going to launch the site doesn’t need to be said..."

TechCrunch has a public policy of not honoring embargos:

http://www.techcrunch.com/2008/12/17/death-to-the-embargo/ http://www.techcrunch.com/2009/05/04/survey-says-pr-people-l...

comment 17y ago · link · parent

I'm not familiar with CL's "PROGV", but you can indeed dynamically rebind vars at runtime with Clojure: http://paste.lisp.org/display/73551

comment 18y ago · link · parent

You can see http://www.crunchbase.com/conference/2007 for funding and exit information for the 2007 companies. You can also see the companies' investors, as well as the list of experts for the 2007 event.

comment 18y ago · link · parent

I'd be interested in learning what computations they do that "require up to TEN MapReduce jobs to execute in sequence". As a point of comparison, the Goolge MapReduce paper from 2004 says that their production web search indexing system "runs as a sequence of five to ten MapReduce operations." [labs.google.com/papers/mapreduce-osdi04.pdf]

comment 18y ago · link · parent

Many of the flight-related sites use http://www.itasoftware.com/ for fare and schedule querying.

comment 18y ago · link · parent

It would be neat if there were comparable datasets available for other sites. For example, I'd be excited about getting my hands on a dataset describing Twitter's user/following graph.

comment 18y ago · link · parent

You might consider how much of the structure and ordering you actually need to maintain in the database, and how much you could compute in your app servers after pulling the raw data from the database.

For example, say that your comments table stored the user id, the post id, the parent comment id (where the parent is the one the user clicked "reply" on), the vote count, and a timestamp. Then to render a page for all of the comments for a particular post, you could just pull all of the comments keyed by that post id and then order/arrange them however you want in your application code, such as by timestamp or number of votes. This doesn't require any tricky db writes and generally removes load from the db (which is desirable since its the hardest part of the app to scale).

The harder part is dealing with a case like the user comments page on neww.yc, where you show all of the user's comments along with of the descendants of those comments. Aside from the traditional approaches to storing hierarchies in relational dbs like the ones you linked to, I know of two other possibilities. One is to store the path of nodes to the root as lexicographically-comparable strings. The other is to create a separate table that stores ancestry relationships, in which for each node you have one row for each of its ancestors in the tree up to the root. Again, both of these approaches would allow you to pull out exactly the comments that you needed, but you would have to do the arranging in the application code.

12