Better HN
topnewbestaskshowjobs
Log inSign up

binarycrusader

3,608 karma · joined Jun 9, 2011 (15y ago) · 1,202 submissions

Windows Developer @Microsoft. Hobbyist Game Developer. My words are my own and not those of any affiliate or employer. Formerly: Solaris Principal Software Engineer at Sun Microsystems/Oracle.
Submissions

comment 14y ago · link · parent

Not equally high, but skyrocketing for sure.

When I first moved to the Menlo Park/Palo Alto area two years ago, rent on a decent two-bedroom apartment was around $1400-1700 per month. Currently (two years later roughly), it's $2350+ a month and still climbing.

In fairness, a lot of that has to do with Facebook moving into Menlo Park and the crazy demand for space in Palo Alto / proximity to Stanford University.

I'd move farther south, but there's too much urban sprawl which makes it inconvenient at best to get around unless you drive everywhere. Mountain View is going up too thanks to Google.

The last place of refuge is pretty much Sunnyvale and San Jose. But the rent there is still a few hundred higher per month at least than it was two years ago.

comment 14y ago · link · parent

  You need to install a giant lame IDE just to get
  a bunch of command line development tools?
That hasn't been true since earlier this year. If you login to developer.apple.com, you can download the "Command Line Tools for XCode" from here:

  https://developer.apple.com/downloads/index.action
No "lame" IDE required. But you might think that IDE is not so lame the first time you use Instruments...

comment 14y ago · link · parent

One thing that might help is to have an option for Foreman to only manage the apps that are in at least one app group.

In other words, if I don't put terminal into an app group, it doesn't get closed, etc.

comment 14y ago · link · parent

I don't see that as a clause so much as a disclaimer. But the real trouble is that some countries don't allow an author to surrender their moral rights. I believe Germany is one of those.

So whether the CC license mentions it, in some countries it still matters.

comment 14y ago · link · parent

No, that's why I bought a Google Nexus 7.

And unlike the Nexus or the iPad, Amazon's devices (well, at least the Kindle Fire) now comes with ads on the home screen and lock screen by default:

  http://arstechnica.com/gadgets/2012/09/all-kindle-fires-sold-to-us-customers-will-have-home-screen-ads/
It's unclear yet how consumers will be able to opt out of those (that is, whether it's a simple setting or fee-based).

comment 14y ago · link · parent

I think the more interesting thing is a link in one of the comments:

  http://www.infoworld.com/d/application-development/scala-the-android-programming-language-you-didnt-know-you-had-170999
...I didn't realise you could use Scala with Android's Dalvik.

Admittedly, that's an article from 2011, and it's probably on hacker news somewhere already, but still...

comment 14y ago · link · parent

I've owned a HTC One X; the camera was far inferior to the SIII's, while the screen was way better. Not happy about the tradeoff.

comment 14y ago · link · parent

Uh, sorry, but at "normal" viewing distance (a foot or more?) I can tell the difference immediately. In particular, the blue tinge of the pentile display is immediately obvious when viewing pictures of people on twitter / facebook.

The HTC One X, in this regard, is the superior phone. In all other regards, the SIII is (to me).

comment 14y ago · link · parent

Except we're not talking about any old library function here. We're talking about standard library functions such as memcpy, etc. Those functions are optimised specifically for different hardware platforms on every major operating system.

For example, Solaris, Linux, and Windows all feature versions of memcpy that are specifically optimised for different hardware platforms. Intel in particular supplies these optimisation for a number of operating systems directly to the OS vendors.

My advice only applies to the standard library (really, just libc). It's not intended to be nor applicable to anything else for the purpose of this discussion.

For example, in Solaris alone (older version of OpenSolaris actually, but it gets the point across), there are seven easily found versions of memcmp alone:

  http://src.opensolaris.org/source/search?q=&project=onnv&defs=memcmp&refs=&path=libc&hist=
Six of those versions are written in assembler specifically for a particular hardware platform. One is a generic C version. Furthermore, as an example, the amd64 version of memcmp alone has optimisations for at least 14 different cases. Everything from 3DNow! optimisations to optimisations based on data size and alignment.

Also, as for your concerns that OS vendors don't update the standard library functions as often as you think -- you're wrong. I know for certain that Linux, Windows, and Solaris all receive continual updates for new hardware platforms for their standard library. There's a reason you hear these vendors constantly talking about their SPEC benchmark numbers or the like.

So again, as far as standard libraries are concerned -- don't do it; it's not worth it.

comment 14y ago · link · parent

Whether it was actually a bug is unclear from your description. By default, Sun Studio intentionally doesn't inline functions defined in system header files unless specifically requested.

It's also at the discretion of the compiler whether to permit some functions to be inlined. The compiler man page outlines this caveat, and mentions that inlining standard library functions is discouraged as it can cause errno to become unreliable.

Finally, there's also a question as to whether (again) there was a bad algorithm being used as opposed to the fault being with a standard library function. Yes, it's possible there was a performance pathology with the particular use case you have, but there's almost always a better way to resolve an issue like that than hand-rolling a standard library function which inevitably causes unexpected issues.

comment 14y ago · link · parent

But that's sort of my point; today's optimisation can be tomorrow's performance regression, security bug, or be outdone by an update by the OS vendor.

It's very rare that a program's performance is being held back by a standard library function (speaking of libc here). I remain highly skeptical that the algorithm isn't the real issue instead of the implementation of standard library functions.

It's just not worth it.

comment 14y ago · link · parent

(I realise the poster came up with a different solution ultimately, but this bears repeating.)

Don't hand-roll standard library functions. You'll very likely regret it later.

In particular, as hardware advances, OS vendors often update their implementations with optimisations specific to new hardware platforms. This both allows improvements for all programs that consume those interfaces, and prevention of regressions when hardware changes in some cases.

In addition, you really don't want to be the one that introduces a security bug into your program because it turns out your optimisation work didn't account for a scenario that the standard library function does.

I'm aware that there may be cases where some believe it's appropriate; don't give into temptation. It's a bad idea to duplicate the standard library.

comment 14y ago · link · parent

Note that other compilers (such as Oracle Solaris Studio) support computed gotos as well:

  http://docs.oracle.com/cd/E19205-01/820-7598/bjabt/index.html
And LLVM:

  http://blog.llvm.org/2010/01/address-of-label-and-indirect-branches.html

comment 14y ago · link · parent

I'm sure I'll get downvoted for this, but the fact that github makes it so that I largely don't have to use git is why I use it.

Despite my best efforts, every time I try to use git I run away screaming in terror.

I've used sccs, cvs, svn, mercurial, and a few other version control systems over my development lifetime and I can just never wrap my head around git.

That may be because I spent so many years using Mercurial before git, but I just can't seem to bring myself to enjoy using it.

git makes things far more difficult than mercurial (in my opinion) and has encoded it's creators process and workflow into the tool.

Tools like github for mac (or the arguably superior tool, SourceTree) make git bearable for me.

comment 14y ago · link · parent

All the answers were blurred after loading for me.

What browser are you using and do you have javascript enabled?

comment 14y ago · link · parent

Opera is not the only browser to support resuming downloads. With the appropriate server headers and local state, Safari and FireFox can also resume downloads.

comment 14y ago · link · parent

The only way I'm willing to accept further taxes on driving is when California actually has real public transit coverage across the entire state. Until then, driving is the best option for many individuals.

There are large sections of even the more highly populated areas of California (like the bay area) that are not served by public transit, or are inadequately served by it (for example, Gilroy has only three trains per day during the week and none on the weekend/holidays).

comment 14y ago · link · parent

Every Verizon and AT&T store I've been into had an entire selection of working Android models.

The Wal-Mart I last went into didn't have any working phones at all on display, so why anyone would go there to see what they're like, I don't know.

comment 14y ago · link · parent

Sorry, but I'm going to strongly disagree with your assertions here.

I owned an HTC One X (AT&T-branded) briefly (about a week) and most of my co-workers have Android phones. One of them had the Galaxy SIII. The screen sizes are almost identical. The actual battery life achieved was roughly the same.

Everyone agreed the One X has the better screen; the blue tinge on the SIII (thanks to pentile) was quite noticeable, especially in flesh tones in photos.

There were only three ways in which the Galaxy SIII was obviously better than the HTC One X:

  * twice the memory (2GB vs 1GB)
  * sdcard expandable
  * camera (SIII's clearly superior)

comment 14y ago · link · parent

It flys just fine. Read the verge review of the ATT 4G LTE version.

comment 14y ago · link · parent

I strongly disagree. I actually owned an HTC One X briefly. The sense UI was perfectly fine, and I don't think the average consumer would care one whit about the AOSP interface differences.

The things that ultimately made me return it were:

  * camera inferior to Galaxy SIII
  * bluetooth caused my car's bluetooth module to crash
    and reset constantly rendering hands-free mode useless
Now with that said, I haven't tested the Galaxy SIII's bluetooth yet. It could have the same issue, but the two above were enough to make me return it. For now, I'm just waiting until my old phone dies before I bother getting another Android phone.

comment 14y ago · link · parent

A recent post on the Apple developer forums indicated that it is still using gc. But it's a very large, old codebase at this point so that's not surprising.

I imagine that as they drop support for older platforms and have the time, they'll slowly remove reliance on gc.

comment 14y ago · link · parent

Doesn't one press of the power button work? Even then, newer PCs are so power efficient that you can generally just put the PC to sleep and not bother turning it off.

comment 14y ago · link · parent

Because the HTTP 1.1 specification says it should behave differently, and developers expect clients to comply with the specification.

comment 14y ago · link · parent

Considering I've frequently encountered this with botched downloads of disk images from the Apple servers, this seems like something that shouldn't be disabled.

And no, it isn't my system, it's Apple's servers; only have the problem with downloads from them.

comment 14y ago · link · parent

The point is this: if malware is published using your developer certificate, then Apple can simply revoke the certificate and by default, users won't be able to install or run your applications anymore.

As for the shortcut keys, they're documented, so you don't have to remember them.

comment 14y ago · link · parent

No, Apple doesn't approve your company first. You simply sign up as an individual or as a company and then you get to generate certificates which you can then use to sign any application you want.

And by default, you can simply hold down a shortcut key to open an application and install it anyway without a signature.

comment 14y ago · link · parent

It's a fantastic phone; unless you care about the odd blue tinge that the display has (seriously, the way it renders flesh tones put me off). The HTC One X has a better display, but otherwise, the Galaxy SIII seems to be a better phone.
1
353637
41