Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Not sure what you're talking about (Score 1) 254

I've never done my own garbage collection, and PHP just updated it in 5.3.

PHP works, it's fast as heck, and I can do anything you can do in python/perl just as well and way faster.

I don't know about python/perl but there are operations in PHP that need 200MB of memory which I could achieve in C with only 20KB of memory.

That's a 10,000x increase in memory consumption for PHP. If this has improved in version 5.5 I can't wait to give it a try.

And it's not just memory consumption, there are times when I run a xhprof on some slow PHP code and find out it's spending 90% of it's time allocating and/or freeing memory. If it used less memory, it would spend less time managing it.

PHP is a great language, but it's definitely not perfect. Memory and performance are "good enough" in most cases, but it's far from great.

Also, I have had to do my own manual garbage collection at times. There are no manual malloc/free API calls but I definitely do need to make use of unset() at times or otherwise refactor my code to reduce memory consumption.

Comment Re:No thanks (Score 2) 876

I've not done much/any c/c++/java stuff other than compile source written by other folks in the past 14 years or so, so maybe the current crop of IDEs do this.

iOS/Mac/NeXT programming has worked that way for about 25 years. You build and configure a series of objects with a GUI and when the application launches all of those objects will be loaded into RAM, then a "loaded" event is fired on each of them. From there your code will typically create more objects and setup stuff that can't be done in the GUI.

Objects created in the GUI are tightly linked to your code, the GUI for building the objects understands how to parse and partially compile code (even half written/broken code) and you can connect things up, for example if a button should only be enabled if a particular method returns true, then you can hook that up by dragging a line from the button's "enabled" state onto the method in the source code.

You can also drag a line from the button's "action" onto the an empty line of code in the source code, and it will write a blank method that in your code doesn't do anything, with the button linked up to it. Or you can write the method yourself and drag the line onto the method name.

Comment Re: Why? (Score -1, Flamebait) 2219

Right now I wish /. was sensors, because I want everyone who has commented on the beta in a non-beta related article to be permanently banned from ever commenting on the site.

It's fucking annoying, I came here to read comments and have discussions, the beta works well enough. Go talk about it in places like this article or just fuck off and never visit /. again, I don't care.

Please /. management, do not let a bunch of prissy idiots who think they own the site ruin it. Ban them, or at least give me the option of hiding all comments that mention "beta".

Comment Re: still exist, but... (Score 1) 474

It's not just a different clock speed, it has different memory architecture and so on. It has dual high-end workstation GPUs (which normally cost around $6,000) with some of the more expensive parts of the GPU replaced with cheaper consumer grade gear (bringing the price down to around $1,000 or thereabouts). For example, non-ECC memory. And if you boot the mac pro into windows you can't even use the cards properly, because AMD's drivers are not compatible at all and Apple's drivers for bootcamp only do a half assed job of supporting them. Enough to boot and run windows perfectly but not enough to actually use the GPUs to their full potential.

Comment Re: still exist, but... (Score 4, Informative) 474

The only non standard part Apple use is the motherboard, everything else is pretty much standard parts, memory, HDD, CPU's, GPU's etc are all stock standard parts available in whatever flavour machine you want Apple or not.

That's not true. They usually use modified versions of standard components. The current MacBook Pro has the RAM and SSD soldered onto the motherboard, and while the CPU is standard it has a custom connector and cooling system that has forced enough physical differences in the chip that it cannot be replaced. Most macs these days don't even have a GPU, they rely on intel's latest integrated ones which are finally pretty decent.

The Mac Pro is the only model Apple sells with fully standard CPU... but the GPU is non-standard, it's made by AMD but is a weird hybrid of two different GPUs that AMD sells, and Apple is the only company who can use it... one of the two GPUs in the mac pro even has a socket on it so you can plug in a bloody PCIe SSD card. On the GPU! They ran out of PCIe lanes on the processor, so the SSD has to share the lane of the second GPU which is actually a sensible choice since it's highly unlikely you will be maxing out the PCIe card (1.5GB/second) at the same time as doing serious computations on the GPU. That definitely is not a standard part.

On iOS apple builds everything themselves, they are famously known to have over 1,000 engineers working on just the CPU for the iPhone. They haven't gone that far with the mac but it's standard procedure to take components from other companies like AMD and Intel and Qualcomm but then modify to suit their own needs.

Comment Re:God I hate our patent system. (Score 1) 213

Patents are supposed to drive people to come up with ideas that would be cost prohibitive if they were not given some kind of incentive like a temporary government enforced monopoly.

Patents *were* supposed to do that. There have been a bunch of amendments since, and now their sole purpose is to make a lot of money for big companies. Which is arguably good for the economy of countries that have a lot of big entrenched companies, and bad for the economy of the rest of the world.

Giving out these monopolies in exchange for for such obvious ideas (i,.e. they would be invented regardless) is a shitty deal for society.

I agree 100%.

Comment Nest tie in (Score 1) 213

Google also describes how advertisers will be able to use a customer's profile 'to exclude a customer from being considered for an offer based on exclusion criteria identified by a business,' such as age, job title, purchasing history, clothing size, or other 'desirable' characteristics.

For example, if you're at home when a football game is on, then obviously you're a fan of the sport.

No thanks, I won't be buying anything off Nest.

Comment Re:Approximately 10% of the votes (Score 5, Informative) 41

That doesn't sound right.

It depends whether you consider a "vote" to be a song choice, or a person who voted.

Voters submit a list of their favourite handful of songs, they don't pick one. Triple J usually picks the number of song submissions, not the number of people who voted, since it's the songs themselves that they count.

Fairly impressive for a country with a population of ~23M.

A lot of the votes aren't by australians. Triple J streams worldwide for free and they have extremely good taste in music. Their charter requires, by law, that they do not have any ads except to promote music and culture, which means they promote music and festivals that they think are interesting, but don't collect any revenue for it.

So there are plenty of people around the world who tune in.

The event is several hours long, and it takes place on a national public holiday when everyone is off work. I've been invited to more than one party, to spend the whole day listening to music, drinking beer, eating bad food and trying to find some shade and/or water (bloody hot here this time of year!).

Comment Better idea (Score 1) 162

Or even better, just tell google they have to stop selling services in Europe for a period of time, say 90 days. So nobody in Europe would be allowed to buy ads off Google while the ban was in place.

This would give competitors, who presumably adhere to EU law, a chance to step in and earn some revenue of their own.

Comment Re:Obligatory (Score 1) 533

Personally I think that the biggest problem with Slashdot is the abundance of comments like this. Seriously, it might not meet your standards. I understand. Now get over it and stop wasting my time writing it for the thousandth time or actually submit an article that raises the bar. Whining is not really going to change anything.

Sorry, but I really had to.

Bullshit. The only way to improve is for people to point out when something is below standard. Complaints should be encouraged. You just shouldn't give credence to all of them.

Comment Re:Obligatory (Score 1, Informative) 533

I actually think it's an interesting thought experiment. It immediately forces the reader to think about how pieces of code are used in the real world, both within and beyond their intended application. But it is also likely impossible to settle to anyone's satisfaction.

And since it's impossible to settle, it's a total waste of time to even think about it. I don't know what the most often-run piece of code is. I don't have any idea. And I'm pretty sure nobody else on /. does so what's the point of even reading comments? I wouldn't be here if I wasn't bored out of my mind...

This really is the worst ask /. I've ever seen. I wish they'd asked something interesting, like "what did you have for breakfast?" at least I can answer that with some hope of knowing the answer.

Slashdot Top Deals

"You need tender loving care once a week - so that I can slap you into shape." - Ellyn Mustard

Working...