May I ask why you choose Rust to write math and algorithms? I would have chosen Julia :p
Realistically?—Python and Rust are the only two languages I’m Really Good at, and I’m more Excited about Rust because I write enough Python at my dayjob? In my defense, the .windows iterator on slices was really handy here and is shamefully missing from Python’s itertools.
.windows
itertools
Toolz has a sliding window.
Hy’s partition can also do a sliding window like Clojure’s can, by setting the step argument.
partition
step
Julia’s IterTools has the partition with step argument as well
Rust is a fascinating new language to learn, but not designed for scientific computing. For that Julia is the new kid on the block, and quite easy to pick up if you know Python.
Current theme: default
Less Wrong (text)
Less Wrong (link)
Arrow keys: Next/previous image
Escape or click: Hide zoomed image
Space bar: Reset image size & position
Scroll to zoom in/out
(When zoomed in, drag to pan; double-click to close)
Keys shown in yellow (e.g., ]) are accesskeys, and require a browser-specific modifier key (or keys).
]
Keys shown in grey (e.g., ?) do not require any modifier keys.
?
Esc
h
f
a
m
v
c
r
q
t
u
o
,
.
/
s
n
e
;
Enter
[
\
k
i
l
=
-
0
′
1
2
3
4
5
6
7
8
9
→
↓
←
↑
Space
x
z
`
g
May I ask why you choose Rust to write math and algorithms? I would have chosen Julia :p
Realistically?—Python and Rust are the only two languages I’m Really Good at, and I’m more Excited about Rust because I write enough Python at my dayjob? In my defense, the
.windows
iterator on slices was really handy here and is shamefully missing from Python’sitertools
.Toolz has a sliding window.
Hy’s
partition
can also do a sliding window like Clojure’s can, by setting thestep
argument.Julia’s IterTools has the partition with step argument as well
Rust is a fascinating new language to learn, but not designed for scientific computing. For that Julia is the new kid on the block, and quite easy to pick up if you know Python.