:thinkhappy: 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

why the hell rust commands are 'diesel' and 'cargo'?? :facepalm:

@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 @er1n yeah, rustodon might become the most performant fediverse application out there (unless its database or networking will remain a bottleneck), but with another language it could have been completed so much sooner with so much more developer happiness...

@gargron @bram @er1n maybe it was just bad code or a missing library

i mean my rust is both cleaner faster and sometimes shorter than my python and i've been doing python every day for years

@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 @er1n ? writing stuff in python takes less lines than in C, that doesn't mean we're gonna start writing OS kernels in python? or web browsers?


@bram @er1n no, but you write gitea in go for example. same principle. and if it can help me have less than 6 gigs of ram on the server to run a web app, it would be nice.

@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.

@bram @wxcafe if you take a peek at the Rustodon code, it's not very different from what you'd do with Flask

Up until a year ago, I'd have agreed with you. Rust was definitely painful to use.

It has changed a lot since, though, I feel it's now actually _nice_ to write stuff in it.

Still a relatively steep learning curve, though!

@er1n pleroma is actually going to bundle releases into a single executable soon, including the elixir and Erlang bits, so the only dependency will be postgres, but fair enough on the faster



'Newest platforms for Thought Policing your proximate universe'

@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

@er1n hey is there like a high bandwidth conversation place I can ask you questions about rustodon?

@er1n I do love that about rust, the single executable.

I bet if you limited the amount of users it could support you might even get away with an embedded database.
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!