TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Linux: still better for coding

44 点作者 r11t超过 15 年前

13 条评论

vegai超过 15 年前
As a Linux users from 1996, Macs seem all the time more enticing. But, but... the interface still sucks -- in comparison to modern X11 window managers such as awesome and xmonad -- and what's worst, it's not so easily replaceable.<p>Besides, if I would replace the OS with Linux anyway, what's the point of buying an Apple?<p>It's still lightyears above any Windows setup, of course. Especially for the common guy.
评论 #924102 未加载
makecheck超过 15 年前
I think it would be nice if additional memory checkers and profilers worked on Mac OS X, but the article doesn't mention the (extremely powerful) suite that does come with the OS: Instruments.<p>API stability is a question of the framework, I suppose. Objective-C as a language isn't really in the same league as C as far as API stability, because it's fairly easy to deal with evolving parts in a semi-dynamic language. Perhaps that is why Apple is more careless when it comes to changing things.<p>Package management has a place in my heart, too, though. I have seen many attempts to do this that fall far short, and not just on Mac OS X. I suppose what I'd really like is something as powerful as apt-get, but merged with some kind of App Store; and I hope that Apple is working on such a thing.
评论 #923188 未加载
Zev超过 15 年前
<i>Valgrind</i><p>Works with OS X nowadays. Plus, Xcode has the benefit of Clang's Static Analysis being <i>built right in</i>. You really can't beat checking one box and having it automatically scan over your code when you build to point out a lot of mistakes (like leaks or logic that's never hit). True, different purposes. But, you can install Valgrind. And in the meantime, Clang will catch some things for you, before you have to find them with Valgrind.<p>// edit: Whoops, I was wrong: Valgrind doesn't work on Snow Leopard yet, like I initially thought.<p><i>Apt-get</i><p>If you're targeting another Mac system, do you <i>really</i> want to ship your own version of Tck/Tk? Do you really want to use a custom library for your own development and another for shipping? Or do you want to use the one the system provides? Hint: The latter allows for much smaller downloads. Lets the user start using your software much quicker.<p><i>API stability</i><p>Theres applications out there that work on PPC and 32/64bit Intel, on any OS from Jaguar on. 7 year old applications that still work perfectly fine, across OS's that have had major changes, seems to be pretty stable API-wise to me. Not to mention, there are API's that have been deprecated since 10.3, but can still be used (even though you really shouldn't use them) in 10.6.<p><i>/proc filesystem</i><p>See the `sysctl` command instead. Bonus: You can access all this information with a sysctl() call in code too!<p><i>Compiler</i><p>Given Xcode ships with gprof, I'd be highly surprised if it doesn't actually work. And theres always Shark, that can be run without having to add special profiling flags when compiling. Or Instruments (ie: DTrace).<p>As for -arch i386 not working? Thats just not true.<p><pre><code> bash:~ Zach$ gcc -arch i386 foo.c -o foo bash:~ Zach$ file foo foo: Mach-O executable i386</code></pre>
评论 #922924 未加载
评论 #922923 未加载
wooster超过 15 年前
Things I would miss if I moved from OS X to Linux:<p>* Shark<p>* Instruments<p>* dtrace<p>* leaks<p>* TextMate<p>* Spin Control
评论 #923226 未加载
eplawless超过 15 年前
I developed for Linux in C++ for about 8 months recently. We did all of our development from Windows with Visual Studio and Visual Assist X because Linux doesn't have anything even close to the same quality (Qt Creator is only about a year away from catching up, and is brilliant software, but isn't there yet).<p>Boost's unit test library has memory leak detection built in, and Intel's performance analysis tools integrated into Visual Studio utterly trounce Valgrind. ICC embarrassingly outperforms GCC.<p>Linux development is still way the hell behind, and if the article's to be believed, apparently blissfully unaware.
评论 #924738 未加载
评论 #923396 未加载
pkulak超过 15 年前
Maybe coding C. I never use C. For dynamic languages, Objective C (obviously), and web development, Macs work great for me.
shpxnvz超过 15 年前
Better title...<p>Linux: still better for coding <i>in C</i><p>[EDIT] To clarify, the article is specifically discussing issues with developing native programs on OSX which do not apply to developers in many other languages.
评论 #922899 未加载
评论 #922885 未加载
dnaquin超过 15 年前
this is why i run ubuntu in a vm and do all my serious development there.
onewland超过 15 年前
I'd like to add that for web-related Ruby stuff, OS X is definitely the first class platform, with Linux/other Unixes coming in second.<p>TextMate is considered the canonical rails editor for a reason.
评论 #923675 未加载
davidw超过 15 年前
Linux is a system by, and for hackers. That pretty much sums it up.
omouse超过 15 年前
Should read GNU/Linux especially since one of the tools mentioned is GCC.
wglb超过 15 年前
Er, might i recommend macports? It has valgrind and who knows what else.<p>And if you dig a little, can't you find most of the stuff that is in /proc?<p>I suggest digging a little more.
评论 #922897 未加载
blasdel超过 15 年前
<i>API stability.</i><p>What the fuck are you smoking? Mac OS X has by far the most stable APIs of any modern development environment. They change existing APIs and add with every major release -- but they do so in a new SDK. Apps that were linked against the 10.4u SDK use the 10.4u libraries, even on 10.6. <i>This is fucking amazing</i>.<p>The only way Win32 stays as stable as it is is by just not changing anything or even adding new APIs.<p><i>For instance I compiled nmap yesterday for snow leopard, and guess what, it was not working, unable to open the interfaces. The compiled binary I downloaded from insecure.org worked against the loopback interface but not against the wifi one. The interface to capture raw frames from the airport extreme changed again with snow leopard, breaking valuable programs like Kismac. It's not an open platform so this changes are even worse.</i><p>Now you're effectively complaining about Kernel ABI compatibility!
评论 #923555 未加载