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

scripting languages

Name: Anonymous 2012-10-14 19:46

What's your goto scripting language and how do you justify it?

Name: Anonymous 2012-10-14 19:47

#!/bin/zsh

Name: Anonymous 2012-10-14 20:38

>>2
How do you justify using that shit?

Name: Anonymous 2012-10-14 20:49

Perl, it has the best regex.

Name: Anonymous 2012-10-14 21:01

Python, for the powerful functional programming.

Name: Anonymous 2012-10-14 21:21

Ruby, for speed.

Name: Anonymous 2012-10-14 22:08

>>6
Too bad Ruby on Rails is slow as FIOC

Name: Anonymous 2012-10-14 23:04

Perl or Scheme. Either can be contorted to meet any needs.

Name: Anonymous 2012-10-14 23:14

Java, it is clean, fast, sleek, promotes good practices, consumes very little resources and doesn't force an specific programming paradigm.

Name: Anonymous 2012-10-14 23:21

Eiffel, it's concise and doesn't force OO bullshit.

Name: Anonymous 2012-10-14 23:55

>>9
U MENA DubScript

Name: Anonymous 2012-10-15 2:26

APL because it makes you think about the whole problem at once instead of looping through one number at a time. Most programs are much shorter than in other languages.
Multiplication table up to 20:
∘.×/2/⊂⍳20
10 lines where the Nth line has N asterisks:
⊃(⍳10)∘.⍴'*'
All possible two-character pairs:
⎕AV∘.,⎕AV
Draw 52 different random numbers from 1 to 52:
52?52
It's often easier to rewrite the program than try to debug someone else's code, because there are so many ways to do the same thing.

Name: Anonymous 2012-10-15 2:37

It's often easier to rewrite the program than try to debug someone else's code
Readability?

Name: Anonymous 2012-10-15 2:54

>>13
This is a typical example of APL, a library function for reading a file. → is branch and ⍎ is execute, the only forms of control flow in APL.
Z←READFILEV N;A;B;C;D;E;F
⍝ Read file N and return records as vector of arrays.
⍝ N has a syntax of '["][path]filename["][ ,code]'
⍝ code defaults to code D(ASCII), but code A(APL2) and code T(Translate)
⍝ may be specified.
(F←1)OPEN N←((⌽∨\⌽' '≠N)/N),(~','∊N)/',D'
B←',A'≡¯2↑N
Z←'' ⍝ Initialise result
C←0 ⍝ Record counter for ASCII file
D←128 ⍝ Initial scan length
L0:⍎'CZ',(⍕F),'←6'
L4:¯44 ¯45 ¯46 ∆CHK E←⍎'CZ',⍕F
→(((~B)^E=¯44),E=¯45)/L2,L3
A←⍎'DZ',⍕F
→B/L1
C←C+1
L1:Z←Z,⊂A
→L0
L2:
→L4,⍎'CZ',(⍕F),'←6,C,D←2×D' ⍝ Double scan length
L3:CLOSE F
→B/0 ⍝ Exit if not ASCII file
Z←(-(⎕AF 26)=↑↑¯1↑Z)↓Z ⍝ Remove EOF record (if there)

Name: Anonymous 2012-10-15 4:42

>>14
This is atrocious.

Name: Anonymous 2012-10-15 4:45

>>5
Python doesn't even have real lambdas.

Name: Anonymous 2012-10-15 4:50

>>16
What is a real lambda?

Name: Anonymous 2012-10-15 5:06

>>17
Python lambdas cannot contain statements.

Name: Anonymous 2012-10-15 5:31

common lisp nyukkahs



martin luther king would agree

Name: Anonymous 2012-10-15 5:34

It used to be Perl but I haven't done any scripting in the 4 years since dropping it. I'm getting into Scheme though.

Name: JK 2012-10-15 5:53

Limbo

Name: Anonymous 2012-10-15 10:45

What's your girlfriend and how do you justify it?
It used to be my left hand but I haven't done any sex in the 4 years since dropping it.

Name: Anonymous 2012-10-15 11:34

>>15
There are no references in APL, so you need to use ⍎ on a string containing a variable name. However, you can't assign to the result of an evaluated string because it's data, not a variable, so you have to convert the data to a string and generate an assignment expression to evaluate with ⍎. This also means there is no referential transparency. If a variable has the same name as a local variable, the evaluated string will alter the local variable and not the one in the outer scope. Another thing is that the string passed in may not be a variable name, but an arbitrary expression that can include system functions (capable of modifying/deleting files or calling arbitrary external DLL/so functions) or syntax errors. APL also has a ⎕FX function to convert a string to a function, but it returns a string containing the function name, not a function. Evaluating it results in a syntax error, not a function reference, so if you want to use it in an expression, you need to either use a known name or evaluate the whole expression as a string.

Name: Anonymous 2012-10-15 11:44

>>16,18
Didn't you read >>6,9? This is a blatant irony thread.

Name: Anonymous 2012-10-15 11:55

javascript, because it's the future of programming and pioneers innovative concepts such as closures

Name: Anonymous 2012-10-15 12:00

>>16,18
See? Even >>25 knows this is a thread for irony and bad jokes.

Name: Anonymous 2012-10-15 14:33

logo: because it is ENTERPRISE READY.

Name: Anonymous 2012-10-15 15:28

Are you guys fucking kidding me?

ONE WORD: TCC SUPPORTS C SCRIPTING

Just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line.

Your other bullshit scripting languages can't compete with the speed of TCC and the elegance of the C programming language.

Name: Anonymous 2012-10-15 15:37

>>28
C is a terrible language for scripting, too much verbose code needs to be added.

If I can write something in awk in 2 minutes and it takes a full minute to run, that's still better than spending 5 minutes writing it in C no matter how fast it runs.

Name: Anonymous 2012-10-15 15:54

>>29
YHBT. YHL. HAND.

Name: Anonymous 2012-10-15 15:55

>>30
YHL? HAND?

Name: Anonymous 2012-10-15 17:05

>>31
YHBT

Name: Anonymous 2012-10-15 18:14

>>31,32
You can both work it out.

Name: Anonymous 2012-10-15 20:08

>>33
How about fuck you fagstorm.

Name: Anonymous 2012-10-15 20:22

>>31
YHL = YOU HATE LISP
HAND = HANG A NIGGER DRY

fucking newfags go back to /polecat /b//

Name: Anonymous 2012-10-15 20:51

>>35
Oh, I got it, the last one means Have a nice day. But what about YHL?

Name: Anonymous 2012-10-15 21:17

>>36
Youth Hockey League

Name: Anonymous 2012-10-15 21:25

>>37
fagshit

Name: Anonymous 2012-10-15 21:28

>>38
4chan is an 18+ website.

Name: Anonymous 2012-10-15 21:43

>>39
fagshit

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