Page 2 of 2

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Sun Aug 24, 2014 5:36 am
by FZR1KG
Oh the irony.
NASA uses and researches State Machines as do avionics. There would have been no men landing on the Moon without it. It was implemented because it was easier to understand and predict.
Now we're told that to be reliable we need to go to functional programming and steer away from State Machines, so it's easier to understand and predict.

Let's see:
NASA goes to the Moon with the use of ASM using computers with less power than a modern calculator and far less memory.
Firefox and Chrome hog tons of memory and crash often using functional programming.

Yeah, I can see their point.
^
|Sarcasm.

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 5:38 am
by squ1d
I have found Chrome to be an extremely lightweight and efficient browser, and it is written mostly in C++ and assembler.

Nobody really uses functional programming outside of academia because state is a good thing. However, FP is gradually getting its hooks into various languages and environments. Closures were introduced to Java in v8.

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 7:59 am
by FZR1KG
I just checked chrome on my PC, over 500Meg of ram used.
That's 25% of my RAM just for a browser. I call that a memory hog.
250+ meg with two tabs open, gmail and FWIS.
I recall reading somewhere that chrome and FF use functional programming styles.
Makes sense to me because of the huge memory usage as functional programs use a lot of stack space in their never ending quest for recursion. lol

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 9:31 am
by squ1d
I doubt in the extreme that chrome or firefox were written in any significant way using functional programming techniques.

For chrome, you can take a look in the in-browser task manager to see where memory is allocated.

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 11:34 am
by Sigma_Orionis
My Firefox is a memory hog, but I am not too sure I can blame that on the browser. I use a ton of extensions. IF I get irritated enough with it I'll switch to Chrome, and of course will probably use a lot of extensions as well. So in my case is most probably a a layer 8 error.

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 12:03 pm
by Cyborg Girl
Chrome is mostly C++. I think C++11 has extensions for functional programming, but I'm not sure if Chrome uses them...

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 3:27 pm
by FZR1KG
Never mind. I miss read something.
There was no reference to FF or chrome in relation to what programming style they used, just the stack depth.

*
Up to the * above, I looked at the in-browser task manager.
The FWIS reply to post thread took 66Meg.
That's a lot.
I'll close chrome and start from scratch again and see what happens.

Re: "Unpleaseant Truths" in "Computer Science"

PostPosted: Mon Aug 25, 2014 3:30 pm
by FZR1KG
Closing the browser with only gmail and FWIS open, then opening it and replying to this thread takes 15Meg of memory, just for this page.
That's according to their in built task manager.
That to me still seems way more than is needed to do the task of opening a page to reply to a post.