Live data from Hacker News

Bored? How about trying a Linux speed run?

rachelbythebay.com

21–30 of 284 posts

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

#21
post #8

Why would you write a terrible editor in C and what would you use to type that in? Isn’t cat - > file.txt or echo enough? AFAIK bash is able to set up tcp connections. Can’t you just download a static compiled editor through this? Maybe you don’t have bash. So what exactly is the starting point?

A basic shell with just forks and execs binaries from $PATH and nothing more. Maybe, just maybe, file redirection. You won't have neither echo(1) or cat(1), you must reimplement them. Echo(1) is damn easy.

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

#22

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.

IIRC Linux and Windows drivers turn trackpad events into mouse events so by the time the OS sees the movement there is no touchpad info.

Apple with tighter integration delivers the actual touchpad movement data and not a faked mouse event.

Windows 10 has had work done in this area too but not sure the details.

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

#23
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.

’course it does ! http://man7.org/linux/man-pages/man2/socket.2.html :)

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

#24
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?

Not during lockdown I'm afraid.

I guess if it's a "feel" thing it should be possible to replicate it with lots of tweaking, but I don't think many people who run Linux on laptops use the Apple trackpad much so the overlap between the people who want this and the people who care to write such drivers probably isn't big enough to come up with a Macbook style driver.

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

#25
I'd like to suggest "Linux From Scratch" (http://www.linuxfromscratch.org/lfs/) category. It might be easier for beginners, as it has definite start and finish states and instructions. It would be interesting to do a blind run to see how long it takes and later try a "real" speed run to optimize it as much as possible.

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

#26
post #7

Earlier quoted context omitted.

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.

This amuses me too. We had to bootstrap from nothing originally too. I think many have never learned the history or started from first principals.

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

#27

What is "the Stevens book" mentioned here? TIA

Probably "TCP/IP Illustrated" https://www.amazon.com/gp/aw/d/0321336313/ref=dbs_a_w_dp_032...

But maybe also: "Advanced Programming in the UNIX Environnement" https://www.amazon.com/gp/aw/d/B00DB3G8KY/ref=dbs_a_w_dp_b00...

Which is really good

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

#28
post #27

What is "the Stevens book" mentioned here? TIA

Probably "TCP/IP Illustrated" https://www.amazon.com/gp/aw/d/0321336313/ref=dbs_a_w_dp_032... But maybe also: "Advanced Programming in the UNIX Environnement" https://www.amazon.com/gp/aw/d/B00DB3G8KY/ref=dbs_a_w_dp_b00... Which is really good

Thanks very much

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

#30
This is how I used to live my life. Sort of. I mean early 2000s when I had left home and moved to a far away city for a job in IT. All I had was a stolen 256M RAM laptop with FreeBSD. No internet and no TV at home because I lived in a shitty apartment building.

At work I had all the bandwidth and resources I could use.

So I downloaded all I could during the weekdays and during evenings and weekends I'd just browse manuals and try things on my laptop, in my own little virtual LAN.

That's how you learn, kids.

Post reply on HN