3 ms·
I'm always amazed by Marijn's brilliance (Author of Lezer, CodeMirror and the awesome ProseMirror toolkit) The level of depth he dives into to perfect his proj
by lewisjoe 3y ago
I'm always amazed by Marijn's brilliance (Author of Lezer, CodeMirror and the awesome ProseMirror toolkit)
The level of depth he dives into to perfect his projects is insane. For example, lezer is a parser generator( which by itself is not a trivial feat with novel
ideas like incremental computations applied to parsing) to power his mainstream project which is CodeMirror.
Like this Prosemirror too has some insane levels of engineering underneath married with thoughtful architectural decisions.
Apparently, a big fan of his works.
- AlexErrant 3y agoHe's incredibly responsive too. He just answered my question about an hour after it was asked... on a Sunday evening. Slightly off topic; is anyone aware of any Lezer grammar for regex? I've not been able to find any in the FOSS world. I suspect Regex101 has one, bit it's sadly closed source.
- lewisjoe 3y agoYeah, this happened to us too a couple of times. Once, we asked for a clarification and he took it as a sensible requirement, made the changes and took it to master in just over an evening. The next day we just had to update our package to the latest version and marvel at his response time.
- ananthakumaran 3y agoHave you checked the js grammar? It has a regex grammar, though not sure if that's what you are looking for
- AlexErrant 3y agoIndeed ;) https://discuss.codemirror.net/t/help-with-regex-expression-parsing/8030/2 https://discuss.codemirror.net/t/help-with-regex-expression-...
- simonw 3y agoHe's also the author of a really great JavaScript book: https://eloquentjavascript.net/ https://eloquentjavascript.net/ - which he's been intermittently updating since 2007!
- RyanHamilton 3y agoMassively agree. Code mirror 5 was excellent. Code mirror 6 was a big enough improvement to justify the upgrade. I've used it as part of 2 large projects and it's handled every expanding use case I've needed it to. It supports themes, sql,js and 2 weeks ago I used its diff functionality. Really great library I can fully recommend.
- umvi 3y agoCode mirror 6 is super hard to use though unless you are a front end expert. Code mirror 5 was basically plug and play. Code mirror 6 is a box of Legos and you are responsible to build and bundle your own editor from scratch.
- spankalee 3y agoI have a project that's intended to make Code Mirror 6 as ready to use as any HTML tag: https://github.com/justinfagnani/codemirror-elements https://github.com/justinfagnani/codemirror-elements You can put a basic code editor on your page like: <cm-editor></cm-editor> and drop in themes and modes like: <cm-editor> <cm-lang-javascript typescript></cm-lang-javascript> <cm-theme-one-dark></cm-theme-one-dark> </cm-editor> This works in plain HTML or any framework.
- Turing_Machine 3y agoLooking at this now. Thanks! How about a dist folder with a plain js file (or a js file and a css file) that you can load directly? I am sick unto death of Node and all its associates.
- kermire 3y agoNot as extensive as the previous poster. I wrote a small custom component wrapper a while back: https://github.com/flawiddsouza/code-mirror-custom-element https://github.com/flawiddsouza/code-mirror-custom-element.
- 3y ago