This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (4)
- # alda (3)
- # aws (1)
- # beginners (2)
- # boot (33)
- # braid-chat (4)
- # braveandtrue (20)
- # cider (52)
- # cljs-dev (13)
- # cljsrn (55)
- # clojure (111)
- # clojure-belgium (4)
- # clojure-brasil (6)
- # clojure-dusseldorf (1)
- # clojure-greece (116)
- # clojure-mexico (1)
- # clojure-nl (3)
- # clojure-russia (56)
- # clojure-spec (72)
- # clojure-uk (13)
- # clojurescript (66)
- # community-development (2)
- # component (24)
- # core-async (1)
- # cursive (19)
- # datomic (27)
- # devcards (5)
- # emacs (1)
- # funcool (34)
- # hoplon (313)
- # jobs (1)
- # lein-figwheel (11)
- # luminus (5)
- # mount (30)
- # off-topic (63)
- # om (375)
- # onyx (67)
- # perun (8)
- # proton (1)
- # reagent (4)
- # rum (1)
- # specter (55)
- # spirituality-ethics (7)
- # test-check (2)
- # untangled (34)
- # yada (20)
Got it -- installed this https://nodejs.org/en/ and it says I should have npm now...
cljs.spec.test in ClojureScript master, generative testing support for speced vars
@dnolen congrats, this is good news. and of course well done, thanks to @mfikes as well
@dnolen @mfikes is it possible to optimize
extend-type to output the same optimized code as when implementing protocols in
defrecord and accessing properties directly? In
defrecord it compiles roughly to
__self.foo, but in
extend-type, it has to go through the keyword invocation
just wondering whether you know it's NOT possible, as to save me some time researching it
@mfikes and anyone else watching, I've taken several more steps with cljs-bootstrap (following the instructions at https://github.com/kanaka/cljs-bootstrap/blob/master/README.md, and digressing for several installations),
node repl.js works (except it doesn't allow multi-line input, which is frustrating since that's one of the reasons I'm on this path... but pressing on...), but then
./script/gen_single.sh fails with:
MacBook-Pro-6:cljs-bootstrap leespector$ ./script/gen_single.sh readlink: illegal option -- f usage: readlink [-n] [file ...]
Oh that’s neat. I’m not at all familiar with
readlink, but that smells like you might have a different (perhaps too old) version of it.
man readlink will tell you if yours supports the
And maybe everyone always thinks this about the problems that frustrate them, but it seems like this should be so easy, to put a simple terminal-based program in a browser window, when we have Clojurescript and examples like http://clojurescript.net that are doing essentially what I want and aiming to show people how to do the same thing...
@lspector: Perhaps Replumb is “cleaner,” along with maintainers and a bit of a community around it. http://clojurescript.net was built by the Neil Armstrong of self-hosting
@mfikes: The stuff in the readme at https://github.com/Lambda-X/replumb does look good, although I'm a bit worried about the stuff that many would think is too obvious to put there, like how to compile things and what to move to my server, etc. But maybe I should just switch gears to this, try to clone the project, see if I can make the demo REPL work, and then try to dumb it down to a running a simple interactive terminal app...
While http://clojurescript.net was an exploratative experiment leading to fundamentally new capabilities that never before existed, Replumb (upon which http://clojurescript.io is the flagship consumer) is a measured, well-reasoned library, designed for re-use by the community.
Hm. Not sure Replumb can deal with multiline input... Ah -- it can 🙂. It was a bit hard to tell because of parinfer, which was munging my pasted-in multi-line expressions. I don't know if this will be an issue for my usage, but FWIW I think that parinfer is a really clever, really impressive, deeply problematic anti-feature 😕. I know some people love it and it's great that it's available for them, and of course those who have provided it are doing a great service... but for me (and my students when I teach) parindent is problematic and parinfer magnifies the problems...
@mfikes: It was a total joy to get http://clojurescript.io repl working, following the excellent directions at https://github.com/Lambda-X/cljs-repl-web, which ran without a hitch and I could move the
@mfikes: awesome. I think if I can nail this terminal-app-in-a-web-page thing then I'll be able to maintain my ignorance indefinitely 🙂... by making anything that I want to put online into an old-school terminal app, and running it in exactly the same shell.
Trying to remove stuff from a copy of the http://clojurescript.io repl (https://github.com/Lambda-X/cljs-repl-web) in order to field a simple terminal-based app. Assuming that the html that's being served comes from the only .html file I see in the project,
resources/public/index.html, I edited that, but this seems to have no effect on what I get from running
boot dev and then browsing
. For example, if I change what's in the
title tag I still get the same title... Does anyone know where to hack to change what comes when browsing the site?
But it's still pretty mysterious to me what I should remove from that
.html file to get just the terminal field. Everything I try seems to leave most of the rest (e.g. all of those buttons) intact and/or to mess up the terminal window. I guess a lot must be hidden in those links in the header?
But it's looking much less trivial than I hoped to strip out everything except the terminal field from the window, and to replace the REPL loop with a R*PL-like terminal-style interactive program of my own. If anyone has pointers on how to do those things to the http://clojurescript.io REPL I'd love to learn of them.
From a little more poking, it looks like some of what I'll need to remove is in
src/cljs/cljs_repl_web/views.cljs and that I may have to understand a fair bit of this just in order to remove it....
what is the best way to record from mic and save from browser?
Working to turn http://clojurescript.io into a way to share a terminal app. Figured out how to hide most of the non-console stuff, by commenting out calls to
src/cljs/cljs-repl-web/core.clj. Yay 🙂.
But how to replace the REPL loop of http://clojurescript.io with my own. Not clear from my rummaging through the project code. Alternative, which will work fine for me and seems like it must be easier: Just use the REPL and make my functions available for calling within it, so that the user can just type something like
(start) to start my terminal app running in the REPL. But, two questions: 1) Where can I put my code so that it will be callable within the REPL?, and 2) What can I use in that code to get something like
println to work properly within the REPL?
With http://clojurescript.io, how can I define functions that will be callable in the REPL, which is in namespace
cljs.user namespace appears not to be defined in the
cljs-repl-web-devel project but to be imported somehow (?), so I don't see how to add it directly there. I tried to use
in-ns but that appears not to be supported in Clojurescript. I could create a separate file/namespace in
src/cljs/cljs_repl_web, but how would I then get that to be visible in the REPL? The only instances of "cljs.user" that I see in the project are in
src/cljs/cljs_repl_web/app.cljs, and I don't see how to change that code either to add functions to the
cljs.user namespace or to make another namespace also accessible within the REPL.
Hi guys, I'm new to the community and new to Clojure(script).. I've been playing with it over the past week and right now I'm facing a problem using cljsjs that I don't know if it's a bug or just me screwing up. Is this the right place to ask?
alright, here's my current setup: Using boot with:
[adzerk/boot-cljs "1.7.228-1"] [pandeiro/boot-http "0.7.3"] [adzerk/boot-reload "0.4.8"] [adzerk/boot-cljs-repl "0.3.0"] [com.cemerick/piggieback "0.2.2-SNAPSHOT"] [weasel "0.7.0"] [org.clojure/tools.nrepl "0.2.12"] [compojure "1.5.0"] [cljsjs/three "0.0.76-0"]
(ns three-test.core (:require cljsjs.three)) (enable-console-print!) (println "hey!" (THREE/Scene.))
WARNING: No such namespace: THREE, could not locate THREE.cljs, THREE.cljc, or Closure namespace "" at line 8 src/three_test/core.cljs
(ns three-test.core (:require [cljsjs.three])) (enable-console-print!) (println "hey" (js/THREE.Scene.))
No problem happy to help
I can't seem to refer to my own namespaces from the http://clojurescript.io repl, whether by trying to include them in
cljs.user, or by trying to get the repl to see an additional namespace, or with a call to
ns in the repl itself. Any help on getting my own code callable within the http://clojurescript.io repl?
Anyone know of a good library for using D3 with React?
@biscuitpants: I just happened to be reading this article this morning http://blog.getliquidlandscape.com/2015/01/08/practical-time-series-visualization-using-d3-om/ Might give you some ideas
awesome! thank you @peterschwarz
Hello, my http://goog.net Jsonp import is not resolving in my cursive ide "http://goog.net cannot be resolved"
is that a bug or is there something wrong with my conf? I'm trying to debug my om next tutorial app
@vinnyataide: it's probably hard for cursive to locate this ns as it's not clojure-provided but included in Google Closure
i.e. it's a special case
@pesterhazy: okay then, my application is giving no error messages, was just a dark shot, thanks.
@vinnyataide: you need to add Google Closure I think as library for that to work?
@dnolen in the project file? I don't think that's the case since the goog Uri import is working
@vinnyataide: hrm weird, might be question for the #C0744GXCJ channel then
Hi @richiardiandrea and @tomek, I'm following up on a thread from the clojure google group. I downloaded the project at
and am planning to run a changed copy of it (just the console field) on my own server. I can make that work, but what I can't figure out how to do is to make my own functions callable within the resulting REPL. Can you help with that? Where can I put my code and how can I make it visible from the REPL?
@lspector: of course we can help! I have very limited time now, but I can suggest you to read this: http://lambdax.io/blog/posts/2015-12-21-cljs-replumb-require.html on how a require in bootstrap works. TL;DR...you need to provide a file in your
Thanks @richiardiandrea -- I'll read that, try to figure it out, and touch base here later.
So I started a new project using
lein new re-frame myproject +routes +handler and tried to remove the
# URL and use HTML5 push state instead - however it seems that visiting the about page directly loads the homepage instead of the about page. Visiting the about page via the homepage works fine though - code here -> https://github.com/ashleyconnor/reframe-template