Live data from Hacker News

Show HN: Htop 2.0 released, now cross-platform

hisham.hm

151–159 of 159 posts

Re: Show HN: Htop 2.0 released, now cross-platform

#151
post #89

Earlier quoted context omitted.

Is there a way to combine all the processes with the same command name? I have a ton of mariadb processes (I don't even know if this is normal, but it seems to be working just fine) and it gets tiring having to scroll them just to glance the numbers on other processes. https://www.dropbox.com/s/ghwsh6ye1gt32k1/Screenshot%202016-...

Those might be threads. It's best to disable showing threads (F2 - Display options - Hide kernel/userland threads) because they give little information over just the process.

Thank you so much.

Re: Show HN: Htop 2.0 released, now cross-platform

#152
post #73

Earlier quoted context omitted.

With 320 cores you can't see anything.

Hmm... and I use it on a 32bit netbook...

Hehe, I once tested a MPI program intended for a supercomputer on my 2-core ARM chromebook.

It ran. It was not very fast.

Re: Show HN: Htop 2.0 released, now cross-platform

#153

Earlier quoted context omitted.

No, it's accurate marketing. Asking for htop to be available on windows is kinda silly if you recall that htop is "top++" and depends on having a unix filesystem. "Cross-platform" is a contextual term.

> depends on having a unix filesystem. It doesn't do that. Before the multiplatform changes it did depend on having procfs (linux's I assume since BSDs had a non-identical procfs yet weren't supported), aside from the OSX fork which ripped out all the /proc access and replaced them with OSX API calls. What it does depend on is ncurses.

Ah, thanks for the correction. I had no idea it wasn't using procfs anymore, or that darwin was using something very different. TIL :)

Re: Show HN: Htop 2.0 released, now cross-platform

#154
post #50

Earlier quoted context omitted.

Haha everyone used to mock MS because cross platform to them meant Win16 AND Win32. Now we use it to mean various flavours of Linux. Progress?

> Now we use it to mean various flavours of Linux. ? "Portable" htop 2.0 works on FreeBSD[0], OpenBSD[1] and OSX[2], not just "various flavours of linux". [0] https://github.com/hishamhm/htop/tree/master/freebsd [1] https://github.com/hishamhm/htop/tree/master/openbsd [2] https://github.com/hishamhm/htop/tree/master/darwin

Back in the day it wasn't unusual for something to support 30-odd variations on Unix, plus VMS and Windows. ./configure && make && make install. Those were the days!

Re: Show HN: Htop 2.0 released, now cross-platform

#156

Earlier quoted context omitted.

> depends on having a unix filesystem. It doesn't do that. Before the multiplatform changes it did depend on having procfs (linux's I assume since BSDs had a non-identical procfs yet weren't supported), aside from the OSX fork which ripped out all the /proc access and replaced them with OSX API calls. What it does depend on is ncurses.

Ah, thanks for the correction. I had no idea it wasn't using procfs anymore, or that darwin was using something very different. TIL :)

> I had no idea it wasn't using procfs anymore

It still uses procfs for Linux (since that's there by default), but not for the other ports. Consider Platform_getLoadAverage for instance:

* linux uses /proc/loadavg[0]

* freebsd and openbsd use sysctl({CTL_VM, VM_LOADAVG})[1][2]

* OSX uses getloadavg(3)[3]

[0] https://github.com/hishamhm/htop/blob/master/linux/Platform....

[1] https://github.com/hishamhm/htop/blob/master/freebsd/Platfor...

[2] https://github.com/hishamhm/htop/blob/master/openbsd/Platfor...

[3] https://github.com/hishamhm/htop/blob/master/darwin/Platform...

Re: Show HN: Htop 2.0 released, now cross-platform

#157
post #12

Awesome! Installing htop is the first thing I do on my *nix systems. The update is still not up on Homebrew, shouldn't take long though.

FWIW, I did an install from source and it was totally painless--no dependencies to track down. ./configure, make, sudo make install and you're done.

Cool, thanks for sharing! I'll still prefer waiting for a Homebrew update, too addicted to the comfort of package managers :).

Re: Show HN: Htop 2.0 released, now cross-platform

#158

Earlier quoted context omitted.

It's just a little point of interest. I don't often think about my life intersecting with the nation off of Brazil, yet I use htop every day. Now I'll probably cast my mind to a Brazilian rainforest when I do. Just makes the world a slightly more interesting place.

Thanks! Always nice when we help to make people's perceptions of places less unidimensional. Brazil is not only a place with rainforests, we also have coders! :) (Though, even though I'm a (Southern) Brazilian myself, I used to think the whole "monkeys in the streets" here was a hoax until I moved to Rio de Janeiro and I realized they have tiny squirrel-sized monkeys running atop the power lines there!)

I feel the unidimensional thing. Australians don't actually ride kangaroos to work! There is, if I'm honest, a wallaby living in the bush that abuts my property, though.

You'll excuse me, however, for continuing to cast my mind to a tranquil rainforest rather than a Brazilian coder at a keyboard. I understand they both exist, but one is far more relaxing to contemplate than the other! :)

Re: Show HN: Htop 2.0 released, now cross-platform

#159
post #59

Earlier quoted context omitted.

I wager Elixir counts.

Wow, had no idea Elixir was created by a Brazilian as well. Nice, thanks!

Yes :)

Here's a little bit of the story on how we create it: http://blog.plataformatec.com.br/2015/01/introducing-elixir-...

Post reply on HN