Live data from Hacker News

Bored? How about trying a Linux speed run?

rachelbythebay.com

11–20 of 284 posts

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

#11
post #9

Reminds me of David Beazley's talk about being locked in a hidden vault to analyse 1.5 TBytes of C++ source code. No tools or internet connection, but a Python interpreter. https://pyvideo.org/pycon-us-2014/discovering-python.html

This remains one of my favorite talks of all time. Amazing story, well told. Anyone who hasn't seen this yet... highly recommended.

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

#12
post #3

> Who knows how far down the stack this could go? Seems to be like the obvious initial way to up the ante would be to get rid of the compiler. How would you go about bootstrapping your way out if all you had was the Linux kernel, glibc, and the Bourne shell?

You basically just have to know the tricks of inputting binary data through the shell. Learn how the ASCII table works, what the ctrl and shift keys do (setting/unsetting bits 5-7, in particular), and how the Alt key enables the 8-bit.

You could even go a little further. the printf command should be a built-in with just about any shell, so even lacking the `cat` program, you can output arbitrary data to a file.

Almost seems cheating to just hand-craft an ELF executable from the keyboard, but who's making the rules?

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

#14
post #3

> Who knows how far down the stack this could go? Seems to be like the obvious initial way to up the ante would be to get rid of the compiler. How would you go about bootstrapping your way out if all you had was the Linux kernel, glibc, and the Bourne shell?

The stage0 bootstrap is seriously interesting:

https://github.com/oriansj/stage0

It starts with a system without firmware and an OS, just a <=1KB hex monitor that assembles special hex0 programs. In the next stage it bootstraps a more comfortable assembler. Then it uses this assembler to bootstrap a small C compiler written in assembly. And then it uses this C compiler to compile a C compiler written in C. All the way up to gcc.

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

#15
post #7

You get all this functionality from the kernel for free. http://man7.org/linux/man-pages/man2/syscalls.2.html

Does the kernel provide a TCP stack? Either way, you still need to write an editor with which to write programs that utilize those syscalls.

    echo "line" >> file
I really don't get the need for an editor.

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

#16

Bored? Write a touchpad driver based on libinput which gives you identical mouse acceleration between Macbook trackpads and linux trackpads.

As someone who can't be bothered to pay the Apple tax, what does the Macbook trackpad do that others don't? My experience with different mouse acceleration configs (Windows, Synaptics, Linux) has only been negative.

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

#17

Bored? Write a touchpad driver based on libinput which gives you identical mouse acceleration between Macbook trackpads and linux trackpads.

As someone who can't be bothered to pay the Apple tax, what does the Macbook trackpad do that others don't? My experience with different mouse acceleration configs (Windows, Synaptics, Linux) has only been negative.

You need to experience it to understand just how much more calibrated it is to the human experience, feels natural, like air. :) How about visiting a store that sells macbooks?

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

#20
post #17

Earlier quoted context omitted.

As someone who can't be bothered to pay the Apple tax, what does the Macbook trackpad do that others don't? My experience with different mouse acceleration configs (Windows, Synaptics, Linux) has only been negative.

You need to experience it to understand just how much more calibrated it is to the human experience, feels natural, like air. :) How about visiting a store that sells macbooks?

> How about visiting a store that sells macbooks?

After lockdown of course...

Post reply on HN