LISP and Scheme in microcontoller programming [closed] - lisp

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Do LISP and/or Scheme useful in microcontroller programming? Are LISP and Scheme good in this area in comparing with C?

Lisp and Scheme are high level languages, with garbage collection and lots of abstraction from the hardware. They do get used occasionally for microcontroller programming though. Mostly Scheme since Scheme is easier to embed. This is a good example of low level Scheme
The other examples of Scheme/Lisp in low level stuff mostly is something along the lines of
Lisp --> C --> Profit
So if that sounds good to you, check out ECL or this for the arduino.
Check out Forth though, it has a lot of the same ideas as Lisps and is used in microcontroller programming. GForth is a pretty nice implementation.

Related

Which tools can I use to benchmark a scala code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm doing a project where I need to analyze the differences between functional programming and imperative programming. I'm using Scala since it's a multi-paradigm language, for a fair comparison.
Using languages that have a front-end on gcc, pin and perf(hardware) are suitable tools to do these comparisons, but now on Scala, I'm not finding substitutes.
I'm not interested on microbenchmark that only observe the time it took to run the algorithm. Since it's a conway's game of life implementation, a number of memory access is required and so on. I'm grateful for any help
I would recommend ScalaMeter. It is a microbenchmarking tool, but it does what you want by running the code multiple times, and removing the effects of JIT compiler warm-up, garbage collection, etc. It can also be configured to report memory usage, etc.

What are the benefits of learning Lisp (or a dialect) if you have a good grasp of functional programming [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Basically, what I'm asking is, when people say that learning Lisp will enlighten you, are they just talking about learning functional programming in general or is there some deeper benefit?
Personally, and I'm sure most people feel like this, I'm quite scared by the syntax. I feel like it gets in the way and I don't see the benefit in having all expressions look the same. Never had a problem interpreting expressions in a language...
However, Haskell was a beast as well, but after learning it I can confirm that I approach problems differently and that it was a worthwhile experience.
So, the question is. Is it worth it? What does Lisp offer that NO other languages offer? I know people are eager to promote the language they use, but if there are other languages that took the good parts of Lisp and incorporated them in a more manageable form, then I don't see a reason to learn Lisp specifically.
Lisp is the programmable programming language
Lisp offers something no other language does - "code is data".
This means that the code you write is a list which can be processed by Lisp.
This leads to a powerful macro facility, which means that you have the full power of Lisp itself at macroexpansion time.
Far more from merely adding new syntactic constructs like with-something, one can define a whole DSL in a few forms.
More information:
Examples of what Lisp's macros can be used for
Lisp Macro
Macros: Defining Your Own
http://weitz.de/macros.lisp

Getting started with Prolog [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
i'm rephrasing my question as it is deemed too opinion based. I will try to be more specific this time.
I wish to learn programming languages to expand my way of thinking and expressing problems:
Here are some background. My purposes for learning specific languages.
Scala as an OO-Functional hybrid for reactive programming
Clojure as a Lisp dialect for experiencing the power of macros
Note that Scala being statically typed and Clojure being dynamic is a bonus for me as i get to learn their pros and cons at the same time
What are the things to pay attention to in the process of learning Prolog that would help me think better?
So far, my research suggests that one of the most powerful feature of Prolog is its ease of implementing "Backtracking".
previous Version:
I figured I should learn prolog to add to my arsenal of programming.
But what is the essence of prolog? As in, what are the main features
and what should I expect to take away from the experience?
It would be nice to compare to Scala and Clojure as they're my
language of choice at the moment. I'm learning Scala mainly for actor
model/reactive programming, and the OO and functional approaches seem
really powerful to me. I took up Clojure because I wanted to pick up a
Lisp dialect to experience the power of macros, and so far, Clojure
had the most momentum. So what extras would Prolog give me?
Can I get those benefits/experience/features in Erlang since it's
syntax is derived from Prolog?
Thanks for looking at my question. Hope to hear all those wonderful
answers.

Introduction to Category Theory without Haskel, Scala or F# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I wan't to get introduced to the fundamental concepts of Category Theory, from a developer's perspective (not a math student), but every single resource I see uses Haskel, Scala, F# or other highly-focused languages that I don't use.
Are there any resources for the rest of us?
MIT has an some course material online for Category Theory for Scientists. There is also a textbook you can download as well.
Pierce's Basic Category Theory for Computer Scientists fits your description. It is in no way tied to any particular programming language.
When learning category theory It's good to have examples to work from. If you don't have examples from mathematics, and you don't have examples from specific programming languages, it might be hard to motivate the subject.

What can be done with Common Lisp? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I started learning CLISP. Should I improve my self. What can be done with this programming language? What's it for. I'd appreciate your answers and comments. Thanks.
Common Lisp, of which CLisp is an implementation, is a general purpose language. You can do with it whatever you want. For a nice, practical introduction, take a look at Practical Common Lisp by Peter Seibel.
Judging by your comment you're looking for ideas to implement using Common Lisp.
It seems lots of people nowadays are using Project Euler to try out a language: it's a source of fun, small problems that lets you learn some maths too.
Failing that, find an itch that you have - a program that you need - and write that in Common Lisp.