-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename SerialPorts.jl PySerialPorts.jl #24
Comments
SerialPorts.jl could first use PySerialPorts.jl and later LibSerialPorts.jl PS : JuliaIO/Roadmap#3 |
The name SerialPorts.jl could also be reserved for a future native Julia serial-port library, which might be needed to fully integrate non-blocking serial-port communication with the multi-threading and asynchronous I/O capabilities of libuv and Julia. However, that's a non-trivial piece of work, because POSIX and Win32 have completely different serial-port APIs. |
As discussed in JuliaIO/Roadmap#3 (comment) renaming A first step could be to create Pinging @KronosTheLate @andrewadare @sjkelly |
I was recently looking for Serial comunications packages for Julia, and found the naming confusing. SerialPorts.jl sounds very straightforward, but requires a Python installation I don't have. Whereas LibSerialPorts sounded more specific and I did not know what the "Lib" ment, but it seems that it is the more straightforward solution for what I have in mind. This renaming would have made it faster and easier for me to orient myself in the package options. |
A @JuliaIO owner https://github.com/JuliaIO should create PySerialPorts.jl repository under JuliaIO |
I don't really have the time to champion a package rename. Happy to let someone else do it. When I created this package 6 years ago the name made sense as it was the only general package with this functionality. Apologies for confusion. In the interim I will cross reference libserialport in the readme. |
It might also be useful to point out in the README that on Linux you can just open the serial port using run(`stty -F /dev/ttyS0 38400 raw`)
serial_in = open("/dev/ttyS0", read=true, write=false)
serial_out = open("/dev/ttyS0", read=false, write=true) |
@notinaboat That's essentially what a native serial-port package would do on Linux, such that the async I/O facilities of libuv become available. However, it would also have to offer portable wrappers for the POSIX
instead of calling the But Julia also aims to be a multi-platform environment, and while other Unices, such as macOS, are likely to work quite similarly to Linux, Win32 has a rather different serial-port API. And ideally, much of that should be hidden from the user, such that they can move their Julia code between the platforms with ease. That's what the currently used C and Python libraries do, but they bypass libuv. |
Following JuliaIO/LibSerialPort.jl#20 (comment)
maybe we should consider renaming SerialPorts.jl PySerialPorts.jl which is more explicit about what this package actualy do.
The text was updated successfully, but these errors were encountered: