jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang
jemc has quit [Ping timeout: 276 seconds]
runehog has joined #ponylang
SirWillem has joined #ponylang
SirWillem has quit [Client Quit]
jemc has joined #ponylang
_whitelogger has joined #ponylang
jemc has quit [Ping timeout: 244 seconds]
graaff has joined #ponylang
graaff has quit [Changing host]
graaff has joined #ponylang
dynarr has joined #ponylang
dynarr has quit [Quit: A merry Christmas to all, and to all a good night!]
trapped has joined #ponylang
Praetonus has joined #ponylang
k0nsl has quit [Ping timeout: 244 seconds]
k0nsl has joined #ponylang
k0nsl has quit [Quit: “If we don't believe in freedom of expression for people we despise, we don't believe in it at all — Noam Chomsky”]
k0nsl has joined #ponylang
trapped has quit [Read error: Connection reset by peer]
triangle345 has joined #ponylang
<triangle345> hey guys I have a requested feature that I would like to create and maybe work on. I know we have a ProcessMonitor actor which was created to run varius system commands. However; there are a few issues with ProcessMonitor now. Firstly, it is overkill for doing something simple like running an "ls" command or opening up a windows tool. Speaking of windows ProcessMonitor does not work on windows in its current form. I would li
<triangle345> This item would be called CommandRunner or something and would use underlying unix-y and windows system calls like...
<triangle345> system or exec for unix and createprocess or executeshell for windows
<triangle345> this would then run and wait for the command and buffer the output
<triangle345> so in pony one would "use process" and then call command("c:\\windows\\system32etcetc\\notepad.exe") or something or command("ls") which would return a string after process is complete without having to set everything up for ProcessMonitor..
<triangle345> how does this sound?
Matthias247 has joined #ponylang
<Praetonus> triangle345: The main issue with that is ambient authority. Basically, a program (or a part of a program) is said to have ambient authority when it can access some state without explicitly having to ask for the permission to access that state. This is one of the goal of the ProcessMonitor API, to allow executing specific programs located in a given path
<Praetonus> But there is the C FFI if you want to do things like that. For example, you can call the C function system directly: @system[I32]("ls".cstring())
<Praetonus> And since you talked about ProcessMonitor not working on windows, PRs are welcome in this area. We definitely need more in the windows side of things :)
jemc has joined #ponylang
sjums has quit [Ping timeout: 244 seconds]
sjums has joined #ponylang
jemc has quit [Ping timeout: 250 seconds]
jemc has joined #ponylang
<triangle345> I see, but what if you could pass in a FilePath to that Command, would that satisfy the ambient authority issue since FilePath has an Ambient Authority tag?
atk has quit [Quit: You should never see this quit message.]
atk has joined #ponylang
Praetonus has quit [Remote host closed the connection]
psylvain has joined #ponylang
graaff has quit [Quit: Leaving]
abeaumont_ has joined #ponylang
psylvain has quit [Ping timeout: 250 seconds]
triangle345 has quit [Ping timeout: 264 seconds]
jemc has quit [Ping timeout: 260 seconds]
<doublec> Nice to see language communities that discuss other languages politely
jemc has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]