пару слов про rust
Jan. 8th, 2020 07:02 pmКороче, CPS рулит; сейчас вмажу моноид, https://docs.rs/functional/0.0.5/functional/trait.Monoid.html, чтобы вообще не дублировать ничего и не писать циклы, где не надо (а просто fold).
Подробности:
1. Не нужно дублировать данные. Если у тебя есть данные, присобачь к ним какой-нибудь метод, чтобы применять твою функцию и устраивать какой-нибудь fold, возможно, с мапингом и фильтрацией.
2. Поэтому, вместо того, чтобы передавать коллекцию в функцию, передавай функцию в коллекцию.
3. Для фолда моноид самое то (а иначе откуда фолд?) В моноиде есть "начальное значение" и ассоциативная бинарная операция. Чтобы проехаться по коллекции, это все что надо - начали с "начального значения", и все данные переварили, получив одно значение. Левый фолд или правый - для моноида роли не играет, можно и распараллелить.
rust cache
Dec. 24th, 2019 08:20 am#[macro_use] extern crate cached; /// Defines a function named `fib` that uses a cache named `FIB` cached!{ FIB; fn fib(n: u64) -> u64 = { if n == 0 || n == 1 { return n } fib(n-1) + fib(n-2) } }
talking about Rust
Dec. 1st, 2019 10:24 pmWhy does performance even bother me? I don't know, just as a surprise.
Shit, found a bug. In short, 160ms in Rust (the naive algorithm), 700ms in Scala (same algorithm).
Rustonomicon
Oct. 13th, 2019 04:47 amHow to fuck (up) Rust and shoot in your leg professionally, as if it were C++.
о, нафигачил
Sep. 22nd, 2019 04:01 pm
src: https://github.com/vpatryshev/rustex/tree/master/mandelbrot
Will have to sanitize and civilize the code, of course.
It was the first time I generated Mandelbrot, which is weird, eh.
dawn project
Dec. 30th, 2017 10:13 am"DAWN is a five-year research project to democratize AI by making it dramatically easier to build AI-powered applications.
Our past research–from Spark to Mesos, DeepDive, and HogWild!–already powers major functionality all over Silicon Valley–and the world. Between fighting against human trafficking, assisting in cancer diagnosis and performing high-throughput genome sequencing, we’ve invested heavily in tools for AI and data product development.
The next step is to make these tools more efficient and more accessible, from training set creation and model design to monitoring, efficient execution, and hardware-efficient implementation. This technology holds the power to change science and society—and we’re creating this change with partners throughout campus and beyond."
bayarians! rust anybody?
Jul. 9th, 2016 07:59 pmJust posted. Seats are limited.