Re: clojurescript source maps: chrome's expected behavior, firefox support

2014-02-17 Thread David Nolen
On Mon, Feb 17, 2014 at 3:43 AM, Ransom Williams wrote:

> First of all thanks to everyone working on clojure for making web
> development suck less.  I recently sandboxed a clojure server application,
> and the tooling, documentation, and availability of libraries are all
> awesome.
>
> Anyway, I'm starting in with a clojurescript client now and want to
> confirm one detail about The Essence of 
> Clojurescriptblog
>  post:  Chrome (32)'s console indeed links the log message to a line in
> clojurescript, but the line number is in the enable-console-print! function
> in cljs/core rather than the call to println in hello_world/core.  Is this
> the expected behavior?  I guess I ought to read up on the details of source
> maps.
>

Nothing to do with source maps, behavior of console.log which we can do
nothing about. So yes, expected.

And finally, what about firefox?  The firefox (27) developer tools have
> source map support, and the debugger pulls up hello_word/core, but unlike
> chrome, it doesn't hit breakpoints, and the log message links to a
> javascript file rather than a clojurescript file.  Any word from mozillians
> on if/when-type questions?
>

No idea, but I'm sure many other compile to JS languages are bugging them
about it :)

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


clojurescript source maps: chrome's expected behavior, firefox support

2014-02-17 Thread Ransom Williams
First of all thanks to everyone working on clojure for making web 
development suck less.  I recently sandboxed a clojure server application, 
and the tooling, documentation, and availability of libraries are all 
awesome.

Anyway, I'm starting in with a clojurescript client now and want to confirm 
one detail about The Essence of 
Clojurescriptblog
 post:  Chrome (32)'s console indeed links the log message to a line in 
clojurescript, but the line number is in the enable-console-print! function 
in cljs/core rather than the call to println in hello_world/core.  Is this 
the expected behavior?  I guess I ought to read up on the details of source 
maps.

And finally, what about firefox?  The firefox (27) developer tools have 
source map support, and the debugger pulls up hello_word/core, but unlike 
chrome, it doesn't hit breakpoints, and the log message links to a 
javascript file rather than a clojurescript file.  Any word from mozillians 
on if/when-type questions?

So yeah, mainly just stopping by to say hey and thanks and to be another 
voice out there extolling the virtues of this practical lisp.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: ClojureScript source maps

2012-03-24 Thread Sean Allen
On Sun, Jul 24, 2011 at 1:19 PM, John  wrote:

> Is there any interest in having ClojureScript generate source maps?
>
> http://code.google.com/p/closure-compiler/wiki/SourceMaps
>
> There are a couple of ways to accomplish this.
>
>
Lots of interest from me.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript source maps

2012-03-24 Thread Brandon Bloom

>
>  We could also decide to handle multi-mapping ourselves - that is write 
> the code that can produce a merged source map.
>

It seems likely (already done?) for browsers to support the X-SourceMap 
header and //@ comments for the target use case of CoffeeScript -> 
Javascript -> Minified Javascript

Also, it seems preferable to let the browser do it, so their debugger can 
operate at various levels of source translation depending on your needs.

So why bother doing it ourselves? For the Rhino environment?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript source maps

2012-03-24 Thread David Nolen
On Fri, Mar 23, 2012 at 10:51 PM, Brandon Bloom  wrote:

> > The first step would be just to get the compiler to emit an optional
> source map.
>
> That's definitely the first step! After that, there's going to need to be
> some way to serve those source maps via HTTP upon request from the browser.
>
> However, there's a first step to the first step: Getting column data. The
> reader currently seems to only produce a :line key in the metadata map.
>

Yep. This would require enhancing the Clojure reader. I don't think that's
feasible for 1.4, but probably worth pursuing for 1.5. Even without it, we
can still get line level debugging which is better than nothing and write
the code to use :column data when available.


> Could you please clarify? Do you mean for multi-level mapping?
>

Yes. Again this is really just bonus points. Priority 1 is just improving
the development experience.


> See the "Multi-level Mapping Notes" section in the v3 spec:
> https://docs.google.com/**document/d/**1U1RGAehQwRypUTovF1KRlpiOFze0b**
> -_2gc6fAH0KY0k/edit?hl=en_US&**pli=1&pli=1
>
> It seems like once they agree upon a header (as opposed to the javascript
> comment syntax) this would also be useful for providing pre-macro-expansion
> vs post-macro-expansion source maps.
>

 We could also decide to handle multi-mapping ourselves - that is write the
code that can produce a merged source map.

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript source maps

2012-03-24 Thread Brandon Bloom
> The first step would be just to get the compiler to emit an optional 
source map.

That's definitely the first step! After that, there's going to need to be 
some way to serve those source maps via HTTP upon request from the browser.

However, there's a first step to the first step: Getting column data. The 
reader currently seems to only produce a :line key in the metadata map.

> Bonus points if we can merge source maps from the ClojureScript compiler 
and Closure advanced compilation.

Could you please clarify? Do you mean for multi-level mapping?

See the "Multi-level Mapping Notes" section in the v3 spec:
https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?hl=en_US&pli=1&pli=1

It seems like once they agree upon a header (as opposed to the javascript 
comment syntax) this would also be useful for providing pre-macro-expansion 
vs post-macro-expansion source maps.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript source maps

2012-03-22 Thread David Nolen
There are no existing attempts. The first step would be just to get the
compiler to emit an optional source map. Bonus points if we can merge
source maps from the ClojureScript compiler and Closure advanced
compilation.

David

On Thu, Mar 22, 2012 at 6:05 AM, Brandon Bloom  wrote:

> SourceMap support is rapidly approaching general availability in Chrome
> and Firefox:
>
> http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/
>
> I'd love to see this happen and *may* be able to find time to help with
> implementation.
>
> Any intel on existing attempts at this?
>
>
> On Sunday, July 24, 2011 11:59:52 AM UTC-7, David Nolen wrote:
>>
>> On Sun, Jul 24, 2011 at 1:19 PM, John  wrote:
>>
>>> Is there any interest in having ClojureScript generate source maps?
>>>
>>> http://code.google.com/p/**closure-compiler/wiki/**SourceMaps
>>>
>>> There are a couple of ways to accomplish this.
>>>
>>
>> I'm sure there is a considerable amount of interest in this.
>>
>> David
>>
>
> On Sunday, July 24, 2011 11:59:52 AM UTC-7, David Nolen wrote:
>>
>> On Sun, Jul 24, 2011 at 1:19 PM, John  wrote:
>>
>>> Is there any interest in having ClojureScript generate source maps?
>>>
>>> http://code.google.com/p/**closure-compiler/wiki/**SourceMaps
>>>
>>> There are a couple of ways to accomplish this.
>>>
>>
>> I'm sure there is a considerable amount of interest in this.
>>
>> David
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript source maps

2012-03-22 Thread Brandon Bloom
SourceMap support is rapidly approaching general availability in Chrome and 
Firefox:

http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

I'd love to see this happen and *may* be able to find time to help with 
implementation.

Any intel on existing attempts at this?

On Sunday, July 24, 2011 11:59:52 AM UTC-7, David Nolen wrote:
>
> On Sun, Jul 24, 2011 at 1:19 PM, John  wrote:
>
>> Is there any interest in having ClojureScript generate source maps?
>>
>> http://code.google.com/p/closure-compiler/wiki/SourceMaps
>>
>> There are a couple of ways to accomplish this.
>>
>
> I'm sure there is a considerable amount of interest in this.
>
> David 
>

On Sunday, July 24, 2011 11:59:52 AM UTC-7, David Nolen wrote:
>
> On Sun, Jul 24, 2011 at 1:19 PM, John  wrote:
>
>> Is there any interest in having ClojureScript generate source maps?
>>
>> http://code.google.com/p/closure-compiler/wiki/SourceMaps
>>
>> There are a couple of ways to accomplish this.
>>
>
> I'm sure there is a considerable amount of interest in this.
>
> David 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ClojureScript source maps

2011-07-24 Thread David Nolen
On Sun, Jul 24, 2011 at 1:19 PM, John  wrote:

> Is there any interest in having ClojureScript generate source maps?
>
> http://code.google.com/p/closure-compiler/wiki/SourceMaps
>
> There are a couple of ways to accomplish this.
>

I'm sure there is a considerable amount of interest in this.

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

ClojureScript source maps

2011-07-24 Thread John
Is there any interest in having ClojureScript generate source maps?

http://code.google.com/p/closure-compiler/wiki/SourceMaps

There are a couple of ways to accomplish this.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en