Fork me on GitHub
#clojure
<
2016-01-01
>
mheld00:01:16

korma is the sql lib of choice nowadays?

jaen00:01:20

I dunno, people are rather moving towards simpler, less ORMy things, I think.

jaen00:01:27

Something like yesql or honeysql.

mheld00:01:51

also, how do y’all deal w/ the lifecycle of components for tables?

mheld00:01:57

in a relational DB

mheld00:01:02

w/ migrations

mheld00:01:09

is that a thing or am I grasping?

jaen00:01:25

I'm not sure what a "component for table" would be to be honest.

mheld00:01:00

I’m taking apart some thing using mongo with components and it looks like it rebuilds everything every time you start the table component

mheld00:01:04

which feels like a waste

jaen00:01:58

Oh, then I suppose I would use joplin or something like it to run migrations just once.

jaen00:01:14

And have the component just assume everything is migrated before it started.

mheld00:01:15

I guess if I really wanted to I could hook migratus into the lifecycle of a model/table

jaen00:01:10

Yeah, though I guess it would be better to hook it once, for the whole application, not for each single table.

mheld00:01:26

yeah, I’m gonna do that

drusellers00:01:30

I’m just using ragtime with a start to run migration

mheld00:01:32

and store the most recent migration

mheld00:01:02

though no, I don’t want the application to know about migrations — I’d rather have it not happen manually

mheld00:01:08

erm, automatically

jaen00:01:43

Yeah, that is a sensible choice, especially if migrations can become non-trivial in future.

drusellers00:01:06

true, mine are still pretty trivial

jaen00:01:37

Not sure about migratus, but for example with joplin you can run code-based migrations for when you need to transform some data or such. Not something you would want to do unattended probably.

tom00:01:32

Is Joplin still on top of Ragtime? I write Piton for my own manual control over migrations and to keep it separate from the application but it's only for sql.

jaen00:01:47

IIRC it uses ragtime for SQL-text-based migrations, but it also has SQL-code-based migrations and migrations for other types of data sources like elasticsearch or cassandra.

jaredly02:01:54

Does anyone have experience with the error java.lang.UnsatisfiedLinkError? I'm using opencv (a native lib), and I can't figure out how to make & run an uberjar

crankyadmin13:01:03

Error reporting in clojure... flipping heck...

crocket13:01:35

Is clojure bootstrapped on JVM?

crankyadmin13:01:39

crocket: Define bootstrapped?

crocket13:01:02

A bootstrapped clojure compiler is written in clojure. Scala compiler is written in scala.

crankyadmin13:01:10

Self hosting. Yes.

crocket14:01:39

@crankyadmin: Do you mean clojure compiler is written in clojure now?

crocket14:01:04

I guess the bootstrapping is not complete, yet.

gtrak14:01:50

happy new year of clojure, I can't believe there's 4k users in here.

lastnerdftw15:01:09

CLOJURE!!!!!!!!

lastnerdftw15:01:17

The love of my life

darwin15:01:29

what is even more impressive is that #C03S1L9DN has 4k+ users too 😜

jaen16:01:03

Well, I don't think Clojure compiler is self-hosting (I don't think it even has any Clojure in it at all, though I may be wrong). Runtime is mixed Java and Clojure though.

kylecordes16:01:29

Any tips out there on how to stay up and running with Clojars is down, as it is right now? I just went to try out the new LightTable 0.8, found I can't run code, and some bikeshedding later, it is because it can't fetch its NREPL adapter from Clojars.

Alex Miller (Clojure team)17:01:49

Now is a great time with to support the volunteers that run Clojars https://salt.bountysource.com/teams/clojars

amacdougall18:01:58

Just donated; and in the meantime, I'm sure I can do something else with my New Year's Day!

selfsame19:01:08

looking for feedback on a library if anyone has a free minute: https://github.com/selfsame/pdf

bitsynthesis19:01:15

@selfsame: "pdf" seems a bit misleading 🙂

selfsame19:01:37

yeah thinking about "pdfn"

bitsynthesis19:01:34

that'd make the difference for me. this is interesting, i wasn't aware of this sort of approach. looking it over

tcrawley19:01:35

clojars is down due to the linode DDoS: https://linode.statuspage.io/

bitsynthesis19:01:59

@selfsame: what are your thoughts on this approach (building up the fn through repeated "pdf" calls) vs building on the existing multi-arity fn approach?

bitsynthesis19:01:01

ex (defpdf foo ([^pos? a b ^map? c] :fish) ([^pos? a ^neg? b ^empty? c] :snail))

selfsame19:01:34

@bitsynthesis: : yeah I have an issue open for that

kendall.buchanan21:01:39

@selfsame, if I understand correctly, you've moved core.match's pattern matching into the actual function definition (multi-method style)?

selfsame21:01:28

@kendall.buchanan Yes using predicates instead of equivalence and without any destructuring

juliobarros22:01:41

I’ve added :offline? true to my project so that I can keep working during the clojars/linode issues. But it does figwheel still seems to want to hit clojars. Is there a way of stopping that?

nooga22:01:55

hah, my projects don’t want to start via lein because clojars is down

aaronk22:01:17

@jaen Replying to your messages yesterday… Yeah, the type system in Go is pretty limited, agreed. What would I be looking for in Clojure that Go didn’t have? More expressive code, better abstractions, better packaging system. With hopefully comparable speed. At work, this would be for web microservices.

nooga22:01:24

is there a way to circumvent that? I get java.net.NoRouteToHostException every time I run lein

akiva23:01:09

@nooga: Add :offline? true to your project.clj. or use lein -o $TASK.

akiva23:01:55

I prefer the latter.

akiva23:01:16

@juliobarros, lein -o might work better for you as well.

nooga23:01:32

well, it looks like it doesn’t work

akiva23:01:42

Which command are you running? -o seems to work for me.