Better HN
topnewbestaskshowjobs
Log inSign up

Flow

1,321 karma · joined Jul 11, 2009 (17y ago) · 690 submissions

Submissions

comment 14y ago · link · parent

It's not that easy, you have to think of things like:

- If I debug this code, will there be meaningful intermediate values? (One clever line of code might lack those)

- Can a less experiences developer understand what this does?

comment 14y ago · link · parent

I wonder when we instead of having incognito modes have separate sandboxes per domain. Say one domain that only have data from facebook.com and is only reachable if you are actually visiting facebook.com.

Yes, this will make the web less hyper, but right now some behaviors is out of control for the user.

comment 14y ago · link · parent

Spheres of Chaos... Mmmm. http://www.spheresofchaos.com/

comment 14y ago · link · parent

My biggest Word WTF was when I had edited about a page of text, and went away for a new cup of coffee. When I came back the document was only showing Wingdings-like characters. And when I press the cursor keys it crashed.

After that time I always go into the settings and force it to make proper .bak files.

I've seen the sales people periodically manually save to a separate .rtf because Word crashes and trashes the document and the auto-save so often for them.

After decades and zillions of money, why isn't that piece of software amongst the most solid software there is?

comment 14y ago · link · parent

> You can have an alternative programming language interpreter in your program (now), but it can only run scripts that are already in the application bundle.

If what you say is true, how come there are other web browsers in the App Store?

comment 14y ago · link · parent

Also, there are some great and funny comments about this article on reddit: http://www.reddit.com/r/programming/comments/t9qxy/reaching_...

comment 14y ago · link · parent

Haven't you heard? New shit has come to light man.

comment 14y ago · link · parent

Are any of his book suitable as casual on-the-tram reading? Could you recommend one of his books? Thanks.

comment 14y ago · link · parent

Why not simply do a straight exit-early if+return?

  if(!username || username.trim() = '')
     return { error: "No Username Given.", field: 'name' };

  if(!password || password.trim() = '')
     return { error: "No Password Given.", field: 'password' };
and so on.

Is that not clever enough??? Even a monkey would understand this.

comment 14y ago · link · parent

> In theory this means that people only downvote for "doesn't belong on HN" or perhaps "blatantly factually incorrect" posts, rather than "I do not agree with this posts".

The intention was that maybe, but is it true in practice?

> But the most blatant trolls don't deserve any comment.

Old-school individual "killfiles" would do. As it is now some people seem to be locked out of HN by a crowd of anonymous people. It seems to me that the current system is a bit naive about the goodness of how high-karmas act.

comment 14y ago · link · parent

A script that logs in to Hacker News on 10+ different accounts and upvotes comments by you. Everyone can upvote.

comment 14y ago · link · parent

Who can down-vote? Not me. Seems to me that it's people who have written lots of good comments that can down-vote. And of course, people running scripts that help them achieve high karma that they can abuse.

A simple "I Like This" without any count would be enough IMHO.

Or at least a simple rule that you can only down-vote if you write a positively karma'd comment to the post you down-vote.

comment 14y ago · link · parent

And perhaps which universe we are talking about.

comment 14y ago · link · parent

I was under the impression(from my FreeBSD years) that pages that are not used for a while is swapped out and marked as inactive. The pages are then fast to throw away for other use, or fast to brink back to active state.

In Lion I get the impression they are just swapped out and thrown away / reused for something else despite there are no real pressure on the VM.

comment 14y ago · link · parent

I have 12GB of RAM and Lion runs like crap on my iMac 2.93GHz i7.

It's like the system discards pages of programs just because the app has been inactive for an hour or so. So when I come back and start the same app the f*cking rotating HD I have sounds like a birds nest for too long periods.

Edit: Disabled the pager and the system now seems much more quiet regarding to disk seek noise when I start apps. Feels like a new machine! :-D

comment 14y ago · link · parent

I once read an article about HP making an interpreter of PA-RISC running on a PA-RISC CPU that was faster than the real thing.

IIRC it was due to better cache locality.

comment 14y ago · link · parent

As an old C64 hacker that implemented several sprite multiplexers I can write more about the difficulties they had.

First, the characters used one multicolored sprite(which gives you double-width pixels), and on top of that sprite they put a black-bordered monochrome(single-pixel widths) sprite to give the characters a cartoony feel.

Maybe the memory savings was from reusing frames from one of these sprites, I don't know.

All the above is for above the waist. Then, when the raster has painted the last line of those sprites, an IRQ occurs and the sprites are moved 21 pixels down and have different frames and perhaps even new colors assigned to them.

This is where the difficulties happen. You have to update 8 sprite y-positions and 8 sprite frame indices. Also up to 4 colors if that is also changed. You only have one scanline(63 cycles) to do this and one update is LDA + STA = 2 + 4 = 6 cycles.

So 8+8+4 moves is 20*6 cycles = 120 cycles. Just less than 2 scanlines.

They could have solves this by spreading out the sprites a bit in the y-direction so they had to do less but one more scanlines. I don't think anyone would even see this.

Most sprite multiplexers sorted the sprites by y-position and then did one IRQ per sprite. If you did this you'd do much less each time and if you could spare the IRQ overhead you'd easily could have 32 sprites on-screen.

comment 14y ago · link · parent

The idea is cool, but I must say the app itself gives me the same feeling I get from Microsofts Expression Blend app. Or any Silverlight app for that matter.

Non-native UI controls everywhere. :-/

comment 14y ago · link · parent

I played HaloPC, HL2 and TF2 in Crossover and the performance and correctness was not good.

comment 14y ago · link · parent

Before Steam was released for Mac I used Crossover a lot. But the performance was maybe half of the performance in Bootcamp plus loads of graphical bugs. And in some games(HaloPC) the mouse pointer was so bad the game was unplayable. Apparently X11 is single-threaded according to some support article I read. :-/

With Mac-native games from Valve, I get more or less the same performance as in Win7 on the same computer.

comment 14y ago · link · parent

sudo sysctl -w net.inet.tcp.slowstart_flightsize=10

comment 14y ago · link · parent

If there are no cost of overtime, I think the company lack a feedback on how well planning, estimation and execution do.

With no feedback there are less reason to change the company for the better.

comment 14y ago · link · parent

Ok, thank you.

I was thinking of http://en.wikipedia.org/wiki/Hidden_variable_theory and that those could be properties of particles skewed into extra dimensions.

This is way over my math and physics skill, but it's still very fascinating.

comment 14y ago · link · parent

"According to IBM, 250 qubits would be able to store “more bits of information than there are atoms in the universe.” This in itself is truly awesome — but then when you factor in that a quantum computer could perform logic on all of that data, in parallel, instantaneously"

If this is correct, does this really imply that there are more dimensions than the 4 we are aware of?

Shouldn't the calculations then be seen in other those extra-dimensions as well? (Thinking that this could be used to detect extra dimensional life and perhaps communication with them)

Or does it simply mean that matter has more states than there are particles in the universe? :-/

comment 14y ago · link · parent

And Cappuccino :)

comment 14y ago · link · parent

It's the same for me, especially that song gives me goose bumps and I start thinking about a special part of my past. :)

comment 14y ago · link · parent

Ltj Bukem & MC Konrad, good stuff

For example: http://www.youtube.com/watch?v=rFVHjZYoq4Q

comment 14y ago · link · parent

But what is your point? I never meant this to be a MacPorts vs HomeBrew discussion, I've only used HomeBrew.

Being downvoted I'm obviously missing something. Care to let me know what it is instead of just downvoting me?

comment 14y ago · link · parent

I thought that HomeBrew didn't even install things as root, so how can it fuck things up?

comment 14y ago · link · parent

My Deathadder 3G Spawn is of Apple quality.

The cable is covered with cloth, not plain plastic.

See if there's a newer firmware for your mouse.

1
171819
23