New Symta
1
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
>
2
Name:
Anonymous
2012-09-21 12:25
VALID SYMTA CODE
3
Name:
Anonymous
2012-09-21 12:40
Can't wait. Also, it would be nice if you had some kind of repository.
4
Name:
Anonymous
2012-09-21 12:58
What is symta?
5
Name:
Anonymous
2012-09-21 13:00
6
Name:
Anonymous
2012-09-21 13:01
7
Name:
Anonymous
2012-09-21 13:17
8
Name:
Anonymous
2012-09-21 13:17
unreadable as shit.
9
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))
10
Name:
Anonymous
2012-09-21 14:39
>>9
(i*i for i in range(1,7))
11
Name:
Anonymous
2012-09-21 14:42
12
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?
13
Name:
Anonymous
2012-09-21 23:11
>>12
If only one is valid, do that one.
If both are valid,
fork and do both.
14
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))
15
Name:
Anonymous
2012-09-21 23:33
VALID LINE NOISE
16
Name:
Anonymous
2012-09-22 2:18
17
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)))
18
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))
19
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)))
20
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))
21
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:])
22
Name:
Anonymous
2012-09-22 4:59
>>20,21
Considered harmful
!
>>> import urllib, re
>>> exec('print' + re.findall('>>>(.*?)<br/>', urllib.urlopen('https://dis.4chan.org/read/prog/1348244157/14 ').read())[0])
(1, 4, (9, 16, 25, 36, 49))
23
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]
24
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
25
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.
26
Name:
Anonymous
2012-09-22 13:26
$ENTRY Go { = <Hello>;}
Hello {
= <Prout 'Hello world'>;
}
prout
prout
27
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.
28
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.
29
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.
30
Name:
Anonymous
2012-09-22 16:46
>>29
You seem a bit...
upset.
31
Name:
Anonymous
2012-09-22 16:51
>>30
le epic post, reddit/b/ro
see you on le imageboards XD
32
Name:
Anonymous
2012-09-22 16:56
>>27,28,29
oh why shalom there hymie!
33
Name:
Anonymous
2012-09-22 19:01
just use fucking javascript, please
34
Name:
Anonymous
2012-09-22 19:21
>>33
fuck off back to le hacker news and go choke on a nigger cloudy cock,
onegai
35
Name:
Anonymous
2012-09-23 4:25
>>30
Things aren't what they
seem .