Rizo Isrof's Avatar

Rizo Isrof

@rizo.odis.io

Lost in macro expansion https://github.com/rizo

294
Followers
289
Following
15
Posts
05.11.2023
Joined
Posts Following

Latest posts by Rizo Isrof @rizo.odis.io

A bunch of lambdas I wrote are flying to space! How cool is that?

14.03.2025 21:45 ๐Ÿ‘ 11 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Ocsigen: Developing Web and mobile applications in OCaml
Ocsigen: Developing Web and mobile applications in OCaml YouTube video by Ocsigen

It's a very comprehensive framework that solves many problems elegantly and completely. It also has a large API surface and sacrifices simplicity for power. More info here: youtu.be/9FGaKfA5xR8?...

If you're new to OCaml maybe start with something simpler and ad-hoc like Dream/Melange.

18.01.2025 16:59 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Would be great to fix this upstream and specialise global compare-like functions for ints at some point!

07.12.2024 21:30 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I, personally, also find them super convenient. But, when introducing newcomers to OCaml from scratch, I think presenting things gradually works best. Really depends on the context, but for someone just exploring the language there's a complexity budget they're willing to pay.

07.12.2024 21:27 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

One aspect I find important for beginners is just to ignore some problems and get things done quickly :)

Worrying about the edge cases/performance of poly compare, sexp and ppx is a recipe for frustration.

Base is definitely a better default for production code, of course!

07.12.2024 15:45 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

It's a devising opinion, but I would recommend sticking to the standard library when learning the language. For slightly fancier data structures consider Containers, which is fairly lightweight and unopinionated. Base is very well-designed but does not focus on simplicity.

07.12.2024 10:31 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Something like this should work and give you a sorted set of tuples.

07.12.2024 00:12 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 4 ๐Ÿ“Œ 0

Agreed.. But also, if the error was presented in the reverse order it would make so much more sense.

02.12.2024 20:58 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

I had an extra slide to briefly summarise the library landscape:

27.11.2024 17:19 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Sure: lwd is low-level and focuses on managing entire documents/graphs; react/note is a more classical form of continuous FRP (with signals and events); bonsai works with state machines/VDOM. None allow resource management synced with the lifetime of the views. Helix tries to offer a very simple API

27.11.2024 17:16 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Let Signals in OCaml - Rizo Isrof - FUN OCaml 2024
Let Signals in OCaml - Rizo Isrof - FUN OCaml 2024 YouTube video by FUN OCaml

My talk from FUN OCaml on modern web development with signals is now online! But what does modern mean? And what is a signal anyway?

youtu.be/34bceAuSRXE?...

25.11.2024 11:43 ๐Ÿ‘ 13 ๐Ÿ” 5 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
(or) operator for 'a option ยท Issue #12682 ยท ocaml/ocaml @rizo proposed to use currently-not-defined (or) operator as an alternative to Option.value https://discuss.ocaml.org/t/does-the-or-keyword-have-meaning-in-ocaml/13276/5 The original definition let...

Some discussion that may be helpful: github.com/ocaml/ocaml/...

24.11.2024 11:33 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Typical OCaml is much more practical than typical Haskell. The ecosystem values simplicity and ease of maintenance. The community is small but dedicated and helpful. The libraries are fewer but have excellent quality. Dune is a great build system. OCaml 5 removed the need for concurrency monads!

21.11.2024 23:18 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

This was a lovely read. Thanks for explaining it all clearly! I do wish we had value-level dead code elimination. I saw an initial effort of that some time ago which looked promising.

21.11.2024 00:18 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

This os looking great! What's the plan for customising the elements/components? Is it allowing users to pass custom css class names as attributes to add/override styles?

17.11.2024 11:50 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0