Live data from Hacker News

We are rewriting CodeMirror

codemirror.net

71–77 of 77 posts

Re: We are rewriting CodeMirror

#71

I have to ask what is probably a dumb question. Why? I used CodeMirror on three projects. It was great. Now I use Monaco aka Visual Studio Code. What would CodeMirror offer ? With Monaco I get all the lastest feature of VSCode . Current versions of Monaco include Intellisense etc.. I'm honestly curious both what CodeMirror will offer and why even try to compete. Though I'm guessing the answer to the first question an…

I've evaluated both CodeMirror and Monaco in a project that had to show a dozen or so small code editors (highlighting, intellisense) on the screen; CodeMirror was a lot more lightweight and faster, whereas Monaco is a lot heavier and more aimed at having just a single instance per page.

Re: We are rewriting CodeMirror

#72
post #20

I have to ask what is probably a dumb question. Why? I used CodeMirror on three projects. It was great. Now I use Monaco aka Visual Studio Code. What would CodeMirror offer ? With Monaco I get all the lastest feature of VSCode . Current versions of Monaco include Intellisense etc.. I'm honestly curious both what CodeMirror will offer and why even try to compete. Though I'm guessing the answer to the first question an…

I welcome competition in this space but two guys competing with Microsoft seems like impossible to win. Hopefully they get the funding and we can see what they can build

You say competing with Microsoft, but, CodeMirror is being used as the editor in Chrome, Firefox and Safari's dev tools, as well as Light Table, Brackets and Bitbucket - according to the blurb on their own home page.

I have no doubt that if those parties get more involved in CodeMirror, things could move very fast.

Re: We are rewriting CodeMirror

#73
post #67

Earlier quoted context omitted.

Hi Marijn. Big fan of ProseMirror. Would you look at building CodeMirror on top of (or at least sharing code with) ProseMirror so both projects can benefit from the effort?

This makes me wonder. What would happen if you'd embed a piece of code inside a text document? Would you need to embed a CodeMirror instance inside a ProseMirror instance?

Have a look at https://prosemirror.net/examples/codemirror/ :)

Re: We are rewriting CodeMirror

#74
post #66

Thank you for considering the needs of people who speak non-LTR languages, like Arabic. I'm excited that bidirectional text support is in the roadmap!

That's great to hear! CodeMirror 5 has complex code for supporting bidirectional documents, but it's not perfect and lot of work. We hope to let the browser do most of this work for us in the new architecture.

Re: We are rewriting CodeMirror

#75
post #70
post #4

Earlier quoted context omitted.

It's underspecified and very hard to implement (and hence, not implemented all that well), but if you know the pitfalls (only some DOM/style structures are well supported, cursors vanish in some circumstances, etc) and avoid them, and implement non-trivial editing commands yourself (because you can't really rely on the browser to get them right), contentEditable is a functional way to represent editable content in th…

Interesting! I actually wrote https://github.com/SjonHortensius/LRTEditor to replace CM, but the many subtle browser bugs eventually forced me to abandon it. Do you expect to use shims and possibly let browser-vendors fix bugs/inconsistencies you find?

We're not really using shims, just targeting the lowest-common-denominator contentEditable behavior that we can count on, and implementing anything else ourselves.

Re: We are rewriting CodeMirror

#76
post #54
post #20

Earlier quoted context omitted.

I welcome competition in this space but two guys competing with Microsoft seems like impossible to win. Hopefully they get the funding and we can see what they can build

Monaco is maintained by a single guy from my understanding: https://github.com/Microsoft/monaco-editor/graphs/contributo... It just shows many contributors but looking at code commits and general activity (maintainers) in issues only Alexandru Dima comes out.

That's not where the monaco code lives. That's just for documentation. I think the actual code lives in the vscode repo

Re: We are rewriting CodeMirror

#77
post #20

Earlier quoted context omitted.

I welcome competition in this space but two guys competing with Microsoft seems like impossible to win. Hopefully they get the funding and we can see what they can build

I wonder how one Finnish engineer could possibly compete with all Microsoft's many engineers in the OS space.

I'd wager, by cloning another successful OS. Also, all Microsoft engineers didn't work exclusively on the kernel.
Post reply on HN