This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-14
Channels
- # asami (1)
- # babashka (50)
- # beginners (70)
- # bristol-clojurians (6)
- # calva (36)
- # chlorine-clover (1)
- # cider (4)
- # clj-kondo (3)
- # cljdoc (49)
- # cljsrn (5)
- # clojure (96)
- # clojure-australia (3)
- # clojure-dev (1)
- # clojure-europe (84)
- # clojure-nl (4)
- # clojure-spec (9)
- # clojure-uk (65)
- # clojurescript (31)
- # community-development (6)
- # conjure (17)
- # cursive (8)
- # datascript (5)
- # datomic (12)
- # duct (3)
- # emacs (18)
- # figwheel-main (2)
- # fulcro (7)
- # helix (1)
- # jobs (3)
- # luminus (7)
- # off-topic (77)
- # pathom (3)
- # portal (1)
- # rdf (4)
- # re-frame (1)
- # reitit (4)
- # remote-jobs (4)
- # reveal (15)
- # rum (1)
- # sci (38)
- # shadow-cljs (22)
- # spacemacs (1)
- # specter (6)
- # sql (1)
- # test-check (1)
- # tools-deps (60)
- # vim (12)
Where my Belgians at (if you can read this you are now an honorary Belgian) https://twitter.com/drGerlant/status/1315997215152799747
I must confess that I realized only until miday that this was actual multiple languages. And I don’t even speek dutch(?). Lol. I was missing some german sprinkled in though. Awesome text.
yeah it does bother me that this is dutch/french/english, while official languages in Belgium are dutch/french/german, but to be fair most belgians understand English, most don't understand German
Did some maths with one of my ten year olds this morning, as one does. Anyways, we ended up in some term rewriting. Like 2 + 3 is just 1 + 1 + 1 + 1 + 1. In order to do this, you need (AFAICT) three things. You need to be able to add one, subtract one, and check if something is zero. Which leads me to Clojure. I’ve sometimes wondered why we have inc, dec, and zero? And I guess a reason for this is that these are the three building blocks for arithmetic. And good morning!
@slipset you don’t even need subtraction, just the concept of peno numbers: 2 + 3 = S(S(0)) + S(S(S(0))) = S(0) + S(S(S(S(0)))) = 0 + S(S(S(S(S(0))))) = S(S(S(S(S(0))))) = 5
Based on S(a) + S(b) = a + S(S(b))
@slipset Maybe you can also teach them integer overflow, then you can simulate subtraction with only addition?
does this count as a non-euclidean thing? presumably the jump from MAX_INT to MIN_INT is not considered to be smooth
dunno, maybe it is, depends on your frames of reference
Doesn't make sense in maths as you need the concept of an infinite number of, well, numbers.
Integers forma quotient ring so techincally addition is enought.
Ring don’t need to be infinite.
I think it’s also a monoid ring
Btw, did you know that addition has an identity element (zero), but subtraction doesn't.
I doesn’t? :thinking_face:
no wait, that’s commutation
(- x 0) = x
so 0 is the neutral element
I see!
That’s why I don’t like -
And why accountants avoid subtraction until the very last moment
add all the assets
add all the liabilities
If your really fances then maybe(!) take the difference. But only if absolutely necessary :)
Someone just said IDEA and my first thought was "ugh, intellij". But then I realized that they were not a programmer and they just had an idea they were excited about...
Don’t most developers refer to the software as “IntelliJ” (which is also misleading)
Cursive
also works...
none of their other products are named intellij though, so the Idea
part has always seemed superfluous
and indeed confusing
Jet Brains
usually makes me think
> Vulnerable to Seagulls
Once had a manager whose style was described as “Management by Crocodile”, but I am not sure if it’s translatable. “He’s surfacing, gapes his mouth wide open (meaning: talking loudly and a lot), and submerges again”.
Suprisingly, in german it would be… shorter: “Auftauchen, Maul aufreißen, abtauchen”
oohh.. I hadn't heard of that one. Mushroom management is. Keep everyone in the dark, throw lots of sh*t over them and as soon one of them sticks it head out you chop it off.
What was your goal of creating one? Was there a performance issue you are trying to debug?
ok, I know that you shouldn't do swap!
on the fast path... but what is a good workaround for this?
@thomas using volatile!
and vreset!
might help if you don't need thread safety and watches