This enables highlighting for Lua, Python and Ruby heredocs in vim scripts:

let g:vimsyn_embed='l'

lua << END
print('Hello, world!')


Lua seems to be destined to replace VimL (the clunky vim scripting language).

Why did they pick Lua? I guess it's because the interpreter is very small, easy to embed and also has JIT (which Python and Ruby lack).

· · Web · 2 · 0 · 1

@ashwinvis Right. Why hasn't PyPy become the default Python interpreter on all Linux distros? It's been around for 14 years, longer than Python 3...

@ashwinvis I honestly don't know why. I keep hearing every now and then that it's much, much faster...

Several years ago, the blocker was that NumPy and other essential modules didn't work with PyPy, but now this seems to be solved:

It is still a pain point... I don't think I have managed to install NumPy successfully with PyPy. But there is a project to fix that.


> As of Ruby 3.0, JIT is supposed to give performance improvements in limited workloads, such as games (Optcarrot), AI (Rubykon), or whatever application that spends the majority of time in calling a few methods many times.

> Although Ruby 3.0 significantly decreased the size of JIT-ed code, it is still not ready for optimizing workloads like Rails, which often spend time on so many methods and therefore suffer from i-cache misses exacerbated by JIT. Stay tuned for Ruby 3.1 for further improvements on this issue.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!