Arch Linux
@lemmy.world
I recently held a science slam about this topic! It's a mix of the first computer scientists being mathematicians, who love their abbreviations, and limited screen size, memory and file size. It's a trend in computing that has been well justified in the past, but has been making it harder for people to work together. And the need to use abbreviations has completely gone with the age of auto completion and language servers.
1. Python
for i in range(11):
print(i)
2. R
for (i in 0:10) {
print(i)
}
3. C/C++
#include <iostream>
int main() {
for (int i = 0; i <= 10; ++i) {
std::cout << i << std::endl;
}
return 0;
}
4. Java
public class CountToTen {
public static void main(String[] args) {
for (int i = 0; i <= 10; i++) {
System.out.println(i);
}
}
}
5. Lua
for i = 0, 10 do
print(i)
end
6. Bash (Shell Script)
for i in $(seq 0 10); do
echo $i
done
7. Batch (Windows Command Script)
@echo off
for /l %%i in (0,1,10) do (
echo %%i
)
8. Go
package main
import "fmt"
func main() {
for i := 0; i <= 10; i++ {
fmt.Println(i)
}
}
9. Rust
fn main() {
for i in 0..=10 { // 0..=10 includes 10
println!("{}", i);
}
}
10. Zig
const std = @import("std");
pub fn main() !void {
var i: i32 = 0;
while (i <= 10) {
std.debug.print("{}\n", .{i});
i += 1;
}
}
11. Scala
for (i <- 0 to 10) {
println(i)
}
12. Fortran
program count_to_ten
implicit none
integer :: i
do i = 0, 10
print *, i
end do
end program count_to_ten
13. Haskell
main :: IO ()
main = mapM_ print [0..10]
14. Julia
for i in 0:10
println(i)
end
Obligatory comment that recommends Framework, as they support linux out of the box.
Aside from that, more important than the brand is the laptop model. Some parts (like fingerprint, camera or touchpad) may not work with linux, and that depends on the model, not the brand. So I'd suggest searching for the model you're interested in, and then combining that search with Arch (usually has the latest - but sometimes unstable - packages, so you'll see what's probably possible), Debian (wide user base, but older packages, so you'll see what definitely works) and then EndeavourOS, to see any issues that may come up that are really relevant for you.
thanks for using Leebra!
go to feed...