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

APL- or J-style syntax for a general-purpose language?

Name: Anonymous 2014-05-31 15:45

Know of any attempts? I think it would be cool to replace all the reserved words and such with little symbols. Has anyone ever tried?

Name: Anonymous 2014-05-31 16:00

A J-style C, perhaps?

Name: Anonymous 2014-05-31 16:03

J is general purpose.

Name: Anonymous 2014-05-31 16:09

>>3
No, it's a language for math&science calc.

Name: Anonymous 2014-05-31 16:12

perl. two problems

Name: Anonymous 2014-05-31 16:12

One word: THE J PROGRAMMING LANGUAGE

Name: Anonymous 2014-05-31 16:30

quicksort=: (($:@(<#[),(=#[), $:@(>#[))({~ ?@#))^: (1<#)

Name: Anonymous 2014-05-31 18:04

Are there any web browsers written in J?

Name: Anonymous 2014-05-31 20:09

J-style syntax
is a special case of haskell's monad/functor juggling.

Name: Anonymous 2014-05-31 21:27

>>1
You're not hoping to get anywhere near the space reduction, are you? Because you'd basically need APL/J/K for that. I've seen 10k lines of C reduced to 7 lines of K (granted it had to do with calculations in 3D.) Syntax isn't enough, you need the operations, and adverbs.

On the flipside I've found you get a small but significant fraction of APL in Perl 6, with hyper/meta ops. I don't know if there's a good concise way to handle rank intelligently. I suspect there is but I havne't given it much thought.

>>9
While J is full of monads, virtually every one can be called dyadically. This solves the problem neatly. Functor juggling is not typically done with monads, however. Some dyads are used but I think they're mostly done with adverbs. But I could be talking out of my ass.

Name: Anonymous 2014-05-31 21:41

>>10
But I could be talking out of my ass.
In Haskell, a "monad" is a type that implements a certain API. In J, a "monad" is an operator applied to one argument instead of two. They're almost unrelated concepts.

Name: Anonymous 2014-05-31 22:02

>>10
? I've seen 10k lines of C reduced to 7 lines of K
What does one lose from doing that?

Name: Anonymous 2014-05-31 23:14

>>12
less efficient, K is proprietary.

Name: Anonymous 2014-05-31 23:24

>>12
I've seen 10k lines of C reduced to 7 lines of K
example?

Name: Anonymous 2014-06-01 0:27

>>14
anus showcase

Name: Anonymous 2014-06-01 0:36

>>7
VALID SYMTA

Name: Anonymous 2014-06-01 4:58

>>12
The only thing you really lose is readability, and then only to C programmers (which is the larger group.) It reads pretty well if you can read math. Note: the problem could have been described in just a few relations in mathematical notation.
>>11
I made you a picture:
. . . . . . . . . . . . . . . . . . . . . . . .: . . . . . . . . . . . . . .
: . :,:,:,
. . . . . . . . . . . . . . . ::+o=eeeeeeeo=o::: . . . . . . . . . . . . .
. :,oae$$$$$eee$e$eae=:
. . . . . . . . . . . ::::=ee$ee$ee$$$e$e$e$eee=: .: . . . . . . . . . . .
. : :,+eaee$$$eeee=eee$e$eeeee=o,.
. . . . . . . . . .,oeA$$$eee=o=eeeeeeeeee=oe=+: . . . . . . . . . . . . .
. . :=$$$$$eeeeeeeeee$eeeee=o=+: :
. . . . . . . . . . :=$$$$eeee$$A$A$$$$$$$$eeo,. . . . . . . . . . .: . .
. +e$$$ee$$$A@$A$A$A$$A@$$=: .
. . . . . . . . . . . +e$$$eeee$$AA@$$$$A$A$$$e+: . . . . . . . . . . : .
. .+e$$eeee$$$$$$$$A@A$$$$$e,. . :
. . . . . . . . . . :=e$$e$eee$$e$$$$$$A$$e$=+: . . . . . . . . . . . .
. . +ee$eeeeee$$$$e$$A$$$eeo,. . .
. . . . . . . . . . . +eeeee$eee$e$eee$$e$$$e+: . . . . . . . . . . . .
: . .,oaee$eee$$$eeeee$$eee=+: :,. . .
. . . . . . . . . . :=oaee$$$e$$$$ee$$$eeeo+ . . .: . . . . . . . .
. . . +oeee$$$$$ee$e$$$$$e=o,. . . : . .
. . . . . . . . . . +=ee$$$$$$$$$$$$$$$$e=.,. : . . . . . : . . . . .
. . . .,oae$A$$$$$$$$$$ee$$e+: . .,
. . . . . . . . . :=o$$$A$A$$$$$$$$$$ee= : : . . . . . . . . . . .:
. . . . :,+e$$$$A@$$$$$$$$$$$e+:,. .
. . . . . . . . . :+oa$$A$$$$A@$$$$$$$$e=. . . : . . . . . . . . . .
. . . . +oeA@$$$$A$A$$$$$$A$$e,. .
. . . . . . . . . :,oa$$$A@A$A$$A$$$$$$$e:,. . . : . . . : . . . . . .
. . . . . :=e$A$A$$A$$A$A@$A$$ee+ .
. . . . . . . . oa$$$$A$$A$A$$$$$$$$$=:: : . . . . . . . . . . .
. . . . . .,o$$$$A$A$A$$$$$$A$$$$e+ . :
. . . . . . . :+$$A$$$A$A$A$A$$A$$$ee$+: . . . : . . . . . . .
. . . . . .+=$$$$$A@$A$A$$$$$$$$$$e=+: .
. . . . . . +e$$$$$A$$$A$$$A@$$$$$$$$=: : . . . . . . . . . . .
. . . . . . :=$$$$$$A@A$$A@$$$$$$$$$e$e:: : :
. . . . . : :+e$$$$$$A$$A$$$$A$$$$$$$$ee+: . . . .: . . . . . : .
. . . . . . .,+e$$$$$$$$$$$$A@$$$$$$$$$ee+ : : : : : :
. . . . ::e$$A$A$$ee$e$$$$eeee$e$ee=+: . . . : . . : : :,. : .
. . . . . . . :=e$$$$$e=++:++=oaee=o=o=++:,. :
. . . :+ee$$$$e=:: :: .,::,:,: : . . . . . : . . . . . .
. . . . . . .::,+e$$$$$$+,. . . : . . . .:
. . :,++oae$$$$eo,: .::: . : : . . . . . : . . . . . . .
. . . . .:::::+++=oe$A$$$$eo++:+,:,: . :: . . :
. . :,:,+++++o+oaee$$$$$$e=o=+++++++:+=+: .: . . . . . . . . . . .
. . ::+o=o=++++=o=eeee$A$$$$eeeeeeeeeeeee=+: . .,
. . :+++=o+=o+++o=o=$$e$e$$A$$A$$$$$$$e$$eeo++:,:: . . . . . . . . ::::::
::,:,:++++=o=o+++=o=o$$$e$$$$A$$$A$A$$A$$$$ee++++,:,: . : : :,:,: :
:+++++++o=+o=o=++++=o=$A@$e$e$$$A$$$$A$$$$$$ee+++::++++:: . . . . . :: :,.
=o=o++++=o=o=o=o+++o=oaAA$A$$$A$$$$$A$A$$$$ee=o+++++++=++: . :::,:,: :,
=+o=o+++++o=o=+++++=+oe$A$e$$$e$$A@$$$A$$$$eee=+:+:,++o=o+::: . . : .,.,:,:
o=o=o=+++=o=o=o+++++=+e$#A$$e$$$$$AA$$$$$A$ee=++:+++++=o=o+,: . .,:,:,::::,
=o=o=o=o=o=o=o=++++o+o=$$$ee$$$eee$A$$$$$$e=o=++++++++o=o=+++:,: . . :::,:,++
=o=o=o+=o=o=o=o=+++=o=oe$$eeeeeeee@$A@$$$eee=++:++o=o=o=eo=o+++: . :,:,:::++
=o++o=o=o=o=o=o++o=o=+=o$A@$$eee=ee$A$A@$$eeo+++++=o+o=o=oe=o+++:, . . : :,++
=o=o=o=o=o=o+o+++++=o=+=o$$eeeeee=oa$$A$$eeae=+++o=o=+o=o=o=o++++: . :,:,:+:
=+o=o=o++=o=o=o=+o+o=o++=e=eee@Aeeeeee$ee$$$ee=o++o=o=o=oe=e=o+o++: . . . :
o=o=o=o=+o=o=+=o+++=o=++o=o=o$$A$$e$e$e$$$ee$$$=o=+o=o=o=o=oe=++=o+ . .

Name: Anonymous 2014-06-01 11:49

>>17
this nigger in the pic is lovely

Name: Anonymous 2014-06-01 14:45

>>18
He's yellow, actually. You will probably recognize him if you squint.

Name: Anonymous 2014-06-01 20:40

>>19
the simpsons suck, beavis and butthead rules

Name: Anonymous 2014-06-02 15:43

So let's write a new browser in J.

Name: Anonymous 2014-06-02 15:58

>>20
It's not who he is so much as what he's saying.

>>21
Sure, you write the HTML parser. There's libraries for everything else.

Name: Anonymous 2014-06-02 16:59

So a monad is just a unary operator, and a dyad a binary operator? Faggot terminology.

Name: Anonymous 2014-06-02 17:22

>>20
Beavis and Butthead suck, Aqua Teen Hunger Force rules.

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