Jason is almost entirely binary pattern matching case expressions generated using macros
-
-
Odgovor korisnicima @louispilfold @michalmuskala
Oh, I see. The reason I'm askin is b/c there's an implication here that such general purpose libs should be written in Erlang, so they can be easily reused across beam langs.
1 reply 0 proslijeđenih tweetova 0 korisnika označava da im se sviđa -
Not suggesting you're saying that, but it's a bit of a warning sign if libs such as Jason or Mint are not viable just because they're written in Elixir. If that's the case, we need to think about improving integration on top of beam.
0 proslijeđenih tweetova 3 korisnika označavaju da im se sviđa -
elixir is pretty hostile to non-mix build tools. i spent a considerable amount of time trying to get elixir builds working in rebar3 before concluding that it wasn't going to happen as long as mix was shipped as part of the stdlib
1 reply 0 proslijeđenih tweetova 2 korisnika označavaju da im se sviđa -
Yeah, that suck. I once introduced Elixir into an Erlang based system as early as 2013. It involved a bunch of very ugly hacks, but I was able to make it happen fairly quickly. We should work across beam langs to support better integration.
0 proslijeđenih tweetova 2 korisnika označavaju da im se sviđa -
it's possible for trivial cases but the elixir compiler/mix go out of their way to be hostile to other build tools. rebar3 constructs a dag to determine compile order but the only way to determine an elixir file's dependencies (macros mostly) is to try to compile it
0 proslijeđenih tweetova 0 korisnika označava da im se sviđa -
rebar also has problems. It presumes that all non Erlang languages can be compiled on a per-file basis. This doesn't work for Elixir (protocols, compile type execution) or Gleam (type inference). Both have to largely work around rebars compiler abstractions
0 proslijeđenih tweetova 2 korisnika označavaju da im se sviđa -
Also rebar fails pretty bad on big projects and has very poor support for monorepos - this is from recent experience
0 proslijeđenih tweetova 4 korisnika označavaju da im se sviđa -
Interesting! I would love to hear more details of you're willing to share them :)
1 reply 0 proslijeđenih tweetova 0 korisnika označava da im se sviđa -
We'll be sharing some of those pains and ideas to solve them at CodeBEAM STO
0 proslijeđenih tweetova 4 korisnika označavaju da im se sviđa
Please add to your list: give rebar3 maintainers access to monorepos. We never get to see the slow stuff and can’t experiment with it but people expect magic support for it anyway.
-
-
Odgovor korisnicima @mononcqc @louispilfold i sljedećem broju korisnika:
I definitely agree. We're also working on solving some of those issues. Are you coming to Code BEAM SF? If so, it would be great to talk a bit more about this in person
1 reply 0 proslijeđenih tweetova 1 korisnik označava da mu se sviđa -
Odgovor korisnicima @michalmuskala @louispilfold i sljedećem broju korisnika:
Yeah I’ll be there. I’m currently overhauling our compiler DAGs and have a few ideas for monorepo support after talking to WhatsApp folks
0 replies 0 proslijeđenih tweetova 4 korisnika označavaju da im se sviđa
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.