rainbow-delimiters
sixten
rainbow-delimiters | sixten | |
---|---|---|
6 | 5 | |
658 | 748 | |
- | - | |
2.3 | 1.8 | |
8 months ago | over 3 years ago | |
Emacs Lisp | Haskell | |
GNU General Public License v3.0 only | BSD 3-clause "New" or "Revised" 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.
rainbow-delimiters
-
Y'all deserve a medal or something
I'm a big fan of rainbow-delimiters, available on Melpa.
-
Template Engine Minor Modes?
rainbow-delimiters ( https://github.com/Fanael/rainbow-delimiters/ ) does this for parenthesis/braces etc but is somewhat bound to the syntax tree of whatever major mode is currently in use, it also scans on a per-character basis, where I'd need to scan for regex.
-
Tree Sitter and the Complications of Parsing Languages
> Lighting up the active scopes
As you had guessed a little later, there are a few different emacs packages that do this. One of them is "rainbow parentheses" that gives every bracket a different colour (remember that emacs supports lisp, so differentiating between lots of different parentheses is arguably more useful in emacs than any other editor). [0].
Another one is highlight parentheses [1] which highlights all parens that enclose the cursor position, and gives a darker colour to those "further away" from the cursor.
[0] https://github.com/Fanael/rainbow-delimiters
[1] https://sr.ht/~tsdh/highlight-parentheses.el/
-
How We Made Bracket Pair Colorization 10,000x Faster
This article is especially interesting to me, as it shows how VS Code still doesn't have the "Emacs nature". Even though I'm a 30-year Emacs user, I do hesitate to recommend it to younger programmers because it's so alien, and VS Code has one of the essential characteristics of Emacs: the extension language and the implementation language are the same. But this article is a great example of how it doesn't — extensions are limited to using an extension API, rather than having full access to the application's internals. Maybe a good thing, if you're a mass-market product worried about malicious extensions. But I'll note that [rainbow-delimiters-mode](https://github.com/Fanael/rainbow-delimiters/) dates back to 2010, and has never noticeably slowed down loading or display of source files, even in languages with lots of delimiters like Lisp.
-
Practical questions from a lisp beginner
Using highlight-parentheses-mode, which is an additional package, helps. There are also show-paren-mode (build in) and rainbow-delimiters (additional package), whose could help there.
- Humanoid themes updated with many new faces, fixes and color adjustments; constructive feedback welcome!
sixten
-
What do Haskellers think about Rust?
Immutable data structures don't necessarily require more memory: they can avoid deep copies. They are also automatically thread safe without expensive (slow) locking mechanisms. They also don't necessarily reduce cache locality. The reduced cache locality in the case of Haskell (I think) mainly comes from the representation of objects in its implementation (improved STG) which uses extensive boxing and jumps that hinder both spatial and temporal locality (require review/comment from GHC/Computer Architecture experts, take it with a grain of salt). Objects can be much more efficiently represented if not for the need to implement lazy (call-by-need) semantics. See sixten and futhark for examples.
-
Not well known programming languages with interesting features?
[Sixten](https://github.com/ollef/sixten): functional programming with unboxed data by default.
-
Tree Sitter and the Complications of Parsing Languages
I can't answer this well and don't know of any resources, but I have seen it before in the parser for sixten:
https://github.com/ollef/sixten/blob/60d46eee20abd62599badea85774a9365c81af45/src/Frontend/Parse.hs#L458
-
What languages have bit struct / field constructs?
Sixten is a language that allows precise control over memory layout of algebraic data types.
-
Designing a language where all types are memcpy/blittable.
For something more peripherally related, check out Sixten. Its focus is on using unboxed value representations, which is in spirit close to what you are proposing, and some of its ideas might be good inspiration.
What are some alternatives?
Bracket-Pair-Colorizer-2 - Bracket Colorizer Extension for VSCode
atom-focus-mode - Atom editor extension - fades editor content and highlights only the lines you are working on
nvim-ts-rainbow - Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead
tree-hugger - A light-weight, extendable, high level, universal code parser built on top of tree-sitter
vscode-extension-samples - Sample code illustrating the VS Code extension API.
pony-tutorial - :horse: Tutorial for the Pony programming language
rainbow-blocks - block syntax highlighting in emacs
felix - The Felix Programming Language
emacs-noob - A curated emacs set up intended to decrease the learning curve
vscode-theme-alabaster-dark - Dark version of alabaster ported from https://github.com/tonsky/sublime-scheme-alabaster
emacs-humanoid-themes - Light and dark theme with bright colors for Emacs that supports GUI and terminal
ante - A safe, easy systems language