what if, an alternative to both mastodon _and_ pleroma, which is much less memory-heavy and is a single executable file you drop on your server
help us out #rustodon
https://github.com/rustodon/rustodon
@er1n after I saw a friend writting a 900 lines long code in rust for a script that would be at most 50 lines of python I was very less hyper by this technology for this kind of applications >_>
@bram @Dekken @er1n
It also catches more bugs since it's quite strictly typed and has linear types and no exceptions.
I'm also curious what your friend was writing and if they were utilizing rust and its crates properly.
Anyways, as a user, I'd rather run something written by rust programmers than python programmers.
@bram @Dekken @er1n
Yea but GNU Social, Mastodon and Pleroma are already here and have done most of the experimental stuff, so Rustodon can be developed based on them.
And fewer but better implemented features are better (at least for me) than a pile of Ruby thrown together. The stricter type system can also make the code more structured and simpler to extend.
LOC is not a good metric for code IMHO, or otherwise people would still be learning Perl.
@grainloom @bram @Dekken @er1n
And import import agrees with "explicit is better than implicit" and Rust is quite more explicit.
Also, don't wanna start (more of a) language war but traits are better than classes.
@autogestion @bram @er1n I've quite literally written a web server that supports websites in C++
@wxcafe @CobaltVelvet @bram @er1n i wanna try it out real bad but i don't have any practical use cases for it right now
@Gargron @wxcafe @er1n same, it looks really cool but meh, what should I do with it?
@CobaltVelvet I'm really interested in examples then because, from here, except if you do this a().b().c().... to compress things on one line python (and ruby) seems way more expressive than rust :o
also my experience of having 5% of my productivity level in haskell compare to python made me very skeptical of those langage for fast and short dev which is 90% of my use cases
@bram @Gargron @wxcafe @er1n @CobaltVelvet
Crystal ftw
(go hide in a corner)
@bram @Gargron @wxcafe @er1n @CobaltVelvet > full website without a line of pony code
I JUST WANT TO SEE
plz
@Gargron @bram @wxcafe @er1n @CobaltVelvet *smell llvm*
@Technowix @Gargron @bram @wxcafe @er1n @CobaltVelvet ... smellvm 🤔
@Technowix @Gargron @wxcafe @er1n @CobaltVelvet https://patterns.ponylang.org/ (but yeah, their website sucks)
@wxcafe @er1n and you get way slower web development has ruby/ror or python/django are amongs the best things out there for that
Always a trade off between fast and more flexible development and slower memory usage. That's a strategical choice and you generally have better chance of sucess if you choose the first when you have no idea on the potential success.
Rewrite can come later if really needed.
@er1n *snap*
That's going in my dank software collection
@er1n Good luck with that, but if you think I’m putting a binary blob executable on my web server you have several more thinks on their way soon. ¯\_(ツ)_/¯
@rotatingskull well, you can build it from source then lol
given the amount of trust put in mastodon's massive codebase (when considering deps, node, ruby), a prebuilt binary is not that bad for most people
Thanks for the reply.
@er1n hey is there like a high bandwidth conversation place I can ask you questions about rustodon?
@er1n
why the hell rust commands are 'diesel' and 'cargo'??