Open Source Software Community - it's about ethics in Code of Conducts

  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
For a web-forum? Why? Have you worked much in Rust? And PHP? (which PHP versions if so as that's relevant).
I've worked with PHP before and while Rust seems an odd choice, if the libraries are robust then having compiled code will be a lot faster then using an interpreter all the time. Would likely make updates a bit more inconvenient but the end result should be worth it.
 
I've worked with PHP before and while Rust seems an odd choice, if the libraries are robust then having compiled code will be a lot faster then using an interpreter all the time. Would likely make updates a bit more inconvenient but the end result should be worth it.
I dislike these un-quantified sort of statements. I asked what version of PHP you worked with and I'm also curious the depth of your experience because you're making very sweeping assessments there. The likely slowest link in the chain for most web-forums would be the database and the connection thereof. With cached server-side pages (the model Null is looking at) response time for a request is going to be very fast with PHP and the real question would be simultaneous request handling which frankly is going to be as much or more on the web server (nginx, apache, lighttpd, tomcat - ha ha, just kidding about that last one) and the number of connections it can handle. Pre-interpreted PHP is fast. Especially with all the optimisations that have been coming in since 7.4 onwards.

With PHP you have a long-standing set of tools and support exactly for serving websites. Setting up a PHP backend for nginx, apache, whatever is a standard thing well-documented. You have packages available in PHP for pretty much everything you might want web-related or DB-related with mature version management solutions and security reviews. Meanwhile, I don't see many advantages that Rust has over PHP 8.0 beyond your unquantified "will be a lot faster than using an interpreter all the time". In fact just that statement puts the lie to your understanding of PHP because the PHP code will be interpreted once when updated, or at least infrequently depending on caching configuration, and thereafter just runs from the opcache very quickly. Rust is faster, but in a webserver? Does that make any relevant difference to serving requests to the user? I very much doubt it. If you want to do some oddly computationally intensive stuff with direct memory access for some reason to do with your webserver, such as, I don't know, some odd computation of page sizes or reaction tallying, you could just code that in C/C++/Rust and call that from PHP if needed and have the best of both worlds. Though I doubt you'd need to unless you're doing some atypically large and complex operation on your data.

I'm going to be brutally frank, I think your statement is un-quantified hand-waving and that your "I've worked with PHP before" is some light dabbling at best. You say "if the libraries are robust" ("if" They're going to be less mature and less focused on the web-domain than PHP), "will be a lot faster" (really? Than cached PHP? In what scenarios and how relevant is this to a scenario where you're overwhelmingly bottlenecked by DB and webserver networking and often just serving cached pages anyway?) and worst: "the end result should be worth it". On what basis do you take the added complexity of developing in Rust, the less mature libraries and ecosystem, working with a lower level language, put it all in a one-man-does-everything scenario and weigh all that against unquantified and unproven speed advantages in this context and say "should be worth it"? You don't know that it "should be worth it" at all.
 
I'm sure rust will be splendid for coding forums software with when rust devs quit jerking off to how great rust is and get around to making the stuff people need sometime in 2039
 
The consistently unhinged behavior of the rust tranny cult has been putting me off so much that I, to this day, know basically nothing about rust. It might be the best programming language ever made for all I know. It doesn't matter. I usually pride myself on not caring about these things and approaching on merit but with rust that was just a bridge too far for me. That is quite the accomplishment.
 
With PHP you have a long-standing set of tools and support exactly for serving websites. Setting up a PHP backend for nginx, apache, whatever is a standard thing well-documented. You have packages available in PHP for pretty much everything you might want web-related or DB-related with mature version management solutions and security reviews. Meanwhile, I don't see many advantages that Rust has over PHP 8.0 beyond your unquantified "will be a lot faster than using an interpreter all the time". In fact just that statement puts the lie to your understanding of PHP because the PHP code will be interpreted once when updated, or at least infrequently depending on caching configuration, and thereafter just runs from the opcache very quickly. Rust is faster, but in a webserver? Does that make any relevant difference to serving requests to the user? I very much doubt it. If you want to do some oddly computationally intensive stuff with direct memory access for some reason to do with your webserver, such as, I don't know, some odd computation of page sizes or reaction tallying, you could just code that in C/C++/Rust and call that from PHP if needed and have the best of both worlds. Though I doubt you'd need to unless you're doing some atypically large and complex operation on your data.


 
Well three people clicked Like on my post and one person clicked Autistic, which I consider this thread's equivalent to Win.

EDIT: And one person who hates PHP clicked Disagree on principle and then googled some links literally from the era of PHP 5! :D

I've never learned Rust, though I learned D which was Rust before there was Rust. I did read the Wikipedia page on it which isn't enough to really give a judgement. It had some things that seemed a little odd to me like its Variable Shadowing (variables are non-mutable by default but in Rust you can redefine these non-mutable variables within the same scope) and the language has an implicit default type I'm not fond of. And just some stuff that isn't necessarily wrong but just feels strange and a bit woolly like how if there's no return statement in a function it just takes the last expression in the function that you've omitted a statement terminator from and uses that. And there's some more modernist syntax here and there like for value in 4..=10 { ... } which is not something that freaks me out. The lifetime stuff seems nice enough but not sure in this day and age that's not caught by compilers in C++ already?

Anyway, I wont judge (most) languages until I've actually used them professionally. The community around it seems toxic, though.

My point is that good or bad, you pick the best tools for the job. And when you're writing complex web forums, that comes down to more than which language benchmarks Hello World most quickly. Fun aside, I did look up benchmarks and there's a whole page of them and on digging found that they're re-interpreting the PHP from scratch every time for their comparison versus compiled Rust. I don't doubt that it's significantly faster, but that sort of comparison is plain ignorant.
 
Last edited:
EDIT: And one person who hates PHP clicked Disagree on principle and then googled some links literally from the era of PHP 5! :D
Sorry, I’m so old that those were very relevant sources when I was picking a programming language.

I find it fascinating that you think a programming language with that much brain rot and asbestos could ever be fixed into something worth using.
 
Sorry, I’m so old that those were very relevant sources when I was picking a programming language.

I find it fascinating that you think a programming language with that much brain rot and asbestos could ever be fixed into something worth using.
The fact that you have no idea the differences between PHP 5 and current PHP indicates more ignorance on your part than mine. Why don't you try making your own arguments as to why PHP would be a worse choice for writing a web forum in than Rust, instead of googling links?
 
The consistently unhinged behavior of the rust tranny cult has been putting me off so much that I, to this day, know basically nothing about rust. It might be the best programming language ever made for all I know. It doesn't matter. I usually pride myself on not caring about these things and approaching on merit but with rust that was just a bridge too far for me. That is quite the accomplishment.
Anymore, if I see a programming language be hailed as the next sliced bread I give it a wide berth. I see far too much that's propped up on hype by techbros who fetishize technology. It's not just trannies, it's everyone. It's how we ended up with Docker-everything, automate-everything, and stuff built that relies upon 100 other pieces of software, any one of which could go defunct or be updated in such a way that it breaks everything.
 
write a gorgeous front-end in Vue
you can't write a gorgeous front-end in vue for the same reason you can't build a beautiful house out of shit
Though I understand he had plans to have all the pages pre-built on the server and sent directly to the browser doing things like calculating the number of posts per page and sending out the finished page complete as pure HTML and CSS. It would be incredibly lean and quick on the client end. Could be made very quick on the backend as well as you'd have nearly every thread page cached. Reactions invalidate a cache page but the code could easily trigger a refresh of the cached page as needed and the older a page is the less often people will add new reactions. It honestly sounds pretty slick. But you could do both.
this is how white men were meant to create dynamic websites. josh is merely among the first people to notice this

I dislike these un-quantified sort of statements.
don't mind betonhaus he is just extremely mentally challenged
we still love him though
And just some stuff that isn't necessarily wrong but just feels strange and a bit woolly like how if there's no return statement in a function it just takes the last expression in the function that you've omitted a statement terminator from and uses that.
rust does this because it's trying to pretend to be an actually good functional language like scheme. unfortunately it does not mimic much of anything else from scheme, like a sane syntax or proper tail calls
Anyone who poo-poos PHP without providing modern reasons is stuck 10 years ago and most likely got Stockholm syndrome from using Go.
php is a mostly pointless language if you consider it as a programming language alone, but you should just use whatever language you can express your ideas best in (might just be php)
 
It has been a long time since I used PHP, I just recall it as a interpreter language with poor input sanitation. If Null is planning to transition to Rust then I assume he has his reasons as that's not something you do over a whim.
 
It has been a long time since I used PHP, I just recall it as a interpreter language with poor input sanitation. If Null is planning to transition to Rust then I assume he has his reasons as that's not something you do over a whim.
He stated his reasons to be to 'piss off the trannies'.

Now that's a fine reason and I wont critique it. But it has nothing to do with PHP. And saying that PHP is a language with poor input sanitisation isn't really... that's not a language feature. You should always sanitise inputs and that's true of any language including Rust.
 
Back
Top Bottom