HNHacker News
TopNewBestAskShowJobs

cosmic_quanta

1,529 karma · joined November 22, 2017

To learn more about me, visit https://laurentrdc.xyz
submissionscomments
cosmic_quanta··on Delimited continuations in lone Lisp
Delimited continuations have been implemented in the de-facto standard Haskell runtime system, the GHC runtime system [0]. The goal was to make effect systems more performant [1], but I believe that work has stalled due to the maintainer shifting priorities.

[0]: https://github.com/ghc-proposals/ghc-proposals/blob/master/p...

[1]: https://blog.poisson.chat/posts/2023-01-02-del-cont-examples...

cosmic_quanta··on Babel is why I keep blogging with Emacs
Babel sounds awesome, I should give it a try.

I've been using Pandoc for my static site, which I also used for my PhD thesis. I wrote pandoc-plot[0] to render figures in documents like the author does, inspired by Matplotlib's plot-directive[1]. I feel like this feature is a must for technical writing, but getting the details right is tricky!

[0]: https://github.com/LaurentRDC/pandoc-plot

[1]: https://matplotlib.org/stable/api/sphinxext_plot_directive_a...

cosmic_quanta··on I built ChatGPT with Minecraft redstone [video]
I remember starting playing Minecraft Beta, that was around 2011 maybe?

Even if tools to programmatically create maps were available, I wouldn't have known how to program. So this is more about my lack of knowledge of tools of the time.

cosmic_quanta··on I built ChatGPT with Minecraft redstone [video]
It was not me! Maybe we watched the same video though? I can't recall who or what gave me the idea
cosmic_quanta··on I built ChatGPT with Minecraft redstone [video]
One of my fondest memories was buying the book "The Elements of Computing Systems" by Nisan and Schocken, and implementing a 4-bit CPU in Minecraft.

4-bit is small enough that you can build it manually, without the use of external tools (which I don't think existed at the time anyways).

Highly recommended for children interesting in computing!

cosmic_quanta··on How insurance risk is transformed into investable assets
What a wonderful read! This is why I come to HN: technical, yet approachable, discussions on topics I didn't even know existed. Thank you for sharing!
cosmic_quanta··on Do YC after you graduate: Early decision for students
I like that suggestion. Work experience at a startup is eye opening.
cosmic_quanta··on Top Programming Languages 2025
Well I'm happy that Haskell registers at all! At a level similar to ... LabView (oof). The article proper is rather uninteresting, I'm afraid.
cosmic_quanta··on Take something you don’t like and try to like it
This was a great read. I find myself becoming the grumpy complainer as I age, but as the post says, the torture is mostly in my head. It's good to keep that in mind; I can't always control my environment, but I can always control how I experience it.

I also enjoyed the writing style, and wandered onto another post. First sentence:

> I’ve always seen cathedrals as presenting a kind of implicit argument to atheists. Something like: God must exist, because otherwise it would have been insane for people to build [a cathedral]

This is my new favourite writer

cosmic_quanta··on Why haven't quantum computers factored 21 yet?
Any insight as to why you think that?
cosmic_quanta··on SurrealDB is sacrificing data durability to make benchmarks look better
I know Kyle Kingsbury is probably backed up for years, but I wouldn't use a NewSQL DB without a Jepsen report
cosmic_quanta··on Ask HN: How do you deliver big projects as a solo contractor?
I guess it depends on the business. Can your client wait two years?

At my work, my team of 5 was tasked with creating the beta version of a customer-facing app in 2 months, after which we launched and iterated as fast as possible. It was barely functional, and did not scale well, but it worked. Now we're working on the next phase -- making it scale and add customer-requested features.

This is typical in tech startups facing lots of competition.

cosmic_quanta··on Ask HN: Have you ever regretted open-sourcing something?
What's the regret then?
cosmic_quanta··on I couldn't submit a PR, so I got hired and fixed it myself
> It reminds me of George Hotz’s legendary single week at Twitter in 2022, where he joined just to fix a login popup that was bothering users, then bounced.

The author remembers this, uh, event differently than I remember it... George Hotz boldly claimed that he could "fix Twitter search" faster than those lazy Twitter devs, only to bail almost immediately. Hubris!

On the way out, he removed that login popup as a sort of consolation prize.

cosmic_quanta··on Our $100M Series B
How do you like using their stuff? I would be interested in reading an experience report
cosmic_quanta··on Our $100M Series B
I love the idea. RFD 1 mentions taking inspiration from Golang and Rust proposal processes. The Haskell Foundation also uses the same proposal process, and I love it.

I'm a big proponent of the "writing is thinking" mantra. Unfortunately, in my experience, not all technical leaders value grassroots proposal processes like the Oxide RFDs

cosmic_quanta··on Build Systems à la Carte (2018) [pdf]
This paper is excellent for many reasons, but I want to emphasize how approachable it is. Anyone working as a developer can read this and get insights.

This stands in s t a r k contrast to other disciplines (e. g. Physics) where papers are usually ultra dense, making it hard to read even for subject-matter experts.

cosmic_quanta··on Lens: Lenses, Folds and Traversals
What a great read! I had never encountered or thought about prisms before, but now it I see how useful they could be.

Thank you for sharing

cosmic_quanta··on Klong: A Simple Array Language
There's a niche out there where this kind of technology is appreciated. I can even appreciate the technical challenges in making an array language interpreter run fast!

However, unfortunately, the notation is so terse that I can't imagine spending the time to learn this. This looks write-only.

Is there an obvious reason to prefer a k-like language like Klong, over e.g. Futhark[0] or Accelerate[1]?

[0]: https://futhark-lang.org/

[1]: https://hackage.haskell.org/package/accelerate

cosmic_quanta··on APL Interpreter – An implementation of APL, written in Haskell (2024)
I learned using the Haskell Programming from First Principles book (haskellbook.com). I don't think it goes into web development, but it certainly goes through the basic project setup.

Do you think you would have benefitted from a resource like the Rust book? I've been toying with the idea of writing something similar and donating it to the Haskell Foundation

cosmic_quanta··on Changelog: Lazy trees (faster Nix builds)
The discussion on the PR linked in this post, about upstreaming lazy trees to Nix proper, seems to indicate that some of the benefits also require changing the semantics of the Nix language.

I'm not familiar enough with Nix to understand, but it looks like the performance gains in the blog post might not all materialize to upstream users.

In any case, cool stuff

cosmic_quanta··on Why GADTs matter for performance (2015)
Interesting, thanks for posting.

I share the author's frustration with the lack of non-compiler-related examples of GADT uses. It seems like such a powerful idea, but I haven't been able to get a feel for when to reach for GADTs in Haskell

cosmic_quanta··on Concurrency in Haskell: Fast, Simple, Correct
I'm not going to sell you on anything. All of the things you've mentioned are true. Loosely, the multitude of string types and the state of the standard library come from the same place: the language is 30+ years old! There are many warts to be found.

However, if you decide to start learning, the path is hard, especially if you come from a non-computer-science background like me. I attempted to learn Haskell twice; I bounced off the first time, quite hard, and didn't try again for years.

What worked for me is a combination of two things:

* Having a goal in mind, that has nothing with the choice of language. For me, it was building a personal website

* The book Haskell Programming from First Principles [0]

and if you have more questions, reach out.

[0]: https://haskellbook.com/

cosmic_quanta··on Concurrency in Haskell: Fast, Simple, Correct
There's no time like the present. Feel free to reach out if I can help you along your journey
cosmic_quanta··on Concurrency in Haskell: Fast, Simple, Correct
My favourite thing about Haskell concurrency is that there are no colored functions [0]. Writing code in IO, or Async, or the next big thing (asychronous higher-order effect system of the future??), doesn't require language support like Python or Rust.

The one construct that unlocks this lack of colored functions, STM, did require runtime support (as opposed to language support), which at least is transparent to downstream developers

[0]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...

cosmic_quanta··on Concurrency in Haskell: Fast, Simple, Correct
> sounds like it would be hard to implement a web server handling 10k+ concurrent requests on commodity hardware?

In practice, it is not. The canonical Haskell compiler, GHC, is excellent at transforming operations on immutable data, as Haskell programs are written, into efficient mutations, at the runtime level. Also, since web development is quite popular in the Haskell community, lots of people have spent many hours optimizing this precise use-case.

In my experience, the real downside is that compilation times are a bit long -- the compiler is doing a LOT of work after all.

cosmic_quanta··on Concurrency in Haskell: Fast, Simple, Correct
The author is thinking of updating the book to a second edition as well. Looking forward to it
cosmic_quanta··on Electron band structure in germanium, my ass (2001)
> (...) the apparent legitimacy is enhanced by the fact that I used a complicated computer program to make the fit. I understand this is the same process by which the top quark was discovered.

This is both hilarious and more common than you might think. In my field of expertise (ultrafast condensed matter physics), lots of noisy garbage was rationalized through "curve-fitting", without presenting the (I assume horrifyingly skewed) residuals, or any other goodness-of-fit test.

cosmic_quanta··on Solar Generation Surge Sends European Power Prices Below Zero
Right I get it backwards all the time. I meant firm power
cosmic_quanta··on Solar Generation Surge Sends European Power Prices Below Zero
Indeed, the inelasticity is because of the physics. Nonetheless, common terminology in the industry is that the market is inelastic.

Regarding nuclear power: it is a great technology for the base load (edit: I mean firm power), but there's always going to be fluctuations in consumption, which needs to be met with fluctuations in generation. Grid interactive buildings can help mitigate this fluctuation.

← PreviousPage 2 of 9Next →