CoffeeScriptRedux icon indicating copy to clipboard operation
CoffeeScriptRedux copied to clipboard

Any points for beginners about hacking on the project?

Open paulmillr opened this issue 12 years ago • 3 comments

I want to try adding some shitty static type checker and learn compilers, but no ideas where to start. I think other folks that want to hack on compiler think similarly.

Would be awesome if there was some simple workflow description.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

paulmillr avatar Mar 06 '13 16:03 paulmillr

This should help a bit, but obviously isn't a contributors' guide: https://speakerdeck.com/michaelficarra/an-analysis-of-the-redesign-of-the-coffeescript-compiler

I'll try to write something up. Maybe a wiki page with pretty pictures and everything.

michaelficarra avatar Mar 06 '13 16:03 michaelficarra

+1 that would be cool

j1wilmot avatar Mar 06 '13 16:03 j1wilmot

RE static type checker: see this tweet: https://twitter.com/puffnfresh/status/303961963661254656

I think it's better to create a tool that performs the analysis on the spidermonkey AST and then just map the types back to the CoffeeScript constructs. Then you'll be able to determine static types for any compile-to-JS language.

edit: here's some good resources or starting points:

  • https://github.com/espadrine/aulx
  • https://github.com/scripted-editor/scripted/wiki/Architecture#wiki-Inferencing
  • https://github.com/scripted-editor/scripted/blob/master/client/scripts/plugins/esprima/esprimaJsContentAssist.js
  • https://github.com/marijnh/tern/blob/master/infer.js
  • http://rfrn.org/~shu/drafts/ti.pdf
  • http://research.microsoft.com/apps/pubs/default.aspx?id=168635

michaelficarra avatar Mar 06 '13 16:03 michaelficarra