(joke in the title stolen from a redditor)

Context: some Rust kid vandalized cppreference.com today.

You are viewing a single thread.
View all comments
95 points
*

That kid is an asshole because cppreference is doing the lord’s work.

Also, I know that language choice is one of the most important decisions when starting a new project but, personally, I work on a highly performance sensitive project that’s written in PHP. If you think you need Rust to be performant or type safe then you don’t really know what you’re doing yet. It makes it easier and increases theoretical limits - that is all.

permalink
report
reply
25 points

I want to tell the computer what it should do, not what the computer things I can do. That’s why I use scratch

permalink
report
parent
reply
19 points

I saw md5 checksum implemented in scratch.

permalink
report
parent
reply
11 points

There is also a whole OS written in scratch. A very basic one but still

permalink
report
parent
reply
2 points

then you don’t really know what you’re doing yet.

Can you elaborate on this? How are you guys making PHP so performant? Do you call C programs from it or something?

permalink
report
parent
reply
15 points
*

No, we just use good algorithmic approaches including an emphasis on lazy evaluation. It’d take out application like 20x as long to compute 2+2 compared to one written in C but computation in PHP isn’t our main bottleneck - it’s efficient network connection handling and psql query performance.

Our PHP code is maintainable and expressive that makes it much easier to tune performance where it counts.

permalink
report
parent
reply
8 points

I would like to hear more

permalink
report
parent
reply
6 points

I am happy to answer any and all questions.

permalink
report
parent
reply
9 points

Is this a new project that was intentionally started in PHP or something legacy? Any interesting benchmarks? Like minimal wire to wire network processing time and where the bottleneck is?

permalink
report
parent
reply
3 points

Is PHP strongly typed?

permalink
report
parent
reply
3 points

It’s a choice left up to developer but you can have static and runtime type checking enabled for as many functions as you desire. Theoretically you can have collection subtype checking but I’d say that PHP is still quite frail here as proper collection typing lacks any template-style typing but needs dedicated collection types.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.8K

    Monthly active users

  • 1.4K

    Posts

  • 32K

    Comments