This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-12
Channels
- # beginners (63)
- # boot (3)
- # braveandtrue (153)
- # cider (20)
- # cljdoc (2)
- # clojure (82)
- # clojure-dev (25)
- # clojure-italy (73)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-spec (67)
- # clojure-sweden (1)
- # clojure-uk (83)
- # clojurescript (52)
- # clojutre (12)
- # core-logic (37)
- # cursive (18)
- # datomic (16)
- # editors (10)
- # emacs (11)
- # fulcro (62)
- # graphql (11)
- # jobs (1)
- # klipse (1)
- # leiningen (6)
- # off-topic (92)
- # onyx (7)
- # pedestal (3)
- # portkey (5)
- # re-frame (14)
- # reagent (13)
- # reitit (1)
- # remote-jobs (1)
- # ring-swagger (2)
- # shadow-cljs (111)
- # tools-deps (5)
- # yada (10)
- # figwheel-main (15)
Dipende da quanto è matto il tuo schema. Noi facciamo XSD -> Haskell types, e ci bastano ~100 linee di js
Dipende quanto è one-off la questione, noi abbiamo bisogno di eseguire/sistemare lo script ogni 2-3 mesi, quindi ha senso farlo sul caso particolare
with optimisations that stuff like nippy just doesn't/can't do (varints, key cache, etc)
alright, spec to whatever another language is using to describe their endpoints I guess?
@mpenet I’m working on spec->Dhall, and Dhall is a typed language with super efficient binary encoding
Also have a look at https://github.com/uswitch/speculate where the “parsing spec forms” is part of the lib
spec-tools has also something similar (I think they call this a spec walker) but I am not a fan of that library
domanda niubba, esiste un take-while
che si "stoppa" quando la condizione è soddisfatta? :thistle:
(defn generate-message[]
(take-while #(clojure.string/includes? "." %) (filter #(re-find #"^[a-zA-Z]+" %)
(take 1000 (markov-chains.core/generate (markov-chains.core/collate data 3))))))
@nilrecurring "He really likes writing open source code, writing music, and writing pizza"
beh ovviamente c'e' gia https://en.wikipedia.org/wiki/Pizza_(programming_language)
> Pizza also added function pointers and algebraic types with case classes and pattern matching. Pizza è molto meglio di Java a quanto pare
@andrea.imparato questo sembra funzionare (non elegantissimo… ma non mi viene altro…)
(reduce
#(let [r (conj %1 %2)]
(if (re-find #"\." %2) (reduced r) r)) [] coll)
o qualcosa di folle tipo (non testato)
(reverse (takewhile #(not (.endsWith "." %)) (reverse s)))