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

Pages: 1-4041-

Native languages for web development

Name: Anonymous 2012-08-13 22:01

Why are "native" languages* almost never used for web development? Shouldn't FastCGI be just as good as what web servers do with Perl or PHP? What am I missing?

* languages designed for AOT compilation to opcodes like C++, Ada, C, D, Pascal, or Go

Name: Anonymous 2012-08-13 22:08

Because the CPU is not the bottleneck for the vast majority of web apps, and writing in those languages is more error-prone and much slower.

Name: Anonymous 2012-08-13 22:13

>>2
What is the bottleneck for web apps?

Name: Anonymous 2012-08-13 22:14

>>2
What is the bottleneck for web ``apps''?

Name: Anonymous 2012-08-13 22:16

because javascript is the lightest and fastest language

Name: Anonymous 2012-08-13 22:19

>>5
I'm talking about backends, not frontends.

Name: Anonymous 2012-08-13 22:26

>>6
see >>5

Name: Anonymous 2012-08-13 22:27

>>2
then why the fuck does everyone complain about their servers being toasted

hell, even FIOC is a better choice than PHP

Name: Anonymous 2012-08-13 23:09

>>4,8
Disk access. It's always disk access.

Name: Anonymous 2012-08-13 23:15

>>9
DICKS ACCESS

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-08-14 5:53

>>3,4
Network latency.

>>9
Not unless the server is in the same LAN as the client.

Name: Anonymous 2012-08-14 6:30

Go is often used (at least relative to the number of Go programmers) and it's a great choice for web backends, since it's fast, supports concurrency and parallelism, has great web server related routines in the stdlib, is type-safe and memory-safe, many errors are caught at compile time (not on runtime, like the interpreted languages), etc.

Name: Anonymous 2012-08-14 6:41

>>12
Even Google doesn't use Go. It's all Java and FIOC.

Name: Anonymous 2012-08-14 6:53

>>13
Google do not need to rewrite existing and capable systems to Go. It'd be sensible for Google to use Go for new systems.

Name: Anonymous 2012-08-14 10:16

>>3
Ability to handle concurrent requests is the worst bottleneck. Until you use BEAM-based language you will probably not be able to solve 10k problem even with the best CPU and 9000GB RAM.

Name: Anonymous 2012-08-14 10:51

Except Go is a fringe language even at Google. Erlang master race reporting in.

Name: Anonymous 2012-08-14 11:09

Perl is better than Ruby, PHP, Python and Go in terms of sheer productivity. http://news.ycombinator.com/item?id=4379142

Name: Anonymous 2012-08-14 11:43

>>13
Go is a quite new language and Google isn't going to rewrite everything just to do it in Go. They are using it for new things, though, for example, a part of YouTube (and probably more they haven't disclosed).

Name: Anonymous 2012-08-14 18:31

Who needs Go? If I wanted a compiled language that was slower than most interpreted languages, I'd use PerlCC.

Name: Anonymous 2012-08-14 18:33

>>19
Even if it was as fast as Python, it'd still be better than most competitive languages.

Name: Anonymous 2012-08-14 19:06

C++ with the STL and Boost can make you as productive as you would be with a scripting language. Prove me wrong.

Name: Anonymous 2012-08-14 19:18

>>18
the problem with Go is it doesnt have OO which I think limits its ability to replace C++ (which is what it was intended to do)

Name: Anonymous 2012-08-14 19:21

I think the reason that statically typed languages are not used in programming is you have to know the types at compile time, and since its not possible to predict what kind types you will recieve till runtime, a program wont run without a lot of parsing that wouldnt have to be done with a dynamically typed language. This is the problem with Dart, it has fake static typing, so it is really not simplifying anything.

Name: Anonymous 2012-08-14 19:28

>>21
>>22
sametroll

Name: Anonymous 2012-08-14 19:52

>>23
This has to be one of the dumbest posts I have ever read on /prog/.

Name: Anonymous 2012-08-14 20:49

>>25
It makes sense to me. Sometimes you don't know if a variable like last_name or email is going to hold a string or a number, so you have to add run-time checks. JavaScript adds the run-time checks for you, freeing your mind to work on more important things, like writing callbacks.

Name: Anonymous 2012-08-14 21:03

>>26
Not to mention, JavaScript will conveniently convert objects to different types when performing operations on them, which is a very useful feature most language designers forget; how many times  have you written code but spent so much time debugging type errors? It's no wonder JavaScript is the foundation for the future!

Name: Anonymous 2012-08-14 21:14

>>23
>>26
>>27
get out

Name: Anonymous 2012-08-14 21:26

>>28
Please optimize your quotes.

Name: Anonymous 2012-08-14 21:26

>>28
I dunno, they're pretty funny with how obvious they are, plus the thought of someone actually believing them makes me lel.
It's not like they're gonna get out anyways, hell they're probably an oldfag doing some absurdly obvious trolling to entertain themselves.

Name: Anonymous 2012-08-14 22:17

>>29
RUDE!

Name: gcc -O3 --funroll-quotes 2012-08-14 22:50

>>29
But I already optimized them.

Name: Anonymous 2012-08-15 1:56

What in Heck is FIOC?

I thought my teacher told me to stick with MAWK anyways to parse TXT.

Name: Anonymous 2012-08-15 2:21

Why would you use anything besides functional languages like javascript or haskell?

Name: Anonymous 2012-08-15 2:26

>>34
javashit
1/10
lel

Name: Anonymous 2012-08-15 8:51

>>25
It's not even the dumbest post in this thread. (That's >>11.)

Name: Anonymous 2012-08-15 14:20

LISP, the poor man's Haskell

C, the crippled subset of C++

Name: Anonymous 2012-08-15 14:24

JavaScript the aborted son of Java

Name: Anonymous 2012-08-15 15:54

>>37
Haskell is fucking shit.  C++ is horrendous.

Name: Anonymous 2012-08-15 16:26

>>40
Cool story bro.

Name: Anonymous 2012-08-15 16:27

how do i make an account i need one to see something and i can't make the account can someone help me?

Name: Anonymous 2012-08-15 17:43

>>34
>>37
Haskell 'users' are the biggest posers, they are worse than Ruby hipsters because they dont get anything done. They think learning Haskell has made them the astrophysicists of programming when actually they would be hard pressed to do anything beyond a fibanacci function. They are like Arch users who sit and enter ls -la into their console all day thinking they are a Linux power user. They do nothing but gawk at the 'awesomeness' of Haskell code in beginners Haskell books all day. The largest programming channel in Freenode is #Haskell by far with about 800+ in the channel, much more than #C++, more than twice as many as #C.

Name: Anonymous 2012-08-15 18:01

>>42
How is Ruby "hipster"? It's the most popular scripting language.

Name: Anonymous 2012-08-15 18:29

>>43
I bet >>42-san comes from /g/. It's okay, he will crawl back to his nest of shit eventually on his own.

Name: Anonymous 2012-08-15 18:34

>>33
What in Heck is FIOC?
Seriously? Is this your first time on /prog/?

Why the hell did /q/ have to bring so many retards to my beloved textboards?

Name: Anonymous 2012-08-15 18:34

>>45
Sorry, forgot to sage

Name: Anonymous 2012-08-15 19:02

>>46
But what is FIOC?

Name: Anonymous 2012-08-15 19:19

>>47
Fast Inverse Of Convolution

Name: Anonymous 2012-08-15 19:23

>>47
"Forced indentation of code", essentially a meme-derived nickname for the Python programming language (because it forces you to indent code).

ya noob

Name: Anonymous 2012-08-15 20:41

>>49
you helped him, you ``monster''

Name: Anonymous 2012-08-15 21:21

ONE WORD: /THE FORCED GETGOING OF THE BACKPLATE, THREAD OVER/

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