GithubHelp home page GithubHelp logo

Comments (8)

AZMCode avatar AZMCode commented on June 4, 2024 2

After a long time not using the language, I came back to it for funsies, stumbled upon this bug again, and decided to reduce the code further. Here's an updated example that triggers the exact same bug:

(def f (fn [ (Unit) ] ()))

from carp.

scolsen avatar scolsen commented on June 4, 2024 2

This short repo case is great to have, thank you @AZMCode! I am hoping to spend some more time on Carp again soon and can try to fix this.

(wound up getting busy with other things as usual, after pledging to work on this before, but it is still on my radar!)

from carp.

AZMCode avatar AZMCode commented on June 4, 2024 1

I don't know if this code is valid at all, but it surely shouldn't crash the interpreter/compiler

from carp.

scolsen avatar scolsen commented on June 4, 2024

This is reporting a case where we actually aren't handling all possible cases in the compiler. Do you have some example code that triggered this?

from carp.

AZMCode avatar AZMCode commented on June 4, 2024

Sure, let me whip up some code to reproduce it. A moment.

from carp.

AZMCode avatar AZMCode commented on June 4, 2024

Crashes the carp interpreter with version 0.5.5

(reduce &(fn [(Pair x y) elm] (Pair (+ x 1) y)) (Pair 0 0) &(Array.repeat 16 &(fn[] ())))

Not sure if it's possible to reduce this example even further

from carp.

scolsen avatar scolsen commented on June 4, 2024

Thanks a ton, @AZMCode! I'll take a look and see if I can get a fix in the next day or two.

from carp.

AZMCode avatar AZMCode commented on June 4, 2024

Thank you for taking the time.

from carp.

Related Issues (20)

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.