r/programming • • Jan 08 '14

Light Table becomes open source

http://www.chris-granger.com/2014/01/07/light-table-is-open-source/
1.1k Upvotes

354 comments sorted by

View all comments

13

u/lbmouse Jan 08 '14

Looks like this is primarily for the Clojure dialect of Lisp? The site does mention, "Light Table's general editor capabilities will work with most languages out there,..." Does anyone know how integration of C++ or C# works?

17

u/Tuna-Fish2 Jan 08 '14

C++ and C# can be added as a plugin, and based on the code for the python plugin, doing the work for that is roughly a weekend project if you use existing tools as base.

However, they are not the ideal candidates for languages to use with Light Table. The philosophy and driving force behind light table is roughly: "Current IDEs provide good tooling for static languages. However, the common tools they provide do not work that well with dynamic languages, and they do not contain the kind of tools that are made possible by dynamic languages but which do not work well with static languages. Let's make an IDE designed from the start for dynamic languages."

Many of the innovations of Light Table are flatly unusable in C++, and would be kind of creaky and problematic in C#. It would be right at home for Ruby or Scheme or languages like that.

12

u/jamiiecb Jan 08 '14

I don't disagree ... but the troll in me wants to point out http://www.mono-project.com/CsharpRepl :)

I actually spent a while this summer getting the C# repl working inside Unity3D. The built-in code reloading in Unity3D is pretty crude - it serialises all of your state, reloads all the code and then deserialises the state, usually getting it wrong in the process. The repl was creaky and problematic, but it was still a big improvement over not having a repl.

2

u/tenpn Jan 08 '14

oh cool. is this project public somewhere?

3

u/jamiiecb Jan 08 '14

The C# repl? I didn't keep it but it was mostly just a matter of backporting libraries from .NET 4.0 until the repl code would build in the prehistoric version of .NET that Unity3D ships with.

I was close to getting clojure-clr working the same way, which would have been much nicer, but I ran out of hack-day :)

2

u/tenpn Jan 08 '14

oh man clojure would have been sweet.

→ More replies (2)

3

u/yogthos Jan 08 '14

A standalone REPL isn't very interesting when it comes to doing actual work. The appeal is in having REPL integration with the editor, where you can write your code in the IDE and evaluate it in the context of the application that you're building.

4

u/jamiiecb Jan 08 '14

Sure, but Light Table does that by sending the code to a repl.

5

u/yogthos Jan 08 '14

The point is that it actually does that and the workflow works very well.

→ More replies (4)

8

u/drb226 Jan 08 '14

What, exactly, are some of the "tools that are made possible by dynamic languages but which do not work well with static languages," as exemplified by Light Table currently?

→ More replies (8)

3

u/The_Doculope Jan 09 '14

What about a language like Haskell? It's as static as they come, but most development is done using the REPL rather than a traditional compile-write cycle. Would it be suitable for Light Table, or is there something about the semantics of dynamic languages that it can take advantage of?

1

u/generic-identity Jan 09 '14

If you're working with different languages (static and dynamic), would you then want to switch between different editors for them? I wouldn't.