This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-15
Channels
- # announcements (20)
- # babashka (281)
- # beginners (13)
- # biff (8)
- # calva (20)
- # cider (5)
- # clj-commons (1)
- # clojure (46)
- # clojure-boston (1)
- # clojure-europe (6)
- # clojure-losangeles (24)
- # clojuredesign-podcast (3)
- # clojurescript (12)
- # datomic (1)
- # events (1)
- # fulcro (12)
- # guix (2)
- # honeysql (1)
- # integrant (1)
- # introduce-yourself (1)
- # rdf (16)
- # reagent (3)
- # reitit (14)
- # releases (3)
- # sci (28)
- # shadow-cljs (122)
- # specter (1)
- # tools-deps (10)
- # xtdb (6)
when-not
(bound? #'parse-long)
;; clojure.core
defn parse-double
My issue is I want to use parse-double in library code but I want to be backwards compatible with clojure 1.10.1The parse- functions in v1.11 are for convenience, they don't do anything special. If you want backwards compatibility what's the point of using them?
Copy the implementation and define it locally and exclude it from the clojure require
@UEQPKG7HQ datomic cloud uses clojure 1.10 that is why
Note it is not an error to exclude vars from clojure core that do not exist. So no need to be clever about referring clojure and checking the version on whether to exclude parse-long
> @UEQPKG7HQ datomic cloud uses clojure 1.10 that is why > That's not the problematic part. You're saying that you want to "use parse-double". If you want to be backwards compatible, you shouldn't. You should do what @U11BV7MTK suggested instead.
A while ago somebody here said that, unlike applications, libraries should be slow to adopt new language features and I agree completely. (Not directly related to the question but I think it fits in this thread)
Hi, 1. Do you know of any project/tutorial or examples of how to build a very simple clone of Roam research/obsidian type of app? Basically, an app connected information. 2. If there isn’t any, as a beginner how does one begin thinking about building this? 3. Also, are the apps mentioned built as web apps and then transformed into Chrome extension? 4. Lastly, I know Roam is built with Clojure but what is its mobile version platform built on? Thanks
On #4: I think they're an early adopter of ClojureDart. https://twitter.com/Austen/status/1506738969773367296
On 2. You need a flexible foundation for an editor like prosemirror. Building a rich text editor from scratch might be an option if you want to invest more time. Then you need a database that can handle very flexible storage and access patterns. Document/graph/tripple based like xtdb, datahike come to mind. There should be some way to add decent search. Or maybe handroll something with files and see where it goes.
Athens and Logseq are open source Roam-likes, though I guess looking over that could be too much for a beginner. https://github.com/logseq/logseq/blob/master/CODEBASE_OVERVIEW.md can be instructive. For starting with Datalog DB's, check out http://www.learndatalogtoday.org/. Looking over https://www.zsolt.blog/2021/01/Roam-Data-Structure-Query.html can also be instructive.