Fork me on GitHub
#clojure-uk
<
2018-07-04
>
dominicm05:07:57

@yogidevbear not bad. He's pretty tired by the heat, we haven't been walking him because of the heat. He has had two seizures within a week of each other which is worrying. His new medication seems to have helped with the pain, we're noticing little things like him letting us cuddle him, where he would normally growl. How's your pair?

yogidevbear05:07:31

Sorry to hear that 🙁 Hopefully the new meds will with the seizures in the long run

yogidevbear05:07:44

My pair are as silly as always (and I don't necessarily mean that in a good way 😆)

😂 4
dominicm05:07:24

I'm surprised that's not overheating them. Sven is spending most of his day moving between shade and heat.

yogidevbear06:07:20

Yesterday I walked then at 7am. Made a big difference

alexlynham06:07:34

For clojurescript repls, what are people using these days for non-browser projects? My piggyback and nashorn setup seems more unstable than I remember so thinking of just using figwheel instead

otfrom07:07:53

@alex.lynham I think figwheel has been getting a lot of love lately

alexlynham08:07:32

it seems to be the standard, and it's what I used for re-frame/reagent stuff, so in a template for quickstart I'd be inclined to just bundle it in an opinionated way

alexlynham08:07:44

or maybe just add it as a +figwheel option

mccraigmccraig08:07:09

@alex.lynham boot-cljs-repl has been straightforward since i started using it a couple of years ago... we use it with re-frame/reagent and have it working nicely on all of browser, ios/android simulators and ios/android devices

guy08:07:55

Morning all!

maleghast09:07:31

Morning Everyone morning

👋 8
maleghast09:07:50

It would appear that by my studiously avoiding the football last night we had a pleasing result..?

dominicm10:07:13

@maleghast I'm told we won on penalties

maleghast10:07:32

That's what I am hearing as well 🙂

mccraigmccraig10:07:37

there was football ?

picard-facepalm 8
dominicm10:07:53

it might have been one of the other ball games

dominicm10:07:55

maybe tennis

maleghast10:07:58

I am also hearing from some quarters that the Columbian team were "less than sporting" throughout the match.

maleghast10:07:27

But my approach seems to have worked - I ignore the match; country happy.

alexlynham10:07:01

@mccraigmccraig I'm still on lein... but could be convinced by alt approaches

mccraigmccraig10:07:21

we're actually on a mix of lein and boot... a top-level lein-modules project, with mostly lein modules but boot modules for the cljs bits... the boot modules have a project.clj and use lein-as-a-lib to parse deps from it, which means we get both the advantages of boot (for cljs it makes it really easy to run less-compile, cljs-compile, http-serve at the same time) and we can still use lein tooling like lein ancient

mccraigmccraig10:07:26

but boot is quite different from lein, and it took me a while to grok its model

👍 4
dominicm10:07:51

boot is great for web projects tbh. Being able to live reload sass compiled in the jvm without a second jvm is just the best.

yogidevbear10:07:20

Did none of you actually see the penalty shootout?

dominicm10:07:38

I was in bed

dominicm10:07:48

reading about meat thermometers.

😍 16
yogidevbear10:07:52

The first penalty shootout that we've won in 24 years!

yogidevbear10:07:38

(Disclaimer: I missed everything else of that match and happened to catch the shootout as they were lining up the first ball to be kicked)

thomas11:07:42

FYI: I started #clojure-europe as mentioned by @otfrom recently... feel free to come over and say good morning.

😂 8
guy12:07:53

#brexit in action 😭

3Jane11:07:55

will we have to leave in 2019 though?

😂 16
thomas13:07:49

@lady3janepl NO! it is a European channel... not an EU channel. And as Boris says... we are not leaving Europe.

3Jane13:07:24

’cos we were never in it in the first place, you mean? “Continent” XD

mccraigmccraig14:07:51

doggerland forever!

dominicm13:07:15

I thought there were plans to put people on benefits to work at pushing the island off the continent?

😂 16
thomas13:07:59

only in NF's dreams I suspect

djtango14:07:26

Hey folks has anyone used clj-time.spec?

djtango14:07:34

I'm trying to require it and am getting file not found errors...

djtango14:07:42

on clj-time 0.14.4 and 0.14.3

dominicm14:07:37

@djtango I would suspect you're either: - using a version that doesn't have it - using it from cljs - not on the version you think you are

dominicm14:07:45

What is the exact error?

dominicm14:07:54

maybe: - Not on clojure 1.9 too

djtango14:07:21

blah.core=> (require '[clj-time.spec])                                                                                                                                                                                                        
FileNotFoundException Could not locate clj_time/spec__init.class or clj_time/spec.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.  clojure.lang.RT.load (RT.java:463)                                                                                                                                                                                      

djtango14:07:40

am definitely on 1.9 and have recompiled the project with lein repl a couple of times

guy14:07:09

dumb question but have you got it in ur deps? and are u requiring the right file? And did u restart ur repl?

dominicm14:07:10

> recompiled that would do it

dominicm14:07:24

do you have classes in target/ ?

guy14:07:32

probs a lein clean might help

djtango14:07:38

ok - will try. Thank you very much for the help so far!!!

djtango14:07:48

totally forgot about lein clean - fingers crossed

djtango14:07:06

went one step further and nuked the docker container

djtango14:07:14

omg - newb bug

guy14:07:17

also if in doubt, check .m2/repository

guy14:07:23

ah u got it?

djtango14:07:26

modifying the wrong project.clj

djtango14:07:34

so sorry - thanks for the help guys

guy14:07:35

haha no worries!

guy14:07:49

my newbie bug that i still remember was using emacs and forgetting to save

guy14:07:03

i forgot that the little * meant it wasnt saved and it drove me crazy

dominicm14:07:34

vim's + is so much more logical troll

guy14:07:54

i use intellij now so

djtango14:07:33

I failed to spot there were two clj projects in the root and ctrl-p vim went to the wrong project clj 😭

djtango14:07:51

thanks again folks

👌 4
dominicm14:07:04

@djtango what does ctrl-p do?

dominicm14:07:11

well, I know, but how does it pick up the project.clj?

djtango14:07:42

it found both project.clj

djtango14:07:11

to be fair, it did tell me there were two and even was polite enough to show that one was nested in a subdirectory

djtango14:07:24

but muscle memory got the better of me

djtango14:07:56

set wildignore+=*/<other_project>/* for the win

djtango14:07:49

I.e. I had project.clj and other_clojure_project/project.clj ...

dominicm14:07:48

@djtango way OT, how do you manage your plugins? I've been searching for the holy grail of:

load#plugin('tpope/vim-eunuch')

let g:vim_eunuch = 'blah'

load#plugin('blahblah/gruvbox')

colorscheme gruvbox
minpac comes close, but doesn't support local paths which is key as I develop my own plugins.

djtango14:07:32

I use vundle and do it really primitively: https://github.com/djtango/dotfiles/blob/p50/vimrc 🙈

djtango14:07:29

never seen vim-eunuch looks amazing! So thanks for the share there

dominicm14:07:01

That's what most people do 🙂

dominicm14:07:04

@djtango does golden view actually look good? or is it just wishful thinking?

djtango14:07:19

It's divisive

djtango14:07:35

I'm used to it and I love being able to tab between splits

djtango14:07:15

(as in press the tab key). Also ctrl-p doesn't have a problem opening the same file in two golden view splits/tabs in my setup

djtango14:07:38

It's worth a try, I think some people hate that moving between panes can make the code move slightly

djtango14:07:20

These days I mainly use the native vim ctrl-W | and ctrl-W = though

dominicm14:07:28

Once I've found my new plugin manager for a new vimrc I will give it a go 🙂

dominicm14:07:23

(My current setup involves using https://github.com/zyedidia/Literate to tangle a vimrc back together, not very pretty)

dominicm14:07:52

Although it does product html docs, so there's that

maleghast16:07:53

Anyone using EKS yet?

maleghast16:07:02

I can't seem to figure out from the docs whether or not it will be "easy" to connect to a Datomic Cloud instance from an EKS environment, or whether or not I will be able to connect to my existing RDS cluster from a new EKS environment...

dominicm16:07:15

@maleghast I'm not, but why wouldn't you be able to?

maleghast16:07:03

Well... I tried to build a K8s cluster when I was in the Philippines, and I built it in its own, new VPC (as recommended at the time) and that was all fine, but when we deployed Containers into it, they could not "see" or connect to the RDS instance we were using, which was (clearly) on a different VPC.

dominicm16:07:48

https://docs.aws.amazon.com/eks/latest/userguide/IAM_policies.html my initial thought is that the eks would need policies

maleghast16:07:57

EKS builds in its own VPC. Datomic Cloud builds in its own VPC. I have an existing RDS Cluster in another VPC. I want them all to talk to one another.

dominicm16:07:15

VPC peering

maleghast16:07:17

Oh... This was the magic I was promised before that I could not get working...

maleghast16:07:43

I was probably "doing it wrong" and if I can figure that out and "do it right" then I will be all golden..?

dominicm16:07:14

I have never actually done it, but it's what I'd suspect you would need to do.

dominicm16:07:30

K8s + Datomic Cloud? Why not use Datomic Ions?

mccraigmccraig17:07:09

ooo @maleghast i hadn't seen EKS - that looks very interesting

maleghast17:07:49

@dominicm I am not SURE what Datomic Ions are / are all about...

maleghast17:07:08

@mccraigmccraig - I hear good things from non-Clojure friends who are using it...

dominicm17:07:20

@maleghast lambdas which are clojure-start-time friendly, with all the automatic blue-green love you'd otherwise build yourself.

mccraigmccraig17:07:27

when i've used some AWS managed services (CloudFormation based DC/OS iirc) i've had to do some manual VPC changes to get things talking to each other

maleghast17:07:36

@dominicm - They will certainly be a part of the overall platform if they deliver what you say, but there are things we are doing what need to go beyond the serverless paradigm (I think at this stage)

dominicm17:07:50

@maleghast just wondering, what? 😄

maleghast17:07:04

@mccraigmccraig - Yeah, I figure that I may need to do some tinkering...

maleghast17:07:43

I need to find out more about Ions, clearly

dominicm17:07:13

Given that Datomic Ions plugins into AWS Lambda, you can potentially lean on Lambda a lot for handling things that normally wouldn't fit in Serverless.

maleghast17:07:43

we have potential issues about tenancy and privacy and shared infra with some of the clients we are chasing, but I'd like to explore doing more this way if we can...

mccraigmccraig17:07:11

i took the view that clients who require unshared infrastructure are clients who we can't service for some time @maleghast ... which seems a reasonable view to take given our market, but i guess might not be reasonable in other markets

maleghast17:07:59

Sadly it came up in early meetings with beta partners - it’s something we are going to have to live with... :-(

alexlynham17:07:09

anybody got figwheel working with clj 1.9? did you have to pin a particular version to get around the core.async CompilerException clojure.lang.ExceptionInfo: Call to clojure.core/refer-clojure did not conform to spec: error?

guy17:07:36

@alex.lynham it uses 1.9 by default it looks like

guy17:07:49

>[org.clojure/clojure “1.9.0”]

guy17:07:02

maybe ur version is old?

guy17:07:09

>[lein-figwheel “0.5.16”]

alexlynham17:07:38

looks like it yeah

guy17:07:52

:thumbsup: glad i cud help

alexlynham17:07:50

this is why coding after work on yr own is the hardest work. tired plus alone. thx for the assist ^_^

👍 4
guy17:07:31

This is my trouble with home projects, i get home my brain is toast and i just want to chill

mccraigmccraig17:07:56

@alex.lynham medium to large companies with lots of deskless workers, initially in retail & hospitality. turns out that none of them have been too bothered about multi-tenant so far anyway

alexlynham17:07:12

the funny thing is, my code is already in prod, I’m just going back to get repls and a nice dev workflow going for further functions and the dependencies are messing with my cool

alexlynham17:07:34

0->prod: 30 mins 0->repl: 3 hrs

alexlynham17:07:20

yeah you really get spoiled by how easy the nrepl experience in jvm clojure is

alexlynham18:07:48

I think this is actually working, it’s just that I don’t have an actual web stack as part of this project

alexlynham18:07:06

does figwheel require a stub web page just to run the cljs repl?

guy18:07:08

ah yeah i remember ur doing it serverless?

guy18:07:16

i think it bundles a index.html

guy18:07:21

if i remember correctly

guy18:07:30

but im not sure if thats helpful to what u just said

alexlynham18:07:30

ah yeah you’re right

alexlynham18:07:46

well it bundles a 404 at least

guy18:07:41

Yeah we had some odd reload issue with it at one point

alexlynham18:07:49

because normally I’d hit localhost:3449 say, and then I’d watch the repl go from user=> to cljs=>

guy18:07:10

ah got ya

alexlynham19:07:41

b/c we’ve not got the stuff it exposes I think we have to shift that task onto node… I think, anyway

👌 4
alexlynham20:07:34

okay, that works to trick figwheel into running a repl…

alexlynham20:07:59

I AM INVINCIBLE

guy20:07:52

u got it working?

guy20:07:54

nice one!

guy20:07:07

now write a guide / blog post 👀 😂

alexlynham20:07:39

when I’ve finished it I’ll write a post and try and get the changes added back into the upstream template as a +figwheel flag or something so we can dev nice n’ easily

guy20:07:35

nice one