These are chat archives for evhub/coconut

24th
Sep 2016
Muhammad Alkarouri
@malkarouri
Sep 24 2016 14:22
Hi
Is there a way to write a package in coconut and use it from a coconut application without an explicit compilation step?
Now if I start a .coco file with a shebang of coconut -nr I can run it.
toothlessdragon
@toothlessdragon
Sep 24 2016 18:02
Hi, new here. Has anyone tried using coconut and mypy at the same time (for functional tools and typing)?
for reference: http://mypy-lang.org/
or do they not mix well / play nice together?
Evan Hubinger
@evhub
Sep 24 2016 21:35
@malkarouri Yes, a shebang of coconut -nrshould do what you want, although compiling first is recommended since the compilation process is slow, and thus having to do it every time your application is run will greatly slow it down.
Evan Hubinger
@evhub
Sep 24 2016 21:41
@toothlessdragon Coconut + MyPy integration is heavily in development right now. Currently, we are waiting on the fix in python/mypy#1839 to get released in a new MyPy version, since that fix is necessary for MyPy to be able to properly parse compiled Coconut. Once that fix is out, you will be able to run MyPy on your compiled Coconut just fine. Additionally, once that's working, the plan is for Coconut to support a nicer-looking type definition syntax than the MyPy default that will compile down to basic MyPy. If you have an idea of what you'd like that syntax to look like, leave a comment on #121, the issue that's tracking that change.
toothlessdragon
@toothlessdragon
Sep 24 2016 21:41
gotcha, thanks
Evan Hubinger
@evhub
Sep 24 2016 21:42
np!
Muhammad Alkarouri
@malkarouri
Sep 24 2016 21:49
@evhub thanks
Evan Hubinger
@evhub
Sep 24 2016 22:30
np! you're always free to ask whatever questions here you might have and I'll do my best to answer them in a timely manner.