vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
6.72k stars 257 forks source link

brew installation never finishes on mac mojave #150

Open imechura opened 2 years ago

imechura commented 2 years ago

Tried to install it 3 times. It never finished after waiting more than 45 minutes.

Why so many dependencies for such a simple utility?

Why write a general utility in a language that is unlikely to be installed on anyone's machine. I think you would get wider adoption if you programmed it in C/C++.

Unfortunately, my need is urgent so I am going to move on to another solution. This would be a very useful utility if not for the heavyweight dependencies which make the installation fragile and slow.

vi commented 2 years ago

Do you have the installation log? It is expected to build in much less than 45 minutes, unless installation process is also building Rust compiler and LLVM.

I also remember brew having some option to have pre-built executables downloaded? Is it gone?

Note that you can also manually install executable that I cross-compiled on my own device, although M1 version is currently not available using this method.

Luiz-Monad commented 2 years ago

Simple ? what's simple about implementing an entire HTTP server ?

Did you ever read the RFC ? https://www.rfc-editor.org/rfc/rfc6455.html

C++ would require fucking Boost to implement that, I doubt it would be simpler. (they see me playing with cmakefiles, they hatin)

Comparing the amount of files needed to implement a similar thing in go rust https://github.com/vi/websocat/tree/master/src go https://github.com/joewalnes/websocketd/tree/master/libwebsocketd

Go uses more third party libraries, specially, a full CGI HTTP server, while this library implements it on its own it seems. This code looks better, I'm sold. Rust it is !