Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP beat C in speed

Name: Anonymous 2016-01-15 9:11

I was reading reddit
random thread in r/programming
benchmark circlejerk
I join in and talk shit
Suddenly i need to back up my claims(that C/C++ is fastest evar)
try to find benchmarks
see
https://benchmarksgame.alioth.debian.org/u64q/performance.php?test=regexdna
Slowly back out of thread

Name: Anonymous 2016-01-15 9:32

I was reading reddit
So go back there.

Name: Anonymous 2016-01-15 11:08

>>2
Don't you feel lonely after sending the only other poster to reddit?

Name: Anonymous 2016-01-15 12:13

Entirely dependent on regex engine. Not a very interesting benchmark.

Name: Anonymous 2016-01-15 12:25

JACKSON 5 GET

Name: Anonymous 2016-01-15 15:02

LLLLLLLLLLEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
>LE GO BACK TO LE REDDIT MEME!!!!!!!!!!!! LELLLLELLLLLLLLLLLL
>LE IMAGEBOARD REDDIT HATE
>DEY STEAL OUR MEME!!!!!!!!
EGINNN GINNN GROOOOOO LELELLLLLL GRO

Name: Anonymous 2016-01-15 16:12

this isn't really PHP vs C, it's more pcre (implemented in C) vs tcl_re (implemented in C).

no surprise "PHP" aka pcre wins.

Name: Anonymous 2016-01-15 17:00

>>7
Nope: there is also a pcre C code and it lost badly

C gcc #4 7.47s https://benchmarksgame.alioth.debian.org/u64q/program.php?test=regexdna&lang=gcc&id=4

Name: Anonymous 2016-01-15 17:53

>>1
So what is the PHP regex engine written in?

Exactly.

Name: Anonymous 2016-01-15 18:00

>>9
So what is the Haskell runtime engine written in?

Name: Anonymous 2016-01-15 18:05

>>10
Is there one?

Name: Anonymous 2016-01-15 18:10

Name: Anonymous 2016-01-15 18:14

>>12
Huh, would you look at that.
* This file is written in a subset of C--, extended with various
* features specific to GHC. It is compiled by GHC directly. For the
* syntax of .cmm files, see the parser in ghc/compiler/cmm/CmmParse.y.

Name: Anonymous 2016-01-15 18:21

>>10
what has haskell got to do with anything. go away.

Name: Anonymous 2016-01-15 18:22

>>8
woah!! How the hell???

can anyone explain this?

Name: Anonymous 2016-01-15 19:07

>>14
I'm from Monad.Conrol there are wild monads lurking ITT, possibly unsafe IO.

Name: Anonymous 2016-01-15 19:13

>>13
Presumably that's only for the few .cmm files, and not all the tons of plain .c/.h files there.

Name: Anonymous 2016-01-15 21:18

>>16
wild nomads

Name: Anonymous 2016-01-15 21:38

>>16
possibly unsafe IO.

module System.Condom where

import System.Random

rubberUp :: a -> Safe a

punchAHole :: Safe a -> a

data PullOut a = InTime (Safe a) | TooLate a

theGame a :: Pullout a
theGame a = do
sleeplessNightsLottery <- getStdGen
let (yourFate, _) = randomR (1, 100) sleeplessNightsLottery
if yourFate < 10 then
InTime $ rubberUp a
else
TooLate a

Name: Anonymous 2016-01-15 22:34

>>19
IO (safe or otherwise) in the Insertion monad requires I before every O and O after every I. There is no recursion unless you have an abnormally long penis and multiple Dickhole instances available.
The question is, how does Anal typecheck?

Name: Anonymous 2016-01-16 2:42

>>22
check em

Name: Anonymous 2016-01-16 3:00

PHP is by far the worst abomination of a programming language ever. It was my first language when I was 13 and it almost discouraged me from programming. FUCK PHP.

Name: Anonymous 2016-01-16 5:50

>>22
I hope you're not serious. A language with dynamic typing and automatic garbage collection discouraged you from programming? I doubt you would be aware of its legitimate and significant flaws as a beginner and a child. You probably wouldn't have any special needs that PHP would prevent you from doing. I don't mean to be insulting, but you did say you were a beginner. That's not to excuse how awful of a language it really is, but I seriously doubt it could have given you that much trouble. I would expect a minefield like C++ to give you much more trouble.

Name: Anonymous 2016-01-16 6:01

I love how LISP fails everything because LISP is shit

Name: Anonymous 2016-01-16 6:06

>>23
Funny you say that because right after I learned PHP, I went for Sepples. I found it very refreshing compared to PHP. PHP is an absolute mess of a language that leads to bad spaghetti code, _by design_. There are no sane design principles. Even Javascript is more organized.

The one and only reason PHP became popular is how stupidly easy it is to set up the environment and deploy. Any idiot can make a CRUD site with PHP. "Hello World" in PHP literally is not far off from a service that uploads files. Instant gratification.

PHP is a very short sighted solution. Any sufficiently large PHP project will have to be rewritten, bar none.

Name: Anonymous 2016-01-16 6:44

>>25
Any sufficiently large PHP project will have to be rewritten, bar none
Facebook

Name: Anonymous 2016-01-16 7:33

>>25
Any sufficiently large PHP project will have to be rewritten, bar none.
The same is true for Lisp. See Reddit, Yahoo! Stores, and many more examples.

Name: Anonymous 2016-01-16 10:34

>>26
Facebook took the "we have lots of money so we can do this the stupid way" and "transpiled" all their PHP code to C++.

Name: Anonymous 2016-01-16 10:37

>>22
PHP is a beginner's language. Have you ever considered that you might just be stupid?

Name: Anonymous 2016-01-16 11:09

PHP is a Jewish ploy to make goyim write bad, insecure, unmaintainable shit code. [/thread]

Name: Anonymous 2016-01-16 18:11

>>30
Lisp is a Jewish ploy to make goyim write bad, insecure, unmaintainable shit code.
PHP is Lisp without the arrogance.

Name: Anonymous 2016-01-16 19:03

>>31
Lisp was made by Guy Genteele.
PHP was created by ZioND Technologies in Israel.

Name: Anonymous 2016-01-16 19:44

>>32
You could sing all the parts of Adam Sandler's "Chanukah Song" with names of Jewish people involved in Lisp and not even cover half of them.

Name: Anonymous 2016-01-16 20:00

>>33
So that's why the "AI" thing turned out to be a hoax.

Name: Anonymous 2016-01-16 20:03

Note that this is a text about programming, unlike most Lisp books, which are used as a preparation for
work in artificial intelligence. After all, the critical programming concerns of software engineering and
artificial intelligence tend to coalesce
as the systems under investigation become larger. This explains why
there is such growing interest in Lisp outside of artificial intelligence.
Alan Perlis
Perlis was born to a Jewish family in Pittsburgh, Pennsylvania

Name: Anonymous 2016-01-16 20:19

>>3
There's still the Sussman.

Name: Anonymous 2016-01-16 20:35

>>36
He's Jewish too.

Name: Anonymous 2016-01-17 11:23

What is the White Man's language?

Name: Anonymous 2016-01-17 11:33

>>38
Plankalkul

Name: Anonymous 2016-01-17 17:35

>>38
"GRUNNUR"

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List