This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-01
Channels
- # beginners (117)
- # boot (8)
- # cider (22)
- # clara (3)
- # clojure (79)
- # clojure-italy (3)
- # clojure-spec (34)
- # clojure-uk (34)
- # clojurescript (74)
- # cursive (7)
- # datascript (5)
- # datomic (28)
- # defnpodcast (1)
- # dirac (9)
- # docker (25)
- # duct (1)
- # emacs (14)
- # fulcro (67)
- # graphql (1)
- # hoplon (15)
- # jobs (4)
- # juxt (6)
- # off-topic (76)
- # parinfer (3)
- # re-frame (25)
- # reagent (4)
- # rum (6)
- # shadow-cljs (1)
- # spacemacs (30)
- # sql (15)
- # unrepl (36)
- # yada (1)
I actually spent quite a bit of time thinking about this a few years ago. data flow graphs are by far one of the most useful tools I’ve found for describing Clojure architectures. however, they completely suck when it comes to hof.
Rich draws a lot of diagrams but they are usually more process/data oriented than trying to show detailed call graphs
the slides he did for his euroclojure talk about core.async channels are the best public source I can point to show a variety of things he’s drawn about a particular piece of code http://cdn.cognitect.com/presentations/2014/insidechannels.pdf
I have a theory that it might be interesting to do something like what we do for influencer graph analysis - we take all the connections, then look for the nodes that have the largest number of shortest paths going through - those are "significant" because they are the most vital bridges - the things that tend to be where others connect indirectly
so you'd end up with the api defining functions
most of the talks Rich does are much more conceptual - this one is pretty unique in being so tightly tied to a specific piece of available code
(I think)
I think you could definitely trace stuff like that
I often do function flow graphs when trying to understand a chunk of code I am seeing cold
there are some clojure tools that will make them for you
I’m just googling, no idea on how good any of these are
that sinking feeling when you ask your repl what git sha it was built from and it responds with a git sha not in your master repository
I have never been more thankful for clojure source code being loaded as resources from the jar and not AOT-compiled by defualt in my life
@alexmiller hof? that's a new one
higher order function
Hi everyone, We are an independent group of senior Clojure devs/freelancers. We are working on some A.I., blockchain, and ML projects now. Four of us are Ph.D.’s in Machine Learning and Mathematics. We are focused on Machine Learning - Pattern recognition, Algo trading, NLP, Artificial Intelligence in FinTech and HealthTech, Blockchain, and cryptocurrencies and chatbots. Our Stack: Clojure, ClojureScript, Python (TensorFlow), AWS, JS, Node.Js, PHP, Angular, C# (.NET Core), PostgreSQL, ReactJS, Scala, Presto, Docker, Linux and many others. Here are some projects we are working on: http://www.status.im http://www.foldapp.com http://www.evolta.fi http://www.trezor.io http://www.discomelee.com Stealth startup - Machine Learning platform for forex trading We have a free capacity now (6 devs). Ideally, we are looking for long-term cooperation or project, we don’t like to switch between projects too often. We are based in the Czech Republic and we work mostly with startups as co-developers. Also would like to get in touch with other Clojure or ML developers to share ideas and knowledge:) Here is our facebook page: https://www.facebook.com/FlexianaDevGroup/?ref=bookmarks Get in touch here or send a message or email - <mailto:[email protected]|[email protected]> Thank you:)
What’s the question?
https://react-etc.net/entry/project-detroit-seeks-to-bring-the-v8-javascript-engine-to-openjdk
I'm reading: https://github.com/allenai/allennlp/blob/master/LICENSE Is Apache basically MIT/BSD ? I.e. I can modify + distribute, without releasing the source code ?
@bronsa: newb question: do I just apt-get install openjdk-9, and I get get panama ... or do I have to custom compile my own jdk from that source tree ?
Can anyone tell me how to get from
--> digitalocean: A snapshot was created: 'cljdoc-2018-02-01T15:03:20Z' (ID: 31405797) in regions ''
to
31405797
i.e. the number in (ID: XXXXXXX)
using unix utilities? My unix fu is failing me 😔there are .star there which have been turned into bold text: @martinklepsch
@qqq nice, that works
I’m super confused about the escaping of parens though 😄
but it’s fine — it works 👍 thanks 🙌
iirc, \([0-9]*\)
just says: capture the [0-9]*
as a group, then we can refer to it later, where \0
is the entire matched string, and \1
is the 'first' \(...\)
... or something like that
thanks for the explanation @qqq makes a bit more sense now 😅
@martinklepsch Here's a handy website w/ an example to break the regexp down https://regex101.com/r/yASXWa/1
@mnzt thanks! Although in this case the regex wasn’t really the issue, I just couldn’t figure out how to feed it to grep/sed/whatnot 😄
The way I learned how to use sed is: 1. learn VIM 2. turns out sed uses the same regexps as far as I can tell 🙂
Do you do this in VIM: \(
when you refer to a regex group? This is mainly what tripped me up
Hm, so now I need to write the matched result to a file but without a trailing newline
tr -d ‘\n’
actually this seems to work I just didn’t see the newline characters in my terminal
@chris actually it seems that sed 's/\n$//g'
does not delete the newline on my system (OS X)
@chris I tried it because using tr
actually causes some weirdness when doing tr -d ‘\n’ > some-file
I ended up using tr -d '\n' | tee image-id
Is there a way to use Chrome, in a 'command line manner', like one would with node.js? I.e. suppose I have a JS program -- but instead of running it on node.js, I want to run it on Chrome's engine, and have it dump the output to file. Is this possible? In particular, I want to write a JS file which: 1. reads some data from file on local file syste 2. runs some webasembly code 3. save the wasm output to a file on local filesystem Is there a way to use 'Chrome' instead of 'node.js' as my 'js interpreter' ?
@qqq Have you looked at: https://developers.google.com/web/updates/2017/04/headless-chrome ? Basically chrome --headless --repl
seems pretty close to what you want. I don’t know how or if you can do I/O
@justinlee: this is already useful, TIL I can do webpage -> pdf via `chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/ `
@qqq if you're okay using node, you can use node to command headless chrome: https://github.com/GoogleChrome/puppeteer
@qqq, what do you mean by "chrome" vs "nodejs"? in principle, I think they use more or less the same javascript engine. are you interested in the renderer from chrome? depending on which features and how much control you want, you can embed using chromium, https://www.chromium.org/developers
many of the headless browser tools for chrome wrap this
oops, i meant to point to https://bitbucket.org/chromiumembedded/cef
@smith.adriane: I may be mis using some terms here, what I'm referring to is: I have a *.js file. I can run it via chrome; or I can run it via nodejs -- this what I mean by "chrome" vs "nodejs"
for many *.js files it wouldn't make a difference
since they share the same javascript engine
the environment/context when you run within chrome or within node are different
basically, using something like chromium embedded may be way overkill for your use case
but depending on what your use case is, it might be a good fit
where can I find sample usage of: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.11 trying to find sample code is surprisingly difficult