Vyxal

For discussion about Vyxal. Repo: https://github.com/Vyxal/Vyxal | Org: https://github.com/Vyxal | Interpreter: https://vyxal.github.io/latest.html (v3) OR https://vyxal.pythonanywhere.com/ (v2) | Discord: https://discord.gg/N9AfEF9zz5
51m ago – Themoonisacheese
Themoonisacheese: 51m ago, 730 posts (0%)Ginger: 1h ago, 9825 posts (7%)Bridget: 1h ago, 6860 posts (5%)Vyxal Bot: 1h ago, 18216 posts (13%)Redz: 12h ago, 136 posts (0%)Weird Glyphs: no posts
93

export all events for this room

Starred posts

1 31 32 33 34 35
Apr 21, 2020 06:20
Flag less is 19 bytes
Apr 21, 2020 06:19
Multiply the string "buzz" by the divisibility of the number by 5
Apr 21, 2020 06:19
Add those two strings and short circuit or with the number
Apr 21, 2020 06:19
And voila: 18 bytes, which is 2 less than Jelly
Apr 21, 2020 06:18
Essentially, push a range 0-100
Apr 21, 2020 06:18
For each, multiply the string "fizz" by the divisibility of the number by 3
Apr 21, 2020 06:17
I've got an 18 byter but I can't type it on my phone because Unicode
Apr 21, 2020 06:17
But you've already seen what it'll be like in the Keg room
Apr 21, 2020 06:17
Nice!
Apr 21, 2020 06:16
Vyxal can beat jelly in Fizzbuzz by 2 bytes
Apr 21, 2020 06:14
But if it goes n then string, yes
Apr 21, 2020 06:13
@petStorm no because the input cycles
Apr 21, 2020 06:01
Wouldn't just Ðř work?
Apr 21, 2020 05:59
@Lyxal It doesn't need to get nulled. It can just leave the string as-is.
Apr 21, 2020 05:59
Because, ř already does the job for you.
Apr 21, 2020 03:00
(Ð): Pop [x, n] Push (x in direction n)
(ř): Pop [x, n] Push (repeat(x, n))
Apr 21, 2020 02:55
Ð will put the target string in the direction of the input. If the input is positive, nothing happens. If it is negative, it gets reversed. Otherwise, it gets nulled.
Apr 21, 2020 02:54
String Ðirection, Input and discard, řepeat each character in the string n times.
Apr 21, 2020 02:48
Ð?_ř multiply a number by a string 4 bytes
Apr 21, 2020 00:41
So this time round, I'm creating the codepage first, then implementing it all
Apr 21, 2020 00:41
Okay, I see.
Apr 21, 2020 00:40
And the old characters no longer do their job
Apr 21, 2020 00:40
Sure, you could have two characters doing one thing...
Apr 21, 2020 00:40
But then you've got 2 pages.
Apr 21, 2020 00:40
There's a reason why I've moved on from Keg
Apr 21, 2020 00:40
And it's because of the flaws that existed.
Apr 21, 2020 00:40
The codepage being one of those flaws
Apr 21, 2020 00:39
@petStorm Sure, but then backwards compatibility goes out the window.
Apr 21, 2020 00:39
Because if there are different code pages, then things like string compression messes up
Apr 21, 2020 00:38
(If your codepage is already filled... you can't add instructions dynamically anymore.)
Apr 21, 2020 00:27
@petStorm Sure, but my idea is to a) plan everything first (including the codepage) and b) incrementally implement everything once it's all planned
Apr 21, 2020 00:27
Because I don't want another codepage riddled by placeholders
Apr 21, 2020 00:27
And besides, if I plan everything first, I have a list to work through, meaning I always have a next thing to work on
Apr 20, 2020 13:54
If it gets too big, you won't be able to implement it anymore.
Apr 20, 2020 13:53
You might want to stop drafting Vyxal and start implementing it.
Apr 20, 2020 10:21
room topic changed to Vyxal: For discussion about the upcoming (Keg-based) golfing language Vyxal. [code-golf] [language-design] [unicode]
Apr 20, 2020 10:11
⎛⎝⎠⎞
Apr 20, 2020 08:13
My computer has a built-in emoji viewer
Apr 20, 2020 07:14
Where did you copy⎝ and ⎠? They look awesome.
Apr 20, 2020 07:14
∺ Wow, cool character!
Apr 20, 2020 07:05
But golfable probably
Apr 20, 2020 07:05
Using a better approach
Apr 20, 2020 07:04
0£s0£b?{¥s3<¥b4<∨|§\S:¥s⨥£s|\B:¥b⨥£b|\F:¥s2≤[¥s⨥£s]|\H:\W,Q|\x:\X,Q;}¥s3=[\S|\B
Apr 20, 2020 07:04
79 bytes
Apr 20, 2020 07:01
0 £strikes
0 £balls
? £character
{
  ¥strikes 3 <
  ¥balls 4 < ∨
|
  ¥character
  §
  \S: ¥strikes ⨥ £strikes|
  \B: ¥balls ⨥ £balls|
  \F: ¥strikes 2 ≤ [¥strikes ⨥ £strikes]|
  \H: \W,Q|
  \X: \X,Q
  ;

  £character
}

¥strikes 3 = [\S|\B] ,
Apr 20, 2020 06:47
(⨥): Pop [x] Push (x + 1) / Used in regex
(⨪): Pop [x] Push (x - 1)
(∺): Pop [x] Push (x % 2)
(❝): Push ("")
Apr 20, 2020 06:34
(⫙): Pop [f], Map f to the entire stack
(ß): Pop [x] Push ([bin(n) for n in range(x)])
(⎝): Pop [x -- zipmap] Push (min(x))
(⎠): Pop [x -- zipmap] Push (max(x))
(⎡): Pop [x, y]  Push (max(x, y))
(⎣): Pop [x, y]  Push (min(x, y))
1 31 32 33 34 35