TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Diaspora re-writes its front to Backbone: why and what it means

152 点作者 plunchete超过 13 年前

13 条评论

jashkenas超过 13 年前
The way that this post describes porting and existing interface from server-side/ajax rendering to client-side rendering is particularly interesting -- I imagine that there aren't many apps that have made that jump <i>after</i> first being built around server-side templates.<p>The speed benefits that Diaspora is seeing from distributing their HTML rendering is probably only the first step. There are <i>so many</i> more interesting interactions you can accomplish once your data is being modeled in the browser.
评论 #3449157 未加载
评论 #3449047 未加载
评论 #3449411 未加载
评论 #3448967 未加载
AznHisoka超过 13 年前
This is the biggest win for Diaspora? Really? Sounds like they've been deluded by all those NYU CS professors who think knowing how to add 32 bit floating point numbers is the key to success.<p>Just dump everything, spend 1% of your time rewriting everything in PHP, and the rest actually doing some marketing, not imaginary work.
评论 #3450072 未加载
tripzilch超过 13 年前
Maybe this is a really stupid question, but wasn't Diaspora supposed to be decentralized? In the sense that anybody could set up their own hub? (so people would not have to accept features pushed by some big corporation and things like that)<p>Then what is this whole database backend for? Is it like the "main" Diaspora hub? And could anyone set up their own secondary one? Would they run into the same difficulties they're trying to solve here?<p>Though I get the feeling I'm probably misunderstanding the entire Diaspora project, here.
评论 #3449413 未加载
ferrofluid超过 13 年前
Sorry, I don't know what "Backbone" is. I see links to New Relic and Pivotal Labs, but no links to anything called "Backbone".<p>I guess this blog post was maybe not meant for purely technical people, but it would be nice to understand what "Backbone" is, and exactly why it would solve their problems.
评论 #3449160 未加载
评论 #3449824 未加载
评论 #3449342 未加载
评论 #3449181 未加载
评论 #3449154 未加载
评论 #3449149 未加载
评论 #3449185 未加载
JoachimSchipper超过 13 年前
500ms+ for rendering a template seems ridiculous. Were they just Doing It Wrong, Ruby-wise?
评论 #3454230 未加载
charliesome超过 13 年前
It sounds like they were jumping to conclusions regarding the templating being responsible for creating a large number of objects.<p>ERB, Haml (which is what Diaspora uses), and any other templating engine I've seen use either concat or &#60;&#60; when rendering a template. These never create a new object, they mutate (and perhaps resize) the original string.<p>Maybe next time they should profile better before following their gut feeling and rewriting their front end ;)
评论 #3450346 未加载
peterhunt超过 13 年前
I'm coming from a Python perspective; no idea if this is easy/possible in Ruby.<p>Maybe this is a really stupid idea, but what if we <i>gasp</i> disabled the GC during the course of each request and did a collection run after the request is completed and before the next one is accepted? With a sufficient number of workers, wouldn't this solve some of the problems they were having?
评论 #3450670 未加载
评论 #3450503 未加载
memoryfault超过 13 年前
This post made me curious to learn more about new relic and their architecture. I found this post pretty interesting: <a href="http://highscalability.com/blog/2011/7/18/new-relic-architecture-collecting-20-billion-metrics-a-day.html" rel="nofollow">http://highscalability.com/blog/2011/7/18/new-relic-architec...</a>
gaius超过 13 年前
Does it mean they won't blow away all their user accounts when they get bored and start again? No? Well that is why Diaspora is a joke.
评论 #3449358 未加载
评论 #3449675 未加载
评论 #3449432 未加载
charlesju超过 13 年前
Is there a main deployment of Diaspora somewhere? Or is this a purely academic project?
评论 #3449392 未加载
评论 #3449739 未加载
评论 #3451401 未加载
emehrkay超过 13 年前
okay <a href="http://i.imgur.com/jHu1N.png" rel="nofollow">http://i.imgur.com/jHu1N.png</a><p>this is from webkit nightly after I clicked a user name and got a "you messed up" 404 page and went back
marcosvm超过 13 年前
Rewriting the front-end using Javascript and Backbone won't fix the backend problems necessarily. How about reducing the objects creation and tuning the backend too?
评论 #3449274 未加载
bionicbrian超过 13 年前
Rad! That graph is awesome!<p>Also cool that the source is public on Github. thanks for that. Always fun to peek in on source.