There's something to be said to the notion of being able to better inter-op
with C code bases, though.
If we had a C compiler written in Go (like modernc.org/cc perhaps), integrated
with the Go compiler (yes, that's an additional maintenance issue), that would
spit off Go-compatible ASM, then we could have a better inter-op story and
retain a nice cross-compatibility feature (assuming that C compiler could
cross-compile as the Go one).
A bit like what the Zig compiler can do.
In that scheme, one wouldn't have to maintain a C and a Go code bases. ("Just"
the C compiler one).
-s
-------- Original Message --------
On Mar 14, 2021, 13:27, Elias Naur wrote:
> On Sun Mar 14, 2021 at 13:03, Jan Mercl wrote:
>> On Sun, Mar 14, 2021 at 12:57 PM Elias Naur <[email protected]> wrote:
>>
>> > > Eg. if you really need to hook at battle-tested C code that needs no
>> > > further maintenance, you may try https://github.com/minio/c2goasm
>> > > It lets you bootstrap fast, then you may aim at a proper rewrite.
>> > >
>> >
>> > A rewrite is one thing, maintenance is another. Do you have the
>> > resources to match those poured into SQLite or Harfbuzz?
>>
>> Harfbuzz is C++ so until someone helps with converting it into pure C
>> it's off limits to ccgo. But it can handle SQLite already:
>> https://pkg.go.dev/modernc.org/sqlite. Passing more than 900k Tcl
>> tests that SQLite includes.
>
> Indeed, I didn't mean to ignore ccgo. My point was aimed at the "then
> you may aim at a proper rewrite" part which seems to argue that
> rewriting is always the better approach.
>
> Elias
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/C9X2NM4AAJ4C.3UHAPTBAIMZQY%40themachine.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/L5ADnsodJ_QYooKjh-tKOOwJPeBhQWtrwiCzURwT3ylFhGM47525LembzJc_FL0TZJU09Ys7ZSCaHrxqYTl0qcI4hnUpc5T4g9iB9KFw85Q%3D%40sbinet.org.