Hacker Newsnew | past | comments | ask | show | jobs | submit | username3's commentslogin

> I wrote up a detailed blog post about tail call optimization in Elixir/Erlang and its performance. The TLDR; sort of is that none tail call optimized recursive functions (body-recursive) can be faster and more memory efficient than TCO functions. This is something that I never thought before, that TCO is always faster seems to be a common misconception. My example is also not contrived - it’s an implementation of map.

https://pragtob.wordpress.com/2016/06/16/tail-call-optimizat...


You should see what Elixir is doing with Tidewave and usage rules.

https://www.zachdaniel.dev/p/usage-rules-leveling-the-playin...


This repository from the Ash book gives you an example of what it can do.

Model.

https://github.com/sevenseacat/tunez/tree/end-of-chapter-10/...

View.

https://github.com/sevenseacat/tunez/tree/end-of-chapter-10/...


Add an attribute to a model, run `mix ash.codegen`, it creates migrations for you.

Ash can do paging for you.

You don’t need to create a context file with CRUD functions for your Repo.

See the example repository for the Ash book.

https://github.com/sevenseacat/tunez/tree/end-of-chapter-10


Would anyone care if he just used a shorter bat that didn’t get thinner?


Are there any terminal UI frameworks for the web? I want to create web apps that only use keyboard shortcuts.


Not exactly what you're looking for, but there's Shell in a Box (see https://github.com/shellinabox/shellinabox), that can create a terminal on a web page, and expose an actual terminal application running on a server.

One thing that is certainly doable is also to use a standard TUI framework in another language (there are many of them, e.g. https://github.com/magiblot/tvision for C++, https://github.com/charmbracelet/bubbletea for Go, etc.), compile it to WASM, and find how to bridge the WASM output to the browser (I've seen this: https://github.com/cryptool-org/wasm-webterm, but never tried it).


Shellinabox doesn’t seem to have a lot of development. Try ttyd instead

https://github.com/tsl0922/ttyd


Looks nice, thanks for sharing!


dotzoltanbalazsdotcom.com is unregistered.

zoltanbalazs.com was registered in 2021.


Oops! Mistake on my part. Updated above.

Sadly, doesn't look like there's anything hosted on zoltanbalazs.com


Do you plan to add custom labels?

Let’s say we ask a question to a politician and they ignore it.

Can we label the question as unanswered, so clients will remind users the question is unanswered?


Custom labels are in the v1 yes.


What does Erlang use?



How does this compare to Phoenix LiveView websocket sessions?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: