TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Thirty Million Line Problem (2018) [video]

31 pointsby breadandcrumbelover 5 years ago

5 comments

zamalekover 5 years ago
It takes &quot;17 million lines of code in Thing X to do Activity Y&quot; is patently wrong. Many of the lines of code in Linux is dedicated to drivers, drivers which are likely not even loaded. Many more lines of code may be unused this specific scenario, if you are simply reading on WordPress, you aren&#x27;t using the admin code at all.<p>The reality is that a miniscule amount of those lines of code is involved in the activity. You can write an OS and stack that could achieve a very specific task (IncludeOS), but then it could only perform that one task. Now that there is &#x27;no wasteful code&#x27;, how would he record his weekly screencast, or edit it, or transcode it, or upload it, or view it? Everyone would only be able to view text files.<p>These systems are this complex because there is demand for them to be. This really seems like tilting at windmills.
评论 #21368620 未加载
评论 #21369316 未加载
otakucodeover 5 years ago
So it&#x27;s not just me. I&#x27;ve considered developing a toy OS as a fun project for a long time, but I was always mystified about what to do about graphics. The whole reason I wanted to do an OS was to do a sort of &#x27;start fresh&#x27; thing where I looked at the hardware we have now and designed for THAT instead of designing to support 1970s era software. The first step is if it&#x27;s a 4K monitor, the first graphics mode is 4K, not 80x25 text. Fonts are vector by default, not raster. Graphical compositing of the display, even when its the initial &#x27;text mode&#x27; terminal would be rendered on a 3D isometric projection surface using a hardware accelerated graphics card. And how do you do that exactly? Even if you are willing to limit yourself to a single nVidia or ATi card supported to start? Ah...
评论 #21370027 未加载
sovaover 5 years ago
This is real talk! But, How does this appeal to a unified architecture interfere with the marketspace? I&#x27;d love for more programmers to listen to this video and give their thoughts!
评论 #21369098 未加载
columboslastqover 5 years ago
I would be very curious to know the thoughts of HN readers: Is it a good idea (define a system wide spec to remove the need for drivers etc.)?<p>Seems to make sense to me, but i know nothing. If someone defined one, an emulator could be written. may even be able to prove some gain that would make it attractive for a manufacturer to impliment it.
评论 #21371592 未加载
ncmncmover 5 years ago
Remember when the SDI (&quot;Strategic Defense Initiative&quot;), &quot;Star Wars&quot;, Reagan&#x27;s fraudulent ballistic-missile defense project, was considered impossible to implement because (as reported by David Parnas) it would take a <i>million lines</i> of code to implement, and (more importantly) would have to work right, on the first try?<p>The program was believed-in by the Soviet military, which spent so much on countermeasures it crashed the Soviet economy, bringing down Gorbachev and, ultimately, the USSR itself. Which seemed OK at the time (people talked about a &quot;peace dividend&quot; -- joke was on us!), but now we have Putin. And Trump.<p>But I got a free trip to Hungary, in 1987, to report on research in point semiconductor defects, paid for by a grant from the US Air Force out of their Star Wars budget.
评论 #21368098 未加载
评论 #21367125 未加载