clojure-europe

grav 2025-11-05T06:04:23.472909Z

Morning πŸ₯±

Ludger Solbach 2025-11-05T07:37:45.118339Z

Morning

thomas 2025-11-05T08:16:33.247559Z

mogge

teodorlu 2025-11-05T08:25:28.884509Z

Good morning!

2025-11-05T08:26:41.492899Z

morning

ray 2025-11-05T08:26:55.958569Z

Good nailing it morning. Actually the opposite. What do we call that?

Ludger Solbach 2025-11-05T08:29:45.202359Z

unnailing?

thomas 2025-11-05T08:30:31.252009Z

denailing?

ray 2025-11-05T08:32:11.564639Z

Nailing it has some more powerful connotations so I’m looking for something of an antonym to the phrase πŸ€·πŸ»β€β™‚οΈπŸ˜…πŸ˜…πŸ™πŸ»

thomas 2025-11-05T08:32:57.477099Z

ask ChatGPT?

🚫 1
ray 2025-11-05T08:33:14.138199Z

De-fanging it πŸ§›β€β™‚οΈπŸ¦·

thomas 2025-11-05T08:33:31.308399Z

sounds painfull

thomas 2025-11-05T08:33:39.671799Z

so good in that sense

ray 2025-11-05T08:33:47.886049Z

Human thoughts only plz

thomas 2025-11-05T08:34:09.186469Z

hmmmm high expectations πŸ˜‰

ray 2025-11-05T08:35:14.105099Z

I’m so glad you’re joking. This group doesn’t disappoint

thomas 2025-11-05T08:35:43.160279Z

πŸ‘

thomas 2025-11-05T08:35:48.771609Z

❀️

ray 2025-11-05T08:37:05.154149Z

Though it sometimes feels like pulling teeth πŸ₯

lread 2025-11-05T11:11:20.563589Z

I haven’t a clou

1
ray 2025-11-05T13:15:26.460449Z

Talking of claws

πŸ‘ 1
ray 2025-11-05T13:15:39.701249Z

All clean now

2025-11-05T08:27:00.670239Z

This civitas post made me understand when to use scittle https://clojurecivitas.github.io/scittle/presentations/browser_native_slides.html

🍬 2
πŸ”₯ 3
borkdude 2025-11-05T09:03:24.762389Z

Wow, that's a great tour of scittle

2025-11-05T08:27:21.040169Z

(I don't do much cljs work so I hadn't really understood when to use one rather than another)

imre 2025-11-05T09:31:48.473439Z

good morning

2025-11-05T09:34:37.916659Z

Morning

plexus 2025-11-05T10:43:21.325989Z

what are people's takes on all the "digital sovereignity" discourse? If you're working at an EU company, are there conversations happening about becoming less reliant on US cloud providers?

2025-11-06T15:48:13.933359Z

A little late to the party: I’ve moved my personal stuff off US hosts, minus some things on Apple’s servers (they’re proving the hardest for me to let go for social reasons), and I’m considering starting a new company around getting EU government agencies off US platforms and onto open source systems. Sadly, many parts of the German government are extremely attached to MSFT products πŸ€¦πŸ»β€β™‚οΈ

πŸ‘ 3
πŸ‘ 1
πŸ₯΄ 1
ray 2025-11-06T16:15:02.925299Z

@jackrusher where do we submit our CVs?

πŸ€” 1
2025-11-06T16:15:56.488049Z

Yeah, I'd sign up. Maybe a coop to resist being bought up by a US company?

2
ray 2025-11-06T16:16:43.298589Z

actually, aren't you both murican?

2025-11-06T16:17:35.275369Z

Neither of us πŸ˜†

2025-11-06T16:38:40.086739Z

Only when it is funny

ray 2025-11-06T17:02:49.388779Z

Fooled me

2025-11-06T17:03:14.638909Z

See? Funny!

πŸ’― 1
πŸ˜‚ 1
2025-11-05T10:53:10.634439Z

I'm seriously considering it personally and for the company. I'm not super happy about losing services b/c the orange guy wakes up on the wrong side of the bed

2025-11-05T10:53:48.117719Z

tho it is made me worry about any tech where there is a single company that can be pressured by a government so I'm mostly trying to double down on FLOSS as a mitigation

πŸ’― 1
2025-11-05T10:54:16.160109Z

I'm not sure if I need to keep things hosted in the UK or not as I'm not sure the UK will always end up on the same side as the EU

thomas 2025-11-05T11:37:28.472219Z

There are discussions here internally and the official line is that we don't move at the moment (we use both AWS and Azure a lot). And if things change that will be reviewed.

2025-11-05T11:51:30.035549Z

I fear for both of us that if we don't move now that when we do need to move it will be too late

πŸ’― 1
2025-11-05T11:52:06.219579Z

I should probably sync my google docs and fetch my email more often if I'm not going to move yet

2025-11-05T11:52:35.237169Z

I'm not too tied to github and we're not using AWS/Azure/GCloud for anything (other than as comms w/clients)

thomas 2025-11-05T11:52:54.258469Z

but we are "enterprise", so different things are important to people I guess

2025-11-05T12:00:29.689419Z

yeah, in that you have more money to move and the risk will have much higher impact if it is realised. πŸ˜‰

thomas 2025-11-05T12:03:58.844089Z

of course, but that is above my pay scale.

2025-11-05T12:10:32.426779Z

Oh, that's what enterprise means

2025-11-05T12:10:39.006419Z

😜

thomas 2025-11-05T12:10:55.049309Z

I think so

thomas 2025-11-05T12:15:43.315559Z

but then again.... I suffer from this: https://spf13.com/p/the-hidden-conversation/

thomas 2025-11-05T12:17:01.065219Z

I'd rewrite it all in Clojure/Rama. 3 datacentres in different locations with multiple machines in each and that way provide availability etc. But jut because I think it would be really cool IMHO.

πŸ˜‚ 2
thomas 2025-11-05T12:45:21.341589Z

I also think it would be cheaper... but can't really prove that of course. and "not invented here" would kick in as well.

2025-11-05T13:04:56.008269Z

I don't write clojure because it is my identity. I chose it because it is fun and I like speaking to other people who write clojure

2025-11-05T13:06:00.108229Z

The only possible rational argument is that a language with such little syntax and referential transparency is easier for a part time coder like me

ray 2025-11-05T13:40:32.892599Z

exoscale are getting serious but we still have deps on US SAAS :(

😿 1
simongray 2025-11-05T14:17:38.154939Z

I work at a university and the infrastructure that we use for our homegrown software is already on-prem Red Hat servers, no AWS or anything like that. The real sovereignty issue is how ingrained the use of Microsoft Office, Microsoft Teams, and Outlook/Exchange is.

πŸ‘ 3
πŸ‘πŸΌ 1
simongray 2025-11-05T14:22:38.879209Z

There is no attempt at changing this Microsoft office suite situation at the uni at all, but at least at our little centre we are 100% open source and only running on Linux servers.

πŸ˜‡ 3
thomas 2025-11-05T15:03:42.775619Z

very nice

2025-11-05T15:59:09.826059Z

I also think that a lot of programmers are thinking about what they'd like to do for their next job (either monetarily or just for the fun of it) and this drives a lot of tech choice. Saying you learned perl from the perl book guy would look good on a resume, and lots of things that make a company survive or die are out of the control of the tech team.

2025-11-05T15:59:29.739939Z

(In case you are wondering I'm not really buying the guy's argument)

thomas 2025-11-05T16:00:19.476189Z

CV driven development is a thing of course

2025-11-05T16:01:06.738319Z

and I do think that is logical

2025-11-05T16:01:32.000819Z

as is wanting to do things that are more fun and perl might have looked like "more fun" than PHP given that team

2025-11-05T16:01:35.062909Z

same w/rust

thomas 2025-11-05T16:01:45.953479Z

Yup

reefersleep 2025-11-05T10:48:17.155039Z

Good morning

reefersleep 2025-11-05T10:48:44.444749Z

Burning off days off, so I'm having one in the middle of the week. Feels weird

reefersleep 2025-11-05T10:56:58.157459Z

Is there such a thing, or a use for something like (take-while-having-seen pred coll) where the pred looks at all the items accumulated so far? Like (take-while-having-seen #(< (apply + %) 10) [3 5 1 1 7 8]) ;;=> (3 5 1)

borkdude 2025-11-05T11:25:43.723589Z

(defn take-while-having-seen [pred coll]
  (->> (reductions conj [] coll)
       (take-while pred)
       last))

borkdude 2025-11-05T11:26:47.778989Z

I think I would write your thing differently because of performance. I think I would make a sequence of items collected so far and their sums so I don't have to do the sum over and over again

borkdude 2025-11-05T11:27:29.013549Z

but it depends on your use case whether this makes a difference or not

reefersleep 2025-11-05T11:35:01.211319Z

This notion is an offshoot detour of a concrete problem that could probably be solved in a myriad of ways. But for take-while-having-seen, I was imagining more complex preds that could depend on the exact makeup of the accumulated values.

reefersleep 2025-11-05T11:35:35.678109Z

Nice brief implementation there! I need to get more use of reductions

Ed 2025-11-05T12:06:48.946079Z

You could also use the take-while transducer with a stateful fn?

(sequence (take-while (let [total (volatile! 0)] (fn [x] (< (vswap! total + x) 10)))) [3 5 1  1 7 8]) ;; => (3 5 1)
(edited to change the halt-when transducer to take-while)

πŸ’― 1
πŸ€“ 1
borkdude 2025-11-05T12:09:44.433889Z

Excellent

imre 2025-11-05T13:12:26.348709Z

there might be something in xforms for this

reefersleep 2025-11-05T16:38:00.131489Z

The "window" thingy seems esque, but not quite there.

borkdude 2025-11-05T16:38:58.215599Z

"window" thingie?

reefersleep 2025-11-05T16:39:13.576239Z

In xforms

borkdude 2025-11-05T16:39:16.201339Z

I think I'd just go with @l0st3d’s solution, no libs needed

reefersleep 2025-11-05T16:41:06.832599Z

Yeah sure 😊 seems great.

borkdude 2025-11-05T16:44:39.085539Z

the lazy take-while (non-transducer) version also works, if we're adding state:

(vec (take-while (let [total (atom 0)] (fn [x] (< (swap! total + x) 10)))
       [3 5 1 1 7 8]))

borkdude 2025-11-05T16:45:03.833169Z

sometimes you just need some state :)

reefersleep 2025-11-05T16:45:41.587739Z

Indeed! It is essentially a stateful thing I'm asking about.

2025-11-05T15:57:35.439429Z

TIL about *file*

πŸ”₯ 1
teodorlu 2025-11-05T16:30:29.894389Z

it's absolutely lovely πŸ€— I've used it to make a REPL snippet to compile single-page Clerk documents for my web site! I stick this in the bottom of ny namespace:

^{:nextjournal.clerk/visibility {:code :hide :result :hide}}
(comment
  ((requiring-resolve 'nextjournal.clerk/serve!) {:browse true})
  ((requiring-resolve 'clojure.repl.deps/sync-deps))
  (clerk/build! {:paths [(fs/file-name *file*)] :out-path "."})
  (clerk/clear-cache!)
  ,)