Denis Olshin (@denullru) profile picture
Saint Petersburg, Russia
Joined January 2009
Got tired of waiting for a Minecraft worldgen mod which would trade infinitely-sized worlds for realistic rivers, waterfalls and tectonic-based relief, so I made one myself. I think it turned out more interesting than a bunch of noises on top of each other #minecraft #procgen
1
3
188
Decided to design a simple, yet (at least moderately) effective captcha. Came up with an idea of using emojis instead of characters. Here's a demo: denull.ru/exp/captcha What do you think?
1
2
199
Published yet another Nim library! This one is a HyperLogLog data structure implementation. It allows to estimate the number of unique elements in arbitrarily large sets, using just 12kb of memory. No dependencies, just a single Nim file :) github.com/deNULL/hyperloglo… #nimlang
1
3
233
This is a port of Redis implementation, here’s an article describing the algorithm in more detail: antirez.com/news/75 I’ve added one little tweak from myself: for small sets (up to 1000) it can store the exact list of elements, which reduces the error in this range to 0.
2
134
Nim is a great language, however its community is still relatively small, so it lacks libraries for many tasks. For example, I wanted to use perceptual hashes to find duplicate images, and couldn’t find a good package for that. So I made my own: github.com/deNULL/perceptual #nimlang
1
1
3
305
It uses ideas from pHash.org and from this post: hackerfactor.com/blog/index.… (and also a basic histogram hash for a good measure) For even better matching it would be nice to also implement SIFT/SURF. It would work much slower though.
1
1
172
I decided not to stop there and ported yet another library called Pigo to Nim. It uses something called cascade binary classifiers to detect faces and facial landmarks on photos. I still don’t fully understand how that magic works, but here it is github.com/deNULL/facedetect #nimlang
2
193
Denis Olshin retweeted
“If you're new to a world of blockchain and crypto, the task of creating smart contracts can sound scary — even as a programmer.” But not for ⁦@denullru⁩ 😁🙏 TON Smart Contracts from a Hacker's Perspective: Basics of TVM & my BOC Tool – Telegraph telegra.ph/TON-Smart-Contrac…
7
10
45
5,011
Previously I’ve generated a picture of “java developer”, as seen by Stable Diffusion network. Now I did the same with DALL-E, and its equally hilarious: labs.openai.com/s/OU6CgoiOCr… #dalle
Replying to @grishka11
а это у @denullru получилось, господи как же я ору
3
Tried following in @watawatabou footsteps by generating road networks using slightly modified polygon bisection algorithm. Looks promising so far!
1
1
14
And here’s a bonus video: an infinite city in 3D! It would probably make a nice old-style screensaver #procedural #procgen
1
5
43
I think my boredom (caused by a lack of social interactions) is now mutating into new variants :( Have anyone got any vaccines for that?
1
Made a tiny JS library to simulate “human-like” randomness. It basically prevents the same element to be chosen twice in a row — or just makes it less probable. Generates sequences which are perceived as “more random”. Here it is, check it out: github.com/deNULL/human-rand…
Wordle 212 3/6 🟩⬛🟨⬛🟨 ⬛🟨⬛🟨⬛ 🟩🟩🟩🟩🟩
Если у вас есть Telegram — проголосуйте, плз, в опросе про то, в каких социальных сетях вы активно читаете ленту: t.me/missing_username/405
As a Russian (who stores string constants in code), I feel attacked by VSCode's latest Unicode highlighting 😒
You’re unable to view this Post because this account owner limits who can view their Posts. Learn more
7
18
2
110
I mean, I get the intention (to prevent spoofing attacks like these ones: certitude.consulting/blog/en…). But still — I would very much prefer an option to enable it only outside of string literals (because making assumptions about their content doesn't seem like a good idea).
2
12
At least it tries to ignore characters which are common in the current user locale. However, I consider that more of a workaround than a solution (you can have strings in multiple languages in your code and you don't always want to match the system locale to any of them).
2
5
Whew. Guessing a word you don’t know isn’t easy, but somehow I still managed to do it Wordle 209 4/6 ⬛⬛⬛🟨⬛ ⬛⬛🟩⬛🟩 🟩⬛⬛⬛⬛ 🟩🟩🟩🟩🟩
Now also managed to replicate biome selection from the latest snapshot of @Minecraft. Should help looking for interesting seeds. Here's the seed 424242, for example (map sizes are 15360x15360 blocks and 46080x46080 blocks). #minecraft #procedural #procgen
1
1
I'm using Go, so those images are generated relatively fast (about 20s each — that's 1280x1280px resolution). But now I'm thinking about rewriting the whole thing as a fragment shader, so it could be rendered even faster using GPU🤔