544 points · by cf · 13y ago · 189 comments
Video codecs generally encode motion first ("move this rectangle left 10 pixels"), and then fix any residual errors ("apply this patch"). It is _far_ more efficient to transmit motions and residuals than an entire frame.
This demo actively resists motion encoding, since a 3d volume shifting perspective is approximated poorly by a linear shift. Almost every pixel is changing each frame, in an unpredictable manner. Youtube doesn't allow the encoder enough bits to represent the actual image well, and the result is a blurry mess with occasional flashes of clarity when the encoder transmits a keyframe (an entire picture, added to allow fast seeking).
1.) Vim bindings (less impressive accomplishment but necessary for me); 2.) fuzzy matching for files, commands, and settings (this concept really wins); 3.) having a browser as a tab(!, it makes working full screen a joy); 4.) object eval(!); 5.) and EXCELLENT autocomplete -- even in Coffeescript -- most likely a product of the eval stuff going on, but better than Sublime. Wow. GREAT WORK.
My wishlist of generic "power user" features: macros support (for ex., I'd like to set Cmd-Del to delete up one line), configurable margins, more preloaded skins, a way to easily change the color palette of a skin, and tmux / real-time collaboration equivalent.
I have gotten around certain quirks ~ add a tabset to simulate margins, also add a key binding for adding a tabset to mock the vsplit vim command
After the Nifty Minidrive failure and others, I can surely say this is the best money I've spent on Kickstarter.
* Fuzzy matching doesn't intelligently handle spaces in the search string whereas ST does (very handy for deep directory structure). * No indentation detection or quick switching / conversion between indentation schemes.
I love the work Chris and the team are doing on LT at the moment, it's looking amazing at the moment, and am feverishly awaiting the source release so some of us can chip in and help!
Congrats to the Light Table team!
I wonder how they handle updating anonymous function references--in the JVM, everything ends up being a class name (e.g. Foo$1 whatever), so even "anonymous" classes technically have an identifier to say "here's the new code". I wonder what that is for Light Table/the V8 VM.
I'd love to see this hotswap behavior built into all JS wire/debugger protocols. Maybe a W3C spec?
Light table is really awesome, and really driving the bleeding edge, but debugging/inspecting/hotswapping seems like something other editors could do as well.
Problem is that CodeMirror's docs for it are a tad confusing and I'm not even sure if it will be as flexable as Sublime/textmate .tmLanguage syntaxing. Anyone got a good resource or advice on this?
For example, I want to highlight function calls in coffeescript, such as:
obj.func '100', () ->
Where "func" is highlighted differently. I've accomplished this with a .tmLanguage with relative strife, so I am wondering how easy it will be to do things like this with CodeMirror.Once this thing goes open source I'd be happy to revamp all of the syntax highlighting for js/cs/css/stylus/html etc. should this make any sense, though technically as it uses CodeMirror I'd be revamping for them instead. Of course this would mean editing the .css files provided by LightTable though, so I'm half right.
They are more flexible, but a bit harder to get going with. Basically, you get to implement a full parser, if you want, or just a tokenizer (optionally keeping some minimal state).
I was really missing but the ability to (de-/re-)connect to a given client, which 0.4.0 provides. In my opinion LT is not just a code editor (editing features are pretty poor yet indeed) but a code experimenting platform. And there it rocks. Even in alpha, it compares pretty well with Emacs Live in terms of stability and usability.
ClojureScript, Node and JS support is a terrific move. This means I may even soon use Brackets (another nice node-webkit project) less for live JS HTML coding and debugging and live mostly in LT.
Congratulations Chris and Co!
Chris is focusing on providing new functionality; the expected stuff can and should come later.
I am expecting a lot from the forthcoming plugin system. It will be nice to be able to script LT in ClojureScript (the language in which LT is mostly developed).
But it sounds like it's proprietary software? Why do you need that if you're getting funded through Kickstarter?
Either way, it looks like a really inspiring project, and I hope we see many more like it.
LT will be open source, just want it to get a bit more stable first.
My first prototype implementation, a tree-walking interpreter in OCaml I threw together in a few days, was discouragingly slow, so a lot of work may be needed to get it to run acceptably fast; and I haven't done the GUI work to realize the potential Light-Table-land advantages yet.
The licensing situation is really unclear. The Kickstarter page says, "In order to download packaged distributions, you'll need a license". But I expect that, if it's open source, I can get a packaged distribution by saying (I'm using Arch Linux):
# pacman -S lighttableI can only hope for eventual PHP integration so it's useful to me also at work.
Use the "Vim: Toggle vim mode" command from the command tab.Also -- very, very exciting work overall -- visionary even. Kudos!
With that said, I could still use some emacs bindings :)
Any chance me, as a non-tester and interested person, gets a "fix" for that?
edit: linking 1 to 0 works so far, but please consider a migration to new version - e.g. chrome did the same some time ago ago[0].
[0] https://groups.google.com/a/chromium.org/forum/?fromgroups=#...
Looks like there was an issue trying to connect to the project. Here's what we got:
Traceback (most recent call last):
File "C:\Users\way\.lighttable\plugins\python\ltmain.py", line 12, in <module>
import ltipy
File "C:\Users\way\.lighttable\plugins\python\ltipy.py", line 181
print "no proc"
^
SyntaxError: invalid syntaxwhich looks like a typical error when running 2.7 code on 3+. Anyone else suffering from the same issue or is something messed up on my end? Running Windows 64-bit, Python 3.3, IPython 0.13.
If there was a decent way to handle dynamic evaluation though, it could certainly be added, and without too much issue I would imagine :)
Also if I am figuring out something OBO (off by one) prone sometimes I use this to double check myself: http://play.golang.org/
Yes, the Go people keep mentioning that. You might as well eat soy and pretend it's a delicious steak.
For people that have used good REPLs, from Lisp machines to iPython, it's not the same thing at all.
You lose your state, you loose context, you loose good introspection, etc etc. And if you try loading stuff that's big (several packages as dependencies etc), the compile time starts adding up too.
I know this is already done in any number of big enterprisey IDEs, but you would surely take a fresh and creative approach.
Go would be a perfect test candidate.
[1]: http://www.jacobsheehy.com/2013/03/living-in-the-future-star...
[2]: https://play.google.com/store/apps/details?id=com.aide.ui
I'm very excited with the Python integration. I'm going to try doing some web development with Light Table now. One thing that would be very handy would be support for virtualenvs or requirements files to integrate into workspaces so that we can work on projects without installing all dependancies globally.
In all seriousness, the plugin architecture will certainly allow for exactly that to happen. If you're interested in trying your hand at adding CL, I know a guy who could probably sneak you into the beta when it turns private ;)
I await my lynching. :D
Although the community seems to prefer the port of Iterate: https://github.com/nathell/clj-iter
For instance, when it comes to Python, PyCharm (http://www.jetbrains.com/pycharm/features/index.html) seems far more powerful -- it provides live debugging/breakpoints (with the ability to change attributes of running code -- even for server code), code introspection, documentation browsing, refactoring, JavaScript debugging (integrated in FireFox), VirtualEnv support, tight integration with Django/Flask for templates, etc... And it's fast
So aside from the look and feel, what does LT have to offer?
The more tools the better, but I just wonder if anybody who has used a modern robust IDE can offer a comparison?
I am really amazed with how well codemirror emulates basic vim key bindings [3], as I prefer to use ctrl-c rather than escape and I often find that vim emulators either do not support ctrl-c or do not support it well.
[1]http://www.chris-granger.com/2012/04/15/light-tables-numbers... [2]http://codemirror.net/ [3]http://codemirror.net/demo/vim.html
... all of my code is on remote machines. Either in a VM or on a server, far, far away.
Is there a way to use SFTP to open files for editing?
I realise I am an outlier. That said I can always just manually refresh the browser window on the other screen which I currently do anyway.
I dont suppose anyone else has a method of dealing with this currently?
Extensions were mentioned on the blog about a year ago (http://www.chris-granger.com/2012/04/15/light-tables-numbers...), but as far as I can tell, they're still not here yet :(
I would also pre-order now if I could.
Nice work.
Edited to add: this is the first time I've properly tried LightTable and oh my god what a gorgeous piece of software. It's glorious. Just.. yeah. Job well done! :)
Just confirmed matplotlib/pylab plotting working with Anaconda Python distribution. (To get LightTable to not use the system python, I had to go through some hoops... creating an environment.plist didn't seem to work.)
The dot-completion seems like it still needs work, but it's pretty neat to have an alternative web-based REPL front-end to the IPython kernel than just IPython Notebook.
I tried to create a ~/.MacOSX/environment.plist file per the instructions here[1], but that didn't seem to work and I haven't bothered to fiddle with it more.
[1] https://developer.apple.com/library/mac/#documentation/MacOS...
And I know it's shameless, but my LIVEditor project also allows you to "navigate to any page you want and start live modifying the it", I just made a 1-minute demo video here: http://youtu.be/t91IoDxo9aY
The UI font appears to be unchangeable. I can understand the motivation for that, but it renders pretty badly on my system.
2. fill in the dependencies in project.clj
3. open your src/core.clj (or whatever) in LT
4. start coding
LT will automatically launch a client and connect to it. In between lein will have seamlessly fetched the dependencies for you (this happens automatically each time you launch or relaunch a client).
You can do manual (C-Enter) or live (Instarepl) inline evaluation in any of your project file or even connect a new fresh repl to the client to experiment from scratch.
It is also pretty nice to have an Instarepl where you can see live changes, either in your source files or in a separate repl. Don't forget that if your paths and namespaces match you can require your namespaces at will.
The node process exited.
The node process you were connected to suddenly quit. Check the console for more information.
And the console says: Error: No protocol method IDeref.-deref defined for type nullrror: No protocol method IDeref.-deref defined for type null: at Error (<anonymous>) at cljs.core.missing_protocol (file:///Users/jk/.lighttable/js/bootstrap.js:1384:10)
Additionally, I was able to get the node repl to successfully connect and launch whenever I directed it at a JS file which was compiled from Coffeescript.
I followed this and got it working.
http://serverfault.com/questions/16355/how-to-set-global-pat...
[1] replace here means "being as powerful as", not actually converting Emacs users, most which are happy with Emacs..
It is true that both tools are mutable and that hypothetically their potential use cases will overlap entirely.
The reason this will not occur though is a consequence of one tool aiming to provide a general environment by design and the other tool aiming to provide a general environment for a specific use.
Less abstractly, consider the difference between having a factory which produces a specific item and having a factory which can produce any factory.
Possibly the specific item the factory produces is sufficient for the recipients of the specific item, and further that specific item may even make other items the recipient possessed moot.
However, the factory which can produce any factory can still (and possibly already has done so) produce the specific item.
Emacs' design (and Light Table's) is much more similar in breadth to the factory which produces other factories.
Sublime Text is more similar in scope to a factory which produces a single item.
The difference in design choice leads to Sublime Text and other text editors being comparable in features and it is also why Sublime Text can replace Emacs' text editing functions.
At the same time the design choice also leads to Emacs being a RSS client but Sublime Text not also having that functionality (or being reasonable to expect), despite the potential for the functionality to exist in both tools.
The difference between the two goals is why Light Table is much more intriguing to me than Sublime Text is despite the utility Sublime Text provides and how well executed Sublime Text is.
EDIT: Fix - sudo rm -Rf ~/.lighttable/
[I'm Light Table backer, just want to know, if it is time yet to try it out... ;) ]
So happy to finally see python support.
What is used for the javascript rendering? I assume since they are using the chrome dev tools they are embedding chromium into Lighttable?
edit: also, I've successfully nuked the app at least once by evaluating document.write (or similar) in the IDE. heh
alert('foo');
Produces 'SyntaxError: Unexpected identifier'. I'm looking forward to the kinks being ironed out.
will get fixed tomorrow.
Also my "return" is not updated automaticall.
Pleaseeeeeee