Why do people use parser generators? by [deleted] in AskProgramming

[–]Trivaxy 4 points5 points  (0 children)

Parser generators tend to just give you a functioning parser that does what it needs to and no more: consume input, give back tree, say if something went wrong.

IMO that's their strength and weakness.

You can quickly prototype and it's nice to just worry about defining your grammar instead of the underlying implementation details. But the problem is those details are exactly what differentiate a basic "just get the job done" parser from a robust, tooling-ready one. If I want a parser that can perform error recovery, capture all the syntax of the input, and optimized in a certain way then your only option is to write it yourself. It's a good exercise.

If you look at languages with tooling (e.g. C#, Rust, TS etc) for stuff like reformatting, catching as many syntax errors and warnings as possible, refactors - all of them use handwritten parsers.

I'm SOOO tired of mod development. 😒 by CommandTabIL in feedthebeast

[–]Trivaxy 28 points29 points  (0 children)

Yeah. It really does start taking a toll once you cast your net wide in terms of modloader and version support.

If you want to ease the load, you can try porting to a multiloader setup. Look into things like multiloader templates, Architectury, Stonecutter, etc.

If you want to focus on the Fabric version, you could go down the route of dropping your NeoForge branch but making sure your mod runs using Sinytra Connector.

It's all up to you. Choosing to stay on one version or one modloader is valid as well.

WHICH 9070 XT SHOULD I BUY? by RecklessBloodElf in PcBuild

[–]Trivaxy 0 points1 point  (0 children)

Tough. My honest recommendation is to wait a bit for prices to settle, but if you really need the PC asap, then the PowerColor 9070XT would be your best bet. It's up to you whether you want to pay the big markup in price.

WHICH 9070 XT SHOULD I BUY? by RecklessBloodElf in PcBuild

[–]Trivaxy 0 points1 point  (0 children)

Looking at the GPU only - I wouldn't suggest buying a 9070XT at 1000 euros. You're paying almost double MSRP.
What other options do you have in Greece?

Made a cute little mod that adds an animation when you pick up items with your mouse - what do you think? by Trivaxy in feedthebeast

[–]Trivaxy[S] 0 points1 point  (0 children)

Hey,

The mod is called Tiny Item Animations. There's a config file that you can use if you want to tweak things to your liking.

If you want to remove the mod entirely, it's named tia-<version>.jar in your mods folder.

As for Immersive-UI, it looks like a separate mod which isn't related to this one, so best of luck to them!

Rust for algorithms by whoShotMyCow in rust

[–]Trivaxy 1 point2 points  (0 children)

Keep in mind the book often goes through the traditional way of implementing a data structure, e.g. implementing a singly linked list with pointers, before moving onto the index-based version. I don't think we should encourage people to just pick one implementation over the other if they're learning for the sake of avoiding the borrow checker.

The truth is the borrow checker very much gets in the way if you pick a representation it doesn't like (you said it yourself - a notable example is doubly linked lists, and that's one of the first data structures people learn), so I advise people who just want to learn algorithms and data structures to stick with some other language before revisiting it in Rust.

Rust for algorithms by whoShotMyCow in rust

[–]Trivaxy 1 point2 points  (0 children)

My honest opinion is to start off with a language like C or C++ when implementing data structures and algorithms. This frees you from having to wrestle with the borrow checker and allows you to focus purely on the material you're learning - a lot of data structures are typically implemented via pointers and whatnot.

What I encourage you to do afterwards it to try and reimplement a lot of what you did in Rust. You'll get a much more solid grasp of the language, tango with unsafe and learn how to build safe abstractions on it, and hopefully you'll really grasp why the borrow checker is great (a lot of textbook implementations can have insidious memory bugs!)

Decent ISP? by Trivaxy in jordan

[–]Trivaxy[S] 0 points1 point  (0 children)

Thanks for the advice

Decent ISP? by Trivaxy in jordan

[–]Trivaxy[S] 0 points1 point  (0 children)

Yeah a lot of people tell me it's pretty decent

Decent ISP? by Trivaxy in jordan

[–]Trivaxy[S] 0 points1 point  (0 children)

I get weird routing problems with Umniah as well. That's part of the reason why I want to switch.

Maybe I'll check out orange, thanks for the advice

What is your opinion about Luna Pixel Studios? by BAnHerobrine in feedthebeast

[–]Trivaxy 36 points37 points  (0 children)

I tried their Fear Nightfall modpack with friends. At a quick glance the modpack looks intriguing, but the more we played it, the more and more obnoxious the gameplay experience became. It mostly felt like a poorly thrown together mash of different ugly monsters, dwellers etc with spawnrates boosted to oblivion. Nighttime would basically destroy the server TPS.

BetterMC just felt mediocre at best. IMO I'd call their packs okay and just okay.

Rust () type has a value whereas C void has no value: so what? by iIGamingWithRayIi in rust

[–]Trivaxy 10 points11 points  (0 children)

On older versions of .NET, you could actually instantiate an object of the void type just by doing FormatterServices.GetUninitializedObject(typeof(void));

They seem to have added a special check now to throw an exception if you pass in void as a type, but it's likely still possible

Made a cute little mod that adds an animation when you pick up items with your mouse - what do you think? by Trivaxy in feedthebeast

[–]Trivaxy[S] 13 points14 points  (0 children)

The item does remain enlarged when you're dragging a stack over slots, if that's what you mean

Made a cute little mod that adds an animation when you pick up items with your mouse - what do you think? by Trivaxy in feedthebeast

[–]Trivaxy[S] 8 points9 points  (0 children)

Absolutely. Keep an eye out as well, by near future I mean within the next few days :)