ryo-modal
min-sized-rust
ryo-modal | min-sized-rust | |
---|---|---|
14 | 101 | |
217 | 7,431 | |
- | - | |
0.0 | 6.2 | |
4 months ago | about 2 months ago | |
Emacs Lisp | Rust | |
MIT 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.
ryo-modal
-
Ask HN: Best way to experiment with text text editing?
To build on what others are saying about Emacs, if you start exploring the package ecosystem, you're going to see quite a lot of really interesting packages that are related to improving/experimenting with the UX of editing text. While I'm not endorsing anyone in particular, I think what this list does show is just how easy it is to do pretty much whatever you want in Emacs;
https://karthinks.com/software/avy-can-do-anything/
https://github.com/jyp/boon
https://github.com/clemera/objed
https://github.com/jmorag/kakoune.el
https://github.com/meow-edit/meow/
https://github.com/xahlee/xah-fly-keys
https://github.com/Kungsgeten/ryo-modal
https://github.com/emacsorphanage/god-mode
Emacs 29 also now has treesitter and LSP mode integration built-in, a compilation mode, a comint mode for REPLs, excellent file browsing packages (I use dired/dirvish), and a few other killer features.
Now, if what you truly dislike are "quirky editors", prepare yourself for a world of hurt because vanilla Emacs departs quite a bit from "modern" text editors. I struggled with this for a while, but eventually by buying into the paradigm, I now feel that when emacs try emulating "modern" IDE features like autocompletion, LSP, and DAP UI, I feel like it's a regression, not a progression. The point here is that you might have an "idea" of what good initial UX and lack of quirks would look like, but Emacs might change the way you think.
-
Evil keybinding for emacs from scratch
If it's the latter and you're looking for a way to set up vim/evil like keybindings yourself (separate links for each), Modalka, RYO-modal, and Meow (and probably a few dozen others 'cause emacs) allow you to do that.
-
Nested/conditional keybindings to navigate in text
You can write custom commands that wrap a little bit of logic around the standard movement commands. Or another option would be to look at ryo-modal or meow.
-
How to get doom emacs keybindings?
Along with General, you can take a look at some other packages for keybindings and modal editing. A good option is RollYourOwn Modal mode. In the documentation there, it also lists several other packages with pre-defined bindings. Xah-Fly-Keys is specifically designed for ergonomics and may be interesting to explore.
-
Why not use Evil in 2022?
Because you can roll your own modal mode. This particular approach will make the experience convenient in the way you actually prefer (Emacs' extensibility at its finest) and it'll allow you to slowly move towards the modal editing if it happens to be convenient for you.
- Lapce
-
"I'll just install EVIL"
Similar to Meow is ryo-modal. What I like about ryo-modal is that it is completely unopinionated and does nothing by default, and instead just provides the tools to make your own modal editing system.
-
Layer keys
I was thinking that combining this functionality with something like ryo-modal could make for a very satisfying and efficient modal keybind system. However, it doesn't seem like there's any ready made way to do this in Emacs.
- Think which-key update breaks ryo-modal
-
How to make ryo-modal not insert the non-mapped keys?
ryo-modal is a package for creating modal keymaps. I want to test it, but I need a little help.
min-sized-rust
-
The Linux Kernel Prepares for Rust 1.77 Upgrade
This is a good guide on building small Rust binaries: https://github.com/johnthagen/min-sized-rust
This talks about going to extreme lengths on making the smallest Rust binary possible, 400 bytes when it was written, https://darkcoding.net/software/a-very-small-rust-binary-ind...
The thing is, you lose a lot of nice features when you do this, like panic unwinding, debug symbols, stdlib… for kernel and some embedded development it’s definitely important, but for most use cases, does it matter?
-
Rust wont save us, but its ideas will
Oh it was 137, haha. I will link you to this older comment of mine: https://news.ycombinator.com/item?id=29408906
See also https://github.com/johnthagen/min-sized-rust
-
Making Rust binaries smaller by default
Are you sure? If so then this is awesome news, but I'm a bit confused; the commit in that min-sized-rust repo adding `build-std` to the README was merged in August 2021: https://github.com/johnthagen/min-sized-rust/pull/30
Are you saying that at that point the feature still hadn't "landed in Rust nightly" until recently? If so then what's the difference between a feature just being available in Rust nightly, vs having "landed"?
-
Was Rust Worth It?
Rust binaries are by default nowhere close to 500MB. If they are not small enough for you, you can try https://github.com/johnthagen/min-sized-rust. By avoiding the formatting machinery and using `panic_immediate_abort` you can get about the size of C binaries.
-
Compiling Rust binaries for Windows 98 SE and more: a journey
A useful reference: https://github.com/johnthagen/min-sized-rust
- How to minimize Rust binary size
- Error on flashing embedded code to stm32f103
-
Tiny Binaries (2021)
That must be without stripping. Also there are ways to reduce binary size. See e.g. [min-sized-rust](https://github.com/johnthagen/min-sized-rust). I've gotten stripped binaries of small cli utils less than 400KiB without doing anything special, less than 150 KiB by customizing profile settings and compressing with upx, and less than 30 KiB by replacing the std with the libc as the link shows. Haven't tried with fltk though...
-
Shared libraries
This is not quite what you're asking, but it does also address the underlying concern: https://github.com/johnthagen/min-sized-rust
What are some alternatives?
meow - Yet another modal editing on Emacs / 猫态编辑
smartstring - Compact inlined strings for Rust.
modalka - Modal editing your way
Cargo - The Rust package manager
xah-fly-keys - the most efficient keybinding for emacs
rustc_codegen_gcc - libgccjit AOT codegen for rustc
kakoune.el - A very simple simulation of the kakoune editor inside of emacs.
c2rust - Migrate C code to Rust
emacs.d - Personal Emacs configurations
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
emacs-baboon - My new Emacs config with use-package
embedded-graphics - A no_std graphics library for embedded applications