Code Monkey home page Code Monkey logo

tryelixir's Introduction

Try Elixir

CI

Try Elixir is an online sandboxed REPL that allows you to experiment with the Elixir programming language without you having to install it locally.

Acknowledgements

The concept and design is inspired by Try Haskell and Try Clojure.

Translations

If you wish to translate Try Elixir, please follow the Translation Guide.

License

Try Elixir is distributed under the terms of the MIT license. See LICENSE for details.

tryelixir's People

Contributors

alco avatar freddiefujiwara avatar gmcabrita avatar mrshankly avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tryelixir's Issues

Discord Bot integration

Hi, in the Elixir Discord, there was discussion about trying to get an Elixir REPL running through a chat bot. Would you be against a chat bot proxying the REPL through your hosted instance?

You can join in on the discussion here, in #off-topic.

Redefining Kernel breaks interpreter

I wrote something like

defmodule Kernel do
  def foo(), do: 1
end

into the REPL at https://tryelixir.net/ and now it just returns "error" for everything (500 Internal Server Error). I don't know if it died due to that but the timing seems suspect. Sorry about that. :(

Exceptions don't have their reasons properly escaped

Exceptions don't have their reasons properly escaped. If you send, for example, ""[], you will receive the JSON payload: {"prompt":"iex(17)> ","type":"error","result":"** (Protocol.UndefinedError) protocol Access not implemented for """}, which fails JSON.parse in the browser because of the double quotes embedded inside the result string.

Love the app, though, thanks!

Multi-line code click doesn't work.

Not really sure how to handle this, maybe change the promptText and simulate a return key press for each line?

There's one example of multi-line code in the step 9 of the tutorial.

Update for latest Elixir?

This is a nice tool to help teach people interested in Elixir, but the Elixir version has slipped a bit.

It would be great if it could be updated and deployed with the latest stable release.

Assignments don't work without cookies

I was going through the tutorial, but couldn't get several things to work. Some examples:

iex(1)> x = 1
1
iex(2)> x
** (CompileError) iex:1: function x/0 undefined
iex(1)> [head|tail] = [1, 2, 3]
[1, 2, 3]
iex(1)> head
** (CompileError) iex:1: function head/0 undefined
iex(1)> square = &1 * &1
#Function<erl_eval.6.80484245>
iex(2)> square.(4)
** (CompileError) iex:1: function square/0 undefined
iex(1)> cube = fn x -> x * x * x end
#Function<erl_eval.6.80484245>
iex(2)> cube(8)
** (RuntimeError) restricted
iex(1)> cube.(8)
** (CompileError) iex:1: function cube/0 undefined

Then I turned cookies on and everything worked!

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.