• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
lil2 Avatar
Name:Unknown
Clan:Unknown
Member Since:Nov 2021
Last Seen:Jun 2025
Profiles:
    Following:0
    Followers:1
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (78)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Kacarott
      • commented on "One-instruction set computer: Subleq" kata
      • 3 months ago

      Really nice kata. I was going to suggest a potential sequel for writing a proper transpiler, but seems like many people already did that for this kata!

    • Custom User Avatar
      • KayleighWasTaken
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      I would say easier 4 or harder 5, yeah.

    • Custom User Avatar
      • dfhwze
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      kata is approvable, 4 kyu seems right?

    • Custom User Avatar
      • lil2
      • resolved a question on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Let's stick with printable characters. I updated the description.

    • Custom User Avatar
      • Mednoob
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Currently, random tests use char code 32 - 126. So, I don't think this needs to be handled.

      Leaving author to resolve this, since author might have a change of mind later.

    • Custom User Avatar
      • KayleighWasTaken
      • created a question for "One-instruction set computer: Subleq" kata
      • 4 months ago

      Does print_string need to be able to handle \x00?

    • Custom User Avatar
      • lil2
      • resolved an issue on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Fixed

    • Custom User Avatar
      • lil2
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Its not, thanks

    • Custom User Avatar
      • lil2
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Right, I did not have performance in mind. Made the tests smaller.

    • Custom User Avatar
      • dfhwze
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Is mem[12] correct in the description of Addition?

      0:  -2,  9,  3,   ; mem[9] -= mem[-2], go to 3  (now mem[9] = -A)
      3:   9, -3,  6,   ; mem[-3] -= mem[9], go to 6  (now mem[12] = -(A+B))
      
    • Custom User Avatar
      • dfhwze
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      I agree, multiplication should also be possible well below 1 second.

    • Custom User Avatar
      • mauro-1
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      There are fixed tests with large numbers (up to ~10^6). IMHO 10^4 is sufficient.

      The other tasks are faster (my times: multiplication: 2740ms, division: 150ms, print: 10ms, copy: 670ms)

    • Custom User Avatar
      • dfhwze
      • created an issue for "One-instruction set computer: Subleq" kata
      • 4 months ago

      Error pane crashes with out of memory on error. You are printing these larger arrays, there is no need to.

    • Custom User Avatar
      • dfhwze
      • commented on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Are there performance constraints? I just implemented multiplication, and all tests (fixed/random) together, already take me about 5 seconds.

    • Custom User Avatar
      • lil2
      • resolved an issue on "One-instruction set computer: Subleq" kata
      • 4 months ago

      Fixed, thanks! :)

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...