This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-13
Channels
- # aleph (3)
- # aws (1)
- # beginners (97)
- # boot (41)
- # cider (7)
- # clara (105)
- # cljs-dev (4)
- # cljsrn (66)
- # clojure (185)
- # clojure-argentina (2)
- # clojure-colombia (15)
- # clojure-czech (1)
- # clojure-dusseldorf (8)
- # clojure-greece (2)
- # clojure-italy (5)
- # clojure-russia (33)
- # clojure-spec (14)
- # clojure-uk (9)
- # clojurescript (75)
- # cursive (6)
- # data-science (1)
- # datomic (12)
- # emacs (2)
- # fulcro (71)
- # funcool (1)
- # jobs (6)
- # jobs-discuss (62)
- # juxt (21)
- # lein-figwheel (1)
- # luminus (9)
- # lumo (41)
- # off-topic (39)
- # om (12)
- # onyx (1)
- # portkey (2)
- # protorepl (4)
- # re-frame (14)
- # reagent (50)
- # ring (3)
- # shadow-cljs (6)
- # spacemacs (38)
- # specter (8)
- # test-check (14)
- # testing (52)
- # unrepl (2)
I've been searching for a few years now for a suitable personal knowledge base 😞
@qqq I have a very long 'TIL / WTF' Evernote note
I use a directory in git, .org files (although I treat them as plain text). and use projectile search functionality when I need something. I use OSX notes for temporary stuff that I don’t want to keep. I still have to learn org-mode though.
Day of the Programmer !!! Today is 256th day of the year In Russia it is official holiday 😄 On September 11, 2009, President of Russia Dmitry Medvedev signed the decree.
actually, i don't know what the finite refers to, my book doesn't even mention it 😕
All halting programs can be represented as finite state automata 😄
i suppose. the reducing funtion's signature is (fn [state input] ...)
but i don't know about accepting states and whatnot so it sounds like a bit of a stretch or pushing a square peg into a round hole
It is just a different representation of the same computation, not a very illuminating one
but a never ending reduce is a helpful way of looking at many things. For example Database = reduce over the previous state of the DB and an event.
Right, expressing it as a turing machine with state transition on a one-dimensional infinite tape was what I was referring to
you’re right, reduce would be a FSM with n + 1 states (`n` the length of the input sequence and initial value) and the transition between the states would be the same function. For lazy infinite sequences it would no longer be an FSM but the same kind of representation holds
The stack is not necessary right? The transition is fixed (the function you are reducing with)
@cjhowe see also reductions
which is like reduce but it returns a lazy seq of each intermediate accumulated state
hmmm, i guess a pushdown automaton has both state in the state machine and state on the tape? so the tape state wouldn't be necessary
(also, reductions is underappreciated imho)
sorry, I assumed it would truncate, my bad
I’m glad I didn’t opt for *'
instead of +
oh, range starts with 0 so that would have been much tidier, haha
man i thought this class was going to be boring, but it's actually pretty exciting. people have been talking about turing machines and pushdown automaton while i've been in the dark until now
if you like that stuff, I can recommend a really good book on petri nets too (which are like turing machines but made of independent widgets that act without sharing a clock - they can be used to make proofs about async / parallel behavior) - it’s really well written, as well as being the most aesthetically pleasing CS book I’ve seen in terms of typography and diagrams https://www.amazon.com/gp/product/3642332773/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
oh, I’ve only seen the physical copy
Anyone have a hint on how to construction a postgres query where i can take a sample of the grouped together rows returned by GROUP BY? More generically, i want to perform a ORDER BY clause to the GROUPS produced by GROUP BY. the ORDER BY function i have in mind is random(), the GROUP by function could be agg_array (to bring the rows together) with the intent of producing a small sample for each group.
If you are okay doing a window function (https://www.postgresql.org/docs/9.6/static/tutorial-window.html) you can do both a group by (partition by in window function parlance) and order by
@spinningtopsofdoom thanks for the tip. I really appreciate it.
Another programming community uses https://gitter.im/ for irc seems worth a try. Way better support for communities than slack.