This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BenchfellaBench.binary test 10: 10000000 0.13 µs/op | |
| BenchfellaBench.binary test 100: 10000000 0.13 µs/op | |
| BenchfellaBench.binary test: 10000000 0.13 µs/op | |
| BenchfellaBench.binary test 1000: 10000000 0.13 µs/op | |
| BenchfellaBench.range test: 100000 26.93 µs/op | |
| BenchfellaBench.range test 10: 10000 293.43 µs/op | |
| BenchfellaBench.range test 100: 500 3312.59 µs/op | |
| BenchfellaBench.range test 1000: 50 32802.00 µs/op |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 508 lib/elixir/ebin/elixir_parser.beam | |
| 180 lib/elixir/ebin/Elixir.String.Unicode.beam | |
| 156 lib/elixir/ebin/Elixir.String.Graphemes.beam | |
| 112 lib/elixir/ebin/Elixir.Kernel.beam | |
| 72 lib/elixir/ebin/Elixir.Enum.beam | |
| 56 lib/elixir/ebin/Elixir.Kernel.Typespec.beam | |
| 48 lib/elixir/ebin/elixir_tokenizer.beam | |
| 48 lib/elixir/ebin/Elixir.Stream.beam | |
| 48 lib/elixir/ebin/Elixir.Kernel.SpecialForms.beam | |
| 48 lib/elixir/ebin/Elixir.File.beam |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| λ du -k lib/*/ebin/*.beam | sort -nr | |
| 508 lib/elixir/ebin/elixir_parser.beam | |
| 180 lib/elixir/ebin/Elixir.String.Unicode.beam | |
| 156 lib/elixir/ebin/Elixir.String.Graphemes.beam | |
| 112 lib/elixir/ebin/Elixir.Kernel.beam | |
| 72 lib/elixir/ebin/Elixir.Enum.beam | |
| 56 lib/elixir/ebin/Elixir.Kernel.Typespec.beam | |
| ... | |
| Total: 4060 KB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defp deps do | |
| [{:muweb, github: "alco/muweb"}, | |
| {:commando, github: "alco/commando"}, | |
| {:exrm, "~> 0.11.1", optional: true}] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Mix.Config | |
| cfg = "#{Mix.env}.exs" | |
| if File.exists?(cfg) do | |
| import_config cfg | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Chat.Client do | |
| def join(server) do | |
| client_send server, :join | |
| end | |
| def say(server, message) do | |
| client_send server, { :say, message } | |
| end | |
| def leave(server) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::io::fs::File; | |
| enum ReadState { | |
| Normal, | |
| Newline, | |
| Skipline, | |
| } | |
| fn main() { | |
| let mut at = 0i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%! | |
| main([Path]) -> | |
| %Path = get_path(), | |
| {ok, ExprBin} = file:read_file(Path), | |
| % confirm it is UTF-8 | |
| io:format("~w~n", [ExprBin]), | |
| Expr1 = unicode:characters_to_list(ExprBin), | |
| Expr2 = binary_to_list(ExprBin), | |
| io:format("~w~n", [Expr1]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "reflect" | |
| "time" | |
| ) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker run ... mix deps | |
| * gproc 0.3-2-g1f12fbf (git://github.com/esl/gproc.git) | |
| locked at 1f12fbf | |
| ok | |
| * wyvern 0.0.1 (git://github.com/alco/wyvern.git) | |
| locked at 069b69f | |
| ok | |
| * ranch 0.9.0 (git://github.com/extend/ranch.git) | |
| locked at 5df1f22 (ref) | |
| ok |