How do you get free amount of RAM memory Mac has using Scala
Carlos Saltos

Carlos Saltos @csaltos

About: I code in Scala, Elm, Python and Ruby. Now trying to learn Haskell, Rust, Gleam and OCaml

Location:
Buenos Aires, Argentina
Joined:
Jun 30, 2020

How do you get free amount of RAM memory Mac has using Scala

Publish Date: Jan 4 '22
0 0

What ?

A simple Scala program to get the RAM available on a Mac

Why ?

Because I want to check from SBT if there is enough available RAM memory to run certain compilation options and I would like to share with others

How ?

Just go to https://github.com/csaltos/mem-on-mac-scala/blob/main/MemOnMac.scala and copy paste the code, you can use it as bytes or gigabytes.

Comments 0 total

    Add comment