Pyra Golang on Pyra? [tl;dr = Yep]

Discussion in 'General Discussions' started by Yorizuka, Apr 12, 2018.

  1. Yorizuka

    Yorizuka Hi, how was your day?

    Joined:
    Oct 9, 2016
    Messages:
    91
    Location:
    Venice, Florida
    So I have been playing around in golang quite a bit and have been enjoying it.

    I have an idea for personal app for the Pyra when it comes out and I want to do it in go.

    So my question is will I be able to compile golang code to the pyra on the pyra or transcompile it on my PC?

    (I'm going to bed after this post, so don't expect replys until tomorrow|-))
     
    TeDaDeS and AnimatedFreak like this.
  2. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,042
    Location:
    France, near Lyon
    If the Go compiler from GCC is enough, then yeah, no problem (it's even available on the Pandora). I haven't checked for other compiler.
     
    Yorizuka likes this.
  3. Yorizuka

    Yorizuka Hi, how was your day?

    Joined:
    Oct 9, 2016
    Messages:
    91
    Location:
    Venice, Florida
    I did some googling and found out that people could put Go (bootstrapped/ original) onto a Raspberry-pi so, I'm guessing a Pyra port will be trivial.
    Correct me if I'm wrong and am overlooking something.


    I also found information on the github Wiki but I have no idea anything about the different Arm versions or what 'EABI' is so someone smarter should look at it!
    https://github.com/golang/go/wiki/GoArm
    --- Double Post Merged, Apr 12, 2018, Original Post Date: Apr 12, 2018 ---
    GCC go is good for final product compilation but I like the Go compiler more because its faster at compiling and is great when doing rapid iteration & creates binary with better multi threading (last time I checked).
     
  4. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,042
    Location:
    France, near Lyon
    If there a PI (2) version of it, then it will run on the Pyra, it's the same ABI (and beeing a compiler, there is not specific RPI stuff in the way).
     
    TeDaDeS and Yorizuka like this.
  5. Yorizuka

    Yorizuka Hi, how was your day?

    Joined:
    Oct 9, 2016
    Messages:
    91
    Location:
    Venice, Florida
    NICE

    Thanks @ptitSeb
     
  6. sebt3

    sebt3 homebrew player (P. & C.)

    Joined:
    Sep 9, 2008
    Messages:
    4,740
    Location:
    France
    Last edited: Apr 13, 2018
    Yorizuka likes this.

Share This Page

Loading...