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

Fastest practical language

Name: Anonymous 2010-07-04 12:22

I know this is subjective so there is no one answer but I would like to hear your opinions anyway.

Which language has the fastest performance for most tasks while still being practical to write in?

Name: Anonymous 2010-07-04 12:27

>>1
How is C not practical?

Name: Anonymous 2010-07-04 12:55

English.

But seriously:

(1) Languages do not have speeds.
(2) C.

Name: Anonymous 2010-07-04 12:55

>>2
thatsthetroll.jpg

Name: Anonymous 2010-07-04 13:01

(1) Languages do not have speeds.
I was under the impression that a given language feature could prevent optimizing compilers from being as aggressive as it could be. Then again, I don't know much on this subject, so I don't know, for example, what such a feature might be, and why it would be difficult to optimize.

Name: Anonymous 2010-07-04 13:51

Embed Lua in C.

Name: Anonymous 2010-07-04 14:10

I'd much rather discuss man xarn or lack thereof.

Name: Anonymous 2010-07-04 14:25

>>5
You're not at a point where you should care about performance. Start by understanding how C translates to assembly, then you can start checking out compilers, interpreters, run-time systems, etc.

Protip: Optimization doesn't matter as much as you think. C code with only the most basic optimizations can still vastly outperform optimized Python (eg.: TCC).

Name: Anonymous 2010-07-04 14:26

Scheme -> stalin

Name: Anonymous 2010-07-04 14:36

>>8
Is this the part where I point out that using C is a (usually premature) optimisation in itself?

Name: Anonymous 2010-07-04 14:36

PHP

Name: FrozenVoid 2010-07-04 14:54

(Stalin produces C code)
"numeric double integral, which was roughly 20x faster in
stalin than in tuned C or Fortran."(notice the replies)
http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.scheme/2007-12/msg00050.html



__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-04 14:57

>>12
I like how they don't show what C code stalin makes in these posts.
Expert Lisp trolling.

Name: Anonymous 2010-07-04 15:00

>>10
It might be the part where you inadvertently reveal you don't actually know any C.

Name: Anonymous 2010-07-04 15:09

>>14
If you have decided from the outset to use C instead of a higher level language, then you have decided to reject a lot of various resource management techniques and "safety features" that you get in those languages. Even in so called "unoptimised C" you have removed a lot of additional bookkeeping and I think it is absolutely fair to call this an optimisation, and in many cases a premature one.

Name: Anonymous 2010-07-04 15:19

>>15
Hey, >>14 was right.

Name: Anonymous 2010-07-04 15:27

C is always faster. If any other compiler was shown to be faster, people would switch to it in droves, for writing faster code.
This didn't happen, because all those "Faster than C" claims are bullshit.

Name: Anonymous 2010-07-04 15:28

>>16
So, how is coding in C not a premature optimisation in 2010?

Name: Anonymous 2010-07-04 15:31

[offtopic]
There isn't a single good thread on /prog/ right now, I think we should nuke this place and start again.
[/offtopic]

Name: Anonymous 2010-07-04 15:36

>>19
NUKE MY ANUS

Name: Anonymous 2010-07-04 15:38

JavaScript. Its[sic] used everywhere and is robust enough to write browser extensions in it.

Name: Anonymous 2010-07-04 15:42

>>13
While I too am skeptical about claims of 20x speed improvements, Siskind does make claims about being faster than C/Fortran in his research statement, so you could email him and ask for his benchmarks.

Name: Anonymous 2010-07-04 15:55

Extraordinary claims demand extraordinary evidence.
Stalin code claim is like claiming that in 30 years(~1980 modern C compilers), all programs have used a code path which is twenty times slower and optimizations never helped at all.
I would have believed if Stalin was writing optimized SSE4 assembly blocks, but its just plain old C code. My best guess is they use a shitty C program written in a hurry as straw-man for "hand-tuned C" and really optimized Scheme code for Stalin.

Name: Anonymous 2010-07-04 16:02

>>23
Christ sake, calm down it's not like the guy fucked your mother. Why is it that fucking C weenies lose all their shit when it comes to questions of performance. No, it's not likely that the program was 20x faster. Yes, it is likely that they guys C was not infact "hand tuned". Any reasonable man would have thought that.

Name: >>24 2010-07-04 16:03

and another thing, READ THE FUCKING FOLLOW UPS

Name: Anonymous 2010-07-04 16:06

Proposal
It has come to my attention that /prog/ is incapable of having any form of a serious conversation regarding questions of performance. I suggest that we no longer entertain these threads and suggest that henceforth we defer all such retarded nonsense to /pr/. Who is with me?

Name: FrozenVoid 2010-07-04 16:22

>>24
Its because without performance, there isn't any other reason to use C. Generic C code is just too buggy and high-maintenance.
If only the ability to optimize and tune code was proven inferior to some other language, C would be done.



__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-04 17:48

>>27
C code is just too buggy and high-maintenance.

You are just as wrong as most people that use it.
C does exactly what its supposed to do and does it good. The fault why C is "buggy" is actualy the cstdlib.

C is a systems language, it represents memory manipulation in a generic, abstract and portable way. C is like a portable assembler. And the only people who should use assembler are people who work on a very low level.

Name: Anonymous 2010-07-04 17:54

>>28
IHBT

Name: Anonymous 2010-07-04 18:04

* C is portable assembler.

Name: Anonymous 2010-07-04 18:07

C is portable assembly with macros for struct member access.

Name: Anonymous 2010-07-04 18:09

BBCode!

IoooooI
IoooooI
IoooooI
IoooooI
IoooooI

Name: Anonymous 2010-07-04 18:11

>>30
>>31
Thank you very much

Name: Anonymous 2010-07-04 18:23

LLVM is portable assembly  .

Name: Anonymous 2010-07-04 18:26

Assembl{y,er} differences are not yet a meme; keep trying, everyone.

Name: Anonymous 2010-07-04 18:34

Go fuck yourself.

Name: Anonymous 2010-07-04 18:46

>>36
I haven't worn out your mom yet.

Name: Anonymous 2010-07-04 20:30

>>35
What sort of bastard regular expression syntax is that?

Name: Anonymous 2010-07-04 20:44

>>35
Nah, it's okay.

Name: Anonymous 2010-07-04 21:38

>>38
Glob.

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