Fork me on GitHub
#clojure-uk
<
2019-02-26
>
thomas07:02:30

morning...

yogidevbear07:02:41

Good morning 🌅

thomas07:02:57

I just found out that this works in cljs (+ 1 2 nil) but not in clj

thomas07:02:17

in Clojure you get an NPE.

dominicm08:02:00

All about the host platform

thomas08:02:38

yes, makes sense that way of course.

dominicm08:02:01

It's a shame there's no way to know when you're using the host semantics though

mccraigmccraig08:02:04

haven't got a cljs repl open atm @thomas, but does (= 0 nil)

guy08:02:21

morning!

mccraigmccraig08:02:35

not that i'm expecting anything like consistency from js type conversions

guy08:02:42

surely it wouldnt

dominicm08:02:44

To know would require some typing overhead I guess, but it could be small like +.

dominicm08:02:12

I think equality is custom implemented

thomas08:02:35

interestingly enough

mccraigmccraig08:02:46

if i do 1 + undefined in a js console i get NaN which seems reasonable

mccraigmccraig08:02:19

oops - that should be 1 + null

mccraigmccraig08:02:30

which does indeed evaluate to 1

mccraigmccraig08:02:46

although 0 == null is false

guy08:02:15

can you even do (+ 1 undefined) in cljs :thinking_face:

thomas08:02:15

that is JS for you...

thomas08:02:53

undefined is undefined... 😉

😄 5
thomas08:02:22

if you (def undefined 0) it should work 😉

mccraigmccraig08:02:50

dunno @guy - is js/undefined a thing ?

guy08:02:52

not sure tbh, i would check but im busy 😭

thomas08:02:50

so that kinda works as expected

dominicm08:02:13

js/undefined is a thing, you need it as some things treat it differently from null. Like react in some places.

thomas09:02:49

it might be a thing @dominicm... but it is still undefined 😉

maleghast09:02:39

Morning 🙂

maleghast09:02:48

Goodness me, it's a beautiful day in The City of London!

☀️ 20
alexlynham09:02:55

Morning morning

alexlynham09:02:10

Man, macs are dreadful at wifi aren't they

guy10:02:36

I had this funny issue at one job where i was sitting in an office where the 2.5ghz wifi was stronger than the 5 ghz wifi. But it varied during the day. So you would get periods of time where it would just endlessly switch between the two, never actually letting you use the internet at all. Nowadays i just turn wifi on and off everytime i open my mac and its no longer a problem 😂

maleghast09:02:45

(full disclosure, been using them almost exclusively for 18 years with no issues)

maleghast09:02:13

(although right now I am on Dell XPS 13" running Arch)

maleghast09:02:23

(on wireless)

alexlynham09:02:27

pretty much every mac I’ve had has really struggled with wifi… and this one is no different it seems

alexlynham09:02:50

yeah my thinkpad is much more stable ironically

maleghast09:02:05

"really struggled with wifi" - what do you mean..?

alexlynham09:02:12

given how bad ubuntu used to be

alexlynham09:02:38

oh, doesn’t connect to an access point, drops over and over throughout the day, etc

maleghast09:02:56

office environment?

maleghast09:02:06

many clients of Wifi net?

mccraigmccraig09:02:10

@alex.lynham some access points used to throw a spanner in the works for me, and get the wifi driver into a state that i couldn't recover without a reboot - although i don't think i've had that problem since upgrading to mojave

maleghast09:02:22

My experience of these issues being reported is actually trying to run low grade kit to cut corners coupled with Windows checking on its connection less frequently when idle so appearing to be more stable...

maleghast09:02:43

but clearly something is up and that is no good for you 😞

alexlynham09:02:17

yeah at the moment ’m ending up rebooting when I switch between home/london/shared working space which is by no means the end of the world, but it is annoying 😂 picard-facepalm

alexlynham09:02:22

it strikes me that the joker implementation of clojure is probably really well-suited to use in AWS lambdas using lambda layers and go

maleghast10:02:13

"joker implementation"?

maleghast10:02:29

(yeah I know I could Google it)

maleghast10:02:38

That's really interesting

Conor10:02:20

Go, the cursed language

guy11:02:06

ah i’ve never used it but i heard it was good for devops tools 👀

maleghast11:02:46

Yeah, similarly I am not au fait, but I have friends who are very much pro without being foaming fanbois, so this was an unexpected pronouncement...

😂 10
Conor11:02:41

if err != nil
repeated to infinity

👀 5
danm11:02:04

Devops tools generally don't need really high performance, so what's wrong with Python?

thomas14:02:33

... tries to write some white space as an answer to @U6SUWNB9N .... but I can't read it!!! 😠

😆 10
thomas14:02:55

if significant white space would be a good thing... surely we would all program in 'white space' the language? 😉

agile_geek15:02:00

My current client uses Go quite extensively but I've avoided most of it by claiming ignorance and being too old a dog to learn new tricks.

alexlynham11:02:21

conor cheery as per

Conor11:02:14

Hmm, I am designing a language. Should I pay attention to anything that has happened in compiler or language design since 1980? No, fuck it. Why bother, I designed some crazy shit for Plan 9

rickmoynihan17:02:44

Go getting you down? 😀

👍 5
seancorfield23:02:33

I try to follow the Pragmatic Programmer advice and learn a new language every year (more like every two years) and of all the languages I've learned "for fun" over the last decade or so, Go is the only one that I've been disappointed with...

folcon12:02:32

Morning :)…

Ben Hammond14:02:31

any recommendations for libraries to read/write .ics files

otfrom19:02:37

There must be something in Java

dominicm22:02:22

Tick had something

practicalli-johnny15:02:59

If anyone wants me to test any Clojure stuff on windows, let me know by the weekend. I have a nice new (2nd hand) laptop with Windows Pro already set up. I'll be testing out the Windows install instructions for ClojureBridge London before I wipe it and install Ubuntu 18.10 over the top https://clojurebridgelondon.github.io/workshop/development-tools/

alexlynham18:02:45

I'm sure you've done it a zillion times @jr0cket but I blogged my notes on the thinkpad x1 with ubuntu setup https://the-frey.github.io/2019/01/13/bootstrapping-an-ubuntu-dev-setup

practicalli-johnny00:02:04

Surprisingly few times I have installed Ubuntu from scratch, it's only when I get a new machine. I always dist-upgrade and every few versions I'll create a new home directory and wipe away old configs.

practicalli-johnny01:02:38

I had a quick look at the article. I spotted one thing I always got wrong. Will check through in more detail. I don't seem to have that many blog posts on Ubuntu, http://jr0cket.co.uk/categories/ubuntu/ so probably should write a new one as I install Ubuntu on the new laptop.

alexlynham09:02:46

oh the encryption stuff has changed on 18

alexlynham09:02:56

so make sure you select the right option!

alexlynham09:02:09

I did something wrong at that point (oops)

practicalli-johnny11:02:47

I am sure that full disk encryption is just an option on install, its pretty standard, just a tick box. I guess I will get a refresh or see if its changed when I install next week 🙂

alexlynham12:02:33

ahhh yes I am dual booting so maybe that’s where I saw a difference between versions, idk

practicalli-johnny13:02:56

Wow, the last time I had a dual boot was when Command and conquer was 'the' game to play (showing my age here). I just wipe everything and install Ubuntu, so only one option to use full disk encryption. I assume dual boot encrypts partitions instead?

alexlynham14:02:17

yeah there’s some additional faff

alexlynham14:02:30

it means I’m half tempted to wipe the lot and start over

alexlynham14:02:49

I’ve got a new, faster SSD to install as well, so need to stop procrastinating and deal with it

alexlynham18:02:10

the only thing I had even a slight issue with was the touchpad drivers for scrolling - have listed the pkg there

Conor19:02:07

I should probably write down how to set up Pop! OS as well, but I am lazy

otfrom19:02:37

There must be something in Java

jonpither21:02:24

Anyone know any awesome webgl / cljs data visualisation gurus?

maleghast09:02:14

If you find one would LOVE to share... 😉

alexlynham21:02:12

:unicorn_face:

otfrom21:02:19

@jonpither I suppose Karsten

seancorfield23:02:33

I try to follow the Pragmatic Programmer advice and learn a new language every year (more like every two years) and of all the languages I've learned "for fun" over the last decade or so, Go is the only one that I've been disappointed with...

mccraigmccraig23:02:58

go n00b here - what's so bad about it ?

seancorfield23:02:11

(I don't know that I've read all those, but glancing over them just now, I agree in general)