LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-11-2008, 04:59 PM   #61
mannclay
Member
 
Registered: Nov 2007
Location: Brooklyn, NY
Distribution: eeeMint
Posts: 52

Original Poster
Rep: Reputation: 15

Oh, what I meant was 'if...else', do..while,etc... those things are similar to logical reasoning or problem solving.

Boole, Leibniz, Wittgenstein...

Last edited by mannclay; 11-11-2008 at 05:06 PM.
 
Old 11-11-2008, 11:02 PM   #62
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by ta0kira View Post
Computers do run with procedures and not objects, after all, which is another reason I don't like Java.
I think that is missing the point; in that most of the world consists of objects and not clean and tidy procedures. Thus when modelling problems that can be more easily expressed in terms of objects then an O-O language will work and it is the language that then does the transformation from objects to the computers preference of procedures.

Last edited by graemef; 11-11-2008 at 11:04 PM.
 
Old 11-11-2008, 11:18 PM   #63
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by mannclay View Post
Oh, what I meant was 'if...else', do..while,etc... those things are similar to logical reasoning or problem solving.
I would say that what you are suggesting is perfectly valid. However, there are other equally valid ways of looking at programming.

Personally, I would like to see problem solving removed from the idea of programming. Simplistically speaking programming is just syntax and semantics. Problem solving is with analysis, and I believe that they (programming and analysis) should be separated, the divide will be a fuzzy one but it is good to try and keep them apart.
 
Old 11-11-2008, 11:44 PM   #64
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by Sergei Steshenko View Post
And maybe one doesn't even need variables, but rather functions and states.
functional programming scares me
 
Old 11-12-2008, 07:49 AM   #65
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by AceofSpades19 View Post
functional programming scares me
It used to scare me too - until I realized I was doing it in Perl already.

Actually, I've been also pushed too functional programming by my VLSI background - in VLSI one has state elements and combinational logic - the latter is kind of functions in functional programming.

The clear separation into stateless functions and state is _the_ thing allowing to formally verify/prove correctness.

And, as I read about OCaml, performance shines where the compiler is able after all these formal transformations due to clear separation and state to well optimize the code - sometimes better than a C++ compiler.
 
Old 11-12-2008, 08:35 AM   #66
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by Sergei Steshenko View Post
And, as I read about OCaml, performance shines where the compiler is able after all these formal transformations due to clear separation and state to well optimize the code - sometimes better than a C++ compiler.
I've heard OCaml is high performance as well, and it has an interpreter so you can test code before compiling. Very cool. Unfortunately, I find the OOP syntax quite heavy. Something like printf.printf.printf.printf().
 
Old 11-12-2008, 09:04 AM   #67
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by H_TeXMeX_H View Post
I've heard OCaml is high performance as well, and it has an interpreter so you can test code before compiling. Very cool. Unfortunately, I find the OOP syntax quite heavy. Something like printf.printf.printf.printf().
OCaml does nto force you to use OOP - actually, any OCaml tutorial starts without any OOP whatsoever.

Regarding the

Code:
foo.bar.doo.dah
syntax - create a wrapper class in which

Code:
foo.bar.doo.dah
becomes

Code:
something
and you'll have just the

Code:
wrapper_class_instance.something
.
 
Old 11-12-2008, 09:50 AM   #68
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yeah, I guess I'll have to do that, thanks. Knowing this makes me want to try to learn OCaml once more (I quit trying when I saw the printf example).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Chrome grabs 1% of browser market in under 24 hours LXer Syndicated Linux News 0 09-03-2008 11:41 PM
LXer: Ingres grabs Thinking Instruments LXer Syndicated Linux News 0 07-26-2006 06:54 AM
Screen Grabs and The Gimp Jongi SUSE / openSUSE 2 12-20-2005 10:32 AM
Realplayer grabs *.rpm on download jackdoll Linux - Software 4 06-22-2005 06:04 PM
reading gdesklets/rss-grabs in new tab in firefox sterrenkijker Linux - Software 0 09-22-2004 01:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration