Schemepy status: Guile and Python inter-callable

It's the 2nd week of Schemepy. I'm glad to say that I have a roughly finished guile back-end now. All existing (including some newly added ones) passed without any problem. However, I've also make some non-trivial interface changes: toscheme is an instance method instead of a static method of VM [...]

Google Reader 终于增加 note 的功能了

Google Reader 可以 share 自己觉得有趣的文章,然而却无法指明自己为什么觉得有趣,今天打开 Google Reader ,发现左边侧栏有了一个 Note 的菜单。里面列出了自己的 notes ,还有一个 note button ,使用这个 note button 可以在任何地方把看到的有趣的文章 share 到 Google Reader 并添加自己的评注了,这也是一直期待的功能,因为有时候许多文章并不是在 Google Reader 里看到的,有些文章甚至没有 RSS Feed ,不方便用 Google Reader 进行订阅。 而 Reader [...]

流水帐:GSoC、SRTP、MSTC、考试、游戏、动漫……

其实连流水帐也算不上,因为根本没有什么连续性,其实生活本是如此嘛,杂乱无章,如果是一成不变,那就不叫生活了。而且这样的跳跃性似乎更适合我的思维。最近也发生了不少事情,姑且罗列一些吧。本来不是很喜欢在 Blog 上写这类的东西,但是似乎是有些压抑了,再加上受到动漫游戏里虚拟世界的那些美好生活的刺激吧,也想找个“人”倾诉(或者唠叨)一下。 :p Google Summer of Code 前段时间一直在忙的 GSoC 申请也算告一段落了。大三也快结束了,同学们都开始找事情做了吧,特别是暑期的实习,好像 Google 、微软的都有宣讲会面试之类的,我想如果做 GSoC 的话就不会有时间做实习了,而 [...]

First week of Schemepy

As I mentioned in my last post, I'll work on Schemepy in this summer. Though the official begin coding time of GSoC is May 26, I've already do some initial research on this the last summer. I'll try to keep a weekly progress report in my blog. There were already two backend for Schemepy: guile and [...]

git status in shell prompt

When I see the post "Current Git Branch in Bash Prompt" from reddit, I found it really a cool idea. Personally, I use zsh, though that post is about bash, adding similar thing to zsh is pretty easy! My zsh prompt is already pretty cool in my opinion. I borrowed something from Phil!'s ZSH Prompt, [...]

Google Summer of Code 2008: First Chapter

Finally, I was accepted by Thousand Parsec and will work on Schemepy with Timothy Robert Ansell this summer. I hope this would be an enjoyable summer. :) It's been a fairly long time since the announcement of Google Summer of Code 2008. I'll try to write something about that period. I learned a lot [...]

“软件工程”课告一段落

“软件工程”也是计算机专业的必修课之一。我一向对诸如敏捷开发、极限编程之类的东西比较感兴趣,“拥抱变化”给我的印象非常深刻,所以我意识里也有些抵制传统的软件工程。我觉得,对于小的项目来说,花那么多的时间在繁琐的软件工程流程上简直就是浪费;而对于大的项目来说,不管你花多少时间来做计划都是徒劳,因为需求总是会变化,我们要做的只能是“拥抱变化”而不是永远停滞在设计阶段。 但是我想既然这个课是由 CYJJ 来上,应该至少不会无聊到哪里去吧。二十多章的内容被压缩在了 8 周的短学期中,上课又是一百多号人的班级,唯一能吸引人的就是课件里穿插的各种故事(或者说叫做 IT [...]

YARV (The Official VM for Ruby 1.9) Instruction Set

YARV is Yet Another Ruby VM. But it is the official Ruby VM since Ruby 1.9. It is a stack-based VM which runs the YARV bytecode, or intcode because each element of the instruction sequence is in fact stored as an int. There is an instruction table for YARV on the original YARV homepage, but it is [...]

Use git-svn to fork a project and keep tracking of it

The case is that sometimes you want to add some cool feature to an open source project. But you don't have commit rights to that project. So you checked out a copy of the code and do some local hacking. The problem is that you'll have to track the updates of the original code and merge the changes [...]

给 YASnippet 的文档做了 css 主题

YASnippet 的文档是用 reStructuredText 生成的,感觉 reStructuredText 虽然很强大,但是自带的那个 HTML Writer 的可定制性实在是不太好,而且文档不好找,许多地方都只能根据固定好的输出结构来做 css ,而 Muse 在这方面要好弄一些,主要是 Muse 比较简单,许多地方可以方便的控制了。下面是一个截图: 还不错吧!可以点过去看看。 :) 其实是借用了 Drupal 6 的默认主题里的不少东西。

[ANN] YASnippet 0.5.0 Released

I know the problem from the very beginning: if you delete (use something like C-w or C-k) the region of the snippet you just expanded, things will get weird. I thought people will never want to delete the snippet after expanded it; and if he really want to, he can use undo, which works perfectly. [...]

BleakHouse 4! Find memory leak in your Ruby program!

今天看到 BleakHouse 发布了第 4 版的消息:采用了全新的实现: ...there is no framing necessary, and the analysis task runs in seconds instead of hours. 我在“内存泄漏分析工具的尴尬”这篇文章中曾经介绍过 BleakHouse ,不过那个时候用 BleakHouse 会产生出无比巨大的 dump 文件,并且分析过程需要花费非常多的内存和时间,有时基本成了不可能完成的任务。现在看到 v4 发布消息里提到了新的实现,实在是大喜!因为这本身是一个非常不错的工具。如果你有发现你的 Ruby [...]

Ruby on Crack: yet another web framework

:D 愚人节里各个社区里的气氛都活跃了许多,在 Ruby-talk 的邮件列表里发现了 N 个 Ruby fork 要发布了,还有用 PHP 写的 Ruby 。其他社区也很活跃,Java 似乎是今年的一个主角:各种各样的项目都要迁移到 Java 了。 :D 不过令我敬佩的是虽然只是愚人节的玩笑,许多人都很细心地去做,比如前面的这个叫做 Brobinius 的 Ruby fork 还专门做了一个网站。还有 Antonio Cangiano 的 Ruby on Crack ,他最后一段描述的不同的人对 Ruby on Crack 的反馈: “Those who use Crack can [...]

Rsync without any configuration!

Rsync 是一个在不同的机器之间拷贝文件的极佳的工具,由于它可以对文件进行增量传递,所以速度会比较快。不过它并不像版本控制软件那样要在本地记录版本信息,用于计算 diff ,似乎是在本地和远程都不会附加任何额外的“元信息”的,如果你感兴趣,可以去看一下它的算法和技术报告。其实我也比较感兴趣。 :) 不过几乎所有介绍 Rsync 的文章都会说先安装 rsync ,然后配置 /etc/rsyncd.conf ,云云,一堆麻烦的东西就出来了。我只想要一个 quick and dirty 的 scp 的替代品,该怎么办呢?又仔细看了一下文档,试验了一番,发现 rsync [...]

[ANN]YASnippet 0.1.1 Released

YASnippet -- Yet Another Snippet extension for Emacs. 最近有些忙,代码差不多了,文档会在有时间的时候陆续更新。先看 Screencast。yasnippet.el 是在总结了 smart-snippet.el 的反馈之后完全重写的。部分 feature 列表: 配置简单(一句话: (require 'yasnippet-bundle) ) 在输入的时候同步更新 field (Textmate) 可以在文件中定义 snippet (msf-abbrev) 支持将文件中定义的 snippets “编译”成单独的 .el [...]