Fork me on GitHub
#off-topic
<
2016-03-11
>
cork04:03:38

Anyone have experience with Elixir? I'm just wondering what problems are better handled by Elixir vs Clojure.

jrotenberg04:03:04

@cork: i’ve done some stuff with elixir

jrotenberg04:03:25

its pretty darn nice

cork04:03:39

I'm going to be working on an Elixir project and I'm liking what I've read about so far. I think I'm gonna bring CLJS for the frontend tho.

jrotenberg04:03:41

that said, i’ve mostly ended up back in clojure/jvm land

jrotenberg04:03:53

mostly doing data/backend stuff these days, so Clojure works well

jrotenberg04:03:25

but if you had a “lots of connections and up all the time” kind of problem to solve, i.e. something you’d use erlang for

jrotenberg04:03:32

elixir would be a great option

jrotenberg04:03:39

people seem to like phoenix

jrotenberg04:03:44

i haven’t really used it though

jrotenberg04:03:51

but the ecosystem is growing super fast

jrotenberg04:03:57

and the tools are really nice

jrotenberg04:03:02

mix, hex, etc

cork04:03:50

Thanks! It seems worthwhile to know both Clojure and Elixir. It's funny that I'm actually put off by the Elixir syntax and prefer a LISPier one

jrotenberg04:03:53

and check out alchemist if you are an emacs user

jrotenberg04:03:22

yeah, honestly syntax-wise Clojure is “easier” i’d say

cky04:03:48

I wonder if there’d be a Clojure-EVM.

jrotenberg04:03:52

and you only really use elixir well when you get the otp side of things

cky04:03:56

similar to Clojure-CLR, y’know?

cork04:03:22

@cky haha no limits

jrotenberg04:03:32

there is that, too

jrotenberg04:03:53

i think elixir has a much larger userbase

cork04:03:32

I was surprised by the community size for being so young

jrotenberg04:03:36

heh, here you go

jrotenberg04:03:28

i’d also argue that learning some erlang makes elixir make a little more sense

jrotenberg04:03:38

more so than, say, the java/clojure relationship

cork05:03:25

Haha:

And perhaps the biggest problem I've found: the core Clojure community is made up mostly of "90's Java Guys" who wanted to work with a more sane language on the JVM. The rest of the community is FP enthusiasts who aren't particularly invested in the JVM. In my opinion the first group end up dominating the culture too much. As a result of this, making anything bigger than a toy example app in Clojure involves getting your hands dirty with awful Java libraries. One minute you're happily coding along in Functional Land, the next you're digging around in the OOP, mutable-state muck of Java Land again. 

jrotenberg05:03:02

thats not always true

jrotenberg05:03:30

its not always not true ...

jrotenberg05:03:30

the biggest issue i had was connecting to Oracle

jrotenberg05:03:42

that pretty much kills it every time

jrotenberg05:03:51

erlang/elixir, haskell, etc

jrotenberg05:03:01

JVM? no problem.

cork05:03:30

Notice that parentheses are not required in order to invoke a function. What is this blasphemy?

jrotenberg05:03:36

ok, time to rewatch the new broad city

cork05:03:19

Thanks for your input!

echristopherson06:03:49

Stale Branch Tips would be a good name for a band

jrotenberg06:03:06

echristopherson: as usual, its hilarious

borkdude07:03:08

@base698 I tried it with filter-branch, but it didn't work for me

vikeri07:03:20

@donaldball, @borkdude, @mikeb: Any arguments to support it or just a feeling? Have you worked with both?

borkdude08:03:32

I have worked with both. Postgres is more mature and more feature complete.

vikeri11:03:39

@borkdude: sounds good! I think I might go with postgres. Possibly migrating to Datomic further down the line if scaling and queries would become an issue...

mikeb13:03:13

@vikeri For me it's data integrity and the community around postgres and it's direction. Here's a good video with a couple examples https://youtu.be/emgJtr9tIME . That said I've not actually used MySQL in over a decade.

vikeri13:03:55

Haha valid! Props for picking an example with my country in it 😉 :flag-se:

meow19:03:40

MySQL was designed to be easy to use especially with PHP in the early days of the Internet. PostgreSQL was designed by people serious about implementing the Relational model in an RDBMS.