1.82K subscribers
3.31K photos
132 videos
15 files
3.58K links
Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Сеть автомоек самообслуживания "Помой-ка!"
😁9🤡3
Вы не поверите, но это японский «Том и Джерри». Новую версию мультсериала нарисовали для локальной японской аудитории японцы же, добавили кавая, научили героев превращаться в конфетки и сладости…

Такое вот чудо дебютировало сегодня на японском Cartoon Network.
🔥4🥰4👍2🤯21
This media is not supported in your browser
VIEW IN TELEGRAM
Красивое

Why?

While travelling through South America network data on carriers is usually restricted to not many GBs but WhatsApp is usually unlimited, I tried to create this library since I didn't find any usable at the date.


Tunneling Internet traffic over Whatsapp
https://github.com/aleixrodriala/wa-tunnel
👍5😁32
#prog #meme

Old but gold

(возможно, вы захотите посмотреть по ссылке в полном размере)
👍8❤‍🔥1
Мало кто знает, но девушки которые в приложениях знакомств спрашивают у парней их рост, просто боятся случайно прийти на свидание к Путину или Медведеву
8😁6👍2👎1
#prog #rust

Search-based code navigation for Rust projects

Github code navigation теперь и для Rust! Правда, переходов к определению для типов пока нету.
🔥6🎉2
#prog #rust #rustlib

enum_delegate — библиотека для реализации трейта для enum в терминах реализаций трейта для его вариантов. Позволяет легко свести динамический полиморфизм к статическому, когда набор типов, реализующих трейт, ограничен и известен наперёд.

#[enum_delegate::register]
trait SayHello {
fn say_hello(&self, name: &str) -> String;
}

struct Arthur;
impl SayHello for Arthur {...}

struct Pablo;
impl SayHello for Pablo {...}

#[enum_delegate::implement(SayHello)]
enum People {
Arthur(Arthur),
Pablo(Pablo),
}

/* разворачивается во что-то вроде:

impl SayHello for People {
fn say_hello(&self, name: &str) {
match self {
Self::Arthur(x) => x.say_hello(name),
Self::Pablo(x) => x.say_hello(name),
}
}
}

а также

impl From<Arthur> for People { ... }
impl TryFrom<People> for Arthur { ... }
*/

Вы, вероятно, спросите, а зачем это, когда есть enum_dispatch. Как пишет автор:

Comparison with enum_dispatch

🟡 Performance: the same. This is expected, since they generate very similar code. (See
benchmarks in the repo.)

Works across crates. Due to technical limitations of how
enum_dispatch is implemented, it can only be used if both the trait and enum are in the same crate. enum_delegate, however, allows you to put them in separate crates. (See cross_crate_example in the repo.)

Better errors. Again due to technical limitations, in some cases
enum_dispatch will quietly fail. With enum_delegate, your code will either succeed, or fail to compile. Admittedly, some of the error messages are not perfect, but at least you'll know something's up. (See tests_error in the repo.)

Associated types.
enum_delegate has some support for associated types, but enum_dispatch doesn't. (See examples in the repo.)
7👍1
Forwarded from я что-то �� и всё ����
🔁 TSG
biblically accurate vlc
😁21👍1
👎1
Forwarded from Двач
😁23💩21
Machine, turn back now. The layers of this palace are not for your kind. Turn back, or you will be crossing the Will of God.

...

Your choice is made. As the righteous hand of The Father I shall rend you apart. And you will become inanimate once more.
👍5👎3😐2
You insignificant FUCK!
👍4👎4😐2
Forwarded from Denis Sexy IT 🤖
This media is not supported in your browser
VIEW IN TELEGRAM
Нашел самый полезный сайт в интернете – https://purrli.com/play.php

Он просто делает пур пур пурр, и будто у вас котик 💻
Please open Telegram to view this post
VIEW IN TELEGRAM
9
Попробуй просто сменить формулировку! 🐼
Почувствуешь смену отношения самого к себе и другую, более положительную, реакцию людей вокруг 🤍

🖌️: comicsguys

#Поддержка
#МентальноеЗдоровье
👍7🤩4👎2