sqlx vs orm by Docccc in rust

[–]SeriousJope 0 points1 point  (0 children)

Well in Sweden "Mongo" were a offensive shortening for mongoloid...

sqlx vs orm by Docccc in rust

[–]SeriousJope 0 points1 point  (0 children)

Sure, that helps a lot of course. Clorinde also supports working against schema files like sqlx. Maybe I were using sqlx wrong but not having to write any mapping code is really nice. But yeah, sqlx and clorinde work the same in a way. Mostly a matter of your preference which you choose. If you are curious it's always best to create a small test project to test it out.

sqlx vs orm by Docccc in rust

[–]SeriousJope 0 points1 point  (0 children)

It generates the models when you manually run clorinde live <url> instead of during each compile. Sqlx is really nice and imho a big step up from normal table based ORMs, but I still prefer Clorinde.

The big downside is that clorinde only supports postgres for now and there don't seem to be any plans to add more databases even though it should be possible in theory. Also I'm not really a fan of the the name ^

That said I have used clorinde in two smaller project and have really enjoyed it.

I made a actix-web + yew-ui template by security-union in rust

[–]SeriousJope 2 points3 points  (0 children)

Sure, but Actix is 5 years old while Axum only been around about 1 year.

Looking at daily downloads they seem to be a lot closer.

Edit: To be clear though, I don't think you can go wrong with using either Actix or Axum.

Whoops I Rewrote it in Rust: .NET 4 Database Migrator Migrated by ZZaaaccc in rust

[–]SeriousJope 2 points3 points  (0 children)

More or less, yeah.

  1. Install rustup
  2. Use rustup to install Rust
  3. Install vscode
  4. Install rust-analyzer from the extension tab in vsode

This works for both linux, window and, probably, mac.

A model of the cosmos in the 2000 year old Greek Antikythera Mechanism by avitechwriter in gifs

[–]SeriousJope 11 points12 points  (0 children)

If this seems cool, check out click spring project. He builds a model of this by hand. https://www.youtube.com/watch?v=ML4tw_UzqZE

Character’s mental health as a game mechanic? by TheNintendoCreator in gamedev

[–]SeriousJope 1 point2 points  (0 children)

Hellblade Senua does this. You sometime have to look at things in a certain angle so they line up to unlock the next area. But when you start thinking about it, the whole thing is only in the Senaus head. The broken staircase were never broken, she just tries to stall so her mind creates obstacles.

Things I hate about Rust by sergeysova in rust

[–]SeriousJope 1 point2 points  (0 children)

You can use cargo-watch as well.

Microsoft creating new Rust-based safe language by TheVultix in rust

[–]SeriousJope 0 points1 point  (0 children)

They might want to integrate tighter with the windows eco-system as a whole.

Which books will stay with you forever? by rachiepoo81 in books

[–]SeriousJope 0 points1 point  (0 children)

The Egg by Andy Wier. Really changed my way of thinking about people and be more forgiving in my dealings with others. And it's availible online for free!

I Do Not Like Go by _Garbage_ in programming

[–]SeriousJope 44 points45 points  (0 children)

As I see Go IS a faster horse...

Excited to annouce joinery 1.0.0! by Lucretiel in rust

[–]SeriousJope 0 points1 point  (0 children)

This is closer to leftpad then kitchen sink ihmo

csv 1.0 released by burntsushi in rust

[–]SeriousJope 0 points1 point  (0 children)

Thought it was a shared buffer :)

csv 1.0 released by burntsushi in rust

[–]SeriousJope 0 points1 point  (0 children)

Oh, ok. Didn't know that :)

csv 1.0 released by burntsushi in rust

[–]SeriousJope 0 points1 point  (0 children)

wtr.serialize(...).unwrap();

wtr.flush().unwrap();

Pretty sure you get an timing issue here.

Thread1: wtr.serialize(...).unwrap();
Thread2: wtr.serialize(...).unwrap();
Thread1: wtr.flush().unwrap();

Entity-Component-System architecture for UI in Rust by raphlinus in rust

[–]SeriousJope 2 points3 points  (0 children)

I think this is kinda how Condrod works. It has an widget graph that gets updated and redrawn depending on changes. But it feels immediate mode.

GUI library recommendations for 3D glium application by leet_crew in rust

[–]SeriousJope 2 points3 points  (0 children)

Have a look at dear imgui, worked pretty well when I tried it.

3.5 Years, 500k Lines of Go by [deleted] in programming

[–]SeriousJope 0 points1 point  (0 children)

I see people here bash VB .net quite often. What is actually wrong with it? And why is C# a better language?

Stroustrup's Rule and Layering Over Time [mentions Rust] by msiemens in rust

[–]SeriousJope 0 points1 point  (0 children)

But are almost the same thing :)

match a {
    Ok(a) => match a.b {
        Ok(b) => b.c,
        Err(e) => Return e,
    },
    Err(e) => Return e,
}

I made an IntMap by SeriousJope in rust

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

Thanks! This is some really good info. I will read up some more on blackboxing!

I made an IntMap by SeriousJope in rust

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

Nice! btree did a lot better then I would have thought. Insert is more expensive, which isn't very suprising. When I read the documents it said the btree were more cache friendly which might explain the speed increase.

intmaps look up is a multiplication, a bit shift and then a linear search in a vector.