On Mon, Oct 24, 2016 at 2:50 AM, Carlos Ferreira <carlosmf...@gmail.com>
wrote:

> It's improper because it is not the correct way of doing things. Calling
> external commands usually require calling the terminal and all of the
> overhead that it requires.
> Using binds is a more efficient and direct approach. Also, why calling an
> external command when you can just load a shared library? It never made any
> sense to me...
> I have my share of Python development and every time I need to implement a
> feature that requires an extra kick (performance), I do it using binds and
> by implementing my own Python Module.
>

have you tried github.com/go-python/gopy for automating the creation of
python modules from a Go package?
(sadly, for Go=1.5 at this time...)

</shameless-plug>

-s


> Laziness today is a problem tomorrow.
>
>
> On 24 October 2016 at 01:03, Kiki Sugiaman <ksugia...@gmail.com> wrote:
>
>> Don't forget os/exec. If the performance overhead of invoking an external
>> process is acceptable, a mature application that's been around for 10-20
>> years beats the one we just wrote last week. There are plenty of such
>> applications written in C/C++ in NIX world.
>>
>> A lot of people have this funny notion of proper (using bindings) vs
>> improper (calling external command) way to use C/C++ from Go. If using
>> os/exec helps accomplish our goals within our constraints and it saves us
>> days or weeks of development and debugging, why not? I don't see improper,
>> just tradeoffs.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "golang-nuts" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/golang-nuts/LpXoEAj1Jzs/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> golang-nuts+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Carlos Miguel Ferreira
> Researcher at Telecommunications Institute
> Aveiro - Portugal
> Work E-mail - c...@av.it.pt
> Skype & GTalk -> carlosmf...@gmail.com
> LinkedIn -> http://www.linkedin.com/in/carlosmferreira
>
> --
> 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 golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to