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

Pages: 1-4041-

I've got a groundbreaking idea.

Name: Anonymous 2008-09-06 14:08

What if, instead of just plain XML, or any other markup language for that matter, we build an executable file that upon execution prints whatever is stored in the file? That way we can run like:

$ ./index.xml

And then see the output of the file on stdout. Since the file is binary, we can't just edit it with emacs, so we have to make the file edit itself! For example:

$ ./index.xml --edit-node 3 --set-attribute name=haskell

What do you guys think, /prog/rammers?

Name: Anonymous 2008-09-06 14:12

This would be not really useful

Name: Anonymous 2008-09-06 14:18

Self-modifying applications? What an AWESOME idea! chmod -R a+w /usr/bin FTW

Name: Anonymous 2008-09-06 14:21

Adding an XML parser to every XML file won't do much to keep their size down.

Name: Anonymous 2008-09-06 14:50

Sell your idea to C# development team

Name: 1 2008-09-06 16:01

On second thought, maybe we should make it launch a graphical application that allows you to edit the XML tree with your mouse. That would make it easier.

Name: Anonymous 2008-09-06 16:08

> index.xml /EDITNODE 3 /SETATTR_NAME haskell

Name: Anonymous 2008-09-06 16:29

The XML program should take XSLT programs its argument, and apply that program to itself.

Name: Anonymous 2008-09-06 17:22

One word, binfmt_misc, thread over.

Name: Anonymous 2008-09-06 17:29

>>1
How about we use a LISP program to store the actual data in such a way that running it will produce the XML document? Like this

(doctype whatever)
(node
  (subnode (list ('attribute value) ('another other)))
;node)

results:
<?DOCTYPE ...>
<node>
  <subnode attribute=value another=other/>
</node>

Suddenly XSLT looks like a dirty hack.

Name: Anonymous 2008-09-06 18:46

>>1
As insane as this idea is, it's still far superior to DOM

Name: Anonymous 2008-09-06 18:56

>>10
>>11
>>8
Good thinking guys. Would you like to join my open source project that is working towards this goal?

Name: Anonymous 2008-09-06 19:20

>>14
Because people who think XML is a good idea and people who like Java overlap greatly?

>>1
That is the dumbest idea I ever heard. What's wrong with cat?

Name: Anonymous 2008-09-06 19:50

>>16
Yes because a language based on natural thinking patterns, which can generate its own code on the fly, is childish compared to a language which attempts to make it nice and easy for new programmers.

Name: Anonymous 2008-09-06 20:17

>>16
Ah, I see you refer to enjoyment of life.

Name: Anonymous 2008-09-07 0:58

Are we under attack by jawa coders from /pr/?

Name: Anonymous 2008-09-07 2:06

>>20
I certainly hope so. They're infinitely preferable to the /lounge/ faggot.

Name: Anonymous 2008-09-07 6:57

>>12
My idea is that it will be far easier to manipulate a lisp list with a LISP program and then turn that into XML than using XSLT for the same purpose. The added benefit is that it will be far more readable by humans and will have more capabilities. I am of course blissfully ignorant of the rationale behind XSLT. That "thing" mutated into a list processing language a long time ago.
>>13
Thanks but I have to go back to reading my SICP.

Name: Anonymous 2008-09-07 7:20

>>1
How about no?

>>10,22
http://okmij.org/ftp/Scheme/SXML.html

>>12,14
Faggots

>>15
Because people who think XML is a good idea and people who like Java overlap greatly?
Both are enterprise shit, both hide the sense of failure with the sense of "best practices", and people who like failing like failing hard.

>>18
Lol, don't worry, no functional programmer or dynafag will attempt to take your job. In fact, we want you to cover that job, so that we don't get asked to do that.

Name: Anonymous 2008-09-07 7:51

>>23
Yeah, you told them! Internet argument go!

Name: Anonymous 2008-09-07 7:54

>>24
4/10

Name: Anonymous 2008-09-07 10:47

>>23
http://okmij.org/ftp/Scheme/SXML.html
That's almost exactly what I was thinking about!
Figures.

Name: Anonymous 2008-09-07 11:54

SEXML

Name: Anonymous 2008-09-07 11:57

XXXML

Name: Anonymous 2008-09-07 13:42

I'm >>17 and none of you picked up on my put-on lack of knowledge, and just chose to insult functional languages. None of you are programmers :(

Name: Anonymous 2008-09-07 14:02

>>29
...what?

Name: Anonymous 2008-09-07 20:28

>>29
I took >>17 as sarcasm.

>>30
In my spare time I masturbate to hentai of inquisitive big sisters dominating their geeky, shy little brothers with their feet.

At work, I get paid to program with dynamic languages.

Name: Anonymous 2008-09-07 23:26

>>32
Taro?

Name: Anonymous 2008-09-08 1:27

>>1
chmod +x some-file.xml # Now ./some-file.xml will use PAGER to display itself

>>14
expat is clearly written in C and is the best XML parser.

Name: Anonymous 2008-09-08 1:28

>>1-
Faggots - XML is clearly a horrible attempt to make SEXPs

Name: Anonymous 2008-09-08 1:40

YAML

Name: Anonymous 2008-09-08 7:22

>>34
SSAX is better than expat, and just as fast*.

* When compiled with Gambit with the read-char mutex disabled.

Name: Anonymous 2008-09-08 7:51

>>37
SAX? Isn't that the parser that fires events when it encounters a node? That's fucking painful to use.

Name: Anonymous 2008-09-08 9:09

>>38
SSAX ≠ SAX

Name: Anonymous 2009-08-16 23:34

Lain.

Name: ​​​​​​​​​​ 2010-09-08 17:28

Name: JILLY 2013-03-30 11:03

SHUT UP

Name: Anonymous 2013-03-30 11:39

>>44
You're a dick butt!

Name: Anonymous 2013-09-01 11:00



            ,. -‐''"7     _,. -‐,:ァ
          ./  //     /  //
           /  /´ /    /   / /
         i  /   ∠..,,__  /  r'´/
       ,,. ァ'  i  /    `7  //             _,,.. -─
     /   !  //     |./_/、            /
    ,.'    |./',. -     '"´  `ヾ:         ,.:'   ま
   .,'      ,! '´             ':,        /     ぁ
   i    / / /   i  !  !   ! i        ,'      `
   |   i ,'  ,' /! /| ハ /|__,/i   /  ! ほ     !     て
   i   ! /  .! /-レ'‐ |/ レ' !_/、|/i.  ,' っ      |     ゐ
    .!  レ'  ァ-r-‐=ァ'、  '7i´ リ .〉7 ./  と     !     の
   i  / ., 〈  k.__,ソ     'ー'ンi./レ'i   く    ./      す
   | ,:'/| ハ`' ー     .    '",ハ ',  か   ∠,_      る
    !/ , レi ト.、,'"'"    ,.  ,. イ i !':, 、.,_ ( _)  !      事
   .!  !  | ! ,|`i '=ー--r<´i. | レ' ヽ.      ',     だ
   |  i  ! |7':i`ト、>rrく!/::::::i  ト、.!   ':,      ヽ、    し
   |  !  ,.| |/:!::::',/ i /:::::::/|  |/ヽ. !   ',       `ヽ、.,_______
   !  ! ァ'、! |:::|:::::ヽ, !/::::::::/::! /:::::::::\.  |
   |   ! .!::::::V:::::';:::::::::/:::;::'":::::レ7:::::::::::::::::ヽ/
   !.  | ';::::::i::::::::ヽ;://::::::::::::::イ;::::::::::__::::::::',
   .!  !. i::::::!:::::::::::Yo:::::::::::::::::::_iゝ'"´:::::`::::::ト 、,
   ', ', !:::::!:::::::::::::!o::::::::::::::_r ヘ::::::::::::::::::::::::;ハ  ヽ.
    ヽ. 7::::/:::::::::::/i:::::::::::::ァ'´`ヽヽ;:::::::::::::;:イ  ',  ':,
     /::::::k::::::::::/T!::::::/ ,  `Yi::::::::://  i    i
   ,.rく:::// ` T´ !ヽ〈_,.:'^ヽ、_,.イ」;:イ /  /    ノ

Name: Anonymous 2013-09-01 11:04

>>1
Have you head of smalltalk?

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