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
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
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…
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
3
Tried following in @watawatabou footsteps by generating road networks using slightly modified polygon bisection algorithm. Looks promising so far!
And here’s a bonus video: an infinite city in 3D! It would probably make a nice old-style screensaver #procedural #procgen
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…
Если у вас есть 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
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
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

















