Give ne back my hat!

Scripting language survey

Which is the best scripting language and why?

I know bash, perl, php, javascript so don't spend too many words on those. I'm looking for a general purpose language I can use on the console and on the web. I hear good reports about python but I just can't overcome my bigotry against indentation-is-significant.
Permalink , Cup 
October 9th, 2017 12:57am
I hate (learning) Python for the same reason. Feels like I'd rather donate a kidney than go over that "indentation is significant" crap.

Other than that, Bash and Perl. I stay out of Javascript since with high probability this means I'm not ending up in a job doing web UI.
Permalink Io 
October 9th, 2017 3:20am
Python is Mr. Garrison's flying machine: http://farm2.static.flickr.com/1017/1413506458_2228ff1271.jpg

It beats the airline companies butt really... can't they find a better way for controls than that indentation buttfuck?
Permalink Send private email Io 
October 9th, 2017 3:49am
Another Python programmer at work: http://farm2.static.flickr.com/1017/1413506458_2228ff1271.jpg
Permalink Send private email Io 
October 9th, 2017 3:51am
If you can't deal with Pythons indentation then perhaps you aren't smart enough to be writing software.
Permalink libtard_uk 
October 9th, 2017 7:28am
Yes. Or perhaps you're a cretin pulling generalizations out of his ass.
Permalink Leoz Maxwell Jilliumz 
October 9th, 2017 7:33am
Python is the least insane of the scripting-type languages I've used, though that's not to say it has no issues. The virtualenv stuff sucks, and the 2.x vs 3.x split is an ongoing (if less so over time) problem. These are much bigger issues than the significant indentation.

(Mostly, the indentation is a non-issue, but every now and again I find myself have to do more manual fixup than I'd like, because indentation levels are explicitly opened but not explicitly closed.)

But, compared to Perl, it isn't fundamentally crazy. Compared to ruby, its users aren't mainly clueless fruitloops. Compared to Javascript, it's got at least a bit of taste, and, being a lot less popular, attracts fewer morons.

Overall I'd say I've generally been a happy Python user, but as with any dynamically-typed languages it doesn't scale super-well and once my programs get past about 1,000 lines I do start to get the urge to redo them in C++ or (when appropriate) C#.
Permalink brone 
October 9th, 2017 7:57am
Sympathetic to libtard_uk's position on this.

I'd say since you have a big issue with indentation, then don't use Python. Use whatever you want. Doesn't matter.

"What's a good general purpose interpreted language?"
"Python's pretty good."
"But it has stupid indentation and no type enforcement, I won't use it."
"How about Ruby?"
"Ruby is stupid as well."
"Javascript?"
"Javascript is for losers."
"Perl?"
"Perl is obsolete."
"R?"
"Isn't that only for statistics?"
"Lua?"
"What the game scripting language? Get serious."
"I don't know what to say."
"So you are saying there are no good scripting languages at all! I knew it! There's nothing I can use!"
Permalink Reality Check 
October 9th, 2017 8:25am
Sounds like it is time to write another scripting language.

This new one won't suck. Honest.
Permalink Legion 
October 9th, 2017 9:49am
I've been using Legion's UltraScript2000 for some time now. It's definitely the best scripting language and perfect in everyway... except it doesn't enforce CamelCase and doesn't have Aspect Oriented Programming. We have tried to bring this up multiple times and Legion simply closes the tickets saying it doesn't match the design vision.

Therefore I am pleased to announce a fork of the UltraScript2000 project. Introducing UltraScript2000a. UltraScript2000a is the truly perfect scripting language. We had to make some adjustments to the basic syntax to accommodate the new features, so although UltraScript2000 scripts don't work out of the box with UltraScript2000a, the UltraScript20002UltraScript2000a script converts from one format to the other, getting at least 90% of the code converted, and requiring only small hand adjustments here and there.
Permalink Reality Check 
October 9th, 2017 9:53am
Forget all of them. Just install Node.js and start writing your script in JavaScript.
Permalink Done That 
October 9th, 2017 9:53am
Or better yet, write direct in UltraScript2000a, the world's best scripting language, and convert to Node.js using the UltraScript2000a2NodeJS conversion script.
Permalink Reality Check 
October 9th, 2017 9:59am
Script kiddies.
Permalink Lotti Fuehrscheim 
October 9th, 2017 11:13am
It appears that despite the moaning about too much non-technical talk here, very few people have actual technical knowledge. Thank you to the people who did actually make a contribution. More contributions are welcome, particularly from the erstwhile clowns.
Permalink , Cup 
October 9th, 2017 11:20pm
In fairness, I should and do acknowledge the possibility that the clowns in this thread are not the same people who have in earlier threads bemoaned the lack of tech talk.
Permalink , Cup 
October 9th, 2017 11:38pm
My rule: Always go for funny, especially after the discussion is over.
Permalink Legion 
October 9th, 2017 11:42pm
,Cup seems to have a problem with humour, he should head over to HN where he will fit right in.
Permalink libtard_uk 
October 10th, 2017 2:18am
Don't backpedal. Belatedly adding a smiley or a "it was a joke, son" to an unfunny remark does not magically turn it into humour. Be honest and own it. Now make a comment on which scripting language is best and why.
Permalink , Cup 
October 10th, 2017 2:45am
Having a bad day?
Permalink libtard_uk 
October 10th, 2017 3:24am
Ok fine you don't know which language is best.

F: Was ist braun und schwimmst du mer?
A: U-brot.
Permalink , Cup 
October 10th, 2017 4:19am
ECL (Unisys OS1100 Exec System Software Executive Control Language) was funny.

It couldn't jump back, so loops were impossible. In fact it had hardly any logic constructs, just executable control statements.

So it used a macro language that would - at run time - generate a piece of script five times when a five fold loop was needed, or create or delete if-branches and then it executed its generated script.

It was a bit of a challenge to migrate the thousand batch jobs that used this ECL, but we had a Unisys programmer who wrote a new interpretor that produced powershell as output and ran itself in a powershell environment, while the programs that were executed in the job also ran in the powershell process.

I wrote the operating calls that interfaced the cobol programs with his job processing engine, so we had a complete emulator of the 1960's mainframe batch processing.

It is still running solidly, but of course there are no new jobs written with this system (much easier to do it all in a C# program), although, I am not sure, maybe an old system administrator did add a new old style batch job, as it is all still working.
Permalink Lotti Fuehrscheim 
October 10th, 2017 4:44am
I'd still say python. The indentation stuff isn't that bad and encourages you to NOT have too many nested constructs. If you really can't stand it, then do Ruby.
Permalink Ruseman 
October 10th, 2017 6:14am
The magic puts me off Ruby, it seems every method has half a dozen aliases and you are never really sure what's going on underneath it all.
Permalink libtard_uk 
October 10th, 2017 7:36am
Ruby and Python are so yesterday! Node.js is the way to go. Tell me which web browser doesn't support JavaScript? You don't even need a web browser running Node.js. It is built against V8 (Google’s open source high-performance JavaScript engine, written in C++).

You are gonna be web programmer. You are gonna be web programmer.
Permalink Done That 
October 10th, 2017 9:57am
JavaScript - the only dynamic language you ever need.
Permalink Done That 
October 10th, 2017 9:58am
Java is like, the best language, ever. It has the best keywords, and will defeat ISIS.
Permalink Java Fanboi 
October 10th, 2017 10:53am
Java offers a good balance between speed of development and speed of execution.

Python is popular. That is its main advantage, and the fact that it has much less disadvantages than almost all other scripting languages. But yeah, it's quite slow.

I never used Lua but it used to be quite popular in reinforcement learning community before they all switched to Python.
Permalink Yoda 
October 11th, 2017 8:17am
> I never used Lua but it used to be quite popular in reinforcement learning community


Which RL papers used Lua?
Permalink Nz 
October 11th, 2017 10:22am
This deep mind RL paper was done in Lua

https://github.com/kuz/DeepMind-Atari-Deep-Q-Learner/tree/master/dqn


The openai stuff is pretty interesting.
Permalink X 
October 11th, 2017 10:40am
Here's a list of papers on DRL.

https://github.com/junhyukoh/deep-reinforcement-learning-papers/blob/master/README.md

Since lua is used so much in game scripting and the DRL research field is applied a lot to game engines, presumably some of those have lua examples.

https://github.com/junhyukoh/deep-reinforcement-learning-papers/blob/master/README.md#games

First few I looked at used pseudocode, or mentioned python though. Don't feel like going through all them.
Permalink Reality Check 
October 11th, 2017 10:42am
Here is the article that goes with the code that X posted.

http://www.nature.com/nature/journal/v518/n7540/full/nature14236.html

$199 to read the article?

Bypass...

https://storage.googleapis.com/deepmind-media/dqn/DQNNaturePaper.pdf

Hm, the article doesn't mention Lua at all.

It has this link though: https://sites.google.com/a/deepmind.com/dqn/

And that has a 25k zip file which contains some lua scripts.

I can see that it could be very tricky to find which articles use lua when the articles cost money to read and don't even mention if they used lua or not.
Permalink Reality Check 
October 11th, 2017 10:50am
BTW, FSK, it has a Breakout example, maybe you'd find the article interesting.
Permalink Reality Check 
October 11th, 2017 10:51am
AlphaGo was written in Lua.
Permalink Yoda 
October 12th, 2017 6:31am
>>Java offers a good balance between speed of development and speed of execution.

Yet it is really hated, I never understood why it gets so much disdain from the programming community.
Permalink libtard_uk 
October 12th, 2017 8:55am
Java's a decent language and it's performance is pretty good.

I've used it several times where I create a single executable file that you can double click on, and it will launch and run on Windows, Mac and Linux.

What else provides that? Nothing, I think.
Permalink Reality Check 
October 12th, 2017 9:05am
"Yet it is really hated"

It's been over-hyped by Sun, and it backfired. Also, it lacks the cool factor.

Just goes to show how stupid the majority of code monkeys are.
Permalink Yoda 
October 12th, 2017 4:21pm
Java is far too verbose, both in syntax and in style eg getters and setters everywhere. Too much typing to actually get something done.

For different reasons, C also requires too much typing. It is a terse language which is good IMHO but in today's world it requires too much typing to actually get something done. Higher level languages are more appropriate for the majority of problem domains that don't fall under systems programming. It's still my favourite language, but it has been a few years since I wrote anything in it. Sigh. Python might turn out to be a satisfactory substitute general purpose language.
Permalink , Cup 
October 12th, 2017 8:28pm
So that's what you are. An overpaid typist.
Permalink Yoda 
October 13th, 2017 5:41am

This topic is archived. No further replies will be accepted.

Other topics: October, 2017 Other topics: October, 2017 Recent topics Recent topics