查看: 11830| 回复: 34
跳转到指定楼层
上一主题 下一主题
收起左侧

[MOOC]一门从零开始手工实现C++11编译器的公开课!目测完成了就是神了!!!

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
本帖最后由 cs900601 于 2014-4-22 18:29 编辑

2014-04-22更新:此课程被分为了上、下两部分,如课程主页所写:
  • Current Students: C++ Grandmaster I (2013-2014)
  • In part 1 of the course you will develop a series of components corresponding to all nine phases of translation of C++. You will also exhaustively study the complete latest C++ specification (including the core language and standard library), and be required to submit to an oral examination on the material.


  • C++ Grandmaster II
  • [b]Start Date: TBD
  • In part 2 of the course you will combine the components you developed in part 1, fill out the semantic analysis phase with remaining language features, implement your standard library, bootstrap a self-hosting build and pass the final conformance test suite.
[/b]楼主的感觉是第一部分如果阅读作业不算的话难度和Stanford CS143相仿。

============================================================================================

这门课叫C++ GrandMaster,c++终极大师… ---> http://cppgm.org/
课程的目标是从零开始,手工实现一个兼容C++ 2011标准的编译器

Participants in this free online course will develop their own C++ compiler, standard library, and toolchain with the following features:
  • Compliant with the latest 2011 standard (C++11)
  • Written entirely in C++ with no third-party dependencies
  • Code generator targeting Linux x86_64
  • Full toolchain including preprocessor, assembler, and linker
  • Will build with itself (self-hosting) and pass provided conformance test suite

为了简化目标,这门课只针对x86_64体系结构的Linux目标机器进行代码生成,且不优化
但即使如此,也:
“The workload is different for everyone but for people that are "ready" for the course and meet the listed Prerequisites we hope for it to be about 10 hours/week over 12 months.”
(这是官方网上的说明)

回想把那个coursera上面的compiler弄了2个星期后终于可以正常作息时间睡觉的经历,12个月要把人逼疯了,这简直是24堂coursera上的Compiler课啊,有木有。

于是就在网上随便翻了翻别人的感想,有人这么说:
ahaha, what a joke.

Have you ever wondered why there are so few C++ compilers out there, none of which are even yet fully compliant with C++11? It's because they are huge, ambitious projects that only big companies have the resources to embark on. You've got Intel, Microsoft, the FSF, IBM, HP, Embarcadero (ex-Borland), Apple/Google, and others still working on it. And they haven't started from scratch---they all had working C++03 implementations. And they offer a pitty certification?

If you've developed a C++ compiler on your own, you can get pretty much any job you like in the field. Putting their recommandation in your resume only downgrades it.

(此帖来自于:http://forum.osdev.org/viewtopic.php?f=13&p=219252

地里的各位神牛们怎么看?有人enroll了没?昨天是enroll截止,所以我就在最后一刻点了一下enroll,但我觉得我应该没有时间也没能力做了,如果有谁想做的话我把(最初的几个)assignment发给他。

点评

在2013年12月31日下午把PA8击倒!  发表于 2014-1-1 15:18
今天PA8做到了大约三分之一的Test case。如果最近我找实习全被据,就化悲痛为力量继续做这个了。  发表于 2013-12-31 03:40
今天PA8做到了大约三分之一的Test case。如果最近我找实习全被据,就化悲痛为力量继续做这个了。  发表于 2013-12-31 03:38

评分

参与人数 1大米 +10 收起 理由
vlsi2012 + 10 谢谢介绍 赶紧加入1

查看全部评分


上一篇:[Coursera] Compilers Design (Unit #4)
下一篇:强烈推荐Programming Languages
推荐
 楼主| cs900601 2014-8-13 01:18:50 | 只看该作者
全局:
昨天收到信说俺 Part 1 过关了
最后一个written assignment是用一个星期拼凑出来的,标准文档只是囫轮吞枣了一遍,真是受之有愧…

目测第二部分是非得重构一大部分不可否则就会立即跪掉的节奏
但是无论如何,最近总是轻松了一些,像是有块石头落地的感觉呢
说是精神病有所好转终于能专心给老板干活了也不为过呢
嘻嘻 XD

cppgm1passed.jpeg (14.63 KB, 下载次数: 1)

cppgm1passed.jpeg

评分

参与人数 2大米 +15 收起 理由
limuzi0609 + 5 lzdb
zzwcsong + 10 楼主碉堡!

查看全部评分

回复

使用道具 举报

推荐
zzwcsong 2014-8-14 20:07:02 | 只看该作者
全局:
cs900601 发表于 2014-8-13 01:18
昨天收到信说俺 Part 1 过关了
最后一个written assignment是用一个星期拼凑出来的,标准文档只是 ...

楼主碉堡!!
回复

使用道具 举报

🔗
newlxnewlx 2013-3-18 11:11:53 | 只看该作者
全局:
单是standard library 单枪匹马能写完已经是神牛了。。。
回复

使用道具 举报

🔗
北美农民 2013-3-18 11:15:50 | 只看该作者
全局:
编译器, 内核, CS俩大杀器、、、、、、
回复

使用道具 举报

🔗
麻倉枼 2013-3-18 11:18:40 | 只看该作者
全局:
请问coursera这个网站的课程可以中途暂停的么?还是上了它家的课就必须得上下去,每天有作业那种
回复

使用道具 举报

🔗
 楼主| cs900601 2013-3-18 11:53:28 | 只看该作者
全局:
本帖最后由 cs900601 于 2013-3-17 21:57 编辑
麻倉枼 发表于 2013-3-17 21:18
请问coursera这个网站的课程可以中途暂停的么?还是上了它家的课就必须得上下去,每天有作业那种

中途暂停是指?
如果是Self-study模式的话根本没有时间限制,想什么时候弄就可以什么时候弄;
如果是一般的课程的话就会有deadline,过了deadline得不到分数,最后不及格的话就得不到certificate了。
回复

使用道具 举报

🔗
麻倉枼 2013-3-18 12:46:39 | 只看该作者
全局:
cs900601 发表于 2013-3-18 11:53
中途暂停是指?
如果是Self-study模式的话根本没有时间限制,想什么时候弄就可以什么时候弄;
如果是一 ...

哦,我就是指self-study。。
原来有certificate的啊,不是说free online courses么,需要交钱的么?
一般这种课程所花的时间会比full-time course work多么?
例如一个semester就4个月左右,可是要上几乎一本书的内容,这里可以一本书花8个月么?(举个例子而已)
回复

使用道具 举报

🔗
zengxinzhy 2013-3-18 12:59:25 | 只看该作者
全局:
要是把这个课上了,我觉得简历上只写一句:“独立完成了一个完整的C++编译器”就足以秒杀所有公司了
回复

使用道具 举报

🔗
kinslover 2013-3-18 13:04:32 | 只看该作者
全局:
麻倉枼 发表于 2013-3-18 12:46
哦,我就是指self-study。。
原来有certificate的啊,不是说free online courses么,需要交钱的么?
一 ...

certificate代表你在该课程要求的时间和框架内完成了该课,跟钱没关系。

每门课显然内容难度不一样,每门课都有关于这方面的标示。这个你自己去课程页面上看5分钟就明白了。
回复

使用道具 举报

🔗
kinslover 2013-3-18 13:04:56 | 只看该作者
全局:
没上过编译的卢瑟飘过。。。
回复

使用道具 举报

🔗
Kimurate 2013-3-18 13:10:43 | 只看该作者
全局:
寫個玩具語言的編譯器都要死要活,這個暫時不敢碰。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表