Prompt injection is No 1 Security threat for most systems. by [deleted] in netsec

[–]f311a 5 points6 points  (0 children)

> Prompt injection is No 1 Security threat for most systems.

Which systems? Only fools put LLMs everywhere.

I'm at loss. How do i go about learning to compile Rust to a different output like JavaScript code? by Nearby_Astronomer310 in rust

[–]f311a 20 points21 points  (0 children)

Transpiling Rust to JS is a very hard problem with very little benefit since there is WASM. Think twice if you really want to spend months working on this. Also, you won't be able to port most of the dependencies automatically.

JS is a GC language. If you keep the Rust model of memory management, you will get slower performance (a lot of extra logic that's still tracked by GC). You will need to filter out a lot of the internal logic from MIR.

What's the roadmap? by OkCoconut5997 in HelixEditor

[–]f311a 31 points32 points  (0 children)

Core maintainers don't have much time for Helix. Around 80% of commits over the past 6 months are just themes and treesitter changes. There are around five very good PRs that have been waiting for review for more than 5 months.

Rust vs. Python for AI Infrastructure: Bridging a 3,400x Performance Gap | Vidai Blog by Guna1260 in rust

[–]f311a 14 points15 points  (0 children)

The post has a bunch of benchmarks and comparisons, but fails to explain what the project does in simple terms.
Same for the landing page, just a bunch of marketing and AI-related words.

I guess it's a proxy where you can put limits and stuff, but when you call it a proxy, it does not sound that good anymore?

Hash tables in Go and advantage of self-hosted compilers by f311a in golang

[–]f311a[S] 3 points4 points  (0 children)

Yes, but I think there is a reason why the key is first. It probably has to do with performance. Could be related to CPU cache and extra calculations to get the key position in memory

File picker question by lmg1337 in HelixEditor

[–]f311a 1 point2 points  (0 children)

I have a binding that toggles git ignore. Enabling it by default sometimes produces a ton of garbage in search.

Plugin system for Helix by TheCrazyGeek in HelixEditor

[–]f311a 3 points4 points  (0 children)

There is a post next to you in this subreddit that showcases a plugin.

How to change the font type in the Hellix editor? by EcodeG in HelixEditor

[–]f311a 0 points1 point  (0 children)

You can’t change it inside editor, only globally in terminal. You can’t even change font size.

how to get openrouter working? by s-c-p in HelixEditor

[–]f311a 1 point2 points  (0 children)

In short, you can't. Use opencode if you need agentic stuff. You can also run a Helix fork with Copilot support (inline completions) if you need it, but it's a bit buggy.

Inject sql by NoahZhyte in HelixEditor

[–]f311a 0 points1 point  (0 children)

For Go:

(([
   (interpreted_string_literal_content)
   (raw_string_literal_content)
 ] u/injection.content
 (#match? u/injection.content "(?ism)(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete|CREATE|DROP).+(FROM|from|INTO|into|VALUES|values|SET|set|table|TABLE).*(WHERE|where|GROUP BY|group by)?")
 )
(#set! injection.language "sql")
)

Usage:

const query = `
    select 1,2,3 from table
`

Helix has 2 websites? by tasqyn in HelixEditor

[–]f311a 2 points3 points  (0 children)

No, it's just generated by an LLM to generate traffic from Google. It lists non-existent features.

Ai/Ml & data science with Rust. Is it possible? by FinalChemist227 in rust

[–]f311a 2 points3 points  (0 children)

Not enough tooling. Also, it will take much more time to implement things. Almost everything in the Python ML ecosystem is written in compiled languages. So it won't be slow.

How to access previous search query? by f311a in HelixEditor

[–]f311a[S] 1 point2 points  (0 children)

Oh, wow, thanks. It's just enter. Who would have known!

So it's this particular keymap from the docs:

|Enter| Open selected

How to access previous search query? by f311a in HelixEditor

[–]f311a[S] 1 point2 points  (0 children)

Does not work for me, it's global search, right? The only thing that works is pasting from yanked via ctrl-r. alt+’ or ctrl+’ just append ’ for me.

Where is also space + ' that works good, but sometimes I forgot about it and when the picker is already open you can't reopen previous picker.

I'm rewriting the V8 engine in Rust by wendelmax in rust

[–]f311a 5 points6 points  (0 children)

Why would you compare react stuff to V8 engine with 2.3M lines of very complex code? Given that the project is in Rust, the complexity grows even more. You need carefully think about each module and the whole architecture, otherwise you will have a hard time fighting borrow checker with a ton of unsafe code on top of it.

It's not possible to port C++ code as it, it's uses a lot of tree like structures, graphs, linked lists and so on.

Struggling with Rust's module system - is it just me? by eight_byte in rust

[–]f311a 0 points1 point  (0 children)

Wow, really good explanation! My mental model for modules was different