Better Know a Ruby Thing: Singleton Classes
Write an awesome description for your new site here. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
Topics /
The most popular blog posts about programming languages on Hacker News. 5,634 posts.
Write an awesome description for your new site here. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
An overview of self-supervised pretext tasks in Natural Language Processing
An entry on some of the cleverest (and clearest) functional designs I've worked on, and how it came to be
When programming in Go, the amount of error handling is something that slaps you in the face. Most API’s you deal with will expose errors. It can become overwhelming, but with a few tips and a guiding principle we can make handling errors easy, keep our code clean and give you the confidence that nothing is breaking…
(From someone who has spent far too much time thinking about the designs of programming languages)
Last week someone posted a /r/cpp thread titled “Declaring all variables local to a function as const”: Ok, so I’m an old-school C++ programmer using the language now since the early ’90s. I’m a fan of const-correctness for function and member declarations, parameters, and the like. Where, I believe, it actually…
C array types are weird. In this article I’ll explain what I find weird about them, what I’d do differently, and ramble on a few related things.
Last week, someone posted a question on the Clojure group asking for a comparison between Clojure and Scala. Since my most popular blog pos...
AKA Zig casts, and when to use them.
My engineer friends are surprised when I mention I know and I even wrote code in the D programming language (aka Dlang).
Does Python still have a need for class without @dataclass?
Cyclic dependencies: Part 1
A blog by sunfishcode
In my previous blog post on pointer provenance, I have shown that not thinking carefully about pointers can lead to a compiler that is internally inconsistent: programs that are intended to...
Almost exactly one year ago I quit my job to create a Haskell startup as a solo developer. I had about 20 ideas, but eventually settled on the idea of dependency project health tracking with Deadpendency.
Practical Racket macros
Calling hell from heaven and heaven from hell is a classic paper from the previous century, introducing the Haskell foreign function interface (FFI). It describes the facilities that Haskell offers for calling functions written in C (and vice versa). In this blog post, we will consider how to call functions written in…
Scala is one of the main application programming languages used at Twitter. Much of our infrastructure is written in Scala and we have several large libraries supporting our use. While highly effective, Scala is also a large language, and our experiences have taught us to practice great care in its application. What…
"You're smart too late and old too soon." - Mike Tyson I'm very pleased to announce the release of Factor 0.96! OS/CPU Win...
Learn Rust to 80% in 5 minutes by leveraging your existing JavaScript knowledge. In this article, I list a number of differences Rust has compared to JS that is crucial to understanding it.
Stripe.net is a popular open-source library for .NET that many users rely on today. Today, we’re adding it to our collection of official client libraries.
A few thoughts on why I think you should learn Racket.