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
52m ago – Themoonisacheese
Themoonisacheese: 52m 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 19, 2020 07:46
@petStorm noice.lol
Apr 19, 2020 07:46
𐊗T
Apr 19, 2020 07:45
1 ∪ [1,3,5], wait, I haven't specified that dyads work with their operands swapped (for simulating the behavior of stack-based languages).
Apr 19, 2020 07:43
@petStorm I'mma gon steal that T
Apr 19, 2020 07:42
       O All odd numbers
      T  Trunctuate to the length of the input
    ∪1   "Union" (i.e. concatenate) with the set 1
 *'*     Flood-fill it by the asterisk
C        Center the output
Apr 19, 2020 07:41
8 bytes then.
Apr 19, 2020 07:41
@petStorm what's C, , T and 0 do?
Apr 19, 2020 07:40
C*'*∪1TO
Apr 19, 2020 07:39
Whoops, I forgot the bottom asterisk.
Apr 19, 2020 07:38
@Lyxal NST, 7 bytes: CTα*'*O
Apr 19, 2020 07:19
@petStorm That's the spirit!
Apr 19, 2020 07:17
@petStorm ah, but you do.
Apr 19, 2020 07:17
Everyone loves regex
Apr 19, 2020 07:17
@Lyxal Every single person loves regex.
Apr 19, 2020 07:16
@petStorm Thanks
Apr 19, 2020 07:16
Everyone loves regex
Apr 19, 2020 07:16
@Lyxal I don't... What makes you say that?
Apr 19, 2020 07:12
@Lyxal Wow, your approach is nevertheless clever.
Apr 19, 2020 06:36
Ôλn?<;Fæ*rÇ

Ô λÏ?<; F # From all odd numbers, select those w/ index less than input
æ* r # For each, multiply by stringified "*"
Ç # Centre each row
Apr 19, 2020 06:35
(ɼ): Pop [x] Push (range(0, x + 1))
(𐊕): Pop [x] Push (range(0, x))
(𐊓): Pop [x] Push (range(1, x + 1))
(𐊄): Pop [x] Push (range(1, x))
(Þ): Pop [x] Push (is_palindromic(x))
(ƈ): Pop [x - list, y - integer] Push (ncr(x, y))
Apr 19, 2020 06:35
ɼ․ÞF2ƈλ+?=;FL
ɼ ․ÞF  # From all numbers in range(0, input), select palindromic numbers
2ƈ     # nCr the list in groups of 2
λ+?=;F # From this list, select those where the sum is equal to the input
L      # Take the length of the filtered list
Apr 19, 2020 04:56
(Ï): Pop [x, y] Push (x.index(y))
(Ô): Push (list of odd numbers)
(Ç): Pop [x] Push ([centred(n) for n in x])
(æ): Escape next character as a string
Apr 19, 2020 04:49
ÔλÏ?<;Fæ*r
Apr 19, 2020 04:49
-v -c
Apr 19, 2020 04:49
Apr 19, 2020 00:23
@Lyxal -v -iR -a
Apr 19, 2020 00:19
But I'd probably go for a port of this
Apr 19, 2020 00:17
With some extra flags
Apr 19, 2020 00:16
Potential 11 byter:
Apr 19, 2020 00:16
a+b+`øM?½LA
Apr 19, 2020 00:14
`^a+b+$`øM?½LA∧
Apr 19, 2020 00:14
With flags -v and -iR (--vectorise and --importRegex)
Apr 19, 2020 00:10
(Ṛ): Pop [x, y] Push (random.randint(x, y))
(½): Pop [x] Push (x / 2)
(∆): Import library from BFL
(ø): Call imported function f
Apr 18, 2020 22:23
One is bool(x and y) and the other is similar to var = x and y
Apr 18, 2020 22:22
@petStorm no. One returns a boolean and the other returns a value
Apr 18, 2020 12:11
In APL is an eval function.
Apr 18, 2020 12:11
It's somehow related with executing a function reference...
Apr 18, 2020 12:11
Both of them are executes anyway.
Apr 18, 2020 12:10
Also with ...
Apr 18, 2020 12:09
Oh wow, that's a huge pile of instructions.
Apr 18, 2020 12:09
Uhh, but, doesn't do exactly the same thing as ?
Apr 18, 2020 12:08
!?
Apr 18, 2020 07:25
(∧): Pop [x, y] Push (x and y)
(⟑): Pop [x, y] Push (short-circuited x and y)
(∨): Pop [x, y] Push (x or y)
(⟇): Pop [x, y] Push (short-circuited x or y)
(÷): Pop [x] Push (item_split(x))
(«): Start/close a base-255 string
(»): Start/close a base-255 number
(°): Function reference
(•): Two letter function reference
(․): Symbolic function reference
(⍎): Execute a function reference (totally not stolen from APL... what gives you that idea?)
Apr 18, 2020 07:18
Updated command list
Apr 18, 2020 07:18
( ): NOP
(!): Push (length of stack)
("): Right shift stack
(#): Comment
($): Pop [x, y] Push [y, x]
(%): Pop [x, y] Push (y % x)
(&): Pop [x] Store (x) in register
('): Left shift stack
((): Start for loop (iter|var|code)
()): End for loop
(*): Pop [x, y] Push (y * x)
(+): Pop [x, y] Push (y + x)
(,): Print nicely
(-): Pop [x, y] Push (y - x)
(.): Print rawly
(/): Pop [x, y] Push (y / x)
(0): Push (0)
(1): Push (1)
(2): Push (2)
(3): Push (3)
(4): Push (4)
(5): Push (5)
(6): Push (6)
(7): Push (7)
Apr 17, 2020 08:47
Its dictionary that is
Apr 17, 2020 08:46
@petStorm ight sure. I'll do that and combine with mathgolf
Apr 17, 2020 07:42
Steal the 05AB1E dictionary?
1 31 32 33 34 35