Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Infinitely fast CPU time! (Score 0) 224

I often wonder what a programming language would look like if CPU and memory were infinitely fast and big. What kind of constructs and algorithms would we never have to worry about any more?

Sorting? Scrap Quicksort - BogoSort to the rescue! Garbage collection? No worries - the waste disposal area is essentially a black hole! Bugs with threading driving you to despair? Never fear, say goodbye to race conditions forever! What does 'optimization' even mean - just brute force everything!

Elegant wouldn't even begin to describe the result. Perhaps it would look a little Basic-esque even... [ducks]

Comment Re:Linear bounded automaton, not a Turing machine (Score 1) 237

The good news though is that as memory increases, it becomes practical to do just as I said. My own OpalCalc program (shown in my sig) does that, restricting the number of undo/redos to say 500 (though I'm sure 5000 would be fine too). The class is less than around 25-40 lines of code. As (text) files inside OpalCalc tend to be on the small/tiny side, no harm is done, and it makes the chances for programmer error much smaller.

I'm guessing it's easy to code such a system in functional programming ...

Comment Re:It's not all about flavor... (Score 1) 466

How something is supposed to 'look' is something that can change within a generation.

If on the other hand you believe in universal aesthetics (like I do), and must dip into the mere look of the presented food, then there's no reason we can't have a BETTER looking food put onto our plate than what stone-age meat has to offer.

Comment Dark-age style slaughterhouses (Score 1) 466

If this takes off, and I don't see why not (unless it's significantly more expensive), I almost worry that the existing range of quorn-like products will die off. There's a potentially infinite range of tastes and textures out there, and by eating just real meat, we're forcing ourselves to a tiny sub-portion of possible flavours.

It's about time we moved away from dark-age style slaughterhouses to a tasty meat substitute. Bring it on.

Comment Re:Resolution is not the hard-to-solve problem.. (Score 1) 135

Finally. Something that gets hardware and software devs to care about latency. For too long, software, mobile phones, games, monitors and tons of other gadgets have often exhibited latency above 50-100ms. I'm hoping the tech will trickle down from VR headets to other devices so we can end the madness once and for all.

10ms would be better by the way as even 16ms can be perceptible by many.

Comment Re:Modern audiophiles are no different. (Score 1) 469

All sound in the end is air pressure whether that's from an electronic speaker or a 10 trillion year old violin. The speaker is in itself a kind of instrument, except it's the most versatile instrument ever created because it can play not just any sound you have ever heard, but any sound you can POSSIBLY conceive of mathematically. I think that's an incredible concept.

Anyway, his point is that you are not hearing the 30kHz and a 34kHz pitches directly. So that still means the human ear can't hear above roughly 20kHz no matter what anyone claims. However, you're free to go for a double blind trial yourself and see if you're not wrong.

Slashdot Top Deals

Old programmers never die, they just hit account block limit.

Working...