I had some time to waste so I implemented yesterday's #AdventOfCode task in #Racket, #Python and #Ocaml. Here's a *SUBJECTIVE* summary (heavily biased by my experience in the languages):
– Time to working solution: Python (shortest), Racket, Ocaml (longest)
– Fun: Racket (most), Ocaml, Python (still funner than any language other than those three)
– Code beauty: Ocaml (prettiest), Racket and Python (tied for second place)
(cont'd)
#OCaml #Python #racket #AdventOfCode
I'm surprised at how little activity there is on the #rescript tag even relative to other small languages like Idris.
More of you should try #ReScript! It's a delightful little #javascript-compiling #functional #OCaml for those of us who like C-like visible delimiting characters!
#OCaml #functional #JavaScript #rescript
@nomadbynature
Q1: I want to build a small app that would generate a static site that shows my ebook library (basic information, searching, filtering). But I want to do it in #ocaml, and I need to start with a good ebook library.
So, #ocaml ebook library, but it's not a goal in itself.
Q2: 😱 You broke the system 🙂
Chciałem sobie coś pokodować (w #ocaml.u, a jakże), to przyszedł syn i przekonał mnie, że lepiej, żeby on pograł teraz w Cywilizację na moim komputerze. 🤷
Ale to nic, mam książkę Peteckiego do skończenia. 📖
@nytpu The #unison file synchronization tool is written in #OCaml. git-annex by @joeyh is written in #Haskell. Parts of #Firefox are written in what was once that relatively niche language, #Rust. Not so niche anymore though. There's a ton of software written in #elisp, including mail and #Usenet readers, clients for web, #gopher, and #gemini; chat programs, and my favorite: the #exwm window manager.
#exwm #Gemini #gopher #Usenet #elisp #Rust #Firefox #Haskell #OCaml #unison
@mkf @jtr @debian @kensanata in that case, you might check out #unison, but it is written in #OCaml and I would wonder if you have a compiler available for that. git-annex by @joeyh is another possibility, but written in #Haskell so again there is a question if compiler availability on #HaikuOS. If all else fails, you may have to wind up with careful use of #rsync or something.
#rsync #haikuos #Haskell #OCaml #unison
Coding a non-trivial task in a language I'm still learning. Three times I deleted all my code, read about more advanced features and started over until I got code that a/ works and b/ looks decent.
@profoundlynerdy 11/ I have lost track of how many programming languages I have seriously used. Probably a dozen or so. It is easy for me to pick up a new language, and having a background in procedural, OOP, functional, and logic languages means that there are fewer new concepts to learn with each language. Learning #Rust was easier because I knew #Haskell; that was easier because I knew #OCaml and #Lisp; #OCaml was easier because I already knew Lisp, etc.