Skip to content

u/Thann

In this archive from Apr 2011 to Nov 2022

5
posts
56
comments
4
media
692
score
1 saved before deletion

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.

1 points

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.

1 points

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!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.