I know that this would be related to instruction selection and register allocation (where at some point you map an infinite register architecture - like LLVM - to a finite real-world machine), but I never found a nice example.
47 karma · joined April 5, 2020
E-Mail:
$ echo aG5AemV0YWxhYnMuaW8K | base64 -d
Happy coding
Founder and CTO of ζLabs
https://www.zetalabs.io
I know that this would be related to instruction selection and register allocation (where at some point you map an infinite register architecture - like LLVM - to a finite real-world machine), but I never found a nice example.
The simplest approach is via a pipe to the process' stdin/stdout I guess. Of course you have to (de)serialize your data, but you would have to to the same if you go the HTTP route, which seems far more complex. Furthermore the suggested solution probably has a nice wrapper in the language's stdlib (e.g. `check_output()` in Python land).
Do you mean for native Windows or macOs dev? Then I agree. However if you are a non tech user I don't agree. I know many people (friends and family), who use Linux on their Notebook or PCs (quite frankly most non-tech users use mobile anyway) and they have no I idea what emacs or vim is (and why should they?).
So Linux being just for dev users is just not true, at least in my experience.
If you don't mind, what were the other 1 or 2 things?
Another idea would be to use SDL which essentially provides functionality to make windows, draw pixels and handle input/output. If you do not want to use any library at all and do not mind low "resolution", you could use your terminal as window and regard characters as pixels. Sure, there is the curses library to abstract away different terminals, but if you do not care about platform independence you can just directly write escape sequences to the terminal.