Welcome to the twenty-first Learn You A Lang for Great Good! Today, we'll be learning Flobnar, a 2D lang described as what you'd get if Befunge got drunk. During the event, feel free to post CMCs to practice Flobnar (FMCs), ask questions about the language, and so on.
The directional commands ^v<> are all as you'd expect, simply calling whatever is in that direction. The # instruction will skip over the next instruction (note that blank spaces don't count as instructions, so this is slightly different to how Befunge's # works)
Dyadic instructions like arithmetic ones (+-*/%) will evaluate the first parameter from the north and the second from the south. On division by zero, the modulo and division operators will continue straight to get a value instead
7
-@
5
will evaluate as 7-5 and output 2
There is a stack in Flobnar, but it's very different to Befunge. \ is used to push the value south of it to the stack, : can be used to retrieve the current top value, and $ to pop the top value before continuing. Note that this is only per evaluation, you can't push a value in one branch of the program and then use it in another.
:
$
+\<<\@
:7 9
This program outputs 16, where the bottom : evaluates to the 7 and the top one to the 9
@emanresuA I suppose i should also mention my answer at 19 bytes
If a function would fail, e.g input with no input left or the aforementioned division by zero, the evaluation will continue in some direction to get a default value
Flobnar, 34 bytes
Hello, World!
:> v:
g|\@>!,
00> +
Try it online!
(Previous record: 41)
The last character at the end of the first line is the null character \0.
@ Start the program
: :
\ >!,g Initially n (top of stack) = 0.
> + 0 Print the char at (n, 0), push n+1, and evaluate ...
Flobnar, 34 bytes
Hello, World!
:> v:
g|\@>!,
00> +
Try it online!
(Previous record: 41)
The last character at the end of the first line is the null character \0.
@ Start the program
: :
\ >!,g Initially n (top of stack) = 0.
> + 0 Print the char at (n, 0), push n+1, and evaluate ...
In this challenge you will be given a list of positive integers which represents some range of integers which has been truncated for display. Your job is to find the missing bits and insert ellipses to show that that part has been truncated.
The input will always be strictly ascending and if two...
Build a file/directory tree
Task
In this challenge, your task is to write a program or function which takes an array of paths with an additional boolean indicating it is a file or directory and outputs a file/directory tree in any reasonable format.
Remarks
Some directories can end with a forwar...
@pxeger Please don't mess with my posts like that. There's a reason I chose that font, and I have many other posts that use it in the same way. And using backticks doesn't give that font; I don't understand why you would try to make me think backticks give the same font as Mathjax.
I didn't use the regular header font for that because it could be confused with a language name.
There's plenty of compromises we have to do to make text look the way we want on StackExchange sites. For example, we also have to use <sub><sup>...</sup></sub> to get a small font. It sucks, but that's the way it is. So for this, using the Mathjax font to get a distinct-looking header is just what I'm stuck with.
@Deadcode I meant you should write \$\text{Modification}\$ instead of \$Modification\$ if you specifically wanted a different font. Otherwise the kerning is all wrong
The effect of the kerning is not as bad on "Variations" as it was on "Modifications" at least
But I don't see any need to get in such a tizz about it. This is a collective site, and I'm aiming to clean it up where it helps. If you insist on having it one way or the other, you can just rollback.
@pxeger It feels like a personal attack to have that kind of edit done on one of my posts. I'm a perfectionist and I carefully consider every design decision. To have one casually changed like that without my permission feels like an insult.
@emanresuA I think I'm not the one who cares. I'm defending myself against an accusation of being rude, when I had no intention of doing anything other than helping tidy some formatting
@Deadcode You can add the italics without going back to the bad kerning. But I think 1 and 4 look plenty different (not that I even think they need to be); the italic difference is much less than the whole font appearance, and serifs. But that's besides the point.
@pxeger And "you can just rollback" is not a valid argument. I am not notified when someone does an edit to my post unless I am actually looking at that post, or I happen to look at the index and see that my post got bumped and I wasn't the one who did the editing.
It's easy to miss someone else doing an edit to one of your posts.
@Deadcode I thought it unnecessary to ask you, because 1. my edit effectively already was me asking: if you didn't like it, you can just roll it back. 2. my second change brought it so close to your original while still fixing the kerning that I thought you couldn't possibly object
@Deadcode I'm pretty sure that you do get a notification when someone else edits your post
To be honest, I completely ignored "don't mess with my posts like that" because SE encourages me to edit posts when it improves them. It's not "messing with".
so your suggestion would have me do the second one instead of the first. But the second one is indented ever so slightly, and it's ever so slightly smaller. I don't like it as much...
If I do decide to do this, BTW, there will be at least half a dozen posts I have to edit. All will get bumped
If you seriously care that much about the amount of spacing around the header, you can change it to what you like. I just think the readability gain from fixing kerning on the letters was more important
@starrers: I understand if you want to show which side you support in an argument. But I think starring those messages is not a good idea, for several reasons:
@pxeger That's another reason it was not acceptable for you to do the edit, BTW. I have done the same thing on many posts, and if just one were edited, that would make my posts inconsistent.
@starrers: I understand if you want to show which side you support in an argument. But I think starring those messages is not a good idea, for several reasons:
@pxeger yup, I cleared some myself
@pxeger if you do come across a 'random pick from list' then let me know
@pxeger On a different note, could you please install python-chess on ATO? It's pretty small; shouldn't be a problem. I'd also appreciate having Boost (C++) installed, though that's much larger, so I'd understand if you don't want to.
Generate a Tiefling's Traits
A Tiefling is a character race from Dungeons and Dragons, that have a list of possible traits:
small horns
fangs or sharp teeth
a forked tongue
catlike eyes
six fingers on each hand
goat-like legs
cloven hoofs
a forked tail
leathery or scaly skin
red or dark blue ski...
I suppose Docker can't complain that much about me though, given that Arch Linux themselves are putting an entire new Arch Linux installation there several times a day
@pxeger In any case, thank you for pointing out the kerning issue, even if the way you did wasn't to my liking. As it turns out, I found a way to get basically the exact same font size but with proper formatting: old version: ## \$Text\ goes\ here\$ new version, fixed: ### \$\large\textit{Text goes here}\$ The new version is still ever so slightly indented more, but I can accept that.
So they changed it so the exact hashes for strings are unpredictable so you can't pre-compute hash collision payloads to perform denial of service attacks