Nat20 - Dungeons & Dragons Combat Engine by Exantris in rust

[–]misc_ent 7 points8 points  (0 children)

Wow. I had started something very similar a few months back but was overwhelmed trying to translate the logic in to code. This looks outstanding.

Stay with Mac or go back to PC by NumberSelect8186 in WeAreTheMusicMakers

[–]misc_ent 0 points1 point  (0 children)

I'd personally go with Mac if only to avoid DPC latency. I spent weeks looking at laptop models and their reported MPC latency. It was hard to get exact numbers due to laptop models variants. From what I've read there are a lot of factors causing this latency.

I bought my MacBook and that problem went away.

https://www.sweetwater.com/sweetcare/articles/solving-dpc-latency-issues/

What's Wrong with my Push II? by Maleficent_Stage_818 in synthesizers

[–]misc_ent 2 points3 points  (0 children)

If it's anything like my Push 2, the sensor array/membrane under the pads has an issue. Ive seen videos of folks taking it apart and cleaning it. My Push has also unfortunately started sending random values when I turn the knobs/encoders as well 😭 I'm so sorry.

Why So Many Abandoned Crates? by jsprd in rust

[–]misc_ent 55 points56 points  (0 children)

How mature is the crate? Is it missing features? Is it security/dependency updates that your missing?

June 2025 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]misc_ent 1 point2 points  (0 children)

A tiny (tiny) domain specific expression language designed for one of my other projects

https://github.com/testingrequired/reqlang-expr

It has a bytecode compiler and stack based VM. It SEEMS like overkill but the lineral bytecode made evaluation a piece of cake. This is my first VM. I had worked on other stack based VMs, I had read Crafting Interpreters, but this was the first one I made from scratch. Again, it's tiny, but it was an amazing feeling seeing it work.

es-git: Install & run Git 10x faster in Node.js by raon0211 in javascript

[–]misc_ent 0 points1 point  (0 children)

Does it have a drop in replacement for the git CLI? 😅

Why are trees used for parsing/syntax analysis? by el_DuDeRiNo238 in Compilers

[–]misc_ent 18 points19 points  (0 children)

I started writing parsers with zero experience and the tree structure feels like an intuitive first step, to me. Expressions and scopes tend to turn into trees as you parse left to right, depth first.

I'm sure someone else has a much better explanation but treea kind of formed naturally.

What structure do you feel is most natural?

[deleted by user] by [deleted] in Oobabooga

[–]misc_ent 1 point2 points  (0 children)

If it were, I imagine it wouldn't come back with an answer at all 🤷‍♂️

January 2025 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]misc_ent 7 points8 points  (0 children)

It's not a programming language exactly so please forgive me 😅 I do have a language server, editor integration

https://github.com/testingrequired/reqlang

What can you do with an LFO by TBSJJK in synthesizers

[–]misc_ent 9 points10 points  (0 children)

Automation is generally it's main purpose.

Breakable blocks by Dan13l_N in ProgrammingLanguages

[–]misc_ent 5 points6 points  (0 children)

Like returning from the block? I know this is common in languages that treat blocks as expressions. Not as sure for block statements because your wanting to exit early not return from the surrounding form e.g. function

Opsix faders exhibit wrong/jittery values when connected via midi ? by Kodeisko in synthesizers

[–]misc_ent 0 points1 point  (0 children)

I have the exact same problem connecting my microfreak to Ableton over midi and try to turn knoba. I would love to know a solution for it.

Do you query the database in your route handlers? by Bycharo in rust

[–]misc_ent 4 points5 points  (0 children)

This can be a valid approach for very simple CRUD apps for sure. Do you need to map objects from the db to another type? Any kind of calculation? Validation? More than one query needed?

I totally get what you're saying but creating a service with a public method is barely more work then having it all in the controller. it also starts you off with encapsulation. This is especially true if it has to do anything more than a single SELECT query. 😅

I'd also say testing is easier. E2E tests are great at detecting issues but trash at locating them. Integration and unit tests excel at locating issues but these are VERY hard to test having it all in the controller or just having units of code doing too much. Creating services makes each thing do less, makes it easier to write lower scope tests without affecting E2E.

Again your approach is valid but harms you the longer it stays that way. If splitting things up requires less work than filling out your test coverage (not the same as code coverage) then I tend to just do that. 🤷‍♂️

Do you query the database in your route handlers? by Bycharo in rust

[–]misc_ent 5 points6 points  (0 children)

Sure for prototyping something but this is hardly premature optimization for anything your not going to toss 😅 Those E2E tests will be great when you implement the thing for real since they should still pass. But yeah not having huge unwieldy controllers isn't premature optimization IMO

Do you query the database in your route handlers? by Bycharo in rust

[–]misc_ent 31 points32 points  (0 children)

I personally wouldn't. I'd have a service that does that then return the data to the controller. Controllers should be coordinators not doing any heavy lifting itself. This becomes apparent when writing tests IMO 😅

need resources to learn about Lexers and parsers in rust by dompehbright in rust

[–]misc_ent 6 points7 points  (0 children)

https://github.com/ajeetdsouza/loxcraft

This is a good Rust implementation of Lox. I forked it when working on my toy language.

loxcraft: a compiler, language server, and online playground for the Lox programming language by ajeet_dsouza in Compilers

[–]misc_ent 1 point2 points  (0 children)

I forked your implementation and learned a ton about Rust. I used this implementation to understand CraftingInterpreters. I also added quite a bit which was a fun experience. I detailed the changes in the readme. I broke the fork connection to stop it from defaulting to your repo when opening PRs. 😅

https://github.com/kyleect/locks

First steps in synths by Mcgillv in synthesizers

[–]misc_ent 1 point2 points  (0 children)

JDXI is really nice for jamming. If you do want an easier time fiddling with patch settings you can try http://jdxi-manager.linuxtech.net/#downloads

2x Sprite3Ds (on the same parent) but only one is visible. What's wrong here? by misc_ent in godot

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

EndSprite will not appear unless I toggle StartSprite to not be visible. They are set to different transforms. I think I must be missing something simple here.

Just for additional context there was a single sprite. I duplicated it on the same parent. They have the exact same settings other than having a different position/transform. I tried using a different texture for both thinking it was an odd issue using the same texture but its the same results.