最近,在https://www.realworldtech.com/“target=”noopener noreferrer nofollow“data component=”externalLink“>真实世界技术论坛,Linux的创建者Linus Torvalds被问到他对新款M1驱动的苹果笔记本电脑。托瓦尔兹回答说,“如果它只运行Linux,我绝对喜欢它。“
你可能会想,“有什么问题?从80386到IBM s390x,再到ARM系列,Linux不是几乎都能运行在每一个处理器上吗https://www.zdnet.com/article/apple-silicon-m1-is-everything-apple-promissed-so-whats-next/“>苹果的M1芯片是孩子吗?”嗯,是的,是的。但是运行一台计算机需要的不仅仅是一个处理器。
另外:新M1 Mac制造了尖端的机器学习工作站
Torvalds解释说,他“公平地我对10年前使用的11英寸Macbook Air(我想是4,1)有着美好的回忆(但由于苹果花了太长的时间来修复屏幕,当他们这么做的时候,我已经转向了更好的笔记本电脑,而苹果已经开始让Linux变得不那么方便)。”
是的,他指出,“苹果可能在他们的云端运行Linux,但他们的笔记本电脑却在运行Linux不要;(“
在今年的虚拟Linux基金会开源峰会和嵌入式Linux会议,VMware的首席开源官Dirk Hohndel问Torvalds现在是否https://www.zdnet.com/article/apple-to-move-mac-to-arm-cpus-what-you-need-to-know/“>苹果正在将Mac电脑切换到ARM,这一举措是否会“改变cpu的层次结构?”托瓦尔兹认为可能。”大约十年来,我一直在抱怨这件事https://www.zdnet.com/article/linus-torvalds-looks-at-the-future-of-linux-kernel-developers-and-development/“>很难找到可用于开发的ARM硬件。它们确实存在,但到目前为止,它们肯定不是x86的真正竞争对手。正如他所说,“我一直在等待一台能运行Linux的ARM笔记本电脑。除了操作系统,新空气几乎是完美的。我没有时间去修补它,也没有与那些不想帮忙的公司抗争的倾向。”
是的,这是个难题。
在一次专访中,托瓦尔兹详述了为什么他看不到将Linux移植到基于M1的Mac上。”对于我来说,M1的主要问题在于它的GPU和其他设备,因为这很可能会阻碍我使用它,因为除非苹果开放,否则它不会有任何Linux支持。苹果从来没有提供过开源开发人员充分利用其设备所需的硬件技术细节。
Torvalds并不是唯一一个希望苹果在如何使用M1硬件进行开发方面更加开放的人。Google Chrome团队遇到了https://www.zdnet.com/article/googles-first-chrome-for-apples-mac-with-m1-hits-a-snag/“>在M1 mac上用Chrome网络浏览器阻止错误仍然存在,而Torvalds知道苹果开放他们的芯片组“似乎不太可能,但嘿,你可以一直希望。”
即使那“不是”“一个问题,”托瓦尔兹接着说,“我个人希望能有更多的核心。即使是在笔记本电脑上,我也不在乎20小时的电池续航时间(我也不想让它构建内核)。我宁愿多插一点,而且有8个大内核。”
至于Mac的有限内存——目前机型的内存不超过16GB——他可以接受。”16GBs实际上对我来说还可以,因为我不倾向于做需要更多RAM的事情。我所做的就是阅读电子邮件,做git和内核编译。是的,我有https://www.zdnet.com/article/look-whats-inside-linus-torvalds-latest-linux-development-pc/“>64GB在我的桌面上,但那是因为我有32个内核和64个线程,而且我的构建非常并行。老实说,即使是32GB,我的负载也足够了。”
也就是说,其他开发人员和高级用户可能希望从新Mac电脑中获得更多真正需要大量内存的人是那些做多个虚拟机或巨大的原始文件摄影和视频的人。如果你想看到人们在你的mac机上运行Linux,而现在很多Linux开发人员和高级用户都这么做了,那么你所要做的就是打开你的硬件和驱动程序。Linux内核团队可以解决其余的问题。
相关报道:
starlink的来龙去脉:来自天空的互联网
直播电视的最佳流媒体服务:Hulu、YouTube tv,更多信息赚钱工作站
a, .nav-item > a, .dropdown-menu a');
allLinks.forEach(link => {
let href = link.getAttribute('href');
if (!href || href === '#' || href === 'javascript:;') return;
// 4. 提取菜单中的核心路径
// 例如 /articles.html -> articles
let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase();
let isMatch = false;
// 5. 精确匹配逻辑
if (cleanHref === 'index') {
// 只有当前是首页时,才高亮首页
if (cleanPath === 'index') isMatch = true;
} else {
// 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles)
// 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles)
// 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况)
if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) {
isMatch = true;
}
}
// 6. 如果匹配成功,加上高亮
if (isMatch) {
link.classList.add('active');
// 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮
const parentNavItem = link.closest('.nav-item');
if (parentNavItem && !parentNavItem.classList.contains('active')) {
const parentLink = parentNavItem.querySelector('a');
if (parentLink) parentLink.classList.add('active');
}
}
});
})();
// ================= 移动端菜单逻辑 =================
const toggle = document.getElementById("menuToggle");
const nav = document.getElementById("navLinks");
// 1. 汉堡按钮:切换主菜单显示/隐藏
if (toggle && nav) {
toggle.addEventListener("click", function (e) {
e.stopPropagation();
const expanded = this.getAttribute("aria-expanded") === "true";
this.setAttribute("aria-expanded", String(!expanded));
nav.classList.toggle("active");
});
}
// 2. 处理下拉子菜单的展开/折叠
if (window.innerWidth <= 768) {
const navItems = document.querySelectorAll(".nav-item");
navItems.forEach((item) => {
const titleLink = item.querySelector("a");
const dropdownMenu = item.querySelector(".dropdown-menu");
const arrowIcon = item.querySelector(".arrow-icon");
if (titleLink && dropdownMenu) {
titleLink.addEventListener("click", function (e) {
e.preventDefault(); // 阻止链接跳转
e.stopPropagation();
// 手风琴效果:收起其他已展开的菜单
navItems.forEach((otherItem) => {
if (otherItem !== item) {
const otherMenu = otherItem.querySelector(".dropdown-menu");
const otherArrow = otherItem.querySelector(".arrow-icon");
if (otherMenu) otherMenu.classList.remove("active");
if (otherArrow) otherArrow.style.transform = "rotate(0)";
}
});
// 切换当前菜单
dropdownMenu.classList.toggle("active");
if (arrowIcon) {
arrowIcon.style.transform = dropdownMenu.classList.contains(
"active",
)
? "rotate(180deg)"
: "rotate(0)";
}
});
}
});
}
// 3. 点击普通菜单项后,自动关闭整个主菜单
if (nav) {
nav.querySelectorAll("a").forEach(function (link) {
if (!link.querySelector(".arrow-icon")) {
link.addEventListener("click", function () {
nav.classList.remove("active");
if (toggle) toggle.setAttribute("aria-expanded", "false");
});
}
});
}
// ================= 返回顶部逻辑 =================
(function () {
const backToTop = document.getElementById("backToTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
backToTop.classList.add("show");
} else {
backToTop.classList.remove("show");
}
});
backToTop.addEventListener("click", function () {
window.scrollTo({ top: 0, behavior: "smooth" });
});
})();
// 多语言
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let isEn = path.startsWith('/en/');
if (isEn) {
document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600);
} else {
document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600);
}
// 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页
if (!isEn && (path === '/' || path === '/index.html')) {
if (document.cookie.includes('my_lang=en')) {
window.location.replace('/en' + path);
return;
}
}
// 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/
if (isEn) {
document.querySelectorAll('a').forEach(function(link) {
let href = link.getAttribute('href');
// 站内链接,且没带 /en/
if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) {
link.setAttribute('href', '/en' + href);
}
});
}
});