Click here to Skip to main content
14,385,812 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsLightSail 2 deploys solar sail to surf the sun's rays Pin
Kent Sharkey24-Jul-19 11:16
staffKent Sharkey24-Jul-19 11:16 
NewsMark Zuckerberg: Facebook will set a completely new privacy standard for tech industry Pin
Kent Sharkey24-Jul-19 10:31
staffKent Sharkey24-Jul-19 10:31 
NewsObject-Oriented Programming — The trillion dollar disaster Pin
Kent Sharkey24-Jul-19 10:16
staffKent Sharkey24-Jul-19 10:16 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
TheGreatAndPowerfulOz24-Jul-19 11:15
MemberTheGreatAndPowerfulOz24-Jul-19 11:15 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster PinPopular
jesarg24-Jul-19 12:20
Memberjesarg24-Jul-19 12:20 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Joe Woodbury24-Jul-19 13:02
professionalJoe Woodbury24-Jul-19 13:02 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil24-Jul-19 18:08
professionalDavid O'Neil24-Jul-19 18:08 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil24-Jul-19 18:42
professionalDavid O'Neil24-Jul-19 18:42 
And for a real question, after my initial laugh.

I've read several intros to functional programming. Nothing I've read answers the question, "How do real-world functional programs handle changes to huge-size data-blocks without clobbering memory?"

In other words, say you create a word processor. The functional programming explanations I've seen indicate you have a 'document' in memory that might be 2 MB. If you add a letter to the document via a keystroke, in order to keep it immutable, you need to generate an entirely new 2 MB block with the added character, which becomes the 'new' document. The program always updates to that 'new' document, in order to eliminate mutability.

Something has to be wrong with my understanding, because if that is the case functional programming cannot handle real-world word processors and other editing chores because it will just start shuffling around huge blocks of memory, trashing the cache and becoming slow as dog poo in snow.

GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Daniel Pfeffer24-Jul-19 22:13
professionalDaniel Pfeffer24-Jul-19 22:13 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil25-Jul-19 6:46
professionalDavid O'Neil25-Jul-19 6:46 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Rob Grainger24-Jul-19 23:24
MemberRob Grainger24-Jul-19 23:24 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Nelek25-Jul-19 2:50
protectorNelek25-Jul-19 2:50 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
David O'Neil25-Jul-19 6:46
professionalDavid O'Neil25-Jul-19 6:46 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Amarnath S24-Jul-19 19:29
professionalAmarnath S24-Jul-19 19:29 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
PeejayAdams25-Jul-19 2:58
MemberPeejayAdams25-Jul-19 2:58 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Chris Maunder25-Jul-19 9:13
cofounderChris Maunder25-Jul-19 9:13 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff25-Jul-19 23:31
mveBillWoodruff25-Jul-19 23:31 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller26-Jul-19 3:36
MemberBernhard Hiller26-Jul-19 3:36 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 5:30
mveBillWoodruff26-Jul-19 5:30 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller26-Jul-19 3:40
MemberBernhard Hiller26-Jul-19 3:40 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg26-Jul-19 5:30
Memberjesarg26-Jul-19 5:30 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 6:08
mveBillWoodruff26-Jul-19 6:08 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
BillWoodruff26-Jul-19 22:03
mveBillWoodruff26-Jul-19 22:03 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
jesarg28-Jul-19 17:05
Memberjesarg28-Jul-19 17:05 
GeneralRe: Object-Oriented Programming — The trillion dollar disaster Pin
Bernhard Hiller28-Jul-19 22:36
MemberBernhard Hiller28-Jul-19 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.