News for hackers. Stuff that matters.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by rabidferret on Friday February 05, 2016 @07:48PM (#11045892)
You should take a closer look at what Diesel is doing with it's query builder. We actually do attempt to support the full power of every supported backend (of course there's still holes which need to be filled), with proper type guarantees which map to the semantics of Postgres. The main difference being that Diesel can check your queries for correctness at compile time.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by u320 on Friday February 05, 2016 @07:58PM (#11045935)
The problem is that joins and projections give rise to new record types. The only way to support this in a type safe and natural way is if you have anonymous records in the host language, which Rust doesn't. On top of this there is some other metaprogramming stuff that is necessary in order to facilitate the DSL embedding.

Look at what Microsoft did with LINQ. You can't pull that off in Rust no matter how much you want to.

Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by tatterdemalion on Friday February 05, 2016 @09:04PM (#11046144)
This can be accomplished with procedural macros.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by rabidferret on Friday February 05, 2016 @09:33PM (#11046237)
This can be accomplished without procedural macros, too. ;)
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by andrewflnr on Saturday February 06, 2016 @01:04PM (#11048843)
Nevertheless, the goal here is to build an ORM for Rust. Why waste time describing what you think it can't do?