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

Pages: 1-4041-

Perl vs C and Lisp

Name: Anonymous 2014-10-07 18:36

Why use Perl?

Name: Anonymous 2014-10-07 18:50

- Lisp for fun
- C for low-level work
- Perl for high-level work

Name: Anonymous 2014-10-07 19:05

>>2
Lisp isn't meant for fun you idiot, you're too dumb to use it correctly.

http://hop.perl.plover.com/preface.html
why even use perl when there's lisp? stupid nigger

Name: Anonymous 2014-10-07 19:18

>>3
Allow me to clarify. By "fun", I didn't mean that it's useless, I meant that Lisp is such that you can have a lot of fun with it. A programming language being "fun" and being "useful" are not mutually-exclusive.

While you can certainly do useful work with Lisp, I put it in the "fun" category, because out of the three choices, I have the most fun with Lisp, even though you can get work done with all three of them

Name: Anonymous 2014-10-07 19:38

It has the best regex.

Name: Anonymous 2014-10-07 20:09

>>2
C is not low level you little fuck.

Name: Anonymous 2014-10-07 20:14

>>1
no reason to use perl. it's a badly designed, stupid and dead language.

>>6
yes it is you fucking retard.

Name: Anonymous 2014-10-07 22:14

>>7
perl is hacky designed, it let you do things in many different ways, if you hate options you should use python exclusively.

Name: Anonymous 2014-10-07 23:30

>>8
many different ways, all of them stupid. simplicity of syntax and semantics means easy to learn. perl doesn't have it, so it's hard to learn and easy to forget and make mistakes. your are stupid.

Name: Anonymous 2014-10-07 23:33

>>9
hard to learn and easy to forget
I believe these issues are more closely related to the programmer's memory and brain than the language itself.

Name: Anonymous 2014-10-07 23:38

>>9
*you are stupid. self fix.

Name: Anonymous 2014-10-07 23:40

>>10
its related to both and it's obvious, dumbass. you are not very bright, typical of perl programmers.

Name: Anonymous 2014-10-08 0:22

>>12
That's really rich, coming from someone who thinks a language like Perl is "hard".

Name: Anonymous 2014-10-08 0:23

I actually prefer it over shell or DCL.

Name: Anonymous 2014-10-08 0:37

perl is fun and is easier than C because it is like abstracted C
but if you want to compile your gaylord scripts then be my guest and use Lisp or C and suck cock all day

Name: Anonymous 2014-10-08 3:49

>>13
keep wasting your time looking stuff up in the documentation because perl is nonsensical.

Name: Anonymous 2014-10-08 10:26

>>16
It's a mashup of other nix languages, and makes plenty of sense if you come from that background.

Name: Anonymous 2014-10-08 12:34

study, write, study,
do review (each word) if time.
close book. sleep? what's that?

Name: Anonymous 2014-10-08 16:15

>>17
'0' is false. it may make sense if you are brain damaged.

Name: Anonymous 2014-10-08 16:59

>>19
C is weakly typed too. What's the problem?

Name: Anonymous 2014-10-08 17:05

>>19
if ('0')
printf ("Not false\n");

--> Not false

Name: Anonymous 2014-10-08 17:40

>>21
So your point is? that C is less weakly typed than Perl? you're still comparing a string literal with an integer implicitly.

Name: Anonymous 2014-10-08 17:50

>>22
You said that '0' is false, something that is wrong.

Name: Anonymous 2014-10-08 18:37

>>23
Comparing apples with oranges is wrong:
if (0)
puts("never happens");
if ("")
puts("C QUALITY");
if (0==(1==2))
puts("The integer number 0 is equal to the truth value false");

Name: Anonymous 2014-10-08 18:40

>>24
This has nothing to do about '0' being false or not

>>22
you're still comparing a string literal with an integer implicitly.
I see no string literal

Name: Anonymous 2014-10-08 18:48

>>25
Evaluating '0' as false is as wrong as evaluating 0 as false. And I obviously meant character literal, you faggot.

Name: Anonymous 2014-10-08 18:55

Perl is fun and lets me get work done incredibly quickly. That said I'm eager to git gud at Scala so I can use it efficiently and not feel like I have to read every line of code my underlings commit to whatever we're working on. With Perl, PHP, and just about every other language our projects at work are written in I need to spend hours making sure someone didn't completely fuck shit up for the rest of us thanks to everything be mutable by default, and all arrays and hashes needing to be passed as references.

Name: Anonymous 2014-10-08 18:55

>>26
And I obviously meant character literal
I see nothing about any ``character literal`` in the standard.

Name: Anonymous 2014-10-08 18:58

if ('0'-0x30)
puts("nop");

Name: Anonymous 2014-10-08 19:00

>>28
l2``faggot quote''

Name: Anonymous 2014-10-08 19:01

>>29
'0'-0x30
In different systems different things will happen.

Name: Anonymous 2014-10-08 19:02

>>31
What a wonderful language! :^D

Name: Anonymous 2014-10-08 19:02

>>30
Run out of arguments?

Name: Anonymous 2014-10-08 19:05

>>33
arguments for wut m8?

Name: Anonymous 2014-10-09 18:12

At least we can all agree Perl is more useful than lisp.

Name: Anonymous 2014-10-11 4:08

>>19
'0' as false is useful with all the ways of getting data as strings; it saves extra conversion to booleans.

Name: Anonymous 2014-10-11 7:25

SMASH AND TEAR
SMASH AND TEAR YOUR GUTS!

Name: Anonymous 2014-10-12 8:32

>>36
At least Larry had the fucking brains to make sure it doesn't bite you in the ass. There are separate operators for concatenation and addition, and for numeric and string equivalence.

All these are zero but true in numeric context if you need it ("0E0" and "0 but true" seem to be the most common):

"0.0" "0E0" "00" "0x0"
"+0" "-0" " 0" "0\n"
".0" "0." "0 but true"
"\t00" "\n0e1"


If you write Perl 6 instead you can do whatever you want:

> "0" ?? 1 !! 0
0 # shucks, still false in Perl 6, jerks.
> "0" but True ?? 1 !! 0
1 # what's this?
> ("0" but True) ~ "12"
012 # oh my


"but True" isn't special. "but" overrides roles, and you can say "but Something" and it will work as long as Something is actually composable.

Name: Anonymous 2014-10-12 20:19

>>38
Perl 6 a shit.

Name: Anonymous 2014-10-12 21:13

>>38
There are separate operators for concatenation and addition, and for numeric and string equivalence.
Why couldn't the PHP/Javashit kikes do the same thing? It would make the languages at least 20% less shitty.

Name: Anonymous 2014-10-12 21:22

>>39
That sounds painful.

Name: Anonymous 2014-10-13 2:52

larry does not have brains, neither do perl users.

Name: Anonymous 2014-10-13 4:35

>>40
I don't know. Hack probably has a decent solution, and there compilers targeting JS for sane languages.

Name: Anonymous 2014-10-13 10:38

I have four words for you

Name: Anonymous 2014-10-13 12:10

>>44
Forced Checking of Dubs

Name: Cudder !MhMRSATORI 2014-10-15 12:44

>>2
- Lisp to get high on
- C and Asm for real work
- Perl for mundane text manipulation
- Perl6 for if you want to get really, really stoned.

Name: smoke perl everyday 2014-10-15 16:57

it makes C less annoying

Name: le perl man 2014-10-16 20:46

smoke da perl erry dae mon it's EZ

Name: Anonymous 2014-10-17 12:30

>>48
write erry daemon in da perl it's EZ

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