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

Pages: 1-

New Symta

Name: Anonymous 2012-09-21 12:15

gonna scare the crap out of you.


main
 = !Music:ø = Speed:2 = G: gfx 640 480 = !FPS:0 = FPSC:[] = FPS0: time
 = !LastHelp:0 = !VisibleUnits:[] = !Cursor:Cursors.Human = !Selection:[]
 = !UIAct:ø = !UIBlink:[ø 0 0] = !UIButton:[] = !UIButtons:[]
 = !SelXY:ø = !CursorXY:[0 0] = !ActiveKeys:[] = !CenterView:ø
 = clearClicks = notify “LispCraft v0.1 by SNV”
 = sdl <I = !FB:G = !PlayAck:√ = !VX:176 = !VY:0 = !VO:[VX VY] = !VW:G.W-VX = !VH:G.H
          = {Music.playing?; Music: sideMusic|snd Music:√}
          = updUnits = handleInput I
          = mod Cycle Speed | <0 = updScreen G>
          = T:time = {D: pos? T-FPS0 = [(floor 1/D) @!FPSC]} = !FPS0:T
          = mod Cycle 24 | <0 = !FPS:FPSC,min = !FPSC:[]> = !Cycle+1
          = G
          >

Name: Anonymous 2012-09-21 12:25

VALID SYMTA CODE

Name: Anonymous 2012-09-21 12:40

Can't wait. Also, it would be nice if you had some kind of repository.

Name: Anonymous 2012-09-21 12:58

What is symta?

Name: Anonymous 2012-09-21 13:00

>>4
Shalom!

Name: Anonymous 2012-09-21 13:01

>>4
ХУИТА

Name: Anonymous 2012-09-21 13:17

>>4
Lisp DSL

Name: Anonymous 2012-09-21 13:17

unreadable as shit.

Name: Anonymous 2012-09-21 14:13

>>8
tradeoff for succinctness. try doing following in python

"= [A B @C]: map ?^2 1..7 = [A B C]

=> (1 4 (9 16 25 36 49))

Name: Anonymous 2012-09-21 14:39

>>9
(i*i for i in range(1,7))

Name: Anonymous 2012-09-21 14:42

>>10
not the same.

Name: Anonymous 2012-09-21 22:59

map ?^2 1..7

I was going to incorporate something like ? in a language I'm writing right now. But I ran into a problem of ambiguity.

I'm going to switch to lisp.


(map (^ ? 2) (.. 1 7))


Does this correspond to


(map (lambda (x) (^ x 2)) (.. 1 7))


or


(lambda (x) (map (^ x 2) (.. 1 7)))


One is semantically valid while the other is not, but how do you decide in all cases? Do you match the earliest context that expects a function?

Name: Anonymous 2012-09-21 23:11

>>12
If only one is valid, do that one.
If both are valid, fork and do both.

Name: Anonymous 2012-09-21 23:24

>>9
>>> (lambda a, b, *c: (a, b, c))(*(x ** 2 for x in xrange(1, 8)))
(1, 4, (9, 16, 25, 36, 49))

Name: Anonymous 2012-09-21 23:33

VALID LINE NOISE

Name: Anonymous 2012-09-22 2:18

Name: Anonymous 2012-09-22 3:06

>>14
Symta:

=[A B @C]:map ?^2 1..7 =[A B C]


Python:

(lambda a, b, *c: (a, b, c))(*(x ** 2 for x in xrange(1, 8)))

Name: Anonymous 2012-09-22 3:26

Scheme:


(define (.. i j) (if (<= i j) (cons i (.. (+ i 1) j)) '()))
(apply (lambda (a b . c) (list a b c)) (map (lambda (x) (* x x)) (.. 1 7)))
=>
(1 4 (9 16 25 36 49))

Name: >>18 2012-09-22 3:29

I meana


(apply (lambda (a b . c) (list a b c)) (map (lambda (x) (expt x 2)) (.. 1 7)))

Name: Anonymous 2012-09-22 3:59

>>17
Wow! Really impressive! Now try this in symta:

>>> import urllib, xml.dom.minidom
>>> exec('print ' + [div for div in xml.dom.minidom.parse(urllib.urlopen('https://dis.4chan.org/read/prog/1348244157/')).getElementsByTagName('div') if 'post' in div.getAttribute('class').split()][13].getElementsByTagName('code')[0].childNodes[0].data[4:])
(1, 4, (9, 16, 25, 36, 49))

Name: Anonymous 2012-09-22 4:49

>>20
OPTIMIZED!
import urllib, xml.dom.minidom
exec('print' + xml.dom.minidom.parse(urllib.urlopen('https://dis.4chan.org/read/prog/1348244157/14')).getElementsByTagName('code')[0].childNodes[0].data[3:])

Name: Anonymous 2012-09-22 4:59

>>20,21
Considered harmful!
>>> import urllib, re
>>> exec('print' + re.findall('&gt;&gt;&gt;(.*?)<br/>', urllib.urlopen('https://dis.4chan.org/read/prog/1348244157/14').read())[0])
(1, 4, (9, 16, 25, 36, 49))

Name: Anonymous 2012-09-22 5:24

>>20
Symta is a toy language. It has no tcp/ip support.

probably can something like:
[cpde]
= [@_ A B @C @"<br/>" @_]: shell “wget "https://dis.4chan.org/read/prog/1348244157/14"” = [A B C]
[/code]

Name: Anonymous 2012-09-22 5:49

= [@_ A B @C @"<br/>" @_]: shell “wget "https://dis.4chan.org/read/prog/1348244157/14"” = [A B C]
When Perl and REBOL has a babby

Name: Anonymous 2012-09-22 6:07

>>24
Actually, Symta is based on a Lisp-like language Refal (http://en.wikipedia.org/wiki/Refal)

Alas like everything in computing, Refal has Jewish author Valentin Turchin (photo: http://pespmc1.vub.ac.be/TURCHIN.html). IIRC, he even got problems with atheistic USSR because of his Judaism beliefs.

That is why I advocated total extermination of the Jews. There are just too many of them.

Name: Anonymous 2012-09-22 13:26

$ENTRY Go { = <Hello>;}
Hello {
   = <Prout 'Hello world'>;
}


prout
prout

Name: Anonymous 2012-09-22 13:40

>>26
http://cs.mvnu.edu/classes/csc3031/mwasil/BibleServer/XMLBible/heb_strongs/heb65.xml
It's from the Hebrew ``פּרת'' (prt), ``break forth'', ``rushing'', ``Euphrates''. Maybe the language creator used an analogy relating the act of displaying text to the rushing of the Euphrates.

Name: Anonymous 2012-09-22 14:42

>>25
This is why I advocated total extermination of the illogical shitheads. There are just too many of them.

Name: Anonymous 2012-09-22 16:43

>>28
This is why I advocate the total extermination of the you. There's just too many of you.

Name: Anonymous 2012-09-22 16:46

>>29
You seem a bit...upset.

Name: Anonymous 2012-09-22 16:51

>>30
le epic post, reddit/b/ro

see you on le imageboards XD

Name: Anonymous 2012-09-22 16:56

>>27,28,29
oh why shalom there hymie!

Name: Anonymous 2012-09-22 19:01

just use fucking javascript, please

Name: Anonymous 2012-09-22 19:21

>>33
fuck off back to le hacker news and go choke on a nigger cloudy cock, onegai

Name: Anonymous 2012-09-23 4:25

>>30
Things aren't what they seem.

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