Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lispm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
77 ms
·
901.
▲
by
lispm
4y ago
They did not run Lisp as machine code. They either ran a machine code, which Lisp was compiled to, and/or they ran a Lisp interpreter, which ran Lisp source code. The machine often was kind of a stack machine, with microcode implementi
902.
▲
by
lispm
4y ago
> the expressions I pass into Bob's functions only get executed once Sure not in functional programming languages, where one can pass functions or data structures which store functions. The code passed gets executed an arbitrary num
903.
▲
by
lispm
4y ago
> Macros: Dangers and Alternatives here is a simple LispWorks program using macros to provide manual memory management: CL-USER 17 > (defresource rarray (size) :constructor (make-array size) :init
904.
▲
by
lispm
4y ago
There is a lot of irrational fear of macros. > As a developer I don't have the resources to design and test my code to the extent that the language creators do. Sure you could wait many years for the 'language designer' to
905.
▲
by
lispm
4y ago
> At the very least, you can just write the code the macro would expand into Whenever you write code, you could just write the function it calls. One purpose of macros is to create descriptive notations. That's one way to create ver
906.
▲
by
lispm
4y ago
GNU Emacs has complex code to deal with it. Some "ls" programs support a "-dired" option, some not. If this option is not supported, then Dired may fail to parse some unusual filenames. Then there is an 'ls' em
907.
▲
by
lispm
4y ago
What about GraalVM, which sports native AOT compilation?
908.
▲
by
lispm
4y ago
> given all the lispers so fiercely dismissive of OOP note though, that Lisp was 1994 the first officially standardized object-oriented language.
909.
▲
by
lispm
4y ago
its a host platform, but a great one? Given that the platform lacks a lot of native features long used by Lisp systems. For example one can work interactively, dump a memory image, copy and restart it later, just continuing the the work. Th
910.
▲
by
lispm
4y ago
If China tries to invade Taiwan, that situation will change.
911.
▲
by
lispm
4y ago
She is right, Russia is in a war with the EU.
912.
▲
by
lispm
4y ago
> None of this alters the fact that they are shutting down their safe and well maintained nukes, and as a consequence will burn a lot more coal and buy a lot more gas. That's not a fact, it's simply false. Renewable energy will
913.
▲
by
lispm
4y ago
a bit context: * Germany has a share of renewable energy for electricity in 2022 of 46% * The US has a share of renewable energy for electricity in 2022 of around 22%, even tough the potential is much larger in the US than in Germany * Germ
914.
▲
by
lispm
4y ago
Scheme got rationals from Common Lisp. See R2RS.
915.
▲
by
lispm
4y ago
It also on Linux/UNIX does not create a directory listing itself, but calls an external program, provided by the operating system: ls. Where on a Lisp Machine it calls the Lisp function FS:DIRECTORY-LIST, which underneath is implemente
916.
▲
by
lispm
4y ago
FORTRAN I and II then had only an Arithmetic IF statement with three labels to jump to, based on an arithmetic value ( https://en.wikipedia.org/wiki/Arithmetic_IF ). FORTRAN example: IF ( N ) 10, 20, 30 Above
917.
▲
by
lispm
4y ago
This interactive introspection is usually facilitated by dynamic types and actual types in the software. For example large parts of the Lisp software in the 80s were already written in an object-oriented way, where the code was structured
918.
▲
by
lispm
4y ago
> Like a Lisp Machine, Emacs is totally user programmable at every level It's just that the levels of GNU Emacs don't get as low-level as the Lisp operating system of Lisp Machine (which is an actual computer with its operating
919.
▲
by
lispm
4y ago
Maybe because the language is not untyped? It has both dynamic typing and optional static typing.
920.
▲
by
lispm
4y ago
No, the differences is that in Common Lisp / SBCL type declarations are optional (note though: there is also type inference in SBCL), type declaration are more verbose, type declarations are sometimes a separate expression and a vari
921.
▲
by
lispm
4y ago
> (variables don't have types unlike C# and friends, they're just named registers where you can shove anything) This depends on the implementation one uses: SBCL does type checking: * (defvar *a-number* 0) *A-NUMBER* *
922.
▲
by
lispm
4y ago
I would think that there are many dialects, but they share a common core. Common Lisp is just one. Others would be Emacs Lisp, Visual Lisp, Interlisp, Standard Lisp, ISLisp (which is an ISO standardized Lisp). Something like Janet is furthe
923.
▲
by
lispm
4y ago
The functional Lisp (Lisp without assignment) was called "Pure Lisp" back then. Sometimes also there was the term "applicative language".
924.
▲
by
lispm
4y ago
Note though, that ELIZA was not written in LISP.
925.
▲
by
lispm
4y ago
There was an Ada implementation on the Lisp Machine, that might have been using GC.
926.
▲
by
lispm
4y ago
That's not what happened. Germany's gas storage were half-empty in 2021 and prices in Europe were high. Russia had brought a large share of those gas storage facilities under its control. Gas deliveries were lower than usual. In t
927.
▲
by
lispm
4y ago
CLASP may be newer, but it is hardly more 'modern'. There is only limited adoption of CLASP in the Lisp community, because its advantage (excellent integration into C++) is only interesting for a small group of users. At the same
928.
▲
by
lispm
4y ago
why would one implement Common Lisp in Rust? Most implementations are largely written in Common Lisp itself, plus some runtime (memory management, threads, OS interface, ...) underneath. The runtime can be specially written in C (maybe Rust
929.
▲
by
lispm
4y ago
> window based tools don't seem to have much advantage compared to e.g. SLIME, isn't it? One advantage for a lot of people is that other IDEs don't use GNU Emacs. That's an often requested feature. Another advantage i
930.
▲
by
lispm
4y ago
> Are you in all seriousness implying it wasn't built to withstand earthquakes? The question is to what kind of earthquake they were built to withstand and with what knowledge of earthquake risks? Also taking into account the level
More ›