News for hackers. Stuff that matters.
Re:JSweet: A transpiler from Java to TypeScript/JavaScript by chii on Tuesday December 15, 2015 @07:55PM (#10741627)
Source maps doesn't compare to actual debugging that GWT used to be able to do (via a browser plugin). GWT died the day they decided that they will no longer support that.
Re:JSweet: A transpiler from Java to TypeScript/JavaScript by cromwellian on Tuesday December 15, 2015 @08:11PM (#10741704)
It wasn't the GWT team that made this decision, it was the browser vendors. They killed the NPAPI. For good reason too, it was a major source of insecurity. PPAPI (NaCL) could not replace what was lost, because modeling JVM -> JSVM -> JVM calls requires synchronous re-entrant execution.

BTW, you don't have to debug in Chrome. If you attach IntelliJ to the JSVM, you can debug right inside your IDE, stepping over breakpoints in Java, etc. SDBG for Eclipse does the same things. (https://www.youtube.com/watch?v=icJEa5lcJaQ)

Re:JSweet: A transpiler from Java to TypeScript/JavaScript by chii on Tuesday December 15, 2015 @09:25PM (#10741962)
As far as I can tell, you cannot eval arbitrary expressions. I used to use it like a REPL back then. That's what I would miss now with source map
Re:JSweet: A transpiler from Java to TypeScript/JavaScript by cromwellian on Tuesday December 15, 2015 @09:33PM (#10741987)
It might be possible to pull this off with the new compiler because it's draft mode is a true incremental unoptimized draft, and translating an expression to call the JS is a relatively straightforward ABI.
Re:JSweet: A transpiler from Java to TypeScript/JavaScript by solomatov on Tuesday December 15, 2015 @08:51PM (#10741847)
Actually, source maps and browser based debugging are quite good. They aren't as good as Java debugger, but good enough. I am working on a large scale project which uses GWT, and we are absolutely ok with source map debugging.