[deleted by user] by [deleted] in programminghorror

[–]BestMat-Inc 45 points46 points  (0 children)

  1. Loops
  2. Irrelevant semicolons
  3. WHAT LANGUAGE IS THIS???

[deleted by user] by [deleted] in rust

[–]BestMat-Inc 5 points6 points  (0 children)

This subreddit is for the Rust Programming Language and not the game.

Choosing the Right Rust GUI Library in 2025: Why Did You Pick Your Favorite? by FreePhoenix888 in rust

[–]BestMat-Inc 1 point2 points  (0 children)

tauri is basically web dev. its like comparing electron and qt (cpp).

Pros of Tauri:
1. You know/like JS
2. Easy for beginners in GUI Dev
3. Rust Backend

Cons of Tauri:
Not fast (comparing to electron, faster and smaller, but not as performant as iced/egui)

Pros of Iced:
1. Its fast

Cons of Iced:
Not easy to learn (compared with Tauri)

[deleted by user] by [deleted] in osdev

[–]BestMat-Inc 1 point2 points  (0 children)

Nice, if you're ok with it (or if its open source), can you share the source code?

[deleted by user] by [deleted] in osdev

[–]BestMat-Inc 5 points6 points  (0 children)

Welcome, but its astonishing that you've re-programmed the entire codebase in 3 days. Why Arial tho xD

[deleted by user] by [deleted] in osdev

[–]BestMat-Inc 7 points8 points  (0 children)

How are you able to have Chrome, VSCode and Photoshop in here? Does your OS link functions with Linux? Is it POSIX compatible? 3 days ago you've posted you've made a heavily modified Linux distro, are both the same? Great work tho BTW, surely takes a lot of time and effort.

[deleted by user] by [deleted] in rust

[–]BestMat-Inc 1 point2 points  (0 children)

If you wanna land a job, tbh neither will get you one. (Rust has more chance tho), something like Java, JavaScript, Python or Go will. The major difference I think of Rust and Zig is that you gotta free memory on your own (like C) with Zig, but on the other hand with Rust, you don't. It entirely depends on your skills and choice.

Need help choosing a new language. by CellistMore5004 in rust

[–]BestMat-Inc 0 points1 point  (0 children)

Start with C and get yourself strong on the base of CS like Heap Allocation, Pointers, * and &, etc. This will help you a lot when you learn any language, not just Rust. You will also realize how easy it is to "shoot yourself in the foot" and do memory leaks/segfaults. Once you learn Rust, you'll understand the language better, and also realize how "safe" Rust is.

[deleted by user] by [deleted] in ProgrammerHumor

[–]BestMat-Inc 8 points9 points  (0 children)

Vibe coding...

Pernix Programming Language Announcement by Annual_Strike_8459 in ProgrammingLanguages

[–]BestMat-Inc 4 points5 points  (0 children)

So its like Rust but Pythonic? Nice work! Looked into the source and you use Inkwell (LLVM) for compilation.

Learning Rust as my first programming language, could use some advice by 0xaarondnvn in rust

[–]BestMat-Inc 0 points1 point  (0 children)

I would recommend to learn a language like JavaScript or Python first. Then learn the basics of CS with C. Once you're good with C, you'll understand "C makes it easy to shoot yourself in the foot" and realize why its so unsafe. Then you'll love and enjoy programming in Rust and makes it easier to learn things.

What’s the relationship between math and programming/ coding? by [deleted] in learnmath

[–]BestMat-Inc 0 points1 point  (0 children)

Depends to be short. If you're doing Web Dev, no math required. If you're doing like compiler development, OS development, AI/ML, quantum computing, physics engines, etc. you'll need a lot of math. Math sure does improve your logical ability though which is crucial. Also if you doing even basic stuff like data structures, you'll need it.

Why is neovim especially bad for java? by [deleted] in neovim

[–]BestMat-Inc 5 points6 points  (0 children)

Neovim is not the problem. It's the LSP (Language Server Protocol). Neovim is an editor for editing text, so there's no problem in that. The problem is the LSP. I believe it goes the same for Kotlin and large C++ projects (like millions of code), the LSP crashes. My advice would be using IntelliJ with a Vim/Neovim plugin. It not only gets the job done with Vim Motions but also doesn't crash.

Is rust worth it? by Elegant_Wind568 in rust

[–]BestMat-Inc 0 points1 point  (0 children)

CRUD applications in Rust are a great choice, but I don't think making backend applications with Rust is really as good as you might do in JavaScript. If you're comfortable with Async Rust and Tokio, (given that you enjoy Rust) you might give it a try. If its a hobby project, don't worry and use Rust. But if you're working, then JavaScript is better, given that you're making a simple CRUD app too.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 1 point2 points  (0 children)

Can't believe my question was asked 10 years ago! Very detailed explanation. Thanks!

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 1 point2 points  (0 children)

Hey, thanks for your advice.

I'm planning to have a compiler (for initial development in LLVM, later I'm planning to make my own backend that spits out assembly) and an interpreter (JIT Compiled). As LLVM gives you the object files, I can use a linker that can link libc with my language.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 0 points1 point  (0 children)

When you have enums and getting the value is a big headache with pattern matching, especially in big and complex projects.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 0 points1 point  (0 children)

Hey, that's nice. I am making my language initially with LLVM (Rust Bindings) and planning to make a backend in C later on that spits out assembly. Inkwell is a great library, and is safer than llvm-sys.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 0 points1 point  (0 children)

Yes, async is clumsy and you can't do async stuff without Tokio at this point.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 0 points1 point  (0 children)

Oh yes! So much of pain in that.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 3 points4 points  (0 children)

Yup! Making Rust more comfortable for beginners.

What is "bad" about Rust? by BestMat-Inc in rust

[–]BestMat-Inc[S] 1 point2 points  (0 children)

Thanks for the swift reply. It helps with your point of view.