I would probably try to hack myself some sort of Forth-like language and have fun.
Bored? How about trying a Linux speed run?
101–110 of 284 posts
Re: Bored? How about trying a Linux speed run?
#102Earlier 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.
Re: Bored? How about trying a Linux speed run?
#103Earlier 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.
Re: Bored? How about trying a Linux speed run?
#104A 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…
Re: Bored? How about trying a Linux speed run?
#105Earlier 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.
Re: Bored? How about trying a Linux speed run?
#106Earlier 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.
Re: Bored? How about trying a Linux speed run?
#107Earlier 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.
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?
#108Earlier 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…
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?
#109Writting 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…
Re: Bored? How about trying a Linux speed run?
#110Then of course, once you have the OS you can attempt the classical editor speedrun: https://www.reddit.com/r/speedrun/comments/8rqkzz/vim_exit_s...