[ClojureScript] Re: How about ClojureScript and CommonJS now?

2017-09-01 Thread Jiyin Yiyong
For reference, if you want to compile ClojureScript into CommonJS code and bundle it with Webpack, check this out https://hashnode.com/post/early-stage-live-coding-clojurescript-with-webpack-cj2w4lsiv006ul7k8rcp9bqvd On Friday, May 20, 2016 at 1:04:21 AM UTC+8, Jiyin Yiyong wrote: > > Se

[ClojureScript] Re: Optimizing virtual dom computation without using React

2017-06-13 Thread Jiyin Yiyong
I tried something like that. Actually I implemented a simple virtual DOM library by myself to do that. https://github.com/Respo/respo Since I'm not using React, I can optimize virtual DOM with `identical?` function as I need, and let the library reuse existing components. It's possible, but

[ClojureScript] Re: How about ClojureScript and CommonJS now?

2017-06-01 Thread Jiyin Yiyong
Now we have shadow-cljs ! https://github.com/thheller/shadow-cljs/wiki/ClojureScript-for-JS-Devs On Friday, May 20, 2016 at 1:04:21 AM UTC+8, Jiyin Yiyong wrote: > > Searched and read some pages on this topic, > https://github.com/clojure/clojurescript/wiki/Google-Summer-of-Code-201

[ClojureScript] Re: A new V8 is coming - Google I/O 2017

2017-05-26 Thread Jiyin Yiyong
This one is also cool: Ben Titzer @ VMSS16: A Little on V8 and WebAssembly https://www.youtube.com/watch?v=BRNxM8szTPA On Friday, May 26, 2017 at 2:47:54 AM UTC+8, Nick Pavlica wrote: > > Lots of great things are happening in the JS community! If you haven't > had an opportunity to watch this

[ClojureScript] Re: Large public clojurescript websites

2017-05-17 Thread Jiyin Yiyong
On Saturday, May 13, 2017 at 11:43:03 PM UTC+8, Marc Griffiths wrote: > Hi, > > I recently deployed a 100% cljs/cls site: organicinvestmentcooperative.com.au > > I'm wondering if people can point me towards other clojurescript websites, or > people or resources to help build commercial scale

[ClojureScript] Re: A new take on ClojureScript and npm

2017-05-14 Thread Jiyin Yiyong
On Sunday, May 14, 2017 at 6:45:48 PM UTC+8, Thomas Heller wrote: > Hello, > > I wrote a few lines of code that should hopefully make it easier to get > started with CLJS for people coming from the JS world. > > I created a demo here: > https://github.com/thheller/npm-module-example > > The

[ClojureScript] Any chance we can fit ClojureScript into Webpack ecosystem?

2017-05-10 Thread Jiyin Yiyong
Already an old boring topic... I'm from JavaScript side and so many people are building apps with Webpack. And so many of alt-js languages got Webpack loaders: BuckleScript https://github.com/rrdelaney/bs-loader PureScript https://github.com/ethul/purs-loader Elm

[ClojureScript] Respo's home page is up: respo.site

2016-09-29 Thread Jiyin Yiyong
http://respo.site Respo is a front-end MVC library in ClojureScript. It's like Reagent but built totally in ClojureScript, so it's purer and more friendly to hot code swapping. The shortcomings is it has quite less features comparing to React.js , for example side effects. This is the first

[ClojureScript] cljs or js, I'm in a trouble

2016-09-16 Thread Jiyin Yiyong
Oh, I found that's too long and so I put it on Medium now https://medium.com/@jiyinyiyong/clojurescript-or-javascript-im-in-a-trouble-8e7150ff5c11#.t9v73hu0f Simple version is I learnt ClojureScript and like to think with it. However my job is writing in JavaScript, which is mutable and full of

[ClojureScript] Re: ANN: ClojureScript 1.9.198 - cljs.spec, core ns aliasing, macro inference, :rename, and more!

2016-08-12 Thread Jiyin Yiyong
On Saturday, August 13, 2016 at 3:50:20 AM UTC+8, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > README and source code: https://github.com/clojure/clojurescript > > > Leiningen dependency information: > > >     [org.clojure/clojurescript

[ClojureScript] I wrote down my complains on React.js and JavaScript side, any opinions?

2016-06-05 Thread Jiyin Yiyong
I said JavaScript is becoming too complicated and even learning a new language with could be easier. Or maybe something like that. https://medium.com/@jiyinyiyong/you-should-check-clojurescript-before-choosing-redux-heres-why-dc644d4746cd#.hxqktd1y9 Do you guys like or hate JavaScript? --

[ClojureScript] How to develop ClojureScript in Web worker?

2016-05-30 Thread Jiyin Yiyong
As I can see the hot loading will fail in such case since it cannot touch the DOM. But it's a obvious solution we need to gain performance in a browser. Is there some solution for it now? -- Note that posts from new members are moderated - please be patient with your first post. --- You

[ClojureScript] Re: [ANN] Carry - a single-page application framework

2016-05-28 Thread Jiyin Yiyong
On Friday, May 27, 2016 at 2:48:43 AM UTC+8, Yuri Govorushchenko wrote: > I'm happy to share the new framework for building SPAs, inspired by re-frame, > Elm architecture, Redux and Cerebral. > > Check it out at https://github.com/metametadata/carry > > Features: > > - Functional API with no

[ClojureScript] Re: clojure.spec

2016-05-28 Thread Jiyin Yiyong
On Sunday, May 29, 2016 at 6:39:16 AM UTC+8, David Nolen wrote: > clojure.spec has been ported to cljs.spec now available in ClojureScript > master. Will probably cut a release later next week but users are encouraged > to build master and give it a spin. > > > David > > > On Mon, May 23,

[ClojureScript] Re: Clojurescript Tutorials

2016-05-28 Thread Jiyin Yiyong
On Thursday, May 26, 2016 at 2:56:19 PM UTC+8, Punit Naik wrote: > Hi Everyone > > I am new to Clojurescript and wanted to start doing UI programming. Now the > thing is, I don't have much JS, AngularJS, React.js knowledge. Can you guys > please suggest me any good tutorials about clojurescript

[ClojureScript] Re: How about ClojureScript and CommonJS now?

2016-05-19 Thread Jiyin Yiyong
On Friday, May 20, 2016 at 1:04:21 AM UTC+8, Jiyin Yiyong wrote: > Searched and read some pages on this topic, > https://github.com/clojure/clojurescript/wiki/Google-Summer-of-Code-2015 > https://github.com/clojure/clojurescript/wiki/Compiler-Options#foreign-libs > as a Webpack user

[ClojureScript] How about ClojureScript and CommonJS now?

2016-05-19 Thread Jiyin Yiyong
Searched and read some pages on this topic, https://github.com/clojure/clojurescript/wiki/Google-Summer-of-Code-2015 https://github.com/clojure/clojurescript/wiki/Compiler-Options#foreign-libs as a Webpack user I used them quite open. How about CommonJS support now? * Can I require commonjs file?

[ClojureScript] Re: My new projects to extend React: Respo and Quamolit

2016-04-21 Thread Jiyin Yiyong
nlikely to pick immature code like Respo. On Thursday, April 21, 2016 at 6:13:47 PM UTC+8, Jiyin Yiyong wrote: > I want to see if anyone is already getting bored about React.js like me. It's > still fun to try React Native but React.js is old, its 2012 technology(not > quite sure about 201

[ClojureScript] My new projects to extend React: Respo and Quamolit

2016-04-21 Thread Jiyin Yiyong
I want to see if anyone is already getting bored about React.js like me. It's still fun to try React Native but React.js is old, its 2012 technology(not quite sure about 2012, but old enough even 2013). React is not nicely decoupled, and not a great framework for animations. It's becoming as

[ClojureScript] How to make cljs$core$next faster in ClojureScript?

2016-04-20 Thread Jiyin Yiyong
I got an app with ClojureScript and it's quite slow http://repo.tiye.me/Quamolit/quamolit/ My code is doing a lot of rendering work, I haven't yet finished designing the caching solution, but the CPU profile showed there's performance issue in `cljs$core$next`. Why is that slow, did I use it

[ClojureScript] How do you compare boot-reload and figwheel?

2016-03-23 Thread Jiyin Yiyong
https://github.com/adzerk-oss/boot-reload thinking about switching to boot since I used to use Gulp... -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript"

[ClojureScript] Is there a revision tool for ClojureScript

2016-03-10 Thread Jiyin Yiyong
Webpack provides built-in revision syntax to add chunk hash into it's file name. And file can be put on to CDN server without worries. Also, there's code splitting for multiple pages with automatic analysing of common code. I want to use ClojureScript, but how about this solved problems? --

[ClojureScript] How does lein-figwheel work?

2015-11-20 Thread Jiyin Yiyong
I spent quite some time playing with Webpack HMR and it's quite reasonable. Figwheel seems to do that in a different way since ClojureScript is using immutable data structure. And there's some `defonce`. I got some questions: * How does Figwheel replace references to values in each namespace,

[ClojureScript] access figwheel server from another computer

2015-08-18 Thread Jiyin Yiyong
I'm trying to scale my developing environment to two computers. But the page figwheel generated kept reaching `localhost:3449` and failed. Is there any configurations that I can tell figwheel to connect to another websocket host? -- Note that posts from new members are moderated - please be