Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by lyxal‭

31 posts
83%
+8 −0
Challenges "Hello, World!"

Vyxal, 2 bytes KH This pushes the string "Hello, World!" to the stack and automatically prints it. Also, this is the first answer on the site! Woo!

posted 6y ago by lyxal‭  ·  edited 6y ago by lyxal‭

Answer
80%
+6 −0
Challenges Source with the whole alphabet in order of appearance

Vyxal, 27 bytes QabcdefghijKlmnopqrstUvwxyz Try it Online! Works by exiting straight away. The joys of a language where every letter is a built-in function. Explained QabcdefghijKlmnopqrstUv...

posted 2y ago by lyxal‭

Answer
80%
+6 −0
Meta Should we import our old policy posts?

Over on codegolf.stackexchange.com, we have numerous meta posts outlining loopholes answers can't break, validity of output/input methods and other rule-type posts. Some examples: https://cod...

2 answers  ·  posted 6y ago by lyxal‭  ·  edited 6y ago by lyxal‭

Question discussion
77%
+5 −0
Challenges Convert to Hexadecimal

Vyxal, 24 bytes 16ʀẋfÞ×'ẏ16$e*∑?=;hṘk6i∑ Try it Online! All this when just H, 16R, or even k6τ would have sufficed. Times out for every input > 100 Explained 16ʀẋfÞ×'ẏ16$e*∑?=;hṘk6i∑­⁡...

posted 1y ago by lyxal‭  ·  edited 1y ago by lyxal‭

Answer
77%
+5 −0
Challenges Obligatory Quine Challenge

Vyxal/Keg , 8 bytes `:.,`:., Try it online! (Keg) The explanations are the same for both languages, seeing as how Vyxal is heavily based on Keg. Explained `:.,` # Push the string ":.," :., ...

posted 6y ago by lyxal‭  ·  edited 6y ago by lyxal‭

Answer
75%
+4 −0
Challenges Evaluate a single variable polynomial equation

Vyxal, 6, 5, 4 bytes Źe*∑ Try it Online! Takes input in the format coeffs, x Explained Źe*∑ Ź # Generate range [0, len(coeffs)) e # Calculate x ** [0, len(coeffs) (vectorising) ...

posted 6y ago by lyxal‭  ·  edited 5y ago by lyxal‭

Answer
71%
+3 −0
Challenges Looping counter

Vyxal, 5 4 bytes ¤{‹… Try it Online! This is so stupid and I love it Explained ¤{‹… ¤ # Push an empty string { # Forever: ‹ # Append a "-" to the top of the stack … # ...

posted 4y ago by lyxal‭  ·  edited 4y ago by lyxal‭

Answer
71%
+3 −0
Challenges Find n Niven Numbers

Vyxal, 4 bytes ‡∑Ḋȯ Try it Online! Explained ‡∑Ḋȯ ‡ ȯ # Find the first input numbers where: ∑ # The sum Ḋ # Divides that number

posted 4y ago by lyxal‭

Answer
66%
+2 −0
Challenges Digits from words

Vyxal, 6 bytes ∆ċ?=)ṅ Try it Online! Why go to all the trouble of building lists from dictionary compressed strings when I can just do it the easy™ way? Explained ∆ċ?=)ṅ­⁡​‎‎⁡⁠⁢⁡‏⁠‎⁡⁠...

posted 6mo ago by lyxal‭

Answer
66%
+2 −0
Challenges Lone ​​​​​​ones

Vyxal, 4 bytes Ġċ†∑ Try it Online! Takes input as a string of 32 bits. Explained Ġċ†∑­⁡​‎‎⁡⁠⁡‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢‏‏​⁡⁠⁡‌⁣​‎‎⁡⁠⁣‏‏​⁡⁠⁡‌⁤​‎‎⁡⁠⁤‏‏​⁡⁠⁡‌­ Ġ # ‎⁡Group the input by ...

posted 7mo ago by lyxal‭

Answer
66%
+2 −0
Challenges "Hello, World!"

Stuck, 0 bytes That's it. An empty program in Stuck prints "Hello, World!". It's literally hardcoded in the interpreter.

posted 1y ago by lyxal‭

Answer
66%
+2 −0
Challenges Digit balanced numbers

Vyxal, 4 bytes Ċvt≈ Try it Online! Outputs 1 for true, 0 for false. The footer is to convert the output to the provided test case format. Explained Ċvt≈­⁡​‎‎⁡⁠⁡‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢‏⁠‎⁡⁠...

posted 1y ago by lyxal‭

Answer
66%
+2 −0
Challenges Hex ​​​detector

Vyxal, 46 bitsv2, 5.75 (6) bytes ɾ6*1p¦c Try it Online! Bitstring: 0010000001011001000111011010010100001111001000 Link is to test suite. Should execute up to 870 or so. Try it without the ...

posted 2y ago by lyxal‭  ·  edited 2y ago by trichoplax‭

Answer
66%
+2 −0
Challenges Efficient censorship

Vyxal, 44 bitsv2, 5.5 bytes ṗ'⁰c¬;ÞG Try it Online! Or, try a test suite This is like the second time this week I've used powerset for golf on a site that isn't SE. Explained ṗ'⁰c¬;ÞG ṗ ...

posted 3y ago by lyxal‭

Answer
66%
+2 −0
Challenges Balanced quinary quasiquine

Vyxal D, 62 bytes `$f3uV4udV5β$I$:∇₍λ2|62∵Ẏ;ȯ$0<i`$f3uV4udV5β$I$:∇₍λ2|62∵Ẏ;ȯ$0<i Try it Online! Character map: 4 : -2 3 : -1 0 : 0 1 : 1 2 : 2 Nice, long and yummy quine. Explai...

posted 4y ago by lyxal‭

Answer
66%
+2 −0
Challenges Just the vowels please

Vyxal, 2 bytes ~A Try it Online! Takes input as a string, outputs a list of vowels. Explained ~A ~ # Keep only letters from the input where A # the letter is a vowel

posted 4y ago by lyxal‭  ·  edited 4y ago by lyxal‭

Answer
66%
+2 −0
Challenges It's Hip to be Square

Vyxal, 2 bytes ∆² Try it Online! Woooooooo built-in elements ftw.

posted 5y ago by lyxal‭

Answer
66%
+2 −0
Challenges 1, 2, Fizz, 4, Buzz!

Vyxal Hj, 10 bytes ƛ₍₃₅kF½*∑∴ Try it Online! Vyxal has gotten a whole lot better since first posting this. Explained Very simply, this is: for each item in the range [1, 100], create the lis...

posted 6y ago by lyxal‭  ·  edited 5y ago by lyxal‭

Answer
60%
+1 −0
Challenges The 50 substrings that validate any string of Roman numerals

Vyxal, 65 bitsv2, 8.125 bytes ǎ'øṘøṘ≠;Þg Try it Online! Bitstring: 11010101110010011010011100100011010110100000100001101110100000000 I'm fairly certain this is correct. Explained ǎ'øṘøṘ≠...

posted 4mo ago by lyxal‭

Answer
60%
+1 −0
Challenges Single letter HTML

Vyxal 3, 6 bytes " |.„∩ Vyxal It Online! Returns an empty string if the input is not a single letter element. Returns the input otherwise. Simply perform intersection with the string "abipq"...

posted 6mo ago by lyxal‭

Answer
60%
+1 −0
Challenges Integer to Roman numeral

Vyxal, 12 bitsv2, (actually 1.5 but the leaderboard needs to say) 2 bytes øṘ Try it Online! Bitstring: 000101111100 Very simple: call the built-in :p

posted 1y ago by lyxal‭

Answer
60%
+1 −0
Challenges Digit balanced numbers

Vyxal 3, 2 bytes ⊞≈ Vyxal It Online! Shortest you'll probably get barring fractional bytes. Explained ⊞≈ ## Input is a number ⊞ ## Counts of all items in the number ≈ ## Are they all the...

posted 1y ago by lyxal‭

Answer
60%
+1 −0
Challenges Multiplicative perfection

Vyxal, 4 bytes KΠ√= Try it Online! Another 4 byter, but uses the definition of A007422 that a number returns true if product(divisors) == input ** 2. Explained KΠ√=­⁡​‎‎⁡⁠⁤‏‏​⁡⁠⁡‌⁢​‎‎⁡...

posted 2y ago by lyxal‭

Answer
60%
+1 −0
Challenges Single digit Roman numeral

Vyxal, 12 bitsv2, 1.5 or 2 bytes øṘ Try it Online! or Try the entire test suite Bitstring: 000101111100 Very simply a built-in

posted 3y ago by lyxal‭  ·  edited 3y ago by lyxal‭

Answer
60%
+1 −0
Challenges Build a replacement ball in regex.

Vyxal, 62 bitsv2, ~8 bytes ẏḋ\.vȦ\|j Try it Online! Really 7.75 bytes, but leaderboard regex is a thing. Explained ẏḋ\.vȦ\|j ẏ # Range [0, len(X)) ḋ # n-length combinations...

posted 3y ago by lyxal‭  ·  edited 3y ago by lyxal‭

Answer