Nano Nicholson
banner
nanoqsh.bsky.social
Nano Nicholson
@nanoqsh.bsky.social
100 followers 150 following 120 posts
[ru, en] Memory safety enthusiast 🦀
Posts Media Videos Starter Packs
Honestly, I use ai often, it's very useful tool 💕

But I don't ask it to write the code to me. I use it as a search engine or as a rubber duck, which can answer you, for example to come up a name for variables

Yes, sometimes it writes some code, but just as an example for me
Programmers have already reached the level of technological singularity, accelerating its approach not through progress, but through degradation
Жаль что совершеннолетний
"можно же просто купить больше комплектующих" - очень удобно, особенно когда их будешь покупать не ты, а твои пользователи 🙂
Programmers have already reached the level of technological singularity, accelerating its approach not through progress, but through degradation
Да, но из за этого строка значительно компактнее в памяти 🥰

В частности, в 16 байт влазит 24 символа. К тому же из за ограничения длины строка хранится не по указателю, а прямо на стеке. Из за этого строку не нужно аллцировать в хипе и она `Copy`, то есть не нужно вызывть `.clone()` для копирования
В ascii один символ - один байт. Тут более компактно ужимается
Ору с этих пикч как последний умственно одаренный
I heard a take: "vibe coding works well when you don't know the language"

So why not just learn the language? 🙃
I think this a fake statistics (unfortunately)
I'll tidy up the environment elements and show them too, but later
A small spoiler of my game 🥰
(I posted a gif but it's too compressed)
Rust is simple and minimal language

Want generics, concepts? - Use traits
Dynamic polymorphism? - Traits
Operator overloading? - Traits
Function overloading? - Traits
Extended methods? - Traits
Auto generate code - Traits (derive)
Mark types - Traits (Send/Sync)

So many features are covered by one
You didn't follow me on github yet? Why?

github.com/nanoqsh
Литерально я
Какая у тя вселенная?
Можно было бы, но в питоне довольно сложно оптимизировать структуры данных. Да и не нужно
Based on this concept I wrote a crate that you can easily use crates.io/crates/ni

It also has serde and bincode support 🥰

In fact, I already used this code in my project and I decided to put it in an external crate
And then we could write something like this 💕

Now we can easily create small strings without heap allocations that will be cheap to copy. Isn't that cool? 🦀

(To decode a string actually no allocations are needed either, the decode function is simplified ⚡)
Let's expand the number system to 36: 10 digits and 26 letters. And event up to 37 - let's add an additional symbol for word splitting, like `_`

We can also move the range of characters for convenience, for example it is not necessary to start with the character 0. Let it be `_` for example