my_dep | purerl | |
---|---|---|
2 | 6 | |
- | 314 | |
- | 1.3% | |
- | 5.9 | |
- | 4 months ago | |
Haskell | ||
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
my_dep
-
purerl - Integrating PureScript into Elixir projects
diff --git a/mix.exs b/mix.exs index 6ba9745..657162c 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,9 @@ defmodule PurerlUpAndRunning.MixProject do version: "0.1.0", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, - deps: deps() + deps: deps(), + compilers: [:purerl] ++ Mix.compilers(), + erlc_paths: ["output"] ] end @@ -21,6 +23,7 @@ defmodule PurerlUpAndRunning.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ + {:purerlex, "~> 0.4.2"} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} ]
-
แงะ ex_aws_s3 ไลบรารี่สำหรับใช้งาน AWS S3 ผ่าน Elixir ว่ามันได้ response แบบไหนกันแน่
{:ok, %{ body: "defmodule S3Example.MixProject do\n use Mix.Project\n\n def project do\n [\n app: :s3_example,\n version: \"0.1.0\",\n elixir: \"~> 1.11\",\n start_permanent: Mix.env() == :prod,\n deps: deps()\n ]\n end\n\n # Run \"mix help compile.app\" to learn about applications.\n def application do\n [\n extra_applications: [:logger]\n ]\n end\n\n # Run \"mix help deps\" to learn about dependencies.\n defp deps do\n [\n {:ex_aws, \"~> 2.1\"},\n {:ex_aws_s3, \"~> 2.1\"},\n {:hackney, \"~> 1.9\"},\n {:jason, \"~> 1.2\"},\n {:sweet_xml, \"~> 0.6\"}\n # {:dep_from_hexpm, \"~> 0.3.0\"},\n # {:dep_from_git, git: \"https://github.com/elixir-lang/my_dep.git\", tag: \"0.1.0\"}\n ]\n end\nend\n", headers: [ {"Accept-Ranges", "bytes"}, {"Content-Length", "717"}, {"Content-Security-Policy", "block-all-mixed-content"}, {"Content-Type", "application/octet-stream"}, {"ETag", "\"5ca9425fced3f0bc1670a8f1fccbe29d-1\""}, {"Last-Modified", "Mon, 01 Mar 2021 15:12:06 GMT"}, {"Server", "MinIO"}, {"Vary", "Origin"}, {"X-Amz-Request-Id", "166840A6DA0B6B08"}, {"X-Xss-Protection", "1; mode=block"}, {"Date", "Mon, 01 Mar 2021 15:12:31 GMT"} ], status_code: 200 }}
purerl
-
Erlang: The coding language that finance forgot
I will put in a good word for PureScript for the beam with `purerl`. It's my go-to for writing BEAM code nowadays. Notably PureScript tooling including LSP, package management, etc., just works, so you are able to just get to work in internalizing the way OTP and other Erlangy things are expressed in a statically typed, pure language.
https://github.com/purerl/purerl & https://purerl-cookbook.readthedocs.io/ for more information. Join the PureScript discord and the #purerl channel if you want help.
-
purerl - Integrating PureScript into Elixir projects
purerl is a compiler for turning PureScript code into Erlang code, so that you're able to write BEAM (the Erlang virtual machine) applications using it.
-
Phoenix 1.7 is View-less
You've been able to write PureScript that compiles to Erlang and has perfect interop for years, via `purerl`[0]. Using it with Elixir is as simple as adding `purerlex` as a compiler and having your PureScript code automatically compile when `mix` compiles things, and off you go.
In terms of the typing itself, it's exactly what you get in all of PureScript, strict static typing with no `any` or the like. Using `Pinto`, the de facto OTP layer in PureScript your processes are typed, i.e. their `info` messages & state are typed, which means that they are all much more like strongly typed state machines than anything else.
You can see an example of a basic `gen_server` here:
https://pastebin.com/UTEfz7Wg
The differences aren't very big in terms of what you'd expect to be doing. One small thing to note is that the `GenServer.call` expects a closure to be passed instead of having the split between `gen_server:call` & `handle_call`, removing the need for synchronizing two places for your messages being sent and handled.
0 - https://github.com/purerl/purerl
- Angular without SSR is faster than Next.js with SSR. I have the data
- Beam VM Wisdoms
- V0.14 of Gleam, a type safe language for the Erlang VM, has been released
What are some alternatives?
package-sets - PureScript packages for Spago and Psc-Package
hamler - Haskell-style functional programming language running on Erlang VM.
package-sets - A curated list of PureScript packages for the Erlang backend
Gradualizer - A Gradual type system for Erlang
lumen - An alternative BEAM implementation, designed for WebAssembly
gleam - ⭐️ A friendly language for building type-safe, scalable systems!
erllambda - AWS Lambda in Erlang
js-framework-benchmark - A comparison of the performance of a few popular javascript frameworks
FunkyABX - Audio blind tests
elixir_script - Converts Elixir to JavaScript
bandit - Bandit is a pure Elixir HTTP server for Plug & WebSock applications
secdb - Timeseries market data database