Somone send me code they wrote that was fun to write please!

@mauve Here is my implementation of FizzBuzz. As far as I know it is the world's smallest. Also note that there is no repetition of fizz, buzz, 3, or 5, making it the most elegant in my opinion. It's in BQN: ((∾´"fizz"‿"buzz"/˜0=3‿5|⊢)⎊⊢)¨1+↕100

@brandon whoaa. Is there a way to translate the symbols into function names or something? 🤯

@brandon Sweet. Think this would be better for me to learn than Uiua? uiua.org/

I've been meaning to add a "unicode outputs" mode to my keyboard which would make this a lot faster to type.

@mauve Both great APLs! All APLs are somewhat equivalent. Uiua is the code golfing one. Maybe I could write a smaller fizzbuzz in it! I agree that keyboards directly emitting Unicode is the future of programming. 😆

Follow

@brandon Sadly HID keyboards just can't do that with the way OSs handle them. 😭 Closest I can get is entering unicode escape sequences with ctrl+shift+u and some numbers as a macro.

· · Web · 1 · 0 · 0

@mauve It's fortunate then that I am working on a serial keyboard to talk directly to the Linux serial console, unbound by such limitations!

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.