clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
slipset 2021-01-20T06:31:15.113Z

Morning

RAMart 2021-01-20T06:37:25.113200Z

djm 2021-01-20T06:41:20.113400Z

👋

2021-01-20T07:04:52.113600Z

Morning.

2021-01-20T07:05:08.114100Z

@raymcdermott it is always almost the future

😝 1
matlux 2021-01-20T07:27:50.114300Z

Morning

2021-01-20T08:03:49.115100Z

Given how shitty the disease is, I wonder why anyone is reluctant

djm 2021-01-20T08:05:20.115300Z

Apparently lots of Asians in England have been told that the vaccine contains meat, putting off Muslims (who've been told pork) and Hindus (who've been told beef).

djm 2021-01-20T08:06:50.115500Z

I'm not sure what other reasons there are, beyond those who are worried that there hasn't been enough testing

ordnungswidrig 2021-01-20T08:12:33.115700Z

That’s horrible. Although I can understand that people a reluctant as never ever has a vaccine been developed this fast. In germany I can imaginge that the TV series “Charité” had an impact here, telling the story about Robert Koch and the failed attempt to create a TBC vaccine.

ordnungswidrig 2021-01-20T08:13:34.115900Z

Also for adults, vaccinations is a topic “long ago from the childhood”. And most deseases we vaccinate against play (thankfully) no practical role anymore (Measels being a sad exception in parts of germany)

djm 2021-01-20T08:15:13.116100Z

My dad had polio as a child - vaccines for that apparently started in the 1950s

ordnungswidrig 2021-01-20T08:33:16.116500Z

My sisters and I had chicken pocks and one of my sisters even had measles. I rember her being “quarantined” in the living room but only for a couple of days and quite loosely.

ordnungswidrig 2021-01-20T08:34:18.116700Z

But anybody younger than 40 in germany maybe has no personal experience with these “harmless” deseases. It’s similar to how the horror of WW2 slowly fade away when people die that can tell you about it first handed.

👍 1
ordnungswidrig 2021-01-20T09:16:20.120600Z

> It’s an event that led to “the public feeling that the government was in bed with big business,” Larson said who previously told Euronews that reliance on big business was a weak point in the vaccine “trust chain”. > @djm_uk I guess a valid point for many countries.

ordnungswidrig 2021-01-20T09:16:50.120800Z

Except maybe for the UK where the people would consider the government be too incompetent to make a deal with big pharma in the first place 🙈

😂 1
simongray 2021-01-20T11:37:14.124600Z

Something similar was on /r/europe and the top reply in the comments noted that that survey had been criticised for using a poorly worded question (https://www.reddit.com/r/europe/comments/kxttq0/of_people_per_country_willing_to_take_a_vaccine/gjcn9ma/). There was a second survey where the results were much more strongly in favour of getting the vaccine. In this second survey Denmark comes out on top with 87% willing to get the vaccine, which is pretty great news to me.

❤️ 1
djm 2021-01-20T11:38:51.125Z

The "definitely" in the question was strange, but at least they could strongly agree/agree

simongray 2021-01-20T11:39:26.125200Z

You can imagine that anyone of reasonable health who is not a complete egotist would let frontline workers and 80+ year olds get the vaccine first.

ordnungswidrig 2021-01-20T11:42:08.125500Z

> who is not a complete egotist

ordnungswidrig 2021-01-20T11:42:12.125700Z

Welcome to the internet 😛

simongray 2021-01-20T11:45:55.125900Z

But really, survey question design is something that is taught to any bachelor student taking a class on research methods (mandatory in Danish universities and most other places, I imagine). It is incredible to me that important surveys like this are often so littered with leading questions or other artefacts that result in misleading results.

👍 1
pez 2021-01-20T12:09:48.131200Z

In Sweden people seem to have forgotten the recent disaster with mass vaccination against swine flu.

simongray 2021-01-20T12:17:01.131500Z

@pez - Sweden (i.e. the aggregate opinions of the population) is noticeably more skeptic towards the COVID19 vaccines than other Nordic countries

pez 2021-01-20T12:17:38.131800Z

Not sceptical enough, I would say.

simongray 2021-01-20T12:22:33.132Z

Definitely not going to enter that discussion.

pez 2021-01-20T12:23:50.132200Z

I agree. 😃

orestis 2021-01-20T07:51:40.115Z

Morning

ordnungswidrig 2021-01-20T08:32:24.116400Z

Good morning!

jtkdvlp 2021-01-20T08:36:20.117700Z

Good Morning, I am new to the channel. Thank you for the opportunity to share experiences and problems. For the past few weeks I’ve been working with “core.async” in Clojure and Clojurescript, wondering if it is a good idea to use outside bound symbols inside a “go” as there is a pool of threads and possibly any of these could do the println? (let [x 5]   `(clojure.core.async/go`    `(println x)))` It seems to work, but is it a good idea?

2021-01-21T09:19:14.030700Z

correct, sorry, I thought you were mutating stuff

jtkdvlp 2021-01-21T14:42:34.050300Z

@matlux I agree with you, I assumed it as you described. The strange thing macroexpanding it gives an error. So I was wondering if it is a bad idea. Do you have an idea whats wrong expanding it?

(clojure.walk/macroexpand-all
   '(let [x 5]
      (clojure.core.async/go
        (println x))))

;; => Syntax error macroexpanding clojure.core.async/go at (your_project.cljc:93:3).
;;    Could not resolve var: x

matlux 2021-01-21T15:30:10.053600Z

Strange indeed that it doesn’t macroexpand-all correctly. It does compile and execute though:

(let [x 5]
    (clojure.core.async/go
      (println x)))
=>
#object[clojure.core.async.impl.channels.ManyToManyChannel
        0x67080483
        "clojure.core.async.impl.channels.ManyToManyChannel@67080483"]
5

matlux 2021-01-21T15:35:21.053800Z

I have managed to macroexpand-all it by cheating the compiler:

(clojure.walk/macroexpand-all '(let [x 5]
                                 (clojure.core.async/go
                                   (println "x"))))
and then re-introduced the x symbol back in and it compiled and executed too. So the code is definitely valid. Must be a bug or a corner case in the macro-expansion. I reckon it is because x is a local and it doesn’t get added to the env of the macroexpansion-all code. The macro-expansion must be only looking at global var s or something. It might be interesting to find out what exactly upset the macroexpand-all here… ??

👍 1
😄 1
dharrigan 2021-01-20T08:38:48.118100Z

Good morning!

thomas 2021-01-20T08:58:25.120Z

Morning and welcome @jtkdvlp and regarding your question... for debug purposes I guess it is fine if it works. As for doing the correct thing I hope someone else has a more informed opinion about it.

👍 1
2021-01-20T09:12:48.120300Z

👋 @jtkdvlp

2021-01-20T09:13:13.120400Z

sounds like you might want an atom rather than just a name in a let?

jasonbell 2021-01-20T09:40:04.121300Z

Morning

borkdude 2021-01-20T09:42:57.121600Z

Morning!

jtkdvlp 2021-01-20T09:44:54.121700Z

An atom would work I guess, but just for reading the immutable x should work too right?

javahippie 2021-01-20T09:46:32.122Z

Morgen!

javahippie 2021-01-20T09:48:06.123300Z

I’m currently looking into Krell. I like the idea and I like the project, but it’s really hard to tell if there are really people using it. I need to create mobile apps for iOS and Android, and Clojure would be the preference. Do you work with it or know somebody who does?

javahippie 2021-01-20T09:48:26.123400Z

(Thought the question is a little too subjective for #clojurescript)

borkdude 2021-01-20T09:50:09.123900Z

@javahippie It's best to ask in #cljsrn where all the people using it are probably hanging out

javahippie 2021-01-20T09:50:27.124200Z

Didn’t know of this channel, thanks!

jkxyz 2021-01-20T10:00:32.124500Z

Good morning!

raymcdermott 2021-01-20T11:51:17.126400Z

good morning

raymcdermott 2021-01-20T11:51:37.126900Z

@javahippie yes I work with some people that are using it and they are very happy

raymcdermott 2021-01-20T11:52:19.127700Z

the main advantage is that you can take later version of react-native without waiting for the tools to catch up

raymcdermott 2021-01-20T11:53:25.128100Z

in fairness he is also the author

raymcdermott 2021-01-20T11:53:54.128700Z

but there are three others using it and they are happy

slipset 2021-01-20T11:54:05.129Z

@raymcdermott “I work with some people that are using it”, isn’t that somewhat an understatement?

raymcdermott 2021-01-20T11:54:36.129500Z

I’m always understated … even in my death wishes

slipset 2021-01-20T11:55:18.130200Z

“I work with two of the most prolific cljs people out there, one of which is the author of Krell”

raymcdermott 2021-01-20T11:55:53.130500Z

I think I’ve said enough

slipset 2021-01-20T11:56:04.130700Z

I believe you have 🙂

🐲 1
slipset 2021-01-20T11:56:18.131Z

Anyways, lunch-o’clock here

javahippie 2021-01-20T12:50:11.132800Z

Thanks @raymcdermott! Always forget how small and connected this community is :smiling_face_with_3_hearts:

😂 1
orestis 2021-01-20T13:16:48.133500Z

@raymcdermott Do you also use Cljs these days?

borkdude 2021-01-20T13:24:07.133900Z

use CLJS? his team is basically all of the CLJS maintainers ;)

💯 1
orestis 2021-01-20T13:26:43.134900Z

Like, personally... I’m just curious, I don’t have anything in particular to ask :)

borkdude 2021-01-20T13:28:00.135700Z

They are betting car security technology on "NaN is not a function", right @raymcdermott? ;)

😂 2
borkdude 2021-01-20T13:30:43.136700Z

Maybe not too different from "class java.lang.Long cannot be cast to class clojure.lang.IFn"

raymcdermott 2021-01-20T13:56:25.138Z

I don’t personally use CLJS at work, though next week that might change

raymcdermott 2021-01-20T13:58:02.139300Z

It is a literal bet on CLJS

raymcdermott 2021-01-20T14:00:07.139800Z

I don’t think I’m giving to much away to say that we have native security bridges

raymcdermott 2021-01-20T14:02:12.141100Z

And that it’s a very layered (trying to avoid complex) approach

raymcdermott 2021-01-20T14:04:20.141900Z

we have a CLJS SDK that is exposed as an ObjectiveC or Java API, so that’s novel

raymcdermott 2021-01-20T14:05:32.142600Z

And a lot of the magic is of course down to the two gents that know the platform back to front

orestis 2021-01-20T14:36:05.144600Z

Ah right. Makes sense @raymcdermott, JS is one of the only ways to expose a cross-platform API on mobile. I only have some experience for iOS development, and seeing the hooks that Apple gives you is one of the things that nudged me to find a nice language that compiles to JS… It is becoming the lingua franca in many aspects (annoyingly, it’s not very good). Much better to target than than staying inside the Apple only technologies.

1
raymcdermott 2021-01-20T14:46:10.145300Z

it’s not pretty when you have to write native bridges so try to avoid that 🙂

raymcdermott 2021-01-20T14:47:11.146Z

the problem with SDKs is that you don’t want a version of react-native in your SDK and in their app … gets confusing !

raymcdermott 2021-01-20T14:47:40.146500Z

but writing apps this way is a breeze

raymcdermott 2021-01-20T14:47:55.146900Z

also check out https://storybook.js.org for live UI demos

raymcdermott 2021-01-20T19:56:15.148200Z

and BTW like some folks enjoy heroine, I do use CLJS for recreational purposes