• 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
beaux Avatar
Name:Unknown
Clan:Some Random High School
Member Since:Jun 2017
Last Seen:Dec 2024
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (55)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • dramforever
    • commented on "Bit Counting" c solution
    • 2 years ago

    I don't think the comment 'we do not recommend general use of these functions' applies, becaue this is not one of those undocumented internal-use builtins.

  • Custom User Avatar
    • kster735
    • commented on "Bit Counting" c solution
    • 2 years ago

    Should this be best practice? In gcc project they say:

    "GCC provides a large number of built-in functions other than the ones mentioned above. Some of these are for internal use in the processing of exceptions or variable-length argument lists and are not documented here because they may change from time to time; we do not recommend general use of these functions."

    https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html

  • Custom User Avatar
    • beaux
    • commented on "Does my number look big in this?" rust solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Alterra Laniakea
    • commented on "Bit Counting" c solution
    • 2 years ago

    What the hell? How is that clever

  • Custom User Avatar
    • Kacarott
    • resolved an issue on "Regex to Match Significant Figures" kata
    • 3 years ago
  • Custom User Avatar
    • FArekkusu
    • created an issue for "Regex to Match Significant Figures" kata
    • 4 years ago

    Python 3.8 should be enabled.

  • Custom User Avatar
    • Asmibug
    • commented on "Directions Reduction" c solution
    • 4 years ago

    Several issues:

    1. return *lg = 0; -- return value is wrong.
    2. char **ret = malloc(sz * sizeof(char**)); -- not correct. Correct is char **ret = malloc(sz * sizeof(char*));
    3. If all strings in arr are freed after dirReduc call, the result will become invalid.
  • Custom User Avatar
    • IvanRia
    • commented on "Bit Counting" c solution
    • 4 years ago

    it's not fair

  • Custom User Avatar
    • user8436785
    • commented on "Bit Counting" c solution
    • 5 years ago

    @B4B You still didn't mark it as spoiler! x/

  • Custom User Avatar
    • jsanjose
    • commented on "Bit Counting" c solution
    • 5 years ago

    Not an opinion. It's just a fact.

    For me this is over.

  • Custom User Avatar
    • jsanjose
    • commented on "Bit Counting" c solution
    • 5 years ago

    It doesn't compile in another compilers. For example try to compile it into Visual Studio C++

    Also, the implementation it's not yours. You're using a builtin function that only the GCC compiler has implemented. So, I must say that it's only a nice trick. But must not be considered best practice by no means.

    It's faster than other implementations (including mine)? YES
    Has been implemented by you? NO
    Must be considered a solution to the exercise? NO!

  • Custom User Avatar
    • Blind4Basics
    • commented on "Bit Counting" c solution
    • 5 years ago
    1. SPOILER FLAG!! Damn you! x/
    2. there is always an overhead about the docker/runner/.... Comparing the performances like you do right now is totally pointless and actually totally nuts. Moreover when there are random tests, and when the time you use includes the generation of the tests too.
  • Custom User Avatar
    • l0rch
    • commented on "Bit Counting" c solution
    • 5 years ago

    It works, right?

  • Custom User Avatar
    • prplz
    • commented on "get ascii value of character" nasm solution
    • 5 years ago

    It's the lower 8 bits of edi (like al to eax)

  • Custom User Avatar
    • SpecialEd
    • commented on "get ascii value of character" nasm solution
    • 5 years ago

    hmm... :/ I use MASM I keep having to look at NASM references. wonder if they will add MASM.
    I will study this DIL.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...