Vitor's Avatar

Vitor

@vitorsalmeida.com

Developer. Still learning how to think better.

44
Followers
47
Following
7
Posts
01.09.2023
Joined
Posts Following

Latest posts by Vitor @vitorsalmeida.com

Cover for the book "Building a Debugger" from No Starch Press. A robot sits at a drafting table drawing a complex machine. In the top-right corner of the table, there is a post-it note with a bug drawn on it and crossed out

Cover for the book "Building a Debugger" from No Starch Press. A robot sits at a drafting table drawing a complex machine. In the top-right corner of the table, there is a post-it note with a bug drawn on it and crossed out

The cover for my book on how debuggers work is here!

Preorders are still 25% off: nostarch.com/building-a-d...

14.12.2024 00:05 πŸ‘ 181 πŸ” 36 πŸ’¬ 9 πŸ“Œ 3
Post image Post image

how it started how its going

11.12.2024 20:37 πŸ‘ 36 πŸ” 2 πŸ’¬ 5 πŸ“Œ 0
include_subdirs - Dune documentationContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark mode

It's not common practice but I think mostly for historical reasons. Now that we have (include_subdirs qualified), you should be able to do it easily. See dune.readthedocs.io/en/stable/re...

10.12.2024 18:49 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Maybe it just sucks
I'm not the first to speak badly about dune

10.12.2024 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

How common is it to create multiple folders in /lib coding OCaml?

I'm asking because defining a new dune file for each new folder is annoying, and I don't know if it is annoying because it's an anti-pattern or if it just sucks

10.12.2024 17:25 πŸ‘ 5 πŸ” 1 πŸ’¬ 3 πŸ“Œ 0

And building values with it is better too. In Go to make the same code you'll need to use iota - and it just sucks tbh

Anyone can understand this code even knowing nothing about ADTs or OCaml.

05.12.2024 16:23 πŸ‘ 6 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image

Ok I really liked ADTs
It's just easier to understand what is happening compared with my past Go implementation

05.12.2024 16:17 πŸ‘ 33 πŸ” 4 πŸ’¬ 4 πŸ“Œ 0
Post image

My article β€œ8 months of OCaml after 8 years of Haskell in production” is by far my most successful.

It’s interesting to ponder why, but I had pretty good expectations from the start myself.

chshersh.com/blog/2023-12...

05.12.2024 07:50 πŸ‘ 29 πŸ” 4 πŸ’¬ 3 πŸ“Œ 2
Video thumbnail

I'm usually not a big transition fan, but I liked it

05.12.2024 00:14 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Working on AOC 1, on Teika, the parsing took me some time, I still need to write the sort.

Doing things without a stdlib and infix operators is a pain. But it's been interesting.

But, I need to connect the typer, doing it without type checking is a massive pain.

03.12.2024 04:02 πŸ‘ 10 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Preview
Release v1.6.3 Β· gleam-lang/gleam

Gleam v1.6.3 is out now, with a fix for compiling on older versions of Erlang/OTP
github.com/gleam-lang/g...

03.12.2024 16:51 πŸ‘ 25 πŸ” 4 πŸ’¬ 0 πŸ“Œ 0

In Gleam btw

01.12.2024 23:12 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I just completed "Historian Hysteria" - Day 1 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/1

01.12.2024 23:11 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Minecraft Create New World Screen

World Name: Advent of Code 2024

Minecraft Create New World Screen World Name: Advent of Code 2024

okay, setting up my project...

(day1 is already like, really hard for this sort of thing so not sure how much i'm going to be able to do this time ^^)

01.12.2024 22:29 πŸ‘ 77 πŸ” 6 πŸ’¬ 6 πŸ“Œ 1