lisp

Common Lisp Parallel Programming

梦想与她 提交于 2019-12-29 19:45:07
问题 I want to implement my particle filtering algorithm in parallel in Common Lisp. Particle Filtering and sampling can be parallelized and I want to do this for my 4-core machine. My question is whether programming in parallel is feasible in CL or not and if it is feasible are there any good readings, tutorials about getting started to parallel computing in CL. 回答1: Definitely feasible! The Bordeaux Threads project provides thread primitives for a number of implementations; I would suggest using

Is it feasible to do (serious) web development in Lisp? [closed]

倖福魔咒の 提交于 2019-12-29 10:06:33
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . It obviously is possible to write almost any kind of application in almost any programming language, especially in such a powerful one

Using Vim for Lisp development

时光怂恿深爱的人放手 提交于 2019-12-29 10:06:07
问题 I've been using Lisp on and off for a while but I'm starting to get more serious about doing some "real" work in Lisp. I'm a huge Vim fan and was wondering how I can be most productive using Vim as my editor for Lisp development. Plugins, work flow suggestions, etc. are all welcome. Please don't say "use emacs" as I've already ramped up on Vim and I'm really enjoying it as an editor. 回答1: Limp aims to be a fully featured Common Lisp IDE for Vim. It defaults to SBCL, but can be changed to

Is it feasible to do (serious) web development in Lisp? [closed]

天涯浪子 提交于 2019-12-29 10:06:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . It obviously is possible to write almost any kind of application in almost any programming language, especially in such a powerful one

implementations of lisp functions

不问归期 提交于 2019-12-29 09:36:43
问题 In C, if I want to see a function that how to work, I open the library which provides the function and analyze the code. How can be implementations of the lisp functions seen? For example, intersection function 回答1: You can also look at the source code of lisp functions. For example, the source files for CLISP, one Common Lisp implementation, are available here: http://www.clisp.org/impnotes/src-files.html If you want to examine the implementation of functions related to lists, you can look

Why are fixnums in Emacs only 29 bits?

爷,独闯天下 提交于 2019-12-29 08:37:08
问题 And why don't they change it? Edit: The reason ask is because I'm new to emacs and I would like to use Emacs as a "programmer calculator". So, I can manipulate 32-bit & 64-bit integers and have them behave as they would on the native machine. 回答1: Emacs-Lisp is a dynamically-typed language. This means that you need type tags at runtime. If you wanted to work with numbers, you would therefore normally have to pack them into some kind of tagged container that you can point to (i.e. “box” them),

How do I globally change a variable value within function in lisp

安稳与你 提交于 2019-12-29 07:59:46
问题 I would like to know if there is any way to mimic C behaviour with pointers in LISP. In C if you change a value of a variable, that pointer is pointing to, it has a global effect (i.e. the value will be changed outside the function too). So if I had (defun mutate ( a ) (some-magic-function a 5) ) a would turn to 5 after calling mutate, no matter what it was before. I know it is possible (much of as a side effect) with elements with lists In common-lisp, how do I modify part of a list

How to write a scheme function that takes two lists and returns four lists

旧城冷巷雨未停 提交于 2019-12-29 07:12:07
问题 I have 2 lists of elements '(a b c) '(d b f) and want to find differences, union, and intersection in one result. Is that possible? How? I wrote a member function that checks if there is a car of the first list in the second list, but I can't throw a member to the new list. (define (checkResult lis1 lis2) (cond........... )) (checkresult '( a b c) '(d b f)) My result should be (( a c) (d f) (a b c d f) (b)) . 回答1: Like others have said, all you need to do is create separate functions to

What is the exact definition of a Metacircular Interpreter?

安稳与你 提交于 2019-12-29 03:40:06
问题 Is it legal to call a C compiler written in C or a PHP interpreter written in PHP metacircular? Is this definition valid only for languages of a specific type, like Lisp? In short, what are the conditions that an interpreter should satisfy for being called Metacircular? 回答1: A metacircular interpreter is an interpreter written in a (possibly more basic) implementation of the same language. This is usually done to experiment with adding new features to a language, or creating a different

Clojure Jython interop

﹥>﹥吖頭↗ 提交于 2019-12-29 03:30:07
问题 I was wondering if anyone has tried somehow calling Jython functions from within Clojure, and how you went about doing this if so. I have not used Jython, but I would imagine the Jython interpreter can be invoked in the same way as any other java code, and Python programs can be run within it. However I wonder if it would be possible to somehow call individual python functions from Clojure. Like I said, I have not tried this yet, so it might actually be straightforward and obvious. I'm just