TGViewer
Channel Public Channel
Блог*

Блог*

@dereference_pointer_there

Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Subscribers
1.98K
Photos
4K
Videos
157
Links
4.1K

Showing posts older than #11373 · Back to latest

Older Posts 19 shown
Post #11372 1.09K
#article

Some thoughts on writing (от Dan Luu)

I see a lot of essays framed as writing advice which are actually thinly veiled descriptions of how someone writes that basically say "you should write how I write" <...>

<...> if you're trying to figure out what stylistic choices are right for you, you should start from your goals and what you're good at and go from there, not listen to somebody who's going to tell you to write like them. Besides being unlikely to work for you even if someone is able to describe what makes their writing tick, most advice is written by people who don't understand how their writing works.

Как это часто у Dan Luu бывает, у эссе несколько дополнений, некоторые из которых с основной темой связаны несколько косвенно.
  • ❤ 8
Post #11371 977
Отвратительно
  • 😁 13
Post #11370 1.13K
Post #11367 1.09K
#prog #rust

Call for testing: Restricting trait implementability and field mutability

Две фичи на nightly. impl_restriction позволяет указать на определении трейта, в каких модулях можно писать его реализацию.

pub mod foo {
pub mod bar {
pub(crate) impl(super) trait Foo {}
}

// `Foo` may be implemented here.
impl bar::Foo for i8 {}
}

// Error: `Foo` cannot be implemented here.
impl foo::bar::Foo for u8 {}

mut_restriction позволяет указывать на полях, в каких модулях его можно изменять:

pub mod foo {
pub struct Bar {
pub mut(self) alpha: &'static str,
}

impl Bar {
pub fn mutate_inner(&mut self) {
// `alpha` may be mutated here.
self.alpha = "inner";
}
}
}

impl foo::Bar {
pub fn mutate_outer(&mut self) {
// Error: `alpha` cannot be mutated here.
self.alpha = "outer";
}
}


Первая фича с impl(crate) позволяет выразить паттерн sealed trait напрямую.
blog.rust-lang.org Call for testing: Restricting trait implementability and field mutability | Inside Rust Blog Want to follow along with Rust development? Curious how you might get involved? Take a look!
  • 👍 8
  • 👎 5
Post #11366 928

Forwarded from trace!("TheBestTvarynka") (Pavlo Myroniuk)

Another interesting tool that I found in the Rust Ukrainian Community chat: https://niche.rs/
Rust type layout & niche optimization visualizer.

You type any Rust type and it will visualize that type layout. Pretty interesting to watch and experiment.

If I had known about the niche earlier, I would have used it to teach students about structure layout, padding, and related optimizations.
Telegram Vladimir in Українська Rust Спільнота 🇺🇦 https://niche.rs/
  • 👍 7
  • ❤ 3
Post #11364 895
#prog #rust #meme

r/rustjerk, откуда ж ещё
  • ❤ 12
  • 😭 4
Post #11363 903
OOP stands for "Overly obfuscated programming"

#предложка
  • 💯 24
  • 🫡 4
  • 👍 2
  • ❤‍🔥 1
Post #11362 1.02K
Опросы на работе би лайк
  • 🌚 23
  • 🍌 6
  • 😁 3
Post #11359 1.06K
😐
  • 🤣 15
  • 💩 6
  • 😁 1
Post #11358 1.3K
Бесит, когда игроки отказываются приходить на ролёвки по надуманным поводам. Типа "у меня завал по работе", или "я не в стране", или вообще "у нас в семье новый ребёнок"
  • 😁 18
  • ❤ 11
  • 💯 5
  • 😢 2
  • 🤨 1
Post #11357 1.05K
  • 👍 17
  • ❤ 12
  • 🤮 5
  • 💩 5
  • 😁 3
  • 👎 2
  • 🤩 2
  • 👌 2
Post #11356 930
Блог* 💅
💅
  • ❤‍🔥 4
  • 🤮 2
  • 👎 1
  • 💩 1
Post #11355 1.1K
Post #11354 696

Forwarded from Технологический Болт Генона

Кто там жаловался на инсталляцию вида curl https://... | sh?

Вот вам вариант получше

> SQL interface for Ghidra program databases. Query functions, cross-references, types, decompilation output, and more using standard SQL.
https://github.com/0xeb/ghidrasql

Install with an AI agent (recommended)

The fastest way to get ghidrasql running end-to-end is to point an AI coding agent (Claude Code, Cursor, Codex, Aider, etc.) at the bundled installer prompt:
install-prompt.md
  • 😁 24
  • 🤮 10
  • ❤ 1
  • 🤩 1
Post #11353 796

Forwarded from brain_leakage_etc

Снова порадовался тому, что Safari хранит историю в SQLite, хоть и добраться до файла не так уж и просто из-за огораживания macOS.

У меня отключена очистка истории в настройках браузера, уж и не помню с каких пор. И когда я перключаю настройку в "забывать всё, спустя год", Safari говорит, мол, ты точно хочешь удалить 100000 записей? При этом сам Safari колдобится от такого объёма истории, но продолжает терпеть, раз я решил хранить всё 🤪

Короче говоря, я периодически хожу и грохаю поиски, ссылки на youtube, на Gmail. Последний вообще любит намусорить в историю, хотя сама идея вынести состояние в URL и неплохая. Вот и сегодня я сходил, для разнообразия с помощью duckdb, вспомнил схему, прогнал парочку "DELETE FROM ... WHERE url LIKE ...", а потом полирнул с помощью VACUUM. Прямо приятно стало от такой мощи в моих ручищах!
  • ❤ 10
  • 😱 2
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →