1. System Specs Eu Library
- Posted by Icy_Viking Feb 19, 2015
- 1329 views
Hello,
I was looking over the Euphoria's standard library, and I noticed there wasn't really an easy way to get your system specs through programming in Euphoria. I guess you could use some machine calls to get your systems specs, but I've also noticed other programming languages have this feature built into their standard library routines. I could be overlooking it, if it is included in the Euphoria standard library, but I didn't notice. If it is not in the standard library, then I think it would be a good suggestion to perhaps add this feature into Euphoria's standard library at some point.
When I'm talking about system specs, I'm talking about like being able to access what your CPU, GPU, amount of RAM available and so on. Having programming routines that tell you how much RAM you have or what your CPU power is, I think that would be a great addition to the Euphoria programming language.
2. Re: System Specs Eu Library
- Posted by ghaberek (admin) Feb 19, 2015
- 1366 views
On Windows, there are things like GetSystemInfo (or GetNativeSystemInfo) and NtQuerySystemInformation.
On Linux (and maybe OS X?), it's just a matter of grokking the content of /proc/cpuinfo and /proc/meminfo, or perhaps processing the output of dmidecode. See this article: Scripting with dmidecode.
I'm sure somebody could whip this into a few library functions forthwith. Just need a way of standardizing the output.
-Greg
3. Re: System Specs Eu Library
- Posted by Icy_Viking Feb 19, 2015
- 1307 views
GetSystemInfo would work. I could probably take a shot at wrapping it sometime.