Samsung / libtuv

Asynchronous I/O for IoT.js and embedded system
Apache License 2.0
129 stars 76 forks source link

unix, darwin: add uv_spawn() #104

Closed yorkie closed 6 years ago

yorkie commented 6 years ago

In IOT.js, the ability to spawn a child process, which includes the IPC with fork() is useful in embeddable device as well.

So this patch tries to make uv_spawn() work in libtuv.

glistening commented 6 years ago

@yorkie We usually don't include uv functions when there is no clear use case for IoT.js since it will increase binary size for low end devices that use NuttX, TizenRT, and so on.

Just for my curiosity, what OS do you use for your embedded device?

yorkie commented 6 years ago

Yea, I ran IOT.js inside the Rokid AI DevBoard which is an embeddable device, and as I described then, the IPC and child_process are such important feature for any embeddable :)

glistening commented 6 years ago

@yorkie Thank you for your information. Our target device has more strict requirement. Our policy is not including more functions when there is explicit use cases for our main targets.

yichoi commented 6 years ago

Closing. Also @glistening explained, I cannot find any special use cases deserve to pay for additional memory and binary size.