Just completed cryptopals set 1 challenge 4: detect single-character XOR in #ziglang. :D
https://github.com/leroycep/cryptopals/commit/8781a22d2407a72f6ff1eb18f605668ca595526f
Just solved "Search in Rotated Sorted Array" on Leetcode: https://leetcode.com/problems/search-in-rotated-sorted-array/submissions/
It was interesting to solve it in `O(log n)` time, as I had to use a binary search to find the pivot, instead a specific value. I love problems that take an old tool and use it in a new way.
https://spacepub.space/videos/watch/1619c000-7c44-4330-9177-29a0854bd759
Forks & pull requests versus emails
Made a simple chat app using #ziglang, SDL2, pathfinder[0], and ENet[1]! The long-term plan is to make a multiplayer game like minecraft.
[0]: https://github.com/servo/pathfinder
[1]: http://enet.bespin.org/index.html
Silly but fun demo of self-hosted Zig progress:
https://asciinema.org/a/ZZ9h3zM86E9pVCMWe9myOhbqi
It compiles a zig source file with 1,000,000 calls to print("hello world") in 0.67 seconds using 471 MiB resident memory. This is 8x as fast as clang on equivalent C code and 3x less memory.
#Pinephone by @PINE64 running #SailfishOS talks to #Pinetime.
Video by @adampigg@twitter.com
https://twitter.com/adampigg/status/1255826610147725314
@sir It's a couple of craftsmanships (design, implementation, probably something else). So you can make science of it (e.g. what goes fast for what kind of problem etc.), you can use it to create art (just like painting a craft, but the way you do it makes it art) so it may be subject to both, one, or none. But I'd not say it *is* one or the other.
Jitsi Meet: How many video participants in a single conference room can a self hosted server support? Didn't find a good answer so I tried it out myself:
https://blog.wirelessmoves.com/2020/03/jitsi-meet-and-the-number-of-video-participants.html
Built a snake game using zig and #WebAssembly, you can check it out here: https://leroycep.github.io/snake-game/
M24, the Sagittarius Star Cloud, isn't a nebula or star cloud, but a hole in the dust of our Galaxy which allows us to see deep towards the core of our Galaxy and the countless stars therein. #astrophoto
We're thrilled to welcome Mozilla to the Matrix federation! Moznet IRC was disabled yesterday, so come join Mozilla on Matrix! https://matrix.org/blog/2020/03/03/moznet-irc-is-dead-long-live-mozilla-matrix
"I don't wanna kidnap princesses!" whined the little dragon.
"Then you needn't," replied the little dragon's father.
"But grampa said."
"Grampa is very old, and things were different in his time," the little dragon's father explained, "So if you'd rather kidnap princes, you have your mother's and my support."
"But I don't wanna kidnap ANYBODY."
The larger dragon paused, puzzling this fact.
"You... could develop Ransomware?"
"Ew!"
Thanks to awesome work by subdiff
, now auto-rotation works in #PlasmaMobile (and #PlasmaDesktop) by @kde .