Live data from Hacker News

Advanced Compilers: Self-Guided Online Course

cs.cornell.edu

31–40 of 241 posts

Re: Advanced Compilers: Self-Guided Online Course

#31
post #23

Earlier quoted context omitted.

> the difference between masters and PhD has nothing to do with classes. huh ? what's your education system ? in europe it's generally 3 year bachelor, then 2 year masters, then 3 years phd so when you have classes during your phd hopefully they are different that the one you get during your masters

In the US, it's typically a 4 year undergrad, 2 year masters, and a ~5-7 year PhD depending on the program itself. From what I understand, while there are some classes you take as a PhD student, a majority of your work is doing research

For PhD students, the masters is integrated into the 5 years they spend doing their PhD. They are expected to take courses as a "pre-candidate" and do primarily research after they pass their qualifying exams and become candidates.

Re: Advanced Compilers: Self-Guided Online Course

#32
post #8

What would be some cool use cases to design your own compiler?

The simplest case where they prove useful is usually when your regex is longest than 20 characters. Write a parser once, and it'll be readable to people other than yourself (if it isn't your schema is bad)

Re: Advanced Compilers: Self-Guided Online Course

#33
post #17

The course materials look good. But what is a "PhD level course"? All I've seen is undergrad and graduate, and the difference between masters and PhD has nothing to do with classes.

> the difference between masters and PhD has nothing to do with classes. huh ? what's your education system ? in europe it's generally 3 year bachelor, then 2 year masters, then 3 years phd so when you have classes during your phd hopefully they are different that the one you get during your masters

I am in the US, and at my school masters and PhD students all take the same classes.

It is not ideal because many of the masters students are coming from a non-CS background. Some of the graduate level CS courses I have taken were easier than 4th year level undergrad classes.

Re: Advanced Compilers: Self-Guided Online Course

#35
post #23

Earlier quoted context omitted.

> the difference between masters and PhD has nothing to do with classes. huh ? what's your education system ? in europe it's generally 3 year bachelor, then 2 year masters, then 3 years phd so when you have classes during your phd hopefully they are different that the one you get during your masters

In the US, it's typically a 4 year undergrad, 2 year masters, and a ~5-7 year PhD depending on the program itself. From what I understand, while there are some classes you take as a PhD student, a majority of your work is doing research

Just for completeness sake. In the EU a bachelor's is 3 years, a master 1 or 2 (2 being the standard) and a PhD 3-5 years. It depends on the country, so it's possible to get 3+2+5.

Re: Advanced Compilers: Self-Guided Online Course

#36

Earlier quoted context omitted.

> the difference between masters and PhD has nothing to do with classes. huh ? what's your education system ? in europe it's generally 3 year bachelor, then 2 year masters, then 3 years phd so when you have classes during your phd hopefully they are different that the one you get during your masters

I am in the US, and at my school masters and PhD students all take the same classes. It is not ideal because many of the masters students are coming from a non-CS background. Some of the graduate level CS courses I have taken were easier than 4th year level undergrad classes.

This tracks well with my experience also. I was disappointed, for the most part, the several graduate CS courses for this reason.

Re: Advanced Compilers: Self-Guided Online Course

#38
post #12

On the related note, what would you guys recommend as an introduction to compilers, say for beginners?

cs4410[1] is really really good, and cse131[2] is basically the same thing but with videos. I highly recommend them both.

[1]: https://course.ccs.neu.edu/cs4410/

[2]: https://ucsd-cse131-f19.github.io/

Re: Advanced Compilers: Self-Guided Online Course

#39
post #8

What would be some cool use cases to design your own compiler?

There are various weird and wonderful niche languages out there, if you appreciate programming languages as an end in themselves. Two examples: Sentient [0] and Factor [1][2]. [0] https://sentient-lang.org/ [1] https://factorcode.org/ [2] Factor's home-page does a poor job of presenting examples to give a flavour for the language, so here's one on GitHub: https://github.com/factor/factor/blob/master/basis/roman/rom..…

Sentient looks neat! Does it use the same strategies as Prolog under the hood?
Post reply on HN