175 karma · joined Aug 31, 2009 (17y ago) · 173 submissions
comment 13y ago · link · parent
As a non-Mac-user (and fellow ThinkPad user!) that occasionally gets roped in to that crazy land, I feel your pain. MacPorts seemed the most useful option before, simply because it seemed a direct port (heh) of the BSD ports system. Honestly the whole thing reminded me of trying to get stuff to work on Solaris 10-15 years ago.... if you can just get your compiler working it works great, just set up /my-usr over here and make sure nothing from the real system ends up in $PATH.
Lately I heard that MacPorts isn't cool any more so I didn't use it for my most recent Mac-oriented client project that needed some installs. I am a stubborn goat, but if I've learned one thing it's that when the trendy open source crowd on Mac wanders off, good luck getting anything to work, especially because Apple loves to change things. So I looked around and it seems Fink is a really nice option. So far everything went great. If you are familiar with Debian it's like that, and it carefully segregates everything into /sw, so just make sure /sw/{bin,sbin} are first in $PATH and you'll be good. I was recently reminded of Gentoo Prefix and wish I'd tried that out.
Now here is the thing that cracks me up. I am of all things a Gentoo partisan. My workstations? Gentoo. Servers for my business? Gentoo. Client systems? Gentoo. LAN server for a moderately technical friend? Gentoo. And I do get some gentle mockery from friends for how much of my CPU time is spent on compiling. Yet here are the Mac acolytes, with the most consistent hardware and OS platform one could ever hope for, and they always have a fetish for compiling things from source. Are they showing off that they know how to do "./configure && make && make install"? Well congratulations, you got my respect for that, now please make binary packages. I mean shit, the only reason I am into Gentoo is I got tired of that rigmarole and managing $CFLAGS manually on my precious Slackware boxen.
comment 13y ago · link · parent
Gecko is my favorite layout engine and Mozilla makes my favorite browser environments. Firefox gets weirder and weirder sadly.
The multiproject browser environment thing sounds really cool. Multifox does some of that but its interface strikes me as a bit awkward.
Just so you know, Firefox does allow you to run multiple profiles simultaneously in different instances. I do this all the time. Just "firefox -a blark -P profile_name" (or -ProfileManager) and there you go. Don't know if it will work on OS X though.
It's also possible to preload plugins, config settings, and extensions so that you don't have to set them up each time. Let me know if you'd like some pointers. This was a big part of my work at a previous job.
comment 13y ago · link · parent
> Firebug allows you to do that.
Please please tell me how to do this. I want the "Web Developer" menu gone. I want Firebug as a first-class entry in the Tools menu again. And while you're at it, it would be really nice to have "View Source" and "View Page Info" in the View menu again.
Perhaps I'm a little bitter, considering I saw the DOM Inspector ripped out of Firefox, relegated to Firebug, kicked around, and now that Firebug is awesome, I see weird versions of a Firebug subset getting in the way. Why couldn't it be part of the browser, and why not just put Firebug in the browser if you want it back in?
comment 14y ago · link · parent
The "message" at the end of the article was a graphic of a finger over a pair of lips. Presumably from the description in the article it is Amtrak's "Quiet Car" logo.
No idea how or why it ended up the way it did online.
comment 14y ago · link · parent
From the glibc side I believe you are exactly correct.
comment 14y ago · link · parent
Source: I worked at a Web startup circa 2000 where we did exactly that. I think people sometimes forget how far we've come.
comment 14y ago · link · parent
This is good because it means that each state's interest is represented (though the fact that only swing states get the focus is something that should be addressed). I live in Rhode Island and I like that we get some consideration. Large low-population states are another consideration.
...and on posting my reply I see this was already addressed very well in an earlier reply to a parent comment: https://news.ycombinator.com/item?id=4737359
comment 14y ago · link · parent
One thing that does frustrate me is that the compiler enforces a target bytecode level at least as high as your source version. Meaning that even the simpler syntax for initializing generics isn't allowed even though it's pure syntactic sugar and has no impact on the generated bytecode.
comment 14y ago · link · parent
I just checked (see my reply to the parent) and it doesn't.
> In fact the copy on write is probably also done on malloc as well. [...] I don't think any sane kernel will give you someone else's free()'d memory
You won't get someone else's freed memory but you're quite likely to get your own back and in that case it won't necessarily be zeroed.
comment 14y ago · link · parent
Interestingly, in glibc-2.15, the code for calloc (well, public_cALLOc) is longer than that for malloc. Most of that actually seems just to be doing magic to figure out when it actually needs to clear it. So in any cases where calloc is touching reused memory, it clears that itself. Otherwise, things end up at either mmapping MAP_ANONYMOUS or sbrking, which simply allocates pages that all get cleared on access (well, on write) anyway for security reasons.
Honestly I was surprised how much indirection and optimization there was. I knew that there were some clever things being done and they try to take advantage of processor features. But this stuff really does everything possible to avoid even a single unnecessary cycle. I'm impressed.
So in the general case, calloc might do some extra work. But where you're just callocing heaps and heaps (tee hee) it's not likely to. Strange, I could have sworn I just stumbled upon a case where someone claimed doing that was noticeably slower, but now I can't find it... was going to be very curious how that was the case. But after this romp I'm tired.