Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening up go structs, maps, etc. in Idris? #1

Open
apatil opened this issue Apr 14, 2018 · 1 comment
Open

Opening up go structs, maps, etc. in Idris? #1

apatil opened this issue Apr 14, 2018 · 1 comment

Comments

@apatil
Copy link

apatil commented Apr 14, 2018

Looks cool! In the 'echo' example, it looked like the Go values were treated as opaque in your Idris code. Would it be possible to inspect internal values in composite Go types like structs, maps etc. from Idris?

@Trundle
Copy link
Owner

Trundle commented May 1, 2018

Thanks for your interest in idris-go! There is no real reason why the Go values couldn't be less opaque, except of course that someone has to implement it :-)

The much bigger topic I see right now is that everything is represented as unsafe pointer. So most time when running a program is spent chasing pointers and doing garbage collection. That makes idris-go a bit unattractive in practice, I'm afraid. On the other hand I don't see why a smarter representation/translation shouldn't be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants