Daniel
banner
webcloud.se
Daniel
@webcloud.se
Software Engineer from Sweden working at carla.se with things like TypeScript, ReScript, React, Next.js, GraphQL, Relay, Node.js, Go & PostgreSQL. Currently experimenting with OCaml!

Personal website & blog: webcloud.se
GitHub: github.com/danielstocks
Just gave the OCaml VSCode plugin a try (I've been using NeoVim + LSP integration previously) and one cool detail I haven't seen elsewhere is making the inferred types visible w/o having to hover or place your cursor to reveal the type. Pretty neat!
June 23, 2025 at 7:34 AM
Best #hackernews comment from #GCP outage yesterday (also affecting various AI services)!

It's kind of scary to think how quickly we become dependent on these tools... although one could argue it's been a very long time since anyone was truly self-sufficient in this day and age.
June 13, 2025 at 7:17 AM
May 16, 2025 at 4:36 PM
Me finding some time to do OCaml during the day.
January 28, 2025 at 11:28 AM
Giving the function a type signature just moves the error to the topmost level of that function, so not same as TS?
January 16, 2025 at 11:23 AM
Coming from a TypeScript background, I think this will take a while to get used to: In OCaml, the compiler type error "bubbles" up to the top of the call stack. TypeScript does the opposite. My feeling is the latter helps me find problems faster

Any thoughts or feelings on this?

#OCaml #TypeScript
January 15, 2025 at 9:57 PM
Also wrote a little #OCaml CLI utility, benchmarking all the AoC solutions and filter by day and test/real input!
January 6, 2025 at 9:13 PM
Anyone else benchmarking their solutions? 🤓 How am I doing?
December 15, 2024 at 7:56 PM
Going for some functional X-mas baking this year! #ocaml
December 14, 2024 at 3:08 PM
As an example how I was debugging my AoC day 1 code.

I also found myself copy/pastings (sub)expressions into the utop REPL just to understand the resulting type of some operations.
December 2, 2024 at 1:07 PM
Did I go too far?
November 28, 2024 at 10:13 PM
Been using Reflect App to take notes for about a year now, this is how all notes connect together.

Every note is a node (I organise notes into topics/people and keep a daily journal) and together they form a graph. Quite fascinating.
November 27, 2024 at 3:39 PM
@sabine.sh

Is this a typo? 🤔

I think the previous paragraph was about identity function eg: `fun x -> x` unless I've completely misunderstood.

Can I open a PR somewhere and suggest an edit?

ocaml.org/docs/basic-d...
November 27, 2024 at 1:50 PM
Doing the "Difference of Squares" OCaml exercise in Exercism.

I have to say, this became very aesthetically pleasing!
November 26, 2024 at 4:27 PM
Wow, Exercism is great. Love seeing other peoples solution after completing the exercise. I reached out for pattern matching to solve this problem, but fun to see others als just using ternary expressions!
November 26, 2024 at 10:08 AM
A tour of OCaml is trying to tell me something.

On a more serious note, maybe it's my OCD but it trips me up as a beginner: Why is this parameter named specifically "u"? Is it some kind of convention? I've seen u being used for unit in other places? Why not list?
November 22, 2024 at 8:12 AM
Attempting to use GenAI to learn a new programming language:

Gen AI: "I apologize for multiple layers of confusion"

...Maybe I'll just stick to the tutorial for now :D
November 22, 2024 at 7:36 AM
@z-th.bsky.social Is the core team aware about this? 🥲 The new core library is such a DX improvement and has made ReScript more approachable to beginners, but would be nice if it worked in the playground! Maybe I can help out somewhere?
November 9, 2024 at 10:59 AM
OK... so Apple Music UI is frustrating but at least it works and integrates seamlessly on MacOs & iOS.

Now It doesn't even start 😂 they're really pushing me to go back to dust off my old Spotify account, sigh.
November 1, 2024 at 8:21 AM