1.83K subscribers
3.3K photos
131 videos
15 files
3.57K links
Блог со звёздочкой.

Много репостов, немножко программирования.

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Почему некоторые люди сообщения в мессенджерах называют "смс"? 🤔
😱6
Forwarded from Jem
https://johnpublic.mataroa.blog/blog/the-asshole-test

Some years back I applied to join IBM's grad scheme, there was a peculiar stage to the process I've not seen elsewhere. It was during the onsite day, where a batch of 20 or so applicants were put through various tests in an IBM office. They called it the "group test".

Around 8 of us were led to a room and asked to solve a puzzle together. Each of us was given an information pack, there was a white board, and a timer ticking down from 60 minutes. At first there was silence as we looked at our packs, then the first voice: "Let's pool our information", someone stands up by the whiteboard, grasping a marker. Silence, it's not clear how this information should be parsed. One person starts reading theirs out word for word. This is not going to scale. Someone interrupts. Before long the whiteboard leader has been deposed and another is wielding the marker. Then another fights for control. The 60 minutes has run out, the puzzle is unsolved. Confused and drained we head off to the next test.

At the end of the day the group is split into two rooms, my room is given the good news and I go on to join the grad scheme.

Six months later I am shadowing a colleague who is running the "group test". I asked him if he'd ever seen a group complete the test? "Oh, it's not about that, this is an asshole test. You see who turns into an asshole under pressure and they don't make it to the next round".
👍16👎1
#prog #rust #rustlib

В стандартной библиотеке есть тип std::ffi::CStr, предназначенный для представления невладеющих C-строк. Не смотря на то, что для определения этого типа не нужно ничего, чего не было бы в core, у этого типа есть методы, в сигнатурах которых фигурирует CString, владеющая C-строка. CString для работы требует доступа к динамическому выделению памяти, поэтому не может быть определён в core.

Таким образом, хоть CStr и полезен, из-за этих моментов CStr определён в std и потому не может быть использован в #![no_std] программах. Это стало достаточно большой проблемой, чтобы появился крейт cstr_core, который по умолчанию зависит только от core и подключает фичи, требующие alloc, только по явному требованию. К счастью, в скором времени это станет ненужным, так как CStr переедет в core, а CString — в alloc.
🔥4
👍1
Forwarded from TOV_MULTIMASSO
Тайплевел фикс без генериков - это как марсовая палуба без корабля
🔥2🥰1
Нахер День победы
👍61👎39💩163🤮2🤡2🔥1
Forwarded from Перекур (Леон Людский)
24
#prog #meme про Excel