ref: 36a26aa671237ac768d99d0a30edc35fd10dffd0
parent: 0173ca92374d915bd5c9b40c307f368e1cadbaf4
author: Ori Bernstein <[email protected]>
date: Thu Sep 18 12:05:46 EDT 2014
Remove dependencies on libbio for mandelbrot.myr
--- a/test/mandelbrot.myr
+++ b/test/mandelbrot.myr
@@ -1,5 +1,4 @@
use std
-use bio
const Bailout : flt64 = 16.0
const Maxiter = 1000
@@ -34,20 +33,17 @@
const main = {args : byte[:][:]
var x : flt64, y : flt64, i
- var f
- f = bio.mkfile(1, bio.Wr)
for y = -39.0; y < 39.0; y = y + 1.0
for x = -39.0; x < 39.0; x = x + 1.0
i = mandelbrot(x/40.0, y/40.0)
if i == 0
- bio.write(f, "*")
+ std.put("*")
else
- bio.write(f, " ")
+ std.put(" ")
;;
;;
- bio.write(f, "\n")
+ std.put("\n")
;;
- bio.write(f, "\n")
- bio.close(f)
+ std.put("\n")
}