veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#ocaml

7 posts6 participants0 posts today

tori will be rewritten in another programming language. But which one? The contenders are OCaml, Haskell and Rust and the decision will be made by implementing a simplistic subset of its functionality in an experimental project called iganaq.

For more details, the reasons behind the rewrite and the candidate languages, see the announcement here:

tori.jutty.dev/updates/iganaq

Or go straight to the code, where the OCaml implementation is almost done already:

brew.bsd.cafe/tori/iganaq

tori.jutty.devExploring alternative tori implementations ~ toriThanks to some free time during the university break, I started some work on porting tori to Void and Alpine Linux. This…

Expanding Dune Package Management to the Rest of the Ecosystem: Since we published The Dune Developer Preview a lot of things have improved on the package management front. While the developer preview has demonstrated how Dune can manage dependencies in a unified workflow, we have been working on making it practical for more projects to adopt Dune to handle their package dependencies. Our goal is to slowly move from a developer preview to a mature… tarides.com/blog/2025-04-11-ex #OCaml #OCamlPlanet

OCaml Weekly News, 08 Apr 2025: * Ocsigen public meeting
* Roguetype
* Ppx_untype: An end to type errors in OCaml
* Second of Two Lessons on Polymorphic Variants: Practical Usecases
* Caqti 2.2.4 Release and Plans
* update for the magick-core-7
* gegl-0.4 _
* Dune 3.18
* QCheck 0.24
* checked_oint v0.5.0: Safe integer arithmetic for OCaml
* Outreachy December 2024 Round
* OUPS meetup april 2025
* Other OCaml News alan.petitepomme.net/cwn/2025. #OCaml #OCamlPlanet

alan.petitepomme.netOCaml Weekly News

Learning OCaml: Module Aliases: OCaml is famous for allow you to do a lot of things like modules. Like really a lot!
Advanced features like functors, aside, it’s really common to either alias
module names to something shorter or localize open Module_name to a smaller
scope:
(* module alias *)
module Printf = P

(* open module for subsequent scope *)
let open Printf in
let portfolio = List.map parse_line portfolio_lines in
List.iter (fun (ticker,… batsov.com/articles/2025/04/06 #OCaml #OCamlPlanet

Learning OCaml: Parsing Data with Scanf: In my previous article I mentioned that OCaml’s
Stdlib leaves a lot to be desire when it comes to regular
expressions. One thing I didn’t discuss back then was that
the problem is somewhat mitigated by the excellent module
Scanf, which makes it easy to parse structured data.

Image that we’re dealing with a simple investment portfolio,
where we have multiple records containing:

* Ticker symbol (e.g. AAPL)… batsov.com/articles/2025/04/06 #OCaml #OCamlPlanet

Learning OCaml: Regular Expressions: One of the things that bothered me initially in OCaml was the poor support for
working in regular expressions in the standard library.
Technically speaking, there’s no support for them at all!

What do I mean by this? Well, there’s the older Str library that provides support for regular expressions, but it’s:

* not really a part of the standard library (it’s bundled with OCaml, but not part of Stdlib)

* it… batsov.com/articles/2025/04/04 #OCaml #OCamlPlanet

🌗 編譯器:增量式與可擴展性
➤ 一門以實作為基礎、強調增量開發的編譯器課程。
okmij.org/ftp/tagless-final/Co
本文介紹了一門實用的編譯器課程,目標是建立一個能將高級程式語言編譯為 x86-64 機器碼的編譯器。課程採用增量式開發方式,從小到大逐步擴展程式語言和編譯器功能,並大量使用 tagless-final 風格,以實現代碼的可重用性。課程涵蓋了編譯器的標準內容,如語法分析、類型檢查、代碼優化和組譯,並強調測試驅動開發和版本控制等現代軟體開發實踐。此外,課程還特別關注變數的處理和屬性賦予,並使用自定義的 build 工具來支援增量式開發流程。
+ 這聽起來像是一門非常有價值的課程,能夠真正學到編譯器的實作細節,而不是停留在理論層面。
+ Tagless-final 聽起來很吸引人,感覺可以寫出非常彈性和可維護的程式碼。
#編譯器 #程式語言 #OCaml #教育

okmij.orgCompilerThe materials for the course on compilers: built incrementally and fully in tagless-final style

Making OCaml Safe for Performance Engineering: Jane Street is a trading firm that uses a variety of high-performance systems built in OCaml to provide liquidity to financial markets worldwide. Over the last couple of years, we have started developing major extensions to OCaml’s type system, with the primary goal of making OCaml a better language for writing high-performance systems. In this talk, we will attempt to provide a developer's-eye view of… youtube.com/watch/g3qd4zpm1LA? #OCaml #OCamlPlanet