qaz
creator
link
fedilink
31Y

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

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

qaz
creator
link
fedilink
21Y

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")
}

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

qaz
creator
link
fedilink
21Y

I’m currently using C++

Likely your C++ implementation also doesn’t ship the full standard library. And you may even turn off exceptions and RTTI.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 5 users / day
  • 9 users / week
  • 108 users / month
  • 558 users / 6 months
  • 1 subscriber
  • 899 Posts
  • 3.11K Comments
  • Modlog