one-more-re-nightmare
conjure
Our great sponsors
one-more-re-nightmare | conjure | |
---|---|---|
11 | 71 | |
133 | 1,617 | |
0.8% | - | |
4.2 | 8.3 | |
9 months ago | 7 days ago | |
Common Lisp | Fennel | |
BSD 2-clause "Simplified" License | The Unlicense |
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.
one-more-re-nightmare
-
Regular Expressions make me feel like a powerful wizard- that's not a good thing
Depends on your regex engine, and your non-regex solution. My engine (shameless self-plug https://github.com/telekons/one-more-re-nightmare) rivals hand-written automata, having to load each character more-or-less* only once, and throws in vectorisation for simple search loops too. I would not want to write or maintain the generated code.
-
Don't be lazy this month!
one-more-re-nightmare used to let you write Σ, but I then tried to search Greek stuff with it and it went wrong. So now there's...$ for all characters (since that's not used for end-of-line assertions).
-
When a young programmer who has been using C for several years is convinced that C is the best possible programming language and that people who don't prefer it just haven't use it enough, what is the best argument for Lisp vs C, given that they're already convinced in favor of C?
One trick is that Common Lisp can generate and compile code at runtime, whereas static languages typically do not have a compiler available at runtime. This lets you make your own lazy person's JIT/staged compiler, which is useful if some part of the problem is not known at compile-time. Such an approach has been used at least for array munging, type munging and regular expression munging.
-
Tutorial Series to learn Common Lisp quickly
> One of my favorite examples is the regex library cl-ppcre. Thanks to the nature of Lisp, the recognizer for each regex you create can be compiled to native code on compiler implementations of CL.
That is not true - cl-ppcre generates a chain of closures. Experimental performance is in the same ballpark as typical "bytecode" interpreting regex implementations.
(Disclosure: I wrote another regex library at <https://github.com/telekons/one-more-re-nightmare>, which does do native code compilation.)
-
The self-hosted Zig compiler can now successfully compile itself
Someone else didn't tell me that before, so it can't be true. But I don't publish papers on toys, nor do I think toy projects are awfully fast. Though the x86-64 backend I wrote was in someone else's repository and thus was several PRs :(
-
Most interesting languages to learn (from)?
Regular expressions
-
Is regex really fast in CL?
Also try this https://github.com/telekons/one-more-re-nightmare
-
Why You Should Learn Lisp In 2022?
A Common Lisp system has the compiler around at runtime, so if you can figure out how to profitably stage/specialise a computation, then you can roll your own cheap JIT of sorts. This can be useful for array munging and regular expressions at the least. You can do this in C, of course but you would need to use another compiler as a library (e.g. LLVM, TCC, libgccjit) or write your own (e.g. PCRE2's sljit).
-
LISP with GC in 436 bytes
Agree to disagree - I don't have the energy to remember operator precedence. One file from the regular expression compiler has most of the rewrite rules I read from the papers, except in S-expression syntax. There were a few bugs due to misreading precedence. Also c.f. Gerald Sussman talking about physics notation being a pain in the butt.
-
The one-more-re-nightmare regular expression compiler
It's all part of the library. Everything about regular expression types is in this file.
conjure
- Racket Language
-
Lisp Programming with Vim (2019)
I was going to say, in 2023 I looked around and for Clojure at least Conjure seemed like the best option.
https://github.com/Olical/conjure/wiki/Client-features
Unfortunately, in the table linked above the CL support in Conjure is so-so. I'm curious what people use for CL or if it's still slimv/vlime.
I did a write up configuring Conjure with neovim here if that's something that's appealing:
- Conjure: Evaluating code within your running program
- Interactive Lisp family languages evaluation for Neovim
-
Existing non-lua plugins examples
The excellent olical/conjure plugin is now lua (via fennel..) but it was originally written in clojure and you can still see the code on the legacy-jvm branch https://github.com/Olical/conjure/tree/legacy-jvm
-
Configuring Neovim with Fennel
Install conjure plugin
-
Spinneret: A modern Common Lisp HTML generator
> You mean that you accidentally "overwrite" (declare again) a function with the same name as the one you're now declaring, but you didn't mean to?
I mean I use let to bind a variable with the same name as a function. This is idiomatic in Common Lisp, and totally breaks things in most other languages.
> This I'm also curious about, what exactly SLIME gives you that for example Conjure for neovim wouldn't already? Maybe something about continuations perhaps? That seems to be the only feature I've seen from Common Lisp (besides actually being able to compile to binaries) that I'd love to have in Clojure.
I watched a video and it does seem rather complete, but [1] indicates there is no debugger? That's a rather glaring omission. I also don't see a profiler mentioned, and SLIME with SBCL gives me a profiler (down to the assembly level if needed). I'm sure Java in general has great profiling tools, but how are the integrated into the Clojure system?
As an aside, by "continuations" did you mean "restarts"? First-class continuations are a feature of scheme, not CL. Indeed a huge boost to CL productivity is simply allowing you to handle an exception before the stack is unwound.
1: https://github.com/Olical/conjure/wiki/Client-features
-
clojure's like plugin for golang?
Does anyone know if there is a plugin like this one https://github.com/Olical/conjure for golang? Thank you in advance!
-
Looking for documentation on writing a swank client
i know you said you didn't want source of other clients but this one is pretty simple so sharing just in case. it's from a nvim plugin https://github.com/Olical/conjure/blob/master/fnl/conjure/client/common-lisp/swank.fnl
- `yarepl.nvim`, yet Another REPL for Neovim, flexible, supporting multiple paradigms to interact with REPLs, native dot repeat (without `vim-repeat`), telescope integration, and more!
What are some alternatives?
Revise.jl - Automatically update function definitions in a running Julia session
cider-nrepl - A collection of nREPL middleware to enhance Clojure editors with common functionality like definition lookup, code completion, etc.
SICL - A fresh implementation of Common Lisp
vim-scriptease - scriptease.vim: A Vim plugin for Vim plugins
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
vimspector - vimspector - A multi-language debugging system for Vim
cl-ppcre - Common Lisp regular expression library
rebel-readline - Terminal readline library for Clojure dialects
oakc - A portable programming language with a compact intermediate representation
aniseed - Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
Petalisp - Elegant High Performance Computing
kaboom.js - 💥 JavaScript game library