Can functional programming be learned with Scala? [closed] - scala

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Scala is a multi-paradigm language, and functional is one of those paradigms. I'd like to learn functional programming, and Scala has many other characteristics that attract me (it's a rising star, runs on JVM, has access to Java libraries, etc.) My question is: Is the functional part of Scala sufficient to learn the basics of functional programming?

Coursework and a book and another book say yes. If you want far more than the basics, you can add in a library full of mind-bending corners which has a handy tutorial.

Yes. Scala has all the features that make a language functional. Though no standard definition, functions as first-class, being able to pass functions as parameters, immutability, tail recursion and others.
Scala is however object-functional, where one can use objects and/or functions to solve a problem based on the problem space. If you wish for such flexibility, it would be best to take a look.
PS:\ In Scala 2.11 we expect macros in scala.

Related

What is better for Image Processing learning/prototyping Mathematica or Matlab? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am learning Image processing/Pattern recognition. My background is C++ and basics in OpenCV.
I am looking for a tool to learn how to test all the filters and algorithms on my images easier. Are Matlab and Mathematica suitable for this? If so, which one is better?
Thank you!
You can do great image processing in both languages, so there is no general answer to this question.
In your specific case, assuming that you have access to all the relevant toolboxes of both packages, I recommend Matlab, since its syntax is more similar to C++ than Mathematica's functional syntax. Consequently, Matlab may be easier for you to pick up. Note that many filters are already implemented in Matlab, and I assume also in Mathematica.
One of the Matlab blogs has just started a series on image filters. Also, you could try and adjust the MorphTool from the File Exchange to be able to play with the filters you're interested in.

Editor for new programming language in Eclipse [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I really hope someone can help me out with this!
For the GOAL Agent Programming language, there is an existing IDE written in JEdit, which is not that good. Thus, we wanted to migrate the editing (at least) to the Eclipse platform.
The GOAL programming language involves several other filetypes on its own, including Prolog files for instance. To this end, a few grammars written in ANTLR exist, which work quite well.
My question now is, using these pre-existing grammars and built lexers/parsers and such, is it possible to easily create an Eclipse editor for this?
I have looked at some existing stuff, like Xtext (would have to write a new grammar, which probably is not even possible for GOAL or Prolog), IMP (abandoned a few years ago already?), etcetera. None of these seem to suffice.
Does anyone have any ideas/suggestions?
Thanks in advance!
Another option is http://www.eclipse.org/dltk/ not sure if you evaluated it already or not.
It doesn't pretend to generate the whole IDE for you :-) However, it abstracts common functionality, so you can focus mostly on your language features.
It is unfortunate that IMP indeed seems abandoned, as it covers exactly your scenario: your language, compiler, etc. is working already and now you need "just" the IDE.
Nevertheless, IMP is still working, and recently, it has been used to implement the IDE for the Frege programming language.

how to develop a scientific calculator [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have made a simple calculator for iPhone.
Now I'm trying to create a scientific one. I have searched a lot over the internet and here on how to go about it. But could find anything substantial. Most of them are about making a simple calculator.
It will be of great help if you guys could direct me in the right direction like:
1. what approach should i take?
2. is there any helpful tutorial/blog?
3. things i should be learning in obj-c for making scientific calculator?
Thanks in advance!
It depends on what you want to achieve. A "simple" scientific calculator, like Apple's could be done by expanding what you already have. Just add additional functions, like sine, cosine, square root, power. Look at how Apple's calculator works.
If you want to develop something that can interpret longer terms like sin(123)+sqrt(log(12)) you have to take an other approach. You have to transform the term to RPN (aka. postfix notation) first and then solve it step by step.

Common Lisp vs. MacLisp/InterLisp [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is there a good source document/site with comprehensive comparison of the differences between Common Lisp and MacLisp/Interlisp?
I'm particularly interested in the detailed description of the differences in Property List, and if any, Common Lisp implementation of some of the built-in functions/macros in MacLisp/Interlisp that doesn't exist in Common Lisp.
Edit OK, maybe a little bit of context about my question. I was asked to 'translate' a Lisp tutorial which looked like it was based on MacLisp/Interlisp into one based on Common Lisp. I'm pretty new at Lisp and this project is meant to help me learn it. Hence, I was scrambling around to look for resources to help with the 'translation'. So I turn to Stackoverflow.
Kent Pitman's online MacLisp manual has a pretty detailed section on converting MacLisp/Zetalisp to Common Lisp, with some discussion of property lists in Section 3: Easy Changes.
For one thing, Common Lisp has lexical scoping, which MACLisp and InterLisp didn't have.

How do I learn about programming fundamentals? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I am a beginner in programming. I have a large piece of code. I want to break it up into functions, return values, pass those values to another function. I want to be an expert in doing this. Give me suggestions on where to study or how to be an expertise on these simple fundamentals. When will I use pointers in the functions and all this?
As a beginner,
Best way to learn Perl is to read standard book e.g.; Programming Perl by the inventor itself.
This book helps you to understand lot of things like
Subroutines
Data structures
References etc etc.