HNHacker News
TopNewBestAskShowJobs

Munksgaard

1,232 karma · joined March 21, 2011

Currently working on modernizing and automating insurance for SMEs.

PhD in automatic memory optimizations for GPUs, focusing on Futhark.

philip@munksgaard.me

https://munksgaard.me

submissionscomments
Munksgaard··on Phoenix.new – Remote AI Runtime for Phoenix
I'm also having trouble with getting it to read PDFs from URLs. I got this error:

web https://example.com/file.pdf Error: page.goto: net::ERR_ABORTED at https://example.com/file.pdf Call log: - navigating to "https://example.com/file.odf", waiting until "load" at main (/usr/local/lib/web2md/web2md.js:313:18) { name: 'Error' }

/workspace#

Munksgaard··on Phoenix.new – Remote AI Runtime for Phoenix
Just tried it out, but it's unclear what the different buttons at the bottom of the chat history does. The rightmost one (cloud with an upwards arrow) seems to do the same as the first?
Munksgaard··on The Beam
I agree that the terminology is not ideal, but think there's a huge difference between JS' "weak types", i.e. abundant implicit conversions, and e.g. Elixirs "strong types", where `1 + "foo"` is a runtime error. I don't care if we call the latter something else though. Any good suggestions?

That said, I prefer having both strong and static typing, but that's another argument.

Munksgaard··on The Beam
As someone who has used both SML, Haskell, Rust and Elixir professionally: No, not really.

Access to the BEAM is nice, but unless you're targeting the BEAM in your compiler I don't see any benefit. Even if you're targeting the BEAM, you might decide to use another language, cf. Gleam: https://github.com/gleam-lang/gleam/

Edit: Actually, one thing I will mention is the superior support in Elixir/Erlang for pattern matching bitstrings[0]. Not usually helpful in compilers, but an evolution of pattern matching that other languages should take up, in my opinion.

0: https://hexdocs.pm/elixir/Kernel.SpecialForms.html#%3C%3C%3E...

Munksgaard··on The Beam
Erlang/Elixir are certainly strongly typed[0] but they are not statically typed[1].

0: https://en.wikipedia.org/wiki/Strong_and_weak_typing

1: https://en.wikipedia.org/wiki/Type_system#Static_type_checki...

Munksgaard··on Matt Godbolt sold me on Rust by showing me C++
Elixir has this, which is close:

    &foo(&1, bar)
Munksgaard··on What I've learned from jj
Graphite.dev does this, and it works great.
Munksgaard··on Pipelining might be my favorite programming language feature
Not quite. Note that the Elixir pipe puts the left hand of the pipe as the first argument in the right-hand function. E.g.

    x |> f(y) = f(x, y)
As a result, the Elixir variant cannot be defined as a well-typed function, but must be a macro.
Munksgaard··on Writing C for Curl
There isn't actually any close() function in the std::fs::File: https://doc.rust-lang.org/std/fs/struct.File.html
Munksgaard··on Writing C for Curl
The same way Rust prevents calling close() two times on a file.
Munksgaard··on xAI has acquired X, xAI now valued at $80B
Also, you don't actually have $5 in either box, but you once sold a 1% ownership stake in each box for 5 cents. There's only 10 cents in the in the merged box, but you value it at $10.
Munksgaard··on Coordinating the Superbowl's visual fidelity with Elixir
> - there is no way to browse navigation outside this broken ExDocs which outputs only HTML and LSP

ExDoc support outputting EPUB as well as HTML.

Munksgaard··on Meta claims torrenting pirated books isn't illegal without proof of seeding
Meta is a couple of times larger than the entire entertainment industry combined...
Munksgaard··on Release Notes for Ghostty 1.1.0
I'm still not sure why I should switch away from alacritty...
Munksgaard··on Divers recover Phoenician shipwreck that sank 2.6k years ago off coast of Spain
You'll never guess what happened next!
Munksgaard··on macOS menu bar app that shows how full the ISS urine tank is in real time
Or `man ascii`
Munksgaard··on Making a watch from scratch
You're one of today's lucky 10,000: https://xkcd.com/1053/
Munksgaard··on Emacs: A Basic and Capable Configuration
I had the same reaction. But now I'm wondering, what is the intended way to close the minibuffer in these cases?
Munksgaard··on Exploring Typst, a new typesetting system similar to LaTeX
I use typst to generate PDFs on the fly in my sass-platform. The only other reliable ways I could find to do that was by using LaTeX (slow) or various WebKit-based tools (also slow, and in carious states of unmaintained/deprecated). It works like a charm.
Munksgaard··on My Favorite Algorithm: Linear Time Median Finding (2018)
Here's a direct link for anyone who, like me, would be interested in reading the original article: https://people.csail.mit.edu/rivest/pubs/BFPRT73.pdf

That's an impressive list of authors, for sure.

Munksgaard··on Exploring biphasic programming: a new approach in language design
Maybe I'm missing something, but isn't Lisp the original version of this?
Munksgaard··on ChatGPT Is Down
Your coffee machine uses AI to continually enhance your coffee experience based on the mineral contents of the water, the specific beans being used, your personal tastes and various other dynamic factors.
Munksgaard··on Bend: a high-level language that runs on GPUs (via HVM2)
Have you looked at Futhark?
Munksgaard··on Sam Bankman-Fried sentenced to 25 years in prison
I've definitely heard variants of "the market will decide what is fraud" from people that I know in real life.
Munksgaard··on This week, xAI will open source Grok
Reminds me of https://motherfrunker.ca/fsd/
Munksgaard··on Home Screen Advantage
Out of curiosity, what is the margin on their service income vs. their hardware income?
Munksgaard··on Edsger Dijkstra carried computer science on his shoulders (2020)
That's a bold claim, do you have any evidence to back that up with?

To be clear, I agree that it could be a reason, along with a multitude of others. I think that discerning which is the most substantial reason (if any such exist) is hard if not impossible.

Munksgaard··on Edsger Dijkstra carried computer science on his shoulders (2020)
> Single exit, though, means no "break", or "continue" for loops, and no early returns from functions.

Sounds like pretty standard functional programming a la Standard ML or Haskell, or am I missing something?

Munksgaard··on I regret selling my startup
Perhaps I am unfamiliar with this usage of the word horde, but is it possible that you mean hoard?
Munksgaard··on Steel – An embeddable and extensible Scheme dialect
I don't like curly braces, but I don't let that decide which programming languages I use.
← PreviousPage 2 of 8Next →