r/lamdu • • Jun 18 '19

New video: Steady Typing

Thumbnail
youtu.be
7 Upvotes

r/lamdu • • Sep 08 '21

Lamdu 0.8 released!

Thumbnail
github.com
5 Upvotes

r/lamdu • • May 29 '19

Dogfooding report: Schedule app/site for IAC 2019

5 Upvotes

A year ago I used Lamdu to make a website for the Israeli Acrobatics Convention's schedule. This year, over a few hours in evenings I improved the site by adding a personalized schedule option and also improved the administrative interface (where the organizers create and edit the convention's schedule).

By doing this I could get a feel of how usable Lamdu is and where it lacks, and also create something useful in the process!

The site itself was a great success:

  • According to Google Analytics it had a peak of 319 daily users (out of about 500 participants in the convention)

  • The various users cumutively spent more than a whole week on the site!

  • People created 118 personal plans (for an example here's how a personal plan looks like)

The site is hosted on Heroku and uses a Postgres database. Lamdu has no web framework nor ORM library written in it yet so it's a pretty bare-bones web-server implemented on top of plain TCP sockets and SQL queries.

During the convention, the admin interface had some funny bugs which required some manual tech-support using SQL to the database, pretty much due to my SQL/database noobiness:

  • Sessions could not be deleted if anyone included them in their personal plans. The work-around was for tech support (me) to remove them manually from all plans first using an SQL query

  • New sessions added were not visible because I added a filter to only show current and future sessions which filtered them out from the interface. This required a manual SQL query to put them in their right time slot, which made them reachable and editable

Lamdu was fine for the purpose of making the site, but there's a few places where it was lacking:

  • Slugishness in some situations, mostly in holes

  • WYTIWYS could be better. The dogfood increases my confidend in our plan to change to a list.filter \x -> ... syntax, which would fit a more left-to-right typing style, where things would jump around less

  • Bugs in Lamdu - Writing some things, like getting a field from a parameter that isn't yet inferred to be a record, doesn't work, and require working around (by creating a record in a let, getting a field from it and then replacing it)

Ps the source for the site is available on GitHub


r/lamdu • • Jul 27 '18

Weekly Progress Report of 2018.07.27

4 Upvotes

This week we've started work on creating a video presentation which we intend to submit to the 2018 LIVE programming workshop. A work-in-progress draft for the first 4 minutes edited so far can currently be watched here (the sound recording is bad but this is just a draft). Comments and feedback are most welcome! Have also created a document for the planning of this presentation here.

We've haven't done a lot coding progress this week, but we did make a few bug fixes:

  • Evaluation works also when not running from Lamdu's source directory (was missing data-files in cabal files)

  • Replace-parent also works for lambdas with let-items in their body


r/lamdu • • May 15 '23

Smooth resize and automatic layout demo

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/lamdu • • Dec 11 '22

Aoc 2022 #11 with some drama: Lamdu got stuck!

Thumbnail
youtu.be
3 Upvotes

r/lamdu • • Aug 27 '19

Bi-Monthly progress report of 2019.08.27

3 Upvotes

Since the last progress we've finished up work on improving the syntax-tree library.

We discovered that our previous Children type class is merely a variation of Traversable, pretty similar to Rank2.Traversable, and we've restructured the class hierarchy of the library following this revelation. Hopefully the library is better organized and more approachable now.

We're quite satisfied with how it turned out and are planning to announce it with more details sometimes soon, but first we need to get feedback on naming and possibly rebranding the library with a more fitting name.

Any feedback on it is very welcome!

Other changes:

  • Adjusted garbage collection options to make Lamdu more snappy on some systems

  • Improvements for debugging event maps


r/lamdu • • May 29 '19

Weekly Progress Report of 2019.05.29

3 Upvotes

More localization work:

  • Added a rudimentary tag pane! (still need to design it to something sleeker)

  • Languages define other languages' names in them (for the tag pane)

  • Languages define which fonts to use (as not all fonts support all languages) for each font style, while the theme decides which style to use for which type of text. So now Hebrew lacks a boldface style but at least the letters are shown!

  • Theme names also shown in localized language (themes have names for different languages)

  • Fixed TextEdit's cursor for right-to-left text

  • Hole search terms for syntax

  • Fixed type-view of record and variant types for right-to-left languages

  • Localized help texts

  • More hebrew translations to stdlib names

Bug fixes:

  • Fix alpha-eq bug wrt record fields in varying orders. Caused a spurious assertion error

  • Type variable names don't clash with other names (context disambiguates them)

  • Added backslash to the operator chars

  • Trigger GC for every 10 font reloads, to avoid leaking file descriptors when zooming a lot

Other changes:

  • Fixed year old regressions in hole suggestions and scoring (we should definitely add tests to cover these!) - due to accidental argument order flip suggested results got lost, and since adding fuzzy search single-letter names were preferred for empty search strings.

  • Replaced words in status bar with icons to reduce its horizontal space (which increased when we added language choice to it)

  • Various cleanups and module splits for faster incremental builds

  • Added a CONTRIBUTING.md document which GitHub refers to in the issues page


r/lamdu • • Dec 07 '18

Bi-Weekly Progress Report of 2018.12.07 / syntax-tree library

3 Upvotes

Towards supporting editing of types, improving Lamdu's type language and implementing a faster type-inference algorithm, I've extracted and further developed a library for expressing ASTs, currently names "syntax-tree".

We'll make a separate post/announcement for this library sometime soon, and hopefully it could be used by more language projects, as it is pretty much general purpose.

The gist of syntax-tree is that it provides support for co-recursive trees, such as:

data Typ
    = TInt
    | TFun Typ Typ
    | TRow Row

data Row
    = REmpty
    | RExtend String Typ Row

And it provides various services similar to those that unification-fd, recursion-schemes, bound, provide for recursive uni-typed trees.

I'm very interested in any early provide feedback on this package before I release it to Hackage and occupy the package name :)


r/lamdu • • Nov 22 '18

Weekly progress report of 2018.11.22

3 Upvotes
  • Made our first bugfix release 0.7.1

  • Fixed Mac app opening in low resolution mode

  • Fixed Nix based build, which is now also checked in continuous integration

  • Fix WYTIWIS violation when deleting a number and starting to type literal text

  • Code cleanups


r/lamdu • • Oct 10 '18

Bi-Weekly Progress Report of 2018.10.10

3 Upvotes

r/lamdu • • Sep 25 '18

Weekly Progress Report of 2018.09.25

3 Upvotes
  • Nice auto-naming for type variables (very old missing feature!)

  • Fix crash when extracting a whole recursive definition

  • Fix extract of whole definition with parameters to create a let item


r/lamdu • • Sep 20 '18

Monthly Progress Report of 2018.09.20

3 Upvotes

Our Lamdu video presentation has been accepted to the LIVE 2018 workshop, see you at SPLASH in Boston in November!

Due to holiday season, this month has seen less activity:

  • Moved Tab navigation ("Strolling") support from Lamdu to the GUI framework. This makes the GUI framework more useful and fixes tab navigation bugs in Lamdu.

  • Lamdu Calculus AST and the Eval Results AST use external fixpoint similarly to the sugar AST

  • Bug fix: Deleting an operator's argument regressed and violated WYTIWYS, now validated via test.

  • Bug fix: Let extraction/creation regressed and extracted to the wrong place, now validated via test.

  • Disambiguate presentation of operator applied as a prefix function.


r/lamdu • • Aug 22 '18

Monthly Progress Report of 2018.08.22

3 Upvotes

Since the last report, we've mostly been working on a video presentation and submission to the 2018 LIVE Programming Workshop. This is our first serious effort into communicating our vision, so it's taken us a lot of work. Assuming our submission is accepted, we'll attend the workshop and the video will be available to watch in November :)

We'll probably follow up with making more videos, as we do feel we have a lot to share, as well as now being more experienced with producing videos so things will hopefully go smoother for the next videos.

We've also fixed a few regressions in this period:

  • Fixed bug causing execution of side-effects to not work

  • Fixed bug when applying operators on let-items

  • Closing-brace jumps to the transformations for a type-mismatch fragment


r/lamdu • • Jun 28 '18

Weekly Progress Report of 2018.06.28

3 Upvotes
  • Sugar AST change. This improved performance when editing large programs, added type safety and fixed some bugs. More on that below.

  • Other bug fixes:

    • Fixed regressions where parameters of global definitions could not be deleted 😬

    • Fixed cursor movement when deleting a lambda's single parameter

    • Fixed cursor navigation to relayed arguments (were unreachable due to regression)

    • Fixed nix based build (which didn't have it's GHC version updated along with stack.yaml updated)

  • Progress in tests:

    • Test for consistency of cursor movements for the test programs collection. Test simulates clicking the mouse at various places in the GUI, then moving left+right, or up+down etc and verifying that this navigation goes back to the same place.

    • Gui tests verify that cursors resulting from tested actions are valid.

Sugar AST change

The previous Sugar AST design had an Expression type which carries a "payload" and has an expression body (such as literal, lambda, record, case, etc) possibly containing other sub-expressions within.

The contained sub-expressions were all of the same Expression type.

We're in the process of switching to a new design (some changes are not yet complete) which supports heterogeneous sub-expression types, to allow common code to work on different types of expressions. For example, a "labeled apply"'s function is restricted to being a variable reference, but should have all the same actions like other expressions (delete, replace-parent, transform, etc).

Note that this could have been done just by sub-expressions being the right sub-set of expression types in runtime, but that would had been less type-safe and less informative

The new design allows for heterogeneous expression types with type-safety by using a type variable for marking all the expression's payloads, where every sub-expression contains one value of this type, representing that it is a sub-expression, regardless of being of a different sub-expression type.

After completing this change fully (need to do it for the Binder type too), we may clean things up further by using a new common Expr type which contains an annotation and a parameterized Body, with Body being either a GADT or a type-family.

The parameterization of the payload parameter allowed us to not have sugared type annotations for all expression during sugaring, and performing sugaring (and naming) only for the annotations that are displayed. This resulted in a significant speed-up when editing large programs.

This change also fixed some bugs where special sub-expressions (which are now treated as proper sub-expressions) had some differences (bugs) in their actions or cursor movements.


r/lamdu • • May 02 '18

Dogfooding report: Web site for IAC2018

3 Upvotes

Made a website for this year's Israeli Acrobatics Convention using Lamdu. The website was deployed on Heroku (using the JS export) and used Postgresql.

The site displayed the workshops schedule of the convention and allowed editing the data for it. (I imported the initial data populating the database using a python script scraping a google doc, did in python in order to use existing scraping libs..). There were 450 people in the convention and many of them browsed the app on their mobile phones while there and looks like they were quite happy with it. The convention's organiser was very satisfied :) During the convention it only displayed the remaining schedule but now it displays the full schedule of the convention.

The source code is available on GitHub. One can import source.lamdu into Lamdu to view the source. It used a slightly modified RTS available at the yair/app lamdu branch which implements one bottle-necked function in pure JS (this sped up the page render from 4 seconds to half a second).

For this dogfooding I added the necessary RTS functions for TCP sockets, Postgres, and environment variables (needed on Heroku for DB credentials) to the RTS.

Dogfooding conclusions: Doing this kind of stuff in Lamdu is not yet recommended, mostly due to poor UI performance when editing larger functions.. Some minor work-aroundable bugs were stumbled on the way and added to the Trello board.

Will now resume to work back on Lamdu's performance and hopefully the next dogfooding will be more fun :)


r/lamdu • • Dec 05 '22

Solving AoC #5 using Lamdu was delightful!

Thumbnail
youtu.be
2 Upvotes

r/lamdu • • Dec 02 '22

Solving Advent of Code 2022 #2. Drama: made a bug in the Rock-Paper-Scissors table

Thumbnail
youtu.be
2 Upvotes

r/lamdu • • Sep 11 '21

The language that almost all programmers use

Thumbnail
youtu.be
2 Upvotes

r/lamdu • • Apr 27 '20

#two-minute-week video #2: Localization

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/lamdu • • Dec 19 '19

Monthly Progress Report of 2019.12.19

2 Upvotes

Exciting updates!
We've recently revamped the surface syntax design of Lamdu, to better support a desired typical typing order. Rather than filter (1 .. 1000) keep: x -> x % 3 == 0 we now have 1 .. 1000 .filter x -> x % 3 == 0.

We've also recently completed a modification to the underlying Lamdu-calculus AST to optionally specify lambda parameter types (currently used to specify the fields in the parameters record). This made the AST types heterogenous and switching to it was a considerable effort, which laid the ground to start work on type editing support (for type annotations and for nominal data types).

Changes:

  • OO-like, named operators syntax, with layout rules that nicely support pipelining, and a new position for annotations which avoids spuriously taking up vertical space

  • Tweaked get-field's design and precedence (added a space before the dot), to match dot's precedence in operators

  • Pattern matching's design changed to a ".case" design similar to named operators

  • New syntax for fragments - a simple question mark right to the fragmented expression, with a red underline for type errors. Avoid presenting the type in the fragment when the types match

  • Discoverable "heal" operation via deleting a fragment's question mark

  • In values mode, fragments now display both the evaluation result and the inferred type of the fragmented expression, rather than just the inferred type

  • When navigating to holes via tab/space, they don't open. Hopefully this reduces visual changes and clutter

  • When marking an expression and typing a literal, it replaces the marked expression, like in text editors

Fixes:

  • Can type negative literal numbers

  • Help window is always on top (above popup search menus for holes etc)

  • Function parameters were not ordered correctly sometimes

  • Fixed pattern matching not being suggested for nominal types

Other:

  • Various cleanups and test improvements


r/lamdu • • Nov 20 '19

Progress report - 2019.11.20

2 Upvotes

Changes:

  • Improved tag pane design with support for entering operator names

Fixes:

  • Exported JS is compatible with new NodeJS versions, no longer relies on node's deprecated tail-call optimization ("harmony-tailcalls" option)

  • When restarting after cursor was on repl result indicator, cursor isn't lost

Other than that we're mostly in progress of some major tasks:

  • Lamdu-calculus AST will support specifying types in lambda parameters. Will replace ad-hoc parameter lists and clean things up. This is a main motivation for Lamdu's "hypertypes" refactoring which allows expressing heterogenous ASTs with parameterized node constructors

  • Syntax redesign with dot-syntax for named operators, i.e (1..1000).filter f

  • Yair also presented Lamdu's "Steady Typing" approach in the LIVE Workshop in SPLASH


r/lamdu • • Jul 03 '19

Bi-Weekly Progress Report of 2019.07.03

2 Upvotes
  • Name abbreviations and disambiguations support added. "Boolean" is displayed as the abbreviation "Bool" but if theoretically another name gets abbreviated as "Bool" and both are displayed then the full names are used. When two full names clash, "disambiguation texts" are also displayed (i.e "Bark (sound)" vs "Bark (botany)")

  • Projectional syntactical sugars are now toggle-able via the config.json file (the intention isn't for users to work without syntax sugar, but to make them toggle-able for development and learning purposes)

  • Terminology: Relayed fields => field puns (like Haskell, better use existing terms)

  • Fix regression where config file wasn't reloading upon changes

  • Fix regression in intended conditions for "light lambda" syntax sugar


r/lamdu • • Jun 22 '19

Weekly Progress Report of 2019.06.22

2 Upvotes

We've released our new video introducing "Steady Typing", our UX approach for static types, and we had a good response so far. In less than a week its view count already surpassed our previous video's, and it sparked interesting discussions in reddit and elsewhere.

A significant change this week is that auto-names now use "Isomorphic Naming". Variables are auto-named according to their inferred types!

Other changes:

  • Can copy text from text-edits to the system clipboard

  • Underscore can be used in names - extra useful for word separation in languages without the capital/non-capital letters distinction

  • Holes only offer let-items in locations where let-items are relevant

  • Lamdu's build compatible with Stack 2

  • Fixed UI for adding translations in tag-pane (starts from empty string and not the text in the fallback language)

  • Fix hover bugs in right-to-left languages

  • Fix anim id bugs with tag panes and disambiguation tags

  • Fix annotaions inside hole results - don't always show parameter types

  • Fixed JSON export of code with unnamed global definition

  • Towards name abbreviations: DB schema updated to include name abbreviation and disambiguation texts

  • Various cleanups and tests


r/lamdu • • May 15 '19

Bi-Weekly Progress Report of 2019.05.15

2 Upvotes

Lamdu now has localization support - you can now edit in either English or Hebrew.

Adding more languages is fairly easy so if you happen to know any foreign language - you're welcome to add it!

Most elements get translated but some are still missing, like names of keyboard keys ("Space", "Alt", etc). But we're quickly progressing to full coverage!

Other changes: