Code Monkey home page Code Monkey logo

brainfuck's People

Contributors

minond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

brainfuck's Issues

How to Startup?

This is as much a question on how to start it up as an issue. Perhaps you could clarify in the README for those of us not familiar with Elm?

This all takes place on a Mac.

What I did:

  • Deleted everything related to Elm for a clean start
  • Ran npm install -g [email protected] to install Elm 0.18
    • See Elm 0.18
  • Ran npm install -g elm-live to install Elm-Live
    • See Elm Live
  • Ran the three following commands in succession:
    • elm make src/Main.elm --output=build/main.js
    • elm package install
    • elm live src/Main.elm --open -- --output=build/main.js --debug
      • See Running
  • Blank page for http://localhost:8000 opens
    • See Final Note

Elm 0.18: I assume that you're using Elm 0.18, based on /elm-stuff/build-artifacts/0.18.0 folder's name and elm package install being in Makefile, was deprecated in 0.19. It also doesn't run with with 0.19 anyway, giving elm package install | There is no package command.

Elm Live: According to the site, elm-live.com, one should run npm install elm-live@prev --save-dev to install it for Elm 0.18. However, this makes a file called elm-live (alias) and then errors upon opening in Finder with a pop-up: The operation can’t be completed because the original item for “elm-live” can’t be found. That's some weird Mac/Elm-Live/Elm 0.18 issue, not yours. But couldn't find a solution online. Just letting you know in case installing elm-live instead of elm-live@prev could be the issue!

Running: As I understand, make install run simply runs ./Makefile, which runs the first two lines above and finally elm live src/Main.elm --output=build/main.js --open --debug. However, that last line errors saying -- Output In Wrong Location*. And indeed, according to the section on flags in elm-live.com both it and debug are in the wrong spot. So I re-organized the flags as I understand they should be: elm live src/Main.elm --open -- --output=build/main.js --debug

Final Note: Again, this was my first exposure to Elm, which I'm really intrigued by now! (Not due to this mess, but based on their try & tutorial pages.) Anyway, so after a bit over an hour of googling and tinkering, esp. since installing Elm installed 0.19, didn't install elm-live and didn't teach me how to use the elm live flags, this was the closest I was able to come to starting it up.

*Full error message continues: You have used the elm make flag --output in the wrong location. As seen in the usage example about, all elm make flags must be added to your command after the -- separator.

Wordwrap output

If the output is very long, it goes off-screen, and gasp, there's horizontal scrolling.

In this case the fix is as easy as adding applying word-wrap: anywhere to the output element.

Although this doesn't consider outputting newlines. Not sure what to do there.

License

Hi @minond,

I'd like to use the code from this repository in a personal project. Would you mind adding a License?

Nice work btw!

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.