Live data from Hacker News

Bored? How about trying a Linux speed run?

rachelbythebay.com

101–110 of 284 posts

Re: Bored? How about trying a Linux speed run?

#102

Earlier quoted context omitted.

That “nothing” is everything.

Macbooks do literally nothing, it's macOS that does. And with a bit of effort and understanding of the input stack, you can get it pretty close on GNU/Linux anyway - at least close enough for really comfortable usage. I haven't been using mice for years now and I'm not a Macbook user.

You’re missing the forest for the trees. Nobody saying this can’t be replicated. But Apple does it out of the box, and better than any alternative I’ve tried. That’s why people buy Macs. Time is money.

Re: Bored? How about trying a Linux speed run?

#103
post #83

Earlier quoted context omitted.

Possibly relevant: Windows “Precision Touchpad” specs, including https://docs.microsoft.com/en-us/windows-hardware/design/com... and https://docs.microsoft.com/en-us/windows-hardware/design/com... It’s hard to find other details, at least in public...

Haven't had a new laptop in a while, but as far as I'm aware, most touchpads are not Precision Touchpads and instead continue to emulate stuff in the driver without Windows knowing, so you're still at the mercy of the (usually shoddy) driver implementation.

All Windows laptops are now required to have Precision touchpads and for older laptops, you can simply install the precision driver onto them and they work the same way.

Re: Bored? How about trying a Linux speed run?

#104
post #86

A similar sort of exercise might be to just install Arch Linux to a working desktop or some other use case. Arch Linux puts responsibility for the install on your shoulders based on your needs and decisions. In the end, you get a VERY up-to-date installation of linux, without needless bloat, and it stays that way due to rolling updates.

Sounds fabulous ... how do you do that? You say: > ... just install Arch Linux to a working desktop ... How do you do that when you have: > ... a box that has a couple of hard drives and a working network connection. HD #1 is blank. HD #2 has ... bootloader, kernel, C library and compiler, that sort of thing. There's a network connection of some sort, and that's about it. > There are no editors and nothing more advan…

The parent mentions an alternative exercise, not one to be done with the other.

Re: Bored? How about trying a Linux speed run?

#105
post #75

Earlier quoted context omitted.

That “nothing” is everything.

That "nothing" means that MacBooks (when running OS X) are the only laptops that are really usable without a mouse. Even in some games.

For you, maybe. I think a TrackPoint (ThinkPad) is far superior to a trackpad, MacBook or otherwise.

Re: Bored? How about trying a Linux speed run?

#106
post #94

Earlier quoted context omitted.

I don’t have a clue about _why_, but I know from using macOS and Linux on mbp that whereas the touchpad basically works in macOS, it totally doesn’t function in Linux! :( In Linux, wrists keep triggering touch events as you type. Screens start scrolling, focus goes to random things, and everyone swears. You end up having to hold your hands right over the keyboard in a very unnatural way to avoid accidental mouse inte…

> In Linux, wrists keep triggering touch events as you type. Screens start scrolling, focus goes to random things, and everyone swears. You end up having to hold your hands right over the keyboard in a very unnatural way to avoid accidental mouse interaction. […] Linux simply doesn’t cope with hands near the touchpad. Enable the option to sleep the touchpad when the user starts typing.

I recently discovered after reinstalling Linux Mint on my Dell XPS (that shipped with Ubuntu) that is not an option "out of the box". On my previous interest I used to have that option. Now I'm not sure where it's gone so I do (very sadly) only have the option to "disable touchpad when mouse is connected." Please help!

Re: Bored? How about trying a Linux speed run?

#107

Earlier quoted context omitted.

Sounds fabulous ... how do you do that? You say: > ... just install Arch Linux to a working desktop ... How do you do that when you have: > ... a box that has a couple of hard drives and a working network connection. HD #1 is blank. HD #2 has ... bootloader, kernel, C library and compiler, that sort of thing. There's a network connection of some sort, and that's about it. > There are no editors and nothing more advan…

The parent mentions an alternative exercise, not one to be done with the other.

That wasn't clear to me, but in the light of your comment, I see that it's plausible. Thank you.

It always throws me when someone suggests an exercise, and someone, in reply, says, "Or instead, do this other thing."

I'm oddly reminded of when we were recruiting and asked people to write some code to solve a specific task and bring it to the interview for discussion. Someone said "This spec is obvious nonsense" and proceeded to write a completely different spec, implement that, and get it horribly wrong.

Re: Bored? How about trying a Linux speed run?

#108
post #40

Earlier quoted context omitted.

It is unclear to me whether the C libs include TCP. If not then that seems like the main part of the work because once you have that then you can download everything else. Unless it was already in BIOS or some network hardware remote admin Intel thing and there was a way to hack into that to use it. Then you would not have to implement TCP IP. To me the question is what is the minimal part of TCP /IP that you would n…

> It is unclear to me whether the C libs include TCP. The exercise states that you have a Linux kernel and there is a network connection. If the kernel does not have TCP, but only offers a raw socket, well, then you have to write down a very simple TCP stack. But if the kernel does have TCP, the exercise boils down to writing a very simple HTTP client, a very simple DNS resolver and a bare bones XZ decompressor and t…

Or just get a static tar and xz static build, they must be somewhere.

Better: busybox build. It already has tar, xz and wget.

You just need to compile a simple HTTP client, or better:

find a gopher mirror. Bare netcat would work against that.

gopher://ftp.icm.edu.pl:70/1/vol/rzm6/busybox/binaries

With NetCat:

echo vol/rzm6/busybox/binaries/1.21.1/ | nc ftp.icm.edu.pl 70

echp vol/rzm6/busybox/binaries/1.21.1/busybox-i586 | nc ftp.icm.edu.pl 70 > busybox

Then ln all the binaries. Or run busybox wget.

Accesign the rest of the files is the same, just redirect the nc command to a file.

If tar is missing, you can just get for sure an static build and compile it. Or try to find an sltar mirror to github ;).

But that busybox has ustar, so look how easy it was with just netcat and Gopher, so writting an nc clone (openbsd's netcat portable version is really easy, altough there are another ones many more times dumbed down) would be the easiest win.

Re: Bored? How about trying a Linux speed run?

#109
post #5

Writting a shell is easy, but it's already done (do'h). You could be restricted to a really basic one, with no cd having to reimplenent that yourself. A simple "cd" command taking ARGV as the path would be around 10 lines in C. Reimplementing echo would be the obvious second thing to do, and later, a barebones cat a la plan9/OpenBSD. Finally the 3rd basic tool would be an ed(1) clone without regex support. ed(1) can…

Note: The “cd” command must be a built-in command in the shell, since it must call chdir(2) inside the shell process; it must affect the “current directory” internal state of the shell process. Therefore, “cd” cannot be a separate external binary.
Post reply on HN