Libraries or device drivers in go

536 views
Skip to first unread message

Maurício

unread,
Mar 10, 2011, 4:20:01 PM3/10/11
to golang-nuts
Hi, all,

I've not seen this discussed anywhere. Is it possible to
build libraries (called by, say, C programs) in go? What
about a Linux device driver?

Thanks,
Maurício

Jessta

unread,
Mar 10, 2011, 6:12:18 PM3/10/11
to Maurício, golang-nuts

Not yet. You can call C from Go and Go from C.
But currently the entry point of the process has to be in Go.

- jessta

saturnfive

unread,
Mar 10, 2011, 7:37:05 PM3/10/11
to Maurício, golang-nuts
at present, you can't use go write linux device driver.

Maurício

unread,
Mar 11, 2011, 9:33:50 AM3/11/11
to golang-nuts
> > I've not seen this discussed anywhere. Is it possible to
> > build libraries (called by, say, C programs) in go? [...]
>
> at present, you can't use go write linux device driver.

What about, say, using a linux C or go implementation of 9p
protocol and libusb or linux USB API to serve an USB device
as a 9p file tree? Do you think this is feasible with go today?
(I believe this would keep go the entry point.)

Maurício
Reply all
Reply to author
Forward
0 new messages