-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More robust algorithm and backend rewrite in Node #43
Conversation
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
This is the first iteration of the algorithm / library which will be shared by both frontend and backend. It is very simple at the moment, but can be expanded. Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
In preparation for changing positions to use row / column. Negative indices can be reimplemented later, if necessary. Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
c2415f5
to
3c25152
Compare
The change events in ace editor look something like this: ``` {"start":{"row":1,"column":4},"action":"insert","lines":["o"]} {"start":{"row":1,"column":5},"action":"insert","lines":["",""]} ``` (Simplified) So, the new libbuf API aligns with this. The 2 main advantages are: * Easy to implement, frontend doesn't have to translate events * Concurrent editing on separate lines should just work There's still more work to do to make the algorithm more robust, but I think this is good enough for now. It should be better than the old version that is deployed currently. Both inserting and removing seems to work well, both in unit tests and in editor. Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
Signed-off-by: Ole Herman Schumacher Elgesem <oleherman93@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bra jobba 🥇 👍
Bare småpirk egentlig.
Ta en gjennomgang av variabler og sørg for at de så ofte som mulig er const.
Du kan endre objektet selv om det er const, du kan bare ikke overskrive hele.
FYI: Var ikke veldig grundig på libbuf.js, men det så bra ut! :)
@michaelpande Takk, alle kommentarene dine er besvart, og follow-up er her: #44 |
Bare hyggelig 😊
…On Sun, Apr 26, 2020 at 2:23 AM Ole Herman Schumacher Elgesem < ***@***.***> wrote:
@michaelpande <https://github.com/michaelpande> Takk, alle kommentarene
dine er besvart, og follow-up er her: #44
<#44>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDCCR3XGVZ6P5375AEHBSTRON5JFANCNFSM4MM37OHQ>
.
|
Addressed review comments from #43
Algorithm loosely based on:
https://www.duo.uio.no/handle/10852/53012