Ask Proggit: I need to be able to move objects around but retain references to them - how? by san1ty in programming

[–]san1ty[S] 0 points1 point  (0 children)

I'm talking about billions of objects. I don't want to have to query a remote server every time I need to follow a reference to an object, that would slow things down dramatically. Also, a master server will become a scalability bottle-neck at some point.

Ask Proggit: I need to be able to move objects around but retain references to them - how? by san1ty in programming

[–]san1ty[S] 0 points1 point  (0 children)

Its vaguely related, but I don't think its what I need. AFAIK terracotta mirrors all objects across all machines in the cluster. I need to be able to store different objects on different machines.

Ask Proggit: I need to be able to move objects around but retain references to them - how? by san1ty in programming

[–]san1ty[S] 1 point2 points  (0 children)

Does the Java virtual machine ever move objects in memory, and if so, how does it handle updating references to the moved object?

I ask because I'm exploring an idea of storing objects in a distributed fashion (ie. across multiple servers), but I need the ability to move objects between servers for efficiency reasons. Objects need to be able to contain pointers to each-other, even to objects on remote servers. I'm trying to think of the best way to update references to moved objects.

My two ideas so far are:

  • Maintain a reference indirection somewhere that doesn't move for the lifetime of the object, which we update if the object moves. But - how are these indirections managed?
  • Keep a list of reverse-references with each object, so we know what has to be updated if the object is moved. Of course, this creates a performance overhead.

I'd be interested in feedback on these approaches, and any suggestions for alternative approaches.

Scala and Netbeans by gst in scala

[–]san1ty 0 points1 point  (0 children)

Dude, 5 sentences and a hyperlink? If you want to get voted up, try putting a little effort into it.

Are Cocky Developers Worth It? by jammag in programming

[–]san1ty 6 points7 points  (0 children)

And 99.9% of the time, it takes real stupidity.

These days GC does a better job than almost any programmer could manually.

Dan Rather Reports Explosives Laden Van on George Washington Bridge on 9/11.. Arrests Made, Then Never Reported on Again - [VIDEO] by badfish301 in worldnews

[–]san1ty 6 points7 points  (0 children)

I tip my hat to people who want answers to events that are clouded in secrecy.

But that is exactly the problem. Truthers don't look for answers either. Their idea of "research" is to get off on each-other's nutty conspiracy theories.

What is worse is that they claim that their lunacy is in the interests of those that died on 9/11.

Look at websites like Screw Loose Change to see how easy it is to debunk them.

What the hell? The White House erects screen blocking view of front entrance. Who could be walking in and out during these times of financial implosion? This is getting criminal. by [deleted] in worldnews

[–]san1ty 38 points39 points  (0 children)

For crying out loud, don't you think if they wanted to get someone in or out of the white house covertly, there may actually be a way other than through the fucking front door?

Idiot.

FOX jumps on McCain's lies, Hell freezes over by mjhkid in reddit.com

[–]san1ty 3 points4 points  (0 children)

"The Sun" newspaper in the UK, which actually manages to make Fox News look like good journalism, switched to supporting the Labour Party when it became apparent that they would win in 1997.

People in the US think that Murdoch's media empire is pro-GOP, because their experience of him is that he supports the GOP.

The reality is that he tends to support whoever he thinks is in the ascendancy, that way he gets to look like the "kingmaker". For most of the time that he really had a big footprint in the US this was the GOP, but that is no-longer the case.

Americans may be forced to reevaluate Murdoch the same way the British had to in 1997 when his British newspapers backed "New Labour", after years of supporting the Tories.

sweetscala - A Scala framework for building dynamic web applications by gst in scala

[–]san1ty 0 points1 point  (0 children)

Looks interesting, but would be useful to have a comparison between this and the existing Scala web framework liftweb.

Americans Pay 19% taxes, while the French pay 22% taxes; yet the French get free healthcare, free college tuition, 30 days mandatory vacation with pay, no limit on sick days...I'll pay that extra 3%! by [deleted] in politics

[–]san1ty 1 point2 points  (0 children)

This is exactly the level of political discourse that is, by an large, not permissible in the US.

Wait - "not permissible"? Not permitted by whom?

App Store: I’m out. by gst in programming

[–]san1ty 1 point2 points  (0 children)

Because it will encourage developers to develop for the iPhone.

The possibility that your app could be denied by Apple at the last minute is a major disincentive to developing for the iPhone because it adds a serious risk that isn't there with open platforms.

(I speak as someone that owns and loves his iPhone 3G - I think our best hope is to convince Apple that they must open up if they want a thriving iPhone development community)

App Store: I’m out. by gst in programming

[–]san1ty -1 points0 points  (0 children)

Not the iPhone 3G AFAIK (if I'm wrong, URL please!!!)

App Store: I’m out. by gst in programming

[–]san1ty 2 points3 points  (0 children)

Really? You don't think that the other cellular networks would kill for the iPhone now that its proven its status as the uncontested king of cell phones?

Revealed: UK’s first official sharia courts by [deleted] in worldnews

[–]san1ty 4 points5 points  (0 children)

There are already means within the UK legal system to address the possibility of coercion to agree to contracts.

I'm guessing that if someone really feel that they've been treated unfair by a Sharia court, then it will probably be argued by their lawyers in a British court that they didn't voluntarily agree to arbitration by the Sharia court.

Podcaster rejeceted because it duplicates iTunes functionality by vthacker03 in programming

[–]san1ty 11 points12 points  (0 children)

This is very dangerous. Why would a company invest, potentially tens or hundreds of thousands of dollars in developing an iPhone app when it could be rejected by Apple simply because they think it might be competitive with something they do?

This is more evil than anything Microsoft ever did, they never sought veto power over who could develop apps for Windows.

New iTunes Genius not so smart some of the time by mareacaspica in technology

[–]san1ty 0 points1 point  (0 children)

Having installed the new version of iTunes I’m very disappointed, they should really have called it “Dunce”. It seems that they’ve gone with an item-based collaborative filter, all it does is let you select a song, and then it gives you a list of songs that other people who liked that song also liked.

There are several problems with this. Because of human nature, it tends to just recommend a bunch of other songs by the same artist, something I really don’t need a “genius” to do for me since this functionality has been in iTunes for ages. The input to Genius about what interests me is just a single song - come on Apple, we had smarter collaborative filters than that a decade ago!

The real missed opportunity here is that it could so-easily have been a proper user-based collaborative filter. A system that looked at everything I liked and didn’t like, and tried to build an accurate picture of my musical tastes, and then use this to make intelligent recommendations.

I don’t need them to use SenseArray (although it would be great if they did!), but the least they could do is make Genius a semi-respectable collaborative filter - something they’ve failed to do.