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

Pages: 1-

Scheme vs Common Lisp

Name: 2011-09-21 23:40

Name: Anonymous 2011-09-21 23:56

Name: Anonymous 2011-09-22 0:18

Name: Anonymous 2011-09-22 0:30

what's the difference between mapcar and mapc?

Name: Anonymous 2011-09-22 2:23

newline terpri
terpri?!?! WTF?

Name: Anonymous 2011-09-22 9:29

>>5
terpri is shorter and also easy to remember ( I memorized it as "print line terminator" ).
Not that it's not a stupid name otherwise, but it's not something worth arguing about.
I'm not going to give a serious answer in favor of either language, despite that I know both and write more CL than Scheme since we had dozens of these threads before. You can do anything in either language, differences are in style, what comes by default, namespaces, what you need to do with outside libraries, implementation/compiler variety, number of libraries, portability. It boilds down to which style you prefer more and what kind of task and performance needs you have.

Name: Anonymous 2011-09-22 9:32

Lisp? Portable? LOL!

Name: >>6 2011-09-22 9:33

>>4
mapcar returns the list made by applying the function to the lists (zip style). mapc does the same without consing the list (usually implies the passed function does something stateful/"destructive"/non-functional). In that sense, mapc is almost equivalent to the dolist macro, except that it's a function (can be called) and accepts a variable number of arguments.

Name: Anonymous 2011-09-22 9:34

>>7
My CL code is considerably more portable than the C code I write.
It runs on most *nix and Windows machines and compiles in a lot of CL implementations. When I write non-portable code, I still make sure it works in most implementations (using conditional reader macros).

Name: Anonymous 2011-09-22 9:59

>>9
Interesting post. Would read again. A+++

Name: Anonymous 2011-09-22 11:05

I suggest whatever with which you are most comfortable. Chicken can compile both, as well as tons of other languages, and it's "primary" language is SICP Scheme I think, but it has like 5 dozen compiler flags to tell it to use different features to compile other stuff.

Name: Anonymous 2011-09-22 11:58

Racket > Scheme > CLisp > Clojure

Name: Anonymous 2011-09-22 12:17

If it's not Clojure, it's not a good Lisp.

Name: Anonymous 2011-09-22 12:26

>>12
Yes, if you're comparing shittiness.

Name: Anonymous 2011-09-22 12:38

I word: funcall. Thread Over.

Name: Anonymous 2011-09-22 13:08

what does the p suffix mean in CL

eg

zerop
consp
numberp

Name: Anonymous 2011-09-22 13:16

>>14
Hmm if you think about it, that's exactly how the things are. Clojure is the best Lisp choice right now. Common Lisp is better than Scheme and they both are much better than Racket.

Racket is absolutely horrible. They lack any clear vision or roadmap for their project, just pile up ``cool" features they see elsewhere or spend months rewriting the GUI layer of their shitty IDE. Remember how R6RS designed by them failed so miserably? Fair result for the team with awful design skills and inability to listen to the user feedback. Fuck Racket, it's a true abomination of the Lisp world.

Name: Anonymous 2011-09-22 13:25

>>16
Predicate.

Name: Anonymous 2011-09-22 13:50

They both suck.

GC is shit.

Name: Anonymous 2011-09-22 14:31

>>16
Predicate (returns t or nil).
The p suffix in CL is more or less the same thing as ? suffix in Scheme.
>>19
You're boring, please leave /prog/ already, all you do is hate on anything that uses a GC (you know I can use a GC in C if I want to, right? Although using a GC in a low/mid-level language that can't scan from a root object or parse entire object trees tends to be too conservative and leave some stuff un-GC'd). You could do manual memory management in Lisps if you wanted to (or even, yuck, reference counting), but most of us are fine with using a GC as the cost/benefit ratio is worth it most of the time.

Name: Anonymous 2011-09-22 14:33

>>20
Manually managing memory makes me feel like I am a good maid-programmer that doesn't want to use unnecessary memory on eir masters' computers. I feel dirty and disrespectful when using GC, and a good maid should always be proper and honest.
That's why I strongly dislike GC.

Name: Anonymous 2011-09-22 14:43

eir
Stopped reading there.

Name: Anonymous 2011-09-22 16:12

>>21
That's an unusual /jp/-ENTERPRISE?-themed perspective. Most of the code that I write tends to have the same user (me) and designer (me), hence I have no problem making some trade-offs. It's a bit different when you're writing for someone else with very strict needs, but if you're willing to micro-manage so much stuff, why not go straight for assembly?

Name: Anonymous 2013-09-01 19:54


Would you guys recommend the old Kamen Rider shows (i.e., unhandsome Riders, I suppose), or old Super Sentai series? I thought about just watching some of the newer ones, but then I figured I might as well also watch something a little older.

Name: Anonymous 2013-09-01 20:40


 That's right; I'm BREAKING the NYPA trend and i'll be your PA! Of course, i'd appreciate others to participate in the thread as well.

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