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

Pages: 1-

wait a sec

Name: Anonymous 2011-10-04 0:23

homoiconic means "can represent it's own syntax"... is there one programming language that CANT? I mean wtf.. they're all NP complete so what's the difference

Name: Anonymous 2011-10-04 0:35

>>1
Not exactly, you can represent the AST of an expression using exactly the same code as the expression (with a quote). You can also manipulate it very easily. In other languages, the AST is a lot messier, but with a parser you can get at it. The difference lies in the amount of difficulty you'd have in generating code or modifying code. It's just a lot easier in a homoiconic language (for example some Lisps).

Name: Anonymous 2011-10-04 2:34

>>2
but I can just do quote("i++;") in C where 'quote' is a parser...

Name: Anonymous 2011-10-04 2:37

>>3
I C++ parser/compiler is a mammoth and extremely slow program. A Lisp parser isn't. Homiconicity is about the "now it's worth it" threshold. In a homoiconic language, it's "worth it" to write code that writes code.

Name: Anonymous 2011-10-04 2:55

it's own

Name: Anonymous 2011-10-04 8:31

homoiconic means "can represent it's own syntax"... is there one programming language that CANT?

perl ?

Name: Anonymous 2011-10-04 10:31

Why not just read the wiki page? It's pretty clear.

Name: Anonymous 2011-10-04 15:26

>>6
No, you've got that backwards. "Only perl can parse Perl."

Name: Anonymous 2011-10-04 15:38

>>1
I don't think you know what homoiconic means.

Name: Anonymous 2011-10-04 18:18

I just learned how to use the spoiler tag, and now I'm shitposting on pork!

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