Live data from Hacker News

Elchemy – write type safe Elixir using Elm-like syntax

wende.github.io

31–40 of 57 posts

Re: Elchemy – write type safe Elixir using Elm-like syntax

#31
post #24

Love the concept. But please don't use fonts with ligatures in code snippets on the homepage. Especially when these code examples are actually screenshots which people can't copy. Ligatures may be "obvious" to developers already familiar with the syntax of the language, but can make things very confusing for beginners, esp. in FP languages that lean heavily on operators etc. I am really glad that the docs/roadmap etc…

Maybe this isn't targeting new users, then.

His preferences supersede your sensibilities since its his website, don't you think?

Re: Elchemy – write type safe Elixir using Elm-like syntax

#32
post #18

As someone who writes Erlang for a living, I highly recommend rust as a well typed alternative to Erlang, that still keeps all of the things that make Erlang great. I do love Erlang, but working on a large codebase can be frustrating when nothing is speced or commented, and even when it is speced it’s usually part of a gradually typed codebase with very non descriptive types.

Can you recommend a good web framework/micro-framework? I was using actix-web, but last I heard it has to many unnecessary `unsafe`s.[0] [0] https://www.reddit.com/r/rust/comments/8s7gei/unsafe_rust_in...

Rocket is fast and high quality. I’ve gotten impressive latency numbers in my benchmarks. http://rocket.rs/

Re: Elchemy – write type safe Elixir using Elm-like syntax

#33
post #31
post #24

Love the concept. But please don't use fonts with ligatures in code snippets on the homepage. Especially when these code examples are actually screenshots which people can't copy. Ligatures may be "obvious" to developers already familiar with the syntax of the language, but can make things very confusing for beginners, esp. in FP languages that lean heavily on operators etc. I am really glad that the docs/roadmap etc…

Maybe this isn't targeting new users, then. His preferences supersede your sensibilities since its his website, don't you think?

Parent did say “please”.

Re: Elchemy – write type safe Elixir using Elm-like syntax

#34
post #7
post #2

Looks like it's targeted more towards the Elm crowd with npm install instructions than the Elixir crowd with no hex/mix install method.

Elchemy creator here. Quite the opposite to be honest. I come from Elixir background. It's just that npm is much more reliable when it comes to global system-wide installations

Are you saying Mix/Hex is unreliable or are you saying npm is on more machines globally?

Re: Elchemy – write type safe Elixir using Elm-like syntax

#35
post #31

Earlier quoted context omitted.

Maybe this isn't targeting new users, then. His preferences supersede your sensibilities since its his website, don't you think?

Parent did say “please”.

I never said he was rude!

You can politely ask the wrong questions sometimes.

Re: Elchemy – write type safe Elixir using Elm-like syntax

#36
post #24

Love the concept. But please don't use fonts with ligatures in code snippets on the homepage. Especially when these code examples are actually screenshots which people can't copy. Ligatures may be "obvious" to developers already familiar with the syntax of the language, but can make things very confusing for beginners, esp. in FP languages that lean heavily on operators etc. I am really glad that the docs/roadmap etc…

Meh. You can reasonably expect someone interested in this project would have at least some passing understanding of functional programming, if not the niche of programming Elm and Elixir are trying to fill. In which case arrows and lambdas should be fine. Even if you're a C++ developer, you've seen arrows drawn in some capacity, I can't imagine what confusion using an arrow could possibly cause.

Re: Elchemy – write type safe Elixir using Elm-like syntax

#37
post #18

Earlier quoted context omitted.

Can you recommend a good web framework/micro-framework? I was using actix-web, but last I heard it has to many unnecessary `unsafe`s.[0] [0] https://www.reddit.com/r/rust/comments/8s7gei/unsafe_rust_in...

The author is responding and taking care of many of them. I’m confident this is a temporary issue, or at least it seems like it’s going correctly to me.

Oh, cool. Good to know

Re: Elchemy – write type safe Elixir using Elm-like syntax

#38

Earlier quoted context omitted.

So Rust does not include built in abstractions/frameworks for building distributed systems, but I count that as a good thing. OTP can scale well under certain conditions. But it can also require rewriting supervision, servers, and other core pieces of OTP, which is a huge pain. BIFs can be slow or have wonky behavior, NIFs are dangerous but necessary when Erlang is too slow. When a language gives you prebuilt abstrac…

It sounds like you just don't like BEAM/OTP, then. :) I don't know if I would make a sweeping recommendation for Rust as an alternative to Erlang based on that, though, as I would imagine it would take a TON of work to replicate OTP in Rust.

I guess I'm just looking partly for something different. I've been doing Erlang for a few years now, and it's just the devil I know. :) I think Rust could really take off with more support, but I think Erlang will always be niche. I'd rather see people write more Rust.

Re: Elchemy – write type safe Elixir using Elm-like syntax

#39
post #26

Earlier quoted context omitted.

So Rust does not include built in abstractions/frameworks for building distributed systems, but I count that as a good thing. OTP can scale well under certain conditions. But it can also require rewriting supervision, servers, and other core pieces of OTP, which is a huge pain. BIFs can be slow or have wonky behavior, NIFs are dangerous but necessary when Erlang is too slow. When a language gives you prebuilt abstrac…

Couldn't you use Erlang/OTP for the main parts of the system and for the performance critical parts that Erlang isn't great for (like crunching numbers) you can use something like Rustler to be build a safer NIF? https://github.com/hansihe/rustler

Interesting! I haven't seen this, but it looks really exciting. I may have to bring this up at work!

Re: Elchemy – write type safe Elixir using Elm-like syntax

#40
post #15

Looks like your playground is based off Ellie, which is a great choice. However, it seems that there is an issue with downloading the Elm compiler. I'm getting a network failure from ellie's CDN(NAME_NOT_RESOLVED). Other than that, thank you for this, it is super interesting to me as I am a huge fan of both languages, and lack of type safety has always been my only misgiving with Elixir/Erlang. I'll have to take a sp…

Sometimes the CDN is acting naughty That's true. The idea of how Ellie was brought to life is outstanding. Huge shoutout to Luke Wetsby for letting us use his codebase for Elchemy Feel free to share your thoughts and concerns on GitHub or by email! We'd love to hear your opinion and concerns

fwiw the latest release moved the compiler back to the server. the ghcjs stuff proved too difficult to deliver a good experience to everyone. a naughty cdn was just one of many woes.
Post reply on HN