Live data from Hacker News

Lapce – Fast and Powerful Code Editor written in Rust

github.com

71–80 of 152 posts

Re: Lapce – Fast and Powerful Code Editor written in Rust

#71

Earlier quoted context omitted.

Care to elaborate on what's wrong with Druid?

Nothing, I edited the message because in the first version of the comment I asked which UI framework they were using, then I saw that info contained in the README and said "ah okay it's using Druid" as in "I saw that" not in "Ah crap you're using Druid"

[deleted]

Re: Lapce – Fast and Powerful Code Editor written in Rust

#72
post #47

Earlier quoted context omitted.

Sadly can't get it to run on linux :( Lot of garbage about loading font config from /etc/fonts/conf.d/... and then: memory allocation of 18446744073709551615 bytes failed Aborted (core dumped)

Trying to allocate memory the size of an underflowed uint64 does not seem safe. Is this possible in safe Rust code? Is there a Rust build flag that would catch this behavior?

It doesn’t violate memory safety, so it’s perfectly valid to do this in safe rust

Re: Lapce – Fast and Powerful Code Editor written in Rust

#73

The 0.0.1 release crashes on MacOS 12.0.1, would be nice to try it out when its more stable.

yep, it crashes on Archlinux as well Just wonder, what is the point of promoting something as "being written in Rust", if at the end it crushed the same way as "being written in C/C++/whatever".

To attract contributors who want to learn more rust by collaborating on something they care about.

Re: Lapce – Fast and Powerful Code Editor written in Rust

#74

Why always lightning, why not sound-speed ? As soon as memory management issue is solved, i could see all future software will eventually be written in Rust (or similar language)

> As soon as memory management issue is solved [...]

What does this refer to?

Re: Lapce – Fast and Powerful Code Editor written in Rust

#75
post #74

Why always lightning, why not sound-speed ? As soon as memory management issue is solved, i could see all future software will eventually be written in Rust (or similar language)

> As soon as memory management issue is solved [...] What does this refer to?

Rust memory management model ?

Re: Lapce – Fast and Powerful Code Editor written in Rust

#77
post #34

Earlier quoted context omitted.

Seems like you have been picking the wrong tool for the job.

Seems like Atom and VSCode picked the wrong tool for the job.

Both work fairly well, are popular and performance is satisfactory (unless you try to paste an 80k line JSON file into either of them, that doesn't work). Considering their success, wide availability and vibrant ecosystems, I'd say they picked the right tool for the job.

Re: Lapce – Fast and Powerful Code Editor written in Rust

#78
post #4

VS Code is so bloated af Waiting for this to be stable! Would love to contribute! Any next features doc, so I can pick a topic and submit some PRs. Awesome work :)

VS Code isn't bloated if you never install any extension. You can't hold Microsoft responsible for third party bloat.

Well, sort of. The problem is it's difficult to implement a lot of extension functionality in efficient ways, and sometimes they make it too easy to do it in really really inefficient ways. Examples:

* LSP uses JSON. Even worse, VSCode uses UTF-16 internally (because Javascript does, more or less). But JSON uses UTF-8. So for correct operation VSCode converts the UTF-16 to UTF-8, and then your language server has to convert it back to UTF-16 to figure out the row/col positions (which are in UTF-16 units).

* LSP has an "easy mode" where the entire document is sent to the language server on every keypress!

* Some functions like `provideDocumentLinks()` operate on the entire document, so on every keypress (maybe it batches them I don't know), all linkifier extensions will run a load of regexes over the whole document.

There's definitely scope for a text editor with an extension API that encourages speed.

Re: Lapce – Fast and Powerful Code Editor written in Rust

#79
post #3

Author here. I didn't expect this will go on Hacker News. Although the editor has been my daily drive for almost one year now, it's really rough on the edges. The plugin system as described in the README hasn't been implemented yet.

Lsp support as well ? You have got to be kidding me. How did you add these feature so quickly ?

[deleted]

Re: Lapce – Fast and Powerful Code Editor written in Rust

#80
post #3

Author here. I didn't expect this will go on Hacker News. Although the editor has been my daily drive for almost one year now, it's really rough on the edges. The plugin system as described in the README hasn't been implemented yet.

Hi, thanks for writing some free software!

I'm not a Rust person, how do you install this? Is it something like "rustc install" or something like that?

Thanks!

Post reply on HN