Lurker News

Comments (144) 66 threads

BoppreH4 replies#
Amazing tool.

Feature requests: allow for more than one example.

    Input:
    {"class": "101", "students": 101}
    {"class": "201", "students": 80}
    {"class": "202", "students": 50}
    {"class": "301", "students": 120}

    Example:
    Class 101 has 101 students

    Output:
    Class 101 has 101 students
    Class 201 has 201 students
    Class 202 has 202 students
    Class 301 has 301 students
Right now the first line cannot have any ambiguity. This is fixable by reordering, but with large enough data sets I may have some ambiguity in all lines, at different places. Multiple examples would fix that.

Again, loved the tool. I can see this going very far, specially with non-technical people.

nutate1 reply#
I love how that editor "just works" 12 years after its last release. Thanks!
frik#
It looks like Java 1.1 UI from 1996.

But thanks for the suggestion, it might be useful.

createmyaccount#
Glad to hear you like it! Thanks for posting your use case as well, helps us out a lot!
username31 reply#
Class 201 has 80 students
function_seven#
Right, but if you have a thousand items, with a dozen fields each, you can't be sure the one example you've picked will resolve all ambiguities. But if you could supply four or five example lines, the chances of ambiguity drop off.
joekrill#
You could just add a "dummy" input as the first line with all unique entries. Then just remove it from the output. Am I missing something? It's a tiny bit of additional manual processing, but doesn't seem unreasonable.
Osmium1 reply#
Do you know if this is available on the new Excel for Mac too?
erichurkman#
No. The shortcut does not work, nor is the menu entry in the "Fill" menu.

It's one of many missing features.

rohanshah#
I just attended a talk but Sumit Gulwani where he demo'd FlashFill, FlashExtract and walked through their underlying architecture. His talk had much cooler demos than any I could find online but from what I can tell it seems like they provide a superset of transformy's functionality (not to detract from it, this is very cool, and I'd be curious to see how related the underlying theories are). Apparently current work by that team at Microsoft is focused on abstracting out functionality into a system called FlashMeta so that it can be applied to a bunch of domain specific problems. Overall very exciting work, from both parties.
Too1 reply#
Nice, Excel really is one of the most undervalued pieces of software, it has so many details like this and it handles almost anything you throw at it. Pivot table is another of the lesser known features that is hard to live without once you've found out that it exists.
barrkel#
Given that Excel runs many, if not most financial organizations at a practical level, I'm not sure that it's undervalued in practice.

Excel is to finance people as terminals are to developers. When getting bug reports from end users, we've even had them delivered to us as screenshots embedded in Excel files.

toyg1 reply#
Afaik, "LeBron" is his first name. The way you use it (and misspell it) is confusing, I'd suggest you replace him with a simpler alternative (Kobe Bryant? Tim Duncan? whatever).

Same for Kagawa -- the Japanese use surnames in a different way, might be simpler to replace him.

createmyaccount#
I don't follow basketball and really thought LeBron was his family name. Thanks!
toomim1 reply#
It's more accurate to call it "programming by example", which is a much older term, in common use, and actually means "creating programs by example".

http://en.wikipedia.org/wiki/Programming_by_example
Sketching means to provide a partial specification, of which details are filled in by the system. But in this case, the user is providing a full description of a single concrete example. These are different concepts.

sitkack1 reply#
Thanks for the clarification, they are similar but not the same. It looks like _sketching_ is more analogous to using Hindley-Milner for filling in gaps in an executable spec, where as Programming by Example infers code from data (examples). There is a wealth of interesting material referenced in http://web.media.mit.edu/~lieber/Your-Wish-Intro.html
lmeyerov2 replies#
Sketching is a superset of programming by example. In examples, you only get input/output pairs, which as this thread shows, infers frustratingly close but wrong programs.

In sketching, the input and output can also includes partial programs (sketches), so you can mark what you like, tweak, etc, and it fills in the rest.
Increasing usability, the fragments can be in different languages. For example, input can be simple C and some test data, and output can be CUDA GPU code or pthread mutex locking schemes.
For Graphistry.com, we believe in these techniques for ETL and sketching visualizations.
(Also, sketching normally uses machine learning or SAT/SMT solvers: types are more typically used for input hints.)

Continue this thread — 2 replies

Load more comments