1,767 karma · joined September 29, 2015
(def as-and-bs
(insta/parser
"S = AB*
AB = A B
A = 'a'+
B = 'b'+"))
=> (as-and-bs "aaaaabbbaaaabb")
[:S
[:AB [:A "a" "a" "a" "a" "a"] [:B "b" "b" "b"]]
[:AB [:A "a" "a" "a" "a"] [:B "b" "b"]]]
[0]: https://github.com/Engelberg/instaparse(For comparison, in React you can pass the state down as props from a common ancestor, and in Clojure frameworks all app state is in a giant object referenced by components as needed.)
- Catullus 16, which might be the oldest thing that we could properly call a diss track: https://en.wikipedia.org/wiki/Catullus_16
- Catullus 45, a poem about two lovers that's proof people have always had an appetite for camp: https://en.wikipedia.org/wiki/Catullus_45
- Catullus 46, an earnest, wistful poem about breaking camp with the arrival of spring and bidding the former strangers, now friends, goodbye as you all pursue the aims that brought you together in the first place: https://en.wikisource.org/wiki/Translation:Catullus_46
Like I mean sure, maybe it'd be nice to have some syntactic sugar at the language level for tensors (though IMO the slice syntax for numpy.ndarray is already plenty), and maybe it's a microannoyance to have to write `import numpy as np` over and over, but what else is lacking?
With mount on the other hand, you tell it how to start and stop the component (and stores a reference to the component in the same var where you specified this), keeps a reference to the component in exactly one place, and then it automatically makes some reasonable assumptions about the order in which they need to be initialized, while allowing you to opt out as needed. Re: your example of finding a reference to the db, shouldn't it just have been in the var set up by a call to `defstate`? (Also, which web framework was it? Luminus?)
Let me restate the common argument--there's this feeling that it's useful to measure people by the good they're doing for society, and that getting a PhD doing postmodern feminist readings of Christopher Marlowe is less useful to society than getting one doing Alzheimer's research or whatever.
I'll just say that it's worth considering whether an academic discipline's contributions may be difficult to notice but in fact substantial. Some academic disciplines like history or cultural anthropology must operate more qualitatively simply because the phenomena they aim to account for admit of no other approach, with the result that their intellectual products (especially when considered from the perspective of general society) will not often be as concrete as, say, a vaccine. But it'd be premature, of course, to dismiss a discipline just because its methods do not reach our desired level of formalization and its output is intangible.
If the issue you're raising is more narrowly one of your belief that within the scope of an _individual_'s wellbeing studying some subjects will leave them worse off than others, that's obviously true in at least financial dimensions, but that doesn't make a discipline a "fake subject".