279 karma · joined February 5, 2010
Edit: ... as well as methods for reading and displaying numbers.
[1] http://piumarta.com/software/maru/
[2] http://www.youtube.com/watch?v=cn7kTPbW6QQ
EDIT: There are other reasons to write machine code than performance.
f_ = proc_self(lambda(v0));
t_ = proc(lambda(v1), f());
id_ = proc(v0, f());
pair_ = lambda3(op_if(v0, v1, v2));
For the moment I gave up on it though but maybe it might serve as inspiration ;)Yes, especially Halide looks interesting.
* Dr Paul Carter's tutorial [2]
* Intel processor reference [3]
* C ABI standard [4]
[1] https://github.com/wedesoft/aiscm
[2] http://www.drpaulcarter.com/pcasm/
[3] http://www.intel.com/content/www/us/en/processors/architectu...
require 'multiarray'
include Hornetseye
# Object
lazy(4) { |i| i + 2 }
# Sequence(INT):
# [ 2, 3, 4, 5 ]
lazy(3, 2) { |x, y| x }
# MultiArray(INT,2):
# [ [ 0, 1, 2 ],
# [ 0, 1, 2 ] ]
lazy(3, 2) { |x, y| x + 1 }
# MultiArray(INT,2):
# [ [ 1, 2, 3 ],
# [ 1, 2, 3 ] ]
lazy(3, 3) { |x, y| y + 4 }
# MultiArray(INT,2):
# [ [ 4, 4, 4 ],
# [ 5, 5, 5 ],
# [ 6, 6, 6 ] ]
lazy(3, 3) { |x, y| (x + 1) * (y + 4) }
# MultiArray(INT,2):
# [ [ 4, 8, 12 ],
# [ 5, 10, 15 ],
# [ 6, 12, 18 ] ]
lazy { |x,y| Sequence['n', 'p', 'r', 't'][x] + Sequence['a', 'i', 'u', 'e', 'o'][y] }
# MultiArray(OBJECT,2):
# [ [ "na", "pa", "ra", "ta" ],
# [ "ni", "pi", "ri", "ti" ],
# [ "nu", "pu", "ru", "tu" ],
# [ "ne", "pe", "re", "te" ],
# [ "no", "po", "ro", "to" ] ]
s = lazy(33) { |i| 3 * (i+1) }
# Sequence(INT):
# [ 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, .... ]
s.mask((s % 2).eq(0)).collect { |i| i ** 2 / 3 }
# Sequence(INT):
# [ 12, 48, 108, 192, 300, 432, 588, 768, 972, 1200, 1452, 1728, .... ]
[1] https://github.com/wedesoft/multiarray
[2] http://www.wedesoft.de/hornetseye-api/[1] https://github.com/wedesoft/hornetseye-kinect [2] http://www.wedesoft.de/hornetseye-api/file.Camera.html#Micro...
The majority of objects in space are not visible to us. They only become visible when near and bright enough. Even known comets such as Halley are not visible to us most of the time.
http://stackoverflow.com/questions/4769004/learning-python-f...
I think this is a rather stupid argument. The same way you could argue that a boat is a better means of transportation than an airplane. With the boat agreeing on a holiday destination is less of a social issue because it is limited by technical constraints anyway.
That said, if there is a significant increase in cancer among TSA workers, that should be a cause for concern.