Giter Club home page Giter Club logo

Comments (2)

b-studios avatar b-studios commented on July 20, 2024 1

It's writeFile, isn't it? Since we don't write files in the test, dead code elimination removes it before it causes problems

from effekt.

jiribenes avatar jiribenes commented on July 20, 2024

I'm quite alarmed that the test in stdlib/io/files/async_file_io.effekt didn't catch this 🤔
https://github.com/effekt-lang/effekt/blob/cd741e8a4576c62ab318efd48fc0831958ba7e8d/examples/stdlib/io/files/async_file_io.effekt

EDIT: I tried running the LLVM stdlib tests and it appears that the test in question passes:

effekt.StdlibLLVMTests:
  + examples/stdlib/bytes/bytes.effekt (llvm) 2.928s
  + examples/stdlib/io/promise.effekt (llvm) 1.146s
  + examples/stdlib/io/files/async_file_io.effekt (llvm) 1.416s

The test works when ran directly:

$ effekt --backend=llvm examples/stdlib/io/files/async_file_io.effekt
Running program
Done
Some contents

{ msg: "Hello World!" }

done reading files.

but I don't understand why 😔
Well, the test only uses the readFile function and not the readFile operation which is then handled with filesystem. If I had to guess, the renaming is OK in one of them and not in the other...

from effekt.

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.