Advertisement · 728 × 90

Posts by Andre Popp

In my experience it’s better than python/ts 😂 type system helps a looot

3 months ago 3 0 0 0
Video

I built my own JavaScript runtime in OCaml

I wanted to see how far OCaml could go against Bun and Node, and also also OCaml vs zig vs c++ in similar APIs.

So I built `sirocco`.

Uses JavaScriptCore (same engine as Bun and Safari). Event loop with libuv and it's written in OxCaml.

3 months ago 32 9 1 0

Tried an OCaml compiler branch with modular explicits (soon to be merged?) and polymorphic arguments (already merged) and it feels sooo good (where it’s needed).

3 months ago 1 0 0 0

Oh, what’s unsound about it?

4 months ago 3 0 1 0
Preview
Making html_of_jsx ~10x faster | sancho.dev A story of how static analysis helped improve performance in html_of_jsx

I made html_of_jsx a bit faster and published a blog post about it: how it's done and some won'ts!

sancho.dev/blog/making-...

4 months ago 7 3 0 0

Prague when

4 months ago 0 0 1 0

Pretty fun to program in and very well suits the problem found in AoC usually.

4 months ago 1 0 0 0

BQN

4 months ago 1 0 1 0

What book are you going through? I’ve enjoyed Software Foubdations for Coq/Rocq and would love to try Lean using some similar in format book (lots of exercises, book content is in the code comments).

7 months ago 1 0 0 0

I think mlx works pretty good with lsp to be honest. And type safe. There are some improvements could be made but overall pretty happy.

8 months ago 3 0 1 0
Advertisement
Preview
GitHub - ocaml-mlx/mlx: OCaml .mlx syntax dialect which adds JSX syntax expressions OCaml .mlx syntax dialect which adds JSX syntax expressions - ocaml-mlx/mlx

Seen ocaml-mlx/mlx? github.com/ocaml-mlx/mlx

8 months ago 3 0 1 0

Что значит отправить URL? Судя по зависимостям — там только чтобы его из строки парсить (и обратно).

11 months ago 1 0 1 0

oh, in tmux there are lots of "quality of life" improvements over screen: can zoom-in/zoom-out a pane, floating windows and many more

1 year ago 3 0 0 0

But it’s possible to resolve constraints in any order (Applicative before Traversable in the example above), no? How would that work with currying?

1 year ago 2 0 1 0

feels like this discussion happens again and again 😅 between same persons

1 year ago 1 0 0 0
Video

I'm writing a fun little text editor in C and vulkan!

Like vim, it's modal. But there is no concept of a cursor in normal mode, only a selection. You can switch the selection "granularity" with h and l, then move the selection with j and k.

And ofc there are a ton more hotkeys for selection manip.

1 year ago 13 5 1 0

ah! though the demos you share here and on twitter are cool!

1 year ago 1 0 1 0
Advertisement

presenting?

1 year ago 0 0 1 0

ok, fair, so what’s NEWLANG? and can we collaborate?

1 year ago 1 0 0 0

wait, I've max-multicasted DISTRO, it's alone ~40 votes

1 year ago 1 0 1 0

Yeah, will need a runtime.

1 year ago 0 0 1 0

yep, but actually it looks like it is made for xtensa (esp32-S), now there is esp32-C also available which is RISCV, would be interesting to see what's missing from OCaml's official RISCV support.

1 year ago 0 0 1 0

I'm pretty sure OCaml runs on esp32, well, even Python/Lua can do that...

1 year ago 0 0 1 0

DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO DISTRO

1 year ago 4 0 0 0

There are things like that — a lib of combinators (+ppx optionally) for type representation. Then functions which accept type representation and do something useful — show, compare, serde, … I remember there was a survey of these in discuss some time ago

1 year ago 1 0 0 0

oh... a very useful extension, but I'd prefer something like:

include Comparable(Self)

where Self is a "current module"

1 year ago 1 0 1 0

no, I mean what’s calling convention, how does
It pass the record fields? Not heap allocated?

1 year ago 1 0 1 0
Advertisement

only if it does so efficiently!

1 year ago 1 0 1 0

But it doesn’t detect grammar conflicts, doesn’t track source locations, …

1 year ago 1 0 1 0

Agree that it is strange, though this is how it works now — formatting is done through dune rpc (ocamllsp calls dune through rpc) for some unclear to me reasons...

1 year ago 4 0 1 0