Live data from Hacker News

Lapce – Fast open-source code editor

lapce.dev

131–140 of 231 posts

Re: Lapce – Fast open-source code editor

#131
post #96

Earlier quoted context omitted.

The UI is actually native, it's just that the native Rust UI tookit it's using (druid) is still work-in-progress and doesn't have some things we expect from a full UI framework (most notably, good text rendering).

Sure, if by native you mean “not using the web”, but my understanding is that Druid, much like flutter, uses a canvas like renderer underneath and doesn’t use platform widgets. The fact that lapce’s ui - like its file picker - looks nothing like a Mac app is flat out obvious and makes me less inclined to bother.

Almost all UI frameworks and APIs given from operating systems (WinForms, UIKit, GTK, …) uses a canvas renderer underneath. Except for the different styling, technology wise there isn’t really that much difference from other cross-platform UI frameworks such as Druid or Flutter. (For example, everyone seems to agree that Sublime Text is a “native” text editor, even if most of the rendering is actually done via a proprietary homebrew UI framework internal to Sublime HQ.)

Maybe you were emphasizing more on the theming/design principles than the technology behind it. In that area I just think Druid needs more work to allow using native dialogs for certain specific elements (file dialog, right click menu, etc.), which is what Qt already does.

Re: Lapce – Fast open-source code editor

#132

Author here. Thanks for all the feedback. I'm aware that Lapce lacks lots of basic stuff. It's a personal project so the initial set of features and key bindings are tight to my personal preferences. I'm currently working on the missing pieces, like multi cursor support(in master but not released yet), mouse support, sane default key bindings(probably I'll stick to an existing editor), basic UX etc. Feel free to subm…

Valiant effort and impressive personal project! > I'm currently working on the missing pieces, like multi cursor support(in master but not released yet), mouse support, sane default key bindings(probably I'll stick to an existing editor), basic UX etc. Website claims "Native GUI" but this is not native GUI. I'd rather have basic UX before multi cursor or anything else nice to have but totally optional things. On Wind…

Maybe the author should use a library like native-dialog (https://crates.io/crates/native-dialog) for these rather than making a file picker from scratch in Druid (the current Rust UI framework).

Re: Lapce – Fast open-source code editor

#133
post #99
post #84

Earlier quoted context omitted.

A panic is a different kind of crash than a segfault, it can not be used to get your credit card information.

And there is a stack trace. Worlds apart.

Well stack traces are just a gdb session away, no changes to code/binary needed. No?

Re: Lapce – Fast open-source code editor

#134
post #65

Earlier quoted context omitted.

Off Topic: https://www.lapce.dev has a certificate issue. Also, the editor does not seem to run on Windows 7 ("createpseudoconsole could not be located" in KERNEL32.dll)

> Also, the editor does not seem to run on Windows 7 ("createpseudoconsole could not be located" in KERNEL32.dll) Windows 7 EOL was 2 years ago though. (I know it's the last version of Windows that isn't an add-bloated spyware but still) https://www.microsoft.com/en-US/windows/windows-7-end-of-lif...

Note that Windows 10 has some really nice OS API additions that may make devs consider ditching Windows 7 support (such as the createpseudoconsole function you’ve mentioned: https://docs.microsoft.com/en-us/windows/console/createpseud...)

Re: Lapce – Fast open-source code editor

#136
post #15

Nowadays when I see "written in Rust" in the title, it reads like special pleading: "It's maybe not as good as what you use, but we are really proud to have got it working at all."

Really? I take it to mean "fast and won't randomly segfault".

That should really apply to any systems language other than C for a text editor. As long as you have bounds checking and a test suite you're golden.

Re: Lapce – Fast open-source code editor

#138

Earlier quoted context omitted.

I haven't had a chance to test this yet but this is fantastic to see. Anything like this that progresses the cross-platform remote model that we now have with VSC, particularly if the endpoint is fast and memory-efficient, is really important, because of the variety of dev environments. What I would _really_ like, of course, is an iPad editor that could do the same. If you could make an iPad editor that has VSC-style…

Are in-browser editors ruled out? EDIT: aha, just saw this, downthread: > "The main problem is as far as I am aware the same; the browser-side connection can drop quite easily because of the limits of iOS (you can't switch away without losing it)."

In-browser editors are OK, if you can test your work without disrupting the connection, yeah. So sometimes if e.g. the website you're building is in another browser tab that has been enough.

The other way round -- an in-editor browser -- could be the better way to work. GoCoEdit does this (and it really is rather good!) as does Panic's Code Editor (formerly Coda for iOS), which is good, but not as good. And you arguably get a terminal more easily this way too, particularly where SSH keys are involved.

Re: Lapce – Fast open-source code editor

#139

Author here. Thanks for all the feedback. I'm aware that Lapce lacks lots of basic stuff. It's a personal project so the initial set of features and key bindings are tight to my personal preferences. I'm currently working on the missing pieces, like multi cursor support(in master but not released yet), mouse support, sane default key bindings(probably I'll stick to an existing editor), basic UX etc. Feel free to subm…

I believe an open source editor should be built from source and I couldn't find links to sources or how to build from source on the website. The getting started documentation points to the download section. It would be cool if one of the downloads would be marked as source (for any OS).

Re: Lapce – Fast open-source code editor

#140
post #96

Earlier quoted context omitted.

Sure, if by native you mean “not using the web”, but my understanding is that Druid, much like flutter, uses a canvas like renderer underneath and doesn’t use platform widgets. The fact that lapce’s ui - like its file picker - looks nothing like a Mac app is flat out obvious and makes me less inclined to bother.

Almost all UI frameworks and APIs given from operating systems (WinForms, UIKit, GTK, …) uses a canvas renderer underneath. Except for the different styling, technology wise there isn’t really that much difference from other cross-platform UI frameworks such as Druid or Flutter. (For example, everyone seems to agree that Sublime Text is a “native” text editor, even if most of the rendering is actually done via a prop…

Everything uses a canvas tender underneath, but native - at least to me - is using the platform’s implementation and widgets. Otherwise, even the web is native.
Post reply on HN