I always had wondered what was going on with that phone number, and I think these comments have pretty much solved the larger mystery, now I’d just like to re-watch that scene again with this new (to me) context.
261 karma · joined March 12, 2013
I always had wondered what was going on with that phone number, and I think these comments have pretty much solved the larger mystery, now I’d just like to re-watch that scene again with this new (to me) context.
Is stack-free function calling equivalent to tail call optimization? If so, then many CL implementations support it, including SBCL. For Scheme, it’s part of the standard.
And then building on the original “update the script to do $thing” where $thing isn’t obvious/trivial. It saves a lot of time.
Well, yeah, I think if I had instead said "if not static typing, then how would it be possible?" ... I had no idea how it could be done, but with something like purity - by which we mean deterministic functions, right? - I can at least start to see how it would be possible with Scheme.
Wouldn't "code refactors via algebraic manipulation" require static types? How would this work in Scheme?
> How do I read this as an s-expression?
It's still a list.
You can re-write it as:
(let ((my-list '(defun <name> (list of arguments) "docstring" (function body))))
(print (first my-list))
(print (second my-list))
(print (third my-list))
(print (fourth my-list)))
It will print: DEFUN
<NAME>
(LIST OF ARGUMENTS)
"docstring"
If "docstring" appears twice when you run the above, that's because it's the value produced by the final form in the block, so it shows up as the return value of the block.> But it seems like there are so many special constructs and macros, that make it hard to read.
> (loop for i in '(1 2 3)
Common Lisp is a "programmable programming language" meaning that it's possible to make macros like the loop macro that aren't even what many consider "Lispy" - lots of people who otherwise like Common Lisp dislike the loop macro. But, it's a good example of a DSL and how far you can go with making one. Of course, there are other ways to do iteration besides loop, both standard built-in forms such as do or dolist, and even 3rd party libraries like series or iterate.
Also, when macros are expanded they resolve to lists - even the loop macro.
OTOH, something like MIT Scheme which was used in SICP is a much simpler Lisp compared to CL.
That's the key; if you delete a function make sure to undefine it so it's not sticking around in the image.
In slime you can use `C-c C-u` which is bound to FMAKUNBOUND.
Wasn't OWA ("Outlook Web Access") the web app that XMLHttpRequest was made for?
I saw that link elsewhere in this thread after my reply, and I also thought that this might have been what was being referred to.
1. http://www.java.sun.com/products/archive/hotjava/index.html
Edit: one plus is that perl is as ubiquitous as awk and sed. It was there the whole time and I didn’t even realize it!
What about guix? It uses guile ...
Sounds like our universe . . .
I think that universe is better at naming things.