News for hackers. Stuff that matters.
Re:An Intro to Compilers by bitL on Sunday August 13, 2017 @06:42PM (#15005384)
BTW, can anyone please suggest a good online compiler course for creating your own programming language with labs/exams/certs? I can find pretty good courses for almost anything but not for compilers... Something that would focus on handling grammar (LALR, LL, CYK etc), ASTs, semantics, types, code-completion, imperative/OOP/functional/logical/self-modifying constructs etc. or even NLP-to-AST conversion...
Re:An Intro to Compilers by jpolitz on Sunday August 13, 2017 @08:28PM (#15005853)
My compilers course has all the lectures recorded, and has starter code for all the assignments provided. It provides all the parsers, and focuses on the backend, including memory management and various details of value representations.

This is just my materials, I don't have an associated platform with verification/certification. However, some folks from HN have previously done the course and emailed me after, and seem to have gotten some value out of it.

https://cseweb.ucsd.edu/classes/sp17/cse131-a/

https://podcast.ucsd.edu/podcasts/default.aspx?PodcastId=401...

https://github.com/ucsd-cse131-sp17

Earlier offering:

https://www.cs.swarthmore.edu/~jpolitz/cs75/s16/

Re:An Intro to Compilers by gilmi on Monday August 14, 2017 @02:50AM (#15006979)
I'm using the earlier offering of your course and another[0] to learn about compilers for a while now and it's the only method that really clicked for me. Thank you very much for making this open!

[0]: http://www.ccs.neu.edu/course/cs4410

Re:An Intro to Compilers by jpolitz on Monday August 14, 2017 @10:38AM (#15008857)
Ben Lerner did a great job writing notes [0] for his version, which are super helpful if you prefer reading to videos.

[0] https://course.ccs.neu.edu/cs4410/#%28part._lectures%29

Re:An Intro to Compilers by gilmi on Monday August 14, 2017 @01:59PM (#15010869)
Definitely! They are really well done and actually worked better for me than videos. Unfortunately they only cover the first half of the course.
Re:An Intro to Compilers by rmusial on Sunday August 13, 2017 @09:32PM (#15006106)
Thanks for this, this looks amazing
Re:An Intro to Compilers by abiox on Monday August 14, 2017 @12:47PM (#15010153)
i started watching the first lecture; when you ask about the output of ghc, i love that someone says "burritos".

thanks for making this material available!

Re:An Intro to Compilers by kerkeslager on Sunday August 13, 2017 @07:53PM (#15005680)
Matt Might doesn't have an organized course for free online, but I found that his blog filled in a lot of the gaps for me between compiling a language like C, and a more modern language like Scheme or Python, which are missing from other resources I've found online. You'll have to click around to different posts, but here's a good starting point:

http://matt.might.net/articles/compiling-scheme-to-c/

Re:An Intro to Compilers by DonaldPShimoda on Sunday August 13, 2017 @08:25PM (#15005842)
Re:An Intro to Compilers by kerkeslager on Monday August 14, 2017 @08:40PM (#15014386)
Awesome! Thanks for that.
Re:An Intro to Compilers by piemonkey on Sunday August 13, 2017 @07:05PM (#15005477)
Re:An Intro to Compilers by sn9 on Sunday August 13, 2017 @08:52PM (#15005969)
You can find this on Stanford Lagunita in a MOOC format.
Re:An Intro to Compilers by dochtman on Monday August 14, 2017 @02:42AM (#15006948)
I liked the Stanford course given by Aiken, on Coursera:

https://dirkjan.ochtman.nl/writing/2012/07/21/compilers-on-c...

Also, if you like this sort of thing, my compiler in Python that compiles to LLVM IR might be interesting:

https://github.com/djc/runa

Re:An Intro to Compilers by dipper on Monday August 14, 2017 @02:58AM (#15006998)
Most of this stuff flew over my head. While I understand C, this stiff feels out of grasp. Can anybody also please suggest recommended reading for beginners?
Re:An Intro to Compilers by phenylene on Monday August 14, 2017 @04:23AM (#15007266)
Crafting Interpreters is a great read:

http://www.craftinginterpreters.com/contents.html

Re:An Intro to Compilers by dipper on Monday August 14, 2017 @08:32AM (#15008163)
This looks great, thanks!