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

Consider using ccgo for a pure-Go implementation #15

Open
zellyn opened this issue Sep 16, 2021 · 4 comments
Open

Consider using ccgo for a pure-Go implementation #15

zellyn opened this issue Sep 16, 2021 · 4 comments

Comments

@zellyn
Copy link

zellyn commented Sep 16, 2021

I think gebv/pikchr would be far more likely to be included in projects like Goldmark (and hence Hugo, my particular desire) if there were a pure-Go implementation.

It's a little crazy, but @cznic has been successfully translating the much more complicated sqlite into pure Go, using a C-to-Go compiler, ccgo.

I started investigating the possibility here, and @cznic actually got it to compile without much trouble at all!

I thought I'd open an issue here with the status so far, because as much as I'd like to send you a perfectly done PR, I'm short on time these days, and likely to get pulled into fulltime childcare periodically. I thought I'd at least give you the idea, and status.

It would probably also be worth investigating whether it uses much of modernc.org/libc, or whether we could just implement a handful of functions that it does use, and remove that dependency.

Anyway, all the best!

Zellyn

@gebv
Copy link
Owner

gebv commented Sep 22, 2021

Hi. Using it without GCO sounds interesting. I'll take a look at the project gitlab.com/cznic/ccgo.
But most of my time is spent on other projects.

@zellyn
Copy link
Author

zellyn commented Mar 25, 2022

Update: I have ported pikchr to Go. https://github.com/gopikchr/gopikchr

@gebv
Copy link
Owner

gebv commented Mar 26, 2022

@zellyn wow, sounds awesome.

@rigtorp
Copy link

rigtorp commented Jan 12, 2023

I have another approach to make a cgo free binding for pikchr using WASM: https://github.com/rigtorp/go-pikchr

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

3 participants