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

ITT The J programming language

Name: Anonymous 2007-04-04 8:14 ID:A+7Bprzl

Examples of J: http://www.jsoftware.com/jwiki/Studio
A good introduction: http://www.jsoftware.com/help/primer/contents.htm
J for C programmers: http://www.jsoftware.com/help/jforc/contents.htm
Learning J: http://www.jsoftware.com/help/learning/contents.htm


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

Name: Anonymous 2007-04-11 2:15 ID:qlHWeTXT

>>5
The harder your code is to read the less disposable you are.

Name: Anonymous 2007-04-11 3:48 ID:Ak8DbxXh

>>41
i do nicely commented structured code. One place i worked at was so full of tards the place fall apart after i left. too bad my fellow workers were just too fucking stupid to follow simple instructions or do the work to begin with. how they called themselves programmers was beyond me when all they were doing was copypasta from my originals.

next week tune in for...

Name: Anonymous 2007-04-11 4:52 ID:bL7HHWtt

>>40
Oh, duh... Didn't even try it, so I hadn't realized I compared strictly twice.

qsort = lambda x: x and qsort([i for i in x[1:] if i <= x[0]]) + [x[0]] + qsort([i for i in x[1:] if i > x[0]]) or []

Name: Anonymous 2007-04-11 13:56 ID:qlHWeTXT

>>42
I love when we got code back from contractors and they completely either ignored the pseudocode comments as to what functions should do or (the best) changed the comment to what they made it do.

"Wonderful...it doesn't even do what we wanted it to do now."

Name: Anonymous 2007-06-14 13:08 ID:6ONwV4by

[bold]   ] p=: ?.~ 23
4 22 16 15 18 14 7 8 0 21 3 13 20 9 11 19 6 17 2 5 1 10 12
   C. p
┌──┬─────────────────┬──────────────────────────┬──────────┐
│17│18 2 16 6 7 8 0 4│21 10 3 15 19 5 14 11 13 9│22 12 20 1│
└──┴─────────────────┴──────────────────────────┴──────────┘
   #&> C. p
1 8 10 4
   *./ #&> C. p
40
   # ~. {/\ (100,#p)$p
40
   p&{^:40 i.#p
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
[/bold]

Name: Anonymous 2007-06-14 18:23 ID:qGsfJu7Q

>>45
[spoiler]You are [b]not an [i][u][o][s]EXPERT [spoiler]BBCODE[/spoiler] PROGRAMMER[/s][/o][/u][/i][/b][/spoiler].

Name: Anonymous 2007-06-14 18:23 ID:qGsfJu7Q

Oh what the fuck.

Name: Anonymous 2007-06-14 18:30 ID:Heaven

WTF. I was expecting something more Java-like.

Name: Anonymous 2007-06-14 18:41 ID:Z49PgsRQ

>>47
You fail at bbcode

Name: Anonymous 2007-06-14 19:01 ID:XDl0nRhE

>>49

you fail at quoting

Name: Anonymous 2007-06-14 20:14 ID:tIRKm7j6

>>50
You fail at recognizing same person and GET-ing.

Name: Anonymous 2007-06-14 20:49 ID:Z49PgsRQ

>>51
"50 get" how fucking old are you?

Name: Anonymous 2007-06-14 22:31 ID:6ONwV4by

oh i try again?

Name: Anonymous 2007-06-14 22:35 ID:Heaven

>>1 - >>53
That was EXPERT PROGRAMMER quality!
I am the 1/0 of my GET.
LISP is my body, and SICP is my blood.
I have created over 999 HUGE programs that you couldn't even comprehend.
Unaware of Python.
Nor aware of Ruby on rails.
Withstood the forced indentation of the code to create many touring-complete programs.
Waiting for an EXPERT PROGRAMMER's arrival.
I have no regrets, this was the only path.
My whole life was /prog/.

Name: Anonymous 2007-06-18 22:35 ID:AwdPCkBs

Ackermann's function in J

ack =: c1 ` c1 ` c2 ` c3 @. (#. @(,&*))
  
   c1 =: >:@]                NB. 1 + y
   c2 =: <:@[ ack 1:         NB. (x-1) ack 1
   c3 =: <:@[ ack [ack <:@]  NB. (x -1) ack x ack y -1

Name: Anonymous 2007-06-19 16:30 ID:hC8t6g/W


    0%0
0

wat?

Name: Anonymous 2009-01-14 13:53

FIOC

Name: Anonymous 2009-03-06 6:10

8 By learning MFC.

Name: Anonymous 2010-12-17 1:40

Erika once told me that Xarn is a bad boyfriend

Name: Anonymous 2012-02-05 17:00

>>45

that's actually pretty hot, thanks

Name: Anonymous 2012-02-05 19:26

http://www.jsoftware.com/help/jforc/culture_shock.htm#_Toc191734290

How do I compile my program?

You don't.  J is interpreted

Dropped.

Name: Sgt.KabuⰆ顀kiman⾁井 2012-05-28 23:59

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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