you are viewing a single comment's thread
view the rest of the comments
[–] [S] 8 points 3 years ago (6 children)

I would love to use golang for this but it’s standard library alone is bigger than the amount of available RAM.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 3 years ago (2 children)

    Interesting, since golang only includes the parts of the stdlib that are used in the executable binary.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 4 points 3 years ago (1 child)

    I just tested it and a simple hello world program still produces a 1.7MiB binary, while the device only has 512KiB of RAM.

    package main
    
    import "fmt"
    
    func main() {
        fmt.Println("hello world")
    }
    
  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 3 years ago (2 children)

    BTW: what are you using instead to get small binaries/scripts?

  • source
  • parent
  • hideshow 2 child comments