Live data from Hacker News

Lapce – Fast and Powerful Code Editor written in Rust

github.com

141–150 of 152 posts

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

#141

Earlier quoted context omitted.

Honestly "big companies, banks, governments" do sound like the usual suspects for writing programs insecurely to me (I work for one of those).

Yes, but if this is standard procedure in 99.999% of cases, I doubt "good enough for them" habit of running a commercial binary that's not open source (basically how the whole planet except perhaps NSA and such works), is not also good enough for some random linux user (assuning they don't trade in ultra-sensitive data).

As I said, it is not good enough for me. Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally, I don't care what you feel comfortable using.

on a side note, banks and governments often actually audit closed-source code, as they get that worked out in their contracts. Go ahead and ask Microsoft, if you could do the same...

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

#142
post #119

Earlier quoted context omitted.

Not FOSS. For many, that's an issue. Personally, I just don't feel comfortable working with sensitive information or proto-executables in closed-source software. I get the appeal, if you come from macOS or Windows, but for Linux it's often the first "dirty" thing you would introduce, so it feels like a big deal. Btw. I have used Sublime. It is a very nice Editor. Most importantly incredibly snappy and so far no other…

> Oh, yeah, and it's fucking expensive... ~80 USD per user (not per computer, per user), and then you have support for that version the X upcoming years. I understand 80 USD is a lot of money for some people, but I would argue for businesses it isn't and it isn't if you compare it to other stuff. Which requires subscription, or lets you pay with your data / advertising. Even if FOSS, that's arguably worse . (I use Su…

You do you. For me, that editor is not 80 USD better than... well, there are a lot of great alternatives. It's not even like Sublime is flawless, and I am not sure I would use it, if it was FOSS (tho, then it may become flawless over time).

Also, apparently it's $100 USD now. C'mon, 100 bucks for a basic text editor?!

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

#143

Earlier quoted context omitted.

It's all about reduction of surface and giving plugins access to the least amount of info. You expect a linter to only have (read) access to the code it lints. It shouldn't be able to modify files, it shouldn't have network access etc. WASI has a pluggable capability-based security system. Some advanced linters might want network access but you can show this to the user, so they can make an informed decision about wh…

> You expect a linter to only have (read) access to the code it lints. It shouldn't be able to modify files, it shouldn't have network access etc. WASI has a pluggable capability-based security system. That sounds absolutely amazing. Are there any desktop apps delivered like this yet? Any operating systems or some sort of runtimes (browsers?) that support them? I want to install apps on my desktop without worrying ab…

> Are there any desktop apps delivered like this yet? Any operating systems or some sort of runtimes (browsers?) that support them?

Ever heard of apparmor?

That's per application security profiles, distributed with any applications on many Linux distributions.

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

#144

Earlier quoted context omitted.

Either the plugin needs to be written in a common language (JS for VSCode, Python for Sublime Text) or native (Terraform does this for custom providers) but need to support many architectures. WASI fits snuggly in between, being a common intermediate language

But JS _is_ a common intermediate Language. I guess more languages compile to JS than to WASM.

It can used as an intermediate language, and since it was the only way to run code on the browser without plugins before WASM, it happened a lot.

But nowadays WASM is much more suitable for the job. JavaScript was designed as a scripting language, not a low level intermediary language.

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

#145
post #143

Earlier quoted context omitted.

> You expect a linter to only have (read) access to the code it lints. It shouldn't be able to modify files, it shouldn't have network access etc. WASI has a pluggable capability-based security system. That sounds absolutely amazing. Are there any desktop apps delivered like this yet? Any operating systems or some sort of runtimes (browsers?) that support them? I want to install apps on my desktop without worrying ab…

> Are there any desktop apps delivered like this yet? Any operating systems or some sort of runtimes (browsers?) that support them? Ever heard of apparmor? That's per application security profiles, distributed with any applications on many Linux distributions.

firejails on linux as well. there are others but that's the only one I'm familiar with.

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

#146

Earlier quoted context omitted.

Yes, but if this is standard procedure in 99.999% of cases, I doubt "good enough for them" habit of running a commercial binary that's not open source (basically how the whole planet except perhaps NSA and such works), is not also good enough for some random linux user (assuning they don't trade in ultra-sensitive data).

As I said, it is not good enough for me. Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally , I don't care what you feel comfortable using. on a side note, banks and governments often actually audit closed-source code, as they get that worked out in their contracts. Go ahead and ask Microsoft, if you could do the same...

>Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally, I don't care what you feel comfortable using.

Why do you feel the need for ad-hominen arguments and pop-psychology BS? Do you feel personally validated because you use Open Source, compensating for other lacks in your life, perhaps not being loved enough as a kid?

See how two can play this game? Maybe stick to practical arguments?

My point was in practical use, trusting a proprietary commercial binary (from Microsoft, Oracle, whatever) is not a big issue for far more sensitive environments (banks, governents, etc) than the average user case.

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

#147

Earlier quoted context omitted.

This looks very nice. However, the description mentions "lightning fast" and "powerful". Unfortunately, those things don't mean anything without further clarification. If you really want to show your editor is faster than other commonly used editors, consider posting a benchmark of cases where speed matters (like loading a large file, inserting in the middle of a large file, search/replace, latency of pressing a key…

Standard rust marketing, it's a bit tedious tbh, and I don't think anyone who is honest is surprised any more. Everything is "lightning fast" by default just because it compiles to native. I thought we were past that. Never mind that you can write crap code in any language (not making any comment about the editor's author here).

It's not just marketing. Rust tools like Tokei and Ripgrep are lightning fast. It's partly because it compiles to native - that applies to C/C++ too, e.g. Git is "lightning fast" compared to Mercurial. But it's also because Rust lets you do multi-threading without going insane.

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

#148

Earlier quoted context omitted.

As I said, it is not good enough for me. Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally , I don't care what you feel comfortable using. on a side note, banks and governments often actually audit closed-source code, as they get that worked out in their contracts. Go ahead and ask Microsoft, if you could do the same...

> Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally, I don't care what you feel comfortable using. Why do you feel the need for ad-hominen arguments and pop-psychology BS? Do you feel personally validated because you use Open Source, compensating for other lacks in your life, perhaps not being loved enough as a kid? See how two can…

Lol. I was just stating my personal preferences, then you came calling me out unreasonable. I made it very clear, that it's about how I feel about it. Not reason. I am not arguing at all.

But hey, I also gave you an actual argument, you ignored......

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

#149

Earlier quoted context omitted.

I think above comment is about jetBrains fleet. VSCode alternative written in kotlin

I have yet to use a JVM based GUI that felt snappy. JVM based language benchmarks are always really good, but somehow that never translates well to GUIs

They have made a custom UI framework based on skia rendering engine. Skia is used by flutter, Chrome and firefox for rendering and known for great performance.

https://github.com/jetbrains/compose-jb

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

#150
post #8

Earlier quoted context omitted.

Why did you opt for WASI for plugins instead of native compiled code?

I think native compiled code is hard for plugin distributions. You'll need to target 3 main platforms Linux/macOS/Windows. You can use github actions to do it, but it would be so easier to just compile to WASI and that's it. Also, WASI is compelling to me because of the potential of writing plugins in different programming languages.

multiply that with the CPU ISA, like arm, x86 (and more if you are inclined to support power, sparc, ...)
Post reply on HN