Chris Lattner
02286ee034
add a few more shootout tests, exposing rdar://11344937
...
Swift SVN r1688
2012-04-30 04:28:35 +00:00
Chris Lattner
c7fd1b60ef
add shootout_matrix, with several workarounds for rdar://11327139
...
Swift SVN r1687
2012-04-30 04:08:58 +00:00
Chris Lattner
edfe53294f
add some benchmarks from shootout, but with reduce problem sizes since swift is so brutally slow.
...
Swift SVN r1685
2012-04-30 03:47:19 +00:00
Doug Gregor
86cf79a746
Add a range subscript operation for SliceInt64 that produces a slice, e.g.,
...
a[5..9]
will return a 4-element slice of the array a. Addresses
<rdar://problem/11329415>.
Swift SVN r1665
2012-04-27 00:07:52 +00:00
Chris Lattner
cc87aecfb9
add mandelbrot that goes through a temporary array.
...
Swift SVN r1656
2012-04-26 17:02:17 +00:00
Doug Gregor
44b3dd7b2b
Move bitvector example into the Interpreter subdirectory and add some bit
...
get/set operations to test.
Add a String(Bool) constructor that produces 'true' or 'false'.
Swift SVN r1634
2012-04-25 16:14:29 +00:00
Doug Gregor
a04776044e
Teach the import mechanism that it's rude to parse the same library
...
multiple times, as well as teaching the name lookup mechanism that
it's similarly rude to report ambiguous results because it searched
the same import twice. Fixes <rdar://problem/11287213>.
Yes, this is a bit of an ugly hack.
Swift SVN r1610
2012-04-24 22:36:17 +00:00
Ted Kremenek
123622ed38
Remove unndeed burningShip test (now in fractal.swift)
...
Swift SVN r1519
2012-04-20 00:05:21 +00:00
Ted Kremenek
edf7200447
Add 'fractal.swift' which does both mandelbrot and burning ship using a curried function core.
...
Swift SVN r1518
2012-04-20 00:05:02 +00:00
Eli Friedman
a5e1b4c645
Fix the REPL, which I accidentally broke. Add a test so it doesn't break by accident again.
...
Swift SVN r1504
2012-04-19 21:30:23 +00:00
Ted Kremenek
d702192c3f
Add "burning ship" fractal test. Looking to consolidate with mandelbrot.
...
Swift SVN r1491
2012-04-19 05:25:36 +00:00
Ted Kremenek
bffb368f08
Replace mandelbrot.swift with mandelbrot2.swift.
...
Swift SVN r1490
2012-04-19 04:57:51 +00:00
Chris Lattner
ae316ce2a8
testcase for r1479, it will diverge from the other mandelbrot soon.
...
Swift SVN r1482
2012-04-19 00:45:18 +00:00
Ted Kremenek
9dd1c47287
Add Mandelbrot example.
...
Swift SVN r1460
2012-04-18 07:32:03 +00:00
Ted Kremenek
fe8ab72db6
Add a few interpreter examples based from samples from rosettacode.org
...
This currently consists of factorial and towers of hanoi, both using
recursion.
I'm not certain what the general policy will be for runtime tests,
but these don't look actively harmful right now and test real functionality.
Swift SVN r1440
2012-04-16 23:34:42 +00:00
Eli Friedman
d295d02c42
Initial interpreter implementation. The included pieces are enough to get the included simple.swift running in swift -i mode. <rdar://problem/10962290>, part 1.
...
Swift SVN r1319
2012-04-04 01:34:42 +00:00