other-languages

teodorlu 2022-07-31T07:32:00.920309Z

What's good about ecto? How would the good parts look in clojure?

Cora (she/her) 2022-07-31T03:28:36.743739Z

of that languages that are out there I feel like elixir is the most similar to clojure

Cora (she/her) 2022-07-31T03:29:01.535619Z

I wonder what things we can glean from elixir and port to clojure

Cora (she/her) 2022-07-31T03:30:31.312419Z

the library ecto comes to mind, it really has incredible relational database support

2022-08-01T06:12:53.527719Z

Is it needed though? In Clojure you'd want to get your records back as maps. Do you need something to map back/forth with a defrecord? It also adds validation and all that, but I normally use spec for that. I guess maybe, it does provide rigid structure. I just feel next.jdbc + HoneySQL gives you most of Ecto.

Cora (she/her) 2022-07-31T03:30:48.052759Z

Cora (she/her) 2022-07-31T03:31:15.836749Z

64757 loc is a lot to port to clojure, though

2022-08-01T06:18:17.665639Z

That's insane. I don't think I have a single Clojure code base that large... I wonder why it's so much code, is their cruft, or truly Ecto has a ridiculous amount of functionality?

2022-08-01T06:19:57.681189Z

Who even spent all that time on an open source lib writing so much code? Pretty sure that's bigger then the entire Clojure code base as well.

2022-08-01T06:21:37.244899Z

Ok, the entire Clojure code base is 76899 LOC, so Ecto is almost as much code as all of Clojure