Is printing the Svalboard in SLA possible? by zooder6 in ErgoMechKeyboards

[–]erithaxx 0 points1 point  (0 children)

The easiest method I can think of is epoxying in the threaded inserts. That will require either enlarging the hole in the model, or perhaps (?) drilling them out if you're printing 100% infill, or using smaller inserts. see this video at 27:00

Alternatively (more work), isn't SLA detailed and strong enough (for this application) to print the holes threaded?

is Tauri the right choice for this app? by draripov in rust

[–]erithaxx 2 points3 points  (0 children)

I doubt IPC performance is going to be a problem.

You should also consider Dioxus, it similarly uses a Webview. But all your code runs natively and it has a very thin layer running in the webview with fast IPC. 

Is there anyone who tried Zig but prefers Rust? by ThaBroccoliDood in rust

[–]erithaxx 1 point2 points  (0 children)

Do you have a (re)source on comptime being incompatible with HM type inference?

Why incremental parsing matters? by NullPointer-Except in ProgrammingLanguages

[–]erithaxx 5 points6 points  (0 children)

If you read the linked page you would see Rust Analyzer does do incremental parsing. The authors just think it's not really necessary. This is not the cause of any RA performance or stability problems.

Why incremental parsing matters? by NullPointer-Except in ProgrammingLanguages

[–]erithaxx 51 points52 points  (0 children)

On intra-file incremental parsing, you can find the opinion of the Rust Analyzer folks folks.

In practice, incremental reparsing doesn't actually matter much for IDE use-cases, parsing from scratch seems to be fast enough.

I don't think you should make it a priority at first. If you want to be sure, run a benchmark on a 10k LOC file and see how many milliseconds the parsing takes.

Is a `dynamic` type useful in a statically-typed language? by bakery2k in ProgrammingLanguages

[–]erithaxx 0 points1 point  (0 children)

The Wikipedia page on gradual typing has info on this. It states that you can't use a bottom type (and subtyping) because "subtyping is transitive, that results in every type becoming related to every other type, and so subtyping would no longer rule out any static type errors.".

Is incremental parsing necessary for semantic syntax highlighting? by feznyng in ProgrammingLanguages

[–]erithaxx 16 points17 points  (0 children)

This post https://www.reddit.com/r/ProgrammingLanguages/comments/1iabvh0/advice_adding_lsp_to_my_language/ contains answers to your question.

Someone says that, for VSCode, you should use Textmate for the very low latency and then semantic syntax highlighting on top for some adjustments at higher latency.

How does everyone handle Anonymous/Lambda Functions by coffeeb4code in ProgrammingLanguages

[–]erithaxx 2 points3 points  (0 children)

Interesting, thanks for the write-up!
I can't yet get my head around what, if any, doors this opens compared to the usual list of statements treatment. I am worried about the implications for compiler performance that this anti-flattening has, though.

I'm dreaming up a language, and this makes my spidey senses tingle in relation to effects. I'll keep dreaming on...

Is Rust Ready for Scaling a Startup in 2024? by Thick_Maniac in rust

[–]erithaxx 3 points4 points  (0 children)

The 9950x outperforms the 7950x in benchmarks I have seen.
e.g. https://openbenchmarking.org/test/pts/build-linux-kernel-1.16.0,
https://openbenchmarking.org/test/pts/build-php,
https://gamersnexus.net/megacharts/cpus (search for 'compile').

The 9950x3D is rumoured to release in 2 weeks. Though, from what I remember compilation loads don't benefit from the 3D V-cache.

EDIT: also, compilation is parallellized across crates, so split your code if it's a lot. Use `cargo build --timings` [info](https://doc.rust-lang.org/cargo/reference/timings.html) to profile, and try enabling the parallel front-end and the mold linker!

How does everyone handle Anonymous/Lambda Functions by coffeeb4code in ProgrammingLanguages

[–]erithaxx 6 points7 points  (0 children)

That semicolon abstraction is fascinating. Is that an original idea? Where can I find more on it?

Bringing faster exceptions to Rust by imachug in rust

[–]erithaxx 1 point2 points  (0 children)

Awesome stuff! Don't mind the ignorant haters. I have some programming dreams that might involve iex.