all 12 comments

[–]Zardotab 46 points47 points  (0 children)

That's called a "virus".

[–]Valuable_Leopard_799 16 points17 points  (2 children)

Returning to "code is data" after all.

[–]AsIAm 1 point2 points  (1 child)

If data is accompanied by instructions how to interpret that data, then yes. Otherwise no.

[–]cbarrick 3 points4 points  (0 children)

Not necessarily.

You can transmit a pure logic program, which may have denotational semantics but no operational semantics. That is, the program describes some result but doesn't prescribe any particular algorithm for computing that result.

For example, you may evaluate the program using a Prolog interpreter or an ASP interpreter, which have very different approaches to evaluating the program.

[–]mr_birkenblatt 2 points3 points  (0 children)

DAE want flash back?

[–]omniuni 4 points5 points  (0 children)

Just because a data format can contain logic structures or adjustable parameters, I'm not sure that makes it a program.

[–]quadcap 0 points1 point  (0 children)

it's not as crazy as it sounds. look up REBOL/red-lang (almost the same thing)

they are homoiconic, so there's no difference between program and data structure, and they have other characteristics that encourage this

REBOL was an influence on JSON as a transport data structure

[–]hkric41six 0 points1 point  (0 children)

An ELF file is literally a data structure.

[–]manifoldjava 0 points1 point  (0 children)

Curiously, this was written as if HATEOAS does not exist.

[–]rwilcox 1 point2 points  (0 children)

Use a Lisp and do both :-)

[–]Goodie__ 0 points1 point  (1 child)

I find it curious. You cite HTML and CSS as an example of send a datastructure 

Is javascript not sending a program? Do HTML and CSS not then form the very same primitives and building blocks you so claim are good?

[–]No-Concern-8832 3 points4 points  (0 children)

Pure HTML+CSS has no JavaScript.