femtolisp
cl-lsp
Our great sponsors
femtolisp | cl-lsp | |
---|---|---|
10 | 13 | |
1,550 | 200 | |
- | - | |
0.0 | 0.0 | |
about 4 years ago | about 1 year ago | |
Scheme | TypeScript | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
femtolisp
- Petalisp: Elegant High Performance Computing
- fe: A tiny, embeddable language implemented in ANSI C
-
From Common Lisp to Julia
> In short, Julia is very similar to Common Lisp, but brings a lot of extra niceties to the table
This probably because Jeff Bezanson, the creator of Julia, created a Lisp prior to Julia, which I think still exists inside Julia in some fashion
https://github.com/JeffBezanson/femtolisp
-
Modern Python Performance Considerations
Well let's flip this around: do you think you could write a performant minimal Python in a weekend? Scheme is a very simple and elegant idea. Its power derives from the fact that smart people went to considerable pains to distill computation to limited set of things. "Complete" (i.e. rXrs) schemes build quite a lot of themselves... in scheme, from a pretty tiny core. I suspect Jeff Bezanson spent more than a weekend writing femtolisp, but that isn't really important. He's one guy who wrote a pretty darned performant lisp that does useful computation as a passion project. Check out his readme; it's fascinating: https://github.com/JeffBezanson/femtolisp
You simply can't say these things about Python (and I generally like Python!). It's truer for PyPy, but PyPy is pretty big and complex itself. Take a look at the source for the scheme or scheme-derived language of your choice sometime. I can't claim to be an expert in any of what's going on in there, but I think you'll be surprised how far down those parens go.
The claim I was responding to asserted that lisps and smalltalks can only be fast because of complex JIT compiling. That is trueish in practice for Smalltalk and certainly modern Javascript... but it simply isn't true for every lisp. Certainly JIT-ed lisps can be extremely fast, but it's not the only path to a performant lisp. In these benchmarks you'll see a diversity of approaches even among the top performers: https://ecraven.github.io/r7rs-benchmarks/
Given how many performant implementations of Scheme there are, I just don't think you can claim it's because of complex implementations by well-resourced groups. To me, I think the logical conclusion is that Scheme (and other lisps for the most part) are intrinsically pretty optimizable compared to Python. If we look at Common Lisp, there are also multiple performant implementations, some approximately competitive with Java which has had enormous resources poured into making it performant.
-
CppCast: Julia
While it uses an Algol inspired syntax, it has the same approach to OOP programing as CLOS(Common Lisp Object System), with multi-methods and protocols, it has a quite powerfull macro system like Lisp, similar REPL experience, and underneath it is powerered by femtolisp.
- Julia and the Incarceration of Lisp
-
What is the smallest x86 lisp?
For a real answer, other replies have already mentioned KiloLisp, but there's also femtolisp. Also, not exactly what you're asking for, but Maru is a very compact and elegant self-hosting lisp (compiles to x86).
-
lisp but small and low level?Does it make sense?
Take a look at femtolisp It has some low level features and is quite small. There is also a maintenance fork at lambdaconservatory
-
Lispsyntax.jl: A Clojure-like Lisp syntax for julia
A fun Julia easter egg I recently discovered.
Running 'julia --lisp' launches a femtolisp (https://github.com/JeffBezanson/femtolisp) interpreter.
-
Wisp: A light Lisp written in C++
Reminds me of the femtolisp README :)
Almost everybody has their own lisp implementation. Some programmers' dogs and cats probably have their own lisp implementations as well. This is great, but too often I see people omit some of the obscure but critical features that make lisp uniquely wonderful. These include read macros like #. and backreferences, gensyms, and properly escaped symbol names. If you're going to waste everybody's time with yet another lisp, at least do it right damnit.
https://github.com/JeffBezanson/femtolisp
cl-lsp
-
Show HN: Common Lisp Vim Compiler Plug-In
How this compares to using cl-lsp[1] with Neovim?
[1]: https://github.com/cxxxr/cl-lsp
-
Lisp language server
Does this count? https://github.com/cxxxr/cl-lsp
- Common Lisp language server?
- Emacs-like editors written in Common Lisp
- From Common Lisp to Julia
-
A Road to Common Lisp (2018)
It's a great article. Since then, we have more tools and resources so we can enhance it:
Pick and Editor
The article is right that you can start with anything. Just `load` your .lisp file in the REPL. But even in Vim, Sublime Text, and Atom [and also VSCode] you can get pretty good to very good support. See https://lispcookbook.github.io/cl-cookbook/editor-support.ht... (also Lem, a CL editor that works for other languages, Jupyter notebooks, Eclipse (basic support) and LispWorks (proprietary, advanced graphical tools).
> if anyone is interested in making a Common Lisp LSP language server, I think it would be a hugely useful contribution to the community.
Here's a new project used for VSCode: https://github.com/nobody-famous/alive-lsp There's also https://github.com/cxxxr/cl-lsp
Other resources
I already linked to it, but the Cookbook (to which I contribute) is a useful reference to see code and get things done, quickly. https://lispcookbook.github.io/cl-cookbook/
While I'm at it, my first shameless plug: after my tutorials written for the Cookbook and my blog, I wanted to do more. Explain, structure, demo real-world Common Lisp. I'm creating this course (there are some free videos): https://www.udemy.com/course/common-lisp-programming/?coupon... (ongoing -50% coupon for June).
Web Development
See the Cookbook, and the awesome list (see below). We have many libraries, you still have to code for things taken for granted in other big frameworks. I have some articles on my blog.
We have new very cool kids in town, especially CLOG, that is like a GUI for the browser. Check it out: https://github.com/rabbibotton/clog
Game Development
See again the awesome-cl list. And the Kandria game, in the making, all done in CL: https://kandria.com/ (it just got accepted for a Swiss grant, congratulations).
Unit Testing
We have even more test frameworks since 2018! And some are actually good O_o
Projects
To create a full-featured CL project in one command, look no further, here's my (shameless plug again) project skeleton: https://github.com/vindarel/cl-cookieproject you'll find the equivalent for a web project, lighter alternatives in the README, and a demo video: https://www.youtube.com/watch?v=XFc513MJjos&feature=youtu.be
Libraries
He doesn't mention this list, what a shame: https://github.com/CodyReichert/awesome-cl => the CL ecosystem is probably bigger than you thought. Sincerely, only recently, great packages appeared: CLOG, cl-gserver (actors concurrency), 40ants-doc, official CL support on OVH through Platform.sh, great editor add-ons (Slite test runner, Slime-star modules…), Coalton 1.0 (Haskell-like ML on top of CL), April v1.0 (APL in CL), a Qt 5 "library" (still hard to install), many more… (Clingon CLI args parser, Lish, a Lisp Shell in the making, the Consfigurator deployment service, generic-cl)…
His list is OK, I'd pick another HTTP client and another JSON library (new ones since 2018 too), but that's a detail.
BTW, see also a list of companies: https://github.com/azzamsa/awesome-lisp-companies/
Community
We are also on Discord: https://discord.gg/hhk46CE and on Libera Chat.
Implementations
CLASP (CL for C++ on LLVM) reached its v1.0, congrats. https://github.com/clasp-developers/clasp/releases/tag/1.0.0
-
is CLISP still recommended to use ?
If you’re already a vs-code user, then I get that. And the facilities do exist to do Common Lisp in vs-code: https://github.com/cxxxr/cl-lsp
-
Common lisp LSP. Why there is no such a thing?
Third hit on DuckDuckGo https://github.com/cxxxr/cl-lsp
-
Why there is no new "modern" (Common) Lisp IDE?
You mean like cl-lsp, or the Alive Visual Studio Code extension? These are admittedly works in progress, but I'm sure you'd be very welcome to contribute since you care so much about it!
-
Common Lisp Study Group : Introduction to ASDF
By the way, there is already https://github.com/cxxxr/cl-lsp that provides some LSP support for Common Lisp. I believe there is no need to support LSP from asdf side ... you just need to write a bridge for it. I know the author personally and since he surely does not use VS code himself, I don't know that was his motivation in making this one.
What are some alternatives?
small-lisp - A very small lisp interpreter, that I may one day get working on my 8-bit AVR microcontroller.
clede
julia - The Julia Programming Language
ctags - A maintained ctags implementation
Carp - A statically typed lisp, without a GC, for real-time applications.
alive-lsp - Language Server Protocol implementation for use with the Alive extension
Fennel - Lua Lisp Language
lem-opengl - OpenGL frontend for the Lem text editor
sectorlisp - Bootstrapping LISP in a Boot Sector
DifferentialEquations.jl - Multi-language suite for high-performance solvers of differential equations and scientific machine learning (SciML) components. Ordinary differential equations (ODEs), stochastic differential equations (SDEs), delay differential equations (DDEs), differential-algebraic equations (DAEs), and more in Julia.
hissp - It's Python with a Lissp.
roswell - intended to be a launcher for a major lisp environment that just works.