Forwarded from мне не нравится реальность
а вафель тем временем преодолел отметку в 100
rust-lang/rust
PR'ов 🦀🦀🦀🔥22
мне не нравится реальность
а вафель тем временем преодолел отметку в 100 rust-lang/rust PR'ов 🦀🦀🦀
А Вафель ещё не верил, когда я ему говорил, что он лучше меня, как Rust-разработчик
👍4💩4
#prog #rust #article
Пара статей про опыт использования Rust в проде.
Первая, от января 2017 года — Rust at OneSignal (актуальной на тот версией Rust была 1.5). Даже не смотря на очевидные на тот момент слабые моменты Rust (большинство из которых в настоящий момент не актуальны), в целом статья позитивно отзывается о решении переписать имеющийся изначально код с Ruby на Rust:
We've had fantastic results building one of our core systems in Rust. It has delivered many billions of notifications, and it's delivering more and more each day. We hope that sharing our experience as early adopters in the Rust ecosystem will be helpful to others when making similar decisions. We've certainly found Rust to be a secret weapon for quickly building robust systems.
Вторая статья была опубликована четыре года спустя: Four Years of Rust At OneSignal. В ней отмечается, что за это время поменялось в Rust (главным образом стабилизировали async/await) и как это сказалось на том, как они пишут код.
Пара статей про опыт использования Rust в проде.
Первая, от января 2017 года — Rust at OneSignal (актуальной на тот версией Rust была 1.5). Даже не смотря на очевидные на тот момент слабые моменты Rust (большинство из которых в настоящий момент не актуальны), в целом статья позитивно отзывается о решении переписать имеющийся изначально код с Ruby на Rust:
We've had fantastic results building one of our core systems in Rust. It has delivered many billions of notifications, and it's delivering more and more each day. We hope that sharing our experience as early adopters in the Rust ecosystem will be helpful to others when making similar decisions. We've certainly found Rust to be a secret weapon for quickly building robust systems.
Вторая статья была опубликована четыре года спустя: Four Years of Rust At OneSignal. В ней отмечается, что за это время поменялось в Rust (главным образом стабилизировали async/await) и как это сказалось на том, как они пишут код.
Customer Engagement Blog
Rust at OneSignal
Read all about our blazing fast Push Notification delivery system, OnePush, which is written in The Rust Programming Language.
👍2🔥1
Forwarded from Смирнов
Территории мы оставляем временно, наша армия скоро перейдет в решительное наступление. Надо только избавиться от генералов старой школы, нужны новые волевые офицеры, способные возглавить армию. От старых генералов только предательство и неумение воевать. Лидер страны понимает это как никто другой и лично руководит военными операциями.
Все проблемы из-за отсутствия дисциплины как на фронте, так и в тылу. Многие в тылу до сих пор не понимают, какую мы ведем войну и нужно напрячь все силы, чтобы победить. У нас большая армия и стальная воля.
Но почему мы продолжаем отступать, где армия, где новейшее оружие, про которое нам говорили в последние годы? Неужели этого всего нет? Но ведь нам десять лет говорили, что такое невозможно и мы разобьем любого врага.
Надо немного подождать и мы точно сможем разбить врага – повторяет пропаганда. Тем временем все больше и больше людей задавали вопросы, почему так происходит на фронте. С другой стороны было много тех, кто до сих пор верил властям и был уверен, что ситуация резко изменится.
Это краткое изложение первой части книги Бивора «Падение Берлина», если что
Все проблемы из-за отсутствия дисциплины как на фронте, так и в тылу. Многие в тылу до сих пор не понимают, какую мы ведем войну и нужно напрячь все силы, чтобы победить. У нас большая армия и стальная воля.
Но почему мы продолжаем отступать, где армия, где новейшее оружие, про которое нам говорили в последние годы? Неужели этого всего нет? Но ведь нам десять лет говорили, что такое невозможно и мы разобьем любого врага.
Надо немного подождать и мы точно сможем разбить врага – повторяет пропаганда. Тем временем все больше и больше людей задавали вопросы, почему так происходит на фронте. С другой стороны было много тех, кто до сих пор верил властям и был уверен, что ситуация резко изменится.
Это краткое изложение первой части книги Бивора «Падение Берлина», если что
🤔22🤡8👍6🔥1😁1😱1
#prog #rust #article
A little fixed point math for embedded audio
Или как расчитать синусоиду при помощи предрасчитанных значений и целочисленных операций с приемлемой для аудио точностью.
When profiling this approach, My average loop time was now down to 22 cycles per iteration, meaning it would now only take me 970.2k CPU cycles per second, or 1.5% of my total CPU time!
I also checked my approximation against the "real" floating point sine operation, and found a maximum error of 0.012% for any
A little fixed point math for embedded audio
Или как расчитать синусоиду при помощи предрасчитанных значений и целочисленных операций с приемлемой для аудио точностью.
When profiling this approach, My average loop time was now down to 22 cycles per iteration, meaning it would now only take me 970.2k CPU cycles per second, or 1.5% of my total CPU time!
I also checked my approximation against the "real" floating point sine operation, and found a maximum error of 0.012% for any
i16
value, which is more than close enough for my ears!Jamesmunns
A little fixed point math for embedded audio
Recently, I wanted to generate some sounds for MnemOS, and I wanted it to go fast.
This is a little mini-blog post describing how I did that using fixed point math, and reduced the total CPU usage to about 20% of the original amount.
This is a little mini-blog post describing how I did that using fixed point math, and reduced the total CPU usage to about 20% of the original amount.
🔥4
Forwarded from ozkriff.games 🦀 (ozkriff🇺🇦)
This media is not supported in your browser
VIEW IN TELEGRAM
# 3D Ferris Model by @RayMarch 🦀
Speaking of 3D models, have you already seen the awesome rigged model by @RayMarch? Here's the blend file - it's CC0 public domain licensed, so you're free to use it however you like.
Speaking of 3D models, have you already seen the awesome rigged model by @RayMarch? Here's the blend file - it's CC0 public domain licensed, so you're free to use it however you like.
🥰9🔥1
#prog #article
Уже немного олд, но всё равно хорошо
Command-line Tools can be 235x Faster than your Hadoop Cluster
Уже немного олд, но всё равно хорошо
Command-line Tools can be 235x Faster than your Hadoop Cluster
#math #article
How knowing math helps you write better software
> So I like to justify why learning mathematics will make you, in your day-to-day life, write better software. Disclaimer: I’m going to be doing a lot of handwaving here and bring up very historically inaccurate examples. I call this style “Hillel is writing a newsletter and doesn’t want to do research”.
---
> The book I’m using to learn graph theory, the Wilson book, is really good at emphasizing this. Every chapter ends with a selection of real world problems that don’t look like they have anything to do with graphs, but are elegantly modeled with them. One example is Hall’s theorem: if we have a given set of talks and a given set of slots in the schedule, where each talk can only go in a subset of the slots, can we successfully pair up the talks and slots? This problem can be represented as a bipartite graph, which gives us necessary-and-sufficient conditions for there being a solution. That’s really cool!
---
> I want to emphasize the difference between “math as knowledge” and “math as a skill”. There’s the pure math skill of being able to prove that the eigenvector of a stochastic matrix represents a steady state. There’s the applied math skill of being able to find the eigenvector by hand, or transform the matrix to make it more amenable to computation. For us, those skills aren’t nearly as important. It’s better to know more kinds of things that can be used as abstractions, properties of those abstractions, and what transformations are possible than it is to actually prove those properties or make those transformations.
(There’s still a skill here: being able to faithfully translate between the world and the abstraction. Recognizing a problem is represented by a stochastic matrix is useless if you can’t actually write the corresponding stochastic matrix.)
How knowing math helps you write better software
> So I like to justify why learning mathematics will make you, in your day-to-day life, write better software. Disclaimer: I’m going to be doing a lot of handwaving here and bring up very historically inaccurate examples. I call this style “Hillel is writing a newsletter and doesn’t want to do research”.
---
> The book I’m using to learn graph theory, the Wilson book, is really good at emphasizing this. Every chapter ends with a selection of real world problems that don’t look like they have anything to do with graphs, but are elegantly modeled with them. One example is Hall’s theorem: if we have a given set of talks and a given set of slots in the schedule, where each talk can only go in a subset of the slots, can we successfully pair up the talks and slots? This problem can be represented as a bipartite graph, which gives us necessary-and-sufficient conditions for there being a solution. That’s really cool!
---
> I want to emphasize the difference between “math as knowledge” and “math as a skill”. There’s the pure math skill of being able to prove that the eigenvector of a stochastic matrix represents a steady state. There’s the applied math skill of being able to find the eigenvector by hand, or transform the matrix to make it more amenable to computation. For us, those skills aren’t nearly as important. It’s better to know more kinds of things that can be used as abstractions, properties of those abstractions, and what transformations are possible than it is to actually prove those properties or make those transformations.
(There’s still a skill here: being able to faithfully translate between the world and the abstraction. Recognizing a problem is represented by a stochastic matrix is useless if you can’t actually write the corresponding stochastic matrix.)
buttondown.email
How knowing math helps you write better software
Projects Update TLA+ workshop last week went really well! I’m super happy with the current state of the workshop and while I’ll still be making a bunch of...
👍1🔥1
С днём рождения, Андрей "ozkriff" Лесников!
Telegram
ozkriff.games 🦀
👋 I'm @ozkriff: Rust zealot, hobby game developer, fan of turn based games, one of arewegameyet.rs' maintainers and gamedev.rs' editors. ex-Wargaming, ex-JetBrains.
See the pinned message for more info and links: https://t.iss.one/ozkriff_games/4
See the pinned message for more info and links: https://t.iss.one/ozkriff_games/4
🎉16
PONV Daily
https://twitter.com/AStrasser116/status/1576648460194807808/
Как находить paper-ы. Мне точно пригодится