Size: a a a

2020 January 21

B

Bogdan in rust_offtopic
стоп


почему MaybeUninit::get_mut  найтли

без этого мтеода с ним анриал работать
источник

А⚙

Антон ⚙️ in rust_offtopic
Всё похерено, ничего не видно
источник

B

Bogdan in rust_offtopic
источник

DF

Dollar Føølish in rust_offtopic
Re: Low unemployment isn’t worth much if the jobs bare...
       
We must do away with the absolutely specious notion that everybody has to earn a living. It is a fact today that one in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a living. We keep inventing jobs because of this false idea that everybody has to be employed at some kind of drudgery because, according to Malthusian-Darwinian theory, he must justify his right to exist. So we have inspectors of inspectors and people making instruments for inspectors to inspect inspectors. The true business of people should be to go back to school and think about whatever it was they were thinking about before somebody came along and told them they had to earn a living. - Buckminster Fuller

One in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a wage. - Buckminster Fuller

... via https://github.com/globalcitizen/taoup
       
contingencies, 7 hours ago
источник

SP

Stanislav Popov in rust_offtopic
polunin.ai
1 нет
2 не нужен
3 не нужен
4 не нужен
мой личный список:

- блоков/скопов нет
- синтаксис хуёво парсится даже самим питоном. резолюшен оффсет локации кода - строка
- импорты/экспорты дырявые - экспортируют и реекспортируют все что содержат
- предельная слоупочность изза отсутствия жит компилятора
- крайне токсичное сообщество из олдфагов которые рубят все попытки сделать из него нормальный язык

и да - питон сейчас и писат которым его видит гвидо сейчас - это разные языки
источник

B

Bogdan in rust_offtopic
Вафель
@Psilon Ну кстати мири не ругается на такой код:

let mut buf: [u8; 10] = unsafe { mem::MaybeUninit::uninit().assume_init() };
for hole in &mut buf {
   *hole = 10;    
}
dbg!(buf);


🤔
а вот то, что если закоментить
//*hole = 10;
и мири тоже не ругается — это уже проблема Miri  как мне кажеться
источник

B

Bogdan in rust_offtopic
или его только с FFI юзать можно?
источник

B

Bogdan in rust_offtopic
Вафель
@Psilon Ну кстати мири не ругается на такой код:

let mut buf: [u8; 10] = unsafe { mem::MaybeUninit::uninit().assume_init() };
for hole in &mut buf {
   *hole = 10;    
}
dbg!(buf);


🤔
assume_init

It is up to the caller to guarantee that the MaybeUninit<T> really is in an initialized state. Calling this when the content is not yet fully initialized causes immediate undefined behavior.
источник

DF

Dollar Føølish in rust_offtopic
Кек
источник

DF

Dollar Føølish in rust_offtopic
А номикон такой щас мы быстренько перечислим все уб
источник

DF

Dollar Føølish in rust_offtopic
Ага хуй
источник

А⚙

Антон ⚙️ in rust_offtopic
Stanislav Popov
мой личный список:

- блоков/скопов нет
- синтаксис хуёво парсится даже самим питоном. резолюшен оффсет локации кода - строка
- импорты/экспорты дырявые - экспортируют и реекспортируют все что содержат
- предельная слоупочность изза отсутствия жит компилятора
- крайне токсичное сообщество из олдфагов которые рубят все попытки сделать из него нормальный язык

и да - питон сейчас и писат которым его видит гвидо сейчас - это разные языки
Насчёт импортов: есть же __all__
источник

А⚙

Антон ⚙️ in rust_offtopic
Dollar Føølish
Ага хуй
Блять
источник

B

Bogdan in rust_offtopic
Антон ⚙️
Но перед этим взял мутабельную ссылку на неинициализированные данные
the rules around references to uninitialized data are not finalized yet, but until they are, it is advisable to avoid them.


источник

G

Gymmasssorla in rust_offtopic
polunin.ai
1 нет
2 не нужен
3 не нужен
4 не нужен
Выкидывай match из Rust, он не нужен
источник

P

Pavel in rust_offtopic
Dollar Føølish
Re: Low unemployment isn’t worth much if the jobs bare...
       
We must do away with the absolutely specious notion that everybody has to earn a living. It is a fact today that one in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a living. We keep inventing jobs because of this false idea that everybody has to be employed at some kind of drudgery because, according to Malthusian-Darwinian theory, he must justify his right to exist. So we have inspectors of inspectors and people making instruments for inspectors to inspect inspectors. The true business of people should be to go back to school and think about whatever it was they were thinking about before somebody came along and told them they had to earn a living. - Buckminster Fuller

One in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a wage. - Buckminster Fuller

... via https://github.com/globalcitizen/taoup
       
contingencies, 7 hours ago
ну, может ты и не должен доказывать, что приносишь какую-то пользу обществу _постоянно_, но почему бы не делать это время от времени, чтоб другие не чувствовали, будто бы они должны делиться своими доходами с теми, кто не приносит им пользы?
источник

А⚙

Антон ⚙️ in rust_offtopic
unsafe функции на то и unsafe, что для их корректной работы нужно соблюсти условия, которые невозможно или дорого заенфорсить
источник

DF

Dollar Føølish in rust_offtopic
Pavel
ну, может ты и не должен доказывать, что приносишь какую-то пользу обществу _постоянно_, но почему бы не делать это время от времени, чтоб другие не чувствовали, будто бы они должны делиться своими доходами с теми, кто не приносит им пользы?
Какой пользы ты хочешь? Чтобы делёжка окупалась?
источник

P

Pavel in rust_offtopic
Dollar Føølish
Какой пользы ты хочешь? Чтобы делёжка окупалась?
например, чтоб во дворе чисто было
источник

DF

Dollar Føølish in rust_offtopic
Должно ли это включать в себя уборку дерьма твоей собаки?
источник