Giter Site home page Giter Site logo

You've got Zombies about gitfuck HOT 4 CLOSED

caerostris avatar caerostris commented on August 19, 2024
You've got Zombies

from gitfuck.

Comments (4)

Caerostris avatar Caerostris commented on August 19, 2024

Thanks for this, @rdebath!
So it's definitely this check:
https://github.com/rdebath/Brainfuck/blob/master/bitwidth.b#L93
I'm still trying to figure out what exactly that Zombie check is doing. Brainfuck is currently doing it's thing here :P If I get your code right, you check that the compiler has 16 bit cells in L71, and then check if the compiler has 8 bit cells within the 16-bit-checked block. Right?

from gitfuck.

rdebath avatar rdebath commented on August 19, 2024

Exactly. It's supposed to be checking for compilers that do a lot of optimising, but make the mistake of doing their constant folding (precalculation) with the wrong cell size. So, for example, the C code does it's calculation with integers, but the the generated code is using chars.

Because of this mixup in the cells sizes the dead code gets resurrected ... dead code running ... Zombie.

However, your compiler looks like it's a plain translation, one instruction at a time, from BF to assembler. So this particular diagnosis cannot apply.

from gitfuck.

Caerostris avatar Caerostris commented on August 19, 2024

I see. Yup, it's as plain as it can get. In fact, it's so plain that compiling 99 bottles of beer (~8K brainfuck) produces 128K assembler output. So something must be seriously wrong here.

from gitfuck.

Caerostris avatar Caerostris commented on August 19, 2024

Thanks for the PR, would've taken me ages to find that stupid bug!

from gitfuck.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.