Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

Ronald Raiden posted:

the only "web" language that starts with a "p" is php. Python works great for doing web dev because of rad poo poo like django, but it's a general purpose language that I think is pretty great. Not the thing to use if you are doing something performance intensive though.

php is exactly as "general purpose" as python is, and it's actually a good language too

Adbot
ADBOT LOVES YOU

tef
May 30, 2004

-> some l-system crap ->
hee

tef
May 30, 2004

-> some l-system crap ->
why, it's even more general purpose, because it's a templating language. python is only the former.

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror
there's really very little you can't do in php. i've written desktop apps with great, responsive interfaces using php-gtk. when i was taking a p. math-heavy crypto course in college i did all my projects in php, though sometimes i had to let them run overnight

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp

Tiny Bug Child posted:

though sometimes i had to let them run overnight

were they able to get away

MononcQc
May 29, 2007

vapid cutlery posted:

man it's really alarming how many node.js apologists there are

"I think node.js is the best thing that ever happened. Finally we got a honeypot for bad devs."

Sapozhnik
Jan 2, 2005

Nap Ghost

Jonny 290 posted:

were they able to get away

Peanut and the Gang
Aug 24, 2009

by exmarx

Tiny Bug Child posted:

when i was taking a p. math-heavy crypto course in college i did all my projects in php, though sometimes i had to let them run overnight

when it comes to crypto, slow algorithms are actually a good thing because the slower it is, the more time it takes to brute force. so when you want the best, supreme security, use the slowest of the slow. use php.

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Cocoa Crispies posted:

perhaps "without having to learn" is what makes p-languages more suited for web poo poo

being able to make something new quick gives you a huge price and schedule advantage as a contractor

being regressive ftw

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
i'll just be a huge shitlord forever and write lua and native code

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

barbarianbob posted:

when it comes to crypto, slow algorithms are actually a good thing because the slower it is, the more time it takes to brute force. so when you want the best, supreme security, use the slowest of the slow. use php.

whoa this is a good point. of course if you really wanted it to be as slow as you could get, you'd want ruby on rails. but using php is a pretty good "tradeoff" in that it is not a complete shitpile like ruby is

coaxmetal
Oct 21, 2010

I flamed me own dad

barbarianbob posted:

when it comes to crypto, slow algorithms are actually a good thing because the slower it is, the more time it takes to brute force. so when you want the best, supreme security, use the slowest of the slow. use php.

as long as anyone who tries to crack it also uses php it works great!

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

Ronald Raiden posted:

as long as anyone who tries to crack it also uses php it works great!

only the php version will have just the right implementation bugs

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

vapid cutlery posted:

only the php version will have just the right implementation bugs

https://bugs.php.net/bug.php?id=55439

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
http://fakedoomsday.wordpress.com/2011/11/11/ted-right-node-js-cancer/

quote:

TED RIGHT, NODE.JS = CANCER

RUBY = OBSTRUCTED BOWEL

JAVASCRIPT = BRAIN TUMOR

YOUR DYNAMIC TYPING LACKS MATHEMATICAL RIGOR

ME, WHO KILLED SUPERMAN, HAS MATHEMATICAL RIGOR.

ME WRITE CODE THAT DOES NOT FAIL, LASTS YEARS IN PRODUCTION, RUNS TRILLIONS OF TIMES PER DAY.

YOUR poo poo BARELY RUN WITHOUT LOADS OF MEMORY AND HIGH LATENCY.

NODE.JS IS CANCER BECAUSE THREADS ARE GOOD. THREADS ARE MANAGEABLE. OPERATORS CAN UNDERSTAND THREADS.

YOUR EVENT LOOP IS A CANCER AND BARELY UNDERSTANDABLE. HOW YOU TELL IF SYSTEM IS OVERLOADED? HOW YOU FIND BAD REQUEST? HOW YOU SAVE PRODUCTION SYSTEM FROM BAD REQUEST? THAT RIGHT, YOU CANT. YOUR HAVE TO RESTART PROCESS, I KILL THREAD, SAVE THE DAY, gently caress LOIS LANE REAL GOOD.

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
excepting coq name a type system with full mathematical rigor

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
standard ml's

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
tcl

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Otto Skorzeny posted:

standard ml's

welp the goddamn "proof of soundness" paper is 404'ed off the internet and i'm too lazy to find it. i'll take your word for it

MononcQc
May 29, 2007

shrughes
Oct 11, 2008

(call/cc call/cc)
node.js's "threads are easy to understand" are just a form of async-callback-as-effect-type.

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

shrughes posted:

node.js's "threads are easy to understand" are just a form of async-callback-as-effect-type.

i thouhgt the "big deal" behind node was a weird smugness around threads being "too hard" so the whole thing is a single event loop

shrughes
Oct 11, 2008

(call/cc call/cc)

vapid cutlery posted:

i thouhgt the "big deal" behind node was a weird smugness around threads being "too hard" so the whole thing is a single event loop

Well yeah and it's basically an awkward way to implement cooperatively scheduled threads in a language with effect types.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

vapid cutlery posted:

i thouhgt the "big deal" behind node was a weird smugness around threads being "too hard" so the whole thing is a single event loop

the "big deal" is that you can program in the same language on the server and client

i think node is neat and everything but it ends up as this tangle of closures and im generally not a fan

fine for small stuff tho

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>

rotor posted:

the "big deal" is that you can program in the same language on the server and client

i think node is neat and everything but it ends up as this tangle of closures and im generally not a fan

fine for small stuff tho

i dont really see the advantage to that when the language isn't suited to doing anything useful

MononcQc
May 29, 2007

node.js is the PHP of tomorrow

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

MononcQc posted:

node.js is the PHP of tomorrow

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

vapid cutlery posted:

i dont really see the advantage to that when the language isn't suited to doing anything useful

its suited to me not having to learn php

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
imgur's api is broken or something

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

vapid cutlery posted:

imgur's api is broken or something

okay thanks for checking that :)

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
crisis averted i fixed it

cowboy beepboop
Feb 24, 2001

rotor posted:

its suited to me not having to learn php

same but i'm doing everything in my power to avoid learning javascript. compile python to javascript eery day

cowboy beepboop
Feb 24, 2001

i lied i haven't tried that yet

Meiwaku
Jan 10, 2011

Fun for the whole family!

my stepdads beer posted:

same but i'm doing everything in my power to avoid learning javascript. compile python to javascript eery day

Clojurescript saved my soul, and it can help save yours too!

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
Why would I avoid JavaScript by using a worse language?

EVGA Longoria
Dec 25, 2005

Let's go exploring!

Meiwaku posted:

Clojurescript saved my soul, and it can help save yours too!

why clojurescript vs coffeescript?

Nomnom Cookie
Aug 30, 2009



more obscure = better than

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.
lisp = better than

that plus clojurescript compiles down to google's closure code

clojure rules, sexp for data serialization all day every day

cowboy beepboop
Feb 24, 2001

:q:
Python code:
@JSVar("jQuery")
def ready():
    jQuery('h1').click(on_click)

@JSVar("jQuery", "Math.random", "Math.floor")
def on_click():
    if jQuery('#when_clicked').html():
        r = Math.floor(Math.random() * 255)
        g = Math.floor(Math.random() * 255)
        b = Math.floor(Math.random() * 255)
        color = "rgb(%d, %d, %d)" %(r,g,b)
        jQuery('#when_clicked').attr('style', 'background-color: ' + color)
    else:
        jQuery('#when_clicked').html("you clicked it!")

jQuery(ready)

Adbot
ADBOT LOVES YOU

syntaxrigger
Jul 7, 2011

Actually you owe me 6! But who's countin?

it honestly seems like many programming language 'choices' people make are based on faith, branding, and experience, however programming languages are supposed to be tools. Them being tools also implies that their differences are intended to optimum in a subset of instances while being 'just ok' in others.

is there any place that actually evaluates programming languages based on what they do well instead of this whole 'he said, she said' brand loyalty nonsense?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply