logoalt Hacker News

jerf • today at 6:29 PM • 5 replies • view on HN

And also supposedly in Rust too? https://github.com/laravel/rust-framework

I don't get this. Frameworks generally end up tied to their implementation language because they should be taking maximum advantage of whatever the language provides. You can non-idiomatically port a framework out of its home language and retain similarity as is possible, while still possibly losing some things that just can't be ported, or you can idiomatically port the framework in to the new language and get something that is harmonious with the new language but has significant deviations from the original.

Or you can split the difference and get the worst of both worlds.

It's not like you can take something that implements some particular authorization technique and cross that module between languages.

And the gap between PHP to either of Rust or Go is enormous, meaning the gap between the two choices I outline above is also going to be quite substantial.


Replies

pampa • today at 6:37 PM

Laravel didn't really take advantages of the php language.

It was a baroque implementation of a rails-style framework, that was heavily influenced by enterprise java coding style.

➕ show 2 replies
adrianthedev • today at 6:30 PM

Yup! Released yesterday.

giancarlostoro • today at 6:34 PM

So.. back when Claude Code went from Zig to Rust people were accusing the developer of doing it as a PR stunt, only I knew it was not, its insanely trivial to port projects using Claude, I had done it months prior, I took a C# project from 2009... had Claude go file by file, write up docs, and port it all to Rust. It had its bugs and quirks, but the insane amount of it that actually worked was impressive. I was also able to add new things that the old code base didn't have, including additional SQL databases, the original only supported MySQL.

I think it took me maybe a week or two tops?

So yeah, this is unsurprising, I've debated porting a few different projects I love to Go or Rust similar to this endeavor but doing both Rust and Go seems excessive to me.

➕ show 2 replies
jasonlotito • today at 6:44 PM

This is all covered in the announcements. You should probably read/watch those first so you are addressing specific concerns rather than pontificating.