Skip to main content
new language spec
Source Link
bigyihsuan
  • 11.5k
  • 1
  • 30
  • 70

International Phonetic Esoteric Language, 24 bytes

A reimplementation of the old answer into the new specification. Input is as a positive integer first, then the string.

ɪ{100}viħɖf0ɑ")"x1esøɒʕo 

Explanation:

ɪ{100}viħɖf0ɑ")"x1esøɒʕo ɪ (push input int) {100} (push 100) v (divide int//100) iħ (push input str, push len) ɖ (rotate top 3 clockwise) f (multiply int//100 * len) 0 (push 0) ɑ (begin loop, from 0 to int//100 * len) ")" (push ")") x (concat) 1esø (increment index) ɒ (end loop) ʕ (list to str) o (print) 

International Phonetic Esoteric Language, 18 bytes (WIP language) (OLD)

International Phonetic Esoteric Language, 18 bytes (WIP language) (OLD)

International Phonetic Esoteric Language, 24 bytes

A reimplementation of the old answer into the new specification. Input is as a positive integer first, then the string.

ɪ{100}viħɖf0ɑ")"x1esøɒʕo 

Explanation:

ɪ{100}viħɖf0ɑ")"x1esøɒʕo ɪ (push input int) {100} (push 100) v (divide int//100) iħ (push input str, push len) ɖ (rotate top 3 clockwise) f (multiply int//100 * len) 0 (push 0) ɑ (begin loop, from 0 to int//100 * len) ")" (push ")") x (concat) 1esø (increment index) ɒ (end loop) ʕ (list to str) o (print) 

International Phonetic Esoteric Language, 18 bytes (WIP language) (OLD)

added 6 characters in body
Source Link
bigyihsuan
  • 11.5k
  • 1
  • 30
  • 70

International Phonetic Esoteric Language, 18 bytes (WIP language) (OLD)

I discovered some bugs in my interpreter because of this challenge. Takes input as string then integer.

iɢ291tʃɪðθœ<)>ɲqɶo 

No TIO interpreter yet, but is runnable by cloning the repository above, and calling python3 main.py "code here".

iɢ291tʃɪðθœ<)>ɲqɶo i ; push string input ɢ ; peek, push string length 291tʃ ; push (1 + 9)^2 ɪ ; push number input ðθ ; push [num / 100 * len] œ ; start loop: pop, run ceil(n) times <)> ; push string ")" ɲ ; swap top 2 elements of the stack q ; pop, pop, push concatenated strings ɶ ; end loop o ; output 

Sample cases:

python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" codegolf 125 codegolf)))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" iɢ291tʃɪðθœ<)>ɲqɶo 300 iɢ291tʃɪðθœ<)>ɲqɶo)))))))))))))))))))))))))))))))))))))))))))))))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" less than 1.00 50 less than 1.00))))))) 

International Phonetic Esoteric Language, 18 bytes (WIP language)

I discovered some bugs in my interpreter because of this challenge. Takes input as string then integer.

iɢ291tʃɪðθœ<)>ɲqɶo 

No TIO interpreter yet, but is runnable by cloning the repository above, and calling python3 main.py "code here".

iɢ291tʃɪðθœ<)>ɲqɶo i ; push string input ɢ ; peek, push string length 291tʃ ; push (1 + 9)^2 ɪ ; push number input ðθ ; push [num / 100 * len] œ ; start loop: pop, run ceil(n) times <)> ; push string ")" ɲ ; swap top 2 elements of the stack q ; pop, pop, push concatenated strings ɶ ; end loop o ; output 

Sample cases:

python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" codegolf 125 codegolf)))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" iɢ291tʃɪðθœ<)>ɲqɶo 300 iɢ291tʃɪðθœ<)>ɲqɶo)))))))))))))))))))))))))))))))))))))))))))))))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" less than 1.00 50 less than 1.00))))))) 

International Phonetic Esoteric Language, 18 bytes (WIP language) (OLD)

I discovered some bugs in my interpreter because of this challenge. Takes input as string then integer.

iɢ291tʃɪðθœ<)>ɲqɶo 

No TIO interpreter yet, but is runnable by cloning the repository above, and calling python3 main.py "code here".

iɢ291tʃɪðθœ<)>ɲqɶo i ; push string input ɢ ; peek, push string length 291tʃ ; push (1 + 9)^2 ɪ ; push number input ðθ ; push [num / 100 * len] œ ; start loop: pop, run ceil(n) times <)> ; push string ")" ɲ ; swap top 2 elements of the stack q ; pop, pop, push concatenated strings ɶ ; end loop o ; output 

Sample cases:

python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" codegolf 125 codegolf)))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" iɢ291tʃɪðθœ<)>ɲqɶo 300 iɢ291tʃɪðθœ<)>ɲqɶo)))))))))))))))))))))))))))))))))))))))))))))))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" less than 1.00 50 less than 1.00))))))) 
Source Link
bigyihsuan
  • 11.5k
  • 1
  • 30
  • 70

International Phonetic Esoteric Language, 18 bytes (WIP language)

I discovered some bugs in my interpreter because of this challenge. Takes input as string then integer.

iɢ291tʃɪðθœ<)>ɲqɶo 

No TIO interpreter yet, but is runnable by cloning the repository above, and calling python3 main.py "code here".

iɢ291tʃɪðθœ<)>ɲqɶo i ; push string input ɢ ; peek, push string length 291tʃ ; push (1 + 9)^2 ɪ ; push number input ðθ ; push [num / 100 * len] œ ; start loop: pop, run ceil(n) times <)> ; push string ")" ɲ ; swap top 2 elements of the stack q ; pop, pop, push concatenated strings ɶ ; end loop o ; output 

Sample cases:

python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" codegolf 125 codegolf)))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" iɢ291tʃɪðθœ<)>ɲqɶo 300 iɢ291tʃɪðθœ<)>ɲqɶo)))))))))))))))))))))))))))))))))))))))))))))))))))))) python3 main.py "iɢ291tʃɪðθœ<)>ɲqɶo" less than 1.00 50 less than 1.00)))))))