Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lispm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
271.
▲
by
lispm
2y ago
> Scheme isn’t special because it has closures, it is special because you can write functions that write functions. When Scheme was developed, it was special, because it used lexical binding and provided lexical closures. That was new. W
272.
▲
by
lispm
2y ago
Btw., with the MacIvory Nubus-based Lisp Machine for the Mac, one could call Lisp on the Lisp Machine from HyperCard.
273.
▲
by
lispm
2y ago
> Don't think I've made this claim. That's true, but it sounds a bit as if Lisp interpreters are something very unusual. The syntax and other details may differ, but the general idea of executing source code via an interpr
274.
▲
by
lispm
2y ago
> Nearby countries don't want to connect to Germany because of unstable electricity bills that can affect citizens (Sweeden). What are "unstable electricity bills" ? Changing market prices are the reality in many markets.
275.
▲
by
lispm
2y ago
why is the French debt rising fast? https://www.euronews.com/business/2023/10/03/3-trillion-is-f... While the Government rises subsidies to keep electricity bills down? https://www.lemonde.fr&
276.
▲
by
lispm
2y ago
sorry, that's 12 years old and long outdated. newer analysis has been much different. In the meantime, most of the french nuclear industry has been taken over by the government to prevent its financial collapse. For example this articl
277.
▲
by
lispm
2y ago
LispWorks: CL-USER 130 > (defun myfun (d) (print "heyo") (print d)) MYFUN CL-USER 131 > (let ((source (function-lambda-expression #'myfun))) (mapcar (eval (list* 'lambda
278.
▲
by
lispm
2y ago
Guess why Germany has high electricity costs? The energy consumer pays quite a bit more for the transition to renewable energy, not the tax payer.
279.
▲
by
lispm
2y ago
https://www.ft.com/content/175d212b-0a93-48f5-b68c-2a58bd098... That's why EDF wants money from the british tax payer for the construction of nuclear power plant? EDF also wants higher electricity prices, the Fren
280.
▲
by
lispm
2y ago
"viable" probably means some else then just "technically possible". I would also see as requirements: It must be cost effective, it must be scalable in several dimensions: fast to plan and approve, fast to build, able to
281.
▲
by
lispm
2y ago
> and has competitive electrity prices By passing the true costs to the tax payer and the next generations.
282.
▲
by
lispm
2y ago
A Common Lisp implementation may implement EVAL by calling the compiler. That would be more expensive. Several Common Lisp implementation use EVAL to create an interpreted function and then the user can call COMPILE to compile these.
283.
▲
by
lispm
2y ago
CL-USER 100 > (defun unroll (n exp) `(lambda () ,(loop repeat n collect exp))) UNROLL CL-USER 101 > (unroll 3 '(foo)) (LAMBDA NIL ((FOO) (FOO) (FOO))) CL-USER 102 > (eval *) #<anonymous interpre
284.
▲
by
lispm
2y ago
LispWorks, I change the interpreted code: CL-USER 63 > (defun foo (a) (print 'hey) (print a)) FOO CL-USER 64 > (foo 'jack) HEY JACK JACK CL-USER 65 > (function-lambda-expression 'fo
285.
▲
by
lispm
2y ago
> I doubt that actually You can doubt that. But I have done it. I know that it works. CL-USER 63 > (defun foo (a) (print 'hey) (print a)) FOO CL-USER 64 > (foo 'jack) HEY JACK JACK CL-US
286.
▲
by
lispm
2y ago
> It is the last "true lisp" that I am aware of -- it has an ultra-minimalist interpreter (hand-written in assembly, by the way) that actually represents programs as linked lists. Strange, I thought many Lisp systems still have
287.
▲
by
lispm
2y ago
See the following excerpt of a longer paper. Generally the lambda calculus is a specific mathematical formalism, LISP is quite a bit more and an actual programming language (it has more than just functions) and implementations don't fo
288.
▲
by
lispm
2y ago
Lisp is not an implementation of "lambda calculus". > internal compiler is pretty capable Depends, when reading the documentation, one gets the impression that their compiler is very limited.
289.
▲
by
lispm
2y ago
Minor complication: For its user interface Symbolics Genera needs the "cursor warp" feature, since it moves the mouse cursor under UIMS control. Noteworthy: CLX is written in Lisp and does not use Xlib (which is a C library).
290.
▲
by
lispm
2y ago
It was more influenced by computer algebra systems written in Lisp, like Macsyma (-> Maxima), REDUCE, and others. > astonishingly similar semantics The "Wolfram language" has at its core a rewrite rule systems. Expressions a
291.
▲
by
lispm
2y ago
Technically what Mathematica calls "lists" are one-dimensional arrays (aka vectors in Lisp), but not Lisp-like singly-linked lists. This is an example of an M-Expression in the original definition of Lisp: [eq[third[(A B C (
292.
▲
by
lispm
2y ago
> Many thanks for taking the time to show those features off, it's very kind of you and I genuinely appreciate it. :-) > was also quite impressed with SBCL for catching function calls passing unknown keys at compile time, before
293.
▲
by
lispm
2y ago
> "tailoring the hardware for specific languages" "hardware" in quotes. A bunch of the machines had no/little language specific hardware. For example an Xerox Interlisp-D machine was the same hardware like the Sm
294.
▲
by
lispm
2y ago
Assuming Common Lisp. Many features found their way into other languages (or were provided there early, too -> for example named arguments in Smalltalk). Thus some may not look novel, but a practically used since several decades and are
295.
▲
by
lispm
2y ago
Register Allocation in the SPUR Lisp Compiler: https://dl.acm.org/doi/pdf/10.1145/13310.13337 Design Decisions in SPUR: https://pages.cs.wisc.edu/~markhill/papers/computer86_spur.p..
296.
▲
by
lispm
2y ago
https://www.softwarepreservation.org/projects/LISP/parallel#...
297.
▲
by
lispm
2y ago
> Lisp can't at the same time be uniquely powerful, but also no different to any other language There are lots of programming languages which are "uniquely powerful": C++, Prolog, Haskell, ... > Lisp is a uniquely flexi
298.
▲
by
lispm
2y ago
Though, PAIP covers a lot of SICP content, but differently. It also includes implementations of programming languages. PAIP is only partly an introductory text to Common Lisp, it's more about actual software design and development with
299.
▲
by
lispm
2y ago
Unfortunately that's not a correct summary. I care about renewable energy (for example for many years my electricity contract is from a local provider of 100% renewable energy). Nuclear energy will save much less lives, than a rapid ex
300.
▲
by
lispm
2y ago
> Do you have any data regarding uranium? https://www.lemonde.fr/en/les-decodeurs/article/2023/08/04/h... > https://www.dw.com/en/are-nigers-uranium-supplies-to-franc
More ›