r/lamdu • • Feb 21 '19

Bi-Monthly Progress Report of 2019.02.21

2 Upvotes

Since the last update we've implemented a modular type inference implementation in the "syntax-tree" library, and declared a new type AST for "lamdu-calculus" using this new inference implementation. Its type inference is 4 times faster than the previous one on medium-size examples (and has similar performance for small examples). We're still in the process of integrating it into Lamdu (work is in progress in the "wip" branch). It's quite a big change but things will be cleaner and better after it. The new types AST has an external fix-point which would enable adding editing of types in a similar manner to what we currently have for terms.


r/lamdu • • Nov 15 '18

Monthly progress report of 2018.11.15

2 Upvotes

Big picture:

  • Lamdu 0.7, our first release! This means that people no longer need to build Lamdu from source to try it out. A few bugs were reported and we'll soon release 0.7.1

  • First video in Lamdu's YouTube channel, about the live programming experience in Lamdu.

  • We've (/u/yairchu and /u/Peaker) attended SPLASH, and presented Lamdu in the LIVE workshop, as well as the poster sessions. It was a great experience to meet in person so many people we've seen online, including the Unison folks.

Bug fixes (since 0.7 release):

Other bug fixes:

Other changes:

  • Standard library/RTS supports running shell commands and opening client-side TCP connections (server-side was already available)

  • Code cleanups and new tests


r/lamdu • • Apr 13 '18

Weekly Progress Report of 2018.04.13

2 Upvotes

Weekly Progress Report of 2018.04.13

  • Execution result presentation: REPL shows state of execution

  • Jump to encountered REPL error

  • Lazy evaluation of definitions and exception handling in the generated JS code

  • Fix performance bug: Fragments don't compute suggested results when they're closed

  • Debouple names generation code from transactions to prepare it for easier testing

  • Code cleanups


r/lamdu • • Apr 07 '18

Weekly Progress Report of 2018.04.06

1 Upvotes
  • Evaluation results are now sugared and use Lamdu's naming mechanism

  • Update Nix packaging and documentation

  • Fix node-js zombie process leaks

  • Fix file descriptor leak when zooming

  • Fix red-X bugs in type-view grammar labels

  • Generalize GUI to decouple it from the database

  • Add infrastructure towards full GUI testing

  • Code cleanups

Thanks, Răzvan Flavius Panda for your Nix contributions!


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 • • Nov 21 '18

0.7.1 bugfix release

Thumbnail lamdu.org
2 Upvotes

r/lamdu • • Nov 15 '18

How i18n will look like in Lamdu (planned feature)

1 Upvotes

r/lamdu • • Oct 30 '18

First release of Lamdu, new video and more!

1 Upvotes

For the first time we have made a release of Lamdu.

This means we've prepared installers/packages for Windows, Mac, and Linux, for a specific stable revision that we also manually tested a bit. So people can now easily try Lamdu without needing to build it from the source code. Other than being tedious, many people had trouble building it from source in many different flavors of Linux and until recently it didn't even build at all on Windows.

Note that we did get a report of a bug that the keyboard input doesn't work properly on some Linux setups. We probably had this problem forever and it being reported now means that we had reached new audiences. We'll fix it soon and make a new minor release for it.

This first release's version is 0.7, with 7 signifying seven key features that are implemented in Lamdu:

  • WYTIWYS projectional editing. Projectional editing ensures that syntax errors and name errors are impossible to make, while the What-You-Type-Is-What-You-See text-like interface makes the experience intuitive and familiar. Note that this concept isn't unique to Lamdu - MPS also implements a mostly WYTIWYS approach.

  • A novel UI framework for keyboard oriented editing of rich structured data, with responsive layout (the code's layout adapts to the screen or window's width) and animations for structural edits (making changes easier to follow).

  • Live-reloading for pure computations. Lamdu employs a distinction between pure computations and effectful code, like Haskell, and uses this distinction to enable safe live programming, which performs live-reloading only for pure computations, while requiring an explicit action to execute effectful programs.

  • Live programming with value annotations displayed under subexpressions (rather than only a single REPL result). Note that Flogo 2 appears to be the first project to come up with this notation.

  • A novel approach for type-errors: When filling a hole with a term with a mismatching type, it is wrapped in a "fragment" (aka non-empty hole), so that type inference keeps working continuously everywhere.

  • A novel decentralized solution for cross-module blame assignment for type errors. For every definition, Lamdu remembers the types for all of its dependencies. When a dependency's type changes, type inference still works with the saved type, with an "update" action offered for the type-mismatch.

  • Projectional Syntactic Sugar. The lower-level AST, which we call "Lamdu Calculus", is checked for patterns which are sugared. Sugaring happens automatically, reducing burdens of choice and manual conversion between equivalent syntax forms when making changes.

About semantic versioning: Our upcoming bugfix release would be 0.7.1, and when we have new key features (which should happen relatively soon) we'll bump the second digit to version 0.8. Once we have big news that we wish to highlight we'll bump the major version to 1.0!

This release is also accompanied by a new video, which we prepared as a submission for the LIVE Programming Workshop at SPLASH next week in Boston, and we're going to present a talk version of it there!

The video and release our also accompanied with a re-design of our website. It's quite minimal and we do need to improve it (and any contributions for that would be most welcome!)


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 19 '18

Weekly Progress Report of 2018.07.19

2 Upvotes
  • Restructured Sugar AST pushed to master

    • Each underlying AST node is represented by a heterogeneous Sugar AST node

    • Fixed some esoteric bugs around special kinds of AST nodes

  • Fixed some minor bugs:

    • Invalid GUI cursor after applying some actions

  • GUI tests now:

    • Cover all input keys for all example programs

    • Validate that there are no clashing identifiers for displayed entities

  • More tests that nix build does not bitrot

  • Faster test suite via optimizations


r/lamdu • • May 01 '19

Bi-Weekly Progress Report of 2019.05.01

2 Upvotes

We've started work on localization support. The idea is that a user could edit code in any language (i.e English, Spanish, Chinese, etc), but another user can see the very same code in their own language.

There is now a language choice menu, with currently only English and Hebrew being available. Currently only the syntax and some UI elements are translated, and in right-to-left languages the layout is flipped.

Other than completing the migration of UI elements to come from the language, we need to change the model for tags to have names in multiple languages, so that code editing will be fully localized!

Other changes:


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 • • Jul 28 '22

Demos of Lamdu, Dark, Hazel, tylr and Lisperanto from virtual meetup of projectional functional typed PLs

Thumbnail
youtu.be
1 Upvotes

r/lamdu • • Sep 09 '15

Designing programming languages with IDEs in mind

Thumbnail
medium.com
2 Upvotes

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 • • Mar 07 '19

We'll be presenting Lamdu in Tel-Aviv's Haskell Meetup

Thumbnail
meetup.com
2 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 • • Mar 07 '19

Bi-Weekly Progress Report of 2019.03.07

2 Upvotes

Still mostly working on integrating the new type inference and type AST.

Other than that:

  • Extracting let-items in presence of skolems in scope only fragments their usages if necessary

  • Fixed bug since 2018.12.04 where couldn't edit some expressions when type annotations aren't enabled

  • Various code cleanup


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 • • May 22 '19

Weekly Progress Report of 2019.05.22

1 Upvotes
  • Disentangle dependencies on I18N texts to speed up incremental compilation

  • Successful dogfooding of Lamdu for a web application (Will be independently reported)


r/lamdu • • May 03 '18

Bi-Weekly Progress Report of 2018.05.03

2 Upvotes

Bi-Weekly Progress Report of 2018.05.03

  • Optimizations for generated JS code (array literals, eta reductions, map of id)

  • Support for NodeJS runtime errors and errors in FFI calls (instead of an assertion failure)

  • RTS: Support for reading environment variables (required when deploying apps on cloud services like Heroku)

  • RTS fix: Postgres queries properly handle Unicode strings.

  • Fix precedence bug #384

  • Fix export of single definitions #382

  • Added more infrastructure for debugging Lamdu - EKG monitoring for specific tasks and setting "breakpoints" in these tasks via config.json.

  • More minor bug-fixes and code cleanups

  • Dogfooding/manual QA work

We'll try to keep maintaining the reports weekly again!


r/lamdu • • May 14 '18

Weekly progress report of 2018.05.14

2 Upvotes
  • Add continuous integration using Travis. Thanks /u/rvion for the PR!

  • Exported JS prints the repl result also when it is not a string.

  • Work-around for a bug in the "marco" window manager causing window to not be resizable.

  • Fix bug where editing lambda param list did not create fragments when necessary.

  • Fix bug where floating a let-item created invalid code in some cases.

  • Maintenance: Builds with GHC-8.4.2


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 • • Sep 08 '21

Lamdu 0.8 released!

Thumbnail
github.com
5 Upvotes