Show HN: PicoTorrent 0.10 released – WebSocket API included
github.com
github.com
You can find the relevant API documentation at
- http://docs.picotorrent.org/en/latest/websocket-api/index.ht...
I'm no CMake expert, but this looks odd:
https://github.com/picotorrent/picotorrent/blob/develop/CMak...
# Get current architecture
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(PICO_ARCH "x64" )
else(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(PICO_ARCH "x86")
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
EDIT: this is just CMake's very odd syntax and it's actually a single condition.What is odd about it?
In code-reviews I still occasionally have to complain about the
if (condition){
// 100 lines of code
}else{
// 20 lines of code
}
pattern.As we're dealing with a language that has a proper subroutines and a return statement, this can just be refactored away.
But CMake might not have either of those (I don't know - I have only ever written a single trivial CMakeLists.txt), so it might just force this pattern and then it's helpful to also enforce the else to restate the condition.
EDIT: the parent post was edited, and this comment was written for the original post.
Basically I was suggesting to more prominently mention it's Windows-only and not just in the list of features.
The linux directory contains build scripts to build on Linux, which is used for the TravisCI builds.
No extra dependencies, no UI toolkits!