Fork me on GitHub
#clojure-europe
<
2021-12-03
>
pez08:12:15

gondrmi oong

dharrigan08:12:24

Good Morning

dharrigan08:12:35

don't forget, re:Clojure 2021 starting shortly!

dharrigan08:12:14

The live stream is available here

ordnungswidrig10:12:07

Pro tip: you can watch at double speed to catch up with the live stream!

😹 2
🚀 2
❤️ 1
borkdude10:12:43

@ordnungswidrig How do you play the non-live part then?

ordnungswidrig11:12:46

I've played the missed part in 2x and now caught up and watch the live part in real time

borkdude11:12:02

I asked: how

borkdude11:12:22

I can't find this option in the youtube UI. But then again, I'm a terrible user of most graphical UI programs.

dharrigan11:12:29

On the cog wheel

borkdude11:12:25

I mean: how do you get at the missed part. Apparently I'm bad at asking questions too!

dharrigan11:12:27

🙂 That, I don't know.

ordnungswidrig11:12:33

Just slide the circle 🔴 on the red bar to the left.

borkdude11:12:13

I wouldn't have guessed that

ordnungswidrig11:12:57

So, did it work? :thinking_face:

dharrigan08:12:40

(starts at 09:45 UTC)

borkdude09:12:37

I thought I was already too late, but I realize I live in UTC+1

ordnungswidrig10:12:07

Pro tip: you can watch at double speed to catch up with the live stream!

😹 2
🚀 2
❤️ 1
ordnungswidrig10:12:44

clerk looks awesome.

4
ordnungswidrig11:12:12

@borkdude echo "010\n100"| bb -I -e '(print *input*)' gives (8 100) 🤯

borkdude11:12:49

@ordnungswidrig This is not specific to bb:

$ clj
Clojure 1.10.1
user=> 010
8

ordnungswidrig11:12:19

It's rooted deeply in scanf I guess.

ordnungswidrig11:12:44

> i Matches an optionally signed integer; the next pointer must be a pointer to int. The integer > is read in base 16 if it begins with 0x' or 0X', in base 8 if it begins with `0', and in > base 10 otherwise. Only characters that correspond to the base are used.

ordnungswidrig11:12:07

Who could ever think this is a good idea for edn?

ordnungswidrig11:12:39

What a lovely pattern in EdnReader for integers ([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)? 😱

reefersleep12:12:13

For a very general regex, that’s not too bad, is it? It’s just “normal” regex suckage.

reefersleep12:12:54

Could give the subbits names and concatenate them for clarity.

reefersleep12:12:42

Think Arne has some Clojure datastructure -> regex library, always been curious to see if it’d be preferable to literal regexes like this

ordnungswidrig11:12:05

The https://github.com/edn-format/edn#integers reads: > Integers consist of the digits `0` - `9`, optionally prefixed by `-` to indicate a negative number, or (redundantly) by `+`. No integer other than 0 may begin with 0. 64-bit (signed integer) precision is expected. An integer can have the suffix `N` to indicate that arbitrary precision is desired. -0 is a valid integer not distinct from 0.

ordnungswidrig11:12:02

Ok but clojure literals are defined as this: > Integers can be indefinitely long and will be read as Longs when in range and clojure.lang.BigInts otherwise. Integers with an N suffix are always read as BigInts. Octal notation is allowed with a `0` prefix, and hexadecimal notation is allowed with a `0x` prefix. When possible, they can be specified in any base with radix from 2 to 36 (see https://docs.oracle.com/javase/7/docs/api/java/lang/Long.html#parseLong(java.lang.String,%20int)); for example `2r101010`, `052`, `8r52`, `0x2a`, `36r16`, and `42` are all the same Long.

reefersleep12:12:06

(->> "good morning"
     seq
     shuffle
     (apply str))
=> "mn norgigood"
What you might mumble when greeting someone from under the covers of your bed, not awake yet.

reefersleep12:12:35

I’m so happy. Finally got around to bash scripting some repetitive stuff that I always do when initialising my work project locally, and to js script something I often do to retrieve text from the browser when referencing stories.

reefersleep12:12:10

Must script more!

lread13:12:52

@reefersleep you spelt babashka wrong. simple_smile

🤪 3
borkdude13:12:32

And if you’re looking for some browser scripting check out #nbb with Playwright :)

genRaiy13:12:08

groom noding

genRaiy13:12:29

TFW when you refactor your nodes

otfrom16:12:07

booked in for my booster on Sunday

borkdude17:12:07

Writing a Github action with the Node runner and nbb has become easier this week. You can now run Node 16 directly instead of via a hack. This is an example nbb action. https://github.com/borkdude/nbb-action-example/blob/main/action.cljs Now all I need is a good idea for a Github Action. It seems everything you can think of is already there.

ordnungswidrig17:12:20

I'll get boosted tomorrow :star-struck:

genRaiy18:12:09

@borkdude do you CVE checks covered?