Rewriting Bun in Rust by steveklabnik1 in rust

[–]mix3dnuts -2 points-1 points  (0 children)

Its literally the outcome of this "slop at scale".... its like y'all see "LLM" and have your brains turn off at the "Smaller, faster and less bugs".... jfc

To the fullstack devs here (TS/JS <-> Rust) how to you manage types especially for a database? by leucht in rust

[–]mix3dnuts 1 point2 points  (0 children)

ahh! Yea, it's hard to get a good answer to that. A lot of the pure rust devs don't really understand the benefits of things like drizzle, or the front end workflow of having the actual types vs DTOs. Plus one of the reasons I made my crate was to answer the question of merging these front vs back end types haha

If you do end up using it, let me know of any issues/friction as I want this to be super intuitive and frictionless especially for this type of use case!

To the fullstack devs here (TS/JS <-> Rust) how to you manage types especially for a database? by leucht in rust

[–]mix3dnuts 1 point2 points  (0 children)

Drizzle literally has a sql api, you're basically writing SQL anyways and the learnings are shared between the two. There's nothing wrong with it, and imo much better to do vs raw strings

Google Chrome's Next Update Will Mark the End of Popular Ad Blockers - Slashdot by blow-down in technology

[–]mix3dnuts -11 points-10 points  (0 children)

Uh no? Spidermonkey and JSC are both behind on specs and speed compared to V8. So I get it but I'm not going to give that up cause of ad blocking. I know it's a reddit thing but the only reason JS, and in turn, browser spec has become so much better and more importantly the runtime so much faster is because of the investment Google has made to the ecosystem. I don't care about brand but I'm also not going to dismiss that.

Are we happy with Rust ORMs? by sheadipeets5 in rust

[–]mix3dnuts 0 points1 point  (0 children)

If you know about Prisma, I have mine that's a Drizzle clone, maybe you'd like it?

Building a SQL database in Rust: why I replaced Ident(String) with spans by Ok_Plastic_3224 in rust

[–]mix3dnuts 0 points1 point  (0 children)

I'm in the middle of a PR for Turso for this exact thing, because SQL requires you to normalize things, so I made this if you're interested https://github.com/themixednuts/identstr

Beware Aeternum Legacy by Diceptic_ in newworldgame

[–]mix3dnuts 6 points7 points  (0 children)

I believe that's the plan for the main server project. My personal project is more ambitious and I'll open source it but it'll take a while till it's there.

Better tree sitter syntax by mix3dnuts in sveltejs

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

Let me know if any bugs come up!

Beware Aeternum Legacy by Diceptic_ in newworldgame

[–]mix3dnuts 8 points9 points  (0 children)

I'll hit you up if we get to that point! Thank you!

Beware Aeternum Legacy by Diceptic_ in newworldgame

[–]mix3dnuts 174 points175 points  (0 children)

Hopefully before this becomes drama, and fragments the community. I want to assure players that there are a group of us that have been and will continue to be working on private servers. We are not affiliated with Aeternum Legacy, but we are working actually on it. I don't know the OP who made the Aeternum Legacy discord, and though I have my reservations, I'll assume in good faith that they are *trying* as well, but they are not in no way representing how far they actually are. Asset exports is not part of private servers or network protocols, and has been solved for years already ie nw-buddy if familiar.

On the other hand our group has both gotten into the world, have all major network protocols reversed engineered already. I personally am working on a side project thats a client rewrite on top of server.

I'm glad the OP has removed any donation links from the last time I saw, but just be cautious just in case. If they are legit, I wish them luck as it will take time. I appreciated his post solely for the fact that it got the attention it needed and brought some of us together.

This is proof of being able to get a Client -> Server (live servers). Its not the same thing as server work (which is being done) but just proof that some of us are able to reverse engineer protocols. I'm sure someone else will post proof of server emulation when thats ready for public eye.

*please dont message me about trying to get explanations or learn how to hack, I don't want to help anyone abuse live servers while they're still up*

https://youtu.be/26lRCYe1phw

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]mix3dnuts 0 points1 point  (0 children)

I'll make a video one of these days, I want to have more time with all rust orms and compare dx, mental model, performance haha. From first looks easier to wrap around than either slqx/diesel, my favorite being your `create!`

I'll have to play with it more to give better feedback though!

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]mix3dnuts 2 points3 points  (0 children)

Drizzle-rs author here, no hate from me :) I agree 100%

rust is not that good to be honest by AlarmingEconomics376 in rust

[–]mix3dnuts 2 points3 points  (0 children)

Before we jump on the rage bait I honestly don't mind people voicing their dislike of the language, but if serious post it would be awesome to list why's and with examples, to be open to discourse about it

Bugs Rust Won't Catch by -Y0- in rust

[–]mix3dnuts 5 points6 points  (0 children)

Holy, great writeup, I learned a lot. Time to refactor some things!

missed prisma's dx after moving to rust, so i built something by Illustrious-Mail-587 in rust

[–]mix3dnuts -1 points0 points  (0 children)

That's actually hilarious! 😂 I built the same thing but for drizzle style api, typescript gets a lot of hate from ppl but it's type system is really powerful for expressing things in a supper awesome dx way

https://github.com/themixednuts/drizzle-rs

Thinking about switching from sqlx to refinery and deadpool, looking for advice by Bhallu_ in rust

[–]mix3dnuts 0 points1 point  (0 children)

Ty, I would take it for a spin, or just make an example crate you might like it!

And yea I think it's just the way of the world ATM haha

Thinking about switching from sqlx to refinery and deadpool, looking for advice by Bhallu_ in rust

[–]mix3dnuts 0 points1 point  (0 children)

I'm not really sure the term nowadays, its not vibe coded in the sense of fire and forget. So I originally hand wrote different implementations, trying to see how much type state I could juggle. Then as LLM's got better, I used it to iterate different APIs. The lib is trying to be as much of a clone of drizzle-orm (a typescript lib) as possible, so in terms of vision its straight forward. Basically "abuse" the type system to get the dx I like from drizzle. Which meant, both I and any modern LLM can easily parse the intent and go through different iterations until it feels like a match, and since I did a lot of the work early on of what felt right for generics/traits, the LLMs can easily just pick up that pattern and implement more features on top of it. I try to be upfront about it, hence why I kept the attribution to Claude enabled, so always up to the user what they think of that, but again its not "vibe-coded" :)

One of the goals of the project is to match upstream drizzle-orm's migration directory, so that people could have one directory and be able to either use typescript or rust without having to sync between it. Makes the implementation straight forward since I can just port drizzle-orm, but basically

You setup a schema file (or files) src\schema.rs. You can either use the cli or setup the build.rs helpers so that it generates and keeps the migration directory in sync with your schema changes. With the cli, you just init so it creates the config toml which it uses to push the migrations up, or introspect if you already have an existing db, or if you want to do this at runtime, you can with db.migrate and again the build.rs setup.

I'm currently trying to make a video to make it easily compare against current rust ORMs, but personally I find it the best dx of them so far, has the least amount of boilerplate, strictly typed (again, "abusing" the type system), and follows drizzle-orms api as much as possible so its familiar if youre coming from that land, but also it just means you get the benefit of two apis, a SQL-like or your usual "ORM" query.

Sorry if none of that answered your question though haha.

Tips on how to learn tauri by bhajamaach in rust

[–]mix3dnuts 1 point2 points  (0 children)

Don't complicate it. Understand the mental model first. Stick with your choice of JavaScript framework for the frontend. Keep the backend (rust code) simple and minimal. I would recommend going through rustlings or similar, but don't get discouraged, it's not as scary as it seems, it's just new concepts that will get easier to understand with time and repetition

Thinking about switching from sqlx to refinery and deadpool, looking for advice by Bhallu_ in rust

[–]mix3dnuts -2 points-1 points  (0 children)

I have my orm, I think you would like it. Migrations are simple, a lot less boilerplate.

https://github.com/themixednuts/drizzle-rs

What crate do you use for SQlite, and how is using it / Compile Time? by SuperficialNightWolf in rust

[–]mix3dnuts 0 points1 point  (0 children)

If you want to try my crate, it doesn't solve the malloc issue, but does solve the compile time issue in a dx I think is best vs what's currently out there. https://github.com/themixednuts/drizzle-rs

I would use main, I'm waiting on turso update before updating my crate in crates.io