These are chat archives for evhub/coconut

21st
Jun 2016
Boscillator
@Boscillator
Jun 21 2016 00:10
OK, thanks!
I would like to contribute to the project. Should I keep working on making the REPL print the result of an expression like the normal python REPL? If not, is their some other thing you need me to work on? I would love to help.
Evan Hubinger
@evhub
Jun 21 2016 01:06
@Boscillator Thanks for the pull request! I really like it, and would like to merge it. However, when you pulled in the most recent changes from develop, you didn't use the --rebase flag, which means if I merge your pull request it will mess up the revision history. I commented on your pull request with some instructions on how to fix that.
Boscillator
@Boscillator
Jun 21 2016 01:48
thanks so much
Evan Hubinger
@evhub
Jun 21 2016 02:19
@Boscillator The new pull request looks good! Can you just change so it's into develop instead of master?
Constantine Molchanov
@moigagoo
Jun 21 2016 04:41

@evhub I'm a bit confused with the state of the Jupyter support. coconut --jupyter console or coconut --jupyter notebook fail with No such kernel named icoconut error. Running coconut --jupyter seems to add the kernel successfully, but it's still unavailable as an option for new notebooks. The only things that appear to work are cell and line magics.

Is this expected, of should I file an issue?

Evan Hubinger
@evhub
Jun 21 2016 06:28
@moigagoo Strange--that's not something that's shown up in my testing. Definitely not intended behaviour. File an issue at https://github.com/evhub/coconut/issues/new with as much information as you have (most importantly, what commands you entered and what output you got) and I'll look into it.
Evan Hubinger
@evhub
Jun 21 2016 06:36
@moigagoo One extra thing that would be useful in debugging this: if you could run the command python -m coconut.icoconut and tell me what that outputs, it would be very helpful.
Constantine Molchanov
@moigagoo
Jun 21 2016 07:54
@evhub Reported evhub/coconut#97 If there's anything I can help with, I'd be happy to.
Constantine Molchanov
@moigagoo
Jun 21 2016 08:12

@evhub Should guards be available in pattern-matching function definitions?

Currently, this fails with CoconutParseError:

def foo(x is int if x>=0) = x

But this works:

def foo(x is int) = x
Evan Hubinger
@evhub
Jun 21 2016 08:17
@moigagoo Thanks for the issue! And no, guards are not currently supported in pattern-matching function definition--although I think that's more of an oversight than an intended feature. I'll open an issue and work on that for the next version.
Constantine Molchanov
@moigagoo
Jun 21 2016 09:22
@evhub thanks! BTW, I'm giving a talk about coconut at work today :-)
Constantine Molchanov
@moigagoo
Jun 21 2016 12:41
This message was deleted
datnamer
@datnamer
Jun 21 2016 14:42
@evhub It does! But I don't see a way to write semantically new DSLs. Opened an issue evhub/coconut#102
Boscillator
@Boscillator
Jun 21 2016 17:04
It looks like it's going to develop to me.
Evan Hubinger
@evhub
Jun 21 2016 17:33
@moigagoo Awesome! I'm trying to fix that Jupyter issue you raised ASAP--it's a tricky one, since I can't seem to replicate it on my machine.
@datnamer Thanks for the issue! I'll take a look at it and see what I can do.
@Boscillator Yep, the new pull request looks good! Planning on merging it very soon.