Readit News logoReadit News
panglesd commented on Improvements to OCaml code editing: the basics of a refactor engine   tarides.com/blog/2025-08-... · Posted by u/nukifw
panglesd · 14 days ago
Very cool!

Does it replace identical expressions in the same scope? Like:

    let tau = 3.14 +. 3.14
becomes

    let pi = 3.14
    let tau = pi +. pi
?

EDIT: Or even crazier with function:

    let _ = (x + 1) + (y + 1)
becomes

    let plus_one a = a + 1
    let _ = (plus_one x) + (plus_one y)

(I ask this just out of curiosity. Even the "simpler" version is very impressive!)

panglesd commented on Asking LLMs to create my game Shepard's Dog   github.com/vnglst/when-ai... · Posted by u/vnglst
panglesd · 6 months ago
Interesting experiment.

Would love to see a multiplayer version of this game!

panglesd commented on Show HN: FlakeUI   github.com/tearflake/flak... · Posted by u/tearflake
anorak27 · 6 months ago
Reminds me of prezi[0]. It would be great if there is an open source version of prezi similar to reveal js.

[0] https://prezi.com/p/p6evz0gdy5dr/ux-design-tips-for-product-...

panglesd · 6 months ago
Maybe you are interested in slipshow: https://github.com/panglesd/slipshow/
panglesd commented on Show HN: Slipshow – A presentation tool not based on slides   github.com/panglesd/slips... · Posted by u/panglesd
noitpmeder · a year ago
Very interesting project! Wonder why the author chose to write much of the internals in OCaml.
panglesd · a year ago
Good question :) Many reasons, I could make a blog post about it!

First, let me start with the biggest drawback of using OCaml: it might prevent potential contributors from making contributions. That is very sad!

However, OCaml is the language I know the most. I use it at work and I'm very very satisfied with it. It's main strengths for me are its type system for maintainability, the tools around it (the lsp server, the build system dune, the autoformatter ocamlformat, ...) and the fact that it can compiles to Javascript! It also has some libraries of very high quality.

With a "single" codebase, leveraging the javascript ecosystem, I could make the compiler work as a statically linked binary, as a node script published on npm, inside a Tauri app, and inside a VSCode plugin. ("single" codebase in quote since I needed some specific code for each application, but the core logic is shared.)

For sure, the same could have been made with another language, but I knew OCaml, and knew I would have a pleasant experience using it for that.

(I even plan to rewrite the engine in OCaml. The engine was written in javascript quite quickly, at a time when I had no experience with largish projects. It is now very difficult to maintain and extend.)

panglesd commented on Show HN: Slipshow – A presentation tool not based on slides   github.com/panglesd/slips... · Posted by u/panglesd
mindcandy · a year ago
panglesd · a year ago
Markdeep seems great!

Having modifiable source inside the html is a great idea. I'll still need to have a compile workflow to add image while keeping a standalone produced html file (and some other feature such as live-preview), but I'll definitely add this as a possible workflow.

panglesd commented on Show HN: Slipshow – A presentation tool not based on slides   github.com/panglesd/slips... · Posted by u/panglesd
tomtheelder · a year ago
If I'm understanding it correctly, I think it renders your presentation to an html file that you can just open in a browser. I assume the effects and transitions are all powered by embedded JS. So it should be portable.
panglesd · a year ago
Yes, that is exactly right!

This is one important thing for me: the produced file must be self contained. Even if images are included, they are embedded in the html file.

u/panglesd

KarmaCake day100August 5, 2022View Original