Live data from Hacker News

Lapce: Fast and Powerful Code Editor Written in Rust

github.com

31–40 of 64 posts

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#31
post #28

Earlier quoted context omitted.

To be devil's advocate (despite being a long vim user): Lapce has a GUI, so they are not in the exact same category. Having lightening fast GUI is still a novelty, because the most popular IDEs like VSCode or JetBrains IDEs have slow downs from time to time.

The IDE is only going to be as fast as the slowest LSP service you’re using.

I would assume that LSPs are queried asynchronously. That's at least how it appears in VS Code.

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#32

Earlier quoted context omitted.

Well if you're not using unsafe, you would expect zero segfaults when using rust, no? Though I imagine it's impossible for anything with graphics to avoid unsafe code entirely.

> Yes, Rust makes a few categories of bugs disappear, but Segfaults are only one of many ways for software to go wrong.

The GP and GGGP were specifically talking about segfaults. The GP is reminding the GGP that the complaint is specifically about segfaults.

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#33
post #28

Earlier quoted context omitted.

The IDE is only going to be as fast as the slowest LSP service you’re using.

I would assume that LSPs are queried asynchronously. That's at least how it appears in VS Code.

Asynchronous code doesn’t make something fast. It just prevents the application hanging when waiting for a function to return. But if that function is user facing (eg values for a context menu) and is slow, then your application is still going to feel slow in spite of those functions be asynchronous.

Coincidentally this is actually a problem I faced when writing my alternative shell.

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#34
post #22

Earlier quoted context omitted.

It's slower, tbqh. It choked on a decent sized Rust project (scrolling became laggy/unusable) that VS Code handles fine.

That seems "open a bug" worthy, for a "lightning-fast" editor.

Certainly seems so, it shouldn't happen afaict.

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#37
post #33

Earlier quoted context omitted.

I would assume that LSPs are queried asynchronously. That's at least how it appears in VS Code.

Asynchronous code doesn’t make something fast. It just prevents the application hanging when waiting for a function to return. But if that function is user facing (eg values for a context menu) and is slow, then your application is still going to feel slow in spite of those functions be asynchronous. Coincidentally this is actually a problem I faced when writing my alternative shell.

Right, I just meant it wouldn’t hang the UI (as the parent comment seemed to imply).

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#38

Earlier quoted context omitted.

On a tangent — for a numeric library, would you rather NaN or throw? I find a fair amount of division over this question, but people lean towards throw over NaN.

I'd definitely go with throw - it's indicative of a logic bug, and I'd rather notice it during dev (or if not, catch in prod, complete with stack trace and whatnot), than to have it silently corrupting anything that relies on that calculation happening correctly, without me even being aware of it. Like, if I'm doing x + y, and y just accidentally happens to contain the wrong data because of a mistake in the code, a N…

I'd always go with NaN. In dataprocessing, it's common to encounter NaNs due to bad data - these records can be filtered out to allow the process to continue. The records which resulted in NaN can be flagged for follow-up.

As a program author, I'd expect that it's my choice how to handle this situation. I don't want libraries making arbitrary decisions about how my code should work.

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#39

I don’t care in which language my editor is written in. From the user perspective, what sets it apart from the plethora of available and more mature editors?

I like knowing something is written in Rust because (1) the staying power of a language has implications for the staying power of the project (how many Ada projects do you see nowadays?) (2) I write Rust so I'm more likely to contribute to this, (3) I care about the safety and speed implications of language choice, but most of all (4) building from source usually isn't a pain with Rust's Cargo, but it is for most oth…

> the staying power of a language has implications for the staying power of the project

So Emacs' staying power is due to being written in LISP ?!

Re: Lapce: Fast and Powerful Code Editor Written in Rust

#40
post #4
post #2

Written in Rust and yet when I downloaded it — admittedly a few months ago now — it segfaulted within a minute of me opening it for the first time. 0/10, not inclined to try again.

People who think the programming language magically makes bugs disappear don't know what they're talking about. Yes, Rust makes a few categories of bugs disappear, but there's a vast number of bugs that you can still easily create even using Rust with all linters you can find enabled... just saw on another thread someone complaining a Gemini (poor man's internet) server responded with a Rust panic coming from an `unw…

Certainly not all bugs, but in theory a segfault should be entirely avoided in safe rust, right?
Post reply on HN