Blessed doesn't do anything that you can't do using curses, it just provides higher level APIs.
Are you retarded? what it does extra IS provide the higher level apis... Just like saying a pickup truck cant do anything a wheel barrow cant do, it just does it slower. ncurses does not have more features that is just wrong.
My whole argument is "NODE HAS LIBS C DOESNT THAT MAKE THIS VERY EASY". your MVP cant graph two pings at the same time, and mine could because the available libs supported it.. this is exactly what I'm talking about...
you're 100% correct about the bloated nature of most node libs, and it is extremely frustrating. I have taken great care to only include a few dependencies, and the only bloated ones are "blessed-contrib" and eslint. eslint is the biggest offender and responsible for most of the bloat you observed and is only a dev dependency so it doent even get installed unless you ask for it. Also, blessed-contrib is designed to be a kitchen-sink repo which is annoying, but I could make a stripped down version of blessed-contrib that only has what I need pretty easily if this was actually a concern by anyone.
the reason that C code is so more difficult to audit comes down to two words "Memory Safety". Assuming the node VM is clear, you don't have to worry about shit like "use after free" poking holes in your security model. there is way less to consider on each line of code and can be audited more easily. If you were to actually reproduce pingg in C it would be many thousands of lines of C compared to many hundreds of lines of JS and would be so much harder to audit.
Also, you're completely neglecting to mention that its way easier to sandbox something than audit it, or that this is a diagnostic tool that has no need for performance, or being able to easily make field-edits is super useful. You are clearly super-biased and not capable of rational thinking in this theater.
You are like a broken record, you can only say "C is better" but you don't use logic or listen. Your claim that curses and blessed are equivalent is intellectually dishonest. It's like saying a wheel barrow and a truck are equivalent. Blessed has a way more advanced API and if it was, why didn't you just use it for your program??
The efforts to write our programs are similar but mine has waaay more features. THIS IS WHY NODE IS THE PROPER CHOICE. if there was a blessed equivalent then you would have a leg to stand on.
Also JS is waaaaay easier to audit than C, idk how you could possibly say such a ridiculous thing. C is actually my favorite language but I don't let that blind me from the truth that it's not as well suited as node for this application.
Wow that's awesome. I'll check for segfaults and prepare to eat my words this weekend. Just kidding.
Just because I wrote my version in node doesn't mean I'm "afraid" of C, it just means that for my effort I would make a way better product in terms of features. For similar efforts my version can graph multiple pings, trace, tcp, default gateway, colors, time-series pruning, etc. The trade offs are it will take a few more clock cycles and have a larger bin which are both completely negligible for all intents and purposes of a network debugging tool. I already have a billion side projects, and I wanted to make something quickly. As you just have shown, C does not have the ecosystem node does that makes it possible to add more features in less time. Instead of wasting your talent shitting on other peoples projects why don't you make a blessed replacement for C so that the next time someone is I'm my position they could make a superior program in C!
I get that I don't need to implement ping. What you don't get is that what you're describing is waaaaay more difficult than you're suggesting. If you make or find a blessed-contrib type lib written in C I'd happily refactor my script. But you will not find one written in less than 1000 lines...
I just fixed IPv6 support, and It is actually quite useful for debugging real-world network issues. The linked image shows the issue is not with the wifi but rather with the ISP, and you could do a --trace to find out which hop is slowing everything down =]
Some people think all node apps are a virus, but docker sandboxes them so they cant cause much harm. And there is a packaged bin available, but you'd need a thumb drive to get it to a crippled machine
Unplug the mouse?
Have you tried reseating it, or trying a different slot?
Here's my very minimal one that does "Full Disk Encryption"
https://github.com/thann/arcrypt
The WIKI finds you
Everything is in the WIKI
I made one for chrome too =]
https://github.com/Thann/play-with-mpv
Node's build system (node-gyp) relies on python2 =[
How are you supposed to do bleeding edge research without bleeding edge packages?
I'm a big fan of caca
man() { command man ${@} | lolcat --force | less }I love my grandfather's axe! I've had to replace the head once and the handle a couple times but man do I love his axe.
This is what we should have done in the computer labs...
it is awesome you made that tho
Are you retarded? what it does extra IS provide the higher level apis... Just like saying a pickup truck cant do anything a wheel barrow cant do, it just does it slower. ncurses does not have more features that is just wrong.
My whole argument is "NODE HAS LIBS C DOESNT THAT MAKE THIS VERY EASY". your MVP cant graph two pings at the same time, and mine could because the available libs supported it.. this is exactly what I'm talking about...
you're 100% correct about the bloated nature of most node libs, and it is extremely frustrating. I have taken great care to only include a few dependencies, and the only bloated ones are "blessed-contrib" and eslint. eslint is the biggest offender and responsible for most of the bloat you observed and is only a dev dependency so it doent even get installed unless you ask for it. Also, blessed-contrib is designed to be a kitchen-sink repo which is annoying, but I could make a stripped down version of blessed-contrib that only has what I need pretty easily if this was actually a concern by anyone.
the reason that C code is so more difficult to audit comes down to two words "Memory Safety". Assuming the node VM is clear, you don't have to worry about shit like "use after free" poking holes in your security model. there is way less to consider on each line of code and can be audited more easily. If you were to actually reproduce pingg in C it would be many thousands of lines of C compared to many hundreds of lines of JS and would be so much harder to audit.
Also, you're completely neglecting to mention that its way easier to sandbox something than audit it, or that this is a diagnostic tool that has no need for performance, or being able to easily make field-edits is super useful. You are clearly super-biased and not capable of rational thinking in this theater.
You are like a broken record, you can only say "C is better" but you don't use logic or listen. Your claim that curses and blessed are equivalent is intellectually dishonest. It's like saying a wheel barrow and a truck are equivalent. Blessed has a way more advanced API and if it was, why didn't you just use it for your program??
The efforts to write our programs are similar but mine has waaay more features. THIS IS WHY NODE IS THE PROPER CHOICE. if there was a blessed equivalent then you would have a leg to stand on.
Also JS is waaaaay easier to audit than C, idk how you could possibly say such a ridiculous thing. C is actually my favorite language but I don't let that blind me from the truth that it's not as well suited as node for this application.
Wow that's awesome. I'll check for segfaults and prepare to eat my words this weekend. Just kidding.
Just because I wrote my version in node doesn't mean I'm "afraid" of C, it just means that for my effort I would make a way better product in terms of features. For similar efforts my version can graph multiple pings, trace, tcp, default gateway, colors, time-series pruning, etc. The trade offs are it will take a few more clock cycles and have a larger bin which are both completely negligible for all intents and purposes of a network debugging tool. I already have a billion side projects, and I wanted to make something quickly. As you just have shown, C does not have the ecosystem node does that makes it possible to add more features in less time. Instead of wasting your talent shitting on other peoples projects why don't you make a blessed replacement for C so that the next time someone is I'm my position they could make a superior program in C!
I get that I don't need to implement ping. What you don't get is that what you're describing is waaaaay more difficult than you're suggesting. If you make or find a blessed-contrib type lib written in C I'd happily refactor my script. But you will not find one written in less than 1000 lines...
You think I could write a more efficient version of pingg in 1000 lines of C, when it takes more lines to just write ping
Lol go for it
P.S. the Linux kernals ping implementation is over a thousand lines: https://github.com/torvalds/linux/blob/master/net/ipv4/ping.c
I just fixed IPv6 support, and It is actually quite useful for debugging real-world network issues. The linked image shows the issue is not with the wifi but rather with the ISP, and you could do a
--traceto find out which hop is slowing everything down =]Some people think all node apps are a virus, but docker sandboxes them so they cant cause much harm. And there is a packaged bin available, but you'd need a thumb drive to get it to a crippled machine
You need root to "flood" ping, but if you do "-f" it will ping as fast as it can without root =]
blessed & blessed-contrib are what I was referring to... Having them do the heavy lifting for me is why I chose to use them and node...
Awesome! Looks dope, I like how it does dropped packets!
Yeah, blessed is really great, every language should have something like it to get away from ncurses =]