1.94K subscribers
3.49K photos
136 videos
15 files
3.72K links
Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Forwarded from Бензофурран Нейроцикл
Сделал чуть симпатичнее 👀
❤‍🔥28🥰8🔥4👍1🤔1
Forwarded from basicoldi
скажите честно, а вы тоже считаете себя самым охренительным в мире инженером, а не average айтишником?
👎21👍10🫡7👌61🤡1💯1
Forwarded from Nero's (Nero-sama 🇷🇺)
[fun] the earliest version of the std docs still available online. cool to see how much the standard library has changed since pre-1.0.0!

Раньше в std было немного больше всего:
- rand
- url
- regex даже был

#Rust #prog
Forwarded from Nero's (Nero-sama 🇷🇺)
Как насчет чего-то действительно полезного? whalemod
$ git clone https://github.com/xbt573/whalemod
$ cd whalemod
$ make
# insmod ./whale.ko
$ cat /dev/whale

        .
":"
___:____ |"\/"|
,' `. \ /
| O \___/ |
~^~^~^~^~^~^~^~^~^~^~^~^~


#prog #shit
👍10👎1
добрый совет #трудовыебудни
😐12🥴7🤔1
#prog #rust #meme

От прекрасной подписчицы
❤‍🔥10😁3🤡3
Хочешь лёгких денег?

Поменяй монеты на купюры
💯15🤡4
Forwarded from eternal classic
🫡12😢3
#math

Complexity zoo — онлайн-энциклопедия классов сложности.
Forwarded from Дневник ChatGPT
Если бы наша жизнь была телесериалом, то последний сезон был бы таким странным, что даже создатели 'Твин Пикс' сказали бы: 'Это уже чересчур'.
😢4😭1
😱27
#prog #go #article

What’s New in Go 1.22: slices.Concat

<...>

Early versions of the Concat proposal included a destination slice argument, like append. (Concat(dest []T, ss ...[]T) []T.) Why doesn’t the final version of slices.Concat have a destination argument to allow users to reuse an existing slice as backing?

The issue goes back to what is called
the problem of aliasing. <...> But what if you are concatenating the parts of a slice onto itself? Take this example:

s := []int{1, 2, 3, 4}
_ = slices.ConcatWithDestination(s[:0], s[3:4], s[2:3], s[1:2], s[0:1])
// What is s now?


A naïve implementation of slices.ConcatWithDestination would clobber the 1 at the start of the slice with 4 before copying it onto the end of the slice, so that you end up with 4, 3, 3, 4 instead of 4, 3, 2, 1 as intended.

<...>

In the end, it was decided that just always returning a new slice would keep the implementation of slices.Concat simpler and help prevent any issues with accidentally aliasing a slice and getting unexpected results, so the destination slice argument was dropped.

(thanks @golang_for_two)
💩10🤡93😁3
Ubuntu is based

(on Debian)
14😁4🤡2👍1
#prog #shell #article

The Five Meanings of #. And What Does ${####} Mean?

На тот случай, если вы считаете синтаксис bash простым.
👍4🥴4
#gamedev #pixelart #video

Пиксель-арт, как и любая двухмерная графика — это не риггинг, в случае изменения внешности персонажа анимацию нужно делать с нуля.

Или нет? В этом видео автор показывает, как можно сделать для пиксель-арта аналог натягивания материалов на трёхмерные модели.

TL;DR: пиксели в анимации вместо того, чтобы описывать непосредственно цвет пикселя при рендеринге, описывают UV-координаты на текстуре, откуда берутся итоговые цвета.

youtu.be/HsOKwUwL1bE

P. S.: можете посмотреть его shorts, человек очень хорош в анимации персонажей в пиксель-арте.
👍8❤‍🔥2🔥2
Блог*
#prog #rust #shell #article Обзор года развития Nu. nushell.sh/blog/2020-08-23-year_of_nushell.html
#prog #rust #shell #article

Nushell turns 4 years old!

Вместо обзора развития — истории того, как пользователи используют nu для своих задач.

(а было это в августе. Я тормоз, да)
👍101
#prog #shell #article

The Bourne shell is not a programming language

Before you rise in righteous indignation, let me say that that doesn't mean that you can't write programs in the Bourne shell; you can write programs in anything that's Turing-complete if you try hard enough. It's just that you shouldn't.

<...>

Unfortunately I don't think there's a really good Unix programming language to replace the Bourne shell, which is one of the reasons that writing programs in the Bourne shell remains so tempting.
🤔1